1 2009-04-07 Thomas Quinot <quinot@adacore.com>
3 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
4 type for the case of concatenating a constrained array indexed by an
7 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9 * sem_ch6.adb (Check_Conformance): when checking conformance of an
10 operation that overrides an abstract operation inherited from an
11 interface, return False if only one of the controlling formals is an
14 2009-04-07 Ed Schonberg <schonberg@adacore.com>
16 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
19 2009-04-07 Vincent Celier <celier@adacore.com>
21 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
23 2009-04-07 Thomas Quinot <quinot@adacore.com>
25 * usage.adb: Minor fix in usage message.
27 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
28 match declaration; the correct subtype is Node_Id, not Entity_Id,
29 because the expected node kind is an identifier, not a defining
32 * switch-c.adb: Minor reformatting.
34 * uintp.adb: Minor reformatting.
36 2009-04-07 Robert Dewar <dewar@adacore.com>
38 * exp_ch13.adb: Minor reformatting
40 2009-04-07 Robert Dewar <dewar@adacore.com>
42 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
43 against missing parent.
45 2009-04-07 Thomas Quinot <quinot@adacore.com>
47 * xoscons.adb: Minor reformatting
49 2009-04-07 Robert Dewar <dewar@adacore.com>
51 * rtsfind.ads: Remove obsolete string concatenation entries
53 2009-04-07 Robert Dewar <dewar@adacore.com>
55 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
57 2009-04-07 Ed Schonberg <schonberg@adacore.com>
59 * sem_ch10.adb (Check_Body_Required): Handle properly imported
62 2009-04-07 Gary Dismukes <dismukes@adacore.com>
64 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
65 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
66 is of a scalar or string type then suppress the setting of the
69 * freeze.adb (Warn_Overlay): Also emit the warnings about default
70 initialization for the cases of scalar and string objects when
71 Init_Or_Norm_Scalars is True.
73 2009-04-07 Bob Duff <duff@adacore.com>
75 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
77 2009-04-07 Bob Duff <duff@adacore.com>
79 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
80 Form parameter of Text_Translation=No allows binary mode for Text_IO
83 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
85 2009-04-07 Javier Miranda <miranda@adacore.com>
87 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
88 processing the bounds for bit packed arrays or VM target machines.
90 2009-04-07 Thomas Quinot <quinot@adacore.com>
92 * g-sothco.ads (Int_Access): Remove extraneous access type (use
93 anonymous access instead).
94 (Get_Socket_From_Set): Fix incorrectly reverted formals
95 Last and Socket to match the underlying C routine.
97 * g-socket.adb, g-socket.ads
98 (Get): Use named parameter associations instead of positional ones in
99 call go Get_Socket_From_Set, since this routine has two formals of the
101 (Image): New procedure.
103 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
104 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
105 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
106 for type of Arg formal.
108 * sem_warn.adb: Minor reformatting
110 2009-04-07 Ed Schonberg <schonberg@adacore.com>
112 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
113 over record components.
115 2009-04-07 Nicolas Roche <roche@adacore.com>
118 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
119 has disappeared between VxWorks 6.4 and VxWorks 6.5
120 In RTP mode use time.h instead of times.h
122 2009-04-07 Robert Dewar <dewar@adacore.com>
124 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
126 2009-04-07 Kevin Pouget <pouget@adacore.com>
128 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
129 expanded code for constrained types.
131 2009-04-07 Ed Schonberg <schonberg@adacore.com>
133 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
134 AI05-105: in an object renaming declaration, anonymousness is a name
137 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
139 2009-04-07 Arnaud Charlet <charlet@adacore.com>
141 * g-comlin.adb (Expansion): Fix old regression: also return directory
144 2009-04-07 Robert Dewar <dewar@adacore.com>
147 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
148 (Expand_Concatenate): New name for Expand_Concatenate_String which has
149 been rewritten to handle all types.
150 (Expand_Concatenate_Other): Remove
152 2009-04-07 Ed Schonberg <schonberg@adacore.com>
154 * lib-xref.adb (Generate_Reference): A default subprogram in an
155 instance appears within the tree for the instance, but generates an
156 implicit reference in the ALI.
158 2009-04-07 Javier Miranda <miranda@adacore.com>
160 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
161 derived type that has discriminants, propagate the list of interfaces
162 to the corresponding new base type. In addition, propagate also
163 attribute Limited_Present (found working in this patch).
165 2009-04-07 Robert Dewar <dewar@adacore.com>
167 * exp_ch4.adb: Rewrite concatenation expansion.
169 2009-04-07 Ed Schonberg <schonberg@adacore.com>
171 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
172 relevant to packages.
174 2009-04-07 Robert Dewar <dewar@adacore.com>
176 * sem_attr.adb: Minor reformatting
178 * sem_ch6.adb: Minor reformatting
180 2009-04-07 Tristan Gingold <gingold@adacore.com>
182 * socket.c: Add more protections against S_resolvLib_ macros.
184 2009-04-07 Thomas Quinot <quinot@adacore.com>
186 * sem_attr.adb: Minor reformatting
188 2009-04-07 Ed Schonberg <schonberg@adacore.com>
190 * sem_ch6.adb (New_Overloaded_Entity): New predicate
191 Is_Overriding_Alias to handle properly types that inherit two homonym
192 operations that have distinct dispatch table entries.
194 2009-04-07 Emmanuel Briot <briot@adacore.com>
196 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
197 looking for the end of a parenthesis group
199 2009-04-07 Tristan Gingold <gingold@adacore.com>
201 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
203 * socket.c Don't use resolvLib_ macros if not defined.
205 2009-04-07 Robert Dewar <dewar@adacore.com>
207 * g-socket.adb: Minor reformatting.
209 * g-socthi-mingw.adb: Minor reformatting
211 * g-sothco.ads: Minor reformatting
214 (Expand_Concatenate_String): Complete rewrite to generate efficient code
215 inline instead of relying on external library routines.
217 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
218 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
221 2009-04-07 Ed Schonberg <schonberg@adacore.com>
224 (Eval_Attribute): for attributes of array objects that are not strings,
225 attributes are not static if nominal subtype of object is unconstrained.
227 2009-04-07 Ed Schonberg <schonberg@adacore.com>
229 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
230 operations for a type T in an instance do not override each other,
231 when T is derived from a formal private type, the corresponding
232 operations inherited by a type derived from T outside
233 of the instance do not override each other either.
235 2009-04-07 Robert Dewar <dewar@adacore.com>
237 (Osint.Fail): Change calling sequence to have one string arg
238 (Make.Make_Failed): Same change
239 All callers are adjusted to use concatenation
241 2009-04-07 Robert Dewar <dewar@adacore.com>
243 * exp_ch4.adb: Fix documentation typo
245 2009-04-07 Robert Dewar <dewar@adacore.com>
247 * tbuild.ads: Minor reformatting
249 2009-04-07 Javier Miranda <miranda@adacore.com>
251 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
252 when compiling under ZFP runtime.
254 2009-04-07 Robert Dewar <dewar@adacore.com>
256 * g-comlin.adb: Minor reformatting
258 2009-04-07 Thomas Quinot <quinot@adacore.com>
260 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
261 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
262 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
263 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
265 2009-04-07 Robert Dewar <dewar@adacore.com>
267 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
269 * opt.ads (Sprint_Line_Limit): New parameter
271 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
273 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
275 * usage.adb: Output information for -gnatGnn -gnatDnn
277 2009-04-07 Robert Dewar <dewar@adacore.com>
279 * make.adb: Minor reformatting
281 2009-04-07 Robert Dewar <dewar@adacore.com>
283 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
285 2009-04-07 Robert Dewar <dewar@adacore.com>
287 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
289 2009-04-07 Robert Dewar <dewar@adacore.com>
292 Remove Assume_Valid parameter from In_Subrange_Of calls
295 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
296 (Is_In_Range): Remove incorrect use of Assume_Valid
297 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
300 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
301 (Is_In_Range): Documentation cleanup
302 (Is_Out_Of_Range): Documentation cleanup
305 Add documentation for Assume_No_Invalid_Values pragma
307 * sem_ch12.adb: Minor reformatting
309 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
311 * sem_prag.adb: Improve error message.
313 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
314 LF/CR no longer recognized as line terminator
316 * switch.ads: Minor documentation improvement
318 * vms_data.ads: Minor reformatting
320 2009-04-07 Robert Dewar <dewar@adacore.com>
322 * checks.adb (Determine_Range): Add Assume_Valid parameter
324 * checks.ads (Determine_Range): Add Assume_Valid parameter
326 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
327 Is_Null_Loop to suppress warnings in a loop body.
330 (Rewrite_Comparison): Major rewrite to accomodate invalid values
333 (Expand_N_Loop_Statement): Delete loop known not to execute
336 (Assume_No_Invalid_Values): Now set to False, and as documented, this
337 fully enables the proper handling of invalid values.
340 New calling sequence for Is_In_Range
343 (Analyze_Iteration_Scheme): Accomodate possible invalid values
344 in determining if a loop range is null.
347 (Is_In_Range): Add Assume_Valid parameter
348 (Is_Out_Of_Range): Add Assume_Valid_Parameter
349 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
350 also to do more accurate and complete range analysis, catching more
354 (Is_In_Range): Add Assume_Valid parameter
355 (Is_Out_Of_Range): Add Assume_Valid_Parameter
358 New calling sequence for Is_In_Range
361 (Suppress_Loop_Warnings): New flag
364 (Is_Null_Loop): Update documentation
365 (Suppress_Loop_Warnings): New flag
367 * gnat_ugn.texi: Document -gnatB switch
369 2009-04-07 Arnaud Charlet <charlet@adacore.com>
371 * gnatvsn.ads: Bump version number.
373 2009-04-07 Thomas Quinot <quinot@adacore.com>
375 * exp_ch3.adb: Minor rewording (comments)
377 2009-04-07 Robert Dewar <dewar@adacore.com>
379 * exp_disp.adb: Minor reformatting
381 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
383 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
385 * gcc-interface/trans.c (lvalue_required_p): Likewise.
387 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
389 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
390 Do not convert the result. Remove obsolete comment.
392 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
394 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
396 (Subprogram_Body_to_gnu): Fix pasto.
398 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
400 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
401 (void_type_decl_node): Remove.
402 (init_gigi_decls): Likewise.
403 (gnat_install_builtins): Declare.
404 (record_builtin_type): Likewise.
405 (create_type_stub_decl): Likewise.
406 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
407 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
409 <E_Array_Subtype>: Use the index types, not only their name, in the
410 record giving the names of the bounds, if any.
411 For a packed array type, make it artificial only if the base type
412 was artificial as well. Remove redundant statement.
413 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
415 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
416 (rest_of_type_decl_compilation_no_defer): Likewise.
417 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
418 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
419 and use create_type_stub_decl to build it.
420 (gnat_pushdecl): Rewrite condition.
421 (gnat_install_builtins): Remove bogus declaration.
422 (record_builtin_type): New function.
423 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
425 (create_type_stub_decl): New function.
426 (create_type_decl): Assert that the type is not dummy. If the type
427 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
428 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
429 (build_vms_descriptor): Likewise.
430 (init_gigi_decls): Delete and move bulk of code to...
431 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
432 (emit_range_check): Add gnat_node parameter.
433 (emit_index_check): Likewise.
434 (emit_check): Likewise.
435 (build_unary_op_trapv): Likewise.
436 (build_binary_op_trapv): Likewise.
437 (convert_with_check): Likewise.
438 (Attribute_to_gnu): Adjust calls for above changes.
439 (call_to_gnu): Likewise.
440 (gnat_to_gnu): Likewise.
441 (assoc_to_constructor): Likewise.
442 (pos_to_constructor): Likewise.
443 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
444 (process_type): Do not create TYPE_DECL for dummy types.
446 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
448 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
449 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
450 * gcc-interface/utils.c: Fix comments.
452 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
454 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
456 (gnat_to_gnu_type): Move around.
457 (get_unpadded_type): Likewise.
458 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
461 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
463 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
464 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
465 (call_to_gnu): Invoke it instead of manually checking.
467 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
469 * gcc-interface/utils.c (finish_record_type): Force structural equality
470 checks if the record type is discriminated.
472 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
474 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
475 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
476 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
477 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
478 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
479 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
480 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
482 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
484 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
485 of TREE_CONSTANT_OVERFLOW.
487 2009-03-30 Joseph Myers <joseph@codesourcery.com>
489 PR rtl-optimization/323
490 * gcc-interface/misc.c (gnat_post_options): Set
491 flag_excess_precision_cmdline. Give an error for
492 -fexcess-precision=standard for processors where the option is
495 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
498 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
501 2009-03-11 Olivier Hainque <hainque@adacore.com>
503 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
504 checks processing, remove unintended TREE_TYPE walk on index type.
506 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
509 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
510 call make_packable_type on fat pointer types.
511 <E_Array_Subtype>: Likewise.
512 <E_Record_Subtype>: Call make_packable_type on all record types
513 except for fat pointer types.
514 (make_packable_type): Likewise.
515 (gnat_to_gnu_field): Likewise.
517 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
519 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
520 EH_MECHANISM change made on 2007-12-06.
522 2009-02-26 Andreas Schwab <schwab@suse.de>
525 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
526 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
527 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
529 (target_cpu_default): Substitute.
531 2009-02-25 Laurent GUERBY <laurent@guerby.net>
534 * a-teioed.adb (Expand): Fix Result overflow.
536 2009-02-25 Laurent GUERBY <laurent@guerby.net>
538 * gcc-interface/Makefile.in: Fix multilib handling for
541 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
543 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
545 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
547 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
549 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
551 * gcc-interface/deftarg.c: Remove.
553 2009-02-10 Olivier Hainque <hainque@adacore.com>
554 Eric Botcazou <ebotcazou@adacore.com>
556 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
557 (copy_alias_set): Rename into...
558 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
559 underlying array of unconstrained arrays for the new type as well.
560 If the old and new alias sets don't conflict, make one a subset of
561 the other as per the OP parameter.
562 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
563 <E_Record_Type>: Do not copy the alias set for derived types.
564 For all types, make the alias set of derived types a superset of
565 that of their parent type.
566 (make_aligning_type): Adjust calls to copy_alias_set.
567 (make_packable_type): Likewise.
568 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
569 Check for alias set conflict instead of strict equality to issue the
572 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
574 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
575 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
576 (copy_alias_set): Assert that arrays have the same aliasing settings.
577 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
579 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
581 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
582 Set TYPE_NONALIASED_COMPONENT on the array type.
584 2009-01-31 Laurent GUERBY <laurent@guerby.net>
586 * gcc-interface/Makefile.in: Fix mipsel linux handling.
588 2009-01-16 Jakub Jelinek <jakub@redhat.com>
590 * gcc-interface/Makefile.in: Fix multilib handling for
593 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
595 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
596 only useless conversions around renamed objects.
598 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
600 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
601 the _Tag field before any discriminants in the field list.
602 (components_to_record): Remove obsolete comment.
604 2008-12-09 Jakub Jelinek <jakub@redhat.com>
607 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
608 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
611 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
614 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
616 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
619 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
621 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
623 * gcc-interface/decl.c: Fix various nits.
625 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
627 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
629 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
632 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
633 special-case boolean types. Propagate the name.
634 * gcc-interface/targtyps.c: Tweak comment.
636 2008-11-15 Geert Bosch <bosch@adacore.com>
638 * gcc-interface/trans.c (emit_check): Put back a final save_expr
639 to prevent exponential expansion during gimplification.
641 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
643 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
645 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
647 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
648 initialized to a static constant to be statically allocated even if
649 they are of a padding type, provided the original type also has
652 2008-11-15 Laurent Guerby <laurent@guerby.net>
655 * gcc-interface/Makefile.in: Add multilib handling for x86_64
657 * system-darwin-x86_64.ads: New file.
659 2008-11-13 Olivier Hainque <hainque@adacore.com>
661 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
662 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
663 are explicit to the middle-end. Tidy.
665 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
667 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
668 (MINUS_NOMOD_EXPR): Likewise.
669 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
671 <PLUS_NOMOD_EXPR>: New case.
672 <MINUS_NOMOD_EXPR>: Likewise.
673 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
674 assignment statement instead of using an increment operator.
676 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
678 * system-irix-n64.ads: New file.
679 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
682 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
685 * system-solaris-x86_64.ads: New file.
686 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
688 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
689 Eric Botcazou <ebotcazou@adacore.com>
692 * lib.ads: (Enable_Switch_Storing): Declare.
693 * lib.adb: (Enable_Switch_Storing): New procedure.
694 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
695 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
696 (Display): Never display -gnatea
697 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
699 2008-11-07 Thomas Quinot <quinot@adacore.com>
701 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
702 for empty range in original base type, not converted result type.
704 2008-11-07 Geert Bosch <bosch@adacore.com>
706 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
707 and result for call to __gnat_mulv64.
709 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
711 * gcc-interface/trans.c: Fix formatting nits.
713 2008-11-07 Geert Bosch <bosch@adacore.com>
715 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
716 overflow check for constant result.
718 2008-11-07 Geert Bosch <bosch@adacore.com>
720 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
721 overflow check for addition/subtraction if neither operand is constant.
723 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
725 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
726 files for the target-dependent part of the runtime.
727 (SPARC/Linux): Likewise.
729 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
731 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
732 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
735 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
737 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
740 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
743 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
744 Generate a call to memmove for an assignment between overlapping
747 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
750 * gcc-interface/Makefile.in: Add multilib handling for
751 s390-linux and s390x-linux.
753 2008-10-24 Jakub Jelinek <jakub@redhat.com>
755 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
756 check-acats-subtargets and check-gnat-subtargets.
757 (check_acats_targets): New variable.
758 (check-acats-subtargets, check-acats%): New targets.
759 (check-acats): If -j is used and CHAPTERS is empty, run the testing
760 in multiple make goals, possibly parallel, and afterwards run
761 dg-extract-results.sh to merge the sum and log files.
763 2008-10-17 Geert Bosch <bosch@adacore.com>
765 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
766 to use only a single check instead of three, and avoid unnecessary
768 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
769 creating more opportunities for optimizations.
771 2008-10-13 Jakub Jelinek <jakub@redhat.com>
774 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
777 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
779 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
780 dealing with volatileness to after code dealing with renaming.
782 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
784 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
785 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
787 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
789 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
790 (unchecked_convert): Use it to disable problematic folding with
791 VIEW_CONVERT_EXPR in the general case. Always disable it for the
792 special VIEW_CONVERT_EXPR built for integral types and cope with
793 its addressability issues by preserving the first conversion.
795 2008-10-01 Andreas Schwab <schwab@suse.de>
797 * system-linux-ppc64.ads: New file.
798 * gcc-interface/Makefile.in: Add multilib handling for
801 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
803 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
804 to that of ptr_mode instead of word_mode.
806 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
809 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
811 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
814 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
815 instead of deprecated FILE_WRITE_PROPERTIES.
817 2008-09-22 Olivier Hainque <hainque@adacore.com>
819 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
820 are never assigned, volatile entities are not constant for code
823 2008-09-21 Laurent Guerby <laurent@guerby.net>
826 * gcc-interface/Makefile.in: Add multilib handling for x86_64
828 * system-linux-sparcv9.ads: New file.
830 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
832 * exp_dbug.ads: Document new convention for the XVZ variable.
833 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
834 debug info if necessary for the type padding the component type.
835 <E_Array_Subtype>: Likewise.
836 (maybe_pad_type): Emit the XVZ variable in units.
837 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
838 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
839 on statements generated to initialize the parameter attributes cache.
840 Set the source line of the end label of the body on the special return
841 statement built for a procedure with copy-in copy-out parameters.
843 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
846 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
847 inlined external functions if they contain a nested function not
850 2008-09-18 Jan Hubicka <jh@suse.cz>
852 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
853 (end_subprog_body): Do not set DECL_INLINE.
855 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
858 * gnat_ugn.texi: Use proper format in direntry.
860 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
862 * gcc-interface/trans.c (gigi): Declare the name of the compilation
863 unit as the first global name.
865 2008-09-14 Jan Hubicka <jh@suse.cz>
867 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
869 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
871 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
872 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
873 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
874 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
875 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
876 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
877 gcc-interface/gigi.h, gcc-interface/trans.c,
878 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
879 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
880 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
881 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
882 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
883 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
884 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
885 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
887 * gnathtml.pl: Fix typos.
889 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
891 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
892 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
893 layer. RTEMS binds to OS provided adapter routines so there are
894 no modifications to s-osinte-rtems.adb.
896 2008-09-09 Arnaud Charlet <charlet@adacore.com>
897 Joel Sherrill <joel.sherrill@oarcorp.com>
899 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
901 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
903 * s-interr-hwint.adb: New file.
905 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
906 needed by s-interr-hwint.adb.
908 * s-osinte-vxworks-kernel.adb: New file.
910 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
912 * s-stchop-rtems.adb: Add file missed in early commit. Already
913 referenced in gcc-interface/Makefile.in.
915 2008-08-30 Thomas Quinot <quinot@adacore.com>
917 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
918 be built even without a separate libada directory.
920 2008-08-22 Arnaud Charlet <charlet@adacore.com>
922 * lib-xref.ads: Fix typo in subprogram reference definition.
924 2008-08-22 Robert Dewar <dewar@adacore.com>
926 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
929 * g-trasym.adb: Ditto
931 * s-utf_32.adb (Get_Category): Fix obvious typo
933 * s-wwdcha.adb: Minor code reorganization
936 2008-08-22 Robert Dewar <dewar@adacore.com>
938 * checks.adb (Determine_Range): Deal with values that might be invalid
940 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
941 configuration switches.
943 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
945 * sem_prag.adb: Implement pragma Assume_No_Default_Values
947 * snames.adb, snames.ads, snames.h:
948 Add entries for pragma Assume_No_Invalid_Values
950 * switch-c.adb: Add processing for -gnatB switch
952 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
954 2008-08-22 Javier Miranda <miranda@adacore.com>
956 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
957 init procedure all the expanded code associated with the spec of
958 task types and protected types.
960 2008-08-22 Gary Dismukes <dismukes@adacore.com>
962 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
963 component expression copies rather than directly setting Etype and
964 Is_Static_Expression.
966 2008-08-22 Gary Dismukes <dismukes@adacore.com>
968 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
969 private types to allow for types derived from a private type with
970 preelaborable initialization, but return False for a private extension
971 (unless it has the pragma).
973 2008-08-22 Robert Dewar <dewar@adacore.com>
975 * opt.ads: Minor code reorganization (put entries in alpha order)
977 2008-08-22 Pascal Obry <obry@adacore.com>
979 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
982 2008-08-22 Geert Bosch <bosch@adacore.com>
984 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
985 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
987 2008-08-22 Doug Rupp <rupp@adacore.com>
989 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
993 (__gnat_set_features): New function.
994 (__gnat_features_set): New tracking variable.
995 (__gl_no_malloc_64): New feature global variable
997 2008-08-22 Ed Schonberg <schonberg@adacore.com>
999 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
1000 use_type_clause in an instance.
1002 2008-08-22 Bob Duff <duff@adacore.com>
1004 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
1006 2008-08-22 Robert Dewar <dewar@adacore.com>
1008 * exp_ch6.adb: Minor reformatting
1010 * exp_ch7.adb: Minor reformatting
1012 * exp_ch7.ads: Put routines in proper alpha order
1014 * exp_dist.adb: Minor reformatting
1016 2008-08-22 Vincent Celier <celier@adacore.com>
1018 * prj.ads: Minor comment update
1020 2008-08-22 Robert Dewar <dewar@adacore.com>
1022 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
1024 2008-08-22 Ed Schonberg <schonberg@adacore.com>
1027 (Base_Init_Proc): For a protected subtype, use the base type of the
1028 corresponding record to locate the propoer initialization procedure.
1030 2008-08-22 Robert Dewar <dewar@adacore.com>
1033 (In_Subrange_Of): New calling sequence
1034 (Determine_Range): Prepare for new processing using base type
1037 (Compile_Time_Compare): Use new calling sequence
1040 (Compile_Time_Compare): Use new calling sequence
1043 (Compile_Time_Compare): New calling sequence allows dealing with
1045 (In_Subrange_Of): Ditto
1048 (Compile_Time_Compare): New calling sequence allows dealing with
1050 (In_Subrange_Of): Ditto
1052 2008-08-22 Pascal Obry <obry@adacore.com>
1054 * adaint.c: Fix possible race condition on win32_wait().
1056 2008-08-22 Bob Duff <duff@adacore.com>
1058 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
1059 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
1060 exp_intr.adb, exp_ch3.adb: Rename:
1061 Exp_Ch7.Controlled_Type => Needs_Finalization
1062 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
1063 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
1064 Has_Controlled_Parts
1065 (Has_Some_Controlled_Component): Fix bug in array case.
1067 2008-08-22 Robert Dewar <dewar@adacore.com>
1069 * sem_ch8.adb: Minor reformatting
1071 2008-08-22 Kevin Pouget <pouget@adacore.com>
1073 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
1074 Shared_Var_Close procedure specifications from package spec to package body.
1076 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
1077 RE_Shared_Var_WOpen entries.
1079 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
1080 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
1082 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
1084 * init.c: adjust EH support code on Alpha/Tru64 as well.
1086 * raise-gcc.c: Add back a couple of comments.
1088 2008-08-22 Ed Schonberg <schonberg@adacore.com>
1090 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
1091 involved and the return type is class-wide, use the type of the expression
1092 for the generated access type. Suppress useless discriminant checks on the
1095 2008-08-22 Bob Duff <duff@adacore.com>
1097 * exp_ch7.adb: Minor comment fix
1099 * exp_ch6.ads: Minor comment fix
1101 2008-08-22 Thomas Quinot <quinot@adacore.com>
1103 * sem_ch8.adb: Minor reformatting
1104 Minor code reorganization (introduce subprogram to factor duplicated
1107 2008-08-22 Sergey Rybin <rybin@adacore.com>
1109 * gnat_ugn.texi: Change the description of gnatcheck default rule
1112 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
1114 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
1115 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
1116 do not adjust the PC anymore.
1117 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
1118 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
1120 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
1121 instead of _Unwind_GetIP.
1123 2008-08-22 Gary Dismukes <dismukes@adacore.com>
1125 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
1126 with a range is transformed into a positional aggregate, any copied
1127 component literals should be marked Is_Static_Expression.
1129 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
1130 not being known at at compile time when Configurable_Run_Time_Mode is
1133 2008-08-22 Robert Dewar <dewar@adacore.com>
1136 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
1137 Read or Input attribute.
1139 2008-08-22 Ed Schonberg <schonberg@adacore.com>
1141 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
1142 clauses in related units is redundant, if one of the units is a package
1143 instantiation, use its instance_spec to determine which unit is the
1144 ancestor of the other.
1146 2008-08-22 Javier Miranda <miranda@adacore.com>
1148 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
1149 attributes add missing support to handle designated types that come
1150 from the limited view.
1152 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
1154 2008-08-22 Sergey Rybin <rybin@adacore.com>
1156 * vms_data.ads: Add entry for new gnatcheck -mNNN option
1158 * gnat_ugn.texi: Add description for gnatcheck option '-m'
1160 2008-08-22 Sergey Rybin <rybin@adacore.com>
1162 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
1163 acoording to the latest changes in the metric rule interface
1165 2008-08-22 Vincent Celier <celier@adacore.com>
1167 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
1168 (Check): Check if the file names registered in the ALI file for the
1169 spec, the body and each of the subunits are the ones expected.
1171 2008-08-22 Robert Dewar <dewar@adacore.com>
1173 * g-catiio.adb: Code cleanup.
1175 2008-08-20 Vincent Celier <celier@adacore.com>
1177 * make.adb (Gnatmake): Remove extra space in version line
1180 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
1181 as the name may already have been entered in the table by the Project
1184 2008-08-20 Jose Ruiz <ruiz@adacore.com>
1186 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
1187 weak symbols so we use the version provided by MaRTE when available.
1189 2008-08-20 Emmanuel Briot <briot@adacore.com>
1191 * g-catiio.ads, g-catiio.adb:
1192 (Value): Avoid an unnecessary system call to Clock in most cases.
1193 This call is only needed when only the time is provided in the string,
1194 and ignored in all other cases. This is more efficient.
1196 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
1198 * raise-gcc.c: Fix formatting nits.
1200 2008-08-20 Robert Dewar <dewar@adacore.com>
1203 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
1204 non-existing component clause.
1206 * exp_ch5.adb: Minor reformatting
1208 * g-comlin.adb: Minor reformatting
1210 * make.adb: Minor reformatting
1212 * prj-proc.adb: Minor reformatting
1214 * stylesw.ads: Minor reformatting
1216 2008-08-20 Vincent Celier <celier@adacore.com>
1218 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
1219 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
1220 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
1221 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
1222 and a switch is not recognized by gnatmake.
1223 (Gnatmake): Implement new scheme for gnatmake switches and global
1224 compilation switches.
1225 (Switches_Of): Try successively Switches (<file name>),
1226 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
1228 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1230 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
1231 implement style check that overriding operations are explicitly marked
1234 * style.ads (Missing_Overriding): new procedure that provides interface
1237 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
1238 that the declaration or body of overriding operations carries an
1239 explicit overriding indicator.
1242 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
1243 explicit indicator should be present.
1245 * sem_ch6.adb (Verify_Overriding_Indicator,
1246 Check_Overriding_Indicator): If operation is overriding, check whether
1247 declaration and/or body of subprogram should be present
1249 2008-08-20 Vincent Celier <celier@adacore.com>
1251 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
1252 gprbuild when casing is MixedCase, whatever the casing of the letters
1255 2008-08-20 Gary Dismukes <dismukes@adacore.com>
1257 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
1258 creating dummy init proc.
1259 (Requires_Init_Proc): Return False in the case No_Default_Initialization
1260 is in force and the type does not have associated default
1261 initialization. Move test of Is_Public (with tests of restrictions
1262 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
1263 for default initialization.
1265 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
1267 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
1268 of any alias or prefix but having attached parameters (as \"-O2\").
1270 2008-08-20 Robert Dewar <dewar@adacore.com>
1272 * s-fileio.adb: Minor reformatting
1274 2008-08-20 Thomas Quinot <quinot@adacore.com>
1276 * exp_strm.adb (Build_Elementary_Input_Call,
1277 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
1278 selects the stream attribute routines for long float types.
1280 2008-08-20 Vincent Celier <celier@adacore.com>
1282 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
1284 * prj.ads (Array_Data): Add a component Location
1286 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1289 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
1290 argument for ASIS and navigation use.
1292 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1294 * einfo.ads: Add comment.
1296 2008-08-20 Bob Duff <duff@adacore.com>
1298 * sem_eval.ads: Minor comment fix.
1300 2008-08-20 Bob Duff <duff@adacore.com>
1302 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
1303 folding. We were folding things like "False and then ...", but not
1304 "X and then ..." where X is a constant whose value is known at compile
1307 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
1309 * exp_ch5.adb (Controlled_Type): New routine.
1310 (Expand_N_Extended_Return_Statement): When generating a move of the
1311 final list in extended return statements, check the type of the
1312 function and in the case of double expanded return statements, the type
1313 of the returned object.
1314 (Expand_Simple_Function_Return): Perform an interface conversion when
1315 the type of the returned object is an interface and the context is an
1316 extended return statement.
1318 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1320 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
1321 and the full view is visible, set flag on full view as well.
1323 2008-08-20 Thomas Quinot <quinot@adacore.com>
1325 * g-comlin.adb: Minor reformatting
1326 Minor code reorganization.
1328 * freeze.adb: Minor reformatting
1330 2008-08-20 Vincent Celier <celier@adacore.com>
1332 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
1333 source of another project.
1335 2008-08-20 Pascal Obry <obry@adacore.com>
1337 * s-os_lib.ads: Minor reformatting.
1339 2008-08-20 Arnaud Charlet <charlet@adacore.com>
1341 * gnatvsn.ads: Minor reformatting.
1343 2008-08-20 Arnaud Charlet <charlet@adacore.com>
1345 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
1346 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
1347 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
1348 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
1349 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
1350 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
1351 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
1352 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
1353 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
1354 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
1355 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
1356 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
1357 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
1358 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
1359 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
1360 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
1361 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
1362 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
1363 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
1364 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
1365 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
1366 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
1367 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
1368 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
1369 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
1370 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
1371 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
1372 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
1373 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
1374 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
1375 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
1376 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
1377 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
1378 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
1379 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
1380 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
1381 s-poosiz.adb, link.c: Fix copyright notice.
1383 2008-08-20 Arnaud Charlet <charlet@adacore.com>
1385 * g-comlin.ads: Update comments.
1387 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1389 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
1391 2008-08-20 Gary Dismukes <dismukes@adacore.com>
1394 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
1395 Make_Implicit_Exception_Handler when rewriting an exception handler with
1396 a choice parameter, and pass the handler's Sloc instead of that of the
1397 handled sequence of statements. Make_Implicit_Exception_Handler sets the
1398 Sloc to No_Location (unless debugging generated code), which we don't
1399 want for the case of a user handler.
1401 2008-08-20 Robert Dewar <dewar@adacore.com>
1403 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
1406 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
1407 now labeled as info msgs, not warnings.
1409 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
1411 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
1413 * a-textio.adb: Remove redundant test.
1415 * a-witeio.adb: Minor code reorganization
1416 Remove redundant test found working on another issue
1418 * a-ztexio.adb: Minor code reorganization
1419 Remove redundant test found working on another issue
1421 2008-08-20 Thomas Quinot <quinot@adacore.com>
1423 * s-fileio.adb (Open) Use C helper function to determine whether a
1424 given errno value corresponds to a "file not found" error.
1426 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
1428 2008-08-20 Jose Ruiz <ruiz@adacore.com>
1430 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
1431 to get access to the per-task errno variable.
1432 (__set_errno for MaRTE): Do not redefine this function here since it is
1433 already defined in MaRTE.
1435 2008-08-20 Tristan Gingold <gingold@adacore.com>
1437 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
1439 2008-08-20 Robert Dewar <dewar@adacore.com>
1441 * freeze.adb: Minor reformatting
1443 * g-comlin.adb: Minor reformatting
1445 * g-socket.adb: Minor reformatting
1447 * g-socthi-mingw.adb: Minor reformatting
1449 * g-stheme.adb: Minor reformatting
1451 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1453 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
1454 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
1455 confusion between partial and full views of an ancestor of the context
1456 type when the parent is a private extension declared in a parent unit,
1457 and full views are available for the context type.
1459 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
1460 Robert Dewar <dewar@adacore.com>
1463 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
1465 Move comment in the right place.
1466 * g-comver.adb (Version): Look for a zero-termination in
1467 addition to a closing parenthesis.
1469 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
1471 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
1472 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
1473 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
1474 Is_Package_Or_Generic_Package instead of hand-crafted tests.
1476 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
1479 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
1482 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1484 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
1486 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1488 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
1489 for back-copy statements in lieu of that of the actual.
1491 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1494 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
1495 setjmp test consistently. Adjust for new behavior of flag_stack_check.
1496 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
1497 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
1499 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
1502 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
1503 * sem_attr.adb (Check_Type): The current instance of a protected
1504 object is not a type name.
1505 (Analyze_Access_Attribute): Accept instances of protected objects.
1506 (Analyze_Attribute, Attribute_Address clause): Ditto.
1507 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
1508 the prefix as being the current instance if needed.
1510 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1512 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
1513 Remove duplicate s-win32.o. Add s-winext.o.
1515 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1517 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
1518 with SOSC.SOCK__STREAM.
1519 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
1522 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
1524 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
1525 * gsocket.h, socket.c: Update to support RTEMS.
1526 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
1528 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
1529 Robert Dewar <dewar@adacore.com>
1531 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
1532 left argument even when right argument is 0.
1533 (Expand_N_Op_Mod): Ditto when right argument is 1.
1534 (Expand_N_Op_Multiply): Ditto when any argument is 0.
1535 (Expand_N_Op_Rem): Ditto when right argument is 1.
1537 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1539 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
1542 2008-08-08 Ed Schonberg <schonberg@adacore.com>
1544 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
1545 from Freeze_Entity. Used to generate cross-reference information for
1546 types declared in generic packages.
1548 2008-08-08 Thomas Quinot <quinot@adacore.com>
1550 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
1553 2008-08-08 Thomas Quinot <quinot@adacore.com>
1556 On Windows, include <errno.h> and redefine only selected errno values
1557 from their <winsock2.h> definitions.
1559 * s-osinte-freebsd.ads: Minor reformatting
1561 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
1563 * g-soccon.ads: New file.
1565 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
1566 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
1567 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
1568 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
1569 unit, to allow building software that depends on this internal unit
1570 with both older and newer compilers.
1572 2008-08-08 Robert Dewar <dewar@adacore.com>
1574 * s-strxdr.adb: Minor reformatting
1576 2008-08-08 Bob Duff <duff@adacore.com>
1578 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
1579 checking for integer operations (including division by zero)", which
1580 is wrong -- divide by zero is not part of overflow checking.
1581 Also added misc clarification about what check-suppression means.
1583 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
1585 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
1587 * g-comlin.adb (Add_Switch): Handle addition of switches at the
1588 begining of the command line.
1589 (Append, Add): Renaming of Append to Add as this now allows addition
1590 at the begining of the list.
1592 * g-comlin.ads (Add_Switch): Handle addition of switches at the
1593 begining of the command line.
1595 2008-08-08 Thomas Quinot <quinot@adacore.com>
1598 (Name): Document application scope (only legacy PC serial ports on
1601 2008-08-08 Thomas Quinot <quinot@adacore.com>
1603 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
1604 previous change, not needed after all.
1606 2008-08-08 Ed Schonberg <schonberg@adacore.com>
1608 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
1609 exclusion indicator is present
1611 2008-08-08 Robert Dewar <dewar@adacore.com>
1613 * g-comlin.adb: Minor code reorganization
1616 * g-comlin.ads: Minor reformatting
1618 * s-fileio.adb: Minor reformatting
1620 * sem_attr.adb: Minor code reorganization (use Nkind_In)
1623 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
1625 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
1626 with s-oscons-tmplt.i.
1628 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
1630 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
1632 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1634 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
1637 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
1638 of a formal parameter of an incomplete type. Improve error message for
1639 other improper uses of incomplete types.
1641 2008-08-06 Robert Dewar <dewar@adacore.com>
1643 * gnat_ugn.texi: Clarify -gnato documentation
1645 2008-08-06 Thomas Quinot <quinot@adacore.com>
1647 * gcc-interface/Makefile.in,
1648 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
1649 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
1650 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
1651 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
1652 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
1653 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
1654 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
1655 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
1656 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
1657 Remove GNAT.Sockets.Constants. This internal package is replaced by
1658 System.OS_Constants.
1660 2008-08-06 Thomas Quinot <quinot@adacore.com>
1662 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
1663 Remove obsolete targets referencing gen-soccon
1664 When generating s-oscons.ads, use a file name that includes the
1665 THREAD_KIND, to ensure that the (potentially different) version from a
1666 previous build with a different threads flavour does not get reused.
1668 2008-08-06 Thomas Quinot <quinot@adacore.com>
1670 * sem_res.adb: Minor reformatting
1672 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
1673 only when the operating system reports a non-existing file or directory
1674 (ENOENT), otherwise raise Name_Error.
1676 * exp_ch11.adb: Minor reformatting
1678 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1680 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
1681 incomplete, add the access_to_subprogram type to the list of private
1682 dependents only if the incomplete type will be completed in the current
1684 (Build_Discriminant_Constraints): If the type of the discriminant is
1685 access_to_variable, reject a constraint that is access_to_constant.
1687 2008-08-06 Thomas Quinot <quinot@adacore.com>
1689 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1690 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1691 g-sttsne-dummy.ads: New files.
1693 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1694 with pragma Unimplemented_Unit for sockets packages on Nucleus.
1696 2008-08-06 Pascal Obry <obry@adacore.com>
1698 * adaint.c: Another fix for ACL support on Windows.
1700 2008-08-06 Javier Miranda <miranda@adacore.com>
1702 * exp_disp (Expand_Interface_Actuals): Adds missing support for
1703 expansion of calls to subprograms using selected components.
1705 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1707 * sem_res.adb (Resolve_Call): Use base type to determine whether a
1708 dereference is needed because a subtype of an access_to_subprogram is
1709 simply an access-subtype
1711 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1713 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1714 parameters, always specify the expected separator.
1716 2008-08-06 Thomas Quinot <quinot@adacore.com>
1718 * xnmake.adb: Use new XUtil package for platform independent text
1721 2008-08-06 Vincent Celier <celier@adacore.com>
1723 * gnat_ugn.texi: Document compiler switch -gnateG
1725 2008-08-06 Quentin Ochem <ochem@adacore.com>
1727 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1728 in the case of an empty pattern size.
1729 (Compute_Result): Do not do any computation in the case of an empty
1731 (Report_Result): Fixed computation of the overflow guard.
1733 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1735 * g-awk.adb (Finalize): Do not use directly objects of the type in the
1736 finalization routine to prevent elaboration order anomalies in new
1737 finalization scheme.
1739 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1741 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1742 declaration for the same type.
1744 2008-08-06 Thomas Quinot <quinot@adacore.com>
1746 * sem.adb: Minor rewording (comment)
1748 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1750 * g-comlin.adb (Define_Switch, Get_Switches): New.
1751 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1752 ungrouping switches.
1753 (For_Each_Simple_Switch): Allow more control over parameters handling.
1754 This generic method now allows ungrouping of switches with parameters
1755 and switches with more than one letter after the prefix.
1756 (Set_Command_Line): Take care of switches that are prefixed with a
1757 switch handling parameters without delimiter (-gnatya and -gnaty3 for
1759 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1760 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1762 (Start, Alias_Switches, Group_Switches): Take care of parameters
1763 possibly present inside a group.
1765 * g-comlin.ads (Define_Switch): New method used to define a list of
1766 expected switches, that are necessary for correctly ungrouping switches
1767 with more that one character after the prefix.
1768 (Get_Switches): Method that builds a getopt string from the list of
1769 switches as set previously by Define_Switch.
1770 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1771 status of the operation. Also allow the removal of switches with
1773 (Command_Line_Configuration_Record): Maintain a list of expected
1776 2008-08-06 Doug Rupp <rupp@adacore.com>
1778 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1779 TARGET_MALLOC64 clear.
1781 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1782 if TARGET_MALLOC64 clear.
1784 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1785 (TARGET_MALLC64): New macro. Default to clear.
1787 2008-08-06 Doug Rupp <rupp@adacore.com>
1789 * gcc-interface/utils2.c (snames.h) Include
1790 (TARGET_ABI_OPEN_VMS): Initialize.
1791 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1794 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1796 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1797 null exclusion in a discriminant declaration
1799 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1800 indicators when type is not an access type.
1802 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1803 indicators when type is not an access type.
1805 2008-08-06 Javier Miranda <miranda@adacore.com>
1807 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1808 with the target interface before expanding the code of the interface
1811 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1814 (Freeze_Entity): A deferred constant does not violate the restriction
1815 No_Default_Initialization,
1817 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1818 can carry a null exclusion indicator, and on which an error may be
1819 posted if the indicator is redundant.
1821 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1822 does not apply to a subtype mark that already excludes null.
1824 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1825 exclusion does not apply to a subtype mark that already excludes null.
1827 2008-08-05 Thomas Quinot <quinot@adacore.com>
1829 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1831 2008-08-05 Doug Rupp <rupp@adacore.com>
1833 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1835 2008-08-05 Thomas Quinot <quinot@adacore.com>
1837 * gsocket.h: Make this file includable in a Nucleus environment, which
1838 does not support sockets.
1840 * socket.c: Remove Nucleus-specific hack.
1842 2008-08-05 Pascal Obry <obry@adacore.com>
1844 * adaint.c: Remove support for readable attribute on vxworks and nucleus
1846 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1849 (Analyze_Attribute, case 'Result): handle properly the case where some
1850 operand of the expression in a post-condition generates a transient
1853 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1854 right-hand side when it is an anonymous access_to_subprogram, to force
1855 static accessibility check when needed.
1857 2008-08-05 Sergey Rybin <rybin@adacore.com>
1859 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1860 rule according to the change in the rule option.
1861 Add documentation for -gnatw.b/-gnatw.B
1863 2008-08-05 Robert Dewar <dewar@adacore.com>
1865 * ug_words: Add entries for -gnatw.b/-gnatw.B
1867 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1869 2008-08-05 Vincent Celier <celier@adacore.com>
1871 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1874 * a-ztdeio.adb: Ditto.
1876 2008-08-05 Pascal Obry <obry@adacore.com>
1878 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1881 2008-08-05 Vincent Celier <celier@adacore.com>
1884 (Wide_String_To_String): Returns a String with the same 'First as its
1886 (Wide_Wide_String_To_String): Ditto
1889 (Wide_String_To_String): Document that the lowest index of the returned
1890 String is equal to S'First.
1892 2008-08-05 Thomas Quinot <quinot@adacore.com>
1894 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1896 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1899 2008-08-05 Robert Dewar <dewar@adacore.com>
1901 * opt.ads (Warn_On_Biased_Representation): New flag
1904 (Analyze_Attribute_Definition_Clause): Issue warning when biased
1905 representation is required.
1906 (Minimum_Size): Don't allow biasing if enum rep clause case
1909 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1910 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1912 * usage.adb: Add lines for -gnatw.b/B switches
1914 2008-08-05 Pascal Obry <obry@adacore.com>
1916 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1918 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1920 2008-08-05 Thomas Quinot <quinot@adacore.com>
1922 * socket.c: Minor reformatting.
1924 2008-08-05 Robert Dewar <dewar@adacore.com>
1926 * sem_ch3.adb: Minor reformatting
1928 * prj-nmsc.adb: Minor reformatting
1930 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1932 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1933 visibility check on the component type if the simple test fails.
1935 2008-08-05 Jose Ruiz <ruiz@adacore.com>
1937 * init.c (__gnat_install_handler for linux): If we are building the
1938 Xenomai run time then we need to do two additional things: avoid
1939 memory swapping and transform the Linux environment task into a native
1942 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1943 time): Use interface to Xenomai native skin and avoid linux-specific
1944 way of setting CPU affinity.
1945 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1947 2008-08-05 Bob Duff <duff@adacore.com>
1949 * checks.ads: Minor comment fix
1951 2008-08-05 Thomas Quinot <quinot@adacore.com>
1953 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1954 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1957 2008-08-05 Robert Dewar <dewar@adacore.com>
1959 * mlib.adb: Minor code reorganization
1962 * make.adb: Minor reformatting
1964 * prj-attr.ads: Minor reformatting
1966 * s-os_lib.adb: Minor reformatting
1968 * s-fileio.adb: Minor code reorganization
1971 * prj.ads: Minor reformatting
1973 2008-08-05 Bob Duff <duff@adacore.com>
1975 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1976 unresolved initial value of "null", because it causes implicitly
1977 generated "=" operators to be ambiguous, and because this type should
1978 not be passed to gigi.
1980 2008-08-05 Vincent Celier <celier@adacore.com>
1982 * mlib.adb: Update comments.
1984 * make.adb (Switches_Of): Check for Switches (others), before checking
1985 for Default_Switches ("Ada").
1986 (Gnatmake): Use Builder'Switches (others) in preference to
1987 Builder'Default_Switches ("Ada") if there are several mains.
1990 (Add_Attribute): Add component Others_Allowed in Attribute_Record
1994 Add markers to indicates that attributes Switches allow others as index
1995 (Others_Allowed_For): New Boolean function, returning True for
1996 attributes with the mark.
1997 (Initialize): Recognize optional letter 'O' as the marker for
1998 associative array attributes where others is allowed as the index.
2001 (Others_Allowed_For): New Boolean function
2002 (Attribute_Record): New Boolean component Others_Allowed
2005 (Parse_Attribute_Declaration): For associative array attribute where
2006 others is allowed as the index, allow others as an index.
2009 (Process_Binder): Skip associative array attributes with index others
2010 (Process_Compiler): Ditto
2013 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
2014 index is All_Other_Names.
2017 (All_Other_Names): New constant
2020 (Process_Declarative_Items): Skip associative array attribute when index
2021 is reserved word "others".
2023 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
2025 * gen-oscons.c: Adapt for VMS where termios.h is not available.
2027 2008-08-05 Thomas Quinot <quinot@adacore.com>
2029 * a-rttiev.adb: Minor reformatting (comments)
2031 * gen-soccon.c: Rename to gen-oscons.c
2033 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
2034 GNAT.Sockets.Constants.
2035 Add new constants for GNAT.Serial_Communications and System.File_IO.
2037 2008-08-05 Javier Miranda <miranda@adacore.com>
2039 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
2040 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
2041 implementation of this routine has been simplified.
2043 2008-08-05 Pascal Obry <obry@adacore.com>
2045 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
2046 Set_Read_Only Win32 implementation.
2048 2008-08-05 Thomas Quinot <quinot@adacore.com>
2050 * exp_strm.adb: Minor reformatting (comments)
2052 * sem_ch12.adb: Minor reformatting.
2054 2008-08-05 Robert Dewar <dewar@adacore.com>
2056 * sem_ch3.adb: Minor reformatting
2058 * checks.adb: Minor reformatting
2060 2008-08-05 Thomas Quinot <quinot@adacore.com>
2062 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
2063 restriction on Prefix.
2065 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
2067 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
2068 methods needed to handle switch sections when building a command line.
2069 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
2070 Current_Section): New public methods or methods modified to handle
2071 building command lines with sections.
2072 (Set_Command_Line): Take into account sections when analysing a switch
2074 (Start): Sort the switches by sections before iterating the command line
2077 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
2078 Is_New_Section, Current_Section): New methods or methods modified to
2079 handle building command lines with sections.
2081 2008-08-05 Ed Schonberg <schonberg@adacore.com>
2083 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
2084 discriminants, indicate that the corresponding object declaration has
2085 no initialization, to prevent spurious warnings when the access type is
2088 2008-08-05 Ed Schonberg <schonberg@adacore.com>
2090 * sem_res.adb (Resolve_Call): If this is a call to the predefined
2091 Abort_Task, warn if the call appears within a protected operation.
2093 2008-08-04 Robert Dewar <dewar@adacore.com>
2095 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
2097 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2100 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
2101 anonymous access to protected subprogram that is the return type of the
2102 specification of a subprogram body.
2105 (Analyze_Subprogram_Body): if the return type is an anonymous access to
2106 subprogram, freeze it now to prevent access anomalies in the back-end.
2108 * exp_ch9.adb: Minor code cleanup.
2109 Make sure that new declarations are inserted into the tree before
2110 analysis (from code reading).
2112 2008-08-04 Robert Dewar <dewar@adacore.com>
2115 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
2118 2008-08-04 Thomas Quinot <quinot@adacore.com>
2120 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
2122 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
2124 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
2126 2008-08-04 Javier Miranda <miranda@adacore.com>
2128 * sem_prag.adb (Process_Convention): Add missing support for
2129 N_Private_Extension_Declaration nodes.
2131 2008-08-04 Robert Dewar <dewar@adacore.com>
2133 * exp_ch4.adb: Minor reformatting
2135 2008-08-04 Pascal Obry <obry@adacore.com>
2137 * adaint.h: Add missing prototype.
2139 * adaint.c: Refine support for Windows file attributes.
2141 2008-08-04 Robert Dewar <dewar@adacore.com>
2144 (Valid_Conversion): Catch case of designated types having different
2145 sizes, even though they statically match.
2147 2008-08-04 Javier Miranda <miranda@adacore.com>
2149 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
2150 added in previous patch to handle access to subprograms.
2152 2008-08-04 Robert Dewar <dewar@adacore.com>
2155 (Freeze_Entity): Only check No_Default_Initialization restriction for
2156 constructs that come from source
2158 2008-08-04 Thomas Quinot <quinot@adacore.com>
2160 * exp_ch6.adb: Minor comment fix.
2162 * sem_ch4.adb: Minor reformatting.
2164 2008-08-04 Robert Dewar <dewar@adacore.com>
2166 * sem_res.adb: (Large_Storage_Type): Improve previous change.
2168 2008-08-04 Pascal Obry <obry@adacore.com>
2170 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
2173 2008-08-04 Javier Miranda <miranda@adacore.com>
2175 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
2176 for N_Formal_Object_Declaration nodes. Adding kludge required by
2177 First_Formal to provide its functionality with access to functions.
2178 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
2179 for anonymous access types returned by functions.
2181 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
2182 conversion of null-excluding access types (required only once to force
2183 the generation of the required runtime check).
2185 * sem_type.adb (Covers): minor reformating
2187 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
2188 with internally generated nodes. Avoid generating the error inside init
2191 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
2192 (Resolve_Null): Generate the null-excluding check in case of assignment
2193 to a null-excluding object.
2194 (Valid_Conversion): Add missing support for anonymous access to
2197 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
2198 anonymous access types whose designated type is an itype. This case
2199 occurs with anonymous access to protected subprograms types.
2200 (Analyze_Return_Type): Add missing support for anonymous access to
2201 protected subprogram.
2203 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
2204 subprograms addition of missing check on matching convention. Required
2205 to properly handle access to protected subprogram types.
2207 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
2208 null excluding access types.
2210 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2212 * sem_ch12.adb: Add comments
2214 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
2215 access type and the allocator is not initialized, warn rather than
2218 2008-08-04 Robert Dewar <dewar@adacore.com>
2220 * exp_ch4.adb: Minor reformatting
2222 * exp_dist.adb: Minor reformatting
2224 * g-comlin.adb: Minor reformatting
2226 2008-08-04 Gary Dismukes <dismukes@adacore.com>
2228 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
2229 target to the type of the aggregate in the case where the target object
2232 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
2233 result type is class-wide and inherently limited, and the expression
2234 has a specific type, create a return object of the specific type, for
2235 more efficient handling of returns of build-in-place aggregates (avoids
2236 conversions of the class-wide return object to the specific type on
2237 component assignments).
2239 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
2240 about a type mismatch for a class-wide function with a return object
2241 having a specific type when the object declaration doesn't come from
2242 source. Such an object can result from the expansion of a simple return.
2244 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
2246 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
2248 * gcc-interface/Makefile.in: Use 64bit-specific system files when
2249 compiling for 64bit windows.
2251 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
2253 * g-comlin.adb (Group_Switches): Preserve the switch order when
2254 grouping and allow switch grouping of switches with more than one
2255 character extension (e.g. gnatw.x).
2256 (Args_From_Expanded): Remove this now obsolete method.
2258 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2260 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
2261 chain at once, to ensure that type is properly decorated for back-end,
2262 when allocator appears within a loop.
2264 2008-08-04 Kevin Pouget <pouget@adacore.com>
2266 * snames.h, snames.adb, snames.ads:
2267 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
2269 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
2270 Build_To_Any_Call and Build_TypeCode_Call procedures.
2272 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
2274 * rtsfind.ads: Add corresponding names.
2276 * tbuild.adb: Update prefix restrictions to allow '_' character.
2278 2008-08-04 Doug Rupp <rupp@adacore.com>
2280 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
2281 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
2282 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
2283 use it. Calculate pointer range overflow using 64bit types.
2285 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2287 * sem_ch3.adb (Access_Definition): A formal object declaration is a
2288 legal context for an anonymous access to subprogram.
2290 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
2291 indirect call, report success to the caller to include possible
2294 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
2296 of the extended return is an anonymous access_to_subprogram type.
2299 (Resolve_Call): Insert a dereference if the type of the subprogram is an
2300 access_to_subprogram and the context requires its return type, and a
2301 dereference has not been introduced previously.
2303 2008-08-04 Arnaud Charlet <charlet@adacore.com>
2305 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
2306 gnatcheck support in GPS.
2308 2008-08-04 Vincent Celier <celier@adacore.com>
2310 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
2313 2008-08-04 Vincent Celier <celier@adacore.com>
2315 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
2316 variable, but don't check the resulting value as it has no impact on
2320 (Generate_Processed_File): New Boolean flag, set to True in the compiler
2321 when switch -gnateG is used.
2324 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
2325 when the source is modified by the preprocessor and there is no
2326 preprocessing errors.
2328 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
2331 (Load_File): Output the result of preprocessing if the source text was
2334 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
2336 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
2338 * ug_words: Add VMS equivalent for -gnateG
2341 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
2343 2008-08-04 Doug Rupp <rupp@adacore.com>
2345 * gcc-interface/utils2.c:
2346 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
2347 in 32bit descriptor.
2349 2008-08-04 Robert Dewar <dewar@adacore.com>
2351 * par-ch10.adb: Minor reformatting
2353 * i-cobol.adb: Minor reformatting.
2355 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2357 * sem_ch3.adb (Access_Definition): Create an itype reference for an
2358 anonymous access return type of a regular function that is not a
2361 2008-08-04 Vincent Celier <celier@adacore.com>
2363 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
2365 * snames.adb: New standard name Global_Compilation_Switches
2367 * snames.ads: New standard name Global_Compilation_Switches
2369 * make.adb: Correct spelling error in comment
2371 2008-08-04 Arnaud Charlet <charlet@adacore.com>
2373 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
2376 2008-08-04 Thomas Quinot <quinot@adacore.com>
2378 * sem_ch10.adb: Minor comment fix.
2380 2008-08-04 Robert Dewar <dewar@adacore.com>
2382 * restrict.adb: Improved messages for restriction warnings
2384 * restrict.ads: Improved messages for restriction messages
2386 * s-rident.ads (Profile_Name): Add No_Profile
2388 2008-08-04 Robert Dewar <dewar@adacore.com>
2390 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
2392 2008-08-04 Robert Dewar <dewar@adacore.com>
2394 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
2396 2008-08-04 Vincent Celier <celier@adacore.com>
2399 (Copy_Package_Declarations): When inheriting package Naming from a
2400 project being extended, do not inherit source exception names.
2402 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2404 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
2405 list of declaration to find previous subprogram, do not go to the
2406 original node of a generic unit.
2408 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
2410 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
2411 New case. Convert BOOLEAN_TYPE operation to the default integer type.
2413 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
2415 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
2416 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
2417 and adjust for above renaming.
2418 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
2419 gnu_expr_alt_type parameter. Convert the expression to it instead
2420 of changing its type in place.
2421 (build_function_stub): Adjust call to above function.
2423 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
2425 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
2426 code. Do not get full definition of deferred constants with address
2427 clause for a use. Do not ignore deferred constant definitions with
2428 address clause. Ignore constant definitions already marked with the
2430 <object>: Remove obsolete comment. For a deferred constant with
2431 address clause, get the initializer from the full view.
2432 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
2433 Rework and remove obsolete comment.
2434 <N_Object_Declaration>: For a deferred constant with address clause,
2435 mark the full view with the error node.
2436 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
2439 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
2441 * rtsfind.ads: Add block IO versions of stream routines for Strings.
2443 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
2444 sem_prag.adb, snames.adb, snames.ads, snames.h,
2445 par-prag.adb: Undo previous stream related changes.
2447 * s-rident.ads: Add new restriction No_Stream_Optimizations.
2449 * s-ststop.ads, s-ststop.adb: Comment reformatting.
2450 Define enumeration type to designate different IO mechanisms.
2451 Enchance generic package Stream_Ops_Internal to include an
2452 implementation of Input and Output.
2454 * exp_attr.adb (Find_Stream_Subprogram): If restriction
2455 No_Stream_Optimization is active, choose the default byte IO
2456 implementations of stream attributes for Strings.
2457 Otherwise use the corresponding block IO version.
2459 2008-08-01 Olivier Hainque <hainque@adacore.com>
2461 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
2462 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
2464 2008-08-01 Robert Dewar <dewar@adacore.com>
2466 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
2467 convert plain identifier into defining identifier.
2469 2008-08-01 Robert Dewar <dewar@adacore.com>
2471 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
2474 * lib-xref.adb: Add error defense.
2476 2008-08-01 Bob Duff <duff@adacore.com>
2478 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
2480 2008-08-01 Gary Dismukes <dismukes@adacore.com>
2482 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
2483 correct accessibility levels. In the "when others" case, retrieve the
2484 access level of the Etype of Prev rather than Prev_Orig, because the
2485 original exression has not always been analyzed.
2487 2008-08-01 Robert Dewar <dewar@adacore.com>
2489 * prj-nmsc.adb: Minor reformatting
2491 * sem_ch4.adb: Minor reformatting
2492 Minor code reorganization
2494 * prj.ads: Minor reformatting
2496 * s-os_lib.adb: Minor reformatting
2498 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
2501 * scans.ads: Minor reformatting.
2503 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
2504 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
2507 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2509 * sem_ch12.adb: Minor comment reformatting
2511 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
2514 2008-08-01 Robert Dewar <dewar@adacore.com>
2516 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
2519 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2521 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
2522 converted is a real literal and the target type has static bounds,
2523 perform the conversion exactly to prevent floating-point anomalies on
2526 2008-08-01 Vincent Celier <celier@adacore.com>
2528 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
2530 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
2532 * prj.adb (Object_Exist_For): Use Object_Generated, not
2533 Objects_Generated that is removed and was never modified anyway.
2536 (Path_Syntax_Kind): New enumeration type
2537 (Language_Config): New component Path_Syntax, defaulted to Host.
2538 Components PIC_Option and Objects_Generated removed, as they are not
2541 * snames.adb: New standard name Path_Syntax
2543 * snames.ads: New standard name Path_Syntax
2545 2008-08-01 Vincent Celier <celier@adacore.com>
2548 (Adalib_Path): New variable to store the path of the adalib directory
2549 when procedure Specify_Adalib_Dir is called.
2550 (Lib_Directory): If Adalib_Path is not null, return its value
2551 (Specify_Adalib_Dir): New procedure
2553 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
2555 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2558 (Check_Precondition_Postcondition): If not generating code, analyze the
2559 expression in a postcondition that appears in a subprogram body, so that
2560 it is properly decorated for ASIS use.
2562 2008-08-01 Gary Dismukes <dismukes@adacore.com>
2564 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
2565 Orig_Prev to Prev in the case where the actual is N_Function_Call or
2566 N_Identifier. This was interfering with other cases that are rewritten
2567 as N_Identifier, such as allocators, resulting in passing of the wrong
2568 accessibility level, and based on testing this code is apparently no
2569 longer needed at all.
2571 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2573 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
2574 procedure call whose prefix
2575 is a parameterless function call that returns an access_to_procedure.
2577 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2579 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
2580 for RTX. Adding a suffix that is incremented at each iteration.
2582 2008-08-01 Robert Dewar <dewar@adacore.com>
2584 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
2587 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
2589 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
2590 paths, which are authorized by Windows but can lead to errors when used
2593 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2595 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
2596 a pending instantiation for the body of a subprogram that is to be
2600 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
2602 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
2603 create a pending instance for its body, so that calls to the subprogram
2604 can be inlined by the back-end.
2606 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2608 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
2611 2008-08-01 Robert Dewar <dewar@adacore.com>
2613 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2615 2008-08-01 Doug Rupp <rupp@adacore.com>
2617 * gnat_rm.texi: Document new mechanism Short_Descriptor.
2619 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
2622 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2623 mechanism and Short_Descriptor mechanism values.
2625 * snames.adb (preset_names): Add short_descriptor entry.
2627 * snames.ads: Add Name_Short_Descriptor.
2629 * types.h: Add new By_Short_Descriptor mechanism values.
2631 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2632 mechanism and Short_Descriptor mechanism values.
2634 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
2636 (Descriptor_Codes): Modify range for new mechanism values.
2638 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
2641 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
2642 (gnat_to_gnu_param): Handle By_Short_Descriptor.
2644 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
2645 (build_vms_descriptor32): New prototype.
2646 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
2648 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
2649 argument in call fill_vms_descriptor.
2651 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
2652 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
2653 (build_vms_descriptor): Renamed from build_vms_descriptor64.
2654 (convert_vms_descriptor32): New function.
2655 (convert_vms_descriptor64): New function.
2656 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
2659 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
2662 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2664 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
2665 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
2668 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2670 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
2671 current directory so only fully qualified names are allowed.
2673 2008-08-01 Robert Dewar <dewar@adacore.com>
2676 Minor editing, remove uncomfortable use of semicolon
2678 * s-ststop.adb: Add some ??? comments
2680 * sem_ch10.adb: Minor reformatting
2683 Minor comment fixes, some pragmas were not properly
2684 categorized in the comments, documentation change only
2686 * xref_lib.adb: Minor reformatting
2688 * sinput.adb: Minor reformatting
2690 * gnatchop.adb: Minor reformatting
2692 * sem_util.ads: Minor reformatting.
2694 * opt.ads: Minor documentation fix
2696 * scng.adb: Minor reformatting
2698 * prj-part.adb: Update comments
2700 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2702 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2703 tagged synchronized type, use corresponding record type.
2705 2008-08-01 Doug Rupp <rupp@adacore.com>
2707 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2708 dummy transfer address for debugging.
2710 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2712 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2714 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
2716 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2717 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2719 2008-07-31 Pascal Obry <obry@adacore.com>
2721 * prj-nmsc.adb: Keep Object and Exec directory casing.
2723 2008-07-31 Jose Ruiz <ruiz@adacore.com>
2725 * system-rtx-rtss.ads
2726 Change the default stack size. It is important to set the commit part.
2729 (Initialize): Get the clock resolution.
2730 (RT_Resolution): Return the clock resolution that is indicated by the
2733 * s-parame-vxworks.adb
2734 Document that this body is used for RTX in RTSS (kernel) mode.
2736 * gcc-interface/Makefile.in
2737 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2738 s-parame-vxworks.adb body in order to have reasonable stack sizes in
2739 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2740 cannot ask for too big values.
2742 2008-07-31 Robert Dewar <dewar@adacore.com>
2744 * exp_aggr.adb: Minor reformatting
2746 * makeutl.adb: Minor reformatting
2748 * prj-env.adb: Minor reformatting
2750 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2752 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2753 tagged type is completed by a concurrent type.
2755 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2758 (Resolve_Record_Aggregate): Bypass error that a type without
2759 components must have a "null record" aggregate when compiling for Ada
2760 2005, since it's legal to give an aggregate of form (others => <>)
2763 2008-07-31 Javier Miranda <miranda@adacore.com>
2765 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2766 handle synchronized types. Required to handle well the object.operation
2767 notation applied to synchronized types.
2769 2008-07-31 Quentin Ochem <ochem@adacore.com>
2771 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2772 anymore - just used internally.
2773 Added handling of very small tasks - when the theoretical size is
2774 already full at the point of the call.
2775 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2776 not need to be added to the result.
2778 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2780 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2781 corresponding spec is a primitive wrapper. Update comment.
2783 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2785 * bindgen.adb Comment reformatting. Update the list of run-time globals.
2786 (Gen_Adainit_Ada): Add the declaration, import and value set for
2787 configuration flag Canonical_Streams.
2788 (Gen_Adainit_C): Add the declaration and initial value of external
2789 symbol __gl_canonical_streams.
2791 * init.c: Update the list of global values computed by the binder.
2793 * opt.ads: Add flag Canonical_Streams.
2795 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2796 semantically handled pragmas.
2798 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2799 (Analyze_Pragma): Add case for pragma Canonical_Streams.
2801 * snames.adb: Add character value for name Canonical_Streams.
2804 Add Name_Canonical_Streams to the list of configuration pragmas.
2805 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2807 * snames.h: Add a definition for Pragma_Canonical_Streams.
2810 Add a flag and import to seize the value of external symbol
2811 __gl_canonical_streams. Update comment and initial value of constant
2814 * gnat_rm.texi: Add section of pragma Canonical_Streams.
2817 Add pragma Canonical_Streams to the list of configuration pragmas.
2819 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2821 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2822 has the form A.B.C and B is a unit renaming, analyze its compilation
2823 unit and add a with_clause on A.b to the context.
2825 2008-07-31 Vincent Celier <celier@adacore.com>
2827 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2828 return the empty string, instead of raising Constraint_Error.
2830 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2832 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2834 * checks.adb (Apply_Accessibility_Check): Insert the check on
2838 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2839 to new parameter Insert_Node on call to Apply_Accessibility_Check.
2840 Necessary to distinguish the insertion node because the dereferenced
2841 formal may come from a rename, but the check must be inserted in
2842 front of the attribute.
2845 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2846 call to Apply_Accessibility_Check.
2847 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2848 on call to Apply_Accessibility_Check.
2851 2008-07-31 Javier Miranda <miranda@adacore.com>
2853 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2854 types when the candidate type is a synchronized type.
2856 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2857 types, and complete management of synchronized types adding missing
2858 code to handle formal that is a synchronized type.
2860 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2861 are not available and cause the compiler to blowup. Found compiling
2862 test with switch -gnatc
2864 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2865 Has_Correct_Formal_Mode plus code cleanup.
2867 2008-07-31 Bob Duff <duff@adacore.com>
2869 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2870 recognized as two end-of-lines, but it should be just one.
2872 2008-07-31 Thomas Quinot <quinot@adacore.com>
2874 * exp_ch9.adb: Minor reformatting
2876 * tbuild.ads: Fix several occurrences of incorrectly referring to
2877 Name_Find as Find_Name.
2879 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2881 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2882 and the context is an object declaration with non-static bounds, treat
2883 the aggregate as non-static.
2885 2008-07-31 Vincent Celier <celier@adacore.com>
2887 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2888 Move back spec of Parse_Single_Project to body, as it is not called
2889 outside of package Prj.Part.
2890 (Project_Data): Remove components Linker_Name, Linker_Path and
2891 Minimum_Linker_Options as they are no longer set.
2892 Remove function There_Are_Ada_Sources from package Prj and move code
2893 in the only place it was used, in Prj.Env.Set_Ada_Paths.
2895 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2897 * mlib-utl.ads: Fix typo.
2899 2008-07-31 Robert Dewar <dewar@adacore.com>
2901 * sem_ch12.adb: Minor reformatting
2903 2008-07-31 Sergey Rybin <rybin@adacore.com>
2905 * gnat_ugn.texi: Change the description of the
2906 Overly_Nested_Control_Structures: now the rule always requires a
2907 positive parameter for '+R' option
2909 2008-07-31 Thomas Quinot <quinot@adacore.com>
2911 * g-pehage.adb: Minor reformatting
2913 2008-07-31 Pascal Obry <obry@adacore.com>
2915 * s-finimp.ads: Minor reformatting.
2917 2008-07-31 Vincent Celier <celier@adacore.com>
2919 * s-regexp.ads: Minor comment fix
2921 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2923 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2924 so that we can compile this file successfully with -gnatc.
2926 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2928 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2929 of the type when looking for stream subprograms for type String,
2930 Wide_String and Wide_Wide_String.
2932 * s-ststop.adb: Change the initialization expression of constant
2935 2008-07-31 Geert Bosch <bosch@adacore.com>
2938 New file implementing __gnat_mulv64 signed integer multiplication with
2941 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2943 * gcc-interface/gigi.h:
2944 (standard_types): Add ADT_mulv64_decl
2945 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2947 * gcc-interface/utils.c:
2948 (init_gigi_decls): Add initialization of mulv64_decl
2950 * gcc-interface/trans.c:
2951 (build_unary_op_trapv): New function
2952 (build_binary_op_trapv): New function
2953 (gnat_to_gnu): Use the above functions instead of
2954 build_{unary,binary}_op
2956 * gcc-interface/Makefile.in
2957 (LIBGNAT_SRCS): Add arit64.c
2958 (LIBGNAT_OBJS): Add arit64.o
2960 2008-07-31 Vincent Celier <celier@adacore.com>
2962 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2963 Linker'Default_Switches are declared. Warn if they are declared.
2965 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2967 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2968 Insert_Actions to place the pointer declaration in the code, rather
2969 than Insert_Before_And_Analyze, so that insertions of temporaries are
2970 kept in the proper order when transient scopes are present.
2973 2008-07-31 Robert Dewar <dewar@adacore.com>
2975 * einfo.adb (Spec_PPC): Now defined for generic subprograms
2977 * einfo.ads (Spec_PPC): Now defined for generic subprograms
2979 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2982 2008-07-31 Vincent Celier <celier@adacore.com>
2984 * s-os_lib.adb: Minor comment fix
2986 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2988 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2989 transfer pre/postconditions from generic copy to original tree, so that
2990 they will appear in each instance.
2991 (Process_PPCs): Do not transform postconditions into a procedure in a
2992 generic context, to prevent double expansion of check pragmas.
2994 * sem_attr.adb: In an instance, the prefix of the 'result attribute
2995 can be the renaming of the
2996 current instance, so check validity of the name accordingly.
2998 2008-07-31 Robert Dewar <dewar@adacore.com>
3000 * mlib-utl.ads: Minor reformatting
3002 2008-07-31 Ed Schonberg <schonberg@adacore.com>
3004 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
3005 from context. This attribute must be usable in Ada95 mode.
3006 The attribute can appear in the body of a function marked
3007 Inline_Always, but in this case the postocondition is not enforced.
3009 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
3010 of an inlined call pre- and postconditions are legal
3012 2008-07-31 Vincent Celier <celier@adacore.com>
3014 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
3015 were for gprmake only
3017 2008-07-31 Robert Dewar <dewar@adacore.com>
3019 * gnat_ugn.texi: Update -gnatN documentation.
3021 * gnat_rm.texi: Add note about pre/postcondition
3022 pragmas not checked in conjunction with front-end inlining.
3024 2008-07-31 Robert Dewar <dewar@adacore.com>
3026 * g-pehage.adb, g-pehage.ads: Minor reformatting
3028 2008-07-31 Arnaud Charlet <charlet@adacore.com>
3030 * mlib-utl.ads, prj-makr.ads: Add comments.
3032 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3034 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
3035 [WINDOWS]: Add s-winext.o.
3037 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
3040 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
3041 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
3042 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
3043 Set precision to 1 for subtype of BOOLEAN_TYPE.
3044 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
3045 (make_type_from_size): Deal with BOOLEAN_TYPE.
3046 * gcc-interface/misc.c (gnat_print_type): Likewise.
3047 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
3048 Set boolean_type_node as its translation in the table, as well
3049 as boolean_false_node for False and boolean_true_node for True.
3050 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
3051 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
3052 (create_param_decl): Deal with BOOLEAN_TYPE.
3053 (build_vms_descriptor): Likewise.
3054 (build_vms_descriptor64): Likewise.
3055 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
3057 2008-07-30 Robert Dewar <dewar@adacore.com>
3059 * exp_ch9.adb: Minor reformatting
3061 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
3062 if no primitive operation is found.
3064 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
3066 * sem_ch8.adb: Minor reformatting
3068 2008-07-30 Laurent Pautet <pautet@adacore.com>
3071 Remove a limitation on the length of the words handled by the minimal
3072 perfect hash function generator.
3075 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
3078 2008-07-30 Robert Dewar <dewar@adacore.com>
3080 * gnatlink.adb: Minor reformatting
3082 2008-07-30 Thomas Quinot <quinot@adacore.com>
3084 * rtsfind.adb (Check_RPC): Check version consistency even when not
3085 generating RCI stubs. Provide more detailed error message in case of
3088 2008-07-30 Ed Schonberg <schonberg@adacore.com>
3090 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
3091 as a actual in an instance, check for a missing attribute to prevent
3092 program_error on an illegal program.
3094 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
3095 error if primitive is not found, so that exception can be handled
3096 elsewhere on illegal programs.
3098 2008-07-30 Robert Dewar <dewar@adacore.com>
3100 * uintp.adb (UI_GCD): Fix potential overflow
3102 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
3104 * einfo.adb: Flag245 is now used.
3105 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
3106 check to include functions.
3107 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
3108 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
3110 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
3111 to the list of displayed flags.
3113 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
3114 Wrapped_Entity. These two flags are now present in functions.
3115 New flag Is_Private_Primitive.
3116 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
3119 (Build_Wrapper_Bodies): New subprogram.
3120 (Build_Wrapper_Body): The spec and body have been moved to in
3121 Build_Wrapper_ Bodies. Code cleanup.
3122 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
3123 Wrappers are now generated for primitives declared between the private
3124 and full view of a concurrent type that implements an interface.
3125 (Build_Wrapper_Specs): New subprogram.
3126 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
3127 creation mechanism with a call to Build_Wrapper_Bodies.
3128 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
3129 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
3130 (Expand_N_Task_Body): Replace the wrapper body creation
3131 mechanism with a call to Build_Wrapper_Bodies.
3132 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
3133 creation mechanism with a call to Build_Wrapper_Specs.
3134 (Is_Private_Primitive_Subprogram): New subprogram.
3135 (Overriding_Possible): Code cleanup.
3136 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
3138 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
3140 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
3141 (Process_Full_View): Build wrapper specs for all primitives
3142 that belong to a private view completed by a concurrent type
3143 implementing an interface.
3145 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
3147 concurrent type with a private view that implements an interface, try to
3148 find the proper spec.
3149 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
3150 primitive if the type of its first parameter is a non-generic tagged
3152 (Analyze_Subprogram_Specification): Code reformatting.
3153 (Disambiguate_Spec): New routine.
3154 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
3155 (Is_Private_Concurrent_Primitive): New routine.
3158 (Find_Corresponding_Spec): Add a formal to control the output of errors.
3160 2008-07-30 Doug Rupp <rupp@adacore.com>
3162 * gigi.h (build_vms_descriptor64): New function prototype.
3163 (fill_vms_descriptor): Modified function prototype.
3165 * utils.c (build_vms_descriptor64): New function.
3167 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
3169 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
3172 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
3173 64bit and 32bit descriptor and save the 64bit version as an alternate
3174 TREE_TYPE in the parameter.
3175 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
3178 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
3180 2008-07-30 Robert Dewar <dewar@adacore.com>
3182 * make.adb: Minor reformatting
3184 * mlib-utl.adb: Minor reformatting
3186 * osint.ads: Minor reformatting
3188 2008-07-30 Jose Ruiz <ruiz@adacore.com>
3191 (__gnat_file_exists): Do not use __gnat_stat for RTX.
3192 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
3193 avoid the use of this symbol from libgcc.a in RTX kernel mode.
3196 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
3197 the function RtPrintf for console output.
3199 * argv.c Do not use the environ variable for RTX.
3201 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
3202 been moved before the call to Osint.Add_Default_Search_Dirs in order
3203 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
3204 from the appropriate run time.
3207 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
3208 target is a RTSS module for RTX.
3210 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
3211 RTX_RTSS_Kernel_Module
3212 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
3214 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
3215 exception handling mechanism for Windows and RTX in Win32 mode, but
3216 not for RTX in kernel mode (RTSS).
3217 (LIBGNAT_SRCS): Remove ada.h
3219 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
3221 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
3222 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
3223 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
3224 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
3225 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
3226 ALL_ADA_CFLAGS): Remove.
3227 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
3228 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
3229 (GCC_CFLAGS): Remove X_CFLAGS.
3230 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
3231 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
3232 (ADA_CFLAGS): Substitute.
3234 2008-07-30 Laurent Guerby <laurent@guerby.net>
3237 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
3238 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
3239 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
3240 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
3241 by stamp-gnatlib2-rts.
3243 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3245 PR documentation/15479
3246 * gnat-style.texi: Remove AdaCore copyright statement and GPL
3247 statement for GNAT. Add @copying stanza, use it. Update to
3248 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
3249 title as Front-Cover Text.
3250 * gnat_rm.texi: Likewise.
3251 * gnat_ugn.texi: Likewise.
3253 2008-07-29 Jan Hubicka <jh@suse.cz>
3255 * trans.c (process_inlined_subprograms): Remove tree_really_inline
3258 2008-07-29 Arnaud Charlet <charlet@adacore.com>
3260 * gcc-interface: New directory.
3262 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
3263 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
3264 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
3265 to gcc-interface subdirectory.
3267 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3269 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
3271 2008-07-28 Jan Hubicka <jh@suse.cz>
3273 * misc.c (gnat_post_options): Do not set flag_no_inline.
3275 2008-07-28 Richard Guenther <rguenther@suse.de>
3277 Merge from gimple-tuples-branch.
3279 2008-07-22 Olivier Hainque <hainque@adacore.com>
3281 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
3282 this is called for an elab proc to be discarded if empty.
3283 * utils.c (end_subprog_body): Honor ELAB_P.
3284 (build_function_stub): Adjust call to end_subprog_body.
3285 * trans.c (Subprogram_Body_to_gnu): Likewise.
3286 (gigi): Reorganize processing of elab procs to prevent
3287 gimplifying twice, using the new end_subprog_body argument.
3289 2008-07-19 Richard Guenther <rguenther@suse.de>
3291 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
3292 (utils.o): Likewise.
3293 * trans.c: Include tree-iterator.h.
3294 (gnat_gimplify_expr): Adjust prototype. Fix typo.
3295 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
3296 (set_expr_location_from_node): Likewise.
3298 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
3300 * utils.c: Include tree-iterator.h.
3301 * gigi.h (gnat_gimplify_expr): Adjust prototype.
3303 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
3305 * trans.c: Include gimple.h instead of tree-gimple.h.
3308 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
3310 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
3312 2008-07-25 Jan Hubicka <jh@suse.cz>
3314 * utils.c (end_subprog_body): Remove inline trees check.
3315 * misc.c (gnat_post_options): Do not set flag_inline_trees.
3317 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3319 * raise-gcc.c: Move tsystem.h before tm.h.
3321 2008-07-20 Arnaud Charlet <charlet@adacore.com>
3323 * gnathtml.pl: New file.
3325 2008-07-19 Olivier Hainque <hainque@adacore.com>
3327 * targtyps.c (get_target_default_allocator_alignment): Use
3328 MALLOC_ABI_ALIGNMENT.
3330 2008-07-17 Olivier Hainque <hainque@adacore.com>
3332 * adaint.c (__MINGW32__ section): Include ctype.h and define
3333 a fallback ISALPHA if IN_RTS.
3334 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
3336 2008-07-17 Olivier Hainque <hainque@adacore.com>
3338 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
3339 argument, to apply to references in addition to definitions. Prevent
3340 setting TREE_STATIC on externals.
3341 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
3343 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3345 PR documentation/15479
3346 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
3347 Replace backets around optional parameters with @ovar
3348 where possible, use @r{[}, @r{]} otherwise.
3349 Replace some @r, @i, and @emph with @var where appropriate.
3351 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
3353 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
3355 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3357 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
3358 -Wc++-compat warnings.
3359 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
3360 __gnat_locate_exec_on_path): Likewise.
3361 * decl.c (annotate_value): Likewise.
3362 * misc.c (gnat_handle_option): Likewise.
3363 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
3364 post_error_ne_tree): Likewise.
3366 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
3368 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
3369 version of its type, attempt to first convert its elements.
3371 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
3373 * Makefile.in: Fix *86 kfreebsd target specific pairs.
3375 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
3377 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
3379 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
3381 * utils2.c (known_alignment): Derive the alignment from pointed-to
3382 types only if it is otherwise unknown.
3383 <INTEGER_CST>: Tidy.
3384 <MULT_EXPR>: Likewise.
3385 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
3388 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3391 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
3393 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3395 * gnat_rm.texi (Implementation Defined Characteristics)
3396 (Standard Library Routines): Use @smallexample for indented
3397 text. Drop Indentation outside examples.
3398 * gnat_ugn.texi: Likewise.
3400 2008-06-13 Olivier Hainque <hainque@adacore.com>
3402 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
3404 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
3405 realignment with force_align_arg_pointer attribute on foreign
3406 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
3408 2008-06-13 Olivier Hainque <hainque@adacore.com>
3410 * utils.c (rest_of_record_type_compilation): When computing
3411 encodings for the components of a variable size type, early
3412 strip conversions on the current position expression to make
3413 sure it's shape is visible. Use remove_conversions for this
3416 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3418 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
3419 constrained subtype of a discriminated type, discard the fields that
3420 are beyond its limits according to its size.
3422 2008-06-10 Olivier Hainque <hainque@adacore.com>
3424 * utils.c (create_subprog_decl): If this is for the 'main' entry
3425 point according to the asm name, redirect main_identifier_node.
3427 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
3429 * decl.c (components_to_record): Adjust the packedness for the
3430 qualified union as well.
3432 2008-06-09 Arnaud Charlet <charlet@adacore.com>
3434 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
3437 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
3439 * sem_res.adb (Large_Storage_Type): A type is large if it
3440 requires as many bits as Positive to store its values and its
3441 bounds are known at compile time.
3442 * sem_ch13.adb (Minimum_Size): Note that this function returns
3443 0 if the size is not known at compile time.
3445 2008-06-06 Nicolas Setton <setton@adacore.com>
3446 Olivier Hainque <hainque@adacore.com>
3448 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
3449 attribute, parallel descriptive type attached to another
3450 type for debug info generation purposes.
3451 * utils.c (add_parallel_type): New function, register
3452 parallel type to be attached to a type.
3453 (get_parallel_type): New function, fetch a registered
3454 parallel type, if any.
3455 (rest_of_record_type_compilation): Register the parallel
3456 type we make for variable size records.
3457 * gigi.h (add_parallel_type, get_parallel_type): Declare.
3458 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
3459 parallel debug types we make.
3460 * trans.c (extract_encoding, decode_name): New functions.
3461 (gigi): If the DWARF attribute extensions are available, setup
3463 * lang.opt: Register language specific processing request
3465 * misc.c (gnat_dwarf_extensions): New global variable. How much
3466 do we want of our DWARF extensions. 0 by default.
3467 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
3468 (gnat_post_options): Map gnat_dwarf_extensions to the
3469 commonuse_gnu_debug_info_extensions for later processing.
3471 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
3473 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
3475 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3477 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
3478 * gnat_ugn.texi (Style Checking)
3479 (Adding the Results of Compiler Checks to gnatcheck Output)
3480 (Example of Binder Output File): Fix typos.
3481 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
3482 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
3483 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
3484 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
3485 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
3486 sinfo.ads, utils.c: Fix typos in comments.
3487 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
3489 2008-05-29 Thomas Quinot <quinot@adacore.com>
3491 * sem_eval.adb: Minor reformatting
3493 2008-05-29 Ed Schonberg <schonberg@adacore.com>
3495 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
3496 is abstract, do not apply abstractness check on subprogram if this is
3497 a renaming declaration.
3499 2008-05-29 Arnaud Charlet <charlet@adacore.com>
3502 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
3503 allow recognition of program suffix in addition to prefix.
3505 * gnatchop.adb (Locate_Executable): Add support for prefix.
3507 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
3508 mlib-utl.adb: Adjust calls to Program_Name.
3510 2008-05-29 Robert Dewar <dewar@adacore.com>
3512 * sem_ch3.adb: Minor reformatting
3513 * sem_prag.adb: Minor reformatting
3514 * sem_res.adb: Minor reformatting
3515 * sinput-p.ads: Minor reformatting
3517 2008-05-29 Javier Miranda <miranda@adacore.com>
3520 (Abstract_Interface_List): Add missing support for full type-declaration
3521 associated with synchronized types.
3523 2008-05-29 Robert Dewar <dewar@adacore.com>
3525 * sem_eval.adb (Is_Same_Value): Take care of several more cases
3527 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3529 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
3530 access type, wrap the expression in a conversion to force an
3531 accessibility check.
3533 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
3534 accessibility checks even when expansion is disabled in order to
3535 generate messages in the presence of previous errors or in
3536 semantics-only mode.
3538 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
3540 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
3541 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
3543 2008-05-28 Vincent Celier <celier@adacore.com>
3546 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
3547 preprocessing expressions
3549 2008-05-28 Vincent Celier <celier@adacore.com>
3551 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
3554 * sinput-p.ads: Minor comment update and reformatting
3556 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3558 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
3559 type has a deeper level than any master only when it is the type of an
3562 2008-05-28 Javier Miranda <miranda@adacore.com>
3564 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
3566 2008-05-28 Javier Miranda <miranda@adacore.com>
3568 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
3569 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
3570 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
3571 Add code that was previously located in
3572 Find_Overridden_Synchronized_Primitive because it is only used here.
3574 2008-05-28 Sergey Rybin <rybin@adacore.com>
3576 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
3577 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
3579 2008-05-28 Robert Dewar <dewar@adacore.com>
3582 Add missing restrictions, and properly label all GNAT defined ones
3585 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
3586 Add entry for Ada.Task_Termination.Set_Specific_Handler
3587 Add entry for Ada.Task_Termination.Specific_Handler
3590 Add missing restrictions and properly mark all gnat defined ones
3593 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
3596 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
3598 * gnat_rm.texi: Add missing restrictions, and properly label all
3601 2008-05-28 Robert Dewar <dewar@adacore.com>
3604 (Check_Restriction): violation of restriction No_Finalization is
3605 treated as a serious error to stop expansion
3607 2008-05-28 Robert Dewar <dewar@adacore.com>
3609 * exp_util.adb: Minor reformatting
3610 * exp_util.ads: Minor reformatting.
3612 2008-05-28 Arnaud Charlet <charlet@adacore.com>
3614 * Make-lang.in: Remove gprmake.
3616 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
3618 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3620 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
3621 improper progenitor names, and avoid cascaded errors.
3623 2008-05-28 Robert Dewar <dewar@adacore.com>
3625 * gnat_rm.texi: Add note on Old giving warning when applied to constant
3627 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
3630 2008-05-28 Robert Dewar <dewar@adacore.com>
3632 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
3635 2008-05-28 Robert Dewar <dewar@adacore.com>
3638 (Expand_Simple_Function_Return): Copy unaligned result into temporary
3640 2008-05-28 Javier Miranda <miranda@adacore.com>
3642 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
3643 for user-defined predefined primitives.
3645 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
3646 (Find_Overridden_Synchronized_Primitive): Ditto.
3648 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
3650 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3652 * a-ststio.adb, s-direio.adb:
3653 Further code clean up of previous change.
3656 2008-05-27 Vincent Celier <celier@adacore.com>
3658 * prj-nmsc.adb: Minor reformatting
3660 2008-05-27 Bob Duff <duff@adacore.com>
3662 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
3663 untagged private type with a tagged full type, where the full type has
3664 a self reference, create the corresponding class-wide type early, in
3665 case the self reference is "access T'Class".
3667 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3669 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
3670 tasks and context is an object declaration. create master entity before
3673 2008-05-27 Robert Dewar <dewar@adacore.com>
3675 * mlib-prj.adb: Minor reformatting
3677 * prj-part.adb: Minor reformatting
3679 * prj.ads: Minor reformatting
3681 * exp_ch3.adb: Minor reformatting.
3683 * sem_ch3.ads: Minor reformatting
3685 * sem_eval.adb: Minor reformatting
3687 2008-05-27 Vincent Celier <celier@adacore.com>
3690 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3692 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3694 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3695 tasks, create an activation chain now, before the expansion into
3696 assignments and build-in-place calls that require the presence of an
3698 (Backend_Processing_Possible): If the component type is inherently
3699 limited, the aggregate must be expanded into individual built-in-place
3702 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3703 determine whether an allocation extra parameter must be built, to
3704 handle case of a private type whose full type is a discriminated type
3707 2008-05-27 Bob Duff <duff@adacore.com>
3710 Document the new behavior regarding trampolines.
3712 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3714 * a-direio.adb, a-sequio.adb: Replace address clause by
3715 unrestricted_access, simpler and compatible with .NET.
3717 2008-05-27 Vincent Celier <celier@adacore.com>
3720 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3721 a project file, so that symbolic links are not resolved.
3723 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3725 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3726 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3727 portable across GNAT targets, since this kind of address clause is not
3728 supported by VM back-ends (.NET/JGNAT).
3730 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3732 * bindgen.adb: Update comments.
3734 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3736 2008-05-27 Vincent Celier <celier@adacore.com>
3738 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3739 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3740 mlib-tgt.adb, prj-env.adb, prj-env.ads:
3741 (Path_Information): New record type
3742 Use component of type Path_Information when there are two paths, one in
3743 canonical format and one in display format.
3744 Update the project manager to these new components.
3746 2008-05-27 Robert Dewar <dewar@adacore.com>
3748 * makeutl.adb: Minor reformatting
3749 * prj-nmsc.adb: Minor reformatting
3750 * s-stausa.adb: Minor reformatting
3751 * s-stausa.ads: Minor reformatting
3752 * sem_ch6.adb: Minor reformatting
3754 2008-05-27 Thomas Quinot <quinot@adacore.com>
3756 * sem_res.adb: Minor comment fixes
3758 2008-05-27 Thomas Quinot <quinot@adacore.com>
3760 * makeutl.adb: Minor code reorganization
3762 * exp_aggr.adb: Add ??? comment
3765 * exp_ch6.adb: Minor reformatting
3767 2008-05-27 Quentin Ochem <ochem@adacore.com>
3769 * s-stausa.adb (Initialize): Updated result initialization, and
3770 initialization of environment stack.
3771 (Fill_Stack): Improved computation of the pattern zone, taking into
3772 account already filled at the calling point.
3773 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3774 Measure and Overflow_Guard.
3775 (Report_Result): Fixed computation of the result using new fields of
3778 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3779 params by more explicit Stack_Size / Max_Pattern_Size params.
3780 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3781 Added Stack_Used_When_Filling field.
3782 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3783 Min_Measure and Max_Measure fields.
3785 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3787 2008-05-27 Vincent Celier <celier@adacore.com>
3790 (Check_File): Make sure that a unit that replaces the same unit in a
3791 project being extended is properly processed.
3793 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3796 (Get_Discr_Value): Remove obsolete code that failed to find the value
3797 of a discriminant for an inherited task component appearing in a type
3800 2008-05-27 Thomas Quinot <quinot@adacore.com>
3802 (System.File_IO.{Close, Delete, Reset}):
3803 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3805 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3806 Pass File parameter by reference.
3808 2008-05-27 Vincent Celier <celier@adacore.com>
3811 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3812 sources of the same project that have the same object file name.
3813 (Find_Explicit_Sources): Always remove a source exception that was not
3816 2008-05-27 Thomas Quinot <quinot@adacore.com>
3818 * sem_ch3.adb: Minor reformatting
3820 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3823 (Is_Interface_Conformant): Handle properly a primitive operation that
3824 overrides an interface function with a controlling access result.
3825 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3826 inherited and overriding operations, omit as well the conformance check
3827 on result types, to prevent spurious errors.
3829 2008-05-27 Vincent Celier <celier@adacore.com>
3831 * makeutl.ads, makeutl.adb:
3832 (Set_Location): New procedure
3833 (Get_Location): New function
3834 (Update_Main): New procedure
3836 2008-05-27 Vincent Celier <celier@adacore.com>
3839 (Check_Library): Allow standard project to be extended as a static
3841 (Get_Mains): Do not inherit attribute Main in an extending library
3844 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
3846 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3847 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3848 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3849 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3850 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3851 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3852 * system-mingw.ads (Always_Compatible_Rep): Likewise.
3853 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3854 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3855 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3857 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3859 * sem_attr.adb: add guard to previous patch.
3861 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3863 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3864 a synchronized tagged type, do not attempt to build dispatch table for
3865 full view. The table is built for the corresponding record type, which
3866 has its own declaration.
3868 2008-05-27 Gary Dismukes <dismukes@adacore.com>
3870 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3871 to the known type entity E, rather than setting it to Any_Type. Fixes
3872 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3873 for objects whose type had an illegal constraint.
3875 2008-05-27 Vincent Celier <celier@adacore.com>
3878 Add succinct documentation for attribute Excluded_Source_List_File
3880 2008-05-27 Vincent Celier <celier@adacore.com>
3882 * prj-attr.adb: Add new project level attribute Map_File_Option
3884 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3886 * prj.ads: Minor reformatting and comment update
3887 (Project_Configuration): New component Map_File_Option
3889 * snames.adb: New standard name Map_File_Option
3891 * snames.ads: New standard name Map_File_Option
3893 2008-05-27 Vincent Celier <celier@adacore.com>
3895 * xsnames.adb: Remove unused variable Oname
3897 2008-05-27 Doug Rupp <rupp@adacore.com>
3900 (Expand_N_Function_Call): Fix comments. Minor reformatting.
3903 (Expand_Vax_Foreign_Return): Fix comments.
3905 2008-05-27 Thomas Quinot <quinot@adacore.com>
3907 * exp_dist.adb: Minor reformating
3909 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3911 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3912 No_Default_Initialization, which is now delayed until the freeze point
3913 of the object. Add a comment about deferral of the check.
3915 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3916 on objects is moved here.
3918 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3920 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3921 (Compare_Array_S16): Adjust for above change.
3922 * s-casi32.adb (Uword): Likewise.
3923 (Compare_Array_S32): Likewise.
3924 * s-casi64.adb (Uword): Likewise.
3925 (Compare_Array_S64): Likewise.
3926 * s-caun16.adb (Uhalf): Likewise.
3927 (Compare_Array_U16): Likewise.
3928 * s-caun32.adb (Uword): Likewise.
3929 (Compare_Array_U32): Likewise.
3930 * s-caun64.adb (Uword): Likewise.
3931 (Compare_Array_U64): Likewise.
3933 2008-05-26 Robert Dewar <dewar@adacore.com>
3935 * exp_ch6.adb: Add ??? comment for previous change
3937 * exp_vfpt.adb: Minor reformatting
3939 * exp_vfpt.ads: Add ??? comment for last change
3941 * sem_attr.adb: Add some ??? comments for previous change
3943 * s-vaflop.ads: Add comments for previous change
3945 2008-05-26 Doug Rupp <rupp@adacore.com>
3947 * s-vaflop-vms-alpha.adb:
3948 Remove System.IO use clause, to prevent spurious ambiguities when
3949 package is access through rtsfind.
3951 2008-05-26 Sergey Rybin <rybin@adacore.com>
3953 * tree_io.ads (ASIS_Version_Number): Update because of the changes
3956 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3959 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
3960 converted to S (A)'address only if A .. B is known to be a non-null
3963 2008-05-26 Doug Rupp <rupp@adacore.com>
3966 (Return_D, Return_F, Return_G): New functions.
3969 (Return_D, Return_F, Return_G): New functions.
3972 (Expand_Vax_Foreign_Return): New procedure
3975 (Expand_Vax_Foreign_Return): New procedure
3978 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3979 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3983 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3985 * s-vaflop-vms-alpha.adb:
3986 (Return_D, Return_F, Return_G): New functions.
3988 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3990 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3991 init proc entity when there is actual default initialization associated
3992 with the component type, to avoid spurious errors on objects of scalar
3993 array types that are marked Is_Public when No_Default_Initialization
3996 2008-05-26 Thomas Quinot <quinot@adacore.com>
3998 * rtsfind.ads, rtsfind.adb:
3999 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
4000 (Check_RPC): Support per-PCS-kind API versioning.
4002 exp_dist.ads, exp_dist.adb:
4003 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
4004 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
4005 library function Get_RACW.
4006 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
4007 library function Get_Reference.
4008 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
4009 through an intermediate Any.
4010 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
4011 going through an intermediate Any.
4013 * sem_dist.adb: Minor reformatting.
4015 2008-05-26 Javier Miranda <miranda@adacore.com>
4017 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
4018 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
4019 (Is_Internal): Adding documentation on internal entities that have
4020 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
4022 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
4023 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
4024 Added assertion to force entities with this attribute to have
4025 attribute Is_Internal set to True.
4026 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
4028 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
4029 renamed as Derive_Progenitor_Subprograms. In addition, its code is
4030 a new implementation.
4031 (Add_Interface_Tag_Components): Remove special management of
4032 synchronized interfaces.
4033 (Analyze_Interface_Declaration): Minor reformating
4034 (Build_Derived_Record_Type): Minor reformating
4035 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
4036 predefined primitive inherited from interface type because the body of
4037 internally generated predefined primitives of tagged types are generated
4038 later by Freeze_Type
4039 (Derive_Subprogram): Avoid generating an internal name if the parent
4040 subprogram overrides an interface primitive.
4041 (Derive_Subprograms): New implementation that keeps separate the
4042 management of tagged types not implementing interfaces, from tagged
4043 types that implement interfaces.
4044 (Is_Progenitor): New implementation.
4045 (Process_Full_View): Add documentation
4046 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
4047 by call to Derive_Progenitor_Subprograms.
4049 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
4050 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
4051 Skip_Controlling_Formals.
4053 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
4054 (Check_Conventions): New implementation. Remove local subprogram
4055 Skip_Check. Remove formal Search_From of routine Check_Convention.
4056 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
4057 Skip_Controlling_Formals.
4058 (New_Overloaded_Entity): Enable addition of predefined dispatching
4062 (Find_Primitive_Covering_Interface): New subprogram.
4064 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
4065 the task body procedure as a primitive of the corresponding tagged
4067 (Check_Operation_From_Private_Type): Avoid adding twice an entity
4068 to the list of primitives.
4069 (Find_Primitive_Covering_Interface): New subprogram.
4070 (Override_Dispatching_Operation): Add documentation.
4072 * sem_type.adb (Covers): Minor reformatings
4074 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
4077 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
4078 (Implements_Interface): New subprogram.
4079 (Is_Parent): Removed.
4080 (Primitive_Names_Match): New subprogram.
4081 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
4082 (Ultimate_Alias): New subprogram.
4084 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
4086 Remove special management for synchronized types. Rename formal. Remove
4087 internal subprograms Interface_Present_In_Parent and Add_Interface.
4088 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
4089 on non-record types by code to return false in such case.
4090 (Implements_Interface): New subprogram.
4091 (Is_Parent): Removed. No special management is now required for
4092 synchronized types covering interfaces.
4093 (Primitive_Names_Match): New subprogram.
4094 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
4095 (Ultimate_Alias): New subprogram.
4097 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
4098 Add internal entities associated with secondary dispatch tables to
4099 the list of tagged type primitives that are not interfaces.
4100 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
4101 (Make_Predefined_Primitive_Specs): Code reorganization to improve
4102 the management of predefined equality operator. In addition, if
4103 the type has an equality function corresponding with a primitive
4104 defined in an interface type, the inherited equality is abstract
4105 as well, and no body can be created for it.
4107 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
4108 exp_util to exp_disp.
4109 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
4110 an entity corresponds with one of the predefined primitives required
4111 to implement interfaces.
4112 Update copyright notice.
4114 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
4115 final check on abstract subprograms all the primitives associated with
4116 interface primitives because they must be visible in the public and
4118 (Write_DT): Use Find_Dispatching_Type to locate the name of the
4119 interface type. This allows the use of this routine, for debugging
4120 purposes, when the tagged type is not fully decorated.
4121 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
4122 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
4123 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
4124 entity corresponds with one of the predefined primitives required to
4125 implement interfaces.
4127 * exp_util.adb (Find_Interface_ADT): New implementation
4128 (Find_Interface): Removed.
4130 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
4131 list of interfaces associated with nodes
4132 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
4134 2008-05-26 Thomas Quinot <quinot@adacore.com>
4136 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
4137 condition for assignment to temporary.
4139 2008-05-26 Ed Schonberg <schonberg@adacore.com>
4141 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
4142 checks on the upper bound if the index type is a modular type, to
4143 prevent wrap-around computations when size is close to upper bound of
4146 2008-05-26 Robert Dewar <dewar@adacore.com>
4148 * sem_ch3.adb: Minor reformatting
4150 2008-05-26 Ed Schonberg <schonberg@adacore.com>
4152 * sem_ch12.adb (Remove_Parent): Use specification of instance
4153 to retrieve generic parent,
4154 to handle properly the case where the instance is a child unit.
4155 Add guard to handle properly wrapper packages.
4158 2008-05-26 Thomas Quinot <quinot@adacore.com>
4160 * sinfo.ads: Minor reformatting
4162 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
4164 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
4165 Generate a tag check when the result subtype of a function, defined by
4166 an access definition, designates a specific tagged type.
4167 (Make_Tag_Check): New routine.
4169 2008-05-26 Arnaud Charlet <charlet@adacore.com>
4171 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
4173 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
4175 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
4176 (builtin_decl_for): Likewise.
4177 * trans.c (gigi): Likewise.
4178 * utils.c (def_builtin_1): Fix formatting.
4180 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
4182 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
4183 Create the statements which map a string name to protected or task
4186 * exp_ch9.adb: Add with and use clause for Stringt.
4187 Minor code reformatting.
4188 (Build_Entry_Names): New routine.
4189 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
4190 for flag Build_Entry_Names which controls the allocation of the data
4191 structure for the string names of entries.
4193 * exp_ch9.ads (Build_Entry_Names): New subprogram.
4195 * exp_util.adb (Entry_Names_OK): New function.
4197 * exp_util.ads (Entry_Names_OK): New function.
4199 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
4200 enumerations RE_Id and RE_Unit_Table.
4202 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
4203 (Free_Entry_Names_Array): New routine.
4205 * s-taskin.ads: Comment reformatting.
4206 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
4207 Add component Entry_Names to record Ada_Task_Control_Block.
4208 (Free_Entry_Names_Array): New routine.
4210 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
4211 dynamically allocate an array
4212 of string pointers. This structure holds string entry names.
4213 (Free_Entry_Names): New routine.
4214 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
4215 (Set_Entry_Names): New routine.
4218 (Create_Task): Add formal Build_Entry_Names. The flag is used to
4219 control the allocation of the data structure which stores entry names.
4220 (Set_Entry_Name): New routine.
4223 Add with and use clause for Ada.Unchecked_Conversion.
4224 (Finalize): Deallocate the entry names array.
4225 (Free_Entry_Names): New routine.
4226 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
4227 create an array of string pointers to hold the entry names.
4228 (Set_Entry_Name): New routine.
4231 Add field Entry_Names to record Protection_Entries.
4232 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
4233 (Set_Entry_Name): New routine.
4235 2008-05-26 Vincent Celier <celier@adacore.com>
4238 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
4241 (Project_Configuration): New component Shared_Lib_Driver
4243 2008-05-26 Ed Schonberg <schonberg@adacore.com>
4246 (Cleanup_Scopes): For a protected operation, transfer finalization list
4247 to protected body subprogram, to force cleanup actions when needed.
4249 2008-05-26 Robert Dewar <dewar@adacore.com>
4251 * sem_cat.adb: Minor reformatting
4253 * gnatname.adb: Minor reformatting
4255 * osint.ads: Minor reformatting
4257 * s-carun8.ads: Minor reformatting
4259 * g-heasor.ads: Minor comment fix (unit is now pure)
4261 2008-05-26 Robert Dewar <dewar@adacore.com>
4264 (Expand_Current_Value): Properly type generated integer literal
4266 2008-05-26 Sergey Rybin <rybin@adacore.com>
4268 * gnat_ugn.texi: Add description for the new gnatcheck rule -
4269 Separate_Numeric_Error_Handlers.
4271 2008-05-26 Pascal Obry <obry@adacore.com>
4273 * sem_aggr.adb: Minor reformatting.
4275 2008-05-26 Jose Ruiz <ruiz@adacore.com>
4278 (To_Target_Priority): Setting the time slice value to 0 or greater sets
4279 the scheduling policy to FIFO within priorities or round-robin
4281 Hence, the priority must be set in this case to the one selected by the
4284 2008-05-26 Ed Schonberg <schonberg@adacore.com>
4287 (Remove_Parent): If the enclosing scope is an instance whose generic
4288 parent is declared within some parent scope of the just completed
4289 instance, make full views of the entities in that parent visible, when
4292 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
4294 * mingw32.h (STD_MINGW): Set to true for target w64.
4296 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
4298 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
4299 instead of TREE_STATIC on the ADDR_EXPR.
4301 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
4303 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
4304 (Sloc_to_locus): Do not overwrite known GCC locations when translating
4305 GNAT standard locations.
4307 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
4309 * gigi.h (mark_visited): Declare.
4310 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
4311 only the topmost node of expressions.
4312 (elaborate_expression_1): Look deeper for read-only variables.
4313 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
4314 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
4315 (mark_visited_r): New function.
4317 2008-05-23 Vincent Celier <celier@adacore.com>
4319 * snames.adb: New standard name Excluded_Source_List_File.
4321 * snames.ads: New standard name Excluded_Source_List_File.
4323 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
4325 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
4326 Get excluded sources from
4327 file indicated by attribute Excluded_Source_List_File, when present and
4328 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
4330 2008-05-23 Robert Dewar <dewar@adacore.com>
4332 * exp_dist.adb: Minor reformatting
4334 2008-05-23 Ed Schonberg <schonberg@adacore.com>
4336 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
4337 slice, convert it to an indexed component, which is equivalent, more
4338 efficient, and usable even if the slice itself is not addressable.
4340 2008-05-23 Olivier Hainque <hainque@adacore.com>
4342 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
4343 convention also allows access to named compiler built-in subprograms
4344 such as the GCC __builtin family.
4346 2008-05-23 Vincent Celier <celier@adacore.com>
4348 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
4349 sep. If there are several possibilities, choose the one with the
4352 2008-05-23 Vincent Celier <celier@adacore.com>
4354 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
4355 back end switches when executable specified with --GCC= is same as
4356 default, even if there are additional options.
4359 Document when the back end switches from the ALI file are taken into
4360 account when gnatlink is invoked with --GCC=
4362 2008-05-23 Thomas Quinot <quinot@adacore.com>
4365 (copy_File): Do not open destination file if source file is unreadable.
4367 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
4369 * utils.c (handle_type_generic_attribute): Adjust to accept
4370 fixed arguments before an elipsis.
4372 2008-05-21 Thomas Quinot <quinot@adacore.com>
4374 * g-sothco.ads, g-sothco.adb: New files.
4376 2008-05-20 Thomas Quinot <quinot@adacore.com>
4378 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
4380 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
4381 Add missing "with" of Ada.Unchecked_Conversion
4383 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
4384 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
4385 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4386 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
4387 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
4388 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
4389 Move common code out of GNAT.Sockets.Thin implementations and into
4391 New constant SIZEOF_fd_set
4392 New flag Has_Sockaddr_Len
4393 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
4395 * g-stsifd-sockets.adb
4396 (Create): Remove call to Set_Length; use Set_Family to set the family
4397 and (on appropriate platforms) length fields in struct sockaddr.
4399 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
4400 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
4401 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
4402 Move common code out of GNAT.Sockets.Thin implementations and into
4405 * g-socket.ads, g-socket.adb:
4406 Move common code out of GNAT.Sockets.Thin implementations and into
4408 (Connect_Socket, Accept_Socket): Provide new versions of these two
4409 routines that operate with a user specified timeout.
4410 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
4411 this is now handled automatically by Set_Family on platforms that
4415 Move common code out of GNAT.Sockets.Thin implementations and into
4417 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
4418 this constant to 0 (not -1) because we use it to initialize an
4419 unsigned_char value.
4420 Align values for numeric constants only.
4421 Handle the case of systems that do not support AF_INET6.
4422 New constant SIZEOF_fd_set
4423 New flag Has_Sockaddr_Len
4424 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
4426 * gsocket.h: New flag Has_Sockaddr_Len
4427 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
4429 2008-05-20 Santiago Uruena <uruena@adacore.com>
4431 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
4433 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4435 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
4436 the underlying issue with malloc/free has been fixed. Remove associated
4439 Related to PR ada/24533
4441 2008-05-20 Robert Dewar <dewar@adacore.com>
4443 * ali.adb: Correct casing of ASCII.NUL
4445 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
4448 2008-05-20 Robert Dewar <dewar@adacore.com>
4449 Gary Dismukes <dismukes@adacore.com>
4451 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
4452 overflow if result converted to wider integer type.
4453 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
4454 discriminated types when discriminant checks are suppressed.
4456 2008-05-20 Vincent Celier <celier@adacore.com>
4458 * cstand.adb (Print_Standard): Issue the correct Size clause for type
4459 Wide_Wide_Character.
4461 2008-05-20 Tristan Gingold <gingold@adacore.com>
4463 * decl.c: Do not emit a variable for a object that has an address
4464 representation clause whose value is known at compile time.
4465 When a variable has an address clause whose value is known at compile
4466 time, refer to this variable by using directly the address instead of
4467 dereferencing a pointer.
4469 2008-05-20 Robert Dewar <dewar@adacore.com>
4472 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
4473 subtypes, always False for non-modular types.
4474 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
4475 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
4476 for Shared_Storage package.
4477 (Is_RACW_Stub_Type): New entity flag.
4480 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
4481 case where we have a modular type with a non-binary modules.
4482 Comments reformattings.
4484 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
4487 2008-05-20 Javier Miranda <miranda@adacore.com>
4490 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
4491 tests did not covered the case in which the type of the aggregate has
4492 no progenitors but some its parents has progenitors.
4494 2008-05-20 Gary Dismukes <dismukes@adacore.com>
4495 Hristian Kirtchev <kirtchev@adacore.com>
4498 (Expand_N_Object_Declaration): Correct the condition which triggers the
4499 generation of a call to Displace when initializing a class-wide object.
4500 (Build_Dcheck_Functions): Build discriminant-checking for null variants
4501 when Frontend_Layout_On_Target is true to ensure that they're available
4502 for calling when a record variant size function is built in Layout.
4504 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4506 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4507 procedure for a derived type retrieve the discriminant values from the
4508 parent using the corresponding discriminant.
4509 (Expand_N_Assignment_Statement): Skip generation of implicit
4510 if-statement associated with controlled types if we are
4511 compiling with restriction No_Finalization.
4513 2008-05-20 Vincent Celier <celier@adacore.com>
4515 * prj.adb (Hash (Project_Id)): New function
4516 (Project_Empty): Add new component Interfaces_Defined
4518 * prj.ads (Source_Data): New component Object_Linked
4519 (Language_Config): New components Object_Generated and Objects_Linked
4520 (Hash (Project_Id)): New function
4521 (Source_Data): New Boolean components In_Interfaces and
4522 Declared_In_Interfaces.
4523 (Project_Data): New Boolean component Interfaces_Defined
4526 New project level attribute Object_Generated and Objects_Linked
4527 Add new project level attribute Interfaces
4529 * prj-dect.adb: Use functions Present and No throughout
4530 (Parse_Variable_Declaration): If a string type is specified as a simple
4531 name and is not found in the current project, look for it also in the
4532 ancestors of the project.
4535 Replace procedure Make with procedures Initialize, Process and Finalize
4536 to implement H414-023: process different directories with different
4538 Use functions Present and No throughout
4541 Replace procedure Make with procedures Initialize, Process and Finalize
4544 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
4545 the language configuration.
4546 (Process_Project_Level_Array_Attributes): Process new attributes
4547 Object_Generated and Object_Linked.
4548 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
4549 False, to indicate that the erreor/warning is a continuation.
4550 (Check): Call Report_No_Sources with Contnuation = True after the first
4552 (Error_Msg): Process successively contnuation character and warning
4554 (Find_Explicit_Sources): Check that all declared sources have been found
4555 (Check_File): Indicate in hash table Source_Names when a declared source
4557 (Check_File): Set Other_Part when found
4558 (Find_Explicit_Sources): In multi language mode, check if all exceptions
4559 to the naming scheme have been found. For Ada, report an error if an
4560 exception has not been found. Otherwise, disregard the exception.
4561 (Check_Interfaces): New procedure
4562 (Add_Source): When Other_Part is defined, set mutual pointers in spec
4564 (Check): In multi-language mode, call Check_Interfaces
4565 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
4566 for an excluded source.
4567 (Remove_Source): A source replacing a source in the interfaces is also
4570 * prj-pars.adb: Use function Present
4572 * prj-part.adb: Use functions Present and No throughout
4573 (Parse_Single_Project): Set the parent project for child projects
4574 (Create_Virtual_Extending_Project): Register project with no qualifier
4575 (Parse_Single_Project): Allow an abstract project to be extend several
4576 times. Do not allow an abstract project to extend a non abstract
4579 * prj-pp.adb: Use functions Present and No throughout
4580 (Print): Take into account the full associative array attribute
4583 * prj-proc.adb: Use functions Present and No throughout
4584 (Expression): Call itself with the same From_Project_Node for the
4585 default value of an external reference.
4587 * prj-strt.adb: Use functions Present and No throughout
4588 (Parse_Variable_Reference): If a variable is specified as a simple name
4589 and is not found in the current project, look for it also in the
4590 ancestors of the project.
4592 * prj-tree.ads, prj-tree.adb (Present): New function
4594 Use functions Present and No throughout
4595 (Parent_Project_Of): New function
4596 (Set_Parent_Project_Of): New procedure
4598 * snames.ads, snames.adb:
4599 Add new standard names Object_Generated and Objects_Linked
4601 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4603 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
4604 and the derived type are of the same kind.
4605 (Expand_Call): Generate type conversions for actuals of
4606 record or array types when the parent and the derived types differ in
4607 size and/or packed status.
4609 2008-05-20 Javier Miranda <miranda@adacore.com>
4610 Ed Schonberg <schonberg@adacore.com>
4612 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
4613 generating dispatch tables of locally defined tagged types statically.
4614 Remove implicit if-statement that is no longer required.
4615 (Expand_Dispatching_Call): If this is a call to an instance of the
4616 generic dispatching constructor, the type of the first argument may be
4617 a subtype of Tag, so always use the base type to recognize this case.
4619 2008-05-20 Thomas Quinot <quinot@adacore.com>
4622 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
4623 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
4624 assigning NULL into the result, to avoid a spurious warning.
4625 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
4627 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
4629 (Build_From_Any_Function, Build_To_Any_Function,
4630 Build_TypeCode_Function): For a type that has user-specified stream
4631 attributes, use an opaque sequence of octets as the representation.
4633 2008-05-20 Kevin Pouget <pouget@adacore.com>
4635 * exp_smem.ads, exp_smem.adb: Construction of access and assign
4636 routines has been replaced by an instantiation of
4637 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
4638 shared variable declaration.
4639 Calls to access and assign routines have been replaced by calls to
4640 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
4641 instantiated package.
4643 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
4644 It identifies the new generic package added in s-shasto.
4646 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
4647 is instantiated for each shared passive variable. It provides
4648 supporting procedures called upon each read or write access by the
4652 For this runtime unit (always compiled in GNAT mode), we allow
4653 stream attributes references for limited types for the case where
4654 shared passive objects are implemented using stream attributes,
4655 which is the default in GNAT's persistent storage implementation.
4657 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4660 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
4661 convention from its base type, do not set the type to that of integer,
4662 because it may inherit a size clause.
4663 Warn on a size clause with a size different
4664 from that of Integer, if the type has convention C.
4666 2008-05-20 Vincent Celier <celier@adacore.com>
4669 (Scan_Args): Rewrite to take into account new switch --and to separate
4670 arguments into sections.
4671 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
4672 section, then Finalize.
4674 2008-05-20 Tristan Gingold <gingold@adacore.com>
4676 * init.c: Enable stack probing on ppc-linux.
4678 * tracebak.c: Add symbolic traceback for ppc-linux.
4680 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
4682 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4685 (common-tools): New rule, to avoid parallel build failure on gnat tools.
4686 Reenable parallel builds on this Makefile.
4688 * Make-lang.in: Update dependencies.
4690 2008-05-20 Robert Dewar <dewar@adacore.com>
4692 * opt.ads (Treat_Restrictions_As_Warnings): New switch
4694 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4695 Treat_Restrictions_As_Warnings.
4697 * switch-c.adb: Recognize new switch -gnatr
4699 * usage.adb: Add line for -gnatr
4701 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4704 (P_Access_Definition): Change the error message when parsing "access
4705 all" in Ada 95 mode. The message no longer forces the user to recompile
4706 in 05 mode only to discover that anonymous access types are not allowed
4709 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4712 (P_Protected): Update the error message on missing "-gnat05" switch when
4713 using interfaces in conjunction with protected types. Remove the
4714 incorrect error message associated with the presence of "private" after
4717 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4719 * sem_aggr.adb: Update comments.
4720 Improve previous change for PR ada/17985
4722 2008-05-20 Thomas Quinot <quinot@adacore.com>
4725 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4726 the visible part of the spec of a remote types unit.
4727 (Validate_Remote_Access_Object_Type_Declaration):
4728 New local subprogram Is_Valid_Remote_Object_Type, replaces
4729 Is_Recursively_Limited_Private.
4730 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4731 non-controlling formals (and the return type, even though this is not
4732 explicit in the standard) must support external streaming.
4733 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4734 as above for of RAS types and RCI subprograms. (The return type is not
4736 Update comments related to RACWs designating limited interfaces per
4737 ARG ruling on AI05-060.
4739 * sem_util.ads, sem_util.adb
4740 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4741 Is_Remote_Call_Interface to identify RACW types in a stable and
4742 consistent way. We used to rely in this predicate on the privateness of
4743 the designated type and its ancestors, but depending on the currently
4744 visible private parts, this caused false negatives. We now uniformly
4745 rely on checks made at the point where the RACW type is declared.
4746 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4748 2008-05-20 Javier Miranda <miranda@adacore.com>
4749 Ed Schonberg <schonberg@adacore.com>
4750 Hristian Kirtchev <kirtchev@adacore.com>
4753 (Analyze_Object_Declaration): Fix over-conservative condition
4754 restricting use of predefined assignment with tagged types that have
4756 (Analyze_Object_Declaration): Relax the check regarding deferred
4757 constants declared in scopes other than packages since they can be
4758 completed with pragma Import.
4759 Add missing escaping of all-caps word 'CPP' in error messages.
4760 (Build_Discriminated_Subtype): Do not inherit representation clauses
4761 from parent type if subtype already carries them, because they are
4762 inherited earlier during derivation and already include those that may
4763 come from a partial view.
4765 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4766 Check the declarations of a subprogram body for proper deferred
4767 constant completion.
4769 * sem_ch7.ads, sem_ch7.adb
4770 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4772 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4773 Thomas Quinot <quinot@adacore.com>
4776 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4777 F is a parameterless function that returns an array, and S is a subtype
4779 (Analyze_Call): Insert dereference when the prefix is a parameterless
4780 function that returns an access to subprogram and the call has
4782 Reject a non-overloaded call whose name resolves to denote
4783 a primitive operation of the stub type generated to support a remote
4784 access-to-class-wide type.
4786 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4789 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4790 when there is a use clause for the same entity in the context.
4791 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4792 created for a stream attribute of an abstract type or interface type.
4794 2008-05-20 Thomas Quinot <quinot@adacore.com>
4796 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4800 (Add_One_Interp): Ignore any interpretation that is a primitive
4801 operation of an RACW stub type (these primitives are only executed
4802 through dispatching, never through static calls).
4803 (Collect_Interps): When only one interpretation has been found, set N's
4804 Entity and Etype to that interpretation, otherwise Entity and Etype may
4805 still refer to an interpretation that was ignored by Add_One_Interp,
4806 in which case would end up with being marked as not overloaded but with
4807 an Entity attribute not pointing to its (unique) correct interpretation.
4809 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4812 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4813 denotes the whole array of its prefix.
4815 2008-05-20 Robert Dewar <dewar@adacore.com>
4817 * sem_res.adb (Resolve_Op_Not): Warn on double negation
4819 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4822 (Print_Itype): Do not modify the sloc of the component type of a
4823 (packed) array itype, because it is an unrelated type whose source
4824 location is independent of the point of creation of the itype itself.
4826 2008-05-20 Thomas Quinot <quinot@adacore.com>
4828 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4831 2008-05-20 Robert Dewar <dewar@adacore.com>
4832 Vincent Celier <celier@adacore.com>
4834 * vms_data.ads: Add entry for -gnatr
4835 Put GNAT SYNC section in proper alpha order
4836 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4838 * gnat_ugn.texi: Add documentation for new gnatname switch --and
4839 Update the style checks section
4840 Add documentation of -gnatr
4841 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4842 subsection the explanation how compiler checks should be disabled for
4844 Update the list of Ada 95 reserved words used by in the project language
4845 Add documentation for project qualifiers.
4846 Document that abstract projects may be extended by different projects in
4847 the same project tree.
4848 Add documentation for gnatmake switch -d
4850 * ug_words: Add -gnatyy VMS equivalence string.
4851 Add entry for -gnatr
4853 2008-05-20 Bob Duff <duff@adacore.com>
4856 (Set_Handler): Remove code from both of these that implements
4857 RM-D.15(15/2), because it causes a race condition and potential
4859 (Process_Queued_Events): Add comment explaining "exception when others
4860 => null". Add clarifying ".all", even though implicit .all is legal
4863 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4865 * s-winext.ads: Replace representation clause by pragma Pack. Gives
4866 equivalent representation, but has the advantage of allowing
4867 compilation of this file under 64 bits platforms.
4869 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4871 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4874 Don't define dummy implementation of convert_addresses on ppc-linux.
4876 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4879 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4880 if expression is aggregate component.
4882 2008-05-20 Robert Dewar <dewar@adacore.com>
4884 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4885 sem_ch12.adb: Update comments. Minor reformatting.
4889 * s-unstyp.ads: Fixed some typos in comments.
4891 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4893 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4896 * g-socthi-vxworks.ads: Update to latest socket changes.
4898 * a-caldel-vms.adb: Resync with a-caldel spec.
4900 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4903 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
4905 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4906 for dummy types pointed to by the converted pointer types.
4908 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
4910 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4911 of records and unions.
4912 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4914 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
4915 Robert Dewar <dewar@adacore.com>
4917 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4918 restrictions to the prefix of 'Old.
4919 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4920 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4923 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
4927 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4928 expression to an integral type with lower precision, use NOP_EXPR
4929 directly in a couple of special cases.
4931 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
4932 Ed Schonberg <schonberg@adacore.com>
4934 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4935 constraint expressions.
4937 2008-05-12 Tomas Bily <tbily@suse.cz>
4939 * utils2.c (known_alignment, contains_save_expr_p)
4940 (gnat_mark_addressable): Use CASE_CONVERT.
4941 * decl.c (annotate_value): Likewise.
4942 * trans.c (maybe_stabilize_reference): Likewise.
4943 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4944 * utils.c (rest_of_record_type_compilation): Likewise.
4945 * trans.c (protect_multiple_eval, Attribute_to_gnu)
4946 (protect_multiple_eval): Likewise.
4948 2008-05-08 Andreas Schwab <schwab@suse.de>
4950 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4951 DECL_IS_PURE to DECL_PURE_P.
4953 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
4955 * decl.c (maybe_pad_type): Add ??? comment.
4957 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4959 * decl.c (components_to_record): Zero the alignment of the qualified
4960 union built for the variant part upon creating it.
4962 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4964 * decl.c (maybe_pad_type): Try to get a form of the type with integral
4965 mode even if the alignment is not a factor of the original size. But
4966 make sure to create the inner field with the original size. Reorder.
4967 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4968 record as always addressable.
4969 * utils.c (convert): Deal specially with conversions between original
4970 and packable versions of a record type.
4971 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4972 recognizing an assignment between padded objects.
4974 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4976 * decl.c (make_packable_type): Resize the last component to its RM size
4977 only if it is of an aggregate type.
4978 * trans.c (call_to_gnu): Fix nit in comment.
4979 (gnat_to_gnu): Likewise.
4981 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
4983 * Makefile.in: Adapt sh4-linux target.
4985 2008-04-29 Ed Schonberg <schonberg@adacore.com>
4988 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4989 tagged type by an untagged protected or task type.
4991 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
4992 Tristan Gingold <gingold@adacore.com>
4995 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4996 of aliased objects with an unconstrained nominal subtype.
4997 Cap the promotion to the effective alignment of the word mode.
4999 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5001 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
5002 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
5003 Use '&&' instead of ';'.
5005 2008-04-24 Olivier Hainque <hainque@adacore.com>
5007 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
5008 doesn't require signed arithmetic anymore.
5010 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
5012 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
5013 (call_to_gnu): Don't set TREE_INVARIANT.
5014 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
5016 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
5018 * s-osinte-rtems.adb: Add sigalstack function.
5019 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
5020 function. Add Alternate_Stack and Alternate_Stack_Size.
5021 Add missing process_shared field to pthread_condattr_t
5022 and change ss_low_priority to int from timespec.
5024 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
5026 * i-forbla.adb: Link against -llapack and -lblas by default
5027 instead of the private -lgnalasup.
5029 2008-04-21 Olivier Hainque <hainque@adacore.com>
5031 Access to most C builtins from Ada
5032 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
5033 (handle_pure_attribute, handle_novops_attribute,
5034 handle_nonnull_attribute, handle_sentinel_attribute,
5035 handle_noreturn_attribute, handle_malloc_attribute,
5036 handle_type_generic_attribute): New attribute handlers, from C fe.
5037 (gnat_internal_attribute_table): Map the new handlers.
5038 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
5039 (init_gigi_decls): ... here.
5040 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
5041 Move to a section dedicated to builtins processing.
5042 (build_void_list_node, builtin_type_for_size): New functions.
5043 (def_fn_type, get_nonnull_operand): Likewise.
5044 (install_builtin_elementary_type, install_builtin_function_types,
5045 install_builtin_attributes): Likewise.
5046 (fake_attribute_handler): Fake handler for attributes we don't
5048 (def_builtin_1): New function, worker for DEF_BUILTIN.
5049 (install_builtin_functions): New function.
5050 (gnat_install_builtins): Move to the builtins processing section.
5051 Now calling the newly introduced installers.
5053 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
5055 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
5056 constant objects, but not exceptions.
5057 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
5059 * utils.c (create_var_decl_1): Likewise.
5060 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
5061 the type when copying to padded object and the source is a constructor.
5063 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5065 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
5066 alignment, reset it to zero if it would end up not being greater
5067 than that of the type.
5069 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5071 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
5072 the padded type has a variable size.
5074 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5076 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
5077 target pointer mechanism as soon as the size is not constant.
5079 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5081 * gigi.h (create_var_decl_1): Declare.
5082 (create_var_decl): Turn into a macro invoking create_var_decl_1.
5083 (create_true_var_decl): Likewise.
5084 * utils.c (create_var_decl_1): Make global and reorder parameters.
5085 (create_var_decl): Delete.
5086 (create_true_var_decl): Likewise.
5088 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
5090 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
5092 * fe.h (Debug_Flag_Dot_A): Delete.
5093 * debug.adb (-gnatd.a): Update documentation.
5095 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
5097 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
5098 "not null" parameter.
5100 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
5102 * g-socket.adb: Add a message "IPv6 not supported" to the
5103 Socket_Error exception.
5105 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
5108 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
5109 the type is known instead of the underlying type.
5111 2008-04-15 Ed Schonberg <schonberg@adacore.com>
5114 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
5115 procedure for a derived type retrieve the discriminant values from
5116 the parent using the corresponding discriminant.
5118 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
5119 Gary Dismukes <dismukes@adacore.com>
5122 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
5123 which is not an entity (and hence not a package).
5124 (End_Use_Package): Ditto.
5126 2008-04-15 Ed Schonberg <schonberg@adacore.com>
5129 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
5130 protected operation that matches the signature, not only an entry, a
5131 regular subprogram or a literal.
5133 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
5135 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
5136 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
5137 if a size or alignment is specified. Do not take into account
5138 alignment promotions for the computation of the object's size.
5139 <type>: Call maybe_pad_type only if a size or alignment is specified.
5140 (maybe_pad_type): Really reuse the RM_Size of the original type if
5142 * trans.c (Attribute_to_gnu): Fix a couple of nits.
5143 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
5144 statements. Use the padded view of the type when copying between
5145 padded objects of the same underlying type.
5147 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5149 * vms_data.ads: Fix typo in constant.
5150 * gen-soccon.c: Fix typo in error string.
5151 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
5153 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
5154 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
5155 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
5156 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
5157 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
5158 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
5159 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
5160 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
5161 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
5162 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
5163 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
5164 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
5165 sinfo.ads: Fix typos in comments.
5167 2008-04-14 Robert Dewar <dewar@adacore.com>
5169 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
5170 to every non-object and change error message.
5172 2008-04-14 Robert Dewar <dewar@adacore.com>
5174 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
5175 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
5178 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
5181 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
5182 apply pragma Linker_Section on type.
5184 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
5187 * sem_prag.adb (Error_Pragma_Ref): New.
5188 (Process_Convention): Specialized message for non-local
5189 subprogram renaming. Detect the problem in homonyms as well.
5191 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
5194 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
5195 * sem_ch12.adb (Instantiate_Object): Use it.
5196 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
5197 storage pool denotes a variable as per RM 13.11(15).
5199 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
5201 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
5202 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
5204 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
5207 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
5208 line endings even on non-Unix platforms.
5210 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
5213 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
5214 renaming information.
5216 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
5219 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
5222 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5224 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
5225 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
5226 snames.ads, sprint.adb, stand.ads, stringt.ads,
5227 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
5228 switch.ads, sysdep.c, table.adb, table.ads,
5229 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
5230 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
5231 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
5232 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
5233 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
5234 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
5237 * sem_ch10.adb, sem_ch10.ads,
5238 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
5239 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
5240 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
5241 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
5242 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
5243 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
5244 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
5245 sem_warn.ads: Fix comment typos.
5247 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
5248 s-soflin.ads, s-stalib.ads, s-stausa.adb,
5249 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
5250 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
5251 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
5252 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5253 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
5254 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
5255 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
5256 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
5257 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
5258 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
5259 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
5260 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
5261 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
5262 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
5263 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
5264 sem_cat.adb, sem_cat.ads: Fix comment typos.
5266 2008-04-12 Joel Sherrill <joel@oarcorp.com>
5269 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
5271 2008-04-12 Arnaud Charlet <charlet@adacore.com>
5273 * s-linux-hppa.ads: Fix syntax errors.
5275 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5277 * gnat_ugn.texi: Fix typos.
5278 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
5279 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
5280 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
5281 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
5282 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
5283 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
5284 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
5285 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
5286 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
5287 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
5288 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
5289 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
5290 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
5291 s-osinte-darwin.ads, s-osinte-freebsd.ads,
5292 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
5293 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
5294 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
5295 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
5296 s-parame-hpux.ads, s-parame-vms-alpha.ads,
5297 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
5298 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
5299 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
5300 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
5301 s-rident.ads: Fix comment typos.
5303 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
5306 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
5307 environment if generic instance is a top-level one.
5309 2008-04-09 Doug Rupp <rupp@adacore.com>
5311 * decl.c (validate_size): Set minimum size for fat pointers same as
5312 access types. Code clean ups.
5314 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
5315 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
5317 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
5319 * s-crtl.ads (malloc32) New function, alias for malloc
5320 (realloc32) New function, alias for realloc
5322 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
5324 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
5325 allocator size is 32 and default pointer size is 64.
5326 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
5327 lhs type if smaller, whatever the modes.
5329 * gigi.h (malloc32_decl): New macro definition
5331 * utils.c (init_gigi_decls): New malloc32_decl
5332 Various code clean ups.
5334 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
5335 Task_Address vice System.Address.
5337 * s-taspri-vms.ads: Import System.Aux_DEC
5338 (Task_Address): New subtype of System.Aux_DEC.Short_Address
5339 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
5341 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
5342 Task_Address vice System.Address.
5344 * s-inmaop-vms.adb: Import System.Task_Primitives
5345 (To_Address): Unchecked convert to Task_Address vice System.Address
5347 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
5349 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
5350 (To_Address) Unchecked convert to Task_Address vice System.Address
5352 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
5354 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
5356 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5358 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
5359 (fdesc_type_node): Define.
5360 (null_fdesc_node): Likewise.
5361 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
5362 uses descriptors for vtables and the type comes from a dispatch table,
5363 return the descriptor type.
5364 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
5365 uses descriptors for vtables and the type comes from a dispatch table,
5366 build a descriptor in the static case and copy the existing one in the
5368 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
5369 the type is a pointer-to-subprogram coming from a dispatch table,
5370 return the null descriptor.
5371 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
5372 vtables, the source type is the descriptor type and the target type
5373 is a pointer type, first build the pointer.
5374 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
5375 build the descriptor type and the null descriptor.
5377 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5379 * decl.c (prepend_attributes): Fix typo.
5380 * trans.c (Pragma_to_gnu): Likewise.
5381 * utils.c (gnat_genericize): Likewise.
5383 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5384 Richard Kenner <kenner@adacore.com>
5386 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
5387 * decl.c (gnat_to_gnu_entity): Adjust for above change.
5388 <E_Record_Type>: Try to get a better form of the component for
5389 packing, even if it has an integral mode.
5390 <E_Record_Subtype>: Likewise.
5391 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
5392 exception suppressing the final conversion between record types.
5394 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5396 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
5397 alignment for space, promote the alignment of non-scalar variables with
5398 no size and alignment.
5399 * gigi.h (gnat_types_compatible_p): Declare.
5400 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
5401 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
5402 * utils.c (gnat_types_compatible_p) : New predicate.
5403 (convert): Use it throughout to test for cases where a mere view
5404 conversion is sufficient.
5405 * utils2.c (build_binary_op): Minor tweaks.
5406 (build_unary_op): Likewise.
5408 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5410 * decl.c (adjust_packed): Expand comment.
5412 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5414 * s-tasuti.ads: Use Task_Address instead of System.Address.
5416 * makeutl.adb (Path_Or_File_Name): New function
5418 * nlists.ads, itypes.ads: Update comments.
5420 * s-crtl.ads (malloc32, realloc32): New functions.
5422 * s-auxdec.ads (Short_Address_Size): New constant.
5424 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
5426 * s-ststop.ads, s-ststop.adb: New file.
5428 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
5431 2008-04-08 Pascal Obry <obry@adacore.com>
5433 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
5434 (Stop_Bits_Number): New type.
5435 (Parity_Check): Likewise.
5436 (Set): Add parameter to set the number of stop bits and
5437 the parity. Parameter timeout is now a duration instead
5440 * g-sercom-linux.adb:
5441 Implement the stop bits and parity support for GNU/Linux.
5442 Fix handling of timeout, it must be given in tenth of seconds.
5444 * g-sercom-mingw.adb:
5445 Implement the stop bits and parity support for Windows.
5446 Use new s-win32.ads unit instead of declaring Win32 services
5447 directly into this body.
5448 Update handling of timeout as now a duration.
5450 * s-win32.ads, s-winext.ads: New files.
5452 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5453 Arnaud Charlet <charlet@adacore.com>
5455 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
5457 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
5458 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
5460 * s-osinte-lynxos-3.ads,
5461 (Alternate_Stack): Remove when not needed. Simplify declaration
5463 (Alternate_Stack_Size): New constant.
5465 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
5466 'Unrestricted_Access.
5468 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
5469 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
5470 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
5471 s-osinte-solaris.ads, s-osinte-vms.ads
5472 (SA_ONSTACK): New constant.
5473 (stack_t): New record type.
5474 (sigaltstack): New imported function.
5475 (Alternate_Stack): New imported variable.
5476 (Alternate_Stack_Size): New constant.
5478 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
5480 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
5481 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
5482 s-taspri-vms.ads (Task_Address): New subtype of System.Address
5483 (Task_Address_Size): New constant size of System.Address
5484 (Alternate_Stack_Size): New constant.
5486 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
5487 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
5488 Establish the alternate stack if the platform makes use of n alternate
5489 signal stack for stack overflows.
5490 (Create_Task): Take into account the alternate stack in the stack size.
5491 (Initialize): Save the address of the alternate stack into the ATCB for
5492 the environment task.
5493 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
5495 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
5497 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
5499 * s-intman-posix.adb:
5500 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
5501 alternate signal stack for stack overflows.
5503 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
5504 x86-64, adjust the saved value of the stack pointer if the signal was
5505 raised by a stack checking probe.
5506 (HP-UX section): Use global __gnat_alternate_stack as signal handler
5507 stack and only for SIGSEGV.
5508 (Linux section): Likewise on x86 and x86-64.
5510 (__gnat_map_signal): Now static.
5511 (__gnat_error_handler): Not static any more.
5512 (__gnat_adjust_context_for_raise): New function. Signal context
5513 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
5514 propagation circuitry.
5515 (__gnat_error_handler): Second argument of a sigaction handler is a
5516 pointer, not an int, and is unused.
5517 Adjust signal context before mapping to exception.
5518 Install signal handlers for LynxOS case.
5520 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
5521 (Task_Id): Set size to Task_Address_Size
5522 (To_Task_id): Unchecked convert from Task_Address vice System.Address
5523 (To_Address): Unchecked convert to Task_Address vice System.Address
5525 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
5526 address into the ATCB if the platform makes use of an alternate signal
5527 stack for stack overflows.
5528 (Free_Task): Add call to Finalize_Attributes_Link.
5529 Add argument Relative_Deadline to pass the value specified for
5530 the task. This is not yet used for any target.
5532 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
5533 the value specified for the task.
5535 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5537 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
5538 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
5539 s-vxwext-rtp.adb): New files.
5541 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
5542 Minor updates to accomodate changes above.
5544 2008-04-08 Pascal Obry <obry@adacore.com>
5546 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
5547 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
5548 Use new s-win32.ads unit instead of declaration
5549 from s-osinte-mingw.ads.
5551 * s-osinte-mingw.ads:
5552 Move all non tasking based interface to s-win32.ads.
5554 * s-osprim-mingw.adb:
5555 Remove duplicated declarations and use s-win32.ads
5558 2008-04-08 Vincent Celier <celier@adacore.com>
5559 Arnaud Charlet <charlet@adacore.com>
5561 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
5562 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
5563 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5564 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5565 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
5567 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
5568 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
5569 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
5570 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
5571 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
5572 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
5573 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
5574 mlib-tgt-specific-mingw.adb: New names.
5577 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
5579 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
5580 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
5581 Minor updates for VMS
5583 * gnatbl.c: Removed.
5585 2008-04-08 Thomas Quinot <quinot@adacore.com>
5587 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
5588 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
5589 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
5590 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
5591 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
5592 ASCII.NUL throughout.
5594 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5595 Matthew Heaney <heaney@adacore.com>
5597 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
5600 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
5601 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
5602 to convention for non-RM specs.
5603 Add descriptive header, and documented each operation
5604 document each operation
5606 2008-04-08 Robert Dewar <dewar@adacore.com>
5607 Bob Duff <duff@adacore.com>
5608 Gary Dismukes <dismukes@adacore.com>
5609 Ed Schonberg <schonberg@adacore.com>
5611 * alloc.ads: Add entries for Obsolescent_Warnings table
5613 * einfo.ads, einfo.adb: Minor reformatting.
5614 (Is_Discriminal): New subprogram.
5615 (Is_Prival): New subprogram.
5616 (Is_Protected_Component): New subprogram.
5617 (Is_Protected_Private): Removed.
5618 (Object_Ref, Set_Object_Ref): Removed.
5619 (Prival, Set_Prival): Change assertion.
5620 (Privals_Chain, Set_Privals_Chain): Removed.
5621 (Prival_Link, Set_Prival_Link): New subprogram.
5622 (Protected_Operation, Set_Protected_Operation): Removed.
5623 (Protection_Object, Set_Protection_Object): New subprogram.
5624 (Write_Field17_Name): Remove case for Object_Ref.
5625 (Write_Field20_Name): Add case for Prival_Link.
5626 (Write_Field22_Name): Remove case for Protected_Operation,
5628 Add case for Protection_Object.
5629 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
5631 (Overlays_Constant): New flag
5632 (Is_Constant_Object): New predicate
5633 (Is_Standard_Character_Type): New predicate
5634 (Optimize_Alignment_Space): New flag
5635 (Optimize_Alignment_Time): New flag
5636 (Has_Postconditions): New flag
5637 (Obsolescent_Warrning): Field removed
5638 (Spec_PPC_List): New field
5639 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
5640 subprograms to get and set the relative deadline associated to a task.
5642 * exp_attr.adb (May_Be_External_Call): Account for the case where the
5643 Access attribute is part of a named parameter association.
5644 (Expand_Access_To_Protected_Op): Test for the attribute occurring
5645 within an init proc and use that directly as the scope rather than
5646 traversing up to the protected operation's enclosing scope. Only apply
5647 assertion on Is_Open_Scopes in the case the scope traversal is done.
5648 For the init proc case use the address of the first formal (_init) as
5649 the protected object reference.
5650 Implement Invalid_Value attribute
5651 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
5652 contents of the dispatch table there is no need to duplicate the
5653 itypes associated with record types (i.e. the implicit full view
5655 Implement Enum_Val attribute
5656 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
5657 within _Postconditions procedure
5658 (Expand_N_Attribute_Reference, case Result): Implement new attribute
5660 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
5661 a return statement calls a function that is not available in
5662 configurable runtime.
5663 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
5664 (Expand_Non_Function_Return): Generate call to _Postconditions proc
5665 (Expand_Simple_Function_Return): Ditto
5667 * frontend.adb: Add call to Sem_Aux.Initialize
5669 * sem_aux.ads, sem_aux.adb: New file.
5671 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
5672 Add new Pragma_Relative_Deadline.
5673 Add support for pragmas Check and Check_Policy
5675 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
5676 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
5677 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
5678 missing check because they are not allowed in CPP tagged types.
5679 Add Sure parameter to Note_Possible_Modification calls
5680 Add implementation of Invalid_Value attribute
5681 Implement new attribute Has_Tagged_Values
5682 Implement Enum_Val attribute
5683 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
5684 generated attributes.
5685 (Analyze_Attribute, case Result): If prefix of the attribute is
5686 overloaded, it always resolves to the enclosing function.
5687 (Analyze_Attribute, case Result): Properly deal with analysis when
5688 Postconditions are not active.
5689 (Resolve_Attribute, case Result): Properly deal with appearence during
5690 preanalysis in spec.
5691 Add processing for attribute Result
5693 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5695 (Analyze_Subprogram_Body): Install private_with_clauses when the body
5697 (Check_Inline_Pragma): recognize an inline pragma that appears within
5698 the subprogram body to which it applies.
5699 (Analyze_Function_Return): Check that type of the expression of a return
5700 statement in a function with a class-wide result is not declared at a
5701 deeper level than the function.
5702 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5703 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5704 user- defined operators.
5705 (Install_Formals): Moved to spec to allow use from Sem_Prag for
5706 analysis of precondition/postcondition pragmas.
5707 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5708 Last_Formal, along with lots of comments on what this is about
5709 (Analyze_Subprogram_Body): Fix case where we move entities from the
5710 spec to the body when there are no body entities (now possible with
5711 precondition and postcondition pragmas).
5712 (Process_PPCs): New procedure
5713 (Analyze_Subprogram_Body): Add call to Process_PPCs
5715 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5717 (Pop_Scope): Restore Check_Policy_List on scope exit
5718 (Push_Scope): Save Check_Policy_List on scope entry
5719 Change name In_Default_Expression => In_Spec_Expression
5720 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5721 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5722 (Analyze_Object_Renaming): Allow 'Reference as object
5723 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5724 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5725 of restriction identifier.
5726 Add Sure parameter to Note_Possible_Modication calls
5728 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5729 Don't check for primitive operations when calling Rep_Item_Too_Late.
5730 (Process_Import_Or_Interface): Do not place flag on formal
5732 (Analyze_Pragma, case Export): If the entity is a deferred constant,
5733 propagate information to full view, which is the one elaborated by the
5735 (Make_Inline): the pragma is effective if it applies to an internally
5736 generated subprogram declaration for a body that carries the pragma.
5737 (Analyze_Pragma, case Optimize_Alignment): Set new flag
5738 Optimize_Alignment_Local.
5739 (Analyze_PPC_In_Decl_Part): New procedure
5740 (Get_Pragma_Arg): Moved to outer level
5741 (Check_Precondition_Postcondition): Change to allow new visibility
5742 rules for package spec
5743 (Analyze_Pragma, case Check_Policy): Change placement rules to be
5744 same as pragma Suppress/Unsuppress.
5745 Change name In_Default_Expression => In_Spec_Expression
5746 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5747 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5748 (Check_Precondition_Postcondition): Do proper visibility preanalysis
5749 for the case of these pragmas appearing in the spec.
5750 (Check_Enabled): New function
5751 (Initialize): New procedure
5752 (Tree_Read): New procedure
5753 (Tree_Write): New procedure
5754 (Check_Precondition_Postcondition): New procedure
5755 Implement pragmas Check and Check_Policy
5756 Merge Assert processing with Check
5758 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5759 New warning flag -gnatw.e
5761 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5762 returning whether a task (or main procedure) has a pragma
5764 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5765 (or main procedure) has a pragma Relative_Deadline.
5766 Add Next_Pragma field to N_Pragma node
5767 (PPC_Enabled): New flag
5768 (Next_Pragma): Now used for Pre/Postcondition processing
5770 * snames.h, snames.ads, snames.adb: New standard name
5772 Add entry for 'Invalid_Value attribute
5773 Add entry for new attribute Has_Tagged_Values
5774 Add entry for Enum_Val attribute
5775 Add new standard names Aggregate, Configuration and Library.
5778 Add Pragma_Precondition
5779 Add Pragma_Postcondition
5780 Add Attribute_Result
5781 New standard name Archive_Builder_Append_Option
5782 (Preset_Names): Add _relative_deadline and relative_deadline definitions
5783 There was also a missing non_preemptive_within_priorities.
5784 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5786 Add support for pragmas Check and Check_Policy
5788 * tree_gen.adb: Call Sem_Aux.Tree_Write
5790 * tree_in.adb: Call Sem_Aux.Tree_Read
5792 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5795 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5798 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5799 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5801 (Expand_Pragma_Check): New procedure
5803 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5806 * sinfo.adb (PPC_Enabled): New flag
5808 2008-04-08 Robert Dewar <dewar@adacore.com>
5809 Gary Dismukes <dismukes@adacore.com>
5810 Javier Miranda <miranda@adacore.com>
5811 Ed Schonberg <schonberg@adacore.com>
5813 * fe.h: Remove global Optimize_Alignment flag, no longer used
5815 * layout.adb: Test Optimize_Alignment flags rather than global switch
5817 * lib.ads, lib.adb: New OA_Setting field in library record
5819 * lib-load.adb: New OA_Setting field in library record
5821 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5822 units mentioned in limited_with_ clauses in the ali file, with an
5824 New Ox fields in U line
5826 * opt.adb: New flag Optimize_Alignment_Local
5827 (Check_Policy_List[_Config]): New flags
5829 * opt.ads (Invalid_Value_Used): New flag
5830 New switch Optimize_Alignment_Local
5831 (Warn_On_Parameter_Order): New flag
5832 (Check_Policy_List[_Config]): New flags
5834 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5835 limited_with clauses.
5836 New data structures for Optimize_Alignment
5838 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5840 (Check_Consistent_Optimize_Alignment): Rework for new structure
5841 (Check_Consistent_Restrictions): Fix incorrect error message
5843 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5844 created class-wide type (to the Parent field of the specific type).
5845 (Install_Siblings): Handle properly private_with_clauses on subprogram
5846 bodies and on generic units.
5847 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5848 illegal limited_with_clause that names a non-existent package.
5849 (Check_Body_Required): Determine whether a unit named a limited_with
5850 clause needs a body.
5851 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5852 Capture Optimize_Alignment settings to set new OA_Setting field in
5854 (Build_Limited_Views): Include task and protected type declarations.
5856 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5857 case of a possible constant redeclaration where the current object is
5858 an entry index constant.
5859 (Analyze_Object_Declaration): Generate an error in case of CPP
5860 class-wide object initialization.
5861 (Analyze_Object_Declaration): Add extra information on warnings for
5862 declaration of unconstrained objects.
5863 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5864 conflicts with the setting of Stored_Constraint in the case where the
5865 access type entity has already been created as an E_Incomplete_Type due
5866 to a limited with clause.
5867 Use new Is_Standard_Character_Type predicate
5868 (Analyze_Object_Declaration): Apply access_constant check only after
5869 expression has been resolved, given that it may be overloaded with
5870 several access types.
5871 (Constant_Redeclaration): Additional legality checks for deferred
5872 constant declarations tha involve anonymous access types and/or null
5873 exclusion indicators.
5874 (Analyze_Type_Declaration): Set Optimize_Alignment flags
5875 (Analyze_Subtype_Declaration): Ditto
5876 (Analyze_Object_Declaration): Ditto
5877 (Analyze_Object_Declaration): Don't count tasks in generics
5878 Change name In_Default_Expression => In_Spec_Expression
5879 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5880 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5881 (Process_Discriminants): Additional check for illegal use of default
5882 expressions in access discriminant specifications in a type that is not
5884 (Check_Abstract_Overriding): If an inherited function dispaches on an
5885 access result, it must be overridden, even if the type is a null
5887 (Derive_Subprogram): The formals of the derived subprogram have the
5888 names and defaults of the parent subprogram, even if the type is
5889 obtained from the actual subprogram.
5890 (Derive_Subprogram): In the presence of interfaces, a formal of an
5891 inherited operation has the derived type not only if it descends from
5892 the type of the formal of the parent operation, but also if it
5893 implements it. This is relevant for the renamings created for the
5894 primitive operations of the actual for a formal derived type.
5895 (Is_Progenitor): New predicate, to determine whether the type of a
5896 formal in the parent operation must be replaced by the derived type.
5898 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5899 predicate recursive to handle components that have a user-defined
5900 Initialize procedure. Handle controlled derived types whose ancestor
5901 has a user-defined Initialize procedured.
5902 (Note_Possible_Modification): Add Sure parameter, generate warning if
5903 sure modification of constant
5904 Use new Is_Standard_Character_Type predicate
5905 (Find_Parameter_Type): when determining whether a protected operation
5906 implements an interface operation, retrieve the type of the formal from
5907 the entity when the formal is an access parameter or an
5908 anonymous-access-to-subprogram.
5909 Move Copy_Parameter_List to sem_util, for use when building stubbed
5911 (Has_Access_Values): Tagged types now return False
5912 (Within_HSS_Or_If): New procedure
5913 (Set_Optimize_Alignment_Flags): New procedure
5914 Change name In_Default_Expression => In_Spec_Expression
5915 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5916 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5918 2008-04-08 Tristan Gingold <gingold@adacore.com>
5920 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5922 2008-04-08 Tristan Gingold <gingold@adacore.com>
5926 * cuintp.c: Fix 16 bits issue for AVR.
5927 On AVR, integer is 16 bits, so it can't be used to do math with
5929 So use long_integer instead.
5931 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5933 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5934 System.OS_Primitives.
5935 Change type of various constants, parameters and local variables from
5936 Time to representation type OS_Time.
5937 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5938 Remove the declaration of constant Mili_F from several routines. New
5939 body for internal package Conversions_Operations.
5940 (Time_Of): Add default parameters for several formals.
5942 * a-caldel.adb: Minor reformatting
5944 * a-calend.ads, a-calend.adb: New body for internal package
5945 Conversions_Operations.
5946 (Time_Of): Add default parameters for several formals.
5948 * Makefile.rtl: Add a-ststop
5949 Add Ada.Calendar.Conversions to the list of runtime files.
5952 * a-calcon.adb, a-calcon.ads: New files.
5954 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5955 Tristan Gingold <gingold@adacore.com>
5957 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5958 (Install_Restricted_Handlers): New procedure
5959 which is a simplified version of Install_Handlers that does not store
5960 previously installed.
5962 * s-interr-vxworks.adb: Fix ACATS cxc3001
5963 On VxWorks interrupts can't be detached.
5964 (Install_Restricted_Handlers): New procedure.
5966 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5969 2008-04-08 Olivier Hainque <hainque@adacore.com>
5971 * s-intman-vxworks.ads, s-intman-vxworks.adb
5972 (Map_And_Raise_Exception): Remove. Was an import of only part of the
5973 required services already implemented elsewhere.
5974 (Notify_Exception): Delete body, import __gnat_error_handler instead.
5975 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5976 argument passed to the handler, which we need for ZCX propagation
5979 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5981 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5983 * g-timsta.adb, g-timsta.ads: New files.
5985 2008-04-08 Robert Dewar <dewar@adacore.com>
5987 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5988 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5989 (Raise_Exception_Always): Fix documentation accordingly
5991 2008-04-08 Robert Dewar <dewar@adacore.com>
5993 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5996 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5999 2008-04-08 Javier Miranda <miranda@adacore.com>
6000 Robert Dewar <dewar@adacore.com>
6001 Ed Schonberg <schonberg@adacore.com>
6003 * a-tags.adb (Register_Interface_Offset): New subprogram.
6004 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
6005 (To_Predef_Prims_Table_Ptr): Removed.
6006 (Acc_Size): Removed.
6007 (To_Acc_Size): Removed.
6008 (Parent_Size): Modified to the call the subprogram returning the size of
6009 the parent by means of the new TSD component Size_Func.
6011 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
6012 (DT_Offset_To_Top_Offset): New constant value that is used to generate
6013 code referencing the Offset_To_Top component of the dispatch table's
6015 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
6016 use of 'address to initialize dispatch table slots.
6017 (Size_Func): New component of the TSD. Used by the run-time to call the
6018 size primitive of the tagged type.
6020 * checks.adb (Apply_Access_Check): Avoid check when accessing the
6021 Offset_To_Top component of a dispatch table.
6022 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
6023 deferred constant declaration. do not add a null expression, to prevent
6024 spurious errors when full declaration is analyzed.
6025 (Apply_Discriminant_Check): If both discriminant constraints share a
6026 node which is not static but has no side effects, do not generate a
6027 check for that discriminant.
6028 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
6029 subexpr, since the prefix of an attribute is a name.
6031 * checks.ads: Fix nit in comment.
6033 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
6034 and body of predefined primitives in case of CPP tagged type
6036 (Freeze_Type): Deal properly with no storage pool case
6037 (Make_Predefined_Primitive_Specs): Generate specification of abstract
6038 primitive Deep_Adjust if a nonlimited interface is derived from a
6040 (Build_Dcheck_Functions): Create discriminant-checking functions only
6041 for variants that have some component(s).
6042 (Build_Slice_Assignment): In expanded code for slice assignment, handle
6043 properly the case where the slice bounds extend to the last value of the
6044 underlying representation.
6045 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
6046 (Is_Variable_Size_Record): An array component has a static size if
6047 index bounds are enumeration literals.
6049 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
6050 an external tag has been specified for the type.
6051 (Building_Static_DT): Add missing support for private types.
6052 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
6053 to the entity associated with the parent of Typ. This is done to
6054 avoid wrong access when the parent is a private type.
6055 (Expand_Interface_Conversion): Improve error message when the
6056 configurable runtime has no support for dynamic interface conversion.
6057 (Expand_Interface_Thunk): Add missing support to interface types in
6058 configurable runtime.
6059 (Expand_Dispatching_Call): remove obsolete code.
6060 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
6061 ensure that all subtypes and aggregates associated with dispatch
6062 tables have the attribute Is_Dispatch_Table_Entity set to true.
6063 (Register_Primitive): Rename one variable to improve code reading.
6064 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
6065 of the pointer to the 'size primitive in the TSD.
6067 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
6068 (RE_Offset_To_Top_Ptr): New entity.
6069 (RE_Register_Interface_Offset): New entity.
6070 (RE_Set_Dynamic_Offset_To_Top): New entity.
6071 (RE_Set_Offset_To_Top): Removed entity.
6072 (RE_Prim_Ptr): New entity
6073 (RE_Size_Func): New entity
6074 (RE_Size_Ptr): New entity
6075 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
6076 (Ada_Dispatching_Child): Define this new subrange.
6077 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
6078 RE_Time_Span, and RE_Time_Span_Zero).
6079 (RE_Unit_Table): Add new required run-time calls
6081 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
6084 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
6085 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
6086 initializes the Offset_To_Top component of a dispatch table.
6087 (Build_Predef_Prims): Removed.
6088 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
6090 (Build_Set_Size_Function): New subprogram.
6092 * exp_ch13.adb: Do not generate storage variable for storage_size zero
6093 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
6095 2008-04-08 Robert Dewar <dewar@adacore.com>
6097 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
6098 computing Fore when Exp > 0
6100 2008-04-08 Robert Dewar <dewar@adacore.com>
6102 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
6104 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
6105 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
6107 * fmap.adb: Remove Big_String declarations (now in Types)
6108 (No_Mapping_File): New Boolean global variable
6109 (Initialize): When mapping file cannot be read, set No_Mapping_File to
6111 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
6112 tables were empty before adding entries, open the mapping file
6113 with Truncate = True, instead of delete/re-create.
6115 * fname-sf.adb: Remove Big_String declarations (now in Types)
6117 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
6118 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
6121 * table.ads: Add for Table_Ptr'Storage_Size use 0
6123 * types.ads: Add Big_String declarations
6124 Add Size_Clause of zero for big pointer types
6126 2008-04-08 Vincent Celier <celier@adacore.com>
6128 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
6129 (Usage): Add line for switch --subdirs=
6130 Add new switch -eL, to follow symbolic links when processing project
6133 * gnatcmd.adb: Process switches -eL and --subdirs=
6134 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
6135 Program_Name to get proper tool names when AAMP_On_Target is set.
6136 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
6137 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
6138 Osint.Program_Name).
6140 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
6141 (Usage): Add lines for switches -eL and --subdirs=
6143 * makeusg.adb: Add line for switch --subdirs=
6146 (Source_Data): New Boolean component Compiled, defaulted to True
6147 (Empty_File_Name: New global variable in private part, initialized in
6148 procedure Initialize.
6149 (Subdirs_Option): New constant string
6150 (Subdirs): New String_Ptr global variable
6151 (Language_Config): New component Include_Compatible_Languages
6152 (Project_Qualifier): New type for project qualifiers
6153 (Project_Data): New component Qualifier
6154 (Project_Configuration): New component Archive_Builder_Append_Option
6156 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
6157 another imported project indicate the name of this imported project.
6158 (Check_File): When a unit is in two project files, indicate the project
6159 names and the paths of the source files for each project.
6160 (Add_Source): Set Compiled to False if compiler driver is empty. Only
6161 set object, dependency and switches file names if Compiled is True.
6162 (Process_Compiler): Allow the empty string for value of attribute Driver
6163 (Get_Directories): When Subdirs is not null and Object_Dir is not
6164 specified, locate and create if necessary the actual object dir.
6165 (Locate_Directory): When Subdirs is not empty and Create is not the
6166 empty string, locate and create if necessary the actual directory
6167 as a subdirectory of directory Name.
6168 (Check_Library_Attributes.Check_Library): Allow a project where the only
6169 "sources" are header files of file based languages to be imported by
6170 library projects, in multi-language mode (gprbuild).
6171 (Check_Library_Attributes.Check_Library): In multi-language mode
6172 (gprbuild), allow a library project to import a project with no
6173 sources, even when this is not declared explicitly.
6174 (Check_If_Externally_Built): A virtual project extending an externally
6175 built project is also externally built.
6176 (Check_Library_Attributes): For a virtual project extending a library
6177 project, inherit the library directory.
6178 (Process_Project_Level_Array_Attributes): Process new attribute
6179 Inherit_Source_Path.
6180 For projects with specified qualifiers "standard", "library" or
6181 "abstract", check that the project conforms to the qualifier.
6182 (Process_Project_Level_Simple_Attributes): Process new attribute
6183 Archive_Builder_Append_Option.
6185 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
6186 (Normalize_Compiler_Switches): Only keep compiler switches that are
6187 passed to gnat1 by the gcc driver and that are stored in the ALI file
6189 Do not take into account switc -save-temps
6191 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
6192 gprmake is called with -eL.
6193 (Scan_Arg): Recognize switch -eL
6194 (Usage): Add line for switch -eL
6196 * prj.adb (Initialize): Initialize Empty_File_Name
6197 (Project_Empty): New component Qualifier
6199 * prj-attr.ads, prj-attr.adb: New project level attribute
6200 Inherit_Source_Path.
6201 New project level attribute Archive_Builder_Append_Option
6203 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
6205 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
6206 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
6207 upward compatibility.
6209 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
6210 each Trying ..." on different lines.
6211 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
6212 is "configuration" when not in configuration. Fail when in configuration
6213 when a specified qualifier is other than "configuration".
6215 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
6216 full associative array together.
6217 (Recursive_Process): Put the project qualifier in the project data
6219 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
6220 (Set_Project_Qualifier_Of): New procedure
6222 2008-04-08 Robert Dewar <dewar@adacore.com>
6224 * errout.ads: Update comments for new handling of info: messages
6226 * erroutc.adb (Matches): New procedure
6227 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
6228 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
6229 info messages as well as style messages.
6231 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
6233 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
6235 (Check_A_Call): Special "info: " warnings now have ? in the text
6236 (Elab_Warning): Use info message in static case
6238 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6240 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
6241 whether an array aggregate with static bounds and scalar components
6242 should be expanded into a static constant.
6244 2008-04-08 Gary Dismukes <dismukes@adacore.com>
6245 Ed Schonberg <schonberg@adacore.com>
6246 Robert Dewar <dewar@adacore.com>
6248 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
6249 Has_Stream_Attribute_ Definition when checking for available stream
6250 attributes on parameters of a limited type in Ada 2005. Necessary for
6251 proper recognition of visible stream attribute clauses.
6252 (Has_Stream_Attribute_Definition): If the type is derived from a
6253 private type, then use the derived type's underlying type for checking
6254 whether it has stream attributes.
6255 (Validate_Object_Declaration): The check for a user-defined Initialize
6256 procedure applies also to types with controlled components or a
6257 controlled ancestor.
6258 Reject an object declaration in a preelaborated unit if the type is a
6259 controlled type with an overriding Initialize procedure.
6260 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
6261 checking when the parent of a dereference is a selected component and
6262 the name has not been analyzed.
6264 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
6265 prefixes that are invalid explicit dereferences of remote
6266 access-to-class-wide values, first checking whether the selected
6267 component is a prefixed form of call to a tagged operation.
6268 (Analyze_Call): Remove code that issues an error for limited function
6269 calls in illegal contexts, as we now support all of the contexts that
6270 were forbidden here.
6271 Allow a function call that returns a task.and appears as the
6272 prefix of a selected component.
6273 (Analyze_Reference): Give error message if we try to make a 'Reference
6274 for an object that is atomic/aliased without its type having the
6275 corresponding attribute.
6276 (Analyze_Call): Remove condition checking for attributes to allow
6277 calls to functions with inherently limited results as prefixes of
6278 attributes. Remove related comment about Class attributes.
6279 (Analyze_Selected_Component): If the prefix is a remote type, check
6280 whether this is a prefixed call before reporting an error.
6281 (Complete_Object_Operation): If the controlling formal is an access to
6282 variable reject an actual that is a constant or an access to one.
6283 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
6284 primitive operations from base type.
6286 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
6288 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
6289 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
6290 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
6291 (Expand_N_Slice): Test for prefix that is a build-in-place function call
6292 and call Make_Build_In_Place_Call_In_Anonymous_Context.
6293 (Analyze_Call): Remove code that issues an error for limited function
6294 calls in illegal contexts, as we now support all of the contexts that
6295 were forbidden here.
6296 New calling sequence for Get_Simple_Init_Val
6297 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
6298 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
6300 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6301 Ed Schonberg <schonberg@adacore.com>
6302 Robert Dewar <dewar@adacore.com>
6304 * exp_ch2.adb: Minor reformatting.
6305 (Expand_Entry_Index_Parameter): Set the type of the identifier.
6306 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
6307 (Expand_Protected_Component): New routine.
6308 (Expand_Protected_Private): Removed.
6309 Add Sure parameter to Note_Possible_Modification calls
6311 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
6312 generated subprogram declaration must inherit the overriding indicator
6313 from the instantiation node.
6314 (Validate_Access_Type_Instance): If the designated type of the actual is
6315 a limited view, use the available view in all cases, not only if the
6316 type is an incomplete type.
6317 (Instantiate_Object): Actual is illegal if the formal is null-excluding
6318 and the actual subtype does not exclude null.
6319 (Process_Default): Handle properly abstract formal subprograms.
6320 (Check_Formal_Package_Instance): Handle properly defaulted formal
6321 subprograms in a partially parameterized formal package.
6322 Add Sure parameter to Note_Possible_Modification calls
6323 (Validate_Derived_Type_Instance): if the formal is non-limited, the
6324 actual cannot be limited.
6325 (Collect_Previous_Instances): Generate instance bodies for subprograms
6328 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
6330 Add Sure parameter to Note_Possible_Modification calls
6331 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
6332 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
6333 constant overlaid by variable and issue warning.
6334 Use new Is_Standard_Character_Type predicate
6335 (Analyze_Record_Representation_Clause): Check that the specified
6336 Last_Bit is not less than First_Bit - 1.
6337 (Analyze_Attribute_Definition_Clause, case Address): Check for
6338 self-referential address clause
6340 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
6341 detection mechanism when the lhs is a prival.
6342 (Analyze_Assignment): Call Check_Unprotected_Access to detect
6343 assignment of a pointer to protected data, to an object declared
6344 outside of the protected object.
6345 (Analyze_Loop_Statement): Check for unreachable code after loop
6346 Add Sure parameter to Note_Possible_Modication calls
6347 Protect analysis from previous syntax error such as a scope mismatch
6349 (Analyze_Assignment_Statement): The assignment is illegal if the
6350 left-hand is an interface.
6352 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
6353 violation of restriction No_Implicit_Conditionals
6354 Add Sure parameter to Note_Possible_Modication calls
6355 Use new Is_Standard_Character_Type predicate
6356 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
6357 call as operator. Fixes problems (e.g. validity checking) which
6358 come from the result looking as though it does not come from source).
6359 (Resolve_Call): Check case of name in named parameter if style checks
6361 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
6362 from the checking that such calls should not occur from an entry body.
6363 (Resolve_Call): If the return type of an Inline_Always function
6364 requires the secondary stack, create a transient scope for the call
6365 if the body of the function is not available for inlining.
6366 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
6367 that are actuals for in-out formals.
6368 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
6369 primitive operations from base type.
6370 (Analyze_Selected_Component): If the context is a call to a protected
6371 operation the parent may be an indexed component prior to expansion.
6372 (Resolve_Actuals): If an actual is of a protected subtype, use its
6373 base type to determine whether a conversion to the corresponding record
6375 (Resolve_Short_Circuit): Handle pragma Check
6377 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
6378 Use new Is_Standard_Character_Type predicate
6379 (Eval_Relational_Op): Catch more cases of string comparison
6381 2008-04-08 Robert Dewar <dewar@adacore.com>
6382 Gary Dismukes <dismukes@adacore.com>
6384 * s-rident.ads: Add No_Default_Initialization restriction
6387 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
6388 (Set_TSS): Handle No_Default_Initialization case
6390 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
6391 No_Default_Initialization
6392 (Expand_N_Subprogram_Body): Remove redundant initialization of out
6393 parameters when Normalize_Scalars is active.
6394 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
6395 Fix casing error in formal parameter name in call
6396 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
6397 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6398 dispatching call on VM targets.
6400 2008-04-08 Gary Dismukes <dismukes@adacore.com>
6401 Thomas Quinot <quinot@adacore.com>
6403 * exp_ch7.adb (Find_Final_List): Change the test for generating a
6404 selected component from an access type's Associated_Final_Chain to
6405 check for the presence of that field, rather than assuming it exists
6406 for all named access types.
6407 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
6408 procedure to call at the end of the generated cleanup procedure.
6409 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
6410 and an At_End_Proc already exists in the handled sequence of statements
6411 for which cleanup actions are being expanded, the original cleanup
6412 action must be preserved.
6414 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6415 Ed Schonberg <schonberg@adacore.com>
6416 Robert Dewar <dewar@adacore.com>
6417 Gary Dismukes <dismukes@adacore.com>
6419 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
6420 Build_Unprotected_Subprogram_Body): Generate debug info for
6421 declarations related to the handling of private data in task and
6423 (Debug_Private_Data_Declarations): New subprogram.
6424 (Install_Private_Data_Declarations): Remove all debug info flagging.
6425 This is now done by Debug_Private_Data_Declarations at the correct
6427 (Build_Simple_Entry_Call): If the task name is a function call, expand
6428 the prefix into an object declaration, and make the surrounding block a
6430 (Build_Master_Entity): An internal block is a master if it wraps a call.
6431 Code reformatting, update comments. Code clean up.
6432 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
6433 (Replicate_Entry_Formals): If the formal is an access parameter or
6434 anonymous access to subprogram, copy the original tree to create new
6435 entities for the formals of the subprogram.
6436 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
6437 for tasks to store the value passed using pragma Relative_Deadline.
6438 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
6439 run-time call to create a task.
6440 (Build_Wrapper_Spec): If the controlling argument of the interface
6441 operation is an access parameter with a non-null indicator, use the
6442 non-null indicator on the wrapper.
6444 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
6445 present, which it may not be in the case where the type entity is an
6446 incomplete view brought in by a limited with.
6447 (Analyze_Task_Type): Only retrieve the full view when present, which it
6448 may not be in the case where the type entity is an incomplete view brought
6449 in by a limited with.
6450 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
6451 private components of a protected type, to prevent the generation of freeze
6452 nodes for which there is no proper scope of elaboration.
6454 * exp_util.ads, exp_util.adb
6455 (Remove_Side_Effects): If the expression is a function call that returns a
6456 task, expand into a declaration to invoke the build_in_place machinery.
6457 (Find_Protection_Object): New routine.
6458 (Remove_Side_Effects): Also make a copy of the value
6459 for attributes whose result is of an elementary type.
6460 (Silly_Boolean_Array_Not_Test): New procedure
6461 (Silly_Boolean_Array_Xor_Test): New procedure
6462 (Is_Volatile_Reference): New function
6463 (Remove_Side_Effects): Use Is_Volatile_Reference
6464 (Possible_Bit_Aligned_Component): Handle slice case properly
6466 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
6467 case test to Exp_Util
6468 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
6470 2008-04-08 Thomas Quinot <quinot@adacore.com>
6472 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
6474 (Add_RACW_Features): When processing an RACW in another unit than the
6475 main unit, set Body_Decls to No_List to indicate that the bodies of
6476 the type's TSS must not be generated.
6477 (GARLIC_Support.Add_RACW_Read_Attribute,
6478 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
6479 Body_Decls is No_List.
6480 (PolyORB_Support.Add_RACW_Read_Attribute,
6481 PolyORB_Support.Add_RACW_Write_Attribute,
6482 PolyORB_Support.Add_RACW_From_Any,
6483 PolyORB_Support.Add_RACW_To_Any,
6484 PolyORB_Support.Add_RACW_TypeCode): Same.
6485 (Transmit_As_Unconstrained): New function.
6486 (Build_Ordered_Parameters_List): Use the above to order parameters.
6487 (GARLIC_Support.Build_General_Calling_Stubs):
6488 Use the above to determine which parameters to unmarshall using 'Input
6489 at the point where their temporary is declared (as opposed to later on
6491 (PolyORB_Support.Build_General_Calling_Stubs):
6492 Use the above to determine which parameters to unmarshall using From_Any
6493 at the point where their temporary is declared (as opposed to later on
6494 with an assignment).
6496 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6498 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
6499 an Input function for an access type, do not perform default
6500 initialization on the local variable that receives the value, to
6501 prevent spurious warnings when the type is null-excluding.
6503 2008-04-08 Robert Dewar <dewar@adacore.com>
6504 Ed Schonberg <schonberg@adacore.com>
6506 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
6508 (Size_Known): Generic formal scalar types have known at compile
6509 time size, so remove check.
6510 Fix casing error in formal parameter name in call
6511 (Freeze_Subprogram): If the subprogram is a user-defined operator,
6512 recheck its overriding indication.
6514 2008-04-08 Vincent Celier <celier@adacore.com>
6516 * gnat1drv.adb: Send all messages indicating an error to standard error
6518 2008-04-08 Robert Dewar <dewar@adacore.com>
6520 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
6521 (List_Applicable_Restrictions): Do not list existing restrictions
6523 2008-04-08 Thomas Quinot <quinot@adacore.com>
6525 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
6526 add a pointer to generic sockets literature
6527 do not mention that the given example is "typical" usage.
6528 Remove obsolete comment about multicast not being supported on Windows.
6529 (Connect_Socket): Make Server mode IN rather than IN OUT
6530 since this formal is never modified.
6532 2008-04-08 Robert Dewar <dewar@adacore.com>
6534 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
6535 the declaration for some different entity.
6536 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
6537 list is precent (following the parent subtype indication), display
6538 appropriate "and" keyword.
6540 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
6541 Remove unnecessary calls to Init_Size_Align and Init_Esize.
6542 Add notes on use of Parent field of an Itype
6544 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6545 Robert Dewar <dewar@adacore.com>
6546 Gary Dismukes <dismukes@adacore.com>
6548 * lib-xref.adb (Is_On_LHS): Remove dead code
6549 (Output_Overriden_Op): If the overridden operation is itself inherited,
6550 list the ancestor operation, which is the one whose body or absstract
6551 specification is actually being overridden. For source navigation
6554 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
6555 operation is primitive for the type.
6556 (Declare_Inherited_Private_Subprograms): If the new operation overrides
6557 an inherited private subprogram, set properly the Overridden_Operation
6558 attribute, for better cross-reference information.
6559 (Analyze_Package_Specification): Do late analysis of spec PPCs
6560 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
6561 properly the full view and underlying full views of a private type in a
6562 child unit, whose full view is derived from a private type in a parent
6563 unit, and whose own full view becomes visible in the child body.
6565 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
6566 primitive operation after the type has been frozen, add an explicit
6567 reference to the type and the operation, because other primitive
6568 references have been emitted already.
6569 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6570 dispatching call on VM targets.
6572 2008-04-08 Vincent Celier <celier@adacore.com>
6573 Thomas Quinot <quinot@adacore.com>
6575 * make.adb: (Gnatmake_Called): Remove, no longer necessary
6576 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
6577 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
6578 (Insert_Project_Sources): Take into account index in multi-unit source
6580 After building a library project, delete all temporary files.
6581 (Initialize): Reset current output after parsing project file.
6582 (Collect_Arguments_And_Compile): Never insert in the queue the sources
6583 of library projects that are externally built.
6584 Put file name in error and inform messages if -df is used
6585 (Display): If invoked with -d7, do not display path names, but only
6588 * makeutl.ads (Path_Or_File_Name): New function
6589 (Path_Or_File_Name): New function
6591 2008-04-08 Arnaud Charlet <charlet@adacore.com>
6593 * Make-lang.in: Disable warnings during first stage of bootstrap
6595 Update dependencies.
6597 2008-04-08 Vincent Celier <celier@adacore.com>
6599 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
6600 case to decide if ALI object file is included in library.
6601 (Build_Library): Never attempt to build a library if the project is
6604 2008-04-08 Thomas Quinot <quinot@adacore.com>
6606 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
6607 (No_List) is defined to return Empty.
6609 2008-04-08 Jose Ruiz <ruiz@adacore.com>
6611 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
6614 (Read_Default_Search_Dirs): Do not consider spaces as path separators
6615 because spaces may be part of legal paths.
6617 2008-04-08 Robert Dewar <dewar@adacore.com>
6619 * par-ch11.adb (P_Exception_Handler): Check indentation level for
6622 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6624 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
6625 in a type declaration, if this is not an interface declaration or
6626 private type extension.
6628 2008-04-08 Vincent Celier <celier@adacore.com>
6630 * prj-util.adb (Executable_Of): New String parameter Language. When
6631 Ada_Main is False and Language is not empty, attempt to remove the body
6632 suffix or the spec suffix of the language to get the base of the
6633 executable file name.
6634 (Put): New Boolean parameter Lower_Case, defauilted to False. When
6635 Lower_Case is True, put the value in lower case in the name list.
6636 (Executable_Of): If there is no executable suffix in the configuration,
6637 then do not modify Executable_Extension_On_Target.
6639 * prj-util.ads (Executable_Of): New String parameter Language,
6640 defaulted to the empty string.
6641 (Put): New Boolean parameter Lower_Case, defauilted to False
6643 2008-04-08 Robert Dewar <dewar@adacore.com>
6645 * scng.adb (Scan_Identifier): Handle case of identifier starting with
6646 wide character using UTF-8 encoding.
6648 2008-04-08 Javier Miranda <miranda@adacore.com>
6650 * sem.adb (Analyze): Consider case in which we analyze an empty node
6651 that was generated by a call to a runtime function that is not
6652 available under the configurable runtime.
6654 * sem.ads (Inside_Freezing_Actions): New flag.
6655 (Save_Check_Policy_List): New field in scope stack entry
6657 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6658 Robert Dewar <dewar@adacore.com>
6660 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
6661 the ancestor part of an extension aggregate for a limited type.
6662 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
6663 enumeration index bounds.
6664 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
6665 when array is too short.
6666 (Check_Expr_OK_In_Limited_Aggregate): Move function
6667 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
6669 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
6670 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
6671 component associations.
6672 (Check_Non_Limited_Type): Moved to outer level and renamed.
6673 (Resolve_Record_Aggregate): In an extension aggregate, an association
6674 with a box initialization can only designate a component of the
6675 extension, not a component inherited from the given ancestor
6677 * sem_case.adb: Use new Is_Standard_Character_Type predicate
6679 2008-04-08 Robert Dewar <dewar@adacore.com>
6681 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
6683 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
6684 Properly handle case where Aft > Scale and input number is less than
6687 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6689 * s-stoele.ads, s-soflin.ads: Move the location of
6690 Dummy_Communication_Block from System.Storage_Elements to
6693 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6694 emulate Communication_Block in certain scenarios.
6696 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6698 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6700 Add new subtype S_WWC, unchecked conversion routines From_WWC and
6702 (I_WWC, O_WWC): New routines for input and output of
6703 Wide_Wide_Character.
6705 2008-04-08 Robert Dewar <dewar@adacore.com>
6707 * stringt.adb (Write_String_Table_Entry): Handle wide characters
6710 2008-04-08 Robert Dewar <dewar@adacore.com>
6712 * styleg.adb (Check_Comment): Allow special char after -- in
6713 non-end-of-line case
6715 2008-04-08 Robert Dewar <dewar@adacore.com>
6717 * stylesw.adb: Implement -gnaty + - y options
6718 (Set_GNAT_Style_Check_Options): Includ I in style check string
6720 * stylesw.ads: Add comments for new style switch options
6722 2008-04-08 Sergey Rybin <rybin@adacore.com>
6724 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6725 to the set of the GNAT components needed by ASIS.
6727 2008-04-08 Bob Duff <duff@adacore.com>
6729 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6731 2008-04-08 Tristan Gingold <gingold@adacore.com>
6733 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6734 Improve error message generation.
6736 2008-04-08 Vincent Celier <celier@adacore.com>
6738 * a-direct.adb (Start_Search): Check for Name_Error before checking for
6739 Use_Error, as specified in the RM. Check if directory is open and raise
6740 Use_Error if it is not.
6742 2008-04-08 Vincent Celier <celier@adacore.com>
6743 Robert Dewar <dewar@adacore.com>
6745 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6746 AAMP_On_Target is set.
6748 * vms_data.ads: Add NOxxx to style check switch list
6749 Add entry COMPONENTS for -gnatVe
6750 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6752 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6753 Add qualifiers for gnatmetric coupling options
6754 Add note that -gnata enables all checks
6755 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6756 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6757 New warning flag -gnatw.e
6759 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6760 Add entry for -gnatyN (forgotten before)
6761 Line for new warning switch -gnatw.p
6762 New warning flag -gnatw.e
6764 * gnat_ugn.texi: Add documentation fpr project file switch -aP
6765 Document -gnaty - + y
6766 Replace occurences of "package specification" with "package spec"
6767 Define preprocessing symbols in documentation of gnatprep
6768 Clarify reason for distinguishing overflow checking
6769 Add documentation for project-aware tool switches -eL and --subdirs=
6770 Complete list of configuration pragmas
6771 Specify that, even when gnatmake switch -x is used, mains on the command
6772 line need to be sources of project files.
6773 Editing of gnatcheck/gnatmetric doc.
6774 Add documentation for -gnatw.p/-gnatw.P
6775 Add missing documentation for -fno-inline-functions.
6776 Add documentation for -gnatw.e
6778 * gnat_rm.texi: Add documentation for No_Default_Initialization
6779 Replace occurences of "package specification" with "package spec"
6780 Document use of * in Warnings Off string
6781 Update documentation of alignment/component clauses.
6782 Add documentation for Invalid_Value
6783 Document new consistency rule for Optimize_Alignment
6784 Add documentation for Precondition and Postcondition pragmas
6785 Add documentation for Check and Check_Policy pragmas
6786 Document new Enum_Val attribute
6787 Remove requirement for static string in pragma Assert
6788 Add documentation on GNAT.Time_Stamp
6790 * ug_words: add entry for -gnatVe
6791 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6792 Add entry for -gnatw.e
6794 * debug.adb: Add missing documentation for d.a flag
6795 Document new -gnatd.a switch.
6796 Add documentation for new gnatmake debug switch -df
6798 2008-04-08 Thomas Quinot <quinot@adacore.com>
6800 * gen-soccon.c: Bump year in copyright notices.
6802 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6804 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
6806 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6809 2008-04-08 Robert Dewar <dewar@adacore.com>
6810 Bob Duff <duff@adacore.com>
6812 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6813 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6815 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6817 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6819 * g-trasym.ads: Minor comment improvements
6821 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6823 * a-sequio.ads, a-direio.ads: improve message for tagged type
6825 * a-strunb.ads: Minor reformatting
6827 * a-tifiio.adb: Minor reformatting
6829 * atree.adb (Fix_Parents): Use clearer names for formals
6830 Cleanup and simplify code
6831 Use named notation in calls
6833 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6836 * uintp.adb: Used named notation for some confusing calls
6838 * bindusg.adb: Minor change in one line of output
6840 * cstand.adb: Minor reformatting of src representation of Standard
6842 * a-assert.ads: Add comment.
6844 * g-decstr.adb: Fix bad indentation
6846 * expander.ads, expander.adb: Code clean up.
6848 * sem_dist.ads: Minor comment improvement
6850 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6851 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6853 * i-cstrin.adb: Fix casing error in formal parameter name in call
6855 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6857 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6858 mentioned in limited_with_clauses to do create semantic dependencies
6859 even though they appear in the ali file.
6861 2008-04-08 Emmanuel Briot <briot@adacore.com>
6863 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6865 (Get_Configuration): New subprogram.
6867 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6868 These optional parameters help preserve the casing of the project's name
6869 when pretty-printing.
6871 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
6872 Arnaud Charlet <charlet@adacore.com>
6874 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6875 then use __gnat_set_exit_status to report the returned status code.
6877 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6878 messages on .NET, since some constructs of the language are not
6881 * gnatlink.adb (Gnatlink): In case the command line is too long for the
6882 .NET linker, gnatlink now concatenate all .il files and pass this to
6885 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6886 Xavier Grave <grave@ipno.in2p3.fr>
6888 * Makefile.in: Add make ifeq define for mips/mipsel support.
6889 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6890 system-linux-mips.ads: New files.
6892 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6894 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6895 detect systems using GNU libc.
6901 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6903 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6904 constant constant for sysconf call.
6905 (bit_field): New packed boolean type used by cpu_set_t.
6906 (cpu_set_t): New type corresponding to the C type with
6907 the same name. Note that on the Ada side we use a bit
6908 field array for the affinity mask. There is not need
6909 for the C macro for setting individual bit.
6910 (pthread_setaffinity_np): New imported routine.
6911 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6914 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6916 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6918 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6920 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6921 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6922 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6923 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6924 Return by Depressed Stack Pointer.
6926 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6928 * decl.c (is_variable_size): Do not unconditionally return false
6929 on non-strict alignment platforms.
6931 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6933 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6934 used to process all the variants of the specified type.
6935 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6936 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
6937 (rest_of_type_decl_compilation): Likewise.
6938 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6940 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6942 * gigi.h (insert_block): Kill.
6943 * utils.c (insert_block): Kill.
6945 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
6947 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6948 type has self-referential size, get the size from the initializing
6949 expression directly if it is also a constant whose nominal type
6950 has self-referential size.
6952 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6955 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6958 * env.c: Always include crt_externs.h if __APPLE__ is defined.
6959 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6961 2008-04-01 Andreas Jaeger <aj@suse.de>
6963 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6966 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6968 * g-table.adb, g-tasloc.adb, g-traceb.ads,
6969 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6970 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6971 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6972 gnatlink.adb, gnatmem.adb, gprep.adb,
6973 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6974 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6975 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6976 lib-xref.ads, lib.adb, link.c, live.ads,
6977 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6978 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6979 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6980 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6981 namet.adb, namet.h, nlists.adb, nlists.ads,
6982 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6983 osint-c.ads, osint.adb, osint.ads, output.ads,
6984 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6985 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6986 par-endh.adb, par-labl.adb, par-prag.adb,
6987 par-sync.adb, par-tchk.adb, par-util.adb,
6988 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6989 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6990 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6991 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6993 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
6995 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6996 size if it has overflowed.
6998 2008-03-31 Olivier Hainque <hainque@adacore.com>
6999 Eric Botcazou <ebotcazou@adacore.com>
7001 * utils2.c (find_common_type): Document assumption on t1/t2 vs
7002 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
7004 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7006 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
7007 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
7008 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
7009 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
7010 exp_tss.ads, exp_util.adb, exp_util.ads,
7011 exp_vfpt.adb, freeze.adb, freeze.ads,
7012 frontend.adb, g-alleve.adb, g-altcon.adb,
7013 g-altive.ads, g-alveop.ads, g-alvevi.ads,
7014 g-arrspl.adb, g-busorg.ads, g-calend.adb,
7015 g-calend.ads, g-casuti.ads, g-cgideb.adb,
7016 g-comlin.adb, g-comlin.ads, g-curexc.ads,
7017 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
7018 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
7019 g-dyntab.adb, g-encstr.ads, g-excact.ads,
7020 g-except.ads, g-expect.ads, g-heasor.adb,
7021 g-hesora.adb, g-hesorg.adb, g-htable.ads,
7022 g-locfil.ads, g-md5.adb, g-md5.ads,
7023 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
7024 g-pehage.adb, g-pehage.ads, g-regexp.adb,
7025 g-regexp.ads, g-regpat.adb, g-regpat.ads,
7026 g-soccon-aix.ads, g-soccon-darwin.ads,
7027 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
7028 g-soccon-hpux.ads, g-soccon-irix.ads,
7029 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
7030 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
7031 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
7032 g-soccon-solaris.ads, g-soccon-tru64.ads,
7033 g-soccon-vms.ads, g-soccon-vxworks.ads,
7034 g-soccon.ads, g-socket.adb, g-socket.ads,
7035 g-socthi-mingw.adb, g-socthi-vms.adb,
7036 g-socthi-vxworks.adb, g-soliop-mingw.ads,
7037 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
7038 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
7041 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
7043 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
7044 if the procedure is imported.
7046 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7048 * adaint.c: Fix warnings.
7050 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7052 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
7054 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7056 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
7057 Fix problem of status check for null file
7059 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7061 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
7062 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
7063 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
7064 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
7065 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
7068 2008-03-26 Thomas Quinot <quinot@adacore.com>
7071 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
7072 Get_Socket_Option): Add support for Receive_Packet_Info.
7074 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
7075 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
7076 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
7077 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
7078 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
7079 new constants SO_REUSEPORT and IP_PKTINFO
7081 2008-03-26 Robert Dewar <dewar@adacore.com>
7083 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
7084 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
7085 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
7086 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
7087 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
7088 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
7089 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
7090 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7091 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
7092 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
7093 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
7094 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
7095 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
7096 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
7097 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
7098 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
7099 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
7100 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
7101 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
7102 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
7103 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
7104 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
7105 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
7106 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
7107 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
7108 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
7109 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
7110 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
7111 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
7112 s-tasloc.adb: Minor reformatting.
7114 Remove "used for" sections from comments.
7116 2008-03-26 Robert Dewar <dewar@adacore.com>
7118 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7119 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7120 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7121 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7122 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7123 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7124 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7125 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7126 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7127 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7128 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7129 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7130 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7131 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7132 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7133 double spaced if it fits on one line and otherwise single spaced.
7135 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7137 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
7138 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
7139 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
7140 or task info if the thread could not be created.
7142 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7144 * gnatvsn.ads (Library_Version): Bump to 4.4.
7145 (Current_Year): Bump to 2008.
7147 2008-03-26 Robert Dewar <dewar@adacore.com>
7149 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
7151 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
7153 * debug.adb: Add debug flags d.r and d.v
7154 Add debug flag .T (Optimize_Alignment (Time))
7155 Add debug flag .S (Optimize_Alignment (Space))
7157 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
7158 depending on setting of relevant debug flags.
7159 Replace use of Warnings_Off by Has_Warnings_Off
7160 (Freeze_Entity): In circuit for warning on suspicious convention
7161 actuals, do not give warning if subprogram has same entity as formal
7162 type, or if subprogram does not come from source.
7163 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
7164 if Optimize_Alignment set to Space.
7166 * frontend.adb: Add call to Sem_Warn.Initialize
7167 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
7168 Reset Optimize_Alignment mode from debug switches .S and .T
7170 * layout.adb (Layout_Composite_Object): Rewritten for
7171 Optimize_Aligment pragma.
7173 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
7176 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
7178 * par-prag.adb (N_Pragma): Chars field removed, use Chars
7179 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
7180 this change. Add entry for pragma Optimize_Alignment
7182 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
7183 (Pragma_Identifier (..
7184 instead, adjustments throughout to accomodate this change.
7185 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
7186 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
7187 Add implementation of pragma Optimize_Alignment
7189 2008-03-26 Vincent Celier <celier@adacore.com>
7191 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
7192 Improve memory usage to avoid use of stack.
7194 2008-03-26 Robert Dewar <dewar@adacore.com>
7196 * a-teioed.ads: Correct value of Default_Fill
7198 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
7200 2008-03-26 Robert Dewar <dewar@adacore.com>
7202 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
7203 with Current_Output (introduce Self).
7205 2008-03-26 Robert Dewar <dewar@adacore.com>
7207 * checks.adb (Ensure_Valid): Capture valid status if possible
7210 2008-03-26 Robert Dewar <dewar@adacore.com>
7212 * stand.ads: Deal with reordering of package standard declarations
7214 * cstand.adb: Put package Standard declarations in proper order
7216 2008-03-26 Robert Dewar <dewar@adacore.com>
7218 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
7219 (Pragma_Identifier (.. instead.
7220 (OK_To_Reorder_Components): New flag
7221 (Has_Entries): Code cleanup.
7222 (Warnings_Off_Used): New flag
7223 (Warnings_Off_Used_Unmodified): New flag
7224 (Warnings_Off_Used_Unreferenced): New flag
7225 (Has_Warnings_Off): New function
7226 (Has_Unmodified): New function
7227 (Has_Unreferenced): New function
7228 (Is_Trivial_Subprogram): New flag
7229 (Is_Static_Dispatch_Table_Entity): New attribute.
7230 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
7231 (more consistent with other similar names)
7232 (Access_Subprogram_Type): New classification function
7234 2008-03-26 Robert Dewar <dewar@adacore.com>
7236 * errout.ads: Document new !! insertion sequence
7238 * errout.adb (N_Pragma): Chars field removed, use Chars
7239 (Pragma_Identifier (.. instead.
7240 Replace use of Warnings_Off by Has_Warnings_Off
7241 (Error_Msg_Internal): Don't delete warning ending in !!
7243 2008-03-26 Robert Dewar <dewar@adacore.com>
7245 * par.adb (Check_No_Right_Paren): Removed no longer used
7247 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
7248 (Pragma_Identifier (.. instead.
7250 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
7252 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
7253 par-ch4.adb: Minor improvements in error recovery and messages.
7255 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
7258 * par-ch9.adb: Minor improvements in error recovery and messages
7259 (P_Protected): Better error recovery for "protected type x;"
7261 * par-util.adb: Minor improvements in error recovery and messages
7262 (Check_No_Right_Paren): Removed no longer used
7264 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7266 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
7267 that the prefix of an attribute is the type of the aggregate being
7270 2008-03-26 Javier Miranda <miranda@adacore.com>
7271 Robert Dewar <dewar@adacore.com>
7273 * exp_attr.adb (N_Pragma): Chars field removed.
7274 (Expand_N_Attribute_Reference): If the designated type associated with
7275 attribute 'Unrestricted_Access is a subprogram entity then replace it
7276 by an E_Subprogram_Type itype.
7277 Implement attribute Old
7279 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
7281 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
7283 New_Internal_Entity by call to Create_Itype to centralize calls
7284 building itypes, ad propagate the convention of the designated
7285 subprogram. In addition, disable the machinery cleaning constant
7286 indications from all entities in current scope when 'Unrestricted_Access
7287 corresponds with a node initializing a dispatch table slot.
7288 (Analyze_Attribute): Parameterless attributes returning a string or a
7289 type will not be called with improper arguments, so we can remove junk
7290 code that was dealing with this case.
7291 Implement attribute Old
7293 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
7294 Add entry for pragma Optimize_Alignment
7295 New standard names Sync and Synchronize
7297 2008-03-26 Robert Dewar <dewar@adacore.com>
7298 Arnaud Charlet <charlet@adacore.com>
7300 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
7302 (No_Exception_Propagation_Active): New function.
7303 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
7304 Update comments, and review all uses of No_Exception_Propagation, which
7305 are now correct and in sync with what gigi expects.
7307 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
7309 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
7310 Update comments, and review all uses of No_Exception_Propagation, which
7311 are now correct and in sync with what gigi expects.
7313 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7315 * sem_ch3.adb (Access_Definition): If the access type is the return
7316 result of a protected function, create an itype reference for it
7317 because usage will be in an inner scope from the point of declaration.
7318 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
7319 OK_To_Reorder_Components.
7320 (Make_Index): If an overloaded range includes a universal integer
7321 interpretation, resolve to Standard.Integer.
7322 (Analyze_Subtype_Indication): Copy Convention to subtype
7323 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
7324 limited an synchronized progenitors in type declaration and private
7325 extension declarations.
7327 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
7328 protected subprogram body, determine proper scope from subprogram
7331 2008-03-26 Robert Dewar <dewar@adacore.com>
7333 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
7336 2008-03-26 Gary Dismukes <dismukes@adacore.com>
7338 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
7339 of a heap allocator for a limited unconstrained function return when
7340 resstriction No_Allocators is active.
7341 (Analyze_Allocator): The restriction No_Allocators is now only checked
7342 on allocators that have Comes_From_Source set, as per RM-H.4(7).
7344 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
7345 of a heap allocator for a limited unconstrained function return when
7346 resstriction No_Allocators is active.
7347 (Analyze_Allocator): The restriction No_Allocators is now only checked
7348 on allocators that have Comes_From_Source set, as per RM-H.4(7).
7349 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
7350 operands are fixed-point types, the universal_fixed predefined operation
7351 is used, regardless of whether the operand type (s) have a primitive
7352 operation of the same name.
7354 2008-03-26 Javier Miranda <miranda@adacore.com>
7356 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
7357 Is_Static_Dispatch_Table
7358 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
7359 to Exchange_Declarations to exchange the private and full-view. Bug
7360 found working in this issue.
7361 (Expand_Dispatching_Call): Propagate the convention of the subprogram
7362 to the subprogram pointer type.
7363 (Make_Secondary_DT): Replace generation of Prim'Address by
7364 Address (Prim'Unrestricted_Access)
7365 (Make_DT): Replace generation of Prim'Address by
7366 Address (Prim'Unrestricted_Access)
7367 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
7368 simple call form for single entry.
7369 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
7370 tables of predefined primitives).
7371 (Make_Secondary_DT): Add support to handle access to dispatch tables of
7372 predefined primitives.
7373 (Make_Tags): Add entities to Access_Dispatch_Table associated with
7374 access to dispatch tables containing predefined primitives.
7376 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
7377 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
7379 (Register_Predefined_DT_Entry): Updated to handle the new contents
7380 of attribute Access_Disp_Table (pointers to dispatch tables containing
7381 predefined primitives).
7383 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
7385 (Find_Interface_ADT): Updated to skip the new contents of attribute
7386 Access_Dispatch_Table (pointers to dispatch tables containing predefined
7389 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
7391 (Set_Convention): Use new function Is_Access_Subprogram_Type
7392 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
7393 Access_Dispatch_Table (pointers to dispatch tables containing predefined
7396 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
7397 expanded code avoiding calls to Build_Predef_Prims.
7398 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
7399 call to Build_Get_Predefined_Prim_Op_Address.
7401 2008-03-26 Javier Miranda <miranda@adacore.com>
7403 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
7404 subprogram Corresponding_Runtime_Package to know the runtime package
7405 that will provide support to a given protected type.
7407 * exp_ch9.adb (Add_Private_Declarations,
7408 Build_Protected_Subprogram_Call,
7409 Build_Protected_Entry, Build_Simple_Entry_Call,
7410 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
7411 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
7412 cleanup using the new centralized subprogram Corresponding_Runtime
7413 Package to know the runtime package that provides support to
7414 a given protected type.
7416 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7418 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
7419 assignment is within the initialization procedure for a packed array,
7420 and Initialize_Scalars is enabled, compile right-hand side with checks
7421 off, because the value is purposely out of range.
7423 2008-03-26 Vincent Celier <celier@adacore.com>
7425 * gnatcmd.adb: Add processing for GNAT SYNC
7427 * vms_conv.ads: (Command_Type): Add command Sync
7429 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
7431 * vms_data.ads: Add entries for -gnatw.w
7432 Add qualifier for gnatstub --header-file option
7433 Add switches for GNAT SYNC
7435 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
7436 (Add_Package_Name): New procedure
7437 (Package_Name_List): New function
7438 (Initialize): Add known package names to the list
7439 (Register_New_Package): Add the new package name to the list
7441 2008-03-26 Robert Dewar <dewar@adacore.com>
7443 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
7444 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
7445 Raise_Exception by "raise with" construct.
7447 2008-03-26 Pascal Obry <obry@adacore.com>
7449 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
7450 supported platforms.
7452 * Makefile.rtl: Add g-sercom.o.
7454 * impunit.adb: Add g-sercom.adb.
7456 * s-crtl.ads (open): New routine.
7460 * s-osinte-mingw.ads (BYTE): New type.
7462 (OVERLAPPED): Likewise.
7463 (GENERIC_READ): New constant.
7464 (GENERIC_WRITE): Likewise.
7465 (OPEN_EXISTING): Likewise.
7466 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
7468 (CreateFile): New routine.
7469 (WriteFile): Likewise.
7470 (ReadFile): Likewise.
7471 (CloseHandle): Move next to the other file oriented routines.
7473 * g-sercom.ads: New unit.
7475 * g-sercom.adb: Default implementation, calls to this unit will raise
7476 a program error exception.
7478 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
7479 GNU/Linux implementations.
7481 2008-03-26 Robert Dewar <dewar@adacore.com>
7483 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
7485 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
7486 unchecked conversion for different conventions only for subprogram
7489 2008-03-26 Vincent Celier <celier@adacore.com>
7491 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
7492 to check if the specified object file is correct.
7494 2008-03-26 Thomas Quinot <quinot@adacore.com>
7496 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
7497 Comes_From_Source to exclude primitives from being checked. We want to
7498 exclude predefined primitives only, so use the appropriate specific
7499 predicate. Also, flag a formal parameter of an anonymous
7500 access-to-subprogram type as illegal for a primitive operation of a
7501 remote access to class-wide type.
7503 2008-03-26 Vincent Celier <celier@adacore.com>
7505 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
7506 known, check if it may be a missspelling of a known package name. In
7507 not verbose, not mode, issue warnings only if the package name is a
7508 possible misspelling.
7509 In verbose mode, always issue a warning for a not known package name,
7510 plus a warning if the name is a misspelling of a known package name.
7512 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
7513 limited withs or limited withs are parse during one call.
7514 (Parse_Single_Project): Post parse context clause in two passes: non
7515 limited withs before current project and limited withs after current
7518 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
7519 project with the name With_Name, even if it is only extended indirectly.
7520 (Recursive_Process): Process projects in order: first single withs, then
7521 current project, then limited withs.
7523 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
7524 project with the name With_Name, even if it is only extended indirectly.
7526 2008-03-26 Robert Dewar <dewar@adacore.com>
7528 * scn.adb (Initialize_Scanner): Format messages belong on standard error
7530 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7532 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
7533 a generic subprogram that is imported, do not attempt to compile
7536 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
7537 imported, do not generate a raise_program_error for the non-existent
7539 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
7540 perform minimal name resolution on the generic to avoid spurious
7542 (Find_Actual_Type): the designated type of the actual in a child unit
7543 may be declared in a parent unit without being an actual.
7545 2008-03-26 Robert Dewar <dewar@adacore.com>
7547 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
7548 * sinfo.ads, sinfo.adb (From_At_End): New flag
7550 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7552 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
7553 operations that have an interface parameter.
7554 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
7555 Don't treat No_Return call as raise.
7557 * sem_disp.adb (Check_Dispatching_Operations): apply check for
7558 non-primitive interface primitives to access parameters, not to all
7559 parameters of an access type.
7561 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7563 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
7564 declarations of a parent unit are made visible when compiling a child
7565 instance, the parent is not a hidden open scope, even though it may
7566 contain other pending instance.
7568 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
7569 hidden open scope for some child instance, it does affect the
7570 visibility status of other stach entries.
7571 (Analyze_Object_Renaming): Check that a class-wide object cannot be
7572 renamed as an object of a specific type.
7574 2008-03-26 Robert Dewar <dewar@adacore.com>
7576 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
7577 recursion and raise SE directly.
7578 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
7579 set for formal type for IN mode parameter.
7581 2008-03-26 Robert Dewar <dewar@adacore.com>
7583 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
7584 (Initialize): New procedure
7585 (Output_Warnings_Off_Warnings): New procedure
7586 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
7587 (Output_Non_Modifed_In_Out_Warnings): Ditto
7588 (Warn_On_Unreferenced_Entity): Ditto
7590 2008-03-26 Vincent Celier <celier@adacore.com>
7592 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
7595 2008-03-26 Matthew Heaney <heaney@adacore.com>
7597 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
7598 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
7599 Marked with clauses as private, and controlled operations as overriding
7601 2008-03-26 Robert Dewar <dewar@adacore.com>
7603 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
7605 2008-03-26 Robert Dewar <dewar@adacore.com>
7607 * back_end.adb, back_end.ads: Minor reformatting
7609 * bindgen.adb: Minor clarification of comments
7611 * fname.ads: Minor comment fixes
7613 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
7614 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
7616 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
7617 xsnames.adb: Remove warnings off pragma no longer needed
7619 * a-catizo.ads, a-calari.ads, a-calfor.adb,
7620 a-calfor.ads: Fix header.
7622 2008-03-26 Tristan Gingold <gingold@adacore.com>
7624 * init.c: Do not adjust pc for HPARITH on alpha/vms.
7626 2008-03-26 Robert Dewar <dewar@adacore.com>
7628 * lib-xref.adb: (OK_To_Set_Reference): New function
7629 (Generate_Reference): Don't set referenced from occurrence in Warnings,
7630 Unmodified, or Unreferenced pragma
7632 2008-03-26 Robert Dewar <dewar@adacore.com>
7634 * alloc.ads: Add entries for Warnings_Off_Pragmas table
7636 2008-03-26 GNAT Script <nobody@adacore.com>
7638 * Make-lang.in: Makefile automatically updated
7640 2008-03-26 Robert Dewar <dewar@adacore.com>
7642 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
7643 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
7644 removed, use Chars (Pragma_Identifier (.. instead, adjustments
7645 throughout to accomodate this change.
7647 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
7649 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
7650 Einfo.Set_Needs_Debug_Info)
7652 2008-03-26 Robert Dewar <dewar@adacore.com>
7654 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
7655 Add description for the new gnatstub option '--header-file'
7656 clarification of -gnatwz/-gnatwZ
7657 Add a "Irix-Specific Considerations" section to document the need to
7658 set LD_LIBRARY_PATH when using the default shared runtime library.
7659 Added documentation for both gcov and gprof.
7661 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
7662 messages that are not suppressed when clients are compiled.
7663 Add documentation of s-pooglo s-pooloc
7664 Document the new GNAT.Serial_Communications API.
7665 Add documentation for 'Old attribute
7666 Add description of pragma Optimize_Alignment
7668 * ug_words: Add entries for -gnatw.w -gnatw.W
7670 * usage.adb: Add line for -gnatw.w (warn on warnings off)
7672 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
7675 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7677 * decl.c (maybe_pad_type): Avoid padding an integral type when
7678 bumping its alignment is sufficient.
7680 2008-03-25 Arnaud Charlet <charlet@adacore.com>
7682 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
7683 Fix wrong formatting (lines too long)
7685 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7687 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7688 a-calend-vms.adb, a-calend.adb, a-calend.ads,
7689 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7690 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7691 a-cohama.ads, a-comlin.ads, a-coorse.adb,
7692 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7693 a-except-2005.ads, a-except.adb, a-except.ads,
7694 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7695 a-exextr.adb, a-filico.ads, a-finali.ads,
7696 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7697 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7698 a-sequio.ads, a-strbou.ads, a-strfix.adb,
7699 checks.adb, exp_ch3.adb, exp_ch4.adb,
7700 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7701 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7702 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7703 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7704 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7706 2008-03-24 Robert Dewar <dewar@adacore.com>
7708 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7709 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7710 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7711 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7712 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7713 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7714 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7715 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7716 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7717 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7718 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7719 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7720 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7721 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7722 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7723 double spaced if it fits on one line and otherwise single spaced.
7725 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7727 PR documentation/15479
7728 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7729 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7730 (doc/gnat_ugn.info): Renamed from ...
7731 (doc/gnat_ugn_unw.info): ... this.
7732 (doc/gnat_ugn.dvi): Renamed from ...
7733 (doc/gnat_ugn_unw.dvi): ... this.
7734 (doc/gnat_ugn.pdf): Renamed from ...
7735 (doc/gnat_ugn_unw.pdf): ... this.
7736 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7738 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7739 unconditionally to gnat_ugn.info. Fix cross references to the
7740 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
7741 and GNU make manuals to be proper texinfo links.
7742 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7744 2008-03-21 Olivier Hainque <hainque@adacore.com>
7746 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7747 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7749 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
7751 * trans.c (addressable_p): Add notes on addressability issues.
7753 2008-03-21 Olivier Hainque <hainque@adacore.com>
7754 Ed Schonberg <schonberg@adacore.com>
7756 * trans.c (addressable_p): Accept COND_EXPR when both arms
7758 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7759 (call_to_gnu): Do not use name reference in the error message
7760 for a misaligned by_reference_parameter. The actual may be a
7763 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
7765 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7767 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7769 * gnat_rm.texi (Implementation Defined Characteristics)
7770 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7772 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7773 (Switches for gnatchop, Installing a library): Likewise.
7775 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
7777 * trans.c (emit_range_check): Do not emit the check if the base type
7778 of the expression is the type against which its range must be checked.
7780 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7782 * decl.c (maybe_pad_type): Use value_factor_p.
7784 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7786 * lang.opt (nostdlib): Move around.
7787 * misc.c (gnat_handle_option): Fix formatting.
7788 (gnat_dwarf_name): Move around.
7789 * trans.c (Case_Statement_to_gnu): Fix formatting.
7790 (gnat_to_gnu): Likewise.
7791 * utils.c (aggregate_type_contains_array_p): Likewise.
7792 (create_subprog_decl): Likewise.
7794 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7796 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7797 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7799 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7801 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7802 BIGGEST_ALIGNMENT when capping the alignment of records with
7803 strict alignment and size clause.
7805 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7807 * lang-specs.h: Pass -gnatwa if -Wall is passed.
7808 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7809 and -Wuninitialized.
7810 (gnat_post_options): Clear warn_unused_parameter.
7812 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7814 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7815 aligned bit-fields, bumping the alignment of the record type if deemed
7817 (value_factor_p): Return false instead of 0.
7819 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7821 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7822 for scalar types with small alignment.
7824 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7826 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7827 from that of the front-end's end label.
7828 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7829 from that of the loop label.
7831 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7833 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7834 comment for the packed array type case.
7835 * utils.c (build_template): Use a loop to strip padding or
7836 containing records for justified modular types.
7838 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7840 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7841 large alignments specified for types.
7842 (validate_alignment): Minor cleanup.
7844 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7846 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7847 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7848 the component for packing, if possible, as well as if a component
7849 size clause is specified.
7850 <E_Record_Subtype>: For an array type used to implement a packed
7851 array, get the component type from the original array type.
7852 Try to get a smaller form of the component for packing, if possible,
7853 as well as if a component size clause is specified.
7854 (round_up_to_align): New function.
7855 (make_packable_type): Add in_record parameter.
7856 For a padding record, preserve the size. If not in_record and the
7857 size is too large for an integral mode, attempt to shrink the size
7858 by lowering the alignment.
7859 Ditch the padding bits of the last component.
7860 Compute sizes and mode manually, and propagate the RM size.
7861 Return a BLKmode record type if its size has shrunk.
7862 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7863 Use Original_Array_Type to retrieve the type in case of an error.
7864 Adjust call to make_packable_type.
7865 (gnat_to_gnu_field): Likewise.
7866 (concat_id_with_name): Minor tweak.
7867 * trans.c (larger_record_type_p): New predicate.
7868 (call_to_gnu): Compute the nominal type of the object only if the
7869 parameter is by-reference. Do the conversion actual type -> nominal
7870 type if the nominal type is a larger record.
7871 (gnat_to_gnu): Do not require integral modes on the source type to
7872 avoid the conversion for types with identical names.
7873 (addressable_p): Add gnu_type parameter. If it is specified, do not
7874 return true if the expression is not addressable in gnu_type.
7875 Adjust recursive calls.
7876 * utils.c (finish_record_type): Remove dead code.
7878 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7881 * decl.c (maybe_pad_type): Avoid padding an integral type when
7882 bumping its alignment is sufficient.
7884 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7886 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7887 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7889 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7890 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7891 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7892 code output strings.
7893 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7894 system-vms_64.ads: Fix typos in ada source code comments.
7895 * sinfo-cn.adb: Remove incomplete sentence.
7897 PR documentation/15479
7898 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7900 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7903 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7905 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7908 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7909 that underlying type is present.
7911 2008-02-26 Tom Tromey <tromey@redhat.com>
7913 * misc.c (internal_error_function): Remove test of
7914 USE_MAPPED_LOCATION.
7915 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7916 (Sloc_to_locus): Remove old location code.
7918 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7920 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7921 `i.e.' by adding comma or `@:' as appropriate.
7922 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7923 plain characters `C', use `@samp{C}'.
7924 * gnat_ugn.texi (File Naming Rules, About gnatkr)
7925 (Krunching Method): Likewise.
7927 * gnat_ugn.texi (Conventions): List environment variables and
7928 metasyntactic variables.
7929 (Compiling Programs): Fix notation of metasyntactic variables.
7930 Add @file where appropriate. Use @file for file extensions,
7932 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7933 instead of @file, @env instead of @code.
7935 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7937 PR documentation/15479
7938 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7939 and `...' with `@dots{}' or `@enddots{}'.
7941 PR documentation/15479
7942 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7943 use @command instead of @code, @option instead of @samp or @code,
7944 @code instead of @var, @samp instead of @file.
7946 PR documentation/15479
7947 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7948 in Makefile rules, by using `&&' rather than `;'.
7950 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7952 PR documentation/15479
7953 * gnat_ugn.texi: In non-code, avoid space before colon.
7954 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7955 (Examples of gnatxref Usage): Use @command{vi} instead of
7957 (Character Set Control): Do not use @code for UTF-8.
7958 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
7960 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7962 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
7964 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
7967 * env.c: Add __rtems__ to if defined.
7968 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
7969 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7970 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
7971 pragma Convention as required.
7972 * gsocket.h: Make compile in and out of RTS.
7973 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
7974 Use g-soccon-rtems.ads.
7975 * g-soccon-rtems.ads, system-rtems.ads: New files.
7977 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7980 * Make-lang.in (gnat1): Add $(GMPLIBS).
7982 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
7984 * decl.c (components_to_record): Improve comment.
7986 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7988 * decl.c (components_to_record): Do not reuse the empty union type
7989 if there is a representation clause on the record.
7990 * trans.c (addressable_p): Return true for INTEGER_CST.
7992 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
7994 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7995 in pointer arithmetics.
7996 * utils2.c (build_allocator): Likewise.
7998 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
8000 * utils.c (build_function_stub): Properly build the call expression.
8002 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
8004 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
8005 before converting the expression to the type of the object.
8006 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
8007 Stabilize constructors for special wrapping types.
8009 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
8011 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
8012 when necessary. Merge some conditional statements. Update comments.
8013 Rename unchecked_convert_p local variable to suppress_type_conversion.
8014 Do not suppress conversions in the In case.
8015 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
8016 into account on non strict-alignment platforms.
8018 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
8020 * utils.c (aggregate_type_contains_array_p): New predicate.
8021 (create_field_decl): In a packed record, force byte alignment
8022 for fields without specified position that contain an array.
8024 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
8026 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
8028 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
8031 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
8033 (bit_field): New packed boolean type used by cpu_set_t.
8034 (cpu_set_t): New type corresponding to the C type with
8035 the same name. Note that on the Ada side we use a bit
8036 field array for the affinity mask. There is not need
8037 for the C macro for setting individual bit.
8038 (pthread_setaffinity_np): New imported routine.
8040 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
8043 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
8044 on OpenBSD as is done on other BSD systems.
8047 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
8048 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
8052 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
8056 * init.c (__gnat_error_handler, __gnat_install_handler,
8057 __gnat_init_float): Define for OpenBSD.
8059 * initialize.c (__gnat_initialize): Define for OpenBSD.
8061 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
8064 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
8065 instead of mktemp() or tmpnam() on NetBSD.
8067 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
8069 * trans.c (call_to_gnu): Make the temporary for non-addressable
8070 In parameters passed by reference.
8071 (addressable_p): Return true for STRING_CST and CALL_EXPR.
8073 2007-12-19 Robert Dewar <dewar@adacore.com>
8075 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
8076 Add pragma Warnings (Off) for unassigned IN OUT arguments
8078 * sem_warn.adb (Output_Reference): Suppress messages for internal names
8079 (Check_References): Extensive changes to tune up warnings
8080 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
8081 (Has_Pragma_Unmodifed_Check_Spec): New function
8082 (Check_References): Implement pragma Unmodified
8083 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
8085 * par-prag.adb: Dummy entry for pragma Unmodified
8087 * sem_prag.adb: Implement pragma Unmodified
8089 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
8090 (Proc_Next_Component_Or_Discriminant): Fix typo.
8093 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
8095 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
8096 because the former already takes care of discarding the result.
8097 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
8100 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
8102 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
8104 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
8105 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
8106 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
8107 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
8108 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
8109 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
8110 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
8111 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
8112 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8113 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
8114 (Dynamic_Trampolines_Used): Delete.
8116 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
8117 Turn on stack probing mechanism on LynxOS.
8119 2007-12-19 Bob Duff <duff@adacore.com>
8121 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
8122 the resulting tail recursion by hand. This prevents running out of
8123 memory on deeply nested concatenations, since Field2 is where the left
8124 operand of concatenations is stored.
8125 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
8126 clarify that it can only return OK or Abandon.
8128 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
8129 operand by iteration, in order to avoid running out of memory on
8130 deeply-nested concatenations. Use the Parent pointer to get back up the
8132 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
8133 Resolve_Op_Concat_Rest): New procedures split out of
8134 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
8137 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
8138 Traverse_Func, because the former already takes care of discarding the
8141 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
8142 because the former already takes care of discarding the result.
8143 (Remove_Warning_Messages): Use appropriate subtype for Status and
8146 2007-12-19 Ed Schonberg <schonberg@adacore.com>
8148 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
8149 discriminants forces expansion of the aggregate into assignments.
8150 (Init_Record_Controller): If the type of the aggregate is untagged and
8151 is not inherently limited, the record controller is not limited either.
8153 2007-12-19 Robert Dewar <dewar@adacore.com>
8155 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
8156 handling compile time known size of record or array (case of front end
8157 layout active, e.g. in GNAAMP).
8159 2007-12-19 Javier Miranda <miranda@adacore.com>
8161 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
8162 that forces the construction of static dispatch tables in case of
8165 2007-12-19 Robert Dewar <dewar@adacore.com>
8167 * exp_ch9.adb (Null_Statements): Moved to library level
8168 (Trivial_Accept_OK): New function
8169 (Expand_Accept_Declaration): Use Trivial_Accept_OK
8170 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
8172 2007-12-19 Robert Dewar <dewar@adacore.com>
8174 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
8175 in complex case where array is Volatile.
8177 2007-12-19 Ed Schonberg <schonberg@adacore.com>
8179 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
8180 properly the Ada2005 rules concerning when the current instance of a
8181 record type is aliased.
8183 2007-12-19 Ed Schonberg <schonberg@adacore.com>
8185 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
8187 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
8189 (P_Variant_Part): Cleaner patch for parenthesized discriminant
8191 2007-12-19 Vincent Celier <celier@adacore.com>
8193 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
8194 package is not known
8196 * prj-attr.ads (Unknown_Package): New constant
8197 Do not crash when an unknown package is in several projects
8199 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
8202 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
8203 existing package Language_Processing.
8205 2007-12-19 Ed Schonberg <schonberg@adacore.com>
8206 Gary Dismukes <dismukes@adacore.com>
8207 Samuel Tardieu <sam@rfc1149.net>
8209 PR ada/15803, ada/15805
8210 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
8211 illegal access subtypes when there is a constrained partial view.
8212 (Check_For_Premature_Usage): New procedure inside
8213 Access_Subprogram_Declaration for checking that an access-to-subprogram
8214 type doesn't reference its own name within any formal parameters or
8215 result type (including within nested anonymous access types).
8216 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
8217 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
8218 context is an access_to_variable, the expression cannot be an
8221 2007-12-19 Bob Duff <duff@adacore.com>
8223 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
8224 (Analyze_Concatenation): Use iteration instead of recursion in order
8225 to avoid running out of stack space for deeply nested concatenations.
8227 2007-12-19 Ed Schonberg <schonberg@adacore.com>
8228 Gary Dismukes <dismukes@adacore.com>
8230 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
8231 whose renamed entity is a subprogram that requires overriding.
8232 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
8233 issuing an error for premature usage and issue a message that says
8234 'type' rather than 'object'.
8236 2007-12-19 Gary Dismukes <dismukes@adacore.com>
8239 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
8240 presence of a statically tagged operand (Present (Static_Tag)) with
8241 test for Indeterm_Ancestor_Call when determining whether to propagate
8242 the static tag to tag-indeterminate operands (which forces dispatching
8244 (Check_Controlling_Formals): Ada2005, access parameters can have
8246 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
8247 not insert subprogram in list of primitive operations if already there.
8249 2007-12-19 Tristan Gingold <gingold@adacore.com>
8251 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
8254 2007-12-19 Thomas Quinot <quinot@adacore.com>
8256 Part of PR ada/33688
8257 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
8258 datagram info on Linux.
8260 2007-12-19 Vincent Celier <celier@adacore.com>
8262 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
8263 that the source path name is always found in the dependencies.
8265 2007-12-19 Robert Dewar <dewar@adacore.com>
8267 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
8268 Fix name of Wide_Wide_Latin_1/9 file names
8269 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
8270 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
8271 Add missing documentation for Ada.Command_Line.Response_File
8272 Update list of warning letters for Warnings pragma
8273 Add documentation for pragma Unmodified
8275 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
8277 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
8279 2007-12-17 Arnaud Charlet <charlet@adacore.com>
8281 * s-vxwork-alpha.ads: Removed, no longer used.
8283 2007-12-15 Jakub Jelinek <jakub@redhat.com>
8285 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
8287 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
8290 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
8291 mlib-tgt-specific.adb.
8293 2007-12-13 Bob Duff <duff@adacore.com>
8295 * trans.c (Attribute_to_gnu): Check for violations of the
8296 No_Implicit_Dynamic_Code restriction. This checking used to be done in
8297 the front end, but is moved here so we can make it more accurate.
8299 2007-12-13 Pascal Obry <obry@adacore.com>
8301 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
8302 version is provided for older GNU/Linux distribution not
8303 supporting thread affinity sets.
8305 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
8307 (bit_field): New packed boolean type used by cpu_set_t.
8308 (cpu_set_t): New type corresponding to the C type with
8309 the same name. Note that on the Ada side we use a bit
8310 field array for the affinity mask. There is not need
8311 for the C macro for setting individual bit.
8312 (pthread_setaffinity_np): New imported routine.
8314 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
8316 (Create_Task): Set the processor affinity mask if information
8319 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
8321 2007-12-13 Robert Dewar <dewar@adacore.com>
8323 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
8324 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
8325 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
8326 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
8327 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
8328 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
8329 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
8330 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
8331 for subprogram pointers.
8333 * g-ctrl_c.adb: New file.
8335 * g-ctrl_c.ads (Install_Handler): New body.
8337 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
8338 instead of obsolete function Is_Always_Inlined.
8339 (Freeze_Entity): check for tagged type in imported C subprogram
8340 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
8341 (Freeze_Entity): check for convention Ada subprogram pointer in
8342 imported C subprogram.
8343 (Freeze_Fixed_Point_Type): In the case of a base type where the low
8344 bound would be chopped off and go from negative to zero, force
8345 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
8346 bound) so that the size computation for the base type will take
8347 negative values into account.
8349 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
8350 Bob Duff <duff@adacore.com>
8351 Tristan Gingold <gingold@adacore.com>
8353 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
8354 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
8355 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
8356 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
8357 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
8358 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8359 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
8360 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
8361 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
8362 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
8363 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
8364 (Always_Compatible_Rep): New flag to control trampolines globally.
8365 (Dynamic_Trampolines_Used): New flag for implementing the
8366 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
8367 and not yet set correctly for some targets).
8369 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
8370 Simply indirectly call s-stchop when a task is created.
8373 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
8374 appears as an argument (entries A) in an ALI file.
8376 * fe.h (Stack_Check_Limits): Declare new target parameter.
8377 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
8379 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
8380 This variable is declared in C to be sure not subject to elaboration
8382 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
8385 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
8386 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
8388 * s-stchop.ads: Add comments.
8390 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
8391 limit method of stack checking.
8393 * s-stchop-limit.ads: New file.
8395 2007-12-13 Robert Dewar <dewar@adacore.com>
8397 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
8398 a-cihama.adb, g-awk.adb,
8399 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
8402 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
8404 * sem.adb: Update handling of assigned value/unreferenced warnings
8406 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
8408 * lib-xref.ads: Improve documentation for k xref type
8411 Update handling of assigned value/unreferenced warnings
8412 (Generate_Reference): Warning for reference to entity for which a
8413 pragma Unreferenced has been given should be unconditional.
8414 If the entity is a discriminal, mark the original
8415 discriminant as referenced.
8417 * sem_warn.ads, sem_warn.adb
8418 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
8419 no entities referenced in package
8420 (Check_One_Unit): Don't give message about no entities referenced in
8421 a package if a pragma Unreferenced has appeared.
8422 Handle new warning flag -gnatw.a/-gnatw.A
8423 Update handling of assigned value/unreferenced warnings
8425 * atree.h: Add flags up to Flag247
8426 (Flag231): New macro.
8428 2007-12-13 Jose Ruiz <ruiz@adacore.com>
8430 * adaint.h: (__gnat_plist_init): Not defined for RTX.
8432 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
8435 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
8436 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
8437 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
8438 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
8441 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
8443 * sysdep.c (winflush_function for RTX): Procedure that does nothing
8444 since we only have problems with Windows 95/98, which are not
8446 (__gnat_ttyname): Return the empty string on Nucleus, just as
8449 2007-12-13 Robert Dewar <dewar@adacore.com>
8451 * a-textio.adb, a-textio.ads:
8452 Extensive changes to private part for wide character encoding
8454 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
8455 (Look_Ahead): Fix mishandling of encoded sequences
8456 Move declaration of Wch_Con to private part (should not be visible)
8458 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
8459 UTF-8. Probably this is never used, but if it is, brackets is
8462 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
8463 setting wide character encoding for no main program case and when
8464 encoding is specified using -W?
8465 Initialize stack limit of environment task if stack limit method of
8466 stack checking is enabled.
8467 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
8468 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
8469 (Get_Main_Unit_Name): New function.
8470 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
8471 (Gen_Output_File): Set Bind_Main_Program to True for .NET
8473 * bindusg.adb: Add line for -Wx switch
8475 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
8477 Add new useful constant WC_Longest_Sequences
8479 * switch-b.adb: Clean up handling of -Wx switch
8480 For -gnatWx, set Wide_Character_Encoding_Method_Specified
8482 * switch-c.adb: -gnatg activates warning on assertion errors
8483 For -gnatWx, set Wide_Character_Encoding_Method_Specified
8485 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
8487 2007-12-13 Robert Dewar <dewar@adacore.com>
8488 Ed Schonberg <schonberg@adacore.com>
8490 * a-ngcoty.adb: New pragma Fast_Math
8492 * opt.adb: New pragma Fast_Math
8495 Add Implemented_By_Entry to the list of pragmas which do not require any
8497 (Favor_Top_Level): New pragma.
8498 New pragma Fast_Math
8500 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
8501 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8502 Expand_Allocator_Expression): Take into account VM_Target
8503 (Expand_Attribute, case 'Identity): Handle properly the case where
8504 the prefix is a task interface.
8505 New pragma Fast_Math
8507 * par.adb (Next_Token_Is): New function
8508 (P_Pragma): Add Skipping parameter
8509 (U_Left_Paren): New procedure
8510 (U_Right_Paren): New procedure
8511 New pragma Fast_Math
8513 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
8515 New pragma Fast_Math
8517 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
8518 Implemented_By_Entry.
8519 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
8520 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
8521 items, since it can apply to more than one overloadable entity. Set
8522 new flag Has_Pragma_Inline_Always for Inline_Always case.
8523 (Analyze_Pragma, case Complex_Representation): Improve error message.
8524 (Analyze_Pragma, case Assert): When assertions are disabled build the
8525 rewritten code with Sloc of expression rather than pragma, so new
8526 warning about failing is not deleted.
8527 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
8528 protected types and update error message to reflect that. Test whether
8529 the protected type is allowed for the pragma (an error is issued if the
8530 type has any entries, or components that do not have preelaborable
8532 New pragma Fast_Math
8533 (Analyze_Pragma, case No_Return): Handle generic instance
8535 * snames.h, snames.ads, snames.adb:
8536 Add new predefined name for interface primitive _Disp_Requeue.
8537 New pragma Fast_Math
8539 * a-tags.ads, a-tags.adb: New calling sequence for
8540 String_To_Wide_[Wide_]String
8541 (Secondary_Tag): New subprogram.
8543 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
8545 New calling sequence for String_To_Wide_[Wide_]String
8546 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
8547 the use of the secondary stack for image routines.
8549 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
8550 calling sequence for String_To_Wide_[Wide_]String
8552 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
8554 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
8555 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8557 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
8558 (P_Formal_Part): Use Skipping parameter in P_Pragma call
8559 to improve error recovery
8561 * par-util.adb (Next_Token_Is): New function
8562 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
8564 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
8565 semicolon if missing
8566 (P_Pragma): Implement new Skipping parameter
8567 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8568 Fix location of flag for unrecognized pragma message
8570 * par-tchk.adb (U_Left_Paren): New procedure
8571 (U_Right_Paren): New procedure
8573 2007-12-13 Geert Bosch <bosch@adacore.com>
8576 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
8577 the second or later Scaled_Divide would omit leading zeroes,
8578 resulting in too few digits produced and a Layout_Error as result.
8579 (Put): Initialize Pos.
8581 2007-12-13 Robert Dewar <dewar@adacore.com>
8583 atree.ads, atree.adb (Flag231..Flag247): New functions
8584 (Set_Flag231..Set_Flag247): New procedures
8585 (Basic_Set_Convention): Rename Set_Convention to be
8586 Basic_Set_Convention
8587 (Nkind_In): New functions
8588 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8590 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
8592 of obsolete function Is_Always_Inlined
8593 (Register_Predefined_DT_Entry): Initialize slots of the second
8594 secondary dispatch table.
8595 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8596 (Expand_N_Function_Call): Remove special provision for stack checking.
8598 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
8599 Include _Disp_Requeue in the list of predefined operations.
8600 (Find_Interface_ADT): Modified to fulfill the new specification.
8601 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8603 * par-ch4.adb, nlists.ads, nlists.adb:
8604 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8606 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
8607 Fix location of flag for unrecognized pragma message
8609 * sem_ch7.adb: Use Nkind_In
8611 2007-12-13 Vincent Celier <celier@adacore.com>
8614 Indicate what flags are used by the Project Manager, gprbuild and
8616 (Opt.Follow_Links_For_Dirs): New flag
8617 (Warn_On_Assertion_Failure): New flag
8618 (Wide_Character_Encoding_Method_Specified): New flag
8619 (Suppress_All_Inlining): New switch set by -fno-inline
8620 (Real_VMS_Target): New flag
8621 New pragma Fast_Math
8623 2007-12-13 Robert Dewar <dewar@adacore.com>
8625 * back_end.adb: Recognize -fno-inline
8627 2007-12-13 Robert Dewar <dewar@adacore.com>
8629 * checks.adb: Fix optimization problem with short-circuited form
8631 2007-12-13 Bob Duff <duff@adacore.com>
8633 * clean.adb (Usage): Add line for -aP
8634 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
8635 with a parameter "procedure Usage", instead of passing a pointer to a
8636 procedure. This is to eliminate trampolines (since the Usage procedure
8637 is often nested in a main procedure, and it would be inconvenient to
8640 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
8641 to be generic, with a parameter "procedure Callback (...)", instead of
8642 passing a pointer to a procedure. This is to eliminate trampolines
8643 (since the Callback procedure is usually nested).
8645 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
8646 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
8647 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
8649 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
8650 Use the generic Heap_Sort_G instead of Heap_Sort_A.
8652 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8654 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
8655 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
8656 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
8657 (Renamed_In_Spec): New flag
8658 (Has_Pragma_Inline_Always): New flag
8659 Add missing doc for pragma Obsolescent_Warning
8660 Add missing doc for 17 additional unused flags (230-247)
8661 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
8662 Alphabetize with clauses.
8663 Separate Is_Thunk and Has_Thunks flags
8664 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
8665 (Related_Interface): Renamed to Related_Type.
8666 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
8667 (Set_Is_Flag): Restrict the assertion.
8669 2007-12-13 Vincent Celier <celier@adacore.com>
8671 * errout.adb (Output_Source_Line): Do not keep a trailing space after
8672 the source line number if the source line is empty.
8674 2007-12-13 Geert Bosch <bosch@adacore.com>
8676 * eval_fat.adb (Decompose_Int): Handle argument of zero.
8677 (Compose): Remove special casing of zero.
8678 (Exponent): Likewise.
8679 (Fraction): Likewise.
8680 (Machine): Likewise.
8681 (Decompose): Update comment.
8683 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8685 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
8686 limited ancestor part, initialize controllers of enclosing record
8687 before expanding ancestor aggregate.
8688 (Gen_Assign): If a component of the aggregate is box-initialized, add
8689 code to call Initialize if the component is controlled, and explicit
8690 assignment of null if the component is an access type.
8692 Handle properly aggregates for limited types that appear in object
8693 declarations when the aggregate contains controlled values such as
8695 When expanding limited aggregates into individual components, do not
8696 call Adjust on controlled components that are limited.
8698 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8700 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8702 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8704 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8705 predefined primitive _Disp_Requeue.
8706 (Make_Predefined_Primitive_Specs): Create the spec for predefined
8707 primitive _Disp_Requeue.
8708 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8709 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8710 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8711 an interface type. In case of limited interfaces we now declare all the
8712 predefined primitives associated with synchronized interfaces as
8714 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8716 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8717 tagged type is an interface type and there is no user-defined equality
8719 Add also bodies of predefined primitives associated with synchronized
8721 (Freeze_Record_Type): Do not build bodies of predefined primitives of
8722 interface types because they are now defined abstract.
8723 Add missing documentation.
8724 (Expand_Record_Controller): Update occurrence of Related_Interface
8726 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8727 (Expand_N_Object_Declaration): Take into account VM_Target when handling
8728 class wide interface object declaration.
8729 (Expand_Previous_Access_Type): Do not create a duplicate master entity
8730 if the access type already has one.
8731 (Expand_N_Object_Declaration): Defend against attempt to validity check
8732 generic types. Noticed for -gnatVcf specified with previous errors.
8734 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8736 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8737 Expand_Allocator_Expression): Take into account VM_Target
8739 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8740 secondary stack when VM_Target /= No_VM
8742 2007-12-13 Javier Miranda <miranda@adacore.com>
8743 Ed Schonberg <schonberg@adacore.com>
8745 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8746 Is_Complation_Unit by Is_Library_Level_Entity in the code
8747 that decides if the static dispatch tables need to be built.
8748 (Wrap_Transient_Declaration): Do not generate a finalization call if
8749 this is a renaming declaration and the renamed object is a component
8750 of a controlled type.
8752 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8754 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8755 In the case where the renamed subprogram is a dereference, call
8756 Force_Evaluation on the prefix.
8758 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8759 Ed Schonberg <schonberg@adacore.com>
8761 * exp_ch9.adb (Expand_N_Asynchronous_Select,
8762 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8763 comment reformatting.
8764 (Set_Privals): Inherit aliased flag from formal. From code reading.
8765 (Build_Simple_Entry_Call): Out parameters of an access type are passed
8766 by copy and initialized from the actual. This includes entry parameters.
8767 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8768 and Ada 2005 models of requeue.
8769 (Null_Statements): Still connsider do-end block null if it contains
8770 Unreferenced and Warnings pragmas.
8771 (Expand_N_Accept_Statement): Do not optimize away null do end if
8772 dispatching policy is other than defaulted.
8773 (Expand_N_Timed_Entry_Call): When the triggering statement is a
8774 dispatching call, manually analyze the delay statement.
8775 (Find_Parameter_Type): Move subprogram to Sem_Util.
8777 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8778 Javier Miranda <miranda@adacore.com>
8780 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8781 _Disp_Requeue occupies dispatch table slot number 15. Move
8782 _Disp_Timed_Select to slot 16.
8783 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8784 generate the spec and body of _Disp_Reqeueue.
8785 (Make_DT): Build and initialize the second dispatch table.
8786 Handle initialization of RC_Offset when the parent
8787 is a private type with variable size components.
8788 (Make_Secondary_DT): Complete documentation. Add support to
8789 initialize the second dispatch table.
8790 (Make_Tags): Generate the tag of the second dispatch table.
8791 (Register_Primitive): Add support to register primitives in the
8792 second dispatch table.
8794 2007-12-13 Pascal Obry <obry@adacore.com>
8796 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8797 Windows. This signal is used by gnatmake to kill child processes for
8800 2007-12-13 Javier Miranda <miranda@adacore.com>
8802 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8803 support for generic dispatching constructor calls in which we need to
8804 locate the tag of a secondary dispatch table associated with an
8805 interface type to properly dispatch the call.
8806 (Expand_N_Attribute_Reference [case Address],
8807 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8808 handling of VM targets.
8810 2007-12-13 Robert Dewar <dewar@adacore.com>
8811 Ed Schonberg <schonberg@adacore.com>
8813 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8816 * ug_words: Add entries for -gnatw.a -gnatw.A
8818 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8819 literal is a subtype with non-static constraints, use the base type of
8820 the context as the base of the string subtype, to prevent type
8822 (Resolve_Actuals): If the actual is an entity name, generate a
8823 reference before the actual is resolved and expanded, to prevent
8824 spurious warnings on formals of enclosing protected operations.
8825 (Analyze_Overloaded_Selected_Component): If type of prefix if
8826 class-wide, use visible components of base type.
8827 (Resolve_Selected_Component): Ditto.
8828 (Resolve_Short_Circuit): Detect case of pragma Assert argument
8829 evaluating to False, and issue warning message.
8831 * usage.adb: Add lines for -gnatw.a and -gnatw.A
8833 2007-12-13 Emmanuel Briot <briot@adacore.com>
8835 * g-calend.ads (No_Time): New constant, to represent an uninitialized
8838 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8840 (Month_Name_To_Number): New subprogram
8842 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8843 letter to upper-case.
8845 2007-12-13 Robert Dewar <dewar@adacore.com>
8846 Ed Schonberg <schonberg@adacore.com>
8848 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8850 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8851 context is a limited view, use non-limited view when available. If the
8852 non-limited view is an unconstrained array, this enforces consistency
8853 requirements in 3.10.2 (27).
8854 (Layout_Type): For an access type whose designated type is a limited
8855 view, examine its declaration to determine if it is an unconstrained
8856 array, and size the access type accordingly.
8857 (Layout_Type): Do not force 32-bits for convention c subprogram
8858 pointers in -gnatdm mode, only if real vms target.
8860 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8861 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8862 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8863 violations of the No_Implicit_Dynamic_Code restriction.
8864 (Resolve_Attribute, case 'Access): If designated type of context is a
8865 limited view, use non-limited view when available. If the non-limited
8866 view is an unconstrained array, this enforces consistency requirements
8868 (Layout_Type): For an access type whose designated type is a limited
8869 view, examine its declaration to determine if it is an unconstrained
8870 array, and size the access type accordingly.
8872 2007-12-13 Vincent Celier <celier@adacore.com>
8874 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8875 object directory of main project does not exist.
8876 On VMS, correctly set then environment variable for the source
8879 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8881 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8882 set to True this procedure will create the value of type REG_EXPAND_SZ.
8883 It was only possible to create REG_SZ values before.
8885 2007-12-13 Robert Dewar <dewar@adacore.com>
8887 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8888 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8889 namet-sp.adb, namet-sp.ads: New files.
8891 * g-speche.adb: Use generic routine in g-spchge
8893 * s-wchcnv.ads, s-wchcnv.adb:
8894 Minor code cleanup (make formal type consistent with spec)
8896 * namet.adb: Update comments.
8898 * par-endh.adb (Evaluate_End_Entry): Use new
8899 Namet.Sp.Is_Bad_Spelling_Of function
8901 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8903 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8904 ancestor is an access type initialized with a box, set its type
8905 explicitly, for use in subsequent expansion.
8906 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8909 2007-12-13 Robert Dewar <dewar@adacore.com>
8911 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8914 2007-12-13 Robert Dewar <dewar@adacore.com>
8916 * inline.adb (Back_End_Cannot_Inline): Use new flag
8917 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8919 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8920 Has_Pragma_Inline_Always instead.
8921 of obsolete function Is_Always_Inlined
8922 (Build_Body_To_Inline): Same change
8923 (Cannot_Inline): Same change
8924 Do not give warning on exception raise in No_Return function
8926 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8927 component has two inconsistent component clauses in the same record
8928 representation clause, favor the message that complains about
8929 duplication rather than inconsistency.
8931 (Record_Representation_Clause): Do not warn on missing component
8932 clauses for inherited components of a type extension.
8933 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8934 an overloadable item if it is a pragma that can apply to multiple
8935 overloadable entities (e.g. Inline) because a pragma cannot be on
8936 more than one chain at a time.
8937 (Validate_Unchecked_Conversion): Add code to warn on unchecked
8938 conversion where one of the operands is Ada.Calendar.Time.
8939 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8940 For now, ignore Component_Size clause on VM targets, as done for
8943 2007-12-13 Emmanuel Briot <briot@adacore.com>
8944 Vincent Celier <celier@adacore.com>
8946 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8948 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8950 (Hash): Move instantiation of System.HTable.Hash from spec to body
8951 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8952 systems, since we do not need to recompute the Name_Id for the canonical
8954 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8955 as a parameter. This parameter is in fact always "ada" in all calls, and
8956 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8957 while loading a project with 40000 files
8959 * prj-attr.adb: Fix name of attribute Dependency_Driver
8960 Change the kind of indexing for attribute Root
8962 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8963 variables already declared, in case constructions.
8965 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8966 Current_Object_Path_File to No_Path.
8968 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8969 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8971 * prj-makr.adb: new parameter Current_Dir
8973 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8974 Ada sources when language is not Ada.
8975 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8976 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8977 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8978 (Locate_Directory): Always resolve links when computing Canonical_Path
8979 (Look_For_Sources): Make sure that Name_Buffer contains the file name
8980 in Source_Files before checking for the presence of a directory
8982 Optimize calls to Name_Find when on case sensitive systems.
8983 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8985 (Prj.Nmsc.Check): new parameter Current_Dir
8986 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8987 cannot be empty and the spec suffix cannot be the same as the body or
8989 (Get_Unit): When a file name can be of several unit kinds (spec, body or
8990 subunit), always consider the longest suffix.
8991 (Check_Configuration): Do not issue an error if there is no compiler
8992 for a language. Just issue a warning and ignore the sources for the
8994 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8996 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8997 (Unit_Exceptions): New hash table
8998 (Check_Naming_Schemes): Check if a file that could be a unit because of
8999 the naming scheme is not in fact a source because there is an exception
9001 (Look_For_Sources): Put the unit exceptions in hash table
9003 (Get_Unit_Exceptions): Give initial value No_Source to local variable
9004 Other_Part to avoid exception when code is compiled with validity
9006 (Get_Sources_From_File): Check that there is no directory information
9008 (Look_For_Sources): Check that there is no directory information in the
9009 list of file names in Source_Files.
9010 (Look_For_Sources): In multi-language mode, do not allow exception file
9011 names that are excluded.
9012 (Excluded_Sources_Htable): New hash table
9013 (Search_Directories.Check_File): New procedure to simplify
9015 (Search_Directories): Do not consider excluded sources
9016 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
9018 (Get_Exceptions): Set component Lang_Kind of Source_Data
9019 (Get_Unit_Exceptions): Ditto
9020 (Search_Directories): Ditto
9022 * prj-pars.adb: new parameter Current_Dir
9024 * prj-part.ads, prj-part.adb:
9025 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
9026 (Opt.Follow_Links_For_Dirs): New flag
9027 (Project_Path_Name_Of): Cache information returned by this routine as
9028 Locate_Regular_File is a costly routine. The code to output a log
9029 information and the effective call to Locate_Regular_File is now
9030 factorized into a routine (code clean-up).
9031 (Parse, Parse_Single_Project): new parameter Current_Dir
9032 When main project file cannot be found, indicate in the error
9033 message the project path that was used to do the search.
9035 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
9036 (Prj.Proc.Process*): new parameter Current_Dir
9038 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
9040 2007-12-13 Bob Duff <duff@adacore.com>
9042 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
9043 procedure to be called from the back end to check the
9044 No_Implicit_Dynamic_Code restriction.
9046 2007-12-13 Arnaud Charlet <charlet@adacore.com>
9048 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
9049 Fixes another case where RTE_Available_Call was ignored instead of being
9053 * rtsfind.ads: Add new entries.
9055 2007-12-13 Robert Dewar <dewar@adacore.com>
9057 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
9058 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
9060 * scn.adb: Implement BOM recognition
9062 2007-12-13 Thomas Quinot <quinot@adacore.com>
9063 Ed Schonberg <schonberg@adacore.com>
9065 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
9066 subprogram body that acts as its own spec may not have a non-private
9067 WITH clause on a private sibling.
9068 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
9069 child unit is a renaming, create an implicit with_clause on that
9070 parent, and not on the unit it renames, to prevent visibility errors
9071 in the current unit.
9073 2007-12-13 Ed Schonberg <schonberg@adacore.com>
9075 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
9076 renaming declaration, use the Slocs of the formal parameters from the
9077 declaration of the formal subprogram when creating the formal parameter
9078 entities in the renaming declaration.
9079 (Analyze_Formal_Type_Declaration): Change the placement of the error
9080 message concerning illegal known discriminants. It is now posted on the
9081 type rather than on the first discriminant. This change ensures early
9083 (Freeze_Subprogram_Body): If the generic subprogram is nested within
9084 the package body that contains the instance, do not generate an
9085 out-of-place freeze node for the enclosing package.
9086 (Collect_Previous_Instantiations): Ignore internal instantiations
9087 generated for formal packages.
9088 (Validate_Derived_Type_Instance): Add a check that when a formal
9089 derived type is Known_To_Have_Preelab_Init then the actual type must
9090 have preelaborable initialization, and issue an error when this
9091 condition is violated.
9093 2007-12-13 Robert Dewar <dewar@adacore.com>
9095 * s-imenne.adb, s-imenne.ads: New files.
9097 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
9098 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
9099 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
9100 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
9101 s-imgwch.ads: New calling sequence for Image routines to avoid sec
9104 2007-12-13 Javier Miranda <miranda@adacore.com>
9105 Ed Schonberg <schonberg@adacore.com>
9107 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
9108 generation of spurious error if parent is an interface type; caused
9109 because predefined primitive bodies will be generated later by
9111 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
9113 (Derive_Subprograms): Handle derivations of predefined primitives
9114 after all the user-defined primitives to ensure that they are
9115 found in proper order in instantiations.
9116 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
9117 of Related_Interface to Related_Type.
9118 (Record_Type_Declaration): Minor reordering of calls to decorate the
9119 Tag component because the entity must have set its Ekind attribute
9120 before setting its Is_Tag attribute.
9121 (Analyze_Subtype_Declaration): In the case of subtypes with
9122 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
9124 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9125 Ed Schonberg <schonberg@adacore.com>
9127 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
9128 statement to the list of contexts where a selected component with a
9129 concurrent tagged type prefix should yield a primitive operation.
9130 (Find_Primitive_Operation): Handle case of class-wide types.
9131 (Analyze_Overloaded_Selected_Component): If type of prefix is
9132 class-wide, use visible components of base type.
9133 (Resolve_Selected_Component): Ditto.
9134 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
9135 formal of a generic subprogram. find candidate interpretations by
9136 scanning the list of generic formal declarations.:
9137 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
9138 type from a limited_with_clause, and the full view is available, use it
9139 for subsequent semantic checks.
9140 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
9141 (Find_Primitive_Operation): New function.
9142 (Analyze_Overloaded_Selected_Component): insert explicit dereference
9143 only once if several interpretations of the prefix yield an access type.
9144 (Try_Object_Operation): Code and comment cleanup.
9145 (Analyze_Selected_Component): Reorder local variables. Minot comment and
9146 code reformatting. When the type of the prefix is tagged concurrent, a
9147 correct interpretation might be available in the primitive and
9148 class-wide operations of the type.
9150 2007-12-13 Robert Dewar <dewar@adacore.com>
9151 Ed Schonberg <schonberg@adacore.com>
9153 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
9154 renaming entry as subprogram using rename-as-body if subprogram spec
9156 (Use_One_Type): The clause is legal on an access type whose designated
9157 type has a limited view.
9158 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
9159 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
9160 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
9161 operation denoted by a selected component.
9162 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
9163 it can be an expression, possibly overloaded, that returns a task or
9166 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9167 Gary Dismukes <dismukes@adacore.com>
9169 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
9170 requeue statement is dispatching. Do not emit an error when the name is
9171 not an entry and the context is a dispatching select. Add code to
9172 perform subtype conformance between the formals of the current entry
9173 and those of the target interface primitive.
9174 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
9175 Timed_Entry_Call): Analyze the triggering statement as the first step of
9176 the processing. If this is a dispatching select, postpone the analysis
9177 of all select statements until the Expander transforms the select. This
9178 approach avoids generating duplicate identifiers after the Expander has
9179 replicated some of the select statements. In case the Expander is
9180 disabled, perform regular analysis.
9181 (Check_Triggering_Statement): New routine.
9182 (Analyze_Requeue): Exclude any interpretations that are not entries when
9183 checking overloaded names in a requeue. Also test type conformance for
9184 matching interpretations rather than requiring subtype conformance at
9185 that point to conform with the RM's resolution rule for requeues.
9187 2007-12-13 Ed Schonberg <schonberg@adacore.com>
9189 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
9190 inherited operation is a defaulted tag-indeterminate call, and there is
9191 a statically tagged actual, use the static tag as a controlling actual
9192 for the defaulted actual.
9194 2007-12-13 Geert Bosch <bosch@adacore.com>
9196 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
9197 context, so do not call Check_Non_Static_Context.
9199 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9201 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
9202 whether formal E is an entity which may have parameters.
9204 2007-12-13 Bob Duff <duff@adacore.com>
9205 Javier Miranda <miranda@adacore.com>
9206 Robert Dewar <dewar@adacore.com>
9208 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
9209 (Set_Convention): New procedure to set the Convention flag, and in
9210 addition make sure the Favor_Top_Level flag is kept in sync (all
9211 foreign-language conventions require Favor_Top_Level = True).
9212 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
9214 (Collect_Interfaces_Info): Minor update to handle the two secondary
9215 dispatch tables. Update occurrence of Related_Interface to Related_Type.
9216 (Generate_Parent_Ref): Add parameter to specify entity to check
9217 (Is_Preelaborable_Expression): Allow the name of a discriminant to
9218 initialize a component of a type with preelaborable initialization.
9219 This includes the case of a discriminal used in such a context.
9220 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
9221 latest Ada 2005 rules about renaming and 'Access of
9222 discriminant-dependent components.
9223 (Check_Nested_Access): Add handling when there are no enclosing
9224 subprograms (e.g. case of a package body).
9225 (Find_Parameter_Type): Factor routine from several other compiler files.
9226 Remove routine from Find_Overridden_Synchronized_Primitive.
9228 2007-12-13 Thomas Quinot <quinot@adacore.com>
9230 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
9231 an invalid access to an uninitialized slot in the
9232 Source_File_Index_Table.
9234 2007-12-13 Thomas Quinot <quinot@adacore.com>
9236 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
9238 2007-12-13 Bob Duff <duff@adacore.com>
9240 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
9241 access-to-subprogram types in this package.
9243 2007-12-13 Olivier Hainque <hainque@adacore.com>
9245 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
9246 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
9247 Stack_Overlay_Address and document that we are using an internal
9249 (Byte_Size, Unsigned_32_Size): Remove, now useless.
9250 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
9251 consistently throughout the various implementation pieces.
9253 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
9254 overlay we are using to fill the stack area with patterns.
9255 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
9256 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
9257 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
9259 2007-12-13 Robert Dewar <dewar@adacore.com>
9261 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
9263 2007-12-13 Arnaud Charlet <charlet@adacore.com>
9266 (Create_Task): Take into account tasks created by foreign threads.
9267 Code clean up: use constants instead of hard coded values.
9269 2007-12-13 Robert Dewar <dewar@adacore.com>
9271 * styleg.adb (Check_Comment): More liberal rules for comment placement
9273 2007-12-13 Olivier Hainque <hainque@adacore.com>
9275 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
9276 of Procedure Value instead of Frame Pointer as the invocation
9277 identifier associated with the instruction pointer in each traceback
9280 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
9281 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
9282 Pointer as the invocation identifier passed to tbk$symbolize.
9284 * s-traent-vms.ads, s-traent-vms.adb
9285 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
9286 Procedure Value instead of Frame Pointer as the invocation identifier
9287 passed to tbk$symbolize.
9289 2007-12-13 Robert Dewar <dewar@adacore.com>
9291 * tbuild.ads, tbuild.adb:
9292 Fix location of flag for unrecognized pragma message
9294 2007-12-13 Robert Dewar <dewar@adacore.com>
9296 * treepr.ads, treepr.adb: (pl): implement use of positive value
9299 2007-12-13 Robert Dewar <dewar@adacore.com>
9301 * xeinfo.adb: Remove warnings
9302 * xnmake.adb: Remove warnings
9303 * xsinfo.adb: Remove warnings
9304 * xtreeprs.adb: Remove warnings
9305 * xsnames.adb: Remove warnings
9307 * a-ngcoar.adb: Fix typo.
9308 * s-interr.adb: Minor reformatting
9309 * env.c: Minor reformatting.
9310 * g-bytswa.adb: Minor reformatting.
9311 * g-rannum.ads: Minor documentation improvements
9312 * s-tasinf-mingw.adb: Minor header fix
9313 * a-clrefi.adb: Minor reformatting
9314 * g-sttsne.ads: Minor documentation improvement
9315 * g-sttsne-locking.ads: Minor documentation improvement
9316 * g-soliop-solaris.ads: Minor documentation improvement
9317 * g-soliop-mingw.ads: Minor documentation improvement
9318 * g-soliop.ads: Minor documentation improvement
9319 * exp_aggr.ads: Minor reformatting
9320 * debug.adb: Add documentation for the gprbuild debug flags
9321 * exp_ch2.adb: Use Nkind_In to simplify code throughout
9322 * exp_pakd.adb: Minor reformatting
9324 * g-altive.ads, g-alleve.adb: Remove assertions.
9325 Add comment about minor differences between targets regarding
9326 floating-point operations.
9328 * g-thread.adb: Remove pragma unreferenced.
9329 * lib.ads: Minor reformatting
9330 * par-ch9.adb: Minor reformatting of error messages
9331 * sem_case.adb: Minor reformatting
9332 * s-fileio.adb: Minor reformattinng
9333 * s-vmexta.ads: Minor typo
9335 Take into account 'Success' value as per new GNAT warning.
9337 2007-12-13 Vincent Celier <celier@adacore.com>
9339 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
9342 2007-12-13 Robert Dewar <dewar@adacore.com>
9343 Bob Duff <duff@adacore.com>
9345 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
9346 Document that suffixes may be terminations of each others
9347 Add doc for -gnatw.a and -gnatw.A
9348 Document gnatbind -Wx switch
9349 Document BOM recognition
9350 Document pragma Implemented_By_Entry.
9353 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
9354 Add doc for pragma Unreferenced suppressing no entities referenced msg
9355 Add documentation of GNAT.Directory_Operations.Iteration
9356 Add documentation of GNAT.Random_Numbers
9357 Add documentation for pragma Shared.
9358 Correct documentation for Bit_Order
9359 Add documentation for the Pool_Address attribute.
9360 Fix and improve documentation of pragma machine_attribute.
9361 New pragma Fast_Math
9362 Document BOM recognition
9364 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
9365 Add /Wide_Character_Encoding for binder
9366 Add qualifier for the new gnatpp option --no-separate-loop-then
9368 2007-12-13 Matthew Heaney <heaney@adacore.com>
9370 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
9371 which generic formal operations are called for each operation.
9373 2007-12-13 Olivier Hainque <hainque@adacore.com>
9375 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
9376 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
9378 2007-12-13 Emmanuel Briot <briot@adacore.com>
9380 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
9381 Reference_Dir unless we actually need it.
9383 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
9384 Tristan Gingold <gingold@adacore.com>
9386 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
9389 a-calend-vms.adb: Remove pragma warning off and add pragma
9392 2007-12-13 Robert Dewar <dewar@adacore.com>
9394 * impunit.adb: Add entries for missing units
9396 * Makefile.rtl: Add new run-time units.
9398 * Make-lang.in: Update dependencies.
9400 2007-12-13 Bob Duff <duff@adacore.com>
9402 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
9403 types, set Can_Use_Internal_Rep appropriately, based on
9404 Always_Compatible_Rep_On_Target.
9406 2007-12-13 Gary Dismukes <dismukes@adacore.com>
9407 Arnaud Charlet <charlet@adacore.com>
9409 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
9410 it to the front end and setting the aamp_target environment variable
9411 to the switch's argument to ensure that gnaampbind and gnaamplink will
9412 take the specified library into account.
9413 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
9414 target, since the CIL compiler supports an "object" file (.il files).
9416 2007-12-13 Vincent Celier <celier@adacore.com>
9418 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
9419 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
9421 2007-12-13 Geert Bosch <bosch@adacore.com>
9423 * s-parame-vxworks.adb:
9424 Update comments to reflect usage of this package by Nucleus.
9426 2007-12-13 Arnaud Charlet <charlet@adacore.com>
9428 * i-vxwork.ads: Kill new warning on Convention C, since changing the
9429 spec would break code.
9431 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
9433 * system-vxworks-alpha.ads: Removed.
9435 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
9437 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
9439 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
9442 * sem_ch3.adb (Designates_T): New function.
9443 (Mentions_T): Factor reusable part of the logic into Designates_T.
9444 Consider non-access parameters and access and non-access result.
9445 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
9446 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
9448 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
9450 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
9453 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
9454 the new implementation of target-specific calls.
9456 2007-12-07 Olivier Hainque <hainque@adacore.com>
9458 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
9459 the designated full view, only follow a second level Full_View link
9460 for Non_Limited_Views of from_limited_with references.
9462 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
9465 * sem_ch6.adb (Process_Formals): Prevent an access type formal
9466 to be initialized with an access to constant object.
9468 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
9469 when an access to constant is used to initialize an access
9473 * a-direct.adb (Compose): Containing_Directory can be an empty string.
9475 2007-12-07 Olivier Hainque <hainque@adacore.com>
9478 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
9479 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
9480 this is from an alignment clause on the GNAT entity.
9481 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
9482 to distinguish the case where we set it from the type's alignment.
9483 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
9484 whether this alignment was set from an explicit alignment clause.
9486 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
9488 * decl.c (make_packable_type): Revert last change.
9489 (gnat_to_gnu_field): Avoid setting size and position multiple times.
9490 * utils.c (finish_record_type): Retrieve the real name of the type.
9492 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
9494 * trans.c (lvalue_required_p): Take base node directly instead
9495 of its parent. Rename second parameter to 'gnu_type'.
9496 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
9497 <N_Slice>: Likewise.
9498 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
9499 Adjust calls to lvalue_required_p.
9501 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
9504 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
9505 parameters of an entry call.
9507 2007-12-03 Robert Dewar <dewar@adacore.com>
9508 Samuel Tardieu <sam@rfc1149.net>
9511 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
9512 of variables declared in a library-level package.
9514 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
9516 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
9517 of Empty_String'Unchecked_Access.
9519 * Makefile.in: Add support for sh4-linux.
9521 * system-linux-sh4.ads: New file.
9523 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
9526 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
9527 and its argument must not be free()ed.
9529 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
9531 * decl.c (make_packable_type): Retrieve the real name of the type.
9532 (maybe_pad_type): Simplify similar code.
9534 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
9537 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
9538 than an identifier is used after "case" in a variant_part.
9541 * par-ch4.adb (Is_Parameterless_Attribute): New map.
9542 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
9543 attribute name or not depending on the new map.
9545 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
9546 returning a string or a type will not be called with improper
9549 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
9551 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
9554 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
9555 Signal an error when attribute argument is a fixed-point value of
9559 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
9560 a derived ordinary fixed point type.
9562 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
9563 RM_Size when a Small clause is found.
9565 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
9568 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
9569 Pass 'false' for the new allocate_struct_function parameter.
9570 * utils.c (build_function_stub): Likewise.
9572 2007-11-25 Richard Guenther <rguenther@suse.de>
9574 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
9575 (gnat_poplevel): Likewise.
9577 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
9579 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
9580 strict alignment, no alignment clause and a known static size, cap
9581 the type alignment to the greatest power of 2 factor of the size.
9582 (gnat_to_gnu_field): If the field has a component clause, is aliased
9583 or of a type with strict alignment, require that its size be equal to
9585 (validate_size): Use the type size as the minimum size for a type with
9588 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
9590 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
9591 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
9592 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
9593 Use 'Access instead of 'Unchecked_Access in second and third
9594 arguments of pthread_sigmask.
9596 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
9598 * decl.c (ceil_alignment): New function.
9599 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
9600 (make_packable_type): Likewise.
9602 2007-11-22 Olivier Hainque <hainque@adacore.com>
9604 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
9605 to fit in 80 columns.
9607 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
9609 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
9610 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
9612 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
9615 * misc.c (gnat_adjust_rli): Delete.
9616 (gnat_init): Do not initialize the translation code here.
9617 Do not call set_lang_adjust_rli.
9618 * trans.c (init_code_table): Make static.
9619 (gnat_init_stmt_group): Delete.
9620 (gigi): Initialize the translation code entirely here.
9621 Emit debug info for the common types here instead of...
9622 * utils.c (gnat_init_decl_processing): ...here.
9623 * gigi.h (init_code_table): Delete.
9624 (gnat_init_stmt_group): Likewise.
9626 2007-11-16 Olivier Hainque <hainque@adacore.com>
9628 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
9629 retrieving an allocator return value from a super-aligned address from
9631 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
9632 expect a super-aligned address for a fat or thin pointer.
9634 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
9636 * trans.c (call_to_gnu): Always set the source location on the call
9637 expression. If the function returns-by-target, also set it on the
9640 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
9642 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
9643 sections of non-supported Interix target.
9645 * s-osinte-interix.ads: Removed.
9647 * i-cstrin.ads (chars_ptr): Make it a C convention type.
9649 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
9651 * a-tasatt.adb: Add a comment at the beginning of the package
9652 explaining why in general 'Unchecked_Access must be used instead
9655 * sem_prag.adb (Process_Convention): Move the test for the
9656 entity on which the Convention pragma applies down to also
9657 forbid pragma Convention on enumeration literals reached
9660 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
9662 * a-tasatt.adb: Revert previous change for this file as it will
9663 generate an error when this package is instantiated from a
9666 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
9668 * a-tasatt.adb: Type Wrapper should be declared in comment instead
9669 of already declared type Node_Access.
9670 Use 'Access instead of 'Unchecked_Access when applicable. Local
9671 lifetime is the one of the package.
9672 (Set_Value): W is allocated on the heap.
9674 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9676 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
9678 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
9681 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
9683 (elaboration code): Timer_Queue lifetime is the one of the
9686 * tracebak.c (i386 alternative): Remove useless comparaison
9687 which is always false; LOWEST_ADDRESS is 0 and is never greater
9688 than an unsigned integer.
9690 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9691 embedded check for "Ada_Version >= Ada_05".
9693 2007-11-07 Olivier Hainque <hainque@adacore.com>
9695 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9696 craft and expand comment.
9698 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
9700 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9702 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
9704 * misc.c (gnat_handle_option): Replace call to abort with
9705 call to gcc_unreachable.
9706 (gnat_init): Likewise.
9707 (gnat_expand_expr): Likewise.
9708 (fp_prec_to_size): Likewise.
9709 (fp_size_to_prec): Likewise.
9711 2007-10-23 Richard Guenther <rguenther@suse.de>
9714 * tracebak.c: #undef abort after including system.h.
9716 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
9718 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9719 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9721 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9723 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
9725 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9726 Set the protection status of the guard page based on the value of On.
9728 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9730 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9731 (Exit_Task): Pass False to Hide_Yellow_Zone.
9733 2007-10-15 Robert Dewar <dewar@adacore.com>
9735 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9736 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9737 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9738 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9739 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9740 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9741 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9742 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9743 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9744 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9745 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9746 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9747 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9748 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9749 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9750 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9752 Add Unreferenced and Warnings (Off) pragmas for cases of
9753 variables modified calls where they are IN OUT or OUT parameters and
9754 the resulting values are not subsequently referenced. In a few cases,
9755 we also remove redundant code found by the new warnings.
9757 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9758 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9759 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9760 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9761 warning controlled by -gnatw.o that warns on cases of out parameter
9762 values being ignored.
9764 2007-10-15 Geert Bosch <bosch@adacore.com>
9766 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9768 * expect.c: Initial port to arm-mentor-nucleus.
9769 Use kill for __gnat_kill() on VMS.
9771 2007-10-15 Emmanuel Briot <briot@adacore.com>
9773 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9775 (Xref_Record): Change type for Line, since in the case of a reference to
9776 a predefined entity (as happens for array index types), the line is set
9778 Add support for parsing multiple array index types info, or
9779 multiple inherited interfaces info. This information cannot be stored
9780 in Xref_Entity_Record, which only supports a single instance of Tref_*,
9781 and is therefore stored in the list of references instead. It has a
9782 special treatement later on in tools that use this information.
9784 2007-10-15 Tristan Gingold <gingold@adacore.com>
9786 * debug.adb: Document use of -gnatd.a and -gnatd.I
9788 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9790 2007-10-15 Javier Miranda <miranda@adacore.com>
9792 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9793 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9794 care of access to class-wide interface types plus removal of bizarre
9795 conversion of tagged object to access type (reported by Gary
9796 Dismukes). After this patch there is no need to perform any
9797 additional management on these nodes in Expand_Interface_Actuals.
9799 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9800 that handles use of 'Access and 'Unchecked_Access applied to
9801 actuals covering interface types. Such code is now
9802 centralized in Expand_N_Attribute_Reference.
9804 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9806 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9807 of tagged types whose ultimate ancestor is a CPP type.
9808 (Freeze_Array_Type): For a packed array type, generate an initialization
9809 procedure if the type is public, to handle properly a client that
9810 specifies Normalize_Scalars.
9812 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9814 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9815 inside a generic body, retrieve the full view of the entry family
9816 discrete subtype if available.
9818 2007-10-15 Thomas Quinot <quinot@adacore.com>
9820 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9821 attempt to generate stubs for hidden primitive operations.
9823 2007-10-15 Vincent Celier <celier@adacore.com>
9825 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9826 returning None, used when there is no platform specific body for
9829 2007-10-15 Bob Duff <duff@adacore.com>
9831 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9832 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9833 the generic Heap_Sort_G, in order to avoid trampolines.
9835 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
9836 Jose Ruiz <ruiz@adacore.com>
9838 * vx_stack_info.c: New file.
9840 * i-forbla-unimplemented.ads: New file.
9842 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9843 for unsupported configurations; use it on VMS targets instead of the
9845 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9846 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9847 used by VxWorks targets to have access to task-specific data and be
9848 able to extract the stack boundaries for stack checking.
9849 Use system-vms-ia64.ads on ivms.
9851 * Make-lang.in: Update dependencies.
9853 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9856 2007-10-15 Vincent Celier <celier@adacore.com>
9858 * snames.adb, snames.ads: Add new standard name runtime_library_dir
9860 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9862 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9864 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9865 the source is unknown.
9867 * prj-ext.adb: Spelling error fix
9869 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9870 95 reserved word in its name.
9871 (Process_Project_Level_Array_Attributes): Process new attribute
9872 Runtime_Library_Dir.
9874 * prj-part.adb (Parse_Single_Project): Do not check the name of the
9875 config project against the user project names.
9877 * prj-proc.adb (Expression): In multi-language mode, indexes that do
9878 not include a dot are always case insensitive.
9879 (Process_Declarative_Items): Ditto
9880 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9883 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9884 True, compare both indexes in lower case.
9886 2007-10-15 Robert Dewar <dewar@adacore.com>
9888 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9890 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9892 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9893 association for an access component, add an association with null as
9894 the expression. Remove testing for array subtypes and the setting in
9895 that case of Ctyp to the array component type, which prevented proper
9896 inclusion of an association for null-initialized arrays. Collapse
9897 condition that tests for array subtypes into just a test of
9898 Is_Partially_Initialized_Type (which already covers arrays anyway).
9900 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9902 * sem_ch12.adb: Minor code reformatting.
9903 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9904 find the parent package which may have been hidden by local
9907 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9909 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9910 flag of derived concurrent types, taking into account the flag setting
9911 on the parent subtype and any new set of discriminants.
9913 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9915 * sem_ch4.adb: Minor code and comment reformatting.
9916 (Analyze_Allocator): When the designated type of an unconstrained
9917 allocator is a record with unknown discriminants or an array with
9918 unknown range bounds, emit a detailed error message depending on the
9919 compilation mode and whether the designated type is limited.
9921 2007-10-15 Tristan Gingold <gingold@adacore.com>
9923 * system-vms-ia64.ads: New file.
9925 * system-vms_64.ads: Minor comment fix.
9927 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9929 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9930 body generated for a function with a controlling result that is a null
9931 extension, discard the generated body in favor of the current explicit
9934 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9936 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9937 examining its original form, to handle properly operator calls that
9938 have been rewritten.
9940 2007-10-15 Olivier Hainque <hainque@adacore.com>
9942 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9943 instead of a procedure value in each traceback entry.
9945 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9946 instead of procedure value to TBK$SYMBOLIZE.
9948 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9950 (TB_Entry_For): Account for the PV/FP renaming.
9952 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9954 (Null_TB_Entry): Account for change of component name.
9955 (PV_For): Rename as FP_For.
9957 2007-10-15 Tristan Gingold <gingold@adacore.com>
9959 * trans.c (gnat_to_gnu): Remove the padding structure more often.
9960 This optimize assignment to over-aligned record.
9962 2007-10-15 Emmanuel Briot <briot@adacore.com>
9964 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9967 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9968 type, for dispatching calls.
9970 2007-10-15 Vincent Celier <celier@adacore.com>
9971 Robert Dewar <dewar@adacore.com>
9973 * gnat_ugn.texi: Add documentation for switches --version and --help
9974 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9975 gnatxref, gnatfind, gnatls, and gnatclean.
9977 Mention attribute Excluded_Source_Dirs
9978 Replace obsolescent attribute Locally_Removed_Files with attribute
9979 Excluded_Source_Files.
9980 Improve documentation of -u (gnatbind)
9981 Document how to do reliable stack checking for the environmental task
9984 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9985 Document attribute Excluded_Source_Files and indicate that attribute
9986 Locally_Removed_Files is obsolescent.
9988 2007-10-15 Thomas Quinot <quinot@adacore.com>
9990 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9993 Update documentation to note that OpenVMS 8.3 or later must be used
9994 to generate g-soccon-vms.ads.
9996 * atree.adb: Add ??? comment
9998 * exp_util.adb: Minor reformatting.
9999 Add ??? comment in Kill_Dead_Code.
10001 2007-10-15 Robert Dewar <dewar@adacore.com>
10003 * errout.ads: Comment clarification
10005 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
10006 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
10008 * lib.ads: Comment update
10010 * init.c: Minor reformatting.
10012 * sem_attr.adb: Minor formatting
10014 * osint-b.ads: Minor reformatting
10016 * sem_ch9.adb: Implement -gnatd.I switch
10018 * g-comlin.adb: (Start): Fix handling of empty command line.
10020 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
10021 even when -rules follows the -cargs section.
10023 2007-10-08 Ollie Wild <aaw@google.com>
10025 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
10027 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
10029 (gnat_eh_runtime_type): Removed.
10030 (gnat_return_tree): New function.
10032 2007-10-08 Ben Elliston <bje@au.ibm.com>
10036 2007-08-31 Ben Elliston <bje@au.ibm.com>
10038 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10039 when compiling for powerpc64-*-linux.
10040 * system-linux-ppc64.ads: New file.
10042 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
10044 Mapped location support
10045 * back_end.adb (Call_Back_End): Pass information about source
10046 files instead of units to gigi.
10047 * gigi.h (struct File_Info_Type): New.
10048 (gigi): Rename and change type of number_units parameter, change
10049 type of file_info_ptr parameter.
10050 * trans.c (number_files): New global variable.
10051 (gigi): Rename and change type of number_units parameter, change
10052 type of file_info_ptr parameter.
10053 If mapped location support is enabled, create the isomorphic mapping
10054 between source files and line maps.
10055 (Sloc_to_locus): If mapped location support is enabled, translate
10056 source location into mapped location.
10057 (annotate_with_node): Rename into set_expr_location_from_node.
10058 Call set_expr_location instead of annotate_with_locus.
10059 (Pragma_to_gnu): Adjust for above change.
10060 (Loop_Statement_to_gnu): Likewise.
10061 (call_to_gnu): Likewise.
10062 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
10063 (gnat_to_gnu): Likewise.
10064 (add_stmt_with_node): Likewise.
10065 (add_cleanup): Likewise.
10066 * utils.c (gnat_init_decl_processing): Do not set input_line.
10068 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
10070 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
10071 (Applicable_Use): Emit a warning when a package tries to use itself.
10072 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
10073 is already in use or the package where it is declared is in use or is
10074 declared in the current package.
10075 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
10077 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
10078 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
10079 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
10081 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
10083 * a-calend-vms.adb, a-calend.adb:
10084 Add a section on leap seconds control along with two entities used to
10085 enable and disable leap seconds support. The array Leap_Second_Times is
10086 now constant and contains hard time values pre-generated. Remove
10087 all elaboration code used to populate the table of leap seconds.
10090 Add entity Leap_Seconds_Support to the list of global run-time variables
10091 along with a comment on its usage and values.
10092 (Gen_Adainit_Ada): Add code to generate the declaration and import of
10093 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
10094 or one (enabled) depending on the presence of binder switch "-y".
10095 (Gen_Adainit_C): Add code to generate the declaration of external int
10096 __gl_leap_seconds_support. Set is value to zero (disabled) or one
10097 (enabled) depending on the presence of binder switch "-y".
10099 * init.c: Add __gl_leap_seconds_support to the list of global values
10100 computed by the binder.
10102 2007-09-26 Jerome Guitton <guitton@adacore.com>
10104 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
10105 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
10106 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
10107 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
10109 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
10111 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
10112 function which can be called by the debugger to interrupt the tasks of
10113 an Ada application asynchronously, as needed on VxWorks.
10114 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
10116 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
10117 renamed from Stop_All_Tasks. Update comments.
10118 (Stop_All_tasks): New function declaration.
10120 2007-09-26 Olivier Hainque <hainque@adacore.com>
10122 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
10123 #include <utime.h> and #define GCC_RESOURCE_H before
10124 #include <sys/wait.h>.
10125 Add more protections in __gnat_translate_vms.
10127 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
10128 #include <sys/wait.h>.
10130 2007-09-26 Thomas Quinot <quinot@adacore.com>
10131 Sergey Rybin <rybin@adacore.com>
10133 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
10135 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
10138 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
10140 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
10143 * sem_dist.ads: Minor comment fix
10145 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
10147 2007-09-26 Javier Miranda <miranda@adacore.com>
10148 Eric Botcazou <ebotcazou@adacore.com>
10151 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
10152 indirection added to the HT_Link component of the TSD. This is required
10153 to statically allocate the TSD.
10156 Minor reordering of the declarations in the private part. Required to
10157 add a level of indirection to the contents of the TSD component HT_Link.
10158 This is required to statically allocate the TSD.
10160 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
10161 Is_Statically_Allocated set from constant objects.
10162 Do not make exported constants created by the compiler volatile.
10163 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
10166 * trans.c (Identifier_to_gnu): For constants, unshare initializers
10167 before returning them.
10169 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
10170 public part of the package.
10171 (Make_DT): Move HT_Link component out of the TSD record. For this
10172 purpose Make_DT now declares a separate object that stores the
10173 HT_Link value, and initializes the TSD component with the address
10174 of this new object. The addition of this level of indirection is
10175 required to statically allocate the TSD because the TSD cannot
10176 have variable components.
10177 (Expand_Interface_Conversion): Improve the expanded code.
10178 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
10180 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
10181 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
10182 if we are building static dispatch tables then we must not generate
10183 extra code to register the primitive because the dispatch table will
10184 be built at the end of the library package; otherwise we notify that
10185 we cannot build the static dispatch table.
10187 2007-09-26 Robert Dewar <dewar@adacore.com>
10189 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
10192 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
10193 (Analyze_Record_Representation_Clause): Suppress junk warning for
10194 missing component clause.
10195 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
10196 tests for controlled type overlay to composites with controlled
10198 (Analyze_Record_Representation_Clause): Add reference for component name
10200 2007-09-26 Javier Miranda <miranda@adacore.com>
10201 Gary Dismukes <dismukes@adacore.com>
10203 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
10204 for thunks associated with interface types.
10206 * einfo.ads: Improve documentatation of Is_Internal
10207 (Is_Thunk): New attribute applicable to subprograms. True for thunks
10208 associated with interface types.
10209 Extensive comment fixes regarding flags that appear in all entities. The
10210 documentation is now consistent for all such flags (there were a number
10211 of errors in the documentation in this regard).
10213 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
10215 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
10216 of these procedures are passed a function call that already has
10217 build-in-place actuals (testing new flag
10218 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
10219 the case where processing continues.
10220 (Expand_Call): If the call is generated from a thunk body then we
10221 propagate the extra actuals associated with the accessibility
10222 level of the access type actuals.
10224 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
10225 of each extra formal of a protected operation to reference the
10226 corresponding extra formal of the subprogram denoted by the
10227 operation's Protected_Body_Subprogram.
10229 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
10230 N_Function_Call nodes.
10232 2007-09-26 Robert Dewar <dewar@adacore.com>
10234 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
10236 * debug.adb: Add d.s flag.
10238 2007-09-26 Gary Dismukes <dismukes@adacore.com>
10240 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
10241 debug variable so that it won't be initialized when pragma
10242 Initialize_Scalars is in effect.
10244 2007-09-26 Gary Dismukes <dismukes@adacore.com>
10246 * freeze.adb (Freeze_Entity): Remove check for preelaborable
10247 initialization of a full view. This is moved to
10248 Analyze_Package_Specification.
10250 * sem_ch7.adb (Analyze_Package_Specification): Add check for
10251 preelaborable initialization of a full view in entity loop.
10252 (Uninstall_Declarations): If entity is a use-visible compilation unit,
10253 its child units are use-visible only if they are visible child units.
10255 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
10256 whether an expression can be used within a type declaration that
10257 requires preelaborable init.
10258 (Check_Components): Replace inline code that does partial checking for
10259 preelaborable default expressions with call to
10260 Is_Preelaborable_Expression.
10261 (Has_Preelaborable_Initialization): In the case of a generic actual
10262 subtype, (that is, Is_Generic_Actual is True), return the result of
10263 applying Has_Preelaborable_Initialization to the generic actual's base
10266 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
10268 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
10269 call to Jan_1_Day _Of_Week to optimize its performance.
10270 (Is_Leap): Move the routine to the scope of Week_In_Year.
10271 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
10272 weekday on which January 1 falls of Year - 1 and Year + 1. This function
10273 avoids calling Time_Of and Split, thus making it more efficent.
10274 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
10276 * g-calend.ads (Week_In_Year): Change comment to reflect new
10279 2007-09-26 Emmanuel Briot <briot@adacore.com>
10281 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
10282 Command_Line): New types
10283 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
10284 support for defining how switches can be grouped on a command line (as
10285 is the case for -gnatw... for GNAT), and how simple switches can be
10286 used as aliases for more complex switches (-gnatwa is same as
10288 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
10289 (Start, Current_*): New subprograms
10290 Added support for parsing an array of strings in addition to the real
10292 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
10293 be moved from the body to the private part of the spec.
10294 (*): All subprograms now have an extra parameter with default value to
10295 specify which parser should be used. For backward compatibility, it
10296 defaults to parsing the command line of the application. They were also
10297 modified to properly handle cases where each of the argument does not
10298 start at index 1 (which is always true for Ada.Command_Line, but not
10299 when processing any Argument_List).
10300 (Free): New subprogram
10301 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
10302 Argument): New subprograms
10303 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
10304 special characters like ':', '=',... are now handled in a single place,
10305 which makes the code more extensible eventually.
10306 (Getopt, Full_Switch): When the switch was returned as part of the
10307 special character '*', make sure it is prepended by the switch character
10308 ('-' in general), so that the application knows whether "foo" or "-foo"
10309 was specified on the command line.
10311 2007-09-26 Florian Villoing <villoing@adacore.com>
10313 * g-dirope.adb (Remove_Dir): In case we are removing directories
10314 recursively, make sure that if an exception is raised during the
10315 processing, the current working directory is reset to its initial
10316 value before propagating the exception.
10318 2007-09-26 Vincent Celier <celier@adacore.com>
10320 * gnatbind.adb: If there are several ALI files specified and there is
10321 a main program to bind, the first ALI is expected to contain the main
10322 subprogram and the names of the binder generated files will be derived
10323 from the first ALI file name.
10324 (Gnatbind): Fix insertion character in invocation of Error_Msg
10326 2007-09-26 Vincent Celier <celier@adacore.com>
10328 * gnatcmd.adb (Check_Files): Do not include sources that have been
10329 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
10331 2007-09-26 Ed Schonberg <schonberg@adacore.com>
10333 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
10334 information about each of its index types, following the type
10335 reference for its component type.
10337 2007-09-26 Vincent Celier <celier@adacore.com>
10339 * make.adb: (Kill): New procedure (__gnat_kill imported)
10340 (Running_Compile, Outstanding_Compiles): Global variables that
10341 were previously local to procedure Compile_Sources.
10342 (Sigint_Intercepted): Send signal SIGINT to all outstanding
10343 compilation processes.
10345 (Gnatmake): If project files are used, create the mapping of all the
10346 sources, so that the correct paths will be found.
10348 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
10350 2007-09-26 Vincent Celier <celier@adacore.com>
10352 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
10354 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
10355 Replace components Compiler_Min_Options and Binder_Min_Options with
10356 Compiler_Required_Switches and Binder_Required_Switches in record
10358 Remove components Default_Language and Config in Project_Tree_Data,
10361 * prj-attr.adb: New attributes Required_Switches (<language>) in
10362 packages Compiler and Binder.
10364 * prj-nmsc.adb: Major rewrite of the processing of configuration
10365 attributes for gprbuild. No impact on GNAT tools.
10367 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
10368 process configuration attributes: this is done in Prj.Nmsc.Check.
10369 (Recursive_Process): Make a full copy of packages inherited from project
10370 being extended, instead of a shallow copy.
10371 (Process_Project_Tree_Phase_1): New procedure
10372 (Process_Project_Tree_Phase_1): New procedure
10373 (Process): Implementation now uses the two new procedures
10375 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
10376 from the project config, not the tree config that no longer exists.
10378 2007-09-26 Vincent Celier <celier@adacore.com>
10380 * Make-lang.in: Update dependencies..
10382 2007-09-26 Vincent Celier <celier@adacore.com>
10384 * osint.adb, osint.ads: Minor reformatting
10386 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
10388 2007-09-26 Gary Dismukes <dismukes@adacore.com>
10390 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
10391 message to cite use of <> in aggregate component associations rather
10392 than wrongly indicating use of limited aggregates.
10394 2007-09-26 Robert Dewar <dewar@adacore.com>
10396 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
10399 2007-09-26 Ed Schonberg <schonberg@adacore.com>
10401 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
10402 ancestor of the derived type, the operations are inherited from the
10403 primary dispatch table of the parent.
10404 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
10405 when the context is an explicit type conversion.
10407 2007-09-26 Ed Schonberg <schonberg@adacore.com>
10409 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
10410 rule for qualified expressions properly, to detect improper conversions
10411 and resolve some cases of overloading.
10413 2007-09-26 Ed Schonberg <schonberg@adacore.com>
10415 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
10416 proper kind of reference to the primitive operation, for better source
10418 (Valid_Conversion): A tagged conversion is legal if both operands are
10421 2007-09-26 Robert Dewar <dewar@adacore.com>
10423 * sem_warn.adb (Check_References): Catch more cases of unreferenced
10426 2007-09-26 Vincent Celier <celier@adacore.com>
10428 * snames.adb, snames.ads: Change Include_Option to Include_Switches
10430 2007-09-26 Robert Dewar <dewar@adacore.com>
10432 * s-wchstw.adb: provide messages for run time unit exceptions
10434 * a-witeio.adb: Minor reformatting
10436 * exp_ch13.adb: Minor reformatting
10438 2007-09-26 Sergey Rybin <rybin@adacore.com>
10440 * vms_data.ads: Revise gnatmetric qualifiers.
10441 Add qualified for the new gnatbind option '-y'
10443 * gnat_ugn.texi: Revise the gnatmetric section.
10444 Add entry for new gnatbind option '-y'.
10446 * gnat_rm.texi: Minor spelling correction.
10447 Document restriction on overlaying controlled types
10449 2007-09-26 Vincent Celier <celier@adacore.com>
10451 * makegpr.adb (Link_Executables): Do not fail when the root project has
10452 no sources, but is an extending project.
10454 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
10456 * trans.c: Fix misplaced #define.
10458 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
10460 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
10461 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
10463 2007-09-21 Olivier Hainque <hainque@adacore.com>
10465 * utils.c (type_for_nonaliased_component_p): Return false for
10466 all AGGREGATE_TYPEs.
10468 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
10470 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
10471 object covered by 13.3(19) volatile.
10473 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
10477 * utils.c (unchecked_convert): Use a subtype as the intermediate type
10478 in the special VIEW_CONVERT_EXPR case.
10480 2007-09-12 Robert Dewar <dewar@adacore.com>
10482 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
10484 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
10485 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
10486 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
10487 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
10488 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
10489 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
10490 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
10491 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
10492 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
10493 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
10494 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
10495 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
10496 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
10497 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
10498 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
10499 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
10500 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
10501 pragma Compiler_Unit and adds it to relevant library units.
10503 2007-09-12 Ed Schonberg <schonberg@adacore.com>
10505 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
10506 a box need not correspond to any component.
10508 2007-09-12 Robert Dewar <dewar@adacore.com>
10510 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
10511 the tasking version of the Ada run time when foreign threads are
10512 present and there are no explicit Ada tasks or tasking constructs.
10514 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
10516 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
10518 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
10519 the usage of switch -y.
10521 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
10522 when switch -y is present.
10524 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
10525 leap seconds in Ada.Calendar and its children.
10527 2007-09-12 Jose Ruiz <ruiz@adacore.com>
10529 * a-extiti.ads (Timer): The discriminant is a "not null access
10530 constant" in the Reference Manual.
10531 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
10533 2007-09-12 Robert Dewar <dewar@adacore.com>
10535 * a-swuwha.adb: Remove junk RM header
10537 2007-09-12 Vincent Celier <celier@adacore.com>
10539 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
10542 * g-bytswa.ads: Minor reformatting
10544 2007-09-12 Thomas Quinot <quinot@adacore.com>
10546 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
10547 Add new constant Thread_Blocking_IO, always True by default, set False
10548 on a per-runtime basis.
10549 (Need_Netdb_Buffer): New constant.
10551 2007-09-12 Arnaud Charlet <charlet@adacore.com>
10553 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
10554 Added renames for corresponding functions in System.Partition_Interface.
10556 2007-09-12 Doug Rupp <rupp@adacore.com>
10558 * Makefile.in: Remove VMS specific System.CRTL packages which are no
10561 * s-crtl-vms64.ads: Removed.
10563 2007-09-12 Olivier Hainque <hainque@adacore.com>
10565 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
10566 with discriminant constraints, generalize the code for BIT_FIELDs
10567 to PACKED fields of constant size and propagate DECL_PACKED.
10569 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
10571 * decl.c (array_type_has_nonaliased_component): New predicate.
10572 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
10573 set the TYPE_NONALIASED_COMPONENT flag on the type.
10574 <E_Array_Subtype>: Likewise.
10575 * gigi.h (type_for_nonaliased_component_p): Declare.
10576 * utils.c (type_for_nonaliased_component_p): New predicate.
10577 (create_field_decl): Invoke the above predicate to set the
10578 DECL_NONADDRESSABLE_P flag on the field.
10580 2007-09-11 Javier Miranda <miranda@adacore.com>
10582 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
10583 in library level record type entities if we are generating statically
10584 allocated dispatch tables.
10586 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
10587 importing/exporting the _tag declaration by new code
10588 importing/exporting the dispatch table wrapper. This change allows us
10589 to statically allocate of the TSD.
10590 (Make_DT.Export_DT): New procedure.
10591 (Build_Static_DT): New function.
10592 (Has_DT): New function.
10594 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
10595 True_Constant and Current_Value. Required to statically
10596 allocate the dispatch tables.
10597 (Check_Allocator): Make function iterative instead of recursive.
10598 Also return inner allocator node, when present, so that we do not have
10599 to look for that node again in the caller.
10601 2007-09-11 Jan Hubicka <jh@suse.cz>
10603 * misc.c (gnat_expand_body): Kill.
10604 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
10606 2007-09-10 Robert Dewar <dewar@adacore.com>
10608 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
10609 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10610 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10611 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
10612 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
10613 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
10614 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
10615 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
10616 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
10617 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
10618 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
10619 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
10620 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
10621 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
10622 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10623 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
10624 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
10625 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10626 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
10627 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
10628 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10629 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
10630 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
10631 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
10632 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
10633 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10634 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
10635 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
10636 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
10637 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
10638 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
10639 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
10640 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
10641 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
10642 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10643 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
10644 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10645 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
10646 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
10647 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
10648 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
10649 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10650 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10651 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
10652 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10653 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
10654 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
10655 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10656 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10657 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10658 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10659 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
10660 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
10661 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
10662 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10663 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
10664 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
10665 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10666 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
10667 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
10668 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10669 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10670 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
10671 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
10672 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
10673 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
10674 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10675 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
10676 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
10677 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
10678 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10679 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
10680 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
10681 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
10682 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
10683 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
10684 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
10685 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
10686 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10687 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10688 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10689 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10690 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10692 2007-09-10 Emmanuel Briot <briot@adacore.com>
10694 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10697 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
10699 * adaint.c (__gnat_translate_vms): new function.
10701 2007-09-10 Gary Dismukes <dismukes@adacore.com>
10702 Thomas Quinot <quinot@adacore.com>
10704 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10705 create an abstract subprogram in the case of 'Input. For 'Output we now
10706 create a real spec/body when the type is abstract, since it can
10707 potentially be called.
10708 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10709 body for 'Output when the type is abstract (only the creation of the
10710 body for 'Input is excluded when the type is abstract).
10711 (Stream_Operation_OK): Add an additional condition in the return
10712 statement, so that False will be returned for TTS_Stream_Input if the
10713 associated tagged type is an abstract extension. Add comments for
10715 (Expand_N_Object_Declaration): For the case of a shared passive
10716 variable, insert init proc call only after the shared variable
10717 procedures have been processed, because the IP call needs to undergo
10718 shared passive variable reference expansion, which requires these
10719 procedures to be available (and elaborated).
10721 2007-09-10 Vincent Celier <celier@adacore.com>
10723 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10724 parameter Runtime_Project.
10726 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10728 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10729 given a box association, the type of the component is discriminated,
10730 and the value of the discriminant is the discriminant of the enclosing
10731 type, retrieve its value from the aggregate itself, where it must have
10734 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10735 to remove other spurious ambiguities on arithmetic operations involving
10736 literals and addresses, on systems where Address is a visible integer
10737 type, when the operator is called in functional notation.
10738 (Try_Primitive_Operation): Within an instance, a call in prefixed form
10739 is legal when the types match, even if the operation is currently
10742 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10744 * sem_ch12.adb (Build_Local_Package): A formal package with no
10745 associations is legal if all formals have defaults. It is not
10746 equivalent to a formal declared with a box.
10748 2007-09-10 Sergey Rybin <rybin@adacore.com>
10750 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10752 2007-09-10 Sergey Rybin <rybin@adacore.com>
10754 * gnat_ugn.texi: Add description of the new '-lratio' option
10755 Update 7.3.1 section about availability of the feature.
10757 2007-09-10 Thomas Quinot <quinot@adacore.com>
10759 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10762 2007-09-10 Olivier Hainque <hainque@adacore.com>
10764 * Makefile.in: (mips-irix section): Activate build of libgmem.
10766 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10768 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10771 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10773 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10774 a debug renaming declaration specially.
10776 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10778 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10779 which a constant renaming is treated as a normal object declaration.
10780 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10781 the N_Indexed_Component case.
10782 <N_Indexed_Component>: Fall through to above case.
10783 <N_Object_Renaming_Declaration>: Return true for all composite types.
10785 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10787 * decl.c (make_packable_type): If the new type has been given BLKmode,
10788 try again to get an integral mode for it.
10790 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
10792 Re-apply accidentally reverted change:
10794 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10796 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10797 get_action_description_for): Replace _Unwind_Word with _uleb128_t
10798 and _Unwind_SWord with _sleb128_t.
10800 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
10802 * trans.c (convert_with_check): Update call to real_2expN.
10804 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
10806 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10807 * utils.c (end_subprog_body): Likewise.
10809 2007-09-03 Nick Clifton <nickc@redhat.com>
10811 * Make-lang.in: Change copyright header to refer to version 3 of
10812 the GNU General Public License and to point readers at the
10813 COPYING3 file and the FSF's license web page.
10814 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10815 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10816 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10817 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10820 2007-08-31 Vincent Celier <celier@adacore.com>
10824 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10825 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10826 (Check_Version_And_Help): New procedure in package Switch to process
10827 switches --version and --help.
10828 Use Check_Version_And_Help in GNAT tools
10831 (Compile_Sources): Make sure that sources that are "excluded" are not
10833 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10834 project file is used.
10835 (Version_Switch): Remove, moved to Switch
10836 (Help_Switch): Remove, moved to Switch
10837 (Display_Version): Remove, moved to Switch
10839 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10840 package Switch to process switches --version and --help.
10841 (Display_Version): New procedure
10843 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10845 2007-08-31 Javier Miranda <miranda@adacore.com>
10847 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10850 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10852 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10853 (Mark_Non_Null): If the node for which we just generated an access check
10854 is a reference to an *in* parameter and the reference appears in the
10855 declarative part of a subprogram body, mark the node as known non null.
10857 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10859 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10860 structure of E_Exception to reflect the new flag.
10861 (Is_Raised, Set_Is_Raised): New inlined routines.
10862 Update the usage of available flag to reflect the addition of Is_Raised.
10863 (Is_Raised, Set_Is_Raised): Bodies of new routines.
10864 (Write_Entity_Flags): Write the status of flag Is_Raised.
10865 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10866 spurious ambiguities when integer literals appear in the context of an
10867 address type that is a visible integer type.
10869 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10870 exceptions never being raised.
10871 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10874 2007-08-31 Javier Miranda <miranda@adacore.com>
10876 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10877 statement when compiling under restriction No_Exceptions_Proparation.
10879 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10881 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10882 initialization aggregate for the type, generate itype references for
10883 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10885 2007-08-31 Gary Dismukes <dismukes@adacore.com>
10887 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10888 library-level package renaming, pass the declaration associated with
10889 the renaming's special debug variable to Qualify_Entity_Names to ensure
10890 that its encoded name is properly qualified.
10892 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10893 occurring in the list of entities to qualify, and do not attempt to
10894 traverse an entity list in that case. Variables associated with
10895 ` library-level package renamings can now occur in the table.
10897 * exp_dbug.ads: Revise documentation of the encoding for renaming
10900 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10902 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10903 access type points to an unconstrained array.
10905 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10907 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10910 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10911 simple redundant qualifications. The check is performed whenever the
10912 expression is a non-overloaded identifier.
10913 (Resolve_Type_Conversion): Enchance the redundant type conversion check
10914 to include loop parameters.
10915 (Valid_Conversion): Avoid generation of spurious error message.
10917 2007-08-31 Bob Duff <duff@adacore.com>
10919 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10920 concatenations of string literals into a single literal, in order to
10921 avoid very deep recursion in the front end, which was causing stack
10924 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10925 string, and the right operand is a string literal (the case of "" &
10926 "..."), optimize by avoiding copying the right operand -- just use the
10927 value of the right operand directly.
10929 * stringt.adb (Store_String_Chars): Optimize by growing the
10930 String_Chars table all at once, rather than appending characters one by
10932 (Write_String_Table_Entry): If the string to be printed is very long,
10933 just print the first few characters, followed by the length. Otherwise,
10934 doing "pn(n)" in the debugger can take an extremely long time.
10936 * sem_prag.adb (Process_Interface_Name): Replace loop doing
10937 Store_String_Char with Store_String_Chars.
10939 2007-08-31 Vincent Celier <celier@adacore.com>
10941 * prj-attr.adb: Add new attribute Excluded_Source_Files
10943 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10944 Locally_Removed_Files.
10946 * snames.ads, snames.adb: New standard name Excluded_Source_Files
10948 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10950 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10951 clauses of subunits, ignore limited_with_clauses that are illegal and
10952 have not been fully analyzed.
10954 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10956 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10957 flag, for effiency. It is called when analyzing arithmetic operators
10958 and also for actuals in calls that are universal_integers. The flag is
10959 set for the predefined type address, and for any type or subtype
10962 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10963 Universal_Integer, when the formal is a descendent of address and the
10964 call appears in user code.
10965 (Analyze_Selected_Component): if the prefix is a private extension, the
10966 tag component is visible.
10968 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10971 2007-08-31 Robert Dewar <dewar@adacore.com>
10973 * s-fileio.adb (Open): Normalize file name to lower case in non-case
10974 sensitive file name systems to avoid unexpected mismatch in Vista.
10976 2007-08-31 Vincent Celier <celier@adacore.com>
10978 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10980 2007-08-31 Vincent Celier <celier@adacore.com>
10982 * symbols-vms.adb (Initialize): Read symbol files with continuation
10984 (Finalize): If symbol is long, split the line
10986 2007-08-31 Vincent Celier <celier@adacore.com>
10988 * fmap.ads: Minor comment updates
10990 2007-08-31 GNAT Script <nobody@adacore.com>
10992 * Make-lang.in: Makefile automatically updated
10994 2007-08-31 Bob Duff <duff@adacore.com>
10996 * sinfo.ads: Minor comment fix.
10998 2007-08-31 Thomas Quinot <quinot@adacore.com>
11000 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
11001 with implementation.
11002 Documentation cleanup only.
11004 2007-08-31 Sergey Rybin <rybin@adacore.com>
11006 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
11007 gnatpp '--separate-stmt-name' option.
11008 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
11011 * gnat_ugn.texi: Add description for the new gnatpp
11012 '--separate-stmt-name' and '--use-on-new-line' options.
11014 2007-08-31 Ben Elliston <bje@au.ibm.com>
11016 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
11017 when compiling for powerpc64-*-linux.
11018 * system-linux-ppc64.ads: New file.
11020 2007-08-22 Krister Walfridsson <cato@df.lth.se>
11022 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
11025 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11027 * misc.c (gnat_type_max_size): Constify.
11029 2007-08-16 Gary Dismukes <dismukes@adacore.com>
11031 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
11032 associated with Standard_Debug_Renaming_Type, to be used as the type of
11033 the special variables whose names provide debugger encodings for
11034 renaming declarations.
11036 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
11037 (Set_Debug_Renaming_Link): Change to set Node25.
11038 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
11039 (Write_Field25_Name): Add case for E_Variable to output
11040 "Debug_Renaming_Link".
11041 (Write_Field23_Name): Correct the output string for "Limited_View".
11043 * exp_dbug.adb: Add with and use of Tbuild.
11044 (Debug_Renaming_Declaration): Replace creation of an enumeration type
11045 and literal with creation of a variable of type
11046 Standard_Debug_Renaming_Type whose name encodes both the renamed object
11047 and the entity of the renaming declaration.
11048 (Qualify_Entity_Name): Add the delayed qualification of the entity name
11049 part of the name of a variable that has a Debug_Renaming_Link.
11051 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
11052 special type to be associated with variables that provide debugger
11053 encodings for renaming declarations.
11055 2007-08-16 Gary Dismukes <dismukes@adacore.com>
11056 Ed Schonberg <schonberg@adacore.com>
11057 Javier Miranda <miranda@adacore.com>
11059 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
11060 ancestor part given by an aggregate to test for an unchecked conversion,
11061 since this can occur in some cases when the ancestor part is a function
11062 call, and we don't want to fall into the recursive call to this
11063 procedure in that case.
11065 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
11066 stream attributes on limited types to account for user-specified
11067 attributes as well as whether Input (resp. Output) becomes available
11068 due to Read (resp. Write) being available for the type. Change Boolean
11069 variable to the more accurate name
11070 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
11071 double-"not" predicate at beginning of return statement to more
11072 understandable form.
11074 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
11075 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
11076 in a block statement and use that as the first statement of the
11077 expanded return rather than incorrectly using the handled sequence as
11078 the first statement.
11080 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
11081 operation, generate an explicit freeze node for it rather than
11082 generating extra formals, to ensure that gigi has the proper order of
11083 elaboration for anonymous subtypes in the signature of the subprograms.
11084 (Build_In_Place_Formal): Move assertion to beginning of loop.
11085 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
11086 applied to a function call (occurs for some cases of 'Input).
11087 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
11088 applied to a function call (occurs for some cases of 'Input).
11090 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
11091 2005, generate an extended return statement enclosing the result object
11094 * freeze.adb (Freeze_Record_Type): Extend the current management of
11095 components that are access type with an allocator as default value: add
11096 missing support to the use of qualified expressions of the
11097 allocator (which also cause freezing of the designated type!)
11098 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
11099 dispatching operation, since extra formals may be needed by calls to
11100 build-in-place functions (such as stream 'Input).
11102 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
11103 formals for 'Constrained and accessibility level in the case of a
11104 predefined dispatching operation.
11106 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
11107 point, no need to find the parent node.
11109 2007-08-16 Javier Miranda <miranda@adacore.com>
11111 * exp_attr.adb (Attribute_Priority): Add missing support for entries
11112 and entry barriers.
11114 2007-08-16 Javier Miranda <miranda@adacore.com>
11116 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
11117 is not really required and can introduce regression with the debugger.
11118 The original problem is fixed with the patch written for checks.adb.
11120 2007-08-16 Thomas Quinot <quinot@adacore.com>
11122 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
11123 Range_Check on Allocated_Table.
11125 2007-08-16 Vincent Celier <celier@adacore.com>
11127 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
11128 Including_Non_Switch set to False.
11129 (Gnatmake): For the compiler, call Test_If_Relative_Path with
11130 Including_Non_Switch set to False.
11132 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
11133 parameter Including_Non_Switch, defaulted to True. When
11134 Including_Non_Switch is False, options that are not switches and
11135 appear as relative path are not converted to absolute paths.
11137 2007-08-16 Nicolas Roche <roche@adacore.com>
11139 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
11142 * Make-lang.in: Update dependencies
11144 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
11146 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
11147 currently inspected is a selected component, retrieve the entity of
11149 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
11150 from the immediate ancestor of Main_Unit_Entity.
11151 (Install_Limited_Withed_Unit): Do not install the limited view of
11152 package P if P is reachable through an ancestor chain from package C
11153 and C also has a with clause for P in its body.
11154 (Has_Limited_With_Clause): New routine.
11155 (Has_With_Clause): New routine.
11157 2007-08-16 Ed Schonberg <schonberg@adacore.com>
11159 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
11160 generic for an enclosing instance is a global reference, even though
11161 its scope is the enclosing instance.
11163 2007-08-16 Gary Dismukes <dismukes@adacore.com>
11164 Javier Miranda <miranda@adacore.com>
11166 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
11167 initialize a limited object.
11168 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
11170 Make sure Has_Complex_Representation is inherited by derived type.
11172 2007-08-16 Robert Dewar <dewar@adacore.com>
11174 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
11177 2007-08-16 Ed Schonberg <schonberg@adacore.com>
11179 * sem_disp.adb (Check_Dispatching_Operation): If the operation
11180 implements an operation inherited from a progenitor interface, verify
11181 that they are subtype-conformant.
11183 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
11184 Bob Duff <duff@adacore.com>
11185 Nicolas Setton <setton@adacore.com>
11187 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
11188 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
11189 the statement which is being resolved comes from a predefined library
11190 unit, all non-predefined library interpretations are skipped.
11191 (Resolve_Op_Concat): If string concatenation was folded in the parser,
11192 but the "&" is user defined, give an error, because the folding would
11195 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
11196 the parser has folded a long sequence of concatenations of string
11199 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
11200 and "JMP_BUF" variables as artificial.
11201 (N_String_Literal): Do not use alloca for very long string literals. Use
11202 xmalloc/free instead. Otherwise the stack might overflow.
11204 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
11207 2007-08-16 Vincent Celier <celier@adacore.com>
11209 * vms_conv.adb (Process_Argument): Ensure that project related options
11210 are not put in the -cargs section when using GNAT COMPILE.
11212 2007-08-16 Robert Dewar <dewar@adacore.com>
11214 * gnat_ugn.texi: Add note on preprocessing (output file not written)
11216 2007-08-16 Thomas Quinot <quinot@adacore.com>
11218 * a-tags.adb: Minor reformatting.
11220 2007-08-16 Bob Duff <duff@adacore.com>
11222 * sem_type.ads, sem_ch4.adb: Minor reformatting.
11224 2007-08-14 Thomas Quinot <quinot@adacore.com>
11226 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
11227 s-osinte-interix.ads, system-interix.ads: Removed.
11229 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11231 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
11232 calls to Check_Within_Time_Bounds.
11233 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
11234 (Difference): Account for possible rounding of the resulting difference
11236 2007-08-14 Robert Dewar <dewar@adacore.com>
11238 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
11239 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
11240 s-osinte-solaris.adb, s-osinte-solaris.ads,
11241 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
11243 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
11244 switch -gnatyS. Enable -gnatyS in GNAT style check mode
11246 2007-08-14 Robert Dewar <dewar@adacore.com>
11247 Ed Schonberg <schonberg@adacore.com>
11249 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
11250 Suppress unmodified in-out parameter warning in some cases
11251 This patch is a also fairly significant change to the way suppressible
11252 checks are handled.
11254 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
11255 needed for access to concurrent record types generated by the expander.
11256 (Generate_Range_Check): When generating a temporary to capture the
11257 value of a conversion that requires a range check, set the type of the
11258 temporary before rewriting the node, so that the type is always
11259 properly placed for back-end use.
11260 (Apply_Float_Conversion_Check): Handle case where the conversion is
11262 (Get_Discriminal): Code reformatting. Climb the scope stack looking
11263 for a protected type in order to examine its discriminants.
11265 2007-08-14 Robert Dewar <dewar@adacore.com>
11266 Gary Dismukes <dismukes@adacore.com>
11267 Ed Schonberg <schonberg@adacore.com>
11268 Thomas Quinot <quinot@adacore.com>
11270 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
11271 a-stwisu.adb, a-strsup.adb: Fix warnings for range
11272 tests optimized out.
11274 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
11275 (Get_Allocator_Final_List): For the case of an anonymous access type
11276 that has a specified Associated_Final_Chain, do not go up to the
11278 (Expand_N_Type_Conversion): Test for the case of renamings of access
11279 parameters when deciding whether to apply a run-time accessibility
11281 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
11282 aggregate code before allocator, and ahead of declaration for
11283 temporary, to prevent access before elaboration when the allocator is
11284 an actual for an access parameter.
11285 (Expand_N_Type_Conversion): On an access type conversion involving an
11286 access parameter, do not apply an accessibility check when the
11287 operand's original node was an attribute other than 'Access. We now
11288 create access conversions for the expansion of 'Unchecked_Access and
11289 'Unrestricted_Access in certain cases and clearly accessibility should
11290 not be checked for those.
11292 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
11293 includes a type conversion of a packed component that has been expanded,
11294 recover the original expression for the object, and use this expression
11295 in the post-call assignment statement, so that the assignment is made
11296 to the object and not to a back-end temporary.
11297 (Freeze_Subprogram): In case of primitives of tagged types not defined
11298 at the library level force generation of code to register the primitive
11299 in the dispatch table. In addition some code reorganization has been
11300 done to leave the implementation clear.
11301 (Expand_Call): When expanding an inherited implicit conversion,
11302 preserve the type of the inherited function after the intrinsic
11303 operation has been expanded.
11305 * exp_ch2.ads, exp_ch2.adb
11306 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
11307 of an entry formal appearing in an assignment statement does not assign
11309 (Expand_Current_Value): Instead of calling a routine to determine
11310 whether the prefix of an attribute reference should be optimized or
11311 not, prevent the optimization of such prefixes all together.
11313 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
11314 component whose prefix is known to be of an access type is an implicit
11315 dereference and does not assign to the prefix.
11317 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11318 Robert Dewar <dewar@adacore.com>
11320 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
11321 itype is visited, make an entry into table to link associated node and
11323 Add comments and correct harmless error in Build_NCT_Hash_Tables
11324 (Array_Aggr_Subtype): Associate each itype created for an index type to
11325 the corresponding range construct, and not to the aggregate itself. to
11326 maintain a one-to-one correspondence between itype and its associated
11327 node, to prevent errors when complex expression is copied.
11328 Fix mishandling of multiple levels of parens
11330 * sem_aggr.adb: Create a limited view of an incomplete type, to make
11331 treatment of limited views uniform for all visible declarations in a
11332 limited_withed package.
11333 (New_Copy_Tree): If hash table is being used and itype is visited,
11334 make an entry into table to link associated node and new itype.
11335 (Resolve_Record_Aggregate): Do not add an others box association for a
11336 discriminated record component that has only discriminants, when there
11337 is a box association for the component itself.
11339 * par-ch4.adb: Fix mishandling of multiple levels of parens
11341 2007-08-14 Robert Dewar <dewar@adacore.com>
11343 * comperr.adb: Fix problem with suppressing warning messages from gigi
11345 * erroutc.ads, erroutc.adb, errout.ads,
11346 errout.adb (Write_Eol): Remove trailing spaces before writing the line
11347 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11348 possible trailing spaces.
11349 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11350 Fix problem with suppressing warning messages from back end
11351 Improve handling of deleted warnings
11354 Fix problem with suppressing warning messages from back end
11355 Handle setting of Static_Dispatch_Tables flag.
11358 Fix problem with suppressing warning messages from back end
11360 * exp_intr.adb: Improve handling of deleted warnings
11362 2007-08-14 Robert Dewar <dewar@adacore.com>
11364 * debug.adb: Improve -gnatdI to cover all cases of serialization
11365 Add documentation of dZ, d.t
11367 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
11369 (Sprint_Node_Actual): Generate new output associated with implicit
11370 importation and implicit exportation of object declarations.
11372 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11373 Robert Dewar <dewar@adacore.com>
11374 Javier Miranda <miranda@adacore.com>
11375 Gary Dismukes <dismukes@adacore.com>
11377 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
11378 to make treatment of limited views uniform for all visible declarations
11379 in a limited_withed package.
11380 Improve warnings for in out parameters
11381 (Set_Related_Interaface/Related_Interface): Allow the use of this
11382 attribute with constants.
11383 (Write_Field26_Name): Handle attribute Related_Interface in constants.
11384 Warn on duplicate pragma Preelaborable_Initialialization
11386 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
11387 generation of a freezing node to ensure proper management of null
11388 excluding access types in the backend.
11389 (Create_Extra_Formals): Test base type of the formal when checking for
11390 the need to add an extra accessibility-level formal. Pass the entity E
11391 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
11392 originally being done in a couple of cases), to ensure that the
11393 Extra_Formals list gets set on the entity E when the first entity is
11395 (Conforming_Types): Add missing calls to Base_Type to the code that
11396 handles anonymous access types. This is required to handle the
11397 general case because Process_Formals builds internal subtype entities
11398 to handle null-excluding access types.
11399 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
11400 functions that need it, even when not marked Requires_Overriding.
11401 Improve warnings for in out parameters
11402 (Analyze_Function_Return): Warn for disallowed null return
11403 Warn on return from procedure with unset out parameter
11404 Ensure consistent use of # in error messages
11405 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
11406 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
11407 the implicit conversion of the expression done for anonymous access
11408 types. This is required to generate the code of the null excluding
11409 check (if required).
11411 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
11412 A formal parameter is never publicly referenceable outside of its body.
11413 (Check_References): For an unreferenced formal parameter in an accept
11414 statement, use the same warning circuitry as for subprogram formal
11416 (Warn_On_Unreferenced_Entity): New subprogram, taken from
11417 Output_Unreferenced_Messages, containing the part of that routine that
11418 is now reused for entry formals as described above.
11419 (Goto_Spec_Entity): New function
11420 (Check_References): Do not give IN OUT warning for dispatching operation
11421 Improve warnings for in out parameters
11422 (Test_Ref): Check that the entity is not undefinite before calling
11423 Scope_Within, in order to avoid infinite loops.
11424 Warn on return from procedure with unset out parameter
11425 Improved warnings for unused variables
11427 2007-08-14 Robert Dewar <dewar@adacore.com>
11428 Javier Miranda <miranda@adacore.com>
11429 Gary Dismukes <dismukes@adacore.com>
11431 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
11432 (Expand_N_Attribute_Reference): Further unify the handling of the
11433 three forms of access attributes, using common code now for all three
11434 cases. Add a test for the case of applying an access attribute to
11435 an explicit dereference when the context is an access-to-interface
11436 type. In that case we need to apply the conversion to the prefix
11437 of the explicit dereference rather than the prefix of the attribute.
11438 (Attribute_Version, UET_Address): Set entity as internal to ensure
11439 proper dg output of implicit importation.
11440 (Expand_Access_To_Type): Removed.
11441 (Expand_N_Attribute_Reference): Merge the code from the three cases
11442 of access attributes, since the processing is largely identical for
11443 these cases. The substantive fix here is to process the case of a
11444 type name prefix (current instance case) before handling the case
11445 of interface prefixes.
11447 2007-08-14 Thomas Quinot <quinot@adacore.com>
11448 Ed Schonberg <schonberg@adacore.com>
11449 Javier Miranda <miranda@adacore.com>
11450 Robert Dewar <dewar@adacore.com>
11452 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
11453 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
11454 type that is an anonymous access to controlled object, establish
11455 an associated finalization chain to avoid corrupting the global
11456 finalization list when a dynamically allocated object designated
11457 by such a component is deallocated.
11458 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
11459 functions that need it, even when not marked Requires_Overriding.
11460 (Initialize_Tag): Replace call to has_discriminants by call to
11461 Is_Variable_Size_Record in the circuitry that handles the
11462 initialization of secondary tags.
11463 (Is_Variable_Size_Record): New implementation.
11464 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
11465 Suppress_Initialization pragma for a derived type.
11466 (Is_Variable_Size_Record): New subprogram.
11467 (Build_Offset_To_Top_Functions): New implementation that simplifies the
11468 initial version of this routine and also fixes problems causing
11469 incomplete initialization of the table of interfaces.
11470 (Build_Init_Procedure): Improve the generation of code to initialize the
11471 the tag components of secondary dispatch tables.
11472 (Init_Secondary_Tags): New implementation that simplifies the previous
11473 version of this routine.
11474 (Make_DT): Add parameter to indicate when type has been frozen by an
11475 object declaration, for diagnostic purposes.
11476 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
11477 diagnose attemps to freeze a subprogram when some untagged type of its
11478 profile is a private type whose full view has not been analyzed yet.
11479 (Freeze_Array_Type): Generate init proc for packed array if either
11480 Initialize or Normalize_Scalars is set.
11481 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
11482 constructing the new profile, copy the null_exclusion indicator for each
11483 parameter, to ensure full conformance of the new body with the spec.
11485 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
11486 Create wrappers for constructor functions that need it, even when not
11487 marked Requires_Overriding.
11488 (Covers): Handle properly designated types of anonymous access types,
11489 whose non-limited views are themselves incomplete types.
11490 (Add_Entry): Use an entity to store the abstract operation which hides
11492 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
11493 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
11494 initialization aggregate.
11495 (Function_Interp_May_Be_Hidden): Rename to
11496 Function_Interp_Has_Abstract_Op.
11497 (Has_Compatible_Type): Remove machinery that skips interpretations if
11498 they are labeled as potentially hidden by an abstract operator.
11499 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
11500 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
11501 (Write_Overloads): Output the abstract operator if present.
11502 (Add_Entry): Before inserting a new entry into the interpretation table
11503 for a node, determine whether the entry will be disabled by an abstract
11505 (Binary_Op_Interp_May_Be_Hidden): New routine.
11506 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
11508 (Function_Interp_May_Be_Hidden): New routine.
11509 (Has_Compatible_Type): Do not consider interpretations hidden by
11510 abstract operators when trying to determine whether two types are
11512 (Has_Hidden_Interp): New routine.
11513 (Set_May_Be_Hidden_Interp): New routine.
11514 (Write_Overloads): Write the status of flag May_Be_Hidden.
11516 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11517 Javier Miranda <miranda@adacore.com>
11519 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
11520 types declared in the declarative part of a nested package body or in
11521 the proper body of a stub.
11522 (Set_All_DT_Position): Add missing check to avoid wrong assignation
11523 of the same dispatch table slot to renamed primitives.
11524 (Make_Select_Specific_Data_Table): Handle private types.
11525 (Tagged_Kind): Handle private types.
11526 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
11527 output of implicit importation and exportation.
11528 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
11529 first formal of the thunk is always associated with the controlling
11530 type. In addition perform the following code cleanup: remove formal
11531 Thunk_Alias which is no longer required, cleanup evaluation of the
11532 the controlling type, and update the documentation.
11533 Replace occurrence of Default_Prim_Op_Count by
11534 Max_Predef_Prims. Addition of compile-time check to verify
11535 that the value of Max_Predef_Prims is correct.
11536 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
11537 (Make_DT): Add parameter to indicate when type has been frozen by an
11538 object declaration, for diagnostic purposes.
11539 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
11540 construction of statically allocated dispatch tables.
11541 (Make_DT): In case of library-level tagged types export the declaration
11542 of the primary tag. Remove generation of tags (now done by Make_Tags).
11543 Additional modifications to handle non-static generation of dispatch
11544 tables. Take care of building tables for asynchronous interface types
11545 (Make_Tags): New subprogram that generates the entities associated with
11546 the primary and secondary tags of Typ and fills the contents of Access_
11547 Disp_Table. In case of library-level tagged types imports the forward
11548 declaration of the primary tag that will be declared later by Make_DT.
11549 (Expand_Interface_Conversion): In case of access types to interfaces
11550 replace an itype declaration by an explicit type declaration to avoid
11551 problems associated with the scope of such itype in transient blocks.
11553 2007-08-14 Robert Dewar <dewar@adacore.com>
11554 Ed Schonberg <schonberg@adacore.com>
11555 Javier Miranda <miranda@adacore.com>
11557 * exp_util.ads, exp_util.adb:
11558 This patch replaces a number of occurrences of explicit tests for N_Null
11559 with calls to Known_Null. This improves tracking of null values, since
11560 Known_Null also catches null constants, and variables currently known to
11561 be null, so we get better tracking.
11562 (Ensure_Defined): create an itype reference only in the scope of the
11564 (Side_Effect_Free): A selected component of an access type that
11565 denotes a component with a rep clause must be treated as not
11566 side-effect free, because if it is part of a linked structure its
11567 value may be affected by a renaming.
11568 (Expand_Subtype_From_Expr): For limited objects initialized with build
11569 in place function calls, do nothing; otherwise we prematurely introduce
11570 an N_Reference node in the expression initializing the object, which
11571 breaks the circuitry that detects and adds the additional arguments to
11572 the called function. Bug found working in the new patch for statically
11573 allocated dispatch tables.
11574 (Is_Library_Level_Tagged_Type): New subprogram.
11575 (Remove_Side_Effects): If the expression of an elementary type is an
11576 operator treat as a function call.
11577 (Make_Literal_Range): If the index type of the array is not integer, use
11578 attributes properly to compute the constraint on the resulting aggregate
11581 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
11582 class-wide type whose base type is an incomplete private type, leave
11583 class-wide type unfrozen so that freeze nodes can be generated
11584 properly at a later point.
11585 (Freeze_Entity, array case): Handle case of pragma Pack and component
11586 size attributre clause for same array.
11588 2007-08-14 Vincent Celier <celier@adacore.com>
11590 * prj.ads, prj.adb: Update Project Manager to new attribute names for
11592 Allow all valid declarations in configuration project files
11593 (Reset): Initialize all tables and hash tables in the project tree data
11594 Major update of the Project Manager and of the project aware tools,
11595 including gprmake, so that the same sources in the GNAT repository
11596 can be used by gprbuild.
11597 (Slash_Id): Change type to be Path_Name_Type
11598 (Slash): Return a Path_Name_Type instead of a File_Name_Type
11600 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
11602 Update Project Manager to new attribute names for ghprbuild
11603 Allow all valid declarations in configuration project files
11604 Major update of the Project Manager and of the project aware tools,
11605 including gprmake, so that the same sources in the GNAT repository
11606 can be used by gprbuild.
11609 Major update of the Project Manager and of the project aware tools,
11610 including gprmake, so that the same sources in the GNAT repository
11611 can be used by gprbuild.
11613 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11614 insensitive flag for attributes with optional index.
11615 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11616 array attribute, put the index in lower case.
11617 Update Project Manager to new attribute names for ghprbuild
11618 Allow all valid declarations in configuration project files
11619 Major update of the Project Manager and of the project aware tools,
11620 including gprmake, so that the same sources in the GNAT repository
11621 can be used by gprbuild.
11623 * prj-env.ads, prj-env.adb:
11624 Major update of the Project Manager and of the project aware tools,
11625 including gprmake, so that the same sources in the GNAT repository
11626 can be used by gprbuild.
11627 (Get_Reference): Change type of parameter Path to Path_Name_Type
11629 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
11630 removing '-' from the path to start with the first character of the
11632 Major update of the Project Manager and of the project aware tools,
11633 including gprmake, so that the same sources in the GNAT repository
11634 can be used by gprbuild.
11635 Major update of the Project Manager and of the project aware tools,
11636 including gprmake, so that the same sources in the GNAT repository
11637 can be used by gprbuild.
11639 * prj-nmsc.ads, prj-nmsc.adb:
11640 Update Project Manager to new attribute names for ghprbuild
11641 Allow all valid declarations in configuration project files
11642 (Search_Directories): Detect subunits that are specified with an
11643 attribute Body in package Naming. Do not replace a source/unit in the
11644 same project when the order of the source dirs are known. Detect
11645 duplicate sources/units in the same project when the order of the
11646 source dirs are not known.
11647 (Check_Ada_Name): Allow all identifiers that are not reserved words
11649 Major update of the Project Manager and of the project aware tools,
11650 including gprmake, so that the same sources in the GNAT repository
11651 can be used by gprbuild.
11652 (Look_For_Sources): If the list of sources is empty, set the object
11653 directory of non extending project to nil.
11654 Change type of path name variables to be Path_Name_Type
11655 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
11656 otherwise creating missing directories will fail.
11658 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
11659 prj-part.ads, prj-part.adb:
11660 Major update of the Project Manager and of the project aware tools,
11661 including gprmake, so that the same sources in the GNAT repository
11662 can be used by gprbuild.
11664 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11665 insensitive flag for attributes with optional index.
11666 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11667 array attribute, put the index in lower case.
11668 (Parse_Variable_Reference): Allow the current project name to be used in
11669 the prefix of an attribute reference.
11671 * prj-util.ads, prj-util.adb
11672 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
11673 defaulted to False. When True, always check against indexes in lower
11676 * snames.ads, snames.h, snames.adb:
11677 Update Project Manager to new attribute names for gprbuild
11678 Allow all valid declarations in configuration project files
11680 2007-08-14 Robert Dewar <dewar@adacore.com>
11681 Ed Schonberg <schonberg@adacore.com>
11683 * opt.ads: Warning for non-local exception propagation now off by
11685 New switch -gnatI to disable representation clauses
11686 Implement new pragma Implicit_Packing
11689 Warning for non-local exception propagation now off by default
11690 Add warning for unchecked conversion of pointers wi different
11692 New switch -gnatI to disable representation clauses
11694 * usage.adb: new switch -gnatyS
11696 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11697 note that aggregates of anonymous array types are not flagged.
11698 -gnatwc now includes membership tests optimized away
11699 -gnatw.x warnings are now off by default
11700 Added conditional compilation Appendix
11701 Add documentation of -gnatI
11702 Add documentation for new -gnatyS style check
11703 Update documentation about SAL and auto-init on Windows.
11706 Add documentation for pragma Check_Name and 'Enabled attribute
11707 Document that Eliminate on dispatching operation is ignored
11708 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11709 Document pragma Main
11710 Document pragma Implicit_Packing
11712 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11713 different conventions
11714 New switch -gnatI to disable representation clauses
11716 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11717 recognized, report the invalid characters including "-gnat" instead of
11718 just the first character in the switch.
11719 New switch -gnatI to disable representation clauses
11720 Set Warn_On_Object_Renames_Function true for -gnatg
11722 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11723 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11724 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11725 to switch -aP (add directory to project search dir).
11727 * par-prag.adb: Implement new pragma Implicit_Packing
11729 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11730 type as having a non-standard representation, to force expansion on
11731 conversion to related types.
11732 (Analyze_Pragma): Warn on misspelled pragma
11733 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11734 Ensure consistent use of # in error messages
11735 Implement pragma Implicit_Packing
11737 2007-08-14 Olivier Hainque <hainque@adacore.com>
11738 Eric Botcazou <ebotcazou@adacore.com>
11740 * targtyps.c (get_target_maximum_default_alignment): New function.
11742 that the compiler might choose by default for a type or object.
11743 (get_target_default_allocator_alignment): New function. Alignment known
11744 to be honored by the target default allocator.
11745 (get_target_maximum_allowed_alignment): New function. Maximum alignment
11746 we might accept for any type or object on the target.
11747 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11749 * gigi.h (get_target_maximum_default_alignment): Declare new function.
11750 (get_target_default_allocator_alignment): Likewise.
11751 (get_target_maximum_allowed_alignment): Likewise.
11754 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11755 result of a function call, first try to use a stabilized reference for
11756 a constant renaming too.
11757 (validate_alignment): Use target_maximum_allowed_alignment instead of
11758 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11759 (gnat_to_gnu_entity): Use common nodes directly.
11760 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11761 alignment and size for the object.
11762 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11763 and N_Procedure_Call_Statement.
11764 (takes_address): Rename to lvalue_required_p, add third parameter
11765 'aliased' and adjust recursive calls.
11766 <N_Indexed_Component>: Update 'aliased' from the array type.
11767 <N_Selected_Component>: New case.
11768 <N_Object_Renaming_Declaration>: New Likewise.
11769 (Identifier_to_gnu): Adjust for above changes.
11770 (maybe_stabilize_reference) <CONST_DECL>: New case.
11772 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11773 between type variants.
11774 (build_simple_component_ref): Likewise.
11775 (build_call_alloc_dealloc): Use target_default_allocator_alignment
11776 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11777 aligning type circuitry for allocations from the default storage pool.
11778 (build_allocator): Likewise.
11779 (build_simple_component_ref): Manually fold the reference for a
11780 constructor if the record type contains a template.
11782 * utils.c (value_zerop): Delete.
11783 (gnat_init_decl_processing): Emit debug info for common types.
11784 (rest_of_record_type_compilation): If a union contains a field
11785 with a non-constant qualifier, treat it as variable-sized.
11786 (finish_record_type): Give the stub TYPE_DECL a name.
11787 (rest_of_record_type_compilation): Likewise.
11788 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
11789 types are equivalent array types.
11790 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11791 even if the type is not passed by reference.
11792 (static_ctors, static_dtors): Delete.
11793 (end_subprog_body): Do not record constructors and destructors.
11794 (build_global_cdtor): Delete.
11795 (gnat_write_global_declarations): Do not call build_global_cdtor.
11797 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11798 -fRTS=rtp is specified.
11799 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11802 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11803 of the personality function with SJLJ exceptions.
11805 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11806 the name of the personality function with SJLJ exceptions.
11808 2007-08-14 Robert Dewar <dewar@adacore.com>
11809 Ed Schonberg <schonberg@adacore.com>
11811 * par.ads, par.adb: Improve handling of extra right parens.
11812 (Par): Remove flag From_Limited_With_Clause.
11814 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11815 Improve handling of extra right parens.
11817 2007-08-14 Robert Dewar <dewar@adacore.com>
11819 * par-tchk.adb (TF_Semicolon): Improve error recovery
11821 2007-08-14 Robert Dewar <dewar@adacore.com>
11822 Ed Schonberg <schonberg@adacore.com>
11824 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11825 enumeration type, mark all literals as referenced.
11826 (Eval_Attribute, case 'Image): If the argument is an enumeration
11827 literal and names are available, constant-fold but mark nevertheless as
11829 Clean up function names.
11830 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11832 (Requires_Simple_Name_Prefix): Removed.
11834 2007-08-14 Robert Dewar <dewar@adacore.com>
11835 Ed Schonberg <schonberg@adacore.com>
11837 * sem_ch11.adb: Improved warnings for unused variables
11839 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11840 is a synchronized interface, the derived type is limited.
11841 (Analyze_Object_Declaration): Mark the potential coextensions in the
11842 definition and expression of an object declaration node.
11843 (Build_Derived_Type): For the completion of a private type declaration
11844 with a derived type declaration, chain the parent type's representation
11845 items to the last representation item of the derived type (not the
11846 first one) if they are not present already.
11847 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11848 object declaration of forward references to tags.
11849 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11850 subprogram types can appear as access discriminants of synchronized
11852 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11853 given in prefixed form as a selected component.
11854 (Process_Discriminants): If not all discriminants have defaults, place
11855 error message on a default that is present.
11856 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11857 extend a synchronized tagged type.
11858 Improved warnings for unused variables
11859 (Is_Visible_Component): Fix a visibility hole on a component inherited
11860 by a private extension when parent is itself declared as a private
11861 extension, and the derivation is in a child unit.
11862 (Find_Hidden_Interface): Move spec from the package body.
11864 2007-08-14 Robert Dewar <dewar@adacore.com>
11865 Ed Schonberg <schonberg@adacore.com>
11867 * sem_ch5.adb: Improve warnings on redundant assignments
11869 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11871 (Is_Synchronized_Tagged_Type): New subprogram that returns true
11872 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11873 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11874 is set to False. Improves handling of Known_[Not_]Null.
11875 (Wrong_Type): Special case address arithmetic attempt
11876 (Collect_Abstract_Interfaces): Add new formal to allow collecting
11877 abstract interfaces just using the partial view of private types.
11878 (Has_Abstract_Interfaces): Add new formal to allow checking types
11879 covering interfaces using the partial view of private types.
11880 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11881 component still needs to be defined in this case, but is never
11882 initialized as VMs are using other dispatching mechanisms.
11883 (Abstract_Interface_List): For a protected type, use base type to get
11884 proper declaration.
11885 Improve warnings on redundant assignments
11886 (Is_Variable): Handle properly an implicit dereference of a prefixed
11888 (Build_Actual_Subtype): If this is an actual subtype for an
11889 unconstrained formal parameter, use the sloc of the body for the new
11890 declaration, to prevent anomalises in the debugger.
11892 2007-08-14 Robert Dewar <dewar@adacore.com>
11894 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11895 dispatching operation
11897 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11898 Gary Dismukes <dismukes@adacore.com>
11901 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11902 expanded aggregate code before allocator, and ahead of declaration for
11903 temporary, to prevent access before elaboration when the allocator is
11904 an actual for an access parameter.
11905 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11906 the TSD and the table of interfaces.
11907 (Convert_To_Assignments): Augment the test for delaying aggregate
11908 expansion for limited return statements to include the case of extended
11909 returns, to prevent creation of an unwanted transient scope.
11910 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11911 (Expand_Array_Aggregate): Handle aggregates associated with
11912 statically allocated dispatch tables.
11913 (Expand_Record_Aggregate): Handle aggregates associated with
11914 statically allocated dispatch tables.
11915 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11916 of anonymous access type.
11918 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11920 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11921 is a variable that renames a slice, use the variable itself in the
11922 expannsion when the renamed expression itself may be modified between
11923 the declaration of the renaming and the array assignment.
11925 2007-08-14 Jerome Guitton <guitton@adacore.com>
11927 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11928 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11929 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11930 New functions; dummy implementations.
11932 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11933 functions, used to implement the multi-tasks mode routines on VxWorks.
11935 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11936 New functions, thin
11937 binding to the VxWorks routines which have changed between VxWorks 5
11939 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11940 which are not callable from a RTP.
11942 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11943 implemented for the multi-tasks mode on VxWorks 5 and 6.
11945 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11947 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11950 2007-08-14 Vincent Celier <celier@adacore.com>
11952 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11953 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11954 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11955 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11956 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11957 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11958 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11960 (Major_Id_Name): New function.
11961 mlib-tgt.ads/mlib.tgt.adb:
11962 (Library_Major_Minor_Id_Supported): New function, default returns True
11963 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11964 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11965 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11966 Implementation of Library_Major_Minor_Id_Supported returns False
11968 (Clean_Library_Directory): If major/minor ids are supported, clean all
11970 Major update of the Project Manager and of the project aware tools,
11971 including gprmake, so that the same sources in the GNAT repository
11972 can be used by gprbuild.
11974 2007-08-14 Olivier Hainque <hainque@adacore.com>
11976 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11977 (GCC_ZCX_Support): Switch to True.
11979 * s-intman-solaris.adb (Notify_Exception): Call
11980 Adjust_Context_For_Raise before raising, as expected for signal
11981 handlers in general.
11983 * s-intman-posix.adb (Notify_Exception): Remove declaration of
11984 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11985 to other implementation bodies.
11987 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11988 be visible by multiple implementation bodies.
11990 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11991 only for conditions coming from hardware.
11992 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11993 adjustments to signal context prior to exception raise from signal
11995 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11997 Solaris section: (__gnat_adjust_context_for_raise): New function.
11998 Implementation of the machine context adjustments to perform prior to
11999 raise from a signal handler. Version for both sparc and x86.
12000 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
12001 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
12002 prior to raising as expected for any handler, before possible nested
12003 faults to make sure all the contexts in a chain have been adjusted by
12004 the time we propagate.
12006 2007-08-14 Pascal Obry <obry@adacore.com>
12008 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
12009 (SYSTEM_INFO): New record.
12010 (SetThreadIdealProcessor): New imported routine needed for supporting
12011 task_info pragma on Windows.
12013 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
12014 info can be applied to the current host.
12015 (Create_Task): Set the ideal processor if information is present.
12017 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
12018 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
12020 2007-08-14 Olivier Hainque <hainque@adacore.com>
12022 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
12023 stack size and initial stack pointer value for a given task.
12024 (Enter_Task): Get the stack attributes of the task we are entering and
12025 let the stack checking engine know about them.
12027 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
12028 Let the stack-checking engine know about the initial sp value and stack
12029 size associated with the current task.
12030 (Set_Stack_Info): If a stack base has been notified for the current
12031 task, honor it. Fallback to the previous less accurate method otherwise.
12033 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
12035 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12037 * sem_ch10.adb: Create a limited view of an incomplete type, to make
12038 treatment of limited views uniform for all visible declarations in a
12039 limited_withed package.
12040 Set flag indicating that a subprogram body for a child unit has a
12042 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
12043 separate declaration, remove the unit name from visibility after
12044 compilation, so that environment is clean for subsequent compilations.
12045 (Install_Limited_Context_Clauses): Do not install a
12046 limited_private_with_clause unless the current unit is a body or a
12047 private child unit.
12048 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
12049 in the same fashion.
12050 (Install_Limited_Withed_Unit): Do not install a limited with clause if
12051 it applies to the declaration of the current package body.
12052 (Remove_Private_With_Clauses): If there is a regular with_clause for
12053 the unit, delete Private_With_Clause from context, to prevent improper
12054 hiding when processing subsequent nested packages and instantiations.
12056 2007-08-14 Jose Ruiz <ruiz@adacore.com>
12058 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
12059 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
12060 representing absolute path names.
12061 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
12063 * cstreams.c (__gnat_full_name for VxWorks): Use
12064 __gnat_is_absolute_path to detect whether we need to add the current
12065 directory to normalize the path.
12067 2007-08-14 Javier Miranda <miranda@adacore.com>
12070 a-tags.adb (Displace): Associate a message with the raised CE
12072 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
12073 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
12074 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
12076 (Default_Prim_Op_Count): Removed.
12077 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
12078 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
12079 Remove pragma Inline_Always.
12081 * rtsfind.ads (Default_Prim_Op_Count): Removed
12082 (Max_Predef_Prims): New entity
12083 (RE_Expanded_Name): Removed
12084 (RE_HT_Link): Removed
12085 (RE_Iface_Tag): Remmoved
12086 (RE_Ifaces_Table): Removed
12087 (RE_Interfaces_Array): Removed
12088 (RE_Interface_Data_Element): Removed
12089 (RE_Nb_Ifaces): Removed
12090 (RE_RC_Offset): Removed
12091 (RE_Static_Offset_To_Top): Removed
12093 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
12095 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
12096 Prim_Op_Count by Max_Predef_Prims.
12098 2007-08-14 Thomas Quinot <quinot@adacore.com>
12099 Vincent Celier <celier@adacore.com>
12101 * binde.adb (Elab_All_Links): Remove unnecessary call to
12102 Generic_Separately_Compiled (if a unit satisfies this predicate, there
12103 won't be an associated Afile).
12104 (Elab_All_Links): Fail if a referenced unit cannot be found
12107 Fix comments in bindgen regarding consistency checks done in Bcheck:
12108 the checks are made across units within a partition, not across several
12110 Fix generation of C binder file for VxWorks.
12112 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
12113 Generic_May_Lack_ALI, more descriptive of the current use of the
12114 predicate, and update documentation.
12116 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
12117 reorganization and documentation update for the case of predefined
12118 library generics (for which we do not reference an Afile).
12120 2007-08-14 Robert Dewar <dewar@adacore.com>
12122 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
12123 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
12124 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
12125 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
12126 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
12127 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
12128 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
12129 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
12130 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
12131 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
12132 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
12133 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
12134 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
12135 g-altcon.adb: Minor reformatting
12137 ada-tree.h: Delete empty line.
12139 ali.ads: Minor reformatting
12140 Clarification of comments.
12141 Minor spelling correction
12143 * exp_dbug.adb: Add Warnings Off to suppress new warning
12145 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
12148 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
12151 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
12153 * a-textio.ads: Reorder the standard input/output/error declarations
12156 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
12158 * par-ch2.adb: Recognize RM specially in errout
12159 Change 'R'M to RM in all error messages
12161 * scng.adb: Recognize RM specially in errout
12163 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
12164 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
12166 * s-direio.adb: Add missing routine header box.
12168 * sem_attr.ads: Add ??? comments
12170 * sem_eval.adb: Recognize RM specially in errout
12171 Change 'R'M to RM in all error messages
12173 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
12175 * s-tasinf.ads: Fix minor comment typo.
12177 * a-cihama.adb: Minor comment addition
12179 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
12182 * s-tasinf-tru64.ads: Fix minor comment typo.
12184 * itypes.ads: Comment update.
12186 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
12189 * argv.c: Added protection against null gnat_argv and gnat_envp.
12191 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
12192 warning message when Tolerate_Consistency_Errors is True.
12194 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
12195 Any_Id, as this subprogram is only applicable to *type* entities (it
12196 sets RM_Size). Instead initialize just Esize and Alignment.
12198 2007-08-14 Bob Duff <duff@adacore.com>
12200 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
12201 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12202 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
12203 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
12204 a-coorse.ads (Next): Applied pragma Inline.
12205 Make all Containers packages Remote_Types (unless they are already
12207 (Previous): applied pragma Inline
12208 (Elements_Type): is now a record instead of an array
12210 2007-08-14 Thomas Quinot <quinot@adacore.com>
12212 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
12214 (Set_Item): When the new item is an element of the currently allocated
12215 table passed by reference, save a copy on the stack if we're going
12216 to reallocate. Also, in Table.Set_Item, make sure we test the proper
12217 variable to determine whether to call Set_Last.
12219 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
12220 symbols-vms.adb, symbols-processing-vms-alpha.adb,
12221 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
12222 some occurrences of the pattern
12224 T.Table (T.Last) := Value;
12225 with a cleaner call to
12228 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12229 Gary Dismukes <dismukes@adacore.com>
12230 Thomas Quinot <quinot@adacore.com>
12232 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
12233 derived type with interface progenitors use the analyzed formal as the
12234 parent of the actual, to create renamings for all the inherited
12235 operations in Derive_Subprograms.
12236 (Collect_Previous_Instances): new procedure within of
12237 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
12238 unit being loaded, to ensure that the generation of global symbols is
12239 consistent in different compilation modes.
12240 (Is_Tagged_Ancestor): New function testing the ancestor relation that
12241 takes progenitor types into account.
12242 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
12243 traversing over the primitives of the formal and actual types to locate
12244 any abstract subprograms of the actual type that correspond to a
12245 nonabstract subprogram of the formal type's ancestor type(s), and issue
12246 an error if such is found.
12247 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
12248 Instantiate_Package_Body, Instantiate_Subprogram_Body):
12249 Remove bogus guard around calls to Inherit_Context.
12250 (Reset_Entity): If the entity is the selector of a selected component
12251 that denotes a named number, propagate constant-folding to the generic
12252 template only if the named number is global to the generic unit.
12253 (Set_Instance_Env): Only reset the compilation switches when compiling
12254 a predefined or internal unit.
12256 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12258 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
12259 parameter to determine whether operation applies to the prefix.
12260 (Complete_Object_Operation): If actual has an access type and
12261 controlling formal is not an in_parameter, reject the actual if it is
12262 an access_to_constant type.
12263 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
12264 type, the candidate operations are found in the scope of declaration of
12265 the type, because the type has no primitive subprograms.
12266 (Analyze_Selected_Component): If prefix is class-wide, and root type is
12267 a private extension, only examine visible components before trying to
12268 analyze as a prefixed call.
12269 Change Entity_List to Type_To_Use, for better readability.
12270 (Has_Fixed_Op): Use base type when checking whether the type of an
12271 operator has a user-defined multiplication/division
12272 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
12273 user-defined operators are available for fixed-point types.
12275 2007-08-14 Thomas Quinot <quinot@adacore.com>
12276 Ed Schonberg <schonberg@adacore.com>
12278 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
12279 formal At_Any_Place indicating, when True, that we want to test for
12280 availability of the stream attribute at any place (as opposed to the
12281 current visibility context only).
12282 (Missing_Read_Write_Attributes): A stream attribute is missing for the
12283 purpose of enforcing E.2.2(8) only if it is not available at any place.
12284 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
12285 when checking the legality of an extension aggregate in a preelaborable
12286 package. Treat the literal null as a valid default expression in a
12287 component declaration for a type with preelaborable initialization.
12288 A limited interface is a legal progenitor for the designated type of a
12289 remote access to class-wide type.
12291 2007-08-14 Thomas Quinot <quinot@adacore.com>
12292 Ed Schonberg <schonberg@adacore.com>
12294 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
12295 reference): Use correct entity as denoted entity for the selector of
12296 the rewritten node.
12297 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
12298 setting the Referenced_As_LHS flag for entities that are implicitly
12300 (Find_Type): If the type is an internally generated incomplete type,
12301 mark the full view as referenced, to prevent spurious warnings.
12302 (Find_Selected_Component, Has_Components): Handle properly non-limited
12303 views that are themselves incomplete types.
12304 Handle interfaces visible through limited-with clauses.
12305 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
12306 subprogram generic actual for which we have generated a renaming.
12307 Warn when the renaming introduces a homonym of
12308 the renamed entity, and the renamed entity is directly visible.
12310 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12311 Hristian Kirtchev <kirtchev@adacore.com>
12313 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
12314 appear in the subtree to the current allocator if it is not a static
12316 (Resolve_Allocator): Perform cleanup if resolution has determined that
12317 the allocator is not a coextension.
12318 (Resolve): Skip an interpretation hidden by an abstract operator only
12319 when the type of the interpretation matches that of the context.
12320 (Resolve): When looping through all possible interpretations of a node,
12321 do not consider those that are hidden by abstract operators.
12322 (Resolve_Actuals): When verifying that an access to class-wide object
12323 is an actual for a controlling formal, ignore anonymous access to
12324 subprograms whose return type is an access to class_wide type.
12325 (Resolve_Slice): If the prefix of the slice is a selected component
12326 whose type depends on discriminants, build its actual subtype before
12327 applying range checks on the bounds of the slice.
12328 (Valid_Conversion): In an instance or inlined body, compare root types,
12329 to prevent anomalies between private and public views.
12330 (Resolve): Improve error message for ambiguous fixed multiplication
12331 expressions that involve universal_fixed multiplying operations.
12333 2007-08-14 Javier Miranda <miranda@adacore.com>
12334 Hristian Kirtchev <kirtchev@adacore.com>
12336 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
12337 location to allow the correct generation of errors in case of
12338 restrictions applied to the expanded code.
12339 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
12340 function if the condition does not reference them.
12341 (Expand_Entry_Body_Declarations): Mark the index constant as having a
12344 2007-08-14 Thomas Quinot <quinot@adacore.com>
12345 Pablo Oliveira <oliveira@adacore.com>
12347 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
12348 typecode parameters for a union (in a variant record), remove
12349 extraneous layer of Any wrapping for member label.
12350 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
12351 elabration statements, register the package with the name server
12352 at the beginning, not at the end, of the elaboration statements so
12353 that they can create remote access to subprogram values that designate
12354 remote subprograms from the package.
12356 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12358 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
12359 values to compute the number of seconds since the Unix Epoc in order to
12360 account for Daylight Savings Time. Perform special processing for dates
12361 that are earlier than the Unix Epoc to obtain a negative number.
12363 2007-08-14 Emmanuel Briot <briot@adacore.com>
12365 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
12368 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
12370 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
12371 binder-generated file is not in Ada.
12372 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
12373 recorded in the ALI file.
12374 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
12376 2007-08-14 Vincent Celier <celier@adacore.com>
12378 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
12379 (Output_Source): Do nothing if parameter is No_Sdep_Id
12381 * make.adb (Gnatmake): Do not rebuild an archive simply because a
12382 shared library it imports has a later time stamp.
12383 (Check): Resolve the symbolic links in the path name of the object
12385 Check that the ALI file is in the correct object directory
12386 Check if a file name does not correspond to the mapping of units
12388 (Display_Version): New procedure
12389 (Initialize): Process switches --version and --help
12390 Use type Path_Name_Type for path name
12392 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
12394 * impunit.adb: Re-organize System.Random_Numbers and
12395 GNAT.Random_Numbers and add to builds.
12397 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
12399 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
12401 * a-assert.ads, a-assert.adb: New files.
12403 2007-08-14 Gary Dismukes <dismukes@adacore.com>
12405 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
12406 if AAMP_On_Target is True, then the size of the type encompasses two
12407 addresses (a static link and a subprogram address), except in the case
12408 of library-level access types.
12410 2007-08-14 Vincent Celier <celier@adacore.com>
12412 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
12414 (Write_Eol_Keep_Blanks): New procedure to write a line, including
12415 possible trailing spaces.
12416 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
12418 2007-08-14 Javier Miranda <miranda@adacore.com>
12420 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
12421 null-excluding access types.
12423 2007-08-14 Javier Miranda <miranda@adacore.com>
12425 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
12426 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
12427 of private types add missing check on matching interfaces in the
12428 partial and full declarations.
12429 (Analyze_Protected_Type): Code cleanup.
12430 (Analyze_Task_Type): Code cleanup.
12432 2007-08-14 Javier Miranda <miranda@adacore.com>
12434 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
12435 generated interface thunk.
12437 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12439 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
12440 obsolescent warning on application of 'Class to an incomplete type.
12442 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
12443 prevent obsolescent warning on application of 'Class to an incomplete
12446 2007-08-14 Pascal Obry <obry@adacore.com>
12448 * s-fileio.adb (Is_Open): Add check for usability of the underlying
12451 2007-08-14 Cyrille Comar <comar@adacore.com>
12453 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
12454 since it is potentially used in cases implying double finalization of
12457 2007-08-14 Jose Ruiz <ruiz@adacore.com>
12459 * s-tasini.adb (Get_Stack_Info): Move this function to
12460 System.Soft_Links.Tasking because it is common to the full and the
12461 restricted run times.
12462 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
12463 in SSL.Tasking.Init_Tasking_Soft_Links.
12465 * s-solita.adb (Get_Stack_Info): Function moved from
12466 System.Tasking.Initialization because it is common to the full and the
12467 restricted run times.
12468 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
12470 2007-08-14 Arnaud Charlet <charlet@adacore.com>
12472 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
12473 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
12474 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
12477 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
12480 2007-08-14 Gary Dismukes <dismukes@adacore.com>
12482 * s-veboop.adb (SU): New named number initialized to
12483 System.Storage_Unit.
12484 (True_Val): The initialization expression is revised to use SU (=
12485 Storage_Unit) rather than assuming 8 for the component size of an
12486 unpacked Boolean array.
12488 2007-08-14 Tristan Gingold <gingold@adacore.com>
12490 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
12492 * tb-ivms.c: New file.
12494 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
12496 2007-08-14 Geert Bosch <bosch@adacore.com>
12498 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
12499 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
12500 Add required linker pragmas for automatically linking with the gnalasup
12501 linear algebra support library, and the systems math library.
12502 Rename cdot to cdotu and zdot to zdotu.
12503 Update header comment to describe purpose of package.
12505 2007-08-14 Thomas Quinot <quinot@adacore.com>
12507 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
12508 an explicitly specified Associated_Final_Chain, use that list.
12509 (Expand_N_Package_Body): Build dispatch tables of library level tagged
12511 (Expand_N_Package_Declaration): Build dispatch tables of library level
12512 tagged types. Minor code cleanup.
12514 2007-08-14 Vincent Celier <celier@adacore.com>
12516 * gnatchop.adb (Terminate_Program): Remove exception and use
12517 Types.Terminate_Program instead.
12519 * osint.ads, osint.adb (Current_Exit_Status): New global variable
12520 (Find_Program_Name): Added protection against empty name.
12521 (OS_Exit_Through_Exception): New procedure
12523 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
12524 (OS_Exit_Default): New procedure that contains the previous
12525 implementation of procedure OS_Exit.
12526 (Final_Value): Remove obsolete Interix stuff.
12528 2007-08-14 Thomas Quinot <quinot@adacore.com>
12530 * g-socket.ads: Reorganize example code so that it also works on
12533 2007-08-14 Tristan Gingold <gingold@adacore.com>
12535 * g-trasym.ads: AIX now supports symbolic backtraces.
12537 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12539 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
12540 units being loaded to detect circularities. A circularity may be
12541 present even if the current chain of pending units to load starts from
12542 a limited_with_clause.
12544 * lib-load.ads: Change profile of Load_Unit to use a with_clause
12545 rather than a boolean flag, in order to detect circularities in
12548 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
12549 than propagating the From_Limited_With flag, in order to handle
12550 properly circularities involving with_clauses.
12552 2007-08-14 Nicolas Setton <setton@adacore.com>
12554 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
12557 2007-08-14 Arnaud Charlet <charlet@adacore.com>
12559 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
12560 to build for libgnala.
12561 libgnat: Add rules to build libgnala.a
12562 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
12563 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
12564 Add s-osinte-vxworks-kernel.adb to the target pairs of the
12565 kernel run-time lib for VxWorks 6, which would provide a different
12566 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
12567 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
12568 running ZCX by default.
12569 Add g-sttsne-locking to LynxOS version.
12570 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
12571 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
12573 * system-darwin-x86.ads: New file.
12575 * Make-lang.in: Delete files before copying onto them, so if they are
12576 read-only, the copy won't fail.
12577 Update dependencies
12579 2007-08-14 Pascal Obry <obry@adacore.com>
12581 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
12584 2007-08-14 Vincent Celier <celier@adacore.com>
12586 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
12587 (Gcc): Initialize Gcc_Name at the first call
12589 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12591 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
12592 with_clauses of the enclosing unit when analyzing the package
12593 specification of a nested instance.
12595 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12597 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
12598 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
12599 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
12600 layout of N_Allocator.
12602 2007-08-14 Thomas Quinot <quinot@adacore.com>
12604 * rtsfind.adb (Check_RPC): Add PCS version check.
12606 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
12607 (Gnat_Free_Software): New function.
12609 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
12610 the PCS_Version value from s-parint, used to check that it is consistent
12611 with what exp_dist expects.
12613 * s-parint.ads (PCS_Version): New entity for checking consistency
12614 between exp_dist and PCS.
12616 * gen-soccon.c: (SO_REUSEPORT): New constant.
12618 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12620 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
12621 variable Sub_Second to Duration in order to accomodate a larger range
12622 of arithmetic operations.
12624 2007-08-14 Bob Duff <duff@adacore.com>
12626 * g-sttsne-locking.ads: Move comments from spec to body.
12627 * g-sttsne-locking.adb: Move comments from spec to body.
12628 * g-sttsne-vxworks.ads: Removed.
12629 * g-sttsne-vxworks.adb: Removed.
12631 2007-08-11 Ian Lance Taylor <iant@google.com>
12633 * misc.c (gnat_get_alias_set): Change return type to
12636 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12638 * decl.c, utils2.c: Fix whitespace in last change.
12640 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12642 * decl.c (compare_field_bitpos): Constify.
12643 * utils2.c (compare_elmt_bitpos): Likewise.
12645 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
12647 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
12648 anonymous access type.
12649 (pthread_sigmask): Now take an access sigset_t.
12651 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12653 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
12655 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
12657 PR tree-optimization/25737
12658 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
12660 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
12662 * trans.c (Attribute_to_gnu): When subtracting an
12663 offset from a pointer, use POINTER_PLUS_EXPR with
12664 NEGATE_EXPR instead of MINUS_EXPR.
12665 (gnat_to_gnu): Likewise.
12666 * utils.c (convert): When converting between
12667 thin pointers, use POINTER_PLUS_EXPR and sizetype
12669 * utils2.c (known_alignment): POINTER_PLUS_EXPR
12670 have the same semantics as PLUS_EXPR for alignment.
12671 (build_binary_op): Add support for the semantics of
12672 POINTER_PLUS_EXPR's operands.
12673 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12675 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
12677 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
12678 of get_signed_or_unsigned_type.
12679 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
12681 2007-06-11 Bob Duff <duff@adacore.com>
12682 Thomas Quinot <quinot@adacore.com>
12684 * g-stsifd-sockets.adb (Create): Work around strange behavior of
12685 'bind' on windows that causes 'connect' to fail intermittently, by
12686 retrying the 'bind'.
12687 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12689 2007-06-10 Duncan Sands <baldrick@free.fr>
12691 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12692 than to void, for the fields when making a new fat pointer type.
12693 (gnat_substitute_in_type): Now substitute_in_type.
12694 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
12695 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12696 * utils.c (update_pointer_to): Update fat pointers by updating the
12697 dummy node pointers used for the fields.
12699 2007-06-06 Thomas Quinot <quinot@adacore.com>
12700 Bob Duff <duff@adacore.com>
12702 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12703 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12704 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
12705 constant Thread_Blocking_IO, always True by default, set False
12706 on a per-runtime basis.
12707 (Need_Netdb_Buffer): New constant.
12709 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12710 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12713 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12714 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12715 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12716 child package Task_Safe_NetDB
12717 (Host_Error_Messages): Add stub body.
12718 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12720 * g-soccon-mingw.ads: Add Windows-specific constants.
12721 (Need_Netdb_Buffer): New constant.
12722 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12723 wrapper and import inet_addr(3) from the standard sockets library
12725 (In_Addr): Add alignment clause.
12726 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12728 2007-06-06 Robert Dewar <dewar@adacore.com>
12730 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12731 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12732 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12733 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12734 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12735 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12736 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12737 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12738 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12739 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12740 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12741 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12742 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12743 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12744 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12745 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12746 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12747 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12748 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12749 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12750 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12751 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12752 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12753 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12754 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12755 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12756 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12757 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12758 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12759 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12760 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12761 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12762 Unchecked_* by Ada.Unchecked_*
12764 2007-06-06 Robert Dewar <dewar@adacore.com>
12766 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12767 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12768 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12769 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12770 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12771 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12773 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12774 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12775 s-tasloc.adb, s-tasloc.ads: New files.
12777 2007-06-06 Bob Duff <duff@adacore.com>
12779 * g-expect-vms.adb:
12780 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12781 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12782 (Send_Signal, Close): Raise Invalid_Process if the process id is
12784 (Pattern_Matcher_Access): Is now a general access type to be able to
12785 use aliased string.
12787 2007-06-06 Thomas Quinot <quinot@adacore.com>
12788 Arnaud Charlet <charlet@adacore.com>
12790 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12791 (SIGEMT is now used instead of SIGTERM on AIX).
12793 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12794 (Time_Slice_Supported): Set to True.
12795 Use SIGEMT instead of SIGTERM as SIGADAABORT.
12797 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12799 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12800 (Time, Time)): Use To_Relative_Time rather than manual calculation to
12801 express the bounds of Duration as Time. Raise Time_Error when the
12802 result is greater or equal to the higher bound of Duration (on the
12804 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12805 Ada_High_And_Leaps.
12806 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12807 Ada_High_And_Leaps.
12808 ("-" (Time, Time)): Reorder code.
12809 (All_Leap_Seconds): Removed.
12810 (Arithmetic_Operations.Add): Remove sign related kludge.
12811 (Arithmetic_Operations.Difference): Control the leaps seconds processing
12812 with flag Leap_Support.
12813 (Arithmetic_Operations.Subtract): Remove sign related kludge.
12814 (Check_Within_Time_Bounds): New procedure.
12815 (Clock): Control the leap seconds processing with flag Leap_Support.
12816 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12817 (Formatting_Operations.Split): Control the leap seconds processing with
12819 (Formatting_Operations.Time_Of): Control the leaps seconds processing
12820 with flag Leap_Support. Adjust the year, month and day (if applicable)
12821 when the value of day seconds designates a new day.
12822 (Split): Use parameter associations for better readability. Integrate
12824 (Time_Of): Use parameter associations for better readability. Integrate
12827 * a-calfor.adb (Split): Use parameter associations for better
12828 readability. Integrate flag Is_Ada_05.
12829 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12830 better readability. Integrate flag Is_Ada_05.
12832 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12834 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12835 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12836 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12837 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12838 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12839 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12840 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12841 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12842 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12843 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12844 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12845 time when entering this routine to detect a backward clock setting
12846 (manual setting or DST adjustment), to avoid waiting for a longer delay
12848 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12849 Remove handling of deferred priority change, and replace by setting the
12850 task priority directly, as required by AI-188.
12852 (Max_Task_Image_Length): New constant.
12853 Replace Warnings (Off) by Unreferenced pragma, cleaner.
12854 (Dynamic_Priority_Support): Removed, no longer needed.
12855 (Poll_Base_Priority_Change): Ditto.
12856 (Set_Ceiling): Add this procedure to change the ceiling priority
12857 associated to a lock. This is a dummy implementation because dynamic
12858 priority ceilings are not supported by the underlying system.
12860 * a-dynpri.adb (Set_Priority): Take into account case where Target is
12861 accepting a RV with its priority boosted.
12862 Remove handling of deferred priority change, and replace by setting the
12863 task priority directly, as required by AI-188.
12865 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12867 Remove handling of deferred priority change, and replace by setting the
12868 task priority directly, as required by AI-188.
12869 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12870 of Self_Id earlier.
12872 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12873 (Poll_Base_Priority_Change): Removed.
12874 Code clean up: use SSL.Current_Target_Exception.
12876 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12877 to run as this is a potentially dispatching point.
12878 (Call_Synchronous): Use Local_Defer_Abort.
12879 (Callable): Relax assertion.
12880 (Selective_Wait): Relax assertion in case abort is not allowed.
12881 Remove handling of deferred priority change, and replace by setting the
12882 task priority directly, as required by AI-188.
12884 * s-tasuti.adb (Make_Passive): Adjust assertions.
12885 Remove handling of deferred priority change, and replace by setting the
12886 task priority directly, as required by AI-188.
12888 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12890 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12891 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12892 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12893 system-vxworks-mips.ads, system-vxworks-alpha.ads,
12894 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12895 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12896 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12897 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12898 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12899 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12900 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12901 This patch changes the largest non-binary modulus from 2**31-1 to
12903 (Compiler_System_Version): Removed, no longer used.
12904 Clean up system files by removing flags only used on a single target.
12905 Also remove obsolete flags, only used during bootstrap from system.ads
12906 (Address): Add a pragma Preelaborable_Initialization.
12908 * system-aix.ads: Ditto.
12909 (GCC_ZCX_Support): Set to true.
12910 Update priority range on AIX and map Ada priorities to target
12911 priorities appropriately for different scheduling policies.
12913 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12915 2007-06-06 Vincent Celier <celier@adacore.com>
12917 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12918 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12920 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12921 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12922 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12923 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12924 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12925 MLib.Tgt, containing the default versions of the exported subprograms.
12926 For each platform, create a specific version of the body of new child
12927 package MLib.Tgt.Specific that contains only the body of subprograms
12928 that are different from the default.
12929 (Archive_Builder_Append_Options): New function.
12931 2007-06-06 Matthew Gingell <gingell@adacore.com>
12933 * s-osinte-aix.adb: Map Ada priorities to target priorities
12934 appropriately for different scheduling policies.
12936 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12938 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12940 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12941 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12943 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12945 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12946 Noop on VMS, added for interface commonality.
12948 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12949 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12950 Olivier Hainque <hainque@adacore.com>
12952 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12953 renamed expression of a full renaming at toplevel.
12954 (gnat_to_gnu_entity, case object): If not defining, do not look inside
12955 the values the constant is initialized to if it is an N_Allocator.
12956 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12957 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12958 (make_aligning_type): Accept an extra ROOM argument for storage to be
12959 made available before the aligned field, and an extra BASE_ALIGN
12960 argument for callers to pass the alignment guaranteed to be honored for
12961 the whole aligning object. Avoid call to finish_record_type, which only
12962 interferes with the sizes we want to set.
12963 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12964 make_aligning_type for super-aligned objects on stack.
12965 (components_to_record): Pass the adjusted size of the type when creating
12966 fields in the qualified union for the variant part.
12967 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12968 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12970 (maybe_pad_type): Set TYPE_USER_ALIGN.
12971 (make_aligning_type): Likewise.
12972 ALIGN argument is unsigned int.
12973 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12974 (gnat_to_gnu_param): Likewise, for parameters.
12975 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12976 if it is constant and stems from a function call.
12977 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12978 of the record is specified. Adjust accordingly.
12979 (adjust_packed): New static function.
12980 (gnat_to_gnu_field): Use it to adjust the packedness setting.
12981 (components_to_record): Likewise.
12982 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12983 side-effects if the object is deemed constant.
12984 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12985 type instead of merely finalizing it. Tidy.
12986 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12987 <E_Access_Type>: Likewise.
12988 (defer_debug_incomplete_list): Rename to defer_finalize_list.
12989 (defer_debug_level): Delete.
12990 (gnat_to_gnu_entity) <debug_deferred>: Likewise
12991 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12993 <E_Record_Type>: Do not explicitly defer finalizing the type.
12994 Adjust for write_record_type_debug_info renaming.
12995 <E_Subprogram_Type>: Likewise.
12996 Finalize deferred types right after deferred incomplete types are
12998 (rest_of_type_decl_compilation): New global function.
12999 (components_to_record): Rename defer_debug parameter to do_not_finalize.
13000 (components_to_record): Propagate the packedness to the fields of the
13001 qualified union type if there is a variant part.
13002 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
13003 instead of inline code to adjust the XUT field offsets.
13004 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
13005 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
13006 and write the debug info if the type derives from a discriminated one.
13007 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
13008 <E_Array_Subtype>: Likewise.
13009 <E_String_Literal_Subtype>: Likewise.
13010 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
13011 an alignment clause.
13012 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
13013 before giving warning.
13014 (prepend_one_attribute_to): New function, helper to prepend an attribute
13015 to an attribute list.
13016 (gnat_to_gnu_entity) <E_Procedure>: Use it.
13017 (prepend_attributes): Likewise.
13018 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
13019 <E_Array_Type>: Declare the padding type for the element type, if any.
13020 <E_Array_Subtype>: Likewise.
13021 (defer_limited_with): New variable.
13022 (Gigi_Equivalent_Type): New function.
13023 (gnat_to_gnu_entity): Use it at start and use result throughout.
13024 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
13025 Gigi_Equivalent_Type, support Limited_With, allow two levels of
13026 indirection, precompute if unconstrained array to simplify logic, and
13027 use defer_limited_with to defer elaboration of some types from limited
13029 (finalize_from_with_types): New function.
13031 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13032 Eric Botcazou <ebotcazou@adacore.com>
13033 Tristan Gingold <gingold@adacore.com>
13034 Olivier Hainque <hainque@adacore.com>
13036 * trans.c (Identifier_to_gnu): Change test for deferred constant by
13037 adding guard that the entity is an E_Constant before testing presence
13038 of Full_view (and remove unnecessary test that entity is not a type).
13039 For a CONST_DECL used by reference, manually retrieve
13040 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
13041 (struct language_function): Move from utils.c to here.
13042 (struct parm_attr): New structure.
13043 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
13044 (f_parm_attr_cache): New macro.
13045 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
13046 expressions for the 'First, 'Last and 'Length attributes of the
13047 unconstrained array IN parameters.
13048 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
13049 Allocate the information structure for the function earlier, as well
13050 as the language-specific part.
13051 If the parameter attributes cache has been populated, evaluate the
13052 cached expressions on entry.
13053 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
13054 N_Procedure_Call_Statement and N_Indexed_Component.
13055 (Pragma_to_gnu): Translate inspection_point to an asm statement
13056 containaing a comment and a reference to the object (either its address
13057 for BLKmode or its value).
13058 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
13059 to go to DECL_INITIAL. Together with the size constraint relaxation
13060 in create_var_decl, enlarges the set of situations in which an
13061 identifier may be used as an initializer without implying elaboration
13063 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
13064 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
13066 (maybe_stabilize_reference): Remove lvalues_only parameter.
13067 (gnat_stabilize_reference): Adjust for above change.
13068 (gnat_to_gnu): Do not set location information on the result
13069 if it is a reference.
13070 (add_cleanup): Add gnat_node parameter and set the location of the
13072 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
13073 (Exception_Handler_to_gnu_zcx): Likewise.
13074 (gigi): Remove the cgraph node if the elaboration procedure is empty.
13075 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
13076 the former right after the latter.
13077 (start_stmt_group): Make global.
13078 (end_stmt_group): Likewise.
13079 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
13081 (gnu_program_error_label_stack): Likewise.
13082 (gigi): Initialize them.
13083 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
13084 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
13086 (push_exception_label_stack): New function.
13087 (takes_address): New function.
13089 * utils.c (struct language_function): Move to trans.c from here.
13090 (unchecked_convert): Do not wrap up integer constants in
13091 VIEW_CONVERT_EXPRs.
13092 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
13093 the latter for aggregate types, unexpected by later passes, and relax an
13094 arbitrary size constraint on the former.
13095 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
13096 to compare the sizes.
13097 (convert_vms_descriptor): When converting to a fat pointer type, be
13098 prepared for a S descriptor at runtime in spite of a SB specification.
13099 (shift_unc_components_for_thin_pointers): New function.
13100 (write_record_type_debug_info): For variable-sized fields, cap the
13101 alignment of the pointer to the computed alignment.
13102 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
13103 If REP_LEVEL is 2, do not compute the sizes.
13104 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
13105 (build_unc_object_type): Likewise.
13106 (declare_debug_type): New function.
13108 * ada-tree.def: USE_STMT: removed (not emitted anymore).
13110 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
13111 no statement is expandable anymore.
13112 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
13113 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
13114 when the user requested it explicitely.
13115 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
13117 (get_alias_set): Return alias set 0 for a type if
13118 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
13120 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
13121 (DECL_FUNCTION_STUB): New accessor macro.
13122 (SET_DECL_FUNCTION_STUB): New setter macro.
13124 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
13126 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
13129 2007-06-06 Jose Ruiz <ruiz@adacore.com>
13131 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
13132 Rename to Abort_Task_Interrupt to be able to keep the same interface
13133 as the rest of the targets.
13135 * s-osinte-vxworks.ads s-osinte-vxworks.adb
13136 (To_VxWorks_Priority): Remove explicit "in" mode indicator
13138 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
13141 2007-06-06 Robert Dewar <dewar@adacore.com>
13143 * a-chahan.ads: Remove obsolescent pragmas
13145 * a-chlat1.ads: Minor reformatting
13147 2007-06-06 Robert Dewar <dewar@adacore.com>
13149 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
13152 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
13155 * errout.ads (Finalize): Changed interface
13156 (Output_Messages): New procedure
13157 (Compilation_Errors): New Interface
13159 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
13160 Finalize/Output_Messages interface for Errout
13161 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
13164 2007-06-06 Thomas Quinot <quinot@adacore.com>
13165 Olivier Hainque <hainque@adacore.com>
13166 Robert Dewar <dewar@adacore.com>
13168 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
13170 (Raise_Current_Excep): Call Debug_Raise_Exception just before
13171 propagation starts, to let debuggers know about the event in a reliable
13173 (Local_Raise): Moved to System.Exceptions
13174 More convenient to have this as a separate unit
13176 * s-except.adb, s-except.ads: New files.
13178 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
13179 Debug_Unhandled_Exception in System.Exceptions where it belongs
13180 together with a couple of other debug helpers.
13181 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
13182 the former Unhandled_Exception.
13184 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
13185 (Warn_No_Exception_Propagation): New procedure
13186 (Warn_If_No_Propagation): Rewritten for new warning generation
13187 (Expand_Exception_Handlers): New warning generation
13188 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
13189 (Add_Exception_Label): Use Special_Exception_Package_Used for test
13190 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
13191 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
13192 even if restriction is set (makes life easier in Check_Returns)
13193 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
13194 checking exception identities.
13195 (Expand_Local_Exception_Handlers): Do not optimize when all others case
13196 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
13197 block for handler (used by Check_Returns)
13198 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
13199 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
13200 remove all exception handlers when optimizing local raise statements.
13201 (Find_Local_Handler): Use Get_Renamed_Entity
13202 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
13203 marked analyzed after expanding exception handlers, do not generate
13204 redundant cleanup actions, because they have been constructed already.
13206 2007-06-06 Thomas Quinot <quinot@adacore.com>
13208 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
13209 presence of this categorization pragma is mandated by the language.
13210 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
13213 2007-06-06 Vincent Celier <celier@adacore.com>
13214 Robert Dewar <dewar@adacore.com>
13216 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
13217 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
13218 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
13219 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
13220 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
13221 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
13222 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
13223 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
13224 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
13225 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
13226 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
13228 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
13229 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
13230 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
13231 Use variables of types File_Name_Type and Unit_Name_Type in error
13233 (Get_Name): Add parameter Ignore_Special, and set it reading file name
13234 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
13236 Define flags Flag217-Flag230 with associated subprograms
13237 (Flag_Word5): New record type.
13238 (Flag_Word5_Ptr): New access type.
13239 (To_Flag_Word5): New unchecked conversion.
13240 (To_Flag_Word5_Ptr): Likewise.
13241 (Flag216): New function.
13242 (Set_Flag216): New procedure.
13244 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13246 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
13249 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
13251 2007-06-06 Javier Miranda <miranda@adacore.com>
13253 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
13255 (Object_Specific_Data_Array): This is now internal to the package.
13256 (Object_Specific_Data): This is now internal to the package.
13257 (Select_Specific_Data_Element): This is now internal to the package.
13258 (Select_Specific_Data_Array): This is now internal to the package.
13259 (Select_Specific_Data): This is now internal to the package.
13260 (Offset_To_Top_Function_Ptr): This is now public.
13261 (To_Offset_To_Top_Function_Ptr): Removed.
13262 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
13263 local to subprogram Offset_To_Top.
13264 (Predefined_DT): Removed.
13265 (Typeinfo_Ptr): Removed.
13266 (OSD): This function is now internal to this package.
13267 (SSD): This function is now internal to this package.
13268 (DT): New function that displaces the pointer to the table of primitives
13269 to get access to the enclosing wrapper record.
13270 (IW_Membership): Code cleanup.
13271 (Offset_To_Top): Code cleanup.
13272 (Predefined_DT): Removed.
13273 (Register_Interface_Tag): Removed.
13274 (Set_Interface_Table): Removed.
13275 (Set_Offset_Index): Removed.
13276 (Set_Offset_To_Top): Code cleanup.
13277 (Set_OSD): Removed.
13278 (Set_Signature): Removed.
13279 (Set_SSD): Removed.
13280 (Set_Tagged_Kind): Removed.
13281 (Typeinfo_Ptr): Removed.
13283 (Displace): Add missing check on null actual.
13285 * exp_disp.ads, exp_disp.adb
13286 (Select_Expansion_Utilities): Removed.
13287 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
13288 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
13289 the interface requires a new parameter.
13290 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
13291 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
13292 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
13293 Done to remove package Select_Expansion_Utilities.
13294 (Make_DT): New implementation for statically allocated dispatch tables.
13295 (Make_Secondary_DT): Moved to the scope of Make_DT.
13296 (Register_Primitive): Code cleanup plus incoporate the use of the new
13297 function DT_Address_Attribute.
13298 (Expand_Interface_Thunk): The profile of this subprogram has been
13299 changed to return the Thunk_Id and the corresponding code.
13300 (Fill_DT_Entry): Removed. Its functionality is now provided by
13301 subprogram Register_Primitive.
13302 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
13303 subprogram Register_Primitive.
13304 (Register_Primitive): New subprogram that incorporates the previous
13305 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
13306 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
13307 was only required to call Make_DT_Access_Action, which is now removed.
13308 (Ada_Actions): Removed
13309 (Action_Is_Proc): Removed
13310 (Action_Nb_Arg): Removed
13311 Replace all the calls to Make_DT_Access_Action by direct calls to
13312 Make_Procedure_Call_Statement or Make_Function_Call.
13313 (Set_DTC_Entity_Value): New subprogram.
13314 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
13315 (Expand_Interface_Thunk): Add missing support for primitives that are
13316 functions with a controlling result (case in which there is no need
13317 to generate the thunk).
13319 * exp_atag.ads, exp_atag.adb
13320 (Build_DT): New subprogram that displaces the pointer to reference the
13321 base of the wrapper record.
13322 (Build_Typeinfo_Offset): Removed.
13323 (RTE_Tag_Node): Removed.
13324 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
13325 (Build_Get_RC_Offset): Removed.
13326 (Build_Inherit_Predefined_Prims): Removed.
13327 (Build_Inherit_TSD: Removed.
13328 (Build_New_TSD): Removed.
13329 (Build_Set_External_Tag): Removed.
13330 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
13331 (Build_Set_Prim_Op_Address): Add documentation.
13332 (Build_Set_TSD): Removed.
13334 * rtsfind.ads, rtsfind.adb
13335 (Load_Fail): If load fails and we are not in configurable run-time
13336 mode, then raise Unrecoverable_Error.
13337 (Text_IO_Kludge): Generate an error message if a run-time library is
13338 not available in a given run-time (ie. zfp run-time).
13339 (RTE_Record_Component): Add code to check that the component we search
13340 for is not found in two records in the given run-time package.
13341 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
13342 (RE_DT_Predef_Prims_Offset): New entity
13343 (RE_Static_Offset_To_Top): New entity
13344 (RE_HT_Link): New entity.
13345 (System_Address_Image): Addition of this run-time package.
13346 (RE_Address_Image): New entity.
13347 (RE_Abstract_Interface): Removed.
13348 (RE_Default_Prim_Op_Count): Removed.
13349 (RE_DT_Entry_Size): Removed.
13350 (RE_DT_Min_Prologue_Size): Removed.
13351 (RE_DT_Prologue_Size): Removed.
13352 (RE_Ifaces_Table_Ptr): Removed.
13353 (RE_Interface_Data_Ptr): Removed.
13354 (RE_Type_Specific_Data): Removed.
13355 (RE_Primary_DT): Removed.
13356 (RE_Register_Interface_Tag): Removed.
13357 (RE_Set_Offset_Index): Removed.
13358 (RE_Set_OSD): Removed.
13359 (RE_Set_SSD): Removed.
13360 (RE_Set_Signature): Removed.
13361 (RE_Set_Tagged_Kind): Removed.
13362 (RE_Address_Array): New entity.
13363 (RE_DT): New entity.
13364 (RE_Iface_Tag): New entity.
13365 (RE_Interfaces_Table): New entity.
13366 (RE_No_Dispatch_Table): New entity.
13367 (RE_NDT_Prims_Ptr): New entity.
13368 (RE_NDT_TSD): New entity.
13369 (RE_Num_Prims): New entity.
13370 (RE_Offset_To_Top_Function_Ptr): New entity.
13371 (RE_OSD_Table): New entity.
13372 (RE_OSD_Num_Prims): New entity.
13373 (RE_Predef_Prims): New entity
13374 (RE_Predef_Prims_Table_Ptr): New entity.
13375 (RE_Primary_DT): New entity.
13376 (RE_Signature): New entity.
13377 (RE_SSD): New entity.
13378 (RE_TSD): New entity.
13379 (RE_Type_Specific_Data): New entity.
13380 (RE_Tag_Kind): New entity.
13382 2007-06-06 Thomas Quinot <quinot@adacore.com>
13384 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
13385 C imported variable.
13386 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
13389 2007-06-06 Robert Dewar <dewar@adacore.com>
13391 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
13394 2007-06-06 Vincent Celier <celier@adacore.com>
13396 * a-tifiio.adb (Put, internal): For negative numbers, check that there
13397 is room for at least one digit and the minus sign.
13398 (Put.Put_Character): Never put a character outside of the range of
13401 2007-06-06 Olivier Hainque <hainque@adacore.com>
13402 Eric Botcazou <ebotcazou@adacore.com>
13404 * utils2.c (build_allocator): Provide the extra arguments to
13405 make_aligning_type for super-aligned objects allocated from the default
13406 pool. Leave enough room for a pointer before the aligning field, and
13407 store the system's allocator return value there.
13408 (build_call_alloc_dealloc): When releasing a super-aligned object,
13409 retrieve the system's allocator return value from where build_allocator
13410 has stored it, just ahead of the adjusted address we are passed.
13411 (build_call_raise): Handle properly the generation of line numbers when
13412 the node is marked No_Location.
13413 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
13414 by using DECL_UID on ties.
13415 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
13417 (build_call_raise): Handle converting exception into goto; support new
13419 (build_component_ref): Add new arg to build_call_raise.
13421 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13423 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
13424 "." in the case of nnn.xxx when nnn terminates with an underscore.
13425 Parse the remaining "#" or ":" in the case of nnn#.xxx#
13427 2007-06-06 Robert Dewar <dewar@adacore.com>
13429 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
13431 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13432 Vincent Celier <celier@adacore.com>
13433 Robert Dewar <dewar@adacore.com>
13435 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
13437 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
13438 ((destructor)) for adafinal, even when switch -a is used.
13439 Do not issue pragma Linker_Destructor for adafinal when switch -a is
13441 (Gen_Object_Files_Options): Add formatting of Linker Options, when
13442 Output_Linker_Option_List is set. Suppress this formatting when
13443 Zero_Formatting is set.
13444 Add case for CLI_Target.
13445 (System_Restrictions_Used): New flag, used to avoid generating with of
13446 System_Restrictions and initialization of the data unless there is
13447 some use of System.Restrictions in the partition.
13448 (Check_System_Restrictions_Used): New procedure
13450 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
13451 since we only with this unit in the binder file if it is used elsewhere
13454 2007-06-06 Vincent Celier <celier@adacore.com>
13456 * bindusg.adb: Add line for @<response file>
13457 Add lines for new switches -R and -Z
13459 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
13460 hierarchy in the list of files of the closure when -R is used
13461 (Gnatbind): Accept arguments starting with '@' to indicate response
13462 files and take the arguments from the response files.
13463 If List_Closure is set, display the referenced files
13465 2007-06-06 Javier Miranda <miranda@adacore.com>
13466 Robert Dewar <dewar@adacore.com>
13467 Ed Schonberg <schonberg@adacore.com>
13469 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
13470 which the address-clause is applied to in-mode actuals (allowed by
13472 (Apply_Discriminant_Check): Do not generate a check if the type is
13473 constrained by a current instance.
13474 (Activate_Division_Check): New procedure
13475 (Activate_Overflow_Check): New procedure
13476 (Activate_Range_Check): New procedure
13477 Call these new Activate procedures instead of setting flags directly
13478 (Apply_Array_Size_Check): Removed, no longer needed.
13479 Code clean up: remove obsolete code related to GCC 2.
13480 (Get_E_Length): Protect against bomb in case scope is standard
13481 (Selected_Range_Checks): If the node to be checked is a conversion to
13482 an unconstrained array type, and the expression is a slice, use the
13483 bounds of the slice to construct the required constraint checks.
13484 Improve NOT NULL error messages
13485 (Apply_Constraint_Check): If the context is a null-excluding access
13486 type, diagnose properly the literal null.
13488 2007-06-06 Pascal Obry <obry@adacore.com>
13490 * clean.adb (Clean_Archive): Use untouched casing for the archive name
13491 and the corresponding .deps file.
13492 (Clean_Interface_Copy_Directory): Use untouched casing for the library
13493 src directory. Minor code-clean-up. Use untouched casing for files
13494 read into the library src dir.
13495 (Clean_Library_Directory): Idem.
13496 (Parse_Cmd_Line): Accept new switch -aP
13498 2007-06-06 Javier Miranda <miranda@adacore.com>
13499 Ed Schonberg <schonberg@adacore.com>
13500 Robert Dewar <dewar@adacore.com>
13501 Eric Botcazou <ebotcazou@adacore.com>
13502 Arnaud Charlet <charlet@adacore.com>
13504 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
13505 applicable to types that have the With_Type flag set. Returns the
13506 non-limited view of the type, if available, otherwise the type itself.
13507 For class-wide types, there is no direct link in the tree, so we have
13508 to retrieve the class-wide type of the non-limited view of the Etype.
13509 New attributes Static_Initialization and Static_Elaboration_Desired.
13510 Remove the pragma Thread_Body, and the associated flag
13511 Is_Thread_Body in entities, and all related code.
13512 (Suppress_Value_Tracking_On_Call): New flag
13513 E_Exception has Esize and Alignment fields
13514 (Universal_Aliasing): New function.
13515 (Set_Universal_Aliasing): New procedure.
13516 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
13517 (Check_Nested_Access): New procedure.
13518 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13519 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13520 (Related_Interface): New attribute. Present in dispatch table pointer
13521 components of records. Set to point to the entity of the corresponding
13523 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
13524 (Original_Access_Type): Remove, not needed.
13525 (Root_Type): Handle properly subtypes of class-wide-types.
13528 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
13529 class-wide types visible through limited-with clauses.
13530 (Try_Primitive_Operation): When examining all primitive operations of a
13531 tagged type, do not consider subprograms labeled as hidden unless they
13532 belong to a private generic type with a tagged parent.
13533 (Try_Object_Operation): Extensive rewriting, to handle properly various
13534 overloading cases, when several ancestors may have class-wide operations
13535 that are possible candidates, and when the overloaded functions return
13536 array types and have defaulted parameters so that the call may be
13537 interpreted as an indexing.
13538 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
13539 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
13540 successive actuals before analyzing the call itself.
13541 (Try_Primitive_Operation): A primitive operation is compatible with the
13542 prefix if the prefix has a synchronized type and the type of the formal
13543 is its corresponding record, as can be the case when the primitive
13544 operation is declared outside of the body of the type.
13545 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
13546 perform homonym traversal, looking for class-wide operation matches
13547 (formerly done in statements of Try_Class_Wide_Operation). Matches on
13548 access parameters are now restricted to anonymous access types.
13549 (Mark_Allocator): An allocator with a discriminant association parent is
13551 (Try_One_Prefix_Interpretation): If the type of the object is
13552 incomplete, as can be happen when it is a limited view obtained through
13553 a limited_with_clause, the selected component is not part of a prefixed
13555 (Complete_Object_Operation): Diagnose properly an object that is not
13556 aliased when the corresponding controlling formal is an access
13558 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
13559 ambiguous calls in prefixed notation, where two primitives differ only
13560 in that the controlling argument of one is an access parameter.
13562 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
13563 whether a function that returns an unconstrained type can be inlined.
13564 (Process_Formals): Diagnose properly the illegal use of an incomplete
13565 type in the profile of an access_to_subprogram declaration.
13566 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
13567 operations are attached to the corresponding record.
13568 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
13569 When processing a primitive of a concurrent type which implements an
13570 interface change the type of all controlling formals to that of the
13571 corresponding record type.
13572 (Check_Synchronized_Overriding): Relax the conditional logic when trying
13573 to determine the tagged type to which a primitive belongs.
13574 (Check_Conventions): Capture condition to ignore a primitive operation
13575 (which is shared between the loop in Check_Conventions and the one in
13576 Check_Convention) in a new local function Skip_Check.
13577 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
13578 confusion with Check_Conventions' own Prim_Op local variable.
13579 (Create_Extra_Formals): Test for a tagged result type rather than a
13580 controlling result when determining whether to add a BIP_Alloc_Form
13581 formal and a BIP_Final_List formal to the function.
13582 (Check_Conformance); For parameters that are anonymous access types,
13583 subtype conformance requires that the not null and the constant
13584 indicators must match
13585 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
13586 to retrieve the appropriate type when processing a concurrent type
13587 declared within a generic. Minor comment reformatting. Change invocation
13588 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
13590 (Analyze_Subprogram_Body): If the return type of a function is an
13591 anonymous access to the limited view of a class-wide type, and the
13592 non-limited view of the type is available, update the type of the
13593 function so that code can be generated.
13594 (Process_Formals): In case of access-subtype itype whose designated
13595 type is also an itype (situation that happens now with access to
13596 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
13597 attribute to avoid backend problems.
13598 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
13599 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
13600 anonymous types' designated types are same before testing
13601 Subtypes_Statically_Match.
13602 (Create_Extra_Formals): Test for a named access parameter that is a
13603 controlling formal as an additional condition for adding an
13604 accessibility level formal. This can occur in the subp type created for
13605 dispatching calls in Expand_Dispatching_Call, and allows calling
13606 Create_Extra_Formals from that procedure rather than special-casing the
13607 extra formals there.
13608 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
13609 when the function has a controlling result.
13610 (Check_Returns): Add much more knowledge of the optimization of local
13611 raise statements to gotos, to retain proper warnings in this case.
13612 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
13613 nodes when looking for last statement.
13615 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
13616 class-wide types visible through limited with clauses.
13617 (Add_One_Interp): If the operands are anonymous access types, the
13618 predefined operator on universal_access is immediately visibles
13619 (Find_Unique_Type): Handle anonymous access to subprogram types just as
13620 other anonymous access types.
13621 (Disambiguate): Take into account CIL convention.
13622 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
13624 2007-06-06 Robert Dewar <dewar@adacore.com>
13626 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
13627 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
13628 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
13629 Fix lower bound of tables.
13632 * nlists.adb: Ditto.
13633 (Prev_Node, Next_Node): Change index type to Int so that it properly
13634 covers the range First_Node_Id - 1 up.
13636 2007-06-06 Javier Miranda <miranda@adacore.com>
13637 Ed Schonberg <schonberg@adacore.com>
13638 Bob Duff <duff@adacore.com>
13639 Hristian Kirtchev <kirtchev@adacore.com>
13641 * exp_aggr.ads, exp_aggr.adb:
13642 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
13643 in extension aggregates.
13644 (Flatten): Other conditions being met, an aggregate is static if the
13645 low bound given by component associations is different from the low
13646 bound of the base index type.
13647 (Packed_Array_Aggregate_Handled): If the component type is itself a
13648 packed array or record, the front-end must expand into assignments.
13649 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
13650 Init_Pr, instead of Ancestor_Is_Expression.
13651 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
13652 coextension chain root, either generate a list controller or use the
13653 already existing one.
13654 (Static_Array_Aggregate): New procedure to construct a positional
13655 aggregate that can be handled by the backend, when all bounds and
13656 components are compile-time known constants.
13657 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
13658 types covering interface types into assignments.
13659 (Replace_Type): move to Build_Record_Aggr_Code.
13660 (Expand_Record_Aggr_Code): if the target of the aggregate is an
13661 interface type, convert to the definite type of the aggregate itself,
13662 so that needed components are visible.
13663 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
13664 components and the context is an extended return statement do not
13665 create a transient block for it, to prevent premature finalization
13666 before the return is executed.
13667 (Gen_Assign): Do not generate a call to deep adjust routine if the
13668 component type is itself an array of controlled (sub)-components
13669 initialized with an inner aggregate.
13670 (Component_Check): New name for Static_Check. This name is now more
13671 appropriate, and documentation is added which was missing.
13672 (Component_Check): Add test for bit aligned component value
13673 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
13674 Tagged_Comps, name is more appropriate given added function below.
13675 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
13677 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13678 Javier Miranda <miranda@adacore.com>
13679 Robert Dewar <dewar@adacore.com>
13681 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
13682 Terminated: Add unchecked type conversion from System.Address to
13683 System.Tasking.Task_Id when calling the predefined primitive
13685 Disable new Ada 05 accessibility check for JVM.NET targets, which
13686 cannot be implemented in a practical way.
13687 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13688 the sources always references the tag of the actual object. Therefore,
13689 if 'Tag is applied in the sources to class-wide interface objects we
13690 generate code that displaces "this" to reference the base of the object.
13691 (Expand_N_Attribute_Reference, case Size): Return specified size if
13692 known to front end.
13693 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13694 has code that displaces the pointer of the object to manage interface
13695 types. However this code must not be executed when the prefix is a
13696 subprogram. This bug caused the wrong expansion of the internally
13697 generated assignment that fills the dispatch table when the primitive
13698 is a function returning a class-wide interface type.
13699 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13700 Set_Attribute_Name for Name_Unaligned_Valid.
13702 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13703 Gary Dismukes <dismukes@adacore.com>
13705 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13706 If the initialization is the equivalent aggregate of the initialization
13707 procedure of the type, do not remove it.
13708 (Expand_N_Attribute_Definition_Clause): Exclude access variables
13709 initialized to null from having their expression reset to empty and
13710 note this exception in the comment.
13712 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13713 Robert Dewar <dewar@adacore.com>
13714 Ed Schonberg <schonberg@adacore.com>
13715 Gary Dismukes <dismukes@adacore.com>
13717 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13718 Add "with" and "use" clauses for Sem_Attr.
13719 (Expand_Current_Value): Do not replace occurences of attribute
13720 references where the prefix must be a simple name.
13722 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13723 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13724 Attribute_Requires_Simple_Name_Prefix.
13725 (Name_Modifies_Prefix): Body of new function.
13726 (Requires_Simple_Name_Prefix): Body of new function.
13727 (Resolve_Attribute, case Access): Improve error message for case of
13728 mismatched conventions.
13729 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13731 (Analyze_Attribute, case 'Access): If the type of the prefix is a
13732 constrained subtype for a nominal unconstrained type, use its base type
13733 to check for conformance with the context.
13734 (Resolve_Attribute): Remove test of the access type being associated
13735 with a return statement from condition for performing accessibility
13736 checks on access attributes, since this case is now captured by
13737 Is_Local_Anonymous_Access.
13738 (Analyze_Access_Attribute): Set Address_Taken on entity
13739 (Analyze_Attribute, case Address): Set Address_Taken on entity
13740 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13741 validating an access attribute whose prefix is a current instance.
13742 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13743 applied to dispatching operations, if freezing is required then we set
13744 the attribute Has_Delayed_Freeze in the prefix's entity.
13745 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13746 current scope if access of local subprogram taken
13747 (Analyze_Access_Attribute): Check legality of self-reference even if the
13748 expression comes from source, as when a single component association in
13749 an aggregate has a box association.
13750 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13751 the prefix if it is a protected operation and the attribute is
13752 Unrestricted_Access.
13753 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13754 reference to the base type of the context, to force a constraint check
13755 when the context is an access subtype with an explicit constraint.
13756 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13757 node is rewritten as an interface conversion. leave unanalyzed after
13758 resolution, to ensure that type checking against the context will take
13761 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13762 Javier Miranda <miranda@adacore.com>
13763 Robert Dewar <dewar@adacore.com>
13765 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13766 wrapper when the full view of the controlling type of an inherited
13767 function that dispatches on result implements interfaces.
13768 (Expand_N_Object_Declaration): In cases where the type of the
13769 declaration is anonymous access, create finalization list for it.
13770 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13771 if the object has no explicit initialization, to match description of
13772 functionality of pragam Persistent_BSS.
13773 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13774 new function to build static aggregates, to replace initialization call
13775 when static initialization is desired.
13776 (Freeze_Type): Generate a list controller for an access type whenever
13777 its designated type has controlled anonymous access discriminants.
13778 (Build_Equivalent_Aggregate): New procedure to compute a static
13779 aggregate to be used as default initialization for composite types,
13780 instead of a generating a call to the initialization procedure for the
13782 (Build_Initialization_Call): When available, replace a call to the
13783 initialization procedure with a copy of the equivalent static aggregate
13785 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
13786 declarations for objects of a class-wide interface type, rather than
13787 just identifiers, to prevent visibility problems.
13788 (Expand_N_Object_Declaration): When expanding the declaration for an
13789 object of a class-wide interface type, preserve the homonym chain of
13790 the original entity before exchanging it with that of the generated
13791 renaming declaration.
13792 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13793 active, because there is no way to handle the exception.
13794 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13795 to do a minimum decoration of the Access_Disp_Table list.
13796 (Expand_Record_Controller): Avoid the addition of the controller between
13797 the component containing the tag of a secondary dispatch table and its
13798 adjacent component that stores the offset to the base of the object.
13799 This latter component is only generated when the parent type has
13800 discriminants ---documented in Add_Interface_Tag_Components).
13801 (Apply_Array_Size_Check): Removed, no longer needed.
13802 (Expand_N_Full_Type_Declaration): If the type has anonymous access
13803 components, create a Master_Entity for it only if it contains tasks.
13804 (Build_Init_Procedure): Suppress the tag assignment compiling under
13806 (Freeze_Record_Type): Remove code associated with creation of dispatch
13808 (Init_Secondary_Tags): Update type of actuals when generating calls to
13809 Ada.Tags.Set_Offset_To_Top
13810 (Stream_Operation_OK): Disable use of streams compiling under no
13812 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13813 if Has_Init_Expression set.
13814 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13815 Register_Primitive, which provides the same functionality.
13816 (Requires_Init_Proc): Return false in case of interface types.
13817 (Add_Secondary_Tables): Use the new attribute Related_Interface to
13819 (Predefined_Primitive_Freeze): Do not assume that an internal entity
13820 is always associated with a predefined primitive because the internal
13821 entities associated with interface types are not predefined primitives.
13822 Therefore, the call to Is_Internal is replaced by a call to the
13823 function Is_Predefined_Dispatching_Operation.
13824 (Make_Eq_If): When generating the list of comparisons for the
13825 components of a given variant, omit the controller component that is
13826 present if the variant has controlled components.
13828 2007-06-06 Javier Miranda <miranda@adacore.com>
13829 Hristian Kirtchev <kirtchev@adacore.com>
13830 Bob Duff <duff@adacore.com>
13832 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13833 handle the creation of finalization lists and calls for nested
13834 coextensions when the root of the chains is part of a return statement.
13835 (Inside_A_Return_Statement): New function inside Complete_Coextension_
13837 (Expand_Record_Equality): Skip components that are interface types.
13838 (Displace_Allocator_Pointer): Add missing support for interface subtypes
13839 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13840 with Rewrite_Coextension. Change the condition for detecting coextension
13842 (Is_Local_Access_Discriminant): Removed.
13843 (Rewrite_Coextension): New routine which rewrites a static coextension
13844 as a temporary and uses its unrestricted access in the construction of
13846 (Complete_Coextension_Finalization): New routine. Generate finalization
13847 attachment calls to all delayed coextensions.
13848 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13849 the allocator is not a coextension itself and has delayed coextensions.
13850 If the current allocator is controlled, but also a coextension, delay
13851 the generation of the finalization attachment call.
13852 Rename local variable "Node" to "Nod" in order to avoid confusion with
13854 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13855 limited types that are not inherently limited. Such an allocator is
13856 illegal, but is generated by the expander for a return statement, to
13857 copy the result onto the secondary stack. This is the only case where a
13858 limited object can be copied. Generate code to displace the pointer
13859 to the object if the qualified expression is a class-wide interface
13860 object. Such displacement was missing and hence the copy of the object
13862 (Apply_Accessibility_Check): Handle allocated objects initialized in
13864 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13865 and Expand_Allocator_Expression. Allocating class-wide interface objects
13866 this routine displaces the pointer to the allocated object to reference
13867 the component referencing the corresponding secondary dispatch table.
13868 Expand_Allocator_Expression): Add missing support to allocate class-wide
13869 interface objects initialized with a qualified expression.
13870 (Get_Allocator_Final_List): Test for an anonymous access type that is a
13871 function result type, and use the finalization list associated with the
13872 function scope in that case (such an anonymous type should not be
13873 treated like an access parameter's type).
13875 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13876 Gary Dismukes <dismukes@adacore.com>
13877 Javier Miranda <miranda@adacore.com>
13879 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13880 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13881 required exception handler.
13882 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13883 properly the case of a function whose return type is a limited
13884 class-wide interface type. Modify the code of the accessibility
13885 check to handle class-wide interface objects. In this case we need to
13886 displace "this" to reference the primary dispatch table to get access
13887 to the TSD of the object (to evaluate its accessibility level).
13888 (Expand_N_Extended_Return_Statement): Test for a tagged result type
13889 rather than a controlling result as one of the conditions for
13890 generating tests of the implicit BIP_Alloc_Form formal. The
13891 initialization assignment is also handled according to whether the
13892 result is tagged instead of controlling.
13893 In the case where the init assignment is inserted in the "then" part of
13894 the allocation conditional, rewrite the target to be a dereference of
13895 the implicit BIP_Object_Access formal.
13896 If the returned value is unconstrained and created on the secondary
13897 stack, mark the enclosing block and function so that the secondary
13898 stack is not reclaimed on return.
13899 Treat returns from functions with controlling results similarly to
13900 returns from functions with unconstrained result subtypes.
13901 If the object returned is unconstrained, and an allocator must be
13902 created for it, analyze the allocator once the block for the extended
13903 return is installed, to ensure that finalizable components
13904 of the expression use the proper finalization list. Guard the call to
13905 Move_Final_List with a check that there is something to finalize.
13906 (Make_Tag_Ctrl_Assignment): Use "old" handling
13907 of controlled type assignment for virtual machines, since new code uses
13908 unsupported features (such as direct access to bytes in memory).
13910 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13911 Ed Schonberg <schonberg@adacore.com>
13913 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13914 accessibility actual, check for the case of an aliased object that has
13915 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13916 we fall into processing for the attribute rather than the name of the
13918 (Expand_Inline_Call): If an actual is a literal, and the corresponding
13919 formal has its address taken in the body, create a temporary to capture
13920 value. If the return type is a limited interface, do not treat the
13921 return value as Controlled.
13922 (Is_In_Place_Function): If the return type is a limited interface,
13923 treat as returning in place. The actual returned object may not always
13924 be limited, but the caller has to assume that it is returned in place.
13925 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13926 context of an allocator, use the correct finalization chain (that is,
13927 the chain belonging to the access type, rather than the chain belonging
13928 to the current scope).
13929 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13930 result type rather than a controlling result as a precondition for
13931 adding an allocation form actual to a build-in-place call.
13932 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13933 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13934 primitive in the dispatch tables. This work is now done by Make_DT when
13935 the type is frozen.
13936 (Register_Predefined_DT_Entry): Removed.
13937 (Add_Return): If end label is not present, use sloc of last statement
13938 for generated return statement in procedure, for better gdb behavior
13940 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13941 object address nodes to ensure proper processing by routines like
13943 (Expand_Call): Fix generation of validity check for parameter
13944 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13945 the allocation form parameter if the result subtype is constrained,
13946 except when the function has a controlling result.
13947 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13948 rather than Is_Controlled and Has_Controlled_Component, since we want to
13949 include class-wide result types in this treatment. Also test for a
13950 controlling result, since that also requires passing a finalization
13952 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13953 even when the result subtype is constrained, to handle calls involving
13954 controlling results.
13955 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13956 is now called even when the result subtype is constrained, to handle
13957 calls involving controlling results.
13958 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13959 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13960 now performs the test).
13961 (Make_Build_In_Place_Call_In_Object_Declaration):
13962 Add_Alloc_Form_Actual_* is now called even when the result subtype is
13963 constrained, to handle calls involving controlling results.
13964 (Add_Return): Accomodate rewritten pattern from local raise to goto
13965 transformation, so that we still recognize an transfer statement
13966 and do the right thing here in that case.
13967 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13968 and end of subprogram code.
13969 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13970 support for primitives that are functions (without formals) with a
13971 controlling result.
13972 (Inherited_From_Formal): If the actual subtype has not generic parent
13973 type, it is not an actual for a formal derived type, and there is no
13974 operation to inherit from the formal.
13976 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13977 Thomas Quinot <quinot@adacore.com>
13979 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13980 inserted cleanup code appropriately for GDB use.
13981 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13982 exception handler for Deep_Adjust or Deep_Finalize.
13983 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13984 Raise_From_Controlled_Operation is available, use a call to that
13985 subprogram instead of a plain "raise Program_Error" node to raise
13986 Program_Error if an exception is propagated from an Adjust or Finalize
13988 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13989 appears in the optional statement list of a triggering alternative, the
13990 scope actions can be inserted directly there, and not in the list that
13991 includes the asynchronous select itself.
13993 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13994 Robert Dewar <dewar@adacore.com>
13995 Hristian Kirtchev <kirtchev@adacore.com>
13997 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13998 generated exception handler appropriately when debugging generated code.
13999 Deal properly with No_Exception_Propagation restriction mode.
14000 (Expand_N_Abort_Statement): Add an unchecked type conversion from
14001 System.Address to System.Tasking.Task_Id when processing the result of
14002 the predefined primitive _disp_get_task_id.
14003 (Expand_N_Asynchronous_Select): Clarify comment.
14004 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
14005 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
14006 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
14007 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
14008 privals and for generated call to Complete_Entry_Body, for better gdb
14010 (Copy_Result_Type): Utility to construct a parameter and result profile
14011 for protected functions whose return type is an anonymous access to
14013 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
14015 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
14016 point when the local-raise-to-goto transformation has taken place.
14018 2007-06-06 Javier Miranda <miranda@adacore.com>
14019 Nicolas Setton <setton@adacore.com>
14021 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
14022 functionality when the backend is generating code.
14023 Otherwise any serious error
14024 reported by the backend calling the frontend routine Error_Msg
14025 changes the Compilation_Mode to Check_Semantics, disables the
14026 functionality of this routine and causes the generation of
14027 spureous additional errors.
14029 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
14030 debugging information now generated by the compiler for fat-pointer
14032 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
14034 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
14036 2007-06-06 Thomas Quinot <quinot@adacore.com>
14038 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
14039 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14040 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14041 For a remote call to a function with a classwide return type, apply an
14042 E.4(18) check to the returned value.
14043 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
14044 stream attributes of the designated type of an RACW, as they are not
14045 dispatching primitive operations.
14047 2007-06-06 Geert Bosch <bosch@adacore.com>
14049 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
14051 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
14053 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
14054 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
14056 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
14058 2007-06-06 Javier Miranda <miranda@adacore.com>
14060 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
14061 attribute compiling package Ada.Tags under No_Run_Time_Mode.
14063 2007-06-06 Javier Miranda <miranda@adacore.com>
14065 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
14066 deallocation of class-wide interface objects.
14067 (Expand_Dispatching_Constructor_Call): Take into account that if the
14068 result of the dispatching constructor is an interface type, the
14069 function returns a class-wide interface type; otherwise the returned
14070 object would be actual. The frontend previously accepted returning
14071 interface types because Expand_Interface_Actuals silently performed
14072 the management of the returned type "as if" it were a class-wide
14074 (Expand_Dispatching_Constructor_Call): Replace call to
14075 Make_DT_Access_Action by direct call to Make_Function_Call.
14077 2007-06-06 Robert Dewar <dewar@adacore.com>
14078 Ed Schonberg <schonberg@adacore.com>
14080 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
14081 compute masking constant, since we now set Esize properly to the
14083 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
14084 to match the alignment.
14085 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
14086 packed arrays of 8 bits or less.
14088 * freeze.adb (Freeze_Entity): When freezing the formals of a
14089 subprogram, freeze the designated type of a parameter of an access type
14090 only if it is an access parameter.
14091 Increase size of C convention enumeration object
14092 (Freeze_Entity, array type case): Make sure Esize value is properly
14093 adjusted for the alignment if it is known.
14094 (Freeze_Entity, array type case): When checking bit packed arrays for
14095 the size being incorrect, check RM_Size, not Esize.
14096 (Freeze_Record_Type): Check for bad discriminated record convention
14097 (In_Exp_Body): Return true if the body is generated for a subprogram
14098 renaming, either an attribute renaming or a renaming as body.
14099 (Check_Itype): If the designated type of an anonymous access component
14100 is a non-protected subprogram type, indicate that it is frozen, to
14101 prevent out-of-scope freeze node at some subsequent call.
14102 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
14103 only if the subprogram is neither imported nor exported, as well as the
14104 NCA descriptor class if the subprogram is exported.
14106 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14107 Arnaud Charlet <charlet@adacore.com>
14108 Robert Dewar <dewar@adacore.com>
14109 Gary Dismukes <dismukes@adacore.com>
14111 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
14112 default initialization on an imported object, when there is no
14113 initialization call generated for it.
14114 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
14117 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
14118 Static_Elaboration_Desired.
14119 Remove pragma Thread_Body.
14120 Implement a new pragma No_Body
14121 Removes the Explicit_Overriding pragma
14122 Remove Optional_Overriding pragma
14123 (Prag): Deal with Universal_Aliasing.
14124 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14125 Pragma_CIL_Constructor): New names.
14127 * sem_cat.adb (Validate_Object_Declaration): An initialization that
14128 uses the equivalent aggregate of a type must be treated as an implicit
14130 (Get_Categorization): Check a unit for pragma Preelaborate only if it
14131 has none of the other categories.
14132 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
14133 to apply Import to an object renaming declaration.
14135 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
14136 from a C++ class should be declared as limited and that it will be
14137 considererd limited.
14138 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
14139 should be declared as limited and that it will be considererd limited.
14140 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
14141 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
14142 (Analyze_Pragma): Deal with Universal_Aliasing.
14143 (Sig_Flags): Likewise.
14144 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
14145 (Overflow_Checks_Unsuppressed): New flag.
14146 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
14147 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
14148 case of JVM or .NET targets, and compiling user code.
14149 Add debugging convenience routine rv
14151 2007-06-06 Robert Dewar <dewar@adacore.com>
14153 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
14154 are interface type.
14155 (Build_Elementary_Input_Call): For floating-point use right type in the
14156 absence of strange size or stream size clauses.
14157 (Build_Elementary_Write_Call): Same fix
14158 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
14159 set to value that does not match base type size.
14161 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14163 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
14164 object of a limited type can be initialized with a call to a function
14165 that returns in place. If the limited type has unknown discriminants,
14166 and the underlying type is a constrained composite type, build an actual
14167 subtype from the function call, as is done for private types.
14168 (Side_Effect_Free): An expression that is the renaming of an object or
14169 whose prefix is the renaming of a object, is not side-effect free
14170 because it may be assigned through the renaming and its value must be
14171 captured in a temporary.
14172 (Has_Controlled_Coextensions): New routine.
14173 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
14174 as is done for other limited types.
14175 (Non_Limited_Designated_Type): new predicate.
14176 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
14178 Remove all handling of with_type clauses.
14180 * par-ch10.adb: Remove all handling of with_type clauses.
14182 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
14183 checksum if the main source could not be parsed.
14184 (Loat_Unit): When processing a child unit, determine properly whether
14185 the parent unit is a renaming when the parent is itself a child unit.
14186 Remove handling of with_type clauses.
14188 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
14189 (Set_Is_Static_Coextension): New procedure.
14190 (Has_Local_Raise): New function
14191 (Set_Has_Local_Raise): New procedure
14192 (Renaming_Exception): New field
14193 (Has_Init_Expression): New flag
14194 (Delay_Finalize_Attach): Remove because flag is obsolete.
14195 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
14196 Remove all handling of with_type clauses.
14197 (Exception_Junk): Can now be set in N_Block_Statement
14199 2007-06-06 Vincent Celier <celier@adacore.com>
14200 Robert Dewar <dewar@adacore.com>
14202 * frontend.adb (Frontend): Return immediately if the main source could
14203 not be parsed, because of preprocessing errors.
14205 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
14206 (Gnat1drv): Exit with errors if the main source could not be parsed,
14207 because of preprocessing errors.
14208 (Check_Rep_Info): New procedure
14210 2007-06-06 Robert Dewar <dewar@adacore.com>
14212 * g-hesorg.ads, g-heasor.ads,
14213 g-busorg.ads, g-bubsor.ads: Update documentation
14214 GNAT.Heap/Bubble_Sort_G is now pure
14216 2007-06-06 Robert Dewar <dewar@adacore.com>
14218 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
14220 2007-06-06 Robert Dewar <dewar@adacore.com>
14221 Ed Schonberg <schonberg@adacore.com>
14223 * g-comlin.ads, g-comlin.adb:
14224 Add new warning for renaming of function return objects
14226 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
14227 (Tree_Read): Use size of object instead of type'object_size, since the
14228 latter is incorrect for packed array types.
14229 (Tree_Write): Same fix
14231 * opt.ads: Add new warning for renaming of function return objects
14232 (Generating_Code): New boolean variable used to indicate that the
14233 frontend as finished its work and has called the backend to process
14234 the tree and generate the object file.
14235 (GCC_Version): Is now private
14236 (Static_Dispatch_Tables): New constant declaration.
14237 (Overflow_Checks_Unsuppressed): New flag.
14238 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
14239 (List_Closure): New flag for gnatbind (-R)
14240 Zero_Formatting: New flag for gnatbind (-Z)
14241 (Special_Exception_Package_Used): New flag.
14242 (Warn_On_Unrepped_Components): New flag.
14244 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
14245 unit is a compilation unit, rather than relying on its scope, so that
14246 Standard can be renamed.
14247 (Analyze_Object_Renaming): Add new warning for renaming of function
14249 Also reject attempt to rename function return object in Ada 83 mode.
14250 (Attribute_Renaming): In case of tagged types, add the body of the
14251 generated function to the freezing actions of the type.
14252 (Find_Type): A protected type is visible right after the reserved word
14253 "is" is encountered in its type declaration. Set the entity and type
14254 rather than emitting an error message.
14255 (New_Scope): Properly propagate Discard_Names to inner scopes
14256 (Check_Nested_Access): New procedure.
14257 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
14258 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14260 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
14261 Add new warning for renaming of function return objects
14262 (Check_References): Suppress warnings for objects whose type or
14263 base type has Warnings suppressed.
14264 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
14265 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
14267 2007-06-06 Vincent Celier <celier@adacore.com>
14268 Emmanuel Briot <briot@adacore.com>
14269 Olivier Hainque <hainque@adacore.com>
14271 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
14272 absolute value of Header.Block_Size when displaying the freed physical
14274 (Allocate): Compute Storage_Address using Integer_Address, not
14275 Storage_Offset, because the range of Storage_Offset may not be large
14277 (Configure): New parameter Low_Level_Traces
14278 (Allocate, Deallocation, Free_Physically): Added low-level traces
14279 (Configure): new parameter Errors_To_Stdout.
14280 (Output_File): new subprogram
14281 (Deallocate, Dereference): Send error messages to the proper stream
14282 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
14283 documented. Previous code would send it to the current output file
14284 defined in GNAT.IO, which might not be stdout
14285 (Is_Valid): Adjust comment to mention that a positive reply means that
14286 Header_Of may be used to retrieve the allocation header associated with
14287 the subprogram Storage address argument. Return False early if this
14288 address argument is misaligned.
14290 2007-06-06 Vincent Celier <celier@adacore.com>
14292 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
14294 (ASIS_Main): New global variable
14295 (Get_Closure): New procedure
14296 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
14297 check, metric or pretty. Call Get_Closure in this case.
14298 (Check_Files): For GNAT LIST, check all sources of all projects when
14299 All_Projects is True.
14300 (GNATCmd): Accept -U for GNAT LIST
14302 2007-06-06 Vincent Celier <celier@adacore.com>
14304 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
14306 Correct error message when invocation of the linker fails
14307 Add explicit size clause for the C imported variables
14308 Object_List_File_Supported and Using_GNU_Linker to emphasize that
14309 we expect char size.
14310 Read target parameters earlier, since this is needed to set
14311 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
14314 2007-06-06 Vincent Celier <celier@adacore.com>
14317 Add 3 spaces before the default project directory when displaying
14318 the project search path.
14319 Add new command line switch '-l' to display license information.
14321 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
14323 * gmem.c: Add support for timestamps on memory operations.
14325 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
14326 operations (not used currently, just foundation for future
14327 enhancements). Add possibility to perform full dump of gmem.out file.
14328 (Print_Back_Traces): Declare accesses to root arrays constants since
14329 they aren't modified.
14330 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
14332 2007-06-06 Vincent Celier <celier@adacore.com>
14334 * gnatsym.adb: Update Copyright notice
14335 (Parse_Cmd_Line): Accept new switch -D
14336 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
14339 * prj.ads (Policy): New policy Direct
14340 (Yes_No_Unknown): New enumeration type
14341 (Project_Data): New component Libgnarl_Needed
14343 * prj-nmsc.adb (Check_For_Source): When recording a source file make
14344 use the untouched pathname casing.
14345 (Get_Directories): Ensure that the Display_Exec_Directory is using the
14346 proper casing on non case-sensitive platforms like Windows.
14347 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
14348 on all platforms, as it is not possible to know which one is allowed
14349 before processing the project files.
14350 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
14351 specified when symbol policy is Direct. Check that when there is a
14352 symbol file defined (either by default or with attribute
14353 Library_Symbol_File) it is not the same as the reference symbol file.
14354 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
14355 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
14356 extending projects.
14357 (Record_Ada_Source): Record a source that has been locally removed in an
14360 * symbols.ads (Policy): New policy Direct
14362 * symbols-vms.adb (Initialize): Take new policy Direct in case
14365 2007-06-06 Vincent Celier <celier@adacore.com>
14367 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
14368 Correct obvious bug (return Dir; instead of return Directory;).
14369 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
14371 2007-06-06 Thomas Quinot <quinot@adacore.com>
14373 * g-pehage.adb (Produce): Open output files in Binary mode, so that
14374 they have UNIX line endings (LF only) even on Windows, and thus pass
14375 all GNAT style checks.
14377 2007-06-06 Emmanuel Briot <briot@adacore.com>
14379 * g-regpat.adb (Quote): Fix improper quoting of '.'
14381 2007-06-06 Thomas Quinot <quinot@adacore.com>
14383 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
14384 default, set False on a per-runtime basis.
14385 (Need_Netdb_Buffer): New constant.
14387 * g-socket.ads, g-socket.adb: Import new package
14388 GNAT.Sockets.Thin.Task_Safe_NetDB.
14389 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
14390 binding to obtain proper message.
14391 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
14392 Replace various occurrences of Arry (Arry'First)'Address with the
14393 equivalent Arry'Address (GNAT always follows implementation advice from
14395 (Get_Host_By_Address, Get_Host_By_Name,
14396 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
14397 instead, rely on platform-specific task safe netdb operations provided
14400 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
14401 parameter Process_Blocking_IO.
14402 (Host_Error_Messages): Add stub body.
14403 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14404 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
14405 Safe_Getservbyport): Move functions into new child package
14407 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
14408 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
14409 (In_Addr): Add alignment clause.
14411 2007-06-06 Robert Dewar <dewar@adacore.com>
14413 * g-trasym.ads, g-traceb.ads: Update list of supported targets
14414 Add note about symbolic traceback
14416 2007-06-06 Pascal Obry <obry@adacore.com>
14418 * hostparm.ads (Normalized_CWD): Use the host directory separator
14419 instead of the hardcoded forward slash which is not the proper
14420 character on Windows for example.
14421 (Java_VM): Removed.
14423 2007-06-06 Vincent Celier <celier@adacore.com>
14424 Arnaud Charlet <charlet@adacore.com>
14426 * a-clrefi.adb, a-clrefi.ads: New files
14428 * impunit.adb: Add s-os_lib in the list of user visible units.
14429 (Non_Imp_File_Names_95): Add a-clrefi to this list
14430 Remove obsolete run-time entries.
14431 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
14432 "a-exetim" -- Ada.Execution_Time
14433 "a-extiti" -- Ada.Execution_Time.Timers
14435 * mlib-prj.ads, mlib-prj.adb
14436 (Build_Library): Use untouched object dir and library dir. At the
14437 same time makes sure that the checks are done using the canonical
14438 form. Removes hard-coded directory separator and use the proper host
14440 (Process_Project): Do not look in object directory to check if libgnarl
14441 is needed for a library, if there is no object directory.
14442 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
14444 (Build_Library): When invoking gnatbind, use a response file if the
14445 total size of the arguments is too large.
14447 * Makefile.rtl: (g-sttsne): New object file.
14448 Add entry for a-clrefi, s-utf_32, System.Exceptions
14450 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
14451 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
14452 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
14453 Change g-string to s-string, g-os_lib to s-os_lib
14454 Change all g-utf_32 references to s-utf_32
14456 2007-06-06 Tristan Gingold <gingold@adacore.com>
14457 Olivier Hainque <hainque@adacore.com>
14459 * init.c: Do not adjust IP of an imported VMS exception of ia64.
14460 LIB$STOP is called to raise an exception and the IP of the exception
14461 is the instruction right after the call.
14462 (__gnat_adjust_context_for_raise, AIX): Implement.
14463 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
14464 adjust_context_for_raise before Raise_From_Signal_Hanler.
14465 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
14466 siginfo is passed to the handler, necessary to let the zcx propagation
14467 engine unwind past it.
14469 2007-06-06 Olivier Hainque <hainque@adacore.com>
14471 * initialize.c (__gnat_initialize for vxworks): Update documentation
14472 on the ZCX support, using different sets of crtstuff objects than with
14475 2007-06-06 Robert Dewar <dewar@adacore.com>
14477 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
14479 (Layout_Type): Fix recomputation of size from alignment.
14481 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14482 Javier Miranda <miranda@adacore.com>
14484 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
14485 association in an instance.
14486 (Copy_Generic_Node): If the node is a string literal, no need to copy
14488 (Is_Generic_Formal): For a formal subprogram, the declaration is the
14489 grandparent of the entity.
14490 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
14491 to simplify handling of formal interfaces that derive from other formal
14493 (Instantiate_Subprogram_Body): The defining unit name of the body of
14494 the instance should be a defining identifier.
14495 (Install_Formal_Packages): make global to the package, for use in
14496 instantiations of child units.
14497 (Analyze_Package_Instantiation): Do not attempt to set information on an
14498 enclosing master of an entry when expansion is disabled.
14499 (Instantiate_Type): If the actual is a tagged synchronized type and the
14500 generic ancestor is an interface, create a generic actual for the
14501 corresponding record.
14502 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
14503 declaration, to ensure that the interface list is processed correctly.
14504 (Inline_Instance_Body): If enclosing scope is an instance body, remove
14505 its entities from visibiility as well.
14506 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
14507 given with a named association, analyze the expression only, not the
14508 discriminant association itself.
14509 (Reset_Entity): If the analysis of a selected component is transformed
14510 into an expanded name in the prefix of a call with parameters, do not
14511 transform the original node into an expanded name, to prevent visibility
14512 errors in the case of nested generics.
14513 (Check_Private_View): For an array type, check whether the index types
14514 may need exchanging.
14516 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14517 Vincent Celier <celier@adacore.com>
14519 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
14520 since both are separated.
14521 Add support for imported CIL packages.
14522 Add further special handling of "value_type" for CIL.
14523 Add special handling of pragma Import for CIL.
14525 * make.ads, make.adb: When switch -eS is used, direct all outputs to
14526 standard output instead of standard error, except errors.
14527 (Absolute_Path): Use untouched casing for the parent directory.
14528 (Add_Library_Search_Dir): Use the untouched directory name.
14529 (Add_Source_Search_Dir): Idem.
14530 (Change_To_Object_Directory): Update output to use proper casing.
14531 (Create_Binder_Mapping_File): Use the untouched filename to set
14533 (Gnatmake): Use untouched library and executable directory names.
14534 (Insert_Project_Sources): Use untouched filename for spec and body.
14535 (Is_In_Object_Directory): Use untouched object directory.
14536 (Mark_Directory): Idem.
14537 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
14538 contains the non-canonical filename in all cases.
14539 (Change_To_Object_Directory): In verbose mode, display the name of the
14540 object directory we're changing to.
14541 (Compile_Sources): Make sure, when a project file is used, to compile
14542 the body of the unit, when there is one, even when only the spec is
14543 recorded in an ALI file.
14544 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
14546 (Report_Compilation_Failed): New procedure
14547 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
14548 procedures moved from the spec to the body.
14549 (Extract_Failure): Removed, not used
14550 Replace explicit raises of exception Bind_Failed and Link_Failed with
14551 calls to Make_Failed with the proper message.
14552 Replace explicit raises of exception Compilation_Failed with calls to
14553 procedure Report_Compilation_Failed.
14554 (Initialize): Create mapping files unconditionally when using project
14557 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14558 Pragma_CIL_Constructor): New names.
14560 * targparm.ads, targparm.adb
14561 (Compiler_System_Version): Removed, no longer used.
14562 (Get_Target_Parameters): Relax checks on system.ads validity. Add
14563 handling of two new system flags: JVM and CLI.
14565 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14566 Arnaud Charlet <charlet@adacore.com>
14568 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
14569 time, use the default s-interr body that provides interrupt support
14571 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
14572 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
14573 g-soccon.ads, and s-taprop.adb for the marte run time.
14574 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
14575 timers are supported on marte.
14576 (EH_MECHANISM for marte): Do not use ZCX.
14577 (THREADSLIB for marte): Use -lmarte.
14578 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
14579 Add mlib-tgt-specific.o to gnatmake objects
14580 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
14581 longer of MLib.Tgt.
14582 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
14583 6, either kernel or rtp, use a specialized version of s-osinte.ads.
14585 2007-06-06 Pascal Obry <obry@adacore.com>
14587 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
14589 2007-06-06 Vincent Celier <celier@adacore.com>
14591 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
14592 separator, use instead the proper host directory separator.
14593 (Copy_ALI_Files): Make sure that an already existing ALI file in the
14594 ALI copy dir is writable, before doing the copy.
14596 * mlib-utl.ads, mlib-utl.adb:
14597 (Gcc): If length of command line is too long, put the list of object
14598 files in a response file, if this is supported by the platform.
14599 (Ar): If invocation of the archive builder is allowed to be done in
14600 chunks and building it in one shot would go above an OS dependent
14601 limit on the number of characters on the command line, build the archive
14604 2007-06-06 Vincent Celier <celier@adacore.com>
14606 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
14607 of specified object file is not equal to base name of source.
14609 2007-06-06 Javier Miranda <miranda@adacore.com>
14610 Hristian Kirtchev <kirtchev@adacore.com>
14611 Ed Schonberg <schonberg@adacore.com>
14613 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
14614 the full type declaration.
14615 (Analyze_Component_Declaration): Add local variable E to capture the
14616 initialization expression of the declaration. Replace the occurences of
14617 Expression (N) with E.
14618 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
14619 limited interface object with a function call.
14620 (Array_Type_Declaration): If the declaration lacks subtype marks for
14621 indices, create a simple index list to prevent cascaded errors.
14622 (Is_Null_Extension): Ignore internal components created for secondary
14623 tags when checking whether a record extension is a null extension.
14624 (Check_Abstract_Interfaces): Add missing support for interface subtypes
14625 and generic formals.
14626 (Derived_Type_Declaration): Add missing support for interface subtypes
14627 and generic formals.
14628 (Analyze_Object_Declaration): If an initialization expression is
14629 present, traverse its subtree and mark all allocators as static
14631 (Add_Interface_Tag_Component): When looking for components that may be
14632 secondary tags, ignore pragmas that can appear within a record
14634 (Check_Abstract_Overriding): an inherited function that dispatches on
14635 result does not need to be overriden if the controlling type is a null
14637 (Mentions_T): Handle properly a 'class attribute in an anonymous access
14638 component declaration, when the prefix is an expanded name.
14639 (Inherit_Component): If the derivation is for a private extension,
14640 inherited components remain visible and their ekind should not be set
14642 (Find_Type_Of_Object): In the case of an access definition, always set
14643 Is_Local_Anonymous_Access. We were previously not marking the anonymous
14644 access type of a return object as a local anonymous type.
14645 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
14646 range with character literal bounds.
14647 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
14648 (Access_Subprogram_Declaration): Indicate that the type declaration
14649 depends on an incomplete type only if the incomplete type is declared
14651 (Analyze_Subtype_Declaration): Handle properly subtypes of
14652 synchronized types that are tagged, and that may appear as generic
14654 (Access_Subprogram_Declaration): An anonymous access to subprogram can
14655 appear as an access discriminant in a private type declaration.
14656 (Add_Interface_Tag_Components): Complete decoration of the component
14657 containing the tag of a secondary dispatch table and the component
14658 containing the offset to the base of the object (this latter component
14659 is only generated when the parent type has discriminants --as documented
14661 (Inherit_Components): Use the new decoration of the tag components to
14662 improve the condition that avoids inheriting the components associated
14663 with secondary tags of the parent.
14664 (Build_Discriminanted_Subtype): Indicate to the backend that the
14665 size of record types associated with dispatch tables is known at
14667 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
14668 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
14669 to include task, protected, and synchronized interfaces as limited
14671 (Process_Discriminants): Remove the setting of
14672 Is_Local_Anonymous_Access on the type of (anonymous) access
14673 discriminants of nonlimited types.
14674 (Analyze_Interface_Type_Declaration): Complete the decoration of the
14675 class-wide entity it is is already present. This situation occurs if
14676 the limited-view has been previously built.
14677 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
14679 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
14682 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14684 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
14685 of the type that specify the position of interface tags when the type
14686 inherits discriminated array components from the parent type.
14687 If a component is initialized with a box, check for the presence of a
14688 default expression in its declaration before using its default
14689 initialization procedure.
14690 (Resolve_Record_Aggregate): If a component is box-initialized, and the
14691 component type has a discriminants, create a partial aggregate for it
14692 by copying the discriminants of the component subtype.
14693 Reject attempt to initialize a discriminant with a box.
14694 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14695 associated with dispatch tables is known at compile time.
14696 (Get_Value): If an association in a record aggregate has a box
14697 association, and the corresponding record component has a default
14698 expression, always copy the default expression, even when the
14699 association has a single choice, in order to create a proper
14700 association for the expanded aggregate.
14702 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14703 Robert Dewar <dewar@adacore.com>
14705 * par-ch12.adb (P_Generic_Associations): The source position of an
14706 Others association is that of the others keyword, not that of the token
14707 that follows the box.
14708 (P_Formal_Type_Definition): Handle formal access types that carry a
14709 not null indicator.
14711 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14712 multiple identifier are present, save Scan_State before scanning the
14713 colon, to ensure that separate trees are constructed for each
14715 (P_Identifier_Declarations): For object declaration, set new flag
14716 Has_Init_Expression if initialization expression present.
14717 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14718 Improve NOT NULL error messages
14720 2007-06-06 Robert Dewar <dewar@adacore.com>
14722 * par-ch4.adb: (P_Name): Recover from literal used as name
14724 2007-06-06 Vincent Celier <celier@adacore.com>
14726 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14727 defaulted to False.
14728 In the "not" case, recursive call with Complemented set to True.
14729 Do not allow "or" or "and" operators when Complemented is True.
14731 2007-06-06 Vincent Celier <celier@adacore.com>
14733 * prj.adb (Project_Empty): Gives default value for new component
14736 * prj-attr.ads: Minor reformatting
14738 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14739 directory using the untouched casing.
14740 (For_All_Source_Dirs): Idem.
14742 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14743 directories specified with switches -aP.
14744 (Add_Search_Project_Directory): New procedure
14745 (Initialize_Project_Path): Put the directories in table
14746 Search_Directories in the project search path.
14747 (Initialize_Project_Path): For VMS, transform into canonical form the
14750 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14752 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14753 true if configurable run-time or No_Run_Time is set.
14754 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14755 processing an unit which is not the one being compiled.
14757 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14759 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14760 Replace UC by Ada.UC
14762 * s-bitops.adb: Get rid of System.Pure_Exceptions.
14763 Replace UC by Ada.UC
14765 2007-06-06 Robert Dewar <dewar@adacore.com>
14767 * scng.adb: (Check_End_Of_Line): Deal with very long lines
14769 2007-06-06 Robert Dewar <dewar@adacore.com>
14771 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14772 Remove no longer used nodes.
14774 2007-06-06 Javier Miranda <miranda@adacore.com>
14775 Ed Schonberg <schonberg@adacore.com>
14776 Robert Dewar <dewar@adacore.com>
14778 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14779 on obsolescent withed unit in case of limited-withed units.
14780 (Analyze_Compilation_Unit): Add guard to code that removed an
14781 instantiation from visibility, to prevent compiler aborts when
14782 instantiation is abandoned early on.
14783 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14784 current unit being analyzed, and Distinguish local incomplete types
14785 from limited views of types declared elsewhere.
14786 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14787 to state that the class-wide entity is shared by the limited-view
14789 (Analyze_With_Clause): Improve placement of flag for case of
14790 unimplemented unit.
14791 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14792 manner similar to GNAT.Current_Exception. This is a violation of
14793 restriction (No_Exception_Propagation), and also inhibits the
14794 optimization of local raise to goto.
14795 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14796 and if so set Most_Recent_Exception_Used flag in Opt, and also check
14797 for violation of restriction No_Exception_Propagation.
14799 2007-06-06 Javier Miranda <miranda@adacore.com>
14800 Hristian Kirtchev <kirtchev@adacore.com>
14801 Gary Dismukes <dismukes@adacore.com>
14803 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14804 use of entity Exception_Occurrence if it is not available in the
14807 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14808 concurrent types are declared within an Ada 2005 generic, build their
14809 corresponding record types since they are needed for overriding-related
14811 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14812 protected type does not implement a task interface or a nonlimited
14814 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14815 type does not implement a protected interface or a nonlimited interface.
14816 (Single_Task_Declaration, Single_Protected_Declaration): use original
14817 entity for variable declaration, to ensure that debugging information
14818 is correcty generated.
14819 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14820 routines if the expander is not active.
14821 (Analyze_Task_Body): Mark all handlers to stop optimization of local
14822 raise, since special things happen for task exception handlers.
14824 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14825 concurrent types declared within a generic.
14826 (Check_Dispatching_Operation): Do not emit warning about late interface
14827 operations in the context of an instance.
14828 (Check_Dispatching_Call): Remove restriction against calling a
14829 dispatching operation with a limited controlling result.
14830 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14831 Register_Interface_DT_Entry by calls to Register_Primitive.
14832 (Check_Dispatching_Formals): Handle properly a function with a
14833 controlling access result.
14835 2007-06-06 Robert Dewar <dewar@adacore.com>
14836 Arnaud Charlet <charlet@adacore.com>
14838 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14839 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14840 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14841 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14842 message when using a VM, since this attribute is not supported.
14843 (Analyze_Record_Representation_Clause): Give unrepped component warnings
14845 * usage.adb: Add new warning for renaming of function return objects
14846 Indicate that -gnatwp and -gnatwP concern front-end inlining
14847 Add line for -gnatyg
14848 Add usage information for -gnatw.c/C
14850 2007-06-06 Robert Dewar <dewar@adacore.com>
14851 Ed Schonberg <schonberg@adacore.com>
14854 (Find_Var): Do not consider function call in test for infinite loop
14855 warning if warnings set off for function entity.
14856 (One_Bound): Do not create a temporary for a loop bound if it is a
14858 (Analyze_Assignment): Traverse the right hand side of an assignment and
14859 mark all allocators as static coextensions.
14860 (Analyze_Assignment): Exempt assignments involving a dispatching call
14861 to a function with a controlling access result from the check requiring
14862 the target to be class-wide.
14864 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14865 Ed Schonberg <schonberg@adacore.com>
14866 Robert Dewar <dewar@adacore.com>
14867 Javier Miranda <miranda@adacore.com>
14869 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14870 chain of coextensions when an allocator serves as the root of such a
14872 (Propagate_Coextensions): Remove the test for the root being an
14874 (Resolve_Allocator): Add condition to ensure that all future decoration
14875 occurs on an allocator node. Add processing and cleanup for static
14877 (Valid_Conversion): If the operand type is the limited view of a
14878 class-wide type, use the non-limited view is available to determine
14879 legality of operation.
14880 (Ambiguous_Character): move to spec, for use elsewhere.
14881 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14882 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14883 character literals.
14884 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14885 Do_Division_Check flag explicitly.
14886 (Resolve_Actuals): If the actual is of a synchronized type, and the
14887 formal is of the corresponding record type, this is a call to a
14888 primitive operation of the type, that is declared outside of the type;
14889 the actual must be unchecked-converted to the type of the actual
14890 (Resolve_Call): Kill all current values for any subprogram call if
14891 flag Suppress_Value_Tracking_On_Call is set.
14892 (Resolve_Type_Conversion): Generate error message the the operand
14893 or target of interface conversions come from a limited view.
14894 (Check_Infinite_Recursion): Ignore generated calls
14895 (Check_Allocator_Discrim_Accessibility): New procedure for checking
14896 that an expression that constrains an access discriminant in an
14897 allocator does not denote an object with a deeper level than the
14898 allocator's access type.
14899 (Resolve_Allocator): In the case of an allocator initialized by an
14900 aggregate of a discriminated type, check that associations for any
14901 access discriminants satisfy accessibility requirements by calling
14902 Check_Allocator_Discrim_Accessibility.
14903 (Resolve_Equality_Op): Handle comparisons of anonymous access to
14904 subprogram types in the same fashion as other anonymous access types.
14905 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14906 message that is not a continuation message.
14907 (Resolve_Type_Conversion): Add missing support for conversion to
14909 (Resolve_Actuals): Introduce a transient scope around the call if an
14910 actual is a call to a function returning a limited type, because the
14911 resulting value must be finalized after the call.
14912 (Resolve_Actuals): If the call was given in prefix notations, check
14913 whether an implicit 'Access reference or implicit dereference must be
14914 added to make the actual conform to the controlling formal.
14916 2007-06-06 Robert Dewar <dewar@adacore.com>
14917 Javier Miranda <miranda@adacore.com>
14919 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14920 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14921 overriding of an inherited private subprogram now there is no need to
14922 inherit its dispatching slot and reduce the size of the dispatch table.
14923 Set_All_DT_Position now ensures that the same slot is now assigned to
14924 both entities. This is required to statically build the dispatch table.
14925 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14926 of calling Set_All_DT_Position to re-evaluate the position of the
14927 entries in the dispatch table. Such reevaluation is not desired if
14928 the tagged type is already frozen.
14930 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14931 Gary Dismukes <dismukes@adacore.com>
14932 Robert Dewar <dewar@adacore.com>
14933 Javier Miranda <miranda@adacore.com>
14935 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14936 reference acts as an lvalue when the attribute name modifies the prefix
14937 (Is_Coextension_Root): New routine.
14938 (Mark_Static_Coextensions): New routine.
14939 (Type_Access_Level): Revise code for checking the level of the
14940 anonymous access type of a return object.
14941 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14942 (Matches_Prefixed_View_Profile): Remove the no longer necessary
14943 retrieval of the corresponding controlling record type.
14944 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14945 concurrent types declared within a generic as well as class wide types.
14946 Emit a mode incompatibility error whenever a protected entry or routine
14947 override an interface routine whose first parameter is not of mode
14948 "out", "in out" or access to variable.
14949 (Overrides_Synchronized_Primitive): Rename to
14950 Find_Overridden_Synchronized_Primitive.
14951 (Collect_Interface_Components): New subprogram that collects all the
14952 components of a tagged record containing tags of secondary dispatch
14954 (Add_Global_Declaration): New procedure
14955 (Abstract_Interface_List): Handle properly the case of a subtype of a
14957 (Type_Access_Level): In the case of a type whose parent scope is a
14958 return statement, call Type_Access_Level recursively on the enclosing
14959 function's result type to determine the level of the return object's
14961 (Build_Elaboration_Entity): Build name of elaboration entity from the
14962 scope chain of the entity, rather than the unit name of the file name.
14963 (Check_Nested_Access): New procedure.
14964 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14965 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14966 (Get_Renamed_Entity): Utility routine for performing common operation
14967 of chasing the Renamed_Entity field of an entity.
14969 2007-06-06 Robert Dewar <dewar@adacore.com>
14971 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14973 (Check_A_Call): Add check for entry call which was causing blowup
14975 2007-06-06 Olivier Hainque <hainque@adacore.com>
14977 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14978 special code on ia64-vms to handle major incompatibilities between the
14979 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14980 this routine with a very different set of arguments and expectations on
14983 2007-06-06 Thomas Quinot <quinot@adacore.com>
14985 * socket.c (__gnat_close_signalling_fd): New function.
14986 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14987 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14988 New supporting functions for task safe Netdb operations.
14990 2007-06-06 Thomas Quinot <quinot@adacore.com>
14991 Olivier Hainque <hainque@adacore.com>
14993 * a-except-2005.ads, a-except-2005.adb
14994 (Raise_From_Controlled_Operation): New procedure in
14995 (private part of) Ada.Exceptions (standard runtime version). Used to
14996 provide informational exception message when Program_Error is raised as
14997 a result of an Adjust or Finalize operation propagating an exception.
14998 (Rmsg_28): Fix description for E.4(18) check.
14999 (Raise_Current_Excep): Call Debug_Raise_Exception just before
15000 propagation starts, to let debuggers know about the event in a reliable
15002 Take the address of E and dereference to make sure it is homed on stack
15003 and prevent the stores from being deleted, necessary for proper
15004 debugger behavior on "break exception" hits.
15005 (Local_Raise): Moved to System.Exceptions
15007 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
15008 exception message from the current occurrence and raise Program_Error
15009 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
15011 2007-06-06 Jose Ruiz <ruiz@adacore.com>
15012 Arnaud Charlet <charlet@adacore.com>
15014 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
15017 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
15018 priority associated to a lock.
15020 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
15021 assertion to take into account case of no abort restriction.
15022 (Initialize_Protection_Entries): Add initialization for the field
15023 New_Ceiling associated to the protected object.
15024 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
15027 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
15028 since this function needs to be set consistently with Update_Exception.
15030 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
15031 since this function needs to be set consistently with Update_Exception.
15033 * s-taskin.ads: Update comments on
15034 Interrupt_Server_Blocked_On_Event_Flag.
15035 (Unbind_Handler): Fix handling of server_task wakeup
15036 (Server_Task): Set self's state so that Unbind_Handler can take
15037 appropriate actions.
15038 (Common_ATCB): Now use a constant from System.Parameters to determine
15039 the max size of the Task_Image field.
15041 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
15042 Initialize_Analyzer function.
15043 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
15044 take into account case of no abort restriction.
15045 ([Vulnerable_]Complete_Master): Modify assertion.
15047 * s-tataat.adb (Finalize): Use the nestable versions of
15048 Defer/Undefer_Abort.
15050 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
15052 * s-tpobop.ads: Update comments.
15054 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
15055 of locking the object manually, to avoid inconsistencies between
15056 Lock/Unlock_Entry assertions.
15058 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
15060 application and System.Parameters.No_Abort is True.
15061 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
15062 (Unbind_Handler): Fix handling of server_task wakeup
15063 (Server_Task): Set self's state so that Unbind_Handler can take
15064 appropriate actions.
15066 2007-06-06 Thomas Quinot <quinot@adacore.com>
15068 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
15069 declarations instead of an explicit null body, for conciseness.
15071 2007-06-06 Robert Dewar <dewar@adacore.com>
15073 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
15074 illegal aggregate and the type is still Any_Composite.
15075 (Subtypes_Statically_Match): Fix problem of empty discriminant list
15077 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15079 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
15080 to prevent subsequent expansion.
15082 2007-06-06 Robert Dewar <dewar@adacore.com>
15084 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
15086 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15087 Robert Dewar <dewar@adacore.com>
15089 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
15091 (Write_Itype): Handle case of string literal subtype, which
15092 comes up in this context.
15093 (Update_Itype): when debugging expanded code, update sloc of itypes
15094 associated with defining_identifiers and ranges, for gdb use.
15095 (Sprint_Node_Actual): Add static keyword to object or exception
15096 declaration output if Is_Statically_Allocated is True.
15097 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
15098 or task body, so that the tree carries the proper Sloc information for
15100 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
15102 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15104 * s-secsta.adb (Chunk): Ensure this object has a static size known at
15105 compile time, to avoid dynamic memory allocation
15106 (Elaboration code): Only use dynamic memory allocation when needed.
15108 2007-06-06 Quentin Ochem <ochem@adacore.com>
15110 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
15112 (Stack_Analyzer): Added field "Overflow_Guard"
15113 (Task_Result): Added field "Overflow_Guard".
15114 (Index_Str): New constant.
15115 (Task_Name_Str): New constant.
15116 (Actual_Size_Str): New constant.
15117 (Pattern_Array_Element_Size): New constant.
15118 (Get_Usage_Range): New subprogram.
15119 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
15120 Now align the output.
15122 (Initialize): Added value for Overflow_Guard.
15123 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
15124 Update the value of the overflow guard according to the actual
15125 beginning of the pattern array.
15126 (Initialize_Analyzer): Added parameter Overflow_Guard.
15127 Take this parameter into accound when computing the max size.
15128 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
15129 (Report_Result): Removed extra useless procedure.
15130 Updated call to Output_Result.
15131 Moved full computation of the Task_Result here.
15133 2007-06-06 Thomas Quinot <quinot@adacore.com>
15135 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
15136 Thread_Blocking_IO, always True by default, set False on a per-runtime
15138 Add Windows-specific constants
15139 Add new constant Need_Netdb_Buffer.
15140 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
15141 not, whether to use getXXXbyYYY_r.
15143 * gsocket.h: Add new constant Need_Netdb_Buffer.
15144 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
15145 not, whether to use getXXXbyYYY_r.
15147 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
15149 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
15150 than their first call.
15151 Add type Dummy_Communication_Block used in the generation of the pre-
15152 defined dispatching primitive _disp_asynchronous_select.
15153 (Storage_Element): Put Pragma Universal_Aliasing on it.
15155 2007-06-06 Vincent Celier <celier@adacore.com>
15157 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
15160 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
15161 letter if it is not followed by a '/' or a '\'.
15162 (Windows): New Boolean function
15164 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
15166 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
15168 (Containing_Directory): Raise Use_Error when the directory is a root
15170 (Extension): When returning the result, use a conversion to Result_Type,
15171 not a qualification.
15173 2007-06-06 Robert Dewar <dewar@adacore.com>
15175 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
15176 (Set_Style_Check_Options): Recognize new -gnatyg style switch
15178 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
15179 Warn_On_Non_Local_Exception to False, to turn off warnings for
15180 No_Exception_Propagation in ZFP runtime.
15181 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
15183 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
15185 2007-06-06 Vincent Celier <celier@adacore.com>
15187 * switch-b.adb (Scan_Binder_Switches): Add processing for new
15190 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
15191 (Scan_Make_Switches): Recognize new switch -aP
15193 2007-06-06 Matthew Gingell <gingell@adacore.com>
15194 Jose Ruiz <ruiz@adacore.com>
15196 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
15197 VxWorks task descriptor in the Ada run time, call a C subprogram
15198 (__gnat_get_stack_info) that extracts the required information.
15200 * sysdep.c: Back out temporary lynxos workaround.
15201 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
15202 time the stack information associated to the currently executing task.
15203 Only VxWorks systems require this function.
15205 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
15207 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
15208 add the stack bias if the offset is computed from a frame address.
15209 (__gnat_backtrace): Adjust for above change.
15211 2007-06-06 Thomas Quinot <quinot@adacore.com>
15213 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
15214 PE_Non_Transportable_Actual.
15215 (By_Descriptor_Last): New constant.
15216 (By_Copy_Return): Likewise.
15218 2007-06-06 Vincent Celier <celier@adacore.com>
15220 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
15223 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
15224 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
15225 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
15226 Add missing comment for /OPTIMIZE=SPACE
15227 Add entry for OPTIMIZE=SPACE
15228 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
15229 Add documentation for new qualifiers corresponding to -gnatw.c/.C
15231 2007-06-06 Vincent Celier <celier@adacore.com>
15232 Robert Dewar <dewar@adacore.com>
15234 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
15237 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
15238 Document gnatbind switch -a
15239 (case Constructions): Document that variables declarations are allowed
15240 for previously declared variables.
15241 Fix external lib project example
15242 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
15243 Indicate that "#if not X or Y then" is not allowed in input files to
15245 Document gnatw.x and gnatw.X warning flags
15246 Mention -Winline switch to activate warnings when back-end inlining is
15248 Add gnatcheck rule descriptions
15249 Describe how to use the GNAT driver to call a tool on a closure.
15250 Describe how to run project-wide checks or metrics.
15251 Document gnatbind's -R option
15252 Updated to account for Ada 2005 support
15254 * gnat_rm.texi (Case Construction): Allow variable declarations for
15255 previously declared variables.
15256 (Representation Clauses and Pragmas): Lift restriction on alignment
15257 clauses for record types.
15258 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
15259 Document No_Exception_Propagation restriction
15260 Document No_Body pragma
15261 Updated to account for Ada 2005 support; corrected some typos
15262 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
15264 * gnat-style.texi: Make it clear that we never use mode IN for
15265 procedures or functions
15267 * ug_words: Add entries for -gnatw.x and -gnatw.X
15268 Add entries for -gnatw.c/.C
15270 2007-06-06 Pascal Obry <obry@adacore.com>
15271 Vincent Celier <celier@adacore.com>
15273 * makegpr.adb (Add_Archive_Path): Use untouched object and library
15274 dirs and library name.
15275 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
15277 (Build_Library): Idem.
15278 (Compile_Individual_Sources): Idem.
15279 (Compile_Link_With_Gnatmake): Idem.
15280 (Compile_Sources): Idem.
15281 (Get_Imported_Directories): Idem.
15282 (Link_Executables): Idem. Same change for the executable dir.
15283 (Check_Compilation_Needed): C_Source_Path new variable containing
15284 the canonical form of Source_Path to check against the source names
15285 in the dependency file.
15286 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
15287 verbose mode, display the name of the object directory we're changing
15289 (Saved_Switches): New name of table X_Switches
15290 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
15291 (Usage): New line for switch -aP
15292 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
15293 testing if a directory should be added to the search path.
15295 2007-06-06 Javier Miranda <miranda@adacore.com>
15297 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
15298 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
15299 declaration after freezing point of all its associated tagged types;
15300 otherwise such types are frozen too early.
15302 2007-06-06 Robert Dewar <dewar@adacore.com>
15304 * a-reatim.adb: Documentation addition
15306 * g-cgideb.adb: Minor code reorganization
15308 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
15309 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
15310 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
15312 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
15313 function. Change name New_Scope to Push_Scope
15314 (Get_Debug_Flag_K): Remove unused obsolete function.
15316 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
15319 * makeusg.adb: Update Copyright notice
15320 Add line for switch -aP
15322 * makeusg.adb: Fix wording of some usage messages
15324 * s-assert.adb (Raise_Assert_Failure): Add call to
15325 Debug_Raise_Assert_Failure.
15327 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
15328 (2, Standard'Alignment) for compatibility with AAMP (where alignment
15329 is restricted to 1).
15331 * s-wchjis.adb: Remove use of System.Pure_Exceptions
15333 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
15334 node location to No_Location when we're not debugging the expanded
15337 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
15339 * misc.c (enumerate_modes): Consider log2_b to always be one.
15341 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
15343 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
15345 2007-05-02 Pascal Obry <obry@adacore.com>
15347 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
15348 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
15349 encoding support of Stream_IO.
15350 (Write_Unit): Idem.
15352 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
15353 filename and corresponding encoding to match the OS requirement.
15354 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
15355 routine will fail on specific devices like CON: AUX: ...
15357 PR ada/29856: Add missing braces
15359 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
15362 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
15364 2007-04-21 Jan Hubicka <jh@suse.cz>
15366 * misc.c (gnat_expand_body): Don't call target for destructors,
15367 avoid redundant check on syntax errors.
15369 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
15371 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
15372 instead of checking GIMPLE_STMT_P in chain_next.
15374 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
15377 * system-linux-alpha.ads: Disable constant condition warning for the
15378 Default_Bit_Order variable.
15379 * system-linux-s390.ads: Likewise.
15380 * system-linux-s390x.ads: Likewise.
15381 * system-linux-sparc.ads: Likewise.
15383 2007-04-06 Javier Miranda <miranda@adacore.com>
15384 Matt Heaney <heaney@adacore.com>
15385 Robert Dewar <dewar@adacore.com>
15387 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
15388 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
15389 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
15390 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
15391 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
15392 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
15393 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
15394 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
15395 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
15396 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
15397 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
15398 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
15399 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
15400 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
15401 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
15402 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
15403 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
15404 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
15405 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
15406 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
15407 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
15408 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
15409 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
15410 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
15411 s-taprop-tru64.adb, s-taprop-irix.adb,
15412 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
15413 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
15414 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
15415 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
15416 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
15417 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
15418 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
15419 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
15420 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
15421 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
15422 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
15423 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
15424 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
15425 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
15426 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
15427 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
15428 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
15429 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
15430 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
15431 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
15433 Update documentation.
15436 2007-04-06 Robert Dewar <dewar@adacore.com>
15438 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
15439 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
15440 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
15441 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
15442 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
15443 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
15444 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
15445 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
15446 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
15447 system-hpux-ia64.ads, targparm.adb,
15448 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
15450 * system.ads: Move Functions_Return_By_DSP to obsolete section,
15451 kept for bootstrap purposes only.
15453 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15455 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
15456 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
15457 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
15458 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
15460 2007-04-06 Robert Dewar <dewar@adacore.com>
15462 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
15463 (Local_Raise): New dummy procedure called when a raise is converted
15464 to a local goto. Used for debugger to detect that the exception
15467 * debug.adb: Document new d.g flag (expand local raise statements to
15468 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
15470 * exp_sel.adb: Use Make_Implicit_Exception_Handler
15472 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
15473 suppress warnings for unused handlers.
15474 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
15475 warnings for raise statements not handled locally.
15476 (Get_RT_Exception_Entity): New function
15477 (Get_Local_Call_Entity): New function
15478 (Find_Local_Handler): New function
15479 (Warn_If_No_Propagation): New procedure
15480 (Expand_At_End_Handler): Call Make_Implicit_Handler
15481 (Expand_Exception_Handlers): Major additions to deal with local handlers
15482 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
15483 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
15486 * exp_ch11.ads (Get_RT_Exception_Entity): New function
15487 (Get_Local_Call_Entity): New function
15489 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
15490 of restrictions that the binder will never suggest adding.
15492 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
15495 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
15496 be with'ed in the presence of pragma Restriction
15497 (No_Exception_Propagation).
15499 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
15501 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
15502 parameter, then the handler is not a suitable target for a local raise,
15503 and this is a violation of restriction No_Exception_Propagation.
15504 (Analyze_Handled_Statements): Analyze choice parameters in exception
15505 handlers before analyzing statement sequence (needed for proper
15506 detection of local raise statements).
15507 (Analyze_Raise_Statement): Reraise statement is a violation of the
15508 No_Exception_Propagation restriction.
15510 * s-rident.ads: Add new restriction No_Exception_Propagation
15512 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
15513 function, like Make_Exception_Handler but sets Local_Raise_Statements
15515 (Add_Unique_Serial_Number): Deal with case where this is called during
15516 processing of configuration pragmas.
15518 2007-04-06 Thomas Quinot <quinot@adacore.com>
15519 Pat Rogers <rogers@adacore.com>
15520 Pascal Obry <obry@adacore.com>
15522 * g-stsifd-sockets.adb: New file.
15524 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
15525 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
15526 g-socthi-vms.adb: Move signalling
15527 fd management to a nested package, so that they can conveniently be
15528 moved to a subunit that is shared across Windows, VMS, and VxWorks
15529 (Ada implementation) or completed with imported bodies from socket.c
15531 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
15533 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
15534 the signalling file descriptor.
15535 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
15536 signalling file descriptor.
15537 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
15538 instead of creating a pair of sockets for signalling here.
15540 * g-socthi.adb: Ditto.
15541 Set the runtime process to ignore SIGPIPEs on platforms that support
15542 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15544 * g-socthi-mingw.adb: Ditto.
15545 (WS_Version): Use Windows 2.2.
15546 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15548 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
15549 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15551 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
15552 added GNAT byte swapping facility
15553 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
15555 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
15557 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
15559 (__gnat_create_signalling_fds): New subprogram.
15560 Set the runtime process to ignore SIGPIPEs on platforms that support
15561 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15563 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
15564 Vincent Celier <celier@adacore.com>
15566 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
15567 New version of Ada.Calendar which supports the new upper bound of Ada
15568 time (2399-12-31 86_399.999999999).
15569 The following modifications have been made to the package:
15570 - New representation of time as count of nanoseconds since the start of
15571 Ada time (1901-1-1 0.0).
15572 - Target independent Split and Time_Of routines which service both
15573 Ada 95 and Ada 2005 code.
15574 - Target independent interface to the Ada 2005 children of Calendar.
15575 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
15576 - Handling of non-leap centenial years.
15577 - Updated clock function.
15578 - Updated arithmetic and comparison operators.
15580 * a-caldel.adb (To_Duration): Add call to target independent routine in
15581 Ada.Calendar to handle the conversion of time to duration.
15583 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
15585 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
15587 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
15588 targets do not have a natural time zone, GMT is used as a default.
15589 (__gnat_get_task_options): New.
15591 * a-direct.adb (Modification_Time): Add with and use clauses for
15592 Ada.Calendar and Ada.
15593 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
15594 since it is no longer needed.
15595 (Duration_To_Time): Removed.
15596 (OS_Time_To_Long_Integer): Removed.
15597 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
15598 Formatting Time_Of routines which automatically handle time zones,
15599 buffer periods and leap seconds.
15601 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
15602 target independent routines in Ada.Calendar.
15604 * a-calfor.ads, a-calfor.adb:
15605 Code cleanup and addition of validity checks in various routines.
15606 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
15609 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
15610 independent routine in Ada.Calendar.
15612 2007-04-06 Olivier Hainque <hainque@adacore.com>
15615 (convert_addresses): Adjust prototype and dummy definition to expect an
15616 extra file_name argument.
15618 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
15619 filling the now expected file_name argument with the appropriate
15621 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
15622 (tracebk): Array of void * instead of char *, corresponding to what
15623 convert_addresses expects.
15624 (exename): New static global, to hold the executable file name to be
15625 used in all convert_addresses invocations.
15626 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
15628 (__gnat_gmem_a2l_initialize): Resolve exename.
15629 (__gnat_convert_addresses): Use exename as the convert_addresses
15630 file_name argument.
15632 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
15633 "convert_addresses", now expecting a filename argument. Import the
15634 necessary entities to compute the filename to use and pass it to
15637 2007-04-06 Matt Gingell <gingell@adacore.com>
15639 * system-aix.ads: Back out previous change.
15640 (Functions_Return_By_DSP): Removed
15642 2007-04-06 Pascal Obry <obry@adacore.com>
15644 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
15645 or the monotonic used by Ada.Real_Time) to compute the sleep duration
15648 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15650 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
15651 function. Its value changes in different VxWorks versions, and it is
15652 now handled by the function __gnat_get_task_options.
15654 * s-taprop-vxworks.adb (Create_Task): Call the function
15655 __gnat_get_task_options to get the required options for creating a task.
15657 2007-04-06 Pascal Obry <obry@adacore.com>
15658 Thomas Quinot <quinot@adacore.com>
15660 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
15661 dealing with filename.
15662 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
15663 filename from a standard string to a wide-string depending on the
15665 (__gnat_freopen): Idem.
15666 (__gnat_current_time): New function (wrapper for time(3) standard C
15669 * g-os_lib.ads (Current_Time): New function. Returns the current
15670 system time as an OS_Time value.
15672 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
15673 (Monotonic_Clock): Same.
15675 2007-04-06 Quentin Ochem <ochem@adacore.com>
15677 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
15679 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
15681 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15683 * a-retide.adb: Add elaboration code to ensure that the tasking run
15684 time is initialized when using delay operations even when no task is
15687 2007-04-06 Javier Miranda <miranda@adacore.com>
15689 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15690 component Num_Prim_Ops.
15691 (Set_Num_Prim_Ops): Removed.
15692 Remove all the assertions because all the routines of this
15693 package are inline always.
15694 (Get_Offset_Index): Add support to primary dispatch tables.
15695 Move the documentation about the dispatch table to a-tags.ads
15696 (Set_External_Tag): Removed
15697 (Inherit_TSD): Removed.
15698 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15699 moved to a-tags.ads
15700 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15701 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15702 of the TSD field "Table" because this field has been renamed to
15704 (Inherit_CPP_DT): Removed.
15705 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15706 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15707 declarations have been moved to a-tags.ads
15708 (Check_Size): Removed.
15709 (Expanded_Name): Updated to get access to the new field of TSD
15710 containing the address of the expanded name.
15711 (Get_Access_Level/Set_Access_Level): Removed.
15712 (Get_Predefined_Prim_Op_Address): Removed.
15713 (Set_Predefined_Prim_Op_Address): Removed.
15714 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15715 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15716 (Set_Expanded_Name): Removed.
15717 (Inherit_DT): Removed.
15718 (Inherit_CPP_DT): Removed.
15719 (Set_RC_Offset): Removed.
15720 (Set_TSD): Removed.
15721 (Base_Address): New function that displaces "this" to point to the base
15722 of the object (that is, to point to the primary tag of the object).
15724 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15725 Javier Miranda <miranda@adacore.com>
15727 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15728 anonymous access component, do not create a master_id if type already
15729 has one, as may happen if the type is a subcomponent of a packed array
15731 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15732 Initialize_Tag): Remove code associated with the old CPP pragmas.
15733 CPP_Virtual and CPP_Vtable are no longer supported.
15734 (Build_Offset_To_Top_Internal): Add support for concurrent record types
15735 (Build_Offset_To_Top_Functions): Add support for concurrent record types
15736 (Freeze_Record_Type): Remove call to
15737 Init_Predefined_Interface_Primitives.
15738 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15739 code required to initialize the tags of the secondary dispatch tables.
15740 This leaves the algoritm more clear.
15741 (Init_Secondary_Tags): Add support for concurrent record types
15742 (Make_Predefined_Primitive_Specs): Code cleanup.
15743 (Predefined_Primitive_Bodies): Code cleanup.
15744 (Build_Master_Renaming): New local subprogram.
15745 (Expand_N_Full_Type_Declaration): Build the master_id associated with
15746 anonymous access to task type components.
15747 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15748 subtype indication are resolved during analysis, and must not be done
15750 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15752 2007-04-06 Geert Bosch <bosch@adacore.com>
15753 Ed Schonberg <schonberg@adacore.com>
15754 Javier Miranda <miranda@adacore.com>
15755 Bob Duff <duff@adacore.com>
15757 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15758 for conversion of a Float_Type'Truncation to integer.
15760 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15761 check if a node is an attribute that can be handled directly by the
15763 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15764 attributes that can be handled directly by the back end.
15765 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15766 use new predicate Is_Access_Protected_Subprogram_Type.
15767 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15768 and Unchecked_Union if it is generated as part of the default Output
15769 procedure for a type with default discriminants.
15770 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15771 if we are compiling under restriction No_Dispatching_Calls.
15772 (Constrained): Use Underlying_Type, in case the type is private without
15773 discriminants, but the full type has discriminants.
15774 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15775 call to Build_Get_Access_Level.
15776 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15777 interface objects requires a call to the run-time subprogram that
15778 returns the base address of the object.
15779 (Valid_Conversion): Improve error message on illegal attempt to store
15780 an anonymous access to subprogram value into a record component.
15782 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15784 (Simplify_Type_Conversion): New procedure that performs simplification
15785 of Int_Type (Float_Type'Truncation (X)).
15786 (Resolve_Type_Conversion): Call above procedure after resolving operand
15787 and before performing checks. This replaces the existing ineffective
15789 (Set_String_Literal_Subtype): When creating the internal static lower
15790 bound subtype for a string literal, use a newly created copy of the
15791 subtree representing the lower bound.
15792 (Resolve_Call): Exclude build-in-place function calls from transient
15793 scope treatment. Update comments to describe this exception.
15794 (Resolve_Equality_Op): In case of dispatching call check violation of
15795 restriction No_Dispatching_Calls.
15796 (Resolve_Call): If the call returns an array, the context imposes the
15797 component type of the array, and the function has one non-defaulted
15798 parameter, rewrite the call as the indexing of a call with a single
15799 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15801 (Resolve_Actuals): If an actual is an allocator for an access parameter,
15802 the master of the created object is the innermost enclosing statement.
15803 (Remove_Conversions): For a binary operator, check if type of second
15804 formal is numeric, to check if an abstract interpretation is present
15805 in the case of exponentiation as well.
15807 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15808 Bob Duff <duff@adacore.com>
15810 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15811 copying a parameter list in a call, set properly the First_Named_Formal
15812 and Next_Named_Formal fields in the new list and in the enclosing call.
15813 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15814 names, to ease typing in the debugger. Improve comments.
15815 (Watch_Node): New variable, intended to be set in the debugger.
15816 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15817 called when the watched node is created.
15818 (New_Node_Debugging_Output): Combined version of local procedures
15819 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15820 with a parameter so that conditional breakpoints like "if Node = 12345"
15822 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15823 Add Elist1 function
15825 2007-04-06 Thomas Quinot <quinot@adacore.com>
15826 Ed Schonberg <schonberg@adacore.com>
15827 Gary Dismukes <dismukes@adacore.com>
15829 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15830 required for a conversion between two access-to-unconstrained-array
15832 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15833 to discriminant constraints on discriminant objects. This rule must
15834 apply as well to discriminants of protected types in private components.
15835 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15836 object of a null-excluding access type then don't require the
15837 the object declaration to have an expression and don't emit a
15840 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15841 Eric Botcazou <botcazou@adacore.com>
15843 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15846 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15847 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15850 * fe.h (Compiler_Abort): Add third parameter.
15852 * misc.c (internal_error_function): Build third argument from current
15853 input location and pass it to Compiler_Abort.
15855 2007-04-06 Gary Dismukes <dismukes@adacore.com>
15857 * cstand.adb (Create_Standard): When the target's storage unit size is
15858 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15861 2007-04-06 Nicolas Roche <roche@adacore.com>
15863 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15864 absolute path can have the following form: device:/a/b. In this case
15865 '/' should be inserted between the path and the filename.
15867 2007-04-06 Olivier Hainque <hainque@adacore.com>
15868 Eric Botcazou <botcazou@adacore.com>
15870 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15871 VAR_DECL to a CONST_DECL we make for a public constant when we know the
15872 corresponding definition has created the so made visible variable.
15873 Handle anonymous access to protected subprogram.
15874 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15875 object with an address clause volatile. Re-enable original fix.
15876 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15878 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15879 associated with either the Equivalent or Root type, instead of the
15881 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15882 subtree for every field of a global record type.
15883 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15884 discriminants, invoke again variable_size on its newly computed sizes.
15886 2007-04-06 Robert Dewar <dewar@adacore.com>
15887 Thomas Quinot <quinot@adacore.com>
15888 Ed Schonberg <schonberg@adacore.com>
15889 Bob Duff <duff@adacore.com>
15891 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15892 (Next_Component_Or_Discriminant): New function and procedure
15893 (First_Index, First_Literal, Master_Id,
15894 Set_First_Index, Set_First_Literal, Set_Master_Id):
15895 Add missing Ekind assertions.
15896 (Is_Access_Protected_Subprogram_Type): New predicate.
15897 (Has_RACW): New entity flag, set on package entities to indicate that
15898 the package contains the declaration of a remote accecss-to-classwide
15900 (E_Return_Statement): This node type has the Finalization_Chain_Entity
15901 attribute, in case the result type has controlled parts.
15902 (Requires_Overriding): Add this new flag, because "requires
15903 overriding" is subtly different from "is abstract" (see AI-228).
15904 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15905 Is_Abstract_Type. Make sure these are called only when appropriate.
15906 (Has_Pragma_Unreferenced_Objects): New flag
15908 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15909 class-wide, the tag of the right-hand side must be an exact match, not
15910 an ancestor of that of the object on left-hand side.
15911 (Move_Activation_Chain): New procedure to create the call to
15912 System.Tasking.Stages.Move_Activation_Chain.
15913 (Expand_N_Extended_Return_Statement): Generate code to call
15914 System.Finalization_Implementation.Move_Final_List at the end of a
15915 return statement if the function's result type has controlled parts.
15916 Move asserts to Build_In_Place_Formal.
15917 (Move_Final_List): New function to create the call statement.
15918 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15919 tagged type, replace generation of call to the run-time subprogram
15920 CW_Membership by call to Build_CW_Membership.
15921 (Expand_N_Return_Statement): Replace generation of call to the run-time
15922 subprogram Get_Access_Level by call to Build_Get_Access_Level.
15923 (Expand_N_Simple_Function_Return): Replace generation of call to the
15924 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15926 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15927 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15928 access to protected operations.
15929 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15930 master and chain actual parameters to a build-in-place function call
15932 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15934 (Make_Build_In_Place_Call_In_Allocator,
15935 Make_Build_In_Place_Call_In_Anonymous_Context,
15936 Make_Build_In_Place_Call_In_Assignment,
15937 Make_Build_In_Place_Call_In_Object_Declaration): Call
15938 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15939 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15940 stubbed procedure with a null body, replace the call with a null
15941 statement without using the full inlining machinery, for efficiency
15942 and to avoid invalid values in source file table entries.
15944 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15945 renamings of calls to build-in-place functions.
15947 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15948 provides the functionality of RTE_Available to record components.
15949 (RTU_Entity): The function Entity has been renamed to RTU_Entity
15950 to avoid undesired overloading.
15951 (Entity): New subprogram that returns the entity for the referened
15952 unit. If this unit has not been loaded, it returns Empty.
15953 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15954 Remove no longer used entities.
15955 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15956 (RE_Type_Specific_Data): New entity.
15957 (RE_Move_Any_Value): New entity.
15958 (RE_TA_A, RE_Get_Any_Type): New entities.
15959 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15960 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15961 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15962 (Entity): New subprogram that returns the entity for the referened
15963 unit. If this unit has not been loaded, it returns Empty.
15964 (RTE): Addition of a new formal that extends the search to the scopes
15965 of the record types found in the chain of the package.
15967 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15968 "abstract subprograms must be visible" message, whether or not the type
15969 is an interface; that is, remove the special case for interface types.
15970 (Analyze_Function_Return): Remove error message "return of task objects
15971 is not yet implemented" because this is now implemented.
15972 (Create_Extra_Formals): Add the extra master and activation chain
15973 formals in case the result type has tasks.
15974 Remove error message "return of limited controlled objects is not yet
15976 (Create_Extra_Formals): Add the extra caller's finalization list formal
15977 in case the result type has controlled parts.
15978 (Process_Formals): In case of access formal types there is no need
15979 to continue with the analysis of the formals if we already notified
15981 (Check_Overriding_Indicator): Add code to check overriding of predefined
15983 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15984 flags for formals that do not require them,.
15985 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15986 hidden entity is use visible or directly visible.
15987 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15988 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15989 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15990 New_Overloaded_Entity): Split Is_Abstract flag into
15991 Is_Abstract_Subprogram and Is_Abstract_Type.
15993 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15994 a return statement's finalization list to the caller's list, used for
15995 build-in-place functions with result type with controlled parts.
15996 Remove no longer used entities.
15998 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15999 longer needed, because the full type is now limited, and therefore a
16000 pass-by-reference type.
16001 (Foreign_Task_Level): New constant.
16003 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
16004 move tasks from the activation chain belonging to a return statement to
16005 the one passed in by the caller, and update the master to the one
16006 passed in by the caller.
16007 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
16008 of unactivated tasks, so we don't kill the ones that are being returned
16009 by a build-in-place function.
16010 (Create_Task): Ignore AI-280 for foreign threads.
16012 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16013 Robert Dewar <dewar@adacore.com>
16014 Bob Duff <duff@adacore.com>
16015 Gary Dismukes <dismukes@adacore.com>
16017 * errout.adb (Unwind_Internal_Type): Use predicate
16018 Is_Access__Protected_Subprogram_Type.
16020 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
16021 (Freeze_Entity, packed array case): Do not override explicitly set
16022 alignment and size clauses.
16023 (Freeze_Entity): An entity declared in an outer scope can be frozen if
16024 the enclosing subprogram is a child unit body that acts as a spec.
16025 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
16026 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
16027 Remove all code for DSP option
16029 * layout.adb (Layout_Record_Type): Use First/
16030 Next_Component_Or_Discriminant
16031 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
16032 to handle properly the anonymous access case.
16034 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
16035 for all access attributes, because overload resolution should work the
16036 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
16037 causes the error message for the ambiguous "X'Access = Y'Access" and
16038 "X'Unrestricted_Access = Y'Access" and so forth to match.
16039 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
16040 now that anonymous access to protected operations have their own kind.
16041 (Resolve_Attribute): In case of dispatching call check the violation of
16042 restriction No_Dispatching_Calls.
16043 (Check_Array_Type): Check new -gnatyA array index style option
16045 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
16046 attempt to derive from a synchronized tagged type.
16047 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
16048 type, inherit the class-wide type already created, because it may
16049 already have been used in a self-referential anonymous access component.
16050 (Mentions_T): Recognize self-referential anonymous access components
16051 that use (a subtype of) the class-wide type of the enclosing type.
16052 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
16053 Derived_Type for Prev formal on call to
16054 Check_Anonymous_Access_Components rather than Empty.
16055 (Make_Incomplete_Type_Declaration): Add test for case where the type has
16056 a record extension in deciding whether to create a class-wide type,
16057 rather than just checking Tagged_Present.
16058 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
16059 to stand-alone object declarations as well as component declarations.
16060 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
16061 prevent accidental overwriting when enclosing package appears in
16062 a limited_with_clause.
16063 (Array_Type_Declaration): If the component type is an anonymous access,
16064 the associated_node for the itype is the type declaration itself.
16065 (Add_Interface_Tag_Components): Modified to support concurrent
16066 types with abstract interfaces.
16067 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
16068 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
16069 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
16070 to complete the decoration of synchronized interface types. Add also
16071 a call to Check_Abstract_Interfaces to verify the ARM rules.
16072 (Derive_Interface_Subprograms): Modified to support concurrent types
16073 with abstract interfaces.
16074 (Analyze_Subtype_Indication): Resolve the range with the given subtype
16075 mark, rather than delaying the full resolution depending on context.
16076 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
16077 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
16078 Array_Type_Declaration,Build_Derived_Record_Type,
16079 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
16080 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
16081 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
16082 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
16083 called only when appropriate.
16084 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
16086 (Analyze_Subtype_Declaration): For an access subtype declaration, create
16087 an itype reference for the anonymous designated subtype, to prevent
16088 scope anonmalies in gigi.
16089 (Build_Itype_Reference): New utility, to simplify construction of such
16092 2007-04-06 Vincent Celier <celier@adacore.com>
16094 * errutil.adb (Initialize): Initialize warnings table, if all warnings
16095 are suppressed, supply an initial dummy entry covering all possible
16098 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
16099 and start with only one, such as "-RTS=none".
16100 (Collect_Arguments): Do not check for sources outside of projects.
16101 Do not collect arguments if project is externally built.
16102 (Compile_Sources): Do nothing, not even check if the source is up to
16103 date, if its project is externally built.
16104 (Compile): When compiling a predefined source, add -gnatpg
16105 as the second switch, after -c.
16106 (Compile_Sources): Allow compilation of Annex J renames without -a
16107 (Is_In_Object_Directory): Check if the ALI file is in the object
16108 even if there is no project extension.
16109 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
16110 gnatbind if the ALI file effectively exists.
16111 (Initialize): Add the directory where gnatmake is invoked in front of
16112 the path if it is invoked from a bin directory, even without directory
16113 information, so that the correct GNAT tools will be used when spawned
16114 without directory information.
16116 * makeusg.adb: Change switch -S to -eS
16117 Add lines for new switches -we, -wn and -ws
16118 Add line for new switch -p
16120 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
16121 Treat_As_Error and there are warnings.
16123 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
16124 -gnatww Change gnatmake switch -S to -eS
16125 (Scan_Make_Switches): Code reorganisation. Process separately multi
16126 character switches and single character switches.
16127 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
16128 False when switch is not recognized by gnatmake.
16129 (Scan_Make_Switches): Set Setup_Projects True when -p or
16130 --create-missing-dirs is specified.
16132 * fname.adb (Is_Predefined_File_Name): Return True for annex J
16133 renamings Calendar, Machine_Code, Unchecked_Conversion and
16134 Unchecked_Deallocation only when Renamings_Included is True.
16136 * par.adb: Allow library units Calendar, Machine_Code,
16137 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
16138 when -gnatg is not specified.
16139 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16140 there is no need to generate always a record_definition_node in case
16141 of synchronized interface types.
16142 (SIS_Entry_Active): Initialize global variable to False
16143 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
16144 indicate cases where AI-447 says "not null" is legal.
16146 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
16148 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
16149 files with with several lines starting with the object fileb name.
16150 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
16152 (Initialize): Add the directory where gprmake is invoked in front of the
16153 path, if it is invoked from a bin directory or with directory
16154 information, so that the correct GNAT tools will be used when invoked
16156 (Check_Compilation_Needed): Process correctly backslashes on Windows.
16158 * vms_data.ads: Update switches/qualifiers
16160 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16161 Thomas Quinot <quinot@adacore.com>
16164 If the array component is a discriminated record, the array aggregate
16165 is non-static even if the component is given by an aggregate with
16167 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
16168 (Convert_Aggr_In_Allocator): If the allocator is for an access
16169 discriminant and the type is controlled. do not place on a finalization
16170 list at this point. The proper list will be determined from the
16172 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
16173 initialize record controller if needed, before the components, to ensure
16174 that they are properly finalized.
16175 (Build_Record_Aggr_Code): For the case of an array component that has a
16176 corresponding array aggregate in the record aggregate, perform sliding
16179 2007-04-06 Javier Miranda <miranda@adacore.com>
16180 Gary Dismukes <dismukes@adacore.com>
16181 Ed Schonberg <schonberg@adacore.com>
16183 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
16184 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
16186 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
16187 accessibility on class-wide allocators if the allocator occurs at the
16188 same scope level as the allocator's type. The check is guaranteed to
16189 succeed in that case, even when the expression originates from a
16190 parameter of the containing subprogram.
16191 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
16192 under No_Dispatching_Calls restriction. During the semantic analysis
16193 we already notified such violation.
16194 (Tagged_Membership): Constant folding. There is no need to check
16195 the tag at run-time if the type of the right operand is non
16196 class-wide abstract.
16197 Replace call to Is_Ancestor by call to Is_Parent
16198 to support concurrent types with interface types.
16199 (Expand_N_Allocator): Add an assertion associated with the generation
16201 (Expand_N_Slice): Do not enable range check to nodes associated
16202 with the frontend expansion of the dispatch table.
16203 (Is_Local_Access_Discriminant): Subsidiary function to
16204 Expand_N_Allocator.
16205 (Tagged_Membership): Replace generation of call to the run-time
16206 subprogram CW_Membership by call to Build_CW_Membership.
16207 (Expand_Allocator_Expression): Replace generation of call to the
16208 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
16210 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
16211 initialize most the TSD components by means of an aggregate.
16212 Modify the declaration of the object containing the TSD
16213 because we now expand code that has a higher level of abstraction.
16214 The TSD has a discriminant containing the Inheritance Depth Level,
16215 value that is used in the membership test but also to fix the size
16216 of the table of ancestors.
16217 (Expand_Interface_Conversion): Insert function body at the closest place
16218 to the conversion expression, to prevent access-before-elaboration
16219 errors in the backend.
16220 Code improved to reduce the size of the dispatch table if
16221 compiling under restriction No_Dispatching_Calls plus code cleanup.
16222 Code reorganization plus removal of calls to Set_Num_Prim_Ops
16223 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
16224 (Expand_Dispatching_Call): Minor code reorganization plus addition of
16225 code to return immediately if compiling under No_Dispatching_Calls
16227 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
16228 CPP_Virtual and CPP_Vtable are no longer supported.
16229 (Expand_Interface_Conversion): Add missing support for interface type
16231 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
16232 Is_Parent to support concurrent types with interfaces.
16233 (Init_Predefined_Interface_Primitives): Removed.
16234 (Make_Secondary_DT): Modified to support concurrent record types.
16235 (Set_All_DT_Position): Modified to support concurrent record types.
16236 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
16237 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
16238 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
16239 with CW_Membership.
16240 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
16241 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
16242 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
16243 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
16244 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
16245 (Expand_Dispatching_Call): Replace generation of call to the run-time
16246 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
16247 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
16249 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
16250 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
16251 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
16252 Build_Set_Prim_Op_Address.
16253 (Get_Remotely_Callable): Subprogram removed.
16254 (Init_Predefined_Interface_Primitives): Replace generation of call to
16255 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
16258 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
16259 First (Parameter_Associations ()) with the call to First_Actual that
16260 returns an actual parameter expression for both named and positional
16263 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
16264 check violation of restriction No_Dispatching_Calls.
16265 (Check_Controlling_Type): A formal of a tagged incomplete type is a
16266 controlling argument.
16268 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
16269 First/Next_Component_Or_Discriminant
16270 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
16271 (Find_Implemented_Interface): Removed. All the calls to this subprogram
16272 specify Any_Limited_Interface, and this functionality is already
16273 provided by the function Has_Abstract_Interfaces.
16274 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
16275 support concurrent types implementing interfaces.
16276 (Find_Implemented_Interface): Removed. All the calls to this subprogram
16277 specify kind Any_Limited_Interface, and this functionality is already
16278 provided by the function Has_Abstract_Interfaces.
16279 (Remove_Side_Effects): replace Controlled_Type by
16280 CW_Or_Controlled_Type whenever the issue is related to
16281 using or not the secondary stack.
16283 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
16284 P_Interface_Type_Definition to fulfill the new interface (the formal
16285 Is_Synchronized is no longer required).
16287 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
16288 Update dependencies.
16290 * exp_atag.ads, exp_atag.adb: New file
16292 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16293 Bob Duff <duff@adacore.com>
16294 Cyrille Comar <comar@adacore.com>
16296 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
16297 anonymous, use finalization list of enclosing dynamic scope.
16298 (Expand_N_Package_Declaration): For a library package declaration
16299 without a corresponding body, generate RACW subprogram bodies in the
16300 spec (just as we do for the task activation call).
16301 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
16302 Is_Abstract_Type. Make sure these are called only when appropriate.
16303 Remove all code for DSP option
16304 (CW_Or_Controlled_Type): new subprogram.
16306 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16307 Ed Schonberg <schonberg@adacore.com>
16308 Gary Dismukes <dismukes@adacore.com>
16310 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
16311 parameter. If it is set to true, return a result capped according to
16312 the global upper bound for the index of an entry family.
16313 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
16314 (Build_Find_Body_Index): Adjust for above change.
16315 (Entry_Index_Expression): Likewise.
16316 (Is_Potentially_Large_Family): New function extracted from...
16317 (Collect_Entry_Families): ...here. Call it to detect whether the family
16318 is potentially large.
16319 (Build_Entry_Count_Expression): If the family is potentially large, call
16320 Family_Size with 'Cap' set to true.
16321 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
16322 a protected version of an operation declared in the private part of
16323 a protected object, because they may be invoked through a callback.
16324 (Set_Privals): If the type of a private component is an anonymous access
16325 type, do not create a new itype for each protected body.
16326 If the body of a protected operation creates
16327 controlled types (including allocators for class-widetypes), the
16328 body of the corresponding protected subprogram must include a
16330 (Build_Activation_Chain_Entity): Build the chain entity for extended
16332 (Type_Conformant_Parameters): Use common predicate Conforming_Types
16333 to determine whether operation overrides an inherited primitive.
16334 (Build_Wrapper_Spec): Add code to examine the parents while looking
16335 for a possible overriding candidate.
16336 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
16337 hold an actual parameter value since its initialization is separated
16338 from the the declaration. Prevents errors on null-excluding access
16341 2007-04-06 Thomas Quinot <quinot@adacore.com>
16342 Pablo Oliveira <oliveira@adacore.com>
16344 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
16345 Do an Unchecked_Conversion to handle the passage from the Underlying
16346 Type to the Base Type when calling Build_To_Any_Call and
16347 Build_From_Any_Call.
16348 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
16349 E_Constant, depending upon Variable formal.
16350 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16351 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
16352 parameter that requires an extra constrained parameter, declare
16353 temporary for actual as a variable, not a constant.
16354 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
16355 the unit being compiled is the one that contains the stub type.
16356 Change primitive operation name for the RACW associated with a RAS
16357 from Call to _Call so it cannot clash with any legal identifier.
16358 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
16360 (Append_RACW_Bodies): New subprogram.
16361 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
16362 Add_Receiving_Stubs_To_Declarations functions.
16363 When expanding a package body, this list correspond to the
16364 statements in the HSS at the end of the pacakge.
16365 When expanding a package spec, this list correspond to the
16367 (Add_Receiving_Stubs_To_Declarations): Append the function
16368 registering the receiving stubs at the end of the 'Stmts' list.
16369 (RCI_Package_Locator): Pass the new Version generic formal when
16370 instantiating a RCI_Locator package.
16371 (Build_From_Any_Function): To compute the High bound for an
16372 unconstrained array actual, we add the Low bound with the length.
16373 Thus we must convert the low bound and the length to an appropriate
16374 type before doing the sum.
16375 (Build_Subprogram_Receiving_Stubs, PolyORB):
16376 * Retrieve the extra formals parameters at the
16377 end of the parameter stream.
16378 * Use Move_Any_Value to write back out parameters
16379 after executing the request as it is more efficient
16380 than Copy_Any_Value.
16381 * Build the any containing Extra Formals with the
16382 appropriate typecode.
16383 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
16384 empty Component_List.
16385 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
16386 the tree the declaration for an object that serves as actual parameter
16387 in server-side stubs.
16388 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16389 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
16390 Use Build_Actual_Object_Declaration to prepare the actuals.
16391 (Add_Parameter_To_NVList): Set the parameter mode to In for
16392 Extra Constrained Parameters.
16393 (Build_General_Calling_Stubs): Set the parameter type to boolean for
16394 Extra Constrained parameters.
16395 (Build_To_Any_Function, Build_From_Any_Function,
16396 Built_TypeCode_Function): When Typ is implicit, call the correct
16397 function with the first not implicit parent type.
16398 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
16399 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
16400 typecode from the Etype. Therefore we retrieve the correct typecode
16401 with a call to Get_Any_Type.
16402 (Copy_Specification): Do controlling formal type substitution based on
16403 Is_Controlling_Formal flag, instead of caller-provided object type.
16404 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
16405 a RACW primitive operation, we might get a subprogram declaration for an
16406 ancestor of the RACW designated type (not for the designated type
16407 itself), in the case where this operation is inherited. In this case we
16408 have no easy means of determining the original tagged type for which
16409 the primitive was declared, so instead we now rely on
16410 Copy_Specification to use the Is_Controlling_Formal flag to determine
16411 which formals require type substitution.
16413 2007-04-06 Robert Dewar <dewar@adacore.com>
16414 Ed Schonberg <schonberg@adacore.com>
16416 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
16417 GNAT.Current_Exception are not allowed if pragma Restrictions
16418 (No_Exception_Propagation) is set and in any case make the associated
16419 handler unsuitable as a target for a local raise statement.
16420 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
16421 run-time subprogram CW_Membership by call to Build_CW_Membership.
16422 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
16423 by a function call, a temporary must be created before expanding the
16424 Constructor_Call itself, to prevent out-of-order elaboration in the
16425 back-end when stack checking is enabled..
16427 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16429 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
16430 result are the bounds of the left operand, not the right.
16432 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16435 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
16436 discriminant defaults.
16437 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
16438 (Make_Component_List_Attributes): Ditto.
16440 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16441 Bob Duff <duff@adacore.com>
16443 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
16444 an association with a box as providing a value even though the
16445 initialization procedure for the type is not available.
16446 (Resolve_Record_Aggregate): Check that a choice of an association with a
16447 box corresponds to a component of the type.
16448 (Resolve_Record_Aggregate): Split Is_Abstract flag into
16449 Is_Abstract_Subprogram and Is_Abstract_Type.
16451 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
16454 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
16455 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
16456 called only when appropriate.
16458 2007-04-06 Olivier Hainque <hainque@adacore.com>
16460 * g-alleve.ads (Low Level Vector type definitions): Map each to the
16461 associated vector view instead of all to the unsigned char view.
16463 * g-altcon.adb (Generic_Conversions): New internal generic package,
16464 offering facilities for all the Vector/View conversion routines
16465 implemented by this unit.
16466 (To_View/To_Vector - all versions): Reimplemented in a systematic
16467 manner, using the internal Generic_Conversions facilities.
16469 2007-04-06 Pascal Obry <obry@adacore.com>
16471 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
16473 (Create): Free the source string before storing the new one.
16475 2007-04-06 Vincent Celier <celier@adacore.com>
16477 * g-debpoo.adb (Validity): New package with a complete new
16478 implementation of subprograms Is_Valid and Set_Valid.
16479 (Is_Valid): Move to local package Validity
16480 (Set_Valid): Move to local package Validity
16482 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16483 Pablo Oliveira <oliveira@adacore.com>
16485 * g-expect.adb (Get_Command_Output): When expanding the output buffer
16486 we must ensure that there is enough place for the new data we are going
16489 2007-04-06 Thomas Quinot <quinot@adacore.com>
16491 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
16494 2007-04-06 Jose Ruiz <ruiz@adacore.com>
16495 Vincent Celier <celier@adacore.com>
16497 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
16498 (Stack_String): Add this String that contains the name of the Stack
16499 package in the project file.
16500 (Packages_To_Check_By_Stack): Add this list that contains the packages
16501 to be checked by gnatstack, which are the naming and the stack packages.
16502 (Check_Files): If no .ci files were specified for gnatstack we add all
16503 the .ci files belonging to the projects, including binder generated
16505 (Non_VMS_Usage): Document that gnatstack accept project file switches.
16506 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
16507 Add gnatstack to the list of commands that use project file related
16508 switches, and get the single attribute Switches from the stack package
16509 in a project file when calling gnatstack. Parse the -U flag for
16510 processing files belonging to all projects in the project tree.
16511 Remove all processing for command Setup
16513 * prj-attr.adb: Add new package Stack with single attribute Switches
16515 * vms_conv.ads (Command_Type): Add command Stack.
16516 Move to body declarations that are only used in the body: types Item_Id,
16517 Translation_Type, Item_Ptr, Item and its subtypes.
16519 * vms_conv.adb: (Initialize): Add data for new command Stack.
16520 Add declarations moved from the spec: types Item_Id, Translation_Type,
16521 Item_Ptr, Item and its subtypes.
16522 (Cargs_Buffer): New table
16523 (Cargs): New Boolean global variable
16524 (Process_Buffer): New procedure to create arguments
16525 (Place): Put character in table Buffer or Cargs_Buffer depending on the
16527 (Process_Argument): Set Cargs when processing qualifiers for GNAT
16529 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
16530 empty, for table Cargs_Buffer.
16531 (Initialize): Remove component Setup in Command_List
16533 2007-04-06 Vincent Celier <celier@adacore.com>
16535 * gprep.adb (Process_Files.Process_One_File): Use full file name when
16536 issuing pragma Source_Reference.
16538 2007-04-06 Emmanuel Briot <briot@adacore.com>
16540 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
16541 [[:xdigit:]] character class.
16542 Also raise an exception when an invalid character class is used.
16544 2007-04-06 Pascal Obry <obry@adacore.com>
16546 * i-cstrea.ads: (fopen): Add encoding parameter.
16548 Change reference from a-sysdep.c to sysdep.c in comment.
16549 Update copyright notice.
16550 This set of patch add support for the encoding form parameter.
16552 * mingw32.h (S2WSU): New macro to convert from a string to a
16553 wide-string using the UTF-8 encoding. The S2WS macro supports now only
16554 standard 8bits encoding.
16555 (WS2SU): As above but converting from wide-sring to string.
16556 This is needed as it is necessary to have access to both versions in the
16557 runtime for the form parameter encoding support.
16558 This set of patch add support for the encoding form parameter.
16559 (S2WS): Improve implementation to handle cases where the filename is not
16560 UTF-8 encoded. In this case we default to using the current code page
16561 for the conversion.
16563 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
16564 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
16565 the constants defined in adaint.h.
16566 (fopen): Add encoding parameter.
16569 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
16570 encoding. This is needed for the Reset routine (freopen low level-call).
16572 * s-fileio.adb (Open): Decode encoding form parameter and set the
16573 corresponding encoding value into AFCB structure.
16574 (Reset): Pass the encoding value to freopen.
16575 (Close): Move the call to Lock_Task to the beginning of the procedure.
16577 2007-04-06 Geert Bosch <bosch@adacore.com>
16578 Robert Dewar <dewar@adacore.com>
16580 * i-fortra.ads: Add Double_Complex type.
16582 * impunit.adb: (Is_Known_Unit): New function
16583 Add Gnat.Byte_Swapping
16585 Add new Ada 2005 units
16586 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
16587 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
16588 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
16589 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
16591 * impunit.ads (Is_Known_Unit): New function
16593 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
16594 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
16595 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
16596 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
16597 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
16598 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
16601 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
16603 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
16605 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16606 Arnaud Charlet <charlet@adacore.com>
16608 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
16609 __gnat_adjust_context_for_raise.
16610 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
16611 implementation of floating point operations as native x86 targets.
16612 So the FPU should be initialized in the same way using finit. Fix
16613 floating point operations accuracy issues.
16614 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
16615 member in struct sigaction, so as to avoid warning for incompatible
16618 2007-04-06 Serguei Rybin <rybin@adacore.com>
16620 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
16621 switches from previously loaded tree
16623 2007-04-06 Thomas Quinot <quinot@adacore.com>
16625 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
16626 cases where a given dependency has a body or not.
16627 (Write_With_File_Names): New subprogram, common code for the two cases
16630 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16631 Javier Miranda <miranda@adacore.com>
16633 * lib-xref.ads, lib-xref.adb:
16634 Modify the loop that collects type references, to include interface
16635 types that the type implements. List each of these interfaces when
16636 building the entry for the type.
16637 (Generate_Definition): Initialize component Def and Typ of new entry
16638 in table Xrefs, to avoid to have these components unitialized.
16639 (Output_References): Split Is_Abstract flag into
16640 Is_Abstract_Subprogram and Is_Abstract_Type.
16641 (Generate_Reference): Add barrier to do not generate the warning
16642 associated with Ada 2005 entities with entities generated by the
16645 2007-04-06 Robert Dewar <dewar@adacore.com>
16646 Arnaud Charlet <charlet@adacore.com>
16647 Vincent Celier <celier@adacore.com>
16649 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
16650 Update 'Exception Handling Control' chapter which was outdated.
16651 Minor fix to documentation of -gnatwq
16652 Remove section "Adapting the Run Time to a New C++ Compiler" because
16653 it is now obsolete.
16654 Add passage on need of -nostart-files in some non-ada-main cases.
16655 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
16656 Update documentation about Interfacing with C++
16657 Add documentation for new gnatmake switch -p
16658 Add missing protocol part in URLs.
16660 Document pragma Compile_Time_Error
16661 Add documentation for Object_Size indicating that stand alone
16662 objects can have a larger size in some cases.
16663 Add node for GNAT.Byte_Swapping, GNAT.SHA1
16664 Update reference to the Ravenscar profile.
16665 Document pragma Unreferenced_Objects
16667 * gnat-style.texi: Fix typo
16669 2007-04-06 Vincent Celier <celier@adacore.com>
16671 * mlib.adb (Building_Library): Only output "building a library..." in
16674 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16675 files in verbose mode.
16677 * mlib-utl.adb (Ar): Only output the first object files when not in
16679 (Gcc): Do not display all the object files if not in verbose mode, only
16682 2007-04-06 Robert Dewar <dewar@adacore.com>
16684 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
16685 it no longer destroys the contents of Name_Buffer or Name_Len and
16686 non-standard and invalid names are handled better.
16687 (Get_Decoded_Name_String): Improve performance by using
16688 Name_Has_No_Encodings flag in the name table.
16689 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16690 Used for debugging printouts.
16692 2007-04-06 Robert Dewar <dewar@adacore.com>
16693 Javier Miranda <miranda@adacore.com>
16694 Bob Duff <duff@adacore.com>
16696 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16697 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16698 there is no need to generate always a record_definition_node in case
16699 of synchronized interface types.
16700 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16701 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16702 illegal in Ada 95, in cases where it is legal. Change the warnings to
16703 errors in other cases. Don't give the error unless the "not null"
16704 parses properly. Correct the source position at which the error occurs.
16705 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16706 P_Null_Exclusion, to suppress "not null" warnings.
16707 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16708 associated goto statements.
16710 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16713 * scans.ads (Type_Token_Location): New flag
16715 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16716 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16717 P_Null_Exclusion, to suppress "not null" warnings.
16719 2007-04-06 Robert Dewar <dewar@adacore.com>
16720 Javier Miranda <miranda@adacore.com>
16721 Bob Duff <duff@adacore.com>
16722 Vincent Celier <celier@adacore.com>
16724 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16725 (Extensions_Allowed): No longer sets Ada_Version
16726 Entry for pragma Unreferenced_Objects
16728 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16729 system.tasking if pragma priority used in a procedure
16730 (Analyze_Pragma, case Warning): Handle dot warning switches
16731 (Process_Compile_Time_Warning_Or_Error): New procedure
16732 (Analyze_Pragma): Add processing for Compile_Time_Error
16733 Add support for extra arguments External_Name and Link_Name.
16734 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16735 (Process_Import_Or_Interface): Add support for the use of pragma Import
16737 (Extensions_Allowed): No longer affects Ada_Version
16738 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16739 Is_Abstract_Type. Make sure these are called only when appropriate.
16740 Add processing for pragma Unreferenced_Objects
16742 * snames.h, snames.ads, snames.adb: Add entry for pragma
16744 Add new standard name Minimum_Binder_Options for new gprmake
16745 Add new standard names for gprmake: Archive_Suffix,
16746 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16747 Library_Support, Library_Version_Options,
16748 Shared_Library_Minimum_Options,
16749 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16750 Change Name_Call to Name_uCall so that it cannot clash with a legal
16752 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16753 Append C_Plus_Plus to convention identifiers as synonym for CPP
16754 Add new standard names Stack and Builder_Switches
16755 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16756 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16757 Run_Path_Option, Toolchain_Version.
16758 Entry for pragma Unreferenced_Objects
16760 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16761 switches, without repetition of "eD". Make sure that last character of
16762 -gnatep= switch is not taken as -gnat switch character.
16763 Complete rewrite of circuit for handling saving compilation options
16764 Occasioned by need to support dot switchs for -gnatw, but cleans up
16766 -gnatX does not affect Ada_Version
16767 Include -gnatyA in -gnatg style switches
16769 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16770 warnings on return objects.
16771 (Warn_On_Useless_Assignment): Exclude warnings on return objects
16772 (Set_Dot_Warning_Switch): New procedure
16773 (Check_References): Add missing case of test for
16774 Has_Pragma_Unreferenced_Objects
16775 (Output_Unreferenced_Messages): Implement effect of new pragma
16776 Unreferenced_Objects, remove special casing of limited controlled
16779 2007-04-06 Vincent Celier <celier@adacore.com>
16781 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16782 the default project path, initially done during elaboration of the
16784 If the prefix returned by Sdefault is null, get the prefix from a call
16785 to Executable_Prefix_Path.
16786 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16789 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16790 canonical directory name to open the directory from which files are
16792 (Record_Other_Sources): Idem.
16793 (Locate_Directory): Add the possibility to create automatically missing
16794 directories when Setup_Projects is True.
16795 Call Locate_Directory so that the directory will be created when
16796 Setup_Projects is True, for object dir, library dir, library ALI dir,
16797 library source copy dir and exec dir.
16799 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16802 2007-04-06 Robert Dewar <dewar@adacore.com>
16804 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16805 Use First/Next_Component_Or_Discriminant
16806 (Analyze_Record_Representation_Clause):
16807 Use First/Next_Component_Or_Discriminant
16808 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16809 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16810 definition if type is unconstrained.
16811 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16812 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16813 Is_Abstract_Subprogram and Is_Abstract_Type.
16814 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16816 * repinfo.adb (List_Record_Info): Use First/
16817 Next_Component_Or_Discriminant.
16819 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16822 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16823 Include -gnatyA in default switches
16825 * opt.ads: (Warn_On_Non_Local_Exception): New flag
16826 (Warn_On_Reverse_Bit_Order): New flag
16827 (Extensions_Allowed): Update the documentation.
16828 (Warn_On_Questionable_Missing_Parens): Now on by default
16830 * usage.adb: Add documentation of -gnatw.x/X switches
16831 Document new -gnatyA style switch
16832 -gnatq warnings are on by default
16834 2007-04-06 Ed Falis <falis@adacore.com>
16836 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16837 full word is no longer compared twice.
16839 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16841 * sem_ch10.adb (Install_Limited_Context_Clauses.
16842 Expand_Limited_With_Clause): Use a new copy of selector name in the
16843 call to Make_With_Clause. This fixes the tree structure for ASIS
16844 purposes. Nothing is changed in the compiler behaviour.
16845 (Process_Body_Clauses): Handle properly use clauses whose prefix is
16846 a package renaming.
16847 (Install_Limited_With_Clauses): Do not install non-limited view when it
16848 is still incomplete.
16850 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16851 Gary Dismukes <dismukes@adacore.com>
16853 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16854 when capturing size information, instead of base type, which for a
16855 formal array type will be the unconstrained type.
16856 (Analyze_Formal_Object_Declaration): Add check for illegal default
16857 expressions for a formal in object of a limited type.
16858 (Instantiate_Object): Ditto.
16859 (Check_Formal_Package_Instance): Skip entities that are formal objects,
16860 because they were defaulted in the formal package and no check applies
16862 (Check_Formal_Package_Instance): Extend conformance check to other
16863 discrete types beyond Integer.
16864 (Process_Default): Copy directly the unmatched formal. A generic copy
16865 has already been performed in Analyze_Formal_Package.
16866 (Analyze_Associations): If a formal subprogram has no match, check for
16867 partial parametrization before looking for a default, to prevent
16869 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16870 not set the instantiation environment before analyzing the actuals.
16871 Fixes regression on 8515-003 with implementation of AI-133.
16872 Set_Instance_Env checks whether the generic unit is a predefined
16873 unit, in which case the instance must be analyzed with the latest Ada
16874 mode. This setting must take place after analysis of the actuals,
16875 because the actuals must be analyzed and frozen in the Ada mode extant
16876 outside of the current instantiation.
16877 (Save_Env, Restore_Env): Preserve and restore the configuration
16878 parameters so that predefined units can be compiled in the proper Ada
16880 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16881 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16882 and Is_Abstract_Type.
16883 (Analyze_Formal_Package): For better error recovery, Add exception
16884 handler to catch Instantion_Error, which can be raised in
16885 Analyze_Associations
16887 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16888 Bob Duff <duff@adacore.com>
16889 Gary Dismukes <dismukes@adacore.com>
16891 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16892 prefix type is a discriminated subtype of the type of the formal.
16893 (Analyze_Allocator): Collect all coextensions regardless of the context.
16894 Whether they can be allocated statically is determined in exp_ch4.
16895 (Analyze_Selected_Component): If the prefix is a limited view and the
16896 non-limited view is available, use the non-limited one.
16897 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16898 therefore illegal), suggest a qualified expression rather than a type
16899 conversion, because a type conversion would be illegal in this context.
16900 (Anayze_Allocator): Trace recursively all nested allocators so that all
16901 coextensions are on the corresponding list for the root. Do no mark
16902 coextensions if the root allocator is within a declaration for a stack-
16903 allocated object, because the access discriminants will be allocated on
16905 (Analyze_Call): Remove restriction on calls to limited functions for the
16906 cases of generic actuals for formal objects, defaults for formal objects
16907 and defaults for record components.
16908 (Analyze_Allocator): Before analysis, chain coextensions on the proper
16909 element list. Their expansion is delayed until the enclosing allocator
16910 is processed and its finalization list constructed.
16911 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16912 for an operation with the given name among the primitive operations of
16913 the corresponding record type.
16914 (Analyze_Selected_Component): If the prefix is a task type that
16915 implements an interface, and there is no entry with the given name,
16916 check whether there is another primitive operation (e.g. a function)
16918 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16919 properly the indexing of a function call written in prefix form, where
16920 the function returns an array type, and all parameters of the function
16921 except the first have defaults.
16922 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16923 the original operands, rather than relocating them, for efficiency and
16924 to work properly when an operand is overloaded.
16925 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16926 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16927 (Analyze_Selected_Component): If the prefix is a private extension, only
16928 scan the visible components, not those of the full view.
16929 (Try_Primitive_Operation): If the operation is a procedure, collect all
16930 possible interpretations, as for a function, because in the presence of
16931 classwide parameters several primitive operations of the type can match
16932 the given arguments.
16934 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16935 Robert Dewar <dewar@adacore.com>
16937 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16938 tag-indeterminate call to an abstract function, when the left-hand side
16940 (Analyze_Loop_Statement): Improve detection of infinite loops
16942 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16943 Thomas Quinot <quinot@adacore.com>
16945 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16946 out of Analyze_Package_Declaration, because processing must be applied
16947 to package bodies as well, for deferred constants completed by pragmas.
16948 (Analyze_Package_Declaration): When the package declaration being
16949 analyzed does not require an explicit body, call Check_Completion.
16950 (May_Need_Implicit_Body): An implicit body is required when a package
16951 spec contains the declaration of a remote access-to-classwide type.
16952 (Analyze_Package_Body): If the package contains RACWs, append the
16953 pending subprogram bodies generated by exp_dist at the end of the body.
16954 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16955 Is_Abstract_Subprogram and Is_Abstract_Type.
16956 (Preserve_Full_Attributes): The full entity list is not an attribute
16957 that must be preserved from full to partial view.
16959 * sem_dist.adb (Add_RAS_Dereference_TSS):
16960 Change primitive name to _Call so it cannot clash with any legal
16961 identifier, and be special-cased in Check_Completion.
16962 Mark the full view of the designated type for the RACW associated with
16963 a RAS as Comes_From_Source to get proper view switching when installing
16964 private declarations.
16965 Provite a placeholder nested package body along with the nested spec
16966 to have a place for Append_RACW_Bodies to generate the calling stubs
16967 and stream attributes.
16969 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16970 Robert Dewar <dewar@adacore.com>
16972 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16973 that is a limited view, check the non-limited view if available.
16974 (Undefined): Refine error message for missing with of Text_IO
16975 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16976 to distinguish real missing with cases.
16977 Fix format of all missing with messages
16978 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16979 renaming as body when renamed entity is abstract.
16981 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16982 Javier Miranda <miranda@adacore.com>
16984 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16985 predicate recursive, to handle complex expressions on literals whose
16986 spurious ambiguity comes from the abstract interpretation of some
16988 (Interface_Present_In_Ancestor): Add support to concurrent record
16990 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16991 Is_Abstract_Subprogram and Is_Abstract_Type.
16993 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16994 Javier Miranda <miranda@adacore.com>
16996 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16997 dereference of a local object R created as a reference to another
16998 object O, use the access level of O.
16999 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
17000 rather than local Same_Formal_Type, to check whether protected operation
17001 overrides an inherited one.
17002 (Same_Formal_Type): New predicate, used when matching signatures of
17003 overriding synchronized operations, to handle the case when a formal
17004 has a type that is a generic actual.
17005 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
17006 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
17007 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
17008 syntactic ambiguities involving indexing of function calls that return
17010 (Abstract_Interface_List): New subprogram that returns the list of
17011 abstract interfaces associated with a concurrent type or a
17012 concurrent record type.
17013 (Interface_Present_In_Parent): New subprogram used to check if a
17014 given type or some of its parents implement a given interface.
17015 (Collect_Abstract_Interfaces): Add support for concurrent types
17016 with interface types.
17017 (Has_Abstract_Interfaces): Add support for concurrent types with
17019 (Is_Parent): New subprogram that determines whether E1 is a parent
17020 of E2. For a concurrent type its parent is the first element of its
17021 list of interface types; for other types this function provides the
17022 same result than Is_Ancestor.
17023 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
17024 (Collect_Synchronized_Interfaces): Removed because the subprogram
17025 Collect_Abstract_Interfaces provides this functionality.
17026 (Collect_Abstract_Interfaces): Minor update to give support to
17027 concurrent types and thus avoid undesired code duplication.
17028 (Get_Subprogram_Entity): Handle entry calls.
17029 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
17031 (Enter_Name): Do not give -gnatwh hiding warning for record component
17032 entities, they never result in hiding.
17034 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17035 Robert Dewar <dewar@adacore.com>
17037 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
17038 to chain nested components that are allocators for access discriminants
17039 of the enclosing object.
17040 Add N_Push and N_Pop nodes
17041 New field Exception_Label added
17042 (Local_Raise_Statements): New field in N_Exception_Handler_Node
17043 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
17044 (Is_Coextension): New flag for allocators, to mark allocators that
17045 correspond to access discriminants of dynamically allocated objects.
17046 (N_Block_Statement): Document the fact that the corresponding entity
17047 can be an E_Return_Statement.
17048 (Is_Coextension): New flag for allocators.
17049 Remove all code for DSP option
17051 * sprint.ads, sprint.adb: Display basic information for class_wide
17052 subtypes. Add handling of N_Push and N_Pop nodes
17054 2007-04-06 Arnaud Charlet <charlet@adacore.com>
17056 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
17057 before propagating exception.
17059 2007-04-06 Olivier Hainque <hainque@adacore.com>
17061 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
17062 an address always within the call instruction from a return address.
17064 2007-04-06 Olivier Hainque <hainque@adacore.com>
17065 Eric Botcazou <botcazou@adacore.com>
17067 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
17068 expression with a COMPOUND_EXPR including the call instead of emitting
17069 the call directly here.
17070 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
17071 high bound is constant and the slice is empty. Tidy.
17072 (tree_transform, case N_Op_Not): Handle properly the case where the
17073 operation applies to a private type whose full view is a modular type.
17074 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
17075 Address_Clause, use the associated Expression as the GNAT tree
17076 representing the choice value to ensure the corresponding GCC tree is
17077 of the proper kind.
17078 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
17079 instead of just the operands, as the base GCC stabilize_reference does.
17080 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
17081 requested; otherwise fail.
17082 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
17084 2007-04-06 Thomas Quinot <quinot@adacore.com>
17086 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
17087 implementation of UI_Div.
17088 (UI_Div): Reimplement as a call to UI_Div_Rem.
17089 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
17090 remainder, avoiding the cost of a multiplication and a subtraction.
17091 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
17092 provides both quotient and remainder in a single computation.
17093 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
17094 functions for uint.
17095 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
17096 is undefined if the given n is not inversible.
17098 2007-04-06 Olivier Hainque <hainque@adacore.com>
17100 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
17101 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
17104 2007-04-06 Eric Botcazou <botcazou@adacore.com>
17105 Olivier Hainque <hainque@adacore.com>
17107 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
17108 when updating the contents of the old pointer to an unconstrained array.
17109 (end_subprog_body): Set error_gnat_node to Empty.
17110 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
17111 (unchecked_convert): For subtype to base type conversions, require that
17112 the source be a subtype if it is an integer type.
17113 (builtin_decls): New global, vector of available builtin functions.
17114 (gnat_pushdecl): Add global builtin function declaration nodes to the
17115 builtin_decls list.
17116 (gnat_install_builtins): Adjust comments.
17117 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
17118 calling gnat_pushdecl, so that it knows when it handed a builtin
17119 function declaration node.
17120 (builtin_decl_for): Search the builtin_decls list.
17122 2007-04-06 Eric Botcazou <botcazou@adacore.com>
17124 * s-stchop-vxworks.adb:
17125 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
17127 2007-04-06 Robert Dewar <dewar@adacore.com>
17128 Arnaud Charlet <charlet@adacore.com>
17130 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
17132 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
17134 Add mention of -Sev (set initialize_scalars option from environment
17135 variable at run time) in gnatbind usage message.
17137 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
17139 * fname-uf.ads: Minor comment fix
17141 * osint.ads: Change pragma Elaborate to Elaborate_All
17143 * par-load.adb: Add documentation.
17145 * sem_cat.ads, sem_cat.adb: Minor code reorganization
17147 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
17149 * s-secsta.ads: Extra comments
17151 * s-soflin.ads: Minor comment fixes
17153 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
17155 * s-wchcon.ads: Minor comment addition
17157 * treepr.adb: Minor change in message
17158 (Print_Name,Print_Node): Make these debug printouts more robust: print
17159 "no such..." instead of crashing on bad input.
17161 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
17163 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
17164 instead of gnat_signed_or_unsigned_type.
17165 * utils.c (gnat_signed_or_unsigned_type): Remove.
17166 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
17167 * gigi.h (gnat_signed_or_unsigned_type): Remove
17169 2007-03-09 Roger Sayle <roger@eyesopen.com>
17171 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
17172 fold with the result of buildN.
17173 * decl.c (gnat_to_gnu_entity): Likewise.
17174 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
17175 * utils.c (finish_record_type, merge_sizes, max_size, convert):
17177 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
17178 nonbinary_modular_operation, build_binary_op, build_unary_op,
17179 build_cond_expr): Likewise.
17181 * utils.c (convert): Use fold_build1 when casting values to void.
17182 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
17183 fold_convert instead of convert when appropriate.
17185 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
17187 * Make-lang.in: Add install-pdf target as copied from
17188 automake v1.10 rules.
17190 2007-02-28 Andreas Schwab <schwab@suse.de>
17192 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
17193 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
17194 (doc/gnat-style.info): Likewise.
17196 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
17198 * gnat-style.texi: Standardize title page.
17199 * gnat_rm.texi: Likewise.
17200 * gnat_ugn.texi: Likewise.
17202 2007-02-25 Mark Mitchell <mark@codesourcery.com>
17204 * decl.c (annotate_value): Adjust for refactoring of tree_map
17207 2007-02-24 Mark Mitchell <mark@codesourcery.com>
17209 * decl.c (annotate_value): Adjust for refactoring of tree_map
17212 2007-02-21 Ed Schonberg <schonberg@adacore.com>
17215 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
17216 untagged derived type, add hidden components to keep discriminant
17217 layout consistent, when a given discriminant of the derived type
17218 constraints several discriminants of the parent type.
17220 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
17221 Sandra Loosemore <sandra@codesourcery.com>
17223 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
17224 build the call expression.
17225 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
17226 * utils.c (max_size) <tcc_exceptional>: Delete.
17227 <tcc_vl_exp>: New case.
17228 <tcc_expression>: Delete CALL_EXPR subcase.
17229 (build_global_cdtor): Use build_call_nary instead of build3.
17230 * utils2.c (build_call_1_expr): Likewise.
17231 (build_call_2_expr): Likewise.
17232 (build_call_0_expr): Likewise.
17233 (build_call_alloc_dealloc): Likewise.
17235 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
17237 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
17238 get_action_description_for): Replace _Unwind_Word with _uleb128_t
17239 and _Unwind_SWord with _sleb128_t.
17241 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
17243 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
17244 * decl.c: Include gt-ada-decl.h.
17245 (annotate_value_cache): New.
17246 (annotate_value): Use it instead of TREE_COMPLEXITY.
17248 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
17250 * misc.c, utils2.c: Fix comment typos.
17252 2007-01-24 Roger Sayle <roger@eyesopen.com>
17254 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
17255 TREE_CONSTANT_OVERFLOW.
17256 (allocatable_size_p, annotate_value): Likewise.
17257 * trans.c (gnat_to_gnu): Likewise.
17258 * utils.c (unchecked_convert): Likewise.
17259 * utils2.c (build_simple_component_ref): Likewise.
17261 2007-01-23 Richard Guenther <rguenther@suse.de>
17264 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
17265 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
17266 (gnatboot3): Likewise.
17267 (GNATBIND): Do not define.
17268 * Makefile.in (GNATBIND): Do not define.
17270 2007-01-08 Richard Guenther <rguenther@suse.de>
17272 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
17273 * trans.c (gnat_to_gnu): Likewise.
17275 2006-12-07 Geoffrey Keating <geoffk@apple.com>
17277 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
17278 * adaint.c: Likewise.
17280 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
17282 Merge from gimple-tuples-branch:
17283 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
17285 * ada-tree.h (lang_tree_node): Handle gimple tuples.
17286 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
17287 GIMPLE_MODIFY_STMT.
17289 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
17291 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
17292 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
17295 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
17298 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
17299 if the initializer takes into account the padding.
17301 2006-11-11 Richard Guenther <rguenther@suse.de>
17303 * trans.c (maybe_stabilize_reference): Remove handling of
17304 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
17306 2006-11-05 Arnaud Charlet <charlet@adacore.com>
17309 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
17310 (To_Target_Priority): New function.
17312 2006-10-31 Robert Dewar <dewar@adacore.com>
17314 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
17315 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
17316 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
17317 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
17318 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
17319 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
17320 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
17321 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
17322 a-szbzha.adb: Minor reformatting. Fix header.
17324 * a-numaux-x86.adb: Add parentheses for use of unary minus
17325 * a-ngcefu.adb: Supply missing parentheses for unary minus
17326 * a-ngcoty.adb: Add parens for use of unary minus
17327 * a-ngelfu.adb: Add missing parens for unary minus
17328 * a-tifiio.adb: Add parentheses for uses of unary minus
17330 2006-10-31 Robert Dewar <dewar@adacore.com>
17331 Bob Duff <duff@adacore.com>
17332 Ed Schonberg <schonberg@adacore.com>
17334 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
17335 with multiplying operator.
17336 (Expected_Type_Is_Any_Real): New function to determine from the Parent
17337 pointer whether the context expects "any real type".
17338 (Resolve_Arithmetic_Op): Do not give an error on calls to the
17339 universal_fixed "*" and "/" operators when they are used in a context
17340 that expects any real type. Also set the type of the node to
17341 Universal_Real in this case, because downstream processing requires it
17342 (mainly static expression evaluation).
17343 Reword some continuation messages
17344 Add some \\ sequences to continuation messages
17345 (Resolve_Call): Refine infinite recursion case. The test has been
17346 sharpened to eliminate some false positives.
17347 Check for Current_Task usage now includes entry barrier, and is now a
17348 warning, not an error.
17349 (Resolve): If the call is ambiguous, indicate whether an interpretation
17350 is an inherited operation.
17351 (Check_Aggr): When resolving aggregates, skip associations with a box,
17352 which are priori correct, and will be replaced by an actual default
17353 expression in the course of expansion.
17354 (Resolve_Type_Conversion): Add missing support for conversion from
17355 a class-wide interface to a tagged type. Minor code cleanup.
17356 (Valid_Tagged_Converion): Add support for abstact interface type
17358 (Resolve_Selected_Component): Call Generate_Reference here rather than
17359 during analysis, and use May_Be_Lvalue to distinguish read/write.
17360 (Valid_Array_Conversion): New procedure, abstracted from
17361 Valid_Conversion, to incorporate accessibility checks for arrays of
17362 anonymous access types.
17363 (Valid_Conversion): For a conversion to a numeric type occurring in an
17364 instance or inlined body, no need to check that the operand type is
17365 numeric, since this has been checked during analysis of the template.
17366 Remove legacy test for scope name Unchecked_Conversion.
17368 * sem_res.ads: Minor reformatting
17370 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
17371 (PE_Current_Task_In_Entry_Body): New exception code
17372 (SE_Restriction_Violation): Removed, not used
17374 * a-except.ads: Update comments.
17376 * types.h, types.ads: Add definition for Validity_Check
17377 (PE_Current_Task_In_Entry_Body): New exception code
17378 (SE_Restriction_Violation): Removed, not used
17380 2006-10-31 Thomas Quinot <quinot@adacore.com>
17382 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
17385 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17386 Jose Ruiz <ruiz@adacore.com>
17388 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
17389 part of Ada.Calendar: all subprogram raise Unimplemented.
17390 (Split_W_Offset): Temp function body, raising Unimplemented
17392 * a-calend.ads, a-calend-vms.ads:
17393 Add imported variable Invalid_TZ_Offset used to designate targets unable
17394 to support time zones.
17395 (Unimplemented): Temporary function raised by the body of new
17397 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
17398 unit provides handling of leap seconds and is used by the new Ada 2005
17399 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
17400 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
17401 version returns an extra value which is the offset to UTC.
17403 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
17404 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
17405 (Split_W_Offset): New function body.
17406 (Time_Of): When a date is close to UNIX epoch, compute the time for
17407 that date plus one day (that amount is later substracted after
17408 executing mktime) so there are no problems with time zone adjustments.
17410 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
17412 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
17413 a-catizo.ads, a-catizo.adb: New files.
17415 * impunit.adb: Add new Ada 2005 entries
17417 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
17418 Rename all occurences of "__gnat_localtime_r" to
17419 "__gnat_localtime_tzoff".
17420 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
17421 zone data and calculate the GMT offset.
17422 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
17423 Use the field "tm_gmtoff" to extract the GMT offset.
17424 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
17425 the external variable "timezone" to calculate the GMT offset.
17427 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17428 Jose Ruiz <ruiz@adacore.com>
17430 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
17431 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
17432 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
17433 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
17434 System.Any_Priority to a POSIX priority on the target.
17436 * system-linux-ia64.ads:
17437 Extend range of Priority types on Linux to use the whole range made
17438 available by the system.
17440 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
17441 function maps from System.Any_Priority to a POSIX priority on the
17443 (PTHREAD_PRIO_PROTECT): Set real value.
17444 (PTHREAD_PRIO_INHERIT): Now a function.
17445 (SIGCPUFAIL): New signal.
17446 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
17447 are documented as reserved by the OS.
17449 * system-aix.ads: Use the full range of priorities provided by the
17452 * s-taprop-posix.adb: Call new function To_Target_Priority.
17453 (Set_Priority): Take into account Task_Dispatching_Policy and
17454 Priority_Specific_Dispatching pragmas when determining if Round Robin
17455 must be used for scheduling the task.
17457 * system-linux-x86_64.ads, system-linux-x86.ads,
17458 system-linux-ppc.ads: Extend range of Priority types on Linux to use
17459 the whole range made available by the system.
17461 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
17462 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
17463 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
17464 when deallocating the TCB in order to avoid potential references to
17466 (Set_Priority): Take into account Task_Dispatching_Policy and
17467 Priority_Specific_Dispatching pragmas when determining if Round Robin
17468 or FIFO within priorities must be used for scheduling the task.
17470 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
17471 the Thread field (to be used internally by the run-time system) and the
17472 kernel-level task id in the LWP field (to be used by the debugger).
17473 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
17474 instance, and propagate the current task options to the spawned task.
17475 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
17476 (Initialize): Set Round Robin dispatching when the corresponding pragma
17479 2006-10-31 Robert Dewar <dewar@adacore.com>
17481 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
17482 system-linux-hppa.ads, system-hpux-ia64.ads,
17483 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
17484 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
17485 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
17486 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
17487 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
17488 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
17489 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
17490 Default_Bit_Order) to kill constant condition warnings for references
17493 2006-10-31 Vincent Celier <celier@adacore.com>
17494 Eric Botcazou <ebotcazou@adacore.com>
17496 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
17497 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
17498 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
17499 Ext_To, when building the library file name
17501 * mlib-tgt-vxworks.adb: ditto.
17502 (Get_Target_Suffix): Add support for x86 targets.
17504 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
17506 * mlib-tgt-darwin.adb:
17507 Use Append_To, instead of Ext_To, when building the library file name
17508 (Flat_Namespace): New global variable.
17509 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
17510 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
17511 (Link_Shared_Libgcc): Delete.
17512 (Build_Dynamic_Library): Adjust for above changes.
17514 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
17516 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17518 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
17519 (Initialize): Add type conversions required by above change.
17521 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17523 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
17524 (getpid): New body for this function that uses the underlying taskIdSelf
17525 function for VxWorks 5 and VxWorks 6 in kernel mode.
17526 (unsigned_int): New type, modular to allow logical bit operations.
17527 (taskOptionsGet): New imported function.
17529 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
17530 field to be compliant with the type used by the corresponding operating
17533 2006-10-31 Pascal Obry <obry@adacore.com>
17534 Eric Botcazou <ebotcazou@adacore.com>
17535 Vincent Celier <celier@adacore.com>
17537 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
17538 ASCII version of the registry API. This is needed as the GNAT runtime
17539 is now UNICODE by default.
17541 (get_gcc_version): Do not hardcode the return value.
17542 (__gnat_file_time_name): On Windows properly set the default returned
17543 value to -1 which corresponds to Invalid_Time.
17544 (__gnat_fopen): New routine. A simple wrapper on all plateforms
17545 except on Windows where it does conversion for unicode support.
17546 (__gnat_freopen): Idem.
17547 (__gnat_locate_exec_on_path): If environment variable PATH does not
17548 exist, return a NULL pointer
17550 * adaint.h: (__gnat_fopen): Declare.
17551 (__gnat_freopen): Likewise.
17553 * mingw32.h (_tfreopen): Define this macro here for older MingW
17555 Activate the unicode support on platforms using a MingW runtime
17556 version 3.9 or newer.
17558 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
17559 This is needed for proper unicode support on Windows.
17562 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17563 Nicolas Setton <setton@adacore.com>
17564 Olivier Hainque <hainque@adacore.com>
17565 Gary Dismukes <dismukes@adacore.com>
17567 * gigi.h: (tree_code_for_record_type): Declare.
17568 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
17569 (get_global_renaming_pointers): Rename to
17570 invalidate_global_renaming_pointers.
17571 (static_ctors): Delete.
17572 (static_dtors): Likewise.
17573 (gnat_write_global_declarations): Declare.
17574 (create_var_decl): Adjust descriptive comment to indicate that the
17575 subprogram may return a CONST_DECL node.
17576 (create_true_var_decl): Declare new function, similar to
17577 create_var_decl but forcing the creation of a VAR_DECL node.
17578 (get_global_renaming_pointers): Declare.
17579 (add_global_renaming_pointer): Likewise.
17581 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
17583 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
17584 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
17586 (gnat_to_gnu_entity): Remove From_With_Type from computation for
17588 <E_Access_Type>: Use the Non_Limited_View as the full view of the
17589 designated type if the pointer comes from a limited_with clause. Make
17590 incomplete designated type if it is in the main unit and has a freeze
17592 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
17593 Underlying_Full_View similarly. Return earlier if the full view already
17594 has an associated tree.
17595 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
17596 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
17597 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
17598 reference type built for objects with an address clause.
17599 Use create_true_var_decl with const_flag set for
17600 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
17602 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
17603 for Character and Wide_Character types. This info is read by the
17604 dwarf-2 writer, and is needed to be able to use the command "ptype
17605 character" in the debugger.
17606 (gnat_to_gnu_entity): When generating a type representing
17607 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
17608 so that debug writers can distinguish it from ordinary integers.
17609 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
17610 addition to TREE_READONLY to assert the constantness of variables for
17611 elaboration purposes.
17612 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
17613 parameters to call new Einfo function First_Formal_With_Extras.
17614 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
17615 protected type with its corresponding discriminant, to obtain a usable
17617 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
17618 for a multiple elaboration of the "equivalent" type.
17619 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
17620 into record_global_renaming_pointer.
17621 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
17622 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
17623 <E_Array_Subtype>: Likewise.
17624 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
17625 incomplete subtypes and incomplete subtypes of incomplete types visible
17626 through a limited with clause.
17627 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
17628 the base index type for the maximum size of the array only if they are
17630 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
17631 expression into a SAVE_EXPR if stabilization failed.
17633 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
17634 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
17635 by lower level compilation passes.
17636 (gnat_genericize): New function, lowering a function body to GENERIC.
17637 Turn the type of RESULT_DECL into a real reference type if the decl
17638 has been marked DECL_BY_REFERENCE, and adjust references to the latter
17640 (gnat_genericize_r): New function. Tree walking callback for
17642 (convert_from_reference, is_byref_result): New functions. Helpers for
17644 (create_type_decl): Call gnat_pushdecl before calling
17645 rest_of_decl_compilation, to make sure that field TYPE_NAME of
17646 type_decl is properly set before calling the debug information writers.
17647 (write_record_type_debug_info): The heuristics which compute the
17648 alignment of a field in a variant record might not be accurate. Add a
17649 safety test to make sure no alignment is set to a smaller value than
17650 the alignment of the field type.
17651 (make_dummy_type): Use the Non_Limited_View as the underlying type if
17652 the type comes from a limited_with clause. Do not loop on the full view.
17653 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
17654 (dummy_node_table): New global variable, moved from decl.c.
17655 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
17656 (save_gnu_tree): Use above macros.
17657 (get_gnu_tree): Likewise.
17658 (present_gnu_tree): Likewise.
17659 (init_dummy_type): New function, moved from decl.c. Use above macros.
17660 (make_dummy_type): Likewise.
17661 (tree_code_for_record_type): New function extracted from make_dummy_type
17662 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
17663 (static_ctors): Change it to a vector, make static.
17664 (static_dtors): Likewise.
17665 (end_subprog_body): Adjust for above change.
17666 (build_global_cdtor): Moved from trans.c.
17667 (gnat_write_global_declarations): Emit global constructor and
17668 destructor, and call cgraph_optimize before emitting debug info for
17669 global declarations.
17670 (global_decls): New global variable.
17671 (gnat_pushdecl): Store the global declarations in global_decls, for
17673 (gnat_write_global_declarations): Emit debug information for global
17675 (create_var_decl_1): Former create_var_decl, with an extra argument to
17676 state whether the creation of a CONST_DECL is allowed.
17677 (create_var_decl): Behavior unchanged. Now a wrapper around
17678 create_var_decl_1 allowing CONST_DECL creation.
17679 (create_true_var_decl): New function, similar to create_var_decl but
17680 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
17681 (create_field_decl): Do not always mark the field as addressable
17682 if its type is an aggregate.
17683 (global_renaming_pointers): New static variable.
17684 (add_global_renaming_pointer): New function.
17685 (get_global_renaming_pointers): Likewise.
17687 * misc.c (gnat_dwarf_name): New function.
17688 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17689 (gnat_post_options): Add comment about structural alias analysis.
17690 (gnat_parse_file): Do not call cgraph_optimize here.
17691 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17693 * trans.c (process_freeze_entity): Don't abort if we already have a
17694 non dummy GCC tree for a Concurrent_Record_Type, as it might
17695 legitimately have been elaborated while processing the associated
17696 Concurrent_Type prior to this explicit freeze node.
17697 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17698 exception handler volatile if it is of variable size.
17699 (process_type): Remove bypass for types coming from a limited_with
17701 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17702 actual, convert the corresponding gnu_actual to the real destination
17703 type when necessary.
17704 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17705 originally TREE_READONLY but whose elaboration cannot be performed
17707 Part of fix for F504-021.
17708 (tree_transform, subprogram cases): Change loops on formal parameters to
17709 call new Einfo function First_Formal_With_Extras.
17710 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17711 stemming from type conversion for the lhs.
17712 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17713 number of bits per unit for components of records.
17714 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17715 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17716 with At_End_Proc after the SJLJ EH cleanup.
17717 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17719 (elaborate_all_entities): Do not retest type_annotate_only.
17720 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17721 result type of an abstract subprogram, which may be an itype associated
17722 with an anonymous access result (related to AI-318-02).
17723 (build_global_cdtor): Move to utils.c.
17724 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17725 this choice is not a null tree nor an integer constant.
17726 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17727 on the body of elaboration routines instead of mark_unvisited.
17728 (add_stmt): Do not mark the tree.
17729 (add_decl_expr): Tweak comment.
17730 (mark_unvisited): Delete.
17731 (unshare_save_expr): New static function.
17732 (call_to_gnu): Issue an error when making a temporary around a
17733 procedure call because of non-addressable actual parameter if the
17734 type of the formal is by_reference.
17735 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17736 after building the elaboration routine.
17738 2006-10-31 Bob Duff <duff@adacore.com>
17740 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17741 as finalization-started, so we can raise Program_Error on 'new'.
17743 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17744 collection has already started.
17746 * s-finimp.ads (Collection_Finalization_Started): Added new special
17747 flag value for indicating that a collection's finalization has started.
17749 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17750 create a task whose master has already waited for dependent tasks.
17752 2006-10-31 Robert Dewar <dewar@adacore.com>
17754 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17756 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17757 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17758 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17759 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17760 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17761 a-except-2005.ads: Add pragma Preelaborable_Warning
17763 2006-10-31 Robert Dewar <dewar@adacore.com>
17764 Jose Ruiz <ruiz@adacore.com>
17766 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17768 * ali.adb (Get_Name): Properly handle scanning of wide character names
17769 encoded with brackets notation.
17770 (Known_ALI_Lines): Add S lines to this list.
17771 (Scan_ALI): Acquire S (priority specific dispatching) lines.
17772 New flag Elaborate_All_Desirable in unit table
17774 * ali.ads (Priority_Specific_Dispatching): Add this range of
17775 identifiers to be used for Priority_Specific_Dispatching table entries.
17776 (ALIs_Record): Add First_Specific_Dispatching and
17777 Last_Specific_Dispatching that point to the first and last entries
17778 respectively in the priority specific dispatching table for this unit.
17779 (Specific_Dispatching): Add this table for storing each S (priority
17780 specific dispatching) line encountered in the input ALI file.
17781 New flag Elaborate_All_Desirable in unit table
17783 * bcheck.adb: (Check_Configuration_Consistency): Add call to
17784 Check_Consistent_Dispatching_Policy.
17785 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17786 verifying that the use of Priority_Specific_Dispatching,
17787 Task_Dispatching_Policy, and Locking_Policy is consistent across the
17790 * bindgen.adb: (Public_Version_Warning): function removed.
17791 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17792 required information from ALI files in order to initialize the table
17793 containing the specific dispatching policy.
17794 (Gen_Adainit_Ada): Generate the variables required for priority specific
17795 dispatching entries (__gl_priority_specific_dispatching and
17796 __gl_num_specific_dispatching).
17797 (Gen_Adainit_C): Generate the variables required for priority specific
17798 dispatching entries (__gl_priority_specific_dispatching and
17799 __gl_num_specific_dispatching).
17800 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17802 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17803 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17805 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17806 a call to gnat_set_globals.
17807 Generate a string containing settings from
17808 Priority_Specific_Dispatching pragma entries.
17809 (Gen_Object_Files_Options): Do not include the runtime libraries when
17810 pragma No_Run_Time is specified.
17812 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17813 consistency with s-intman-posix.adb.
17814 (__gnat_error_handler, case FreeBSD): Account for the fact that the
17815 handler is installed with SA_SIGINFO.
17816 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17817 FreeBSD ZCX support, copied from Linux version.
17818 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17819 sigfillset, and sigemptyset so the routines defined by MaRTE.
17820 (__gl_priority_specific_dispatching): Add this variable that stores the
17821 string containing priority specific dispatching policies in the
17823 (__gl_num_specific_dispatching): Add this variable that indicates the
17824 highest priority for which a priority specific dispatching pragma
17826 (__gnat_get_specific_dispatching): Add this routine that returns the
17827 priority specific dispatching policy, as set by a
17828 Priority_Specific_Dispatching pragma appearing anywhere in the current
17829 partition. The input argument is the priority number, and the result
17830 is the upper case first character of the policy name.
17831 (__gnat_set_globals): Now a dummy function.
17832 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17833 mechargs instead of sigargs, as the latter can be retrieved from the
17834 former and sigargs is not what we want on ia64.
17835 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17837 (__gnat_adjust_context_for_raise, ia64-vms): New function.
17838 (tasking_error): Remove unused symbol.
17839 (_abort_signal): Move this symbol to the IRIX specific part since this
17840 is the only target that uses this definition.
17841 (Check_Abort_Status): Move this symbol to the IRIX specific part since
17842 this is the only target that uses this definition.
17843 (Lock_Task): Remove unused symbol.
17844 (Unlock_Task): Remove unused symbol.
17846 * lib-writ.adb (Write_ALI): Output new S lines for
17847 Priority_Specific_Dispatching pragmas.
17848 Implement new flag BD for elaborate body desirable
17850 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17851 (Specific_Dispatching): Add this table for storing the entries
17852 corresponding to Priority_Specific_Dispatching pragmas.
17853 Document new BD flag for elaborate body desirable
17855 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17858 2006-10-31 Javier Miranda <miranda@adacore.com>
17860 * a-tags.ads, a-tags.adb:
17861 (Predefined_DT): New function that improves readability of the code.
17862 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17863 Inherit_DT): Use the new function Predefined_DT to improve code
17865 (Register_Interface_Tag): Update assertion.
17866 (Set_Interface_Table): Update assertion.
17867 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17868 determining progenitor interfaces in Tags.
17869 (Inherit_CPP_DT): New subprogram.
17871 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17872 analysis of the thunk code.
17873 (Expand_Interface_Conversion): Handle run-time conversion of
17874 access to class wide types.
17875 (Expand_Dispatching_Call): When generating the profile for the
17876 subprogram itype for a dispatching operation, properly terminate the
17877 formal parameters chaind list (set the Next_Entity of the last formal
17879 (Collect_All_Interfaces): Removed. This routine has been moved to
17880 sem_util and renamed as Collect_All_Abstract_Interfaces.
17881 (Set_All_DT_Position): Hidden entities associated with abstract
17882 interface primitives are not taken into account in the check for
17883 3.9.3(10); this check is done with the aliased entity.
17884 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17885 interfacing with CPP by default.
17886 (Expand_Interface_Conversion): Add missing support for static conversion
17887 from an interface to a tagged type.
17888 (Collect_All_Interfaces): Add new out formal containing the list of
17889 abstract interface types to cleanup the subprogram Make_DT.
17890 (Make_DT): Update the code to generate the table of interfaces in case
17891 of abstract interface types.
17892 (Is_Predefined_Dispatching_Alias): New function that returns true if
17893 a primitive is not a predefined dispatching primitive but it is an
17894 alias of a predefined dispatching primitive.
17895 (Make_DT): If the ancestor of the type is a CPP_Class and we are
17896 compiling under full ABI compatibility mode we avoid the generation of
17897 calls to run-time services that fill the dispatch tables because under
17898 this mode we currently inherit the dispatch tables in the IP subprogram.
17899 (Write_DT): Emit an "is null" indication for a null procedure primitive.
17900 (Expand_Interface_Conversion): Use an address as the type of the formal
17901 of the internally built function that handles the case in which the
17902 target type is an access type.
17904 2006-10-31 Robert Dewar <dewar@adacore.com>
17906 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17908 2006-10-31 Robert Dewar <dewar@adacore.com>
17910 * bindusg.ads, bindusg.adb:
17911 Change to package and rename procedure as Display, which
17912 now ensures that it only outputs usage information once.
17914 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17916 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17919 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17922 2006-10-31 Robert Dewar <dewar@adacore.com>
17923 Ed Schonberg <schonberg@adacore.com>
17925 * treepr.adb: Use new subtype N_Membership_Test
17927 * checks.ads, checks.adb: Add definition for Validity_Check
17928 (Range_Or_Validity_Checks_Suppressed): New function
17929 (Ensure_Valid): Test Validity_Check suppressed
17930 (Insert_Valid_Check): Test Validity_Check suppressed
17931 (Insert_Valid_Check): Preserve Do_Range_Check flag
17932 (Validity_Check_Range): New procedure
17933 (Expr_Known_Valid): Result of membership test is always valid
17934 (Selected_Range_Checks): Range checks cannot be applied to discriminants
17935 by themselves. Disabling those checks must also be done for task types,
17936 where discriminants may be used for the bounds of entry families.
17937 (Apply_Address_Clause_Check): Remove side-effects if address expression
17938 is non-static and is not the name of a declared constant.
17939 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17940 Code cleanup and new error messages.
17941 (Enable_Range_Check): Test for some cases of suppressed checks
17942 (Generate_Index_Checks): Suppress index checks if index checks are
17943 suppressed for array object or array type.
17944 (Apply_Selected_Length_Checks): Give warning for compile-time detected
17945 length check failure, even if checks are off.
17946 (Ensure_Valid): Do not generate a check on an indexed component whose
17947 prefix is a packed boolean array.
17948 * checks.adb: (Alignment_Checks_Suppressed): New function
17949 (Apply_Address_Clause_Check): New procedure, this is a completely
17950 rewritten replacement for Apply_Alignment_Check
17951 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17952 we request a discriminal value only in case of discriminants.
17953 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17954 assignments where the target subtype is unconstrained and the target
17955 object is a parameter or dereference (other aliased cases are known
17956 to be unconstrained).
17958 2006-10-31 Robert Dewar <dewar@adacore.com>
17960 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17961 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17962 vms_conv.adb: Fix bad table increment values (much too small)
17964 * table.adb (Realloc): Make sure we get at least some new elements
17965 Defends against silly small values for table increment
17967 2006-10-31 Robert Dewar <dewar@adacore.com>
17968 Ed Schonberg <schonberg@adacore.com>
17969 Bob Duff <duff@adacore.com>
17971 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17972 entities. Move other fields around to make this possible
17973 (Is_Derived_Type): Add missing call to Is_Type.
17974 (Extra_Formals): New function for subprograms, entries, subprogram
17976 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17977 (First_Formal_With_Extras): New function for subprogs, entries, subp
17979 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17980 Add node information for E_Return_Statement.
17981 (Elaborate_Body_Desirable): New flag
17982 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17983 to be Is_Inherently_Limited_Type, because return-by-reference has
17984 no meaning in Ada 2005.
17985 (E_Return_Statement): New entity kind.
17986 (Return_Applies_To): Field of E_Return_Statement.
17987 (Is_Return_Object): New flag in object entities.
17988 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17989 (Must_Have_Preelab_Init): New flag
17990 (Known_To_Have_Preelab_Init): New flag
17991 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17992 (Is_Visible_Formal): New flag on entities in formal packages.
17993 (Low_Bound_Known): New flag
17994 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17996 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17997 output when Id is an incomplete subtype.
17999 2006-10-31 Robert Dewar <dewar@adacore.com>
18001 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
18002 Avoid abbreviation Creat
18003 (Finalize): List all sources in extended mail source if -gnatl
18005 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
18006 (Finalize): Implement new -gnatl=xxx switch to output listing to file
18007 (Set_Specific_Warning_On): New procedure
18008 (Set_Specific_Warning_Off): New procedure
18009 Add implementation of new insertion \\
18010 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
18011 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
18013 (Error_Msg_Internal): Make sure that we set Last_Killed to
18014 True when a message from another package is suppressed.
18015 Implement insertion character ~ (insert string)
18016 (First_Node): Minor adjustments to get better placement.
18019 Implement new -gnatl=xxx switch to output listing to file
18022 Implement new -gnatl=xxx switch to output listing to file
18024 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
18025 (Commands_To_Stdout): New flag
18026 Implement new -gnatl=xxx switch to output listing to file
18027 New switch Dump_Source_Text
18028 (Warn_On_Deleted_Code): New warning flag for -gnatwt
18029 Define Error_Msg_Line_Length
18030 (Warn_On_Assumed_Low_Bound): New switch
18032 * osint.ads, osint.adb
18033 (Normalize_Directory_Name): Fix bug.
18034 Implement new -gnatl=xxx switch to output listing to file
18035 (Concat): Removed, replaced by real concatenation
18036 Make use of concatenation now allowed in compiler
18037 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
18038 we find the 'lib' or 'bin' directory even when the tool has been
18039 invoked with a relative path.
18040 (Executable_Name): New function taking string parameters.
18042 * osint-c.ads, osint-c.adb:
18043 Implement new -gnatl=xxx switch to output listing to file
18045 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
18048 Implement new -gnatl=xxx switch to output listing to file
18049 Recognize new -gnatL switch
18050 (no longer keep in old warning about old style usage)
18051 Use concatenation to simplify code
18052 Recognize -gnatjnn switch
18053 (Scan_Front_End_Switches): Clean up handling of -gnatW
18054 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
18056 2006-10-31 Robert Dewar <dewar@adacore.com>
18058 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
18059 (Set_Specific_Warning_Off): New procedure
18060 (Warning_Specifically_Suppressed): New function
18061 (Validate_Specific_Warnings): New procedure
18062 (Output_Msg_Text): Complete rewrite to support -gnatjnn
18064 * err_vars.ads: Implement insertion character ~ (insert string)
18066 2006-10-31 Bob Duff <duff@adacore.com>
18067 Ed Schonberg <schonberg@adacore.com>
18069 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
18070 the parent part is a build-in-place function call, generate assignments.
18071 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
18072 are build-in-place function calls.
18073 (Replace_Self_Reference): New subsidiary of
18074 Make_OK_Assignment_Statement, to replace an access attribute that is a
18075 self-reference into an access to the appropriate component of the
18076 target object. Generalizes previous mechanism to handle self-references
18077 nested at any level.
18078 (Is_Self_Referential_Init): Remove, not needed.
18079 (Is_Self_Referential_Init): New predicate to simplify handling of self
18080 referential components in record aggregates.
18081 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
18082 check for presence of entity before checking for self-reference.
18083 (Has_Default_Init_Comps): Return True if a component association is a
18084 self-reference to the enclosing type, which can only come from a
18085 default initialization.
18086 (Make_OK_Assignment_Statement): If the expression is of the form
18087 Typ'Acc, where Acc is an access attribute, the expression comes from a
18088 default initialized self-referential component.
18089 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
18090 that has been derived from several abstract interfaces we must also
18091 initialize the tags of the secondary dispatch tables.
18093 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18094 Thomas Quinot <quinot@adacore.com>
18095 Javier Miranda <miranda@adacore.com>
18096 Robert Dewar <dewar@adacore.com>
18099 (Expand_Access_To_Protected_Op): If the context indicates that an access
18100 to a local operation may be transfered outside of the object, create an
18101 access to the wrapper operation that must be used in an external call.
18102 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
18103 target, pass the Valid attribute applied to a floating-point prefix on
18104 to the back end without expansion.
18105 (Storage_Size): Use the new run-time function Storage_Size to retrieve
18106 the allocated storage when it is specified by a per-object expression.
18107 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
18108 Nothing to do here, the attribute has been rewritten during semantic
18110 (Expand_Attribute_Reference): Handle expansion of the new Priority
18112 (Find_Fat_Info): Handle case of universal real
18113 (Expand_Access_To_Protected_Op): Fix use of access to protected
18114 subprogram from inside the body of a protected entry.
18115 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
18116 'Access and 'Unrestricted_Access, to transform the attribute reference
18117 into a fat pointer.
18118 (Is_Constrained_Aliased_View): New predicate to help determine whether a
18119 subcomponent's enclosing variable is aliased with a constrained subtype.
18120 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
18121 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
18122 an aliased prefix must be known to be constrained in order to use True
18123 for the attribute value, and now it's possible for some aliased views
18124 to be unconstrained.
18126 2006-10-31 Robert Dewar <dewar@adacore.com>
18128 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
18129 (Expand_Entity_Reference): Correct error of not handling subprogram
18130 formals in current_value processing.
18132 2006-10-31 Javier Miranda <miranda@adacore.com>
18133 Robert Dewar <dewar@adacore.com>
18134 Ed Schonberg <schonberg@adacore.com>
18135 Gary Dismukes <dismukes@adacore.com>
18137 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
18138 register in the final list objects containing class-wide interfaces;
18139 otherwise we incorrectly register the tag of the interface in the final
18141 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
18142 generate the wrapper if the parent primitive is abstract. This is
18143 required to report the correct error message.
18144 (Expand_N_Subtype_Indication): Do validity checks on range
18145 (Clean_Task_Names): If an initialization procedure includes a call to
18146 initialize a task (sub)component, indicate that the procedure will use
18147 the secondary stack.
18148 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
18149 compatibility for interfacing with CPP by default.
18150 (Expand_N_Object_Declaration): Only build an Adjust call when the
18151 object's type is a nonlimited controlled type.
18152 * exp_ch3.adb: Add with and use of Exp_Ch6.
18153 (Expand_N_Object_Declaration): Check for object initialization that is a
18154 call to build-in-place function and apply Make_Build_In_Place_Call_In_
18155 Object_Declaration to the call.
18156 (Freeze_Type): When the designated type of an RACW was not frozen at the
18157 point where the RACW was declared, validate the primitive operations
18158 with respect to E.2.2(14) when it finally is frozen.
18159 (Build_Initialization_Call,Expand_Record_Controller): Rename
18160 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
18161 return-by-reference has no meaning in Ada 2005.
18162 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
18163 to register tag of the immediate ancestor interfaces in the
18164 run-time structure.
18165 (Init_Secondary_Tags): Moved to the specification to allow the
18166 initialization of extension aggregates with abstract interfaces.
18167 (Build_Master_Renaming): Make public, for use by function declarations
18168 whose return type is an anonymous access type.
18169 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
18170 Insert_List_Before_And_Analyze after the generation of the specs
18171 associated with null procedures.
18172 (Expand_Tagged_Root): Update documentation in its specification.
18173 (Init_Secondary_Tags): Update documentation.
18174 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
18175 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
18176 then generate code to inherit the contents of the dispatch table
18177 directly from the ancestor.
18178 (Expand_Record_Controller): Insert controller component after tags of
18179 implemented interfaces.
18180 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
18181 create null procedure overridings when null procedures are inherited
18183 (Make_Null_Procedure_Specs): New procedure to generate null procedure
18184 declarations for overriding null primitives inherited from interfaces.
18185 (Is_Null_Interface_Procedure): New function in
18186 Make_Null_Procedure_Specs.
18187 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
18188 immediate ancestor of a tagged type is an abstract interface type we
18189 must generate the specification of the predefined primitives associated
18190 with controlled types (because the dispatch table of the ancestor is
18191 null and hence these entries cannot be inherited). This is required to
18192 elaborate well the dispatch table.
18194 2006-10-31 Javier Miranda <miranda@adacore.com>
18195 Ed Schonberg <schonberg@adacore.com>
18196 Bob Duff <duff@adacore.com>
18197 Gary Dismukes <dismukes@adacore.com>
18198 Robert Dewar <dewar@adacore.com>
18200 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
18202 (Expand_N_In): Do validity checks on range
18203 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
18204 (Expand_N_Allocator): For "new T", if the object is constrained by
18205 discriminant defaults, allocate the right amount of memory, rather than
18206 the maximum for type T.
18207 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
18208 when the allocator is initialized by a build-in-place call, since the
18209 allocator is already rewritten as a reference to the function result,
18210 and this prevents an unwanted duplication of the function call.
18211 Add with and use of Exp_Ch6.
18212 (Expand_Allocator_Expresssion): Check for an allocator whose expression
18213 is a call to build-in-place function and apply
18214 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
18215 untagged designated types).
18216 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
18217 optimization if source or target is biased.
18218 (Expand_N_Allocator): Add comments for case of an allocator within a
18219 function that returns an anonymous access type designating tasks.
18220 (Expand_N_Allocator): apply discriminant checks for access
18221 discriminants of anonymous access types (AI-402, AI-416)
18223 2006-10-31 Bob Duff <duff@adacore.com>
18224 Robert Dewar <dewar@adacore.com>
18225 Gary Dismukes <dismukes@adacore.com>
18226 Ed Schonberg <schonberg@adacore.com>
18228 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
18230 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
18231 (Expand_N_Assignment_Statement): Call
18232 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
18233 build-in-place function call. Currently, this can happen only for
18234 assignments that come from aggregates.
18235 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18236 in order to alleviate the upward compatibility introduced by AI-318.
18237 (Expand_N_Extended_Return_Statement): Add support for handling the
18238 return object as a build-in-place result.
18239 (Expand_Non_Function_Return): Implement simple return statements nested
18240 within an extended return.
18241 (Enable_New_Return_Processing): Turn on the new processing of return
18243 (Expand_Non_Function_Return): For a return within an extended return,
18244 don't raise Program_Error, because Sem_Ch6 now gives a warning.
18245 (Expand_N_Extended_Return_Statement): Implement AI-318
18246 (Expand_Simple_Function_Return): Ditto.
18247 (Expand_N_If_Statement): Handle new -gnatwt warning
18248 (Expand_N_Case_Statement): Handle new -gnatwt warning
18249 (Expand_N_Assignment): Handle assignment to the Priority attribute of
18250 a protected object.
18251 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
18252 validity checking of assignments to elementary record components.
18253 (Expand_N_Return_Statement): return Class Wide types on the secondary
18254 stack independantly of their controlled status since with HIE runtimes,
18255 class wide types are not potentially controlled anymore.
18257 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
18260 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
18261 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
18262 it expects a block, procedure, or task. The return statement will get
18263 turned into a block, and Expand_Cleanup_Actions will happen then.
18265 2006-10-31 Robert Dewar <dewar@adacore.com>
18266 Ed Schonberg <schonberg@adacore.com>
18267 Bob Duff <duff@adacore.com>
18268 Gary Dismukes <dismukes@adacore.com>
18270 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
18272 (Expand_Inlined_Call): Tagged types are by-reference types, and
18273 therefore should be replaced by a renaming declaration in the expanded
18274 body, as is done for limited types.
18275 (Expand_Call): If this is a call to a function with dispatching access
18276 result, propagate tag from context.
18277 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
18279 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
18280 build-in-place when the right-hand side of an assignment is a
18281 build-in-place function call.
18282 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
18283 of the explicit dereference of the allocator to the result subtype of
18284 the build-in-place function. This is needed to satisfy type checking
18285 in cases where the caller's return object is created by an allocator for
18286 a class-wide access type and the type named in the allocator is a
18288 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
18289 conversion of the reference to the declared object to the result subtype
18290 of the build-in-place function. This is needed to satisfy type checking
18291 in cases where the declared object has a class-wide type. Also, in the
18292 class-wide case, change the type of the object entity to the specific
18293 result subtype of the function, to avoid passing a class-wide object
18294 without explicit initialization to the back end.
18295 (Register_Interface_DT_Entry): Moved outside the body of
18296 Freeze_Subprogram because this routine is now public; it is called from
18297 Check_Dispatching_Overriding to handle late overriding of abstract
18298 interface primitives.
18299 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
18300 adding an implicit access actual on a call to a build-in-place function.
18301 (Expand_Actuals): Test for an actual parameter that is a call to a
18302 build-in-place function and apply
18303 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
18304 (Is_Build_In_Place_Function): New function to determine whether an
18305 entity is a function whose calls should be handled as build-in-place.
18306 (Is_Build_In_Place_Function_Call): New function to determine whether an
18307 expression is a function call that should handled as build-in-place.
18308 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
18309 calls to build-in-place functions as the initialization of an allocator.
18310 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
18311 handling calls to build-in-place functions in contexts that do not
18312 involve init of a separate object (for example, actuals of subprogram
18314 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
18315 handling calls to build-in-place functions as the initialization of an
18316 object declaration.
18317 (Detect_Infinite_Recursion): Add explicit parameter Process to
18318 instantiation of Traverse_Body to avoid unreferenced warning.
18319 (Check_Overriding_Inherited_Interfaces): Removed.
18320 (Register_Interface_DT_Entry): Code cleanup.
18321 (Register_Predefined_DT_Entry): Code cleanup.
18322 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
18323 inlined statements if within a transient scope.
18324 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
18325 formal parameters with occurrences of actuals in inlined body, establish
18326 visibility on the proper view of the actual's subtype for the body's
18328 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
18329 compatibility mode and we have an imported CPP subprogram because
18330 for now we assume that imported CPP primitives correspond with
18331 objects whose constructor is in the CPP side (and therefore we
18332 don't need to generate code to register them in the dispatch table).
18333 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
18334 aligned selected component.
18335 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
18336 the actual of an in-mode parameter is a type conversion.
18337 (Expand_Actuals): If the call does not come from source and the actual
18338 is potentially misaligned, let gigi handle it rather than rejecting the
18339 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
18340 Class Wide types as returning by reference independantly of their
18341 controlled status since with HIE runtimes class wide types are not
18342 potentially controlled anymore.
18344 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18346 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
18347 references that are private components of the protected object.
18348 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
18349 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
18350 instantiation to deal with warnings.
18351 (Initialize_Protection): If expression for priority is non-static, use
18352 System_Priority as its expected type, in case the expression has not
18355 2006-10-31 Robert Dewar <dewar@adacore.com>
18357 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
18358 initialization of Homonym_Len.
18359 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
18360 names from fully qualified name. Fixes problem of duplicate
18361 external names differing only in the presence of such a block name.
18363 2006-10-31 Thomas Quinot <quinot@adacore.com>
18364 Pablo Oliveira <oliveira@adacore.com>
18366 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
18367 subprogram Ids, even if they are not yet assigned.
18368 (Build_Subprogram_Id): It is now this function that will take care of
18369 calling Assign_Subprogram_Ids if necessary.
18370 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
18371 should be done only once they are assigned.
18372 (Build_From_Any_Function, case of tagged types): Add missing call to
18374 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
18375 type for an RACW type.
18376 (Add_RACW_Features): When processing an RACW declaration for which the
18377 designated type is already frozen, enforce E.2.2(14) rules immediately.
18378 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
18379 special reordering of controlling formals.
18381 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
18382 associated stub type for an RACW type.
18384 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18386 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
18387 fixed-point operations in an integer context, i.e. as operands of a
18388 conversion to an integer type, indicate that result must be rounded.
18390 2006-10-31 Robert Dewar <dewar@adacore.com>
18392 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
18393 cases, pass the encoding method, since it is now required by the run
18396 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
18397 assumption that Str'First = 1.
18398 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
18399 it on to the Value_Wide_Wide_Character call.
18400 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
18401 properly handles a string of the form quote-encoded_wide_char-quote.
18403 * s-wchcnv.adb: Minor reformatting
18405 2006-10-31 Javier Miranda <miranda@adacore.com>
18407 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
18408 run-time membership test to ensure that the constructed object
18409 implements the target abstract interface.
18411 2006-10-31 Robert Dewar <dewar@adacore.com>
18413 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
18414 Machine_Attribute pragma internally to implement the user pragma.
18415 Add processing for pragma Interface so that it is now completely
18416 equivalent to pragma Import.
18418 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
18419 so that it can be applied to all entities, including record components
18420 and enumeration literals.
18421 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
18422 priority ranges are correct, verify compatibility against task
18423 dispatching and locking policies, and if everything is correct an entry
18424 is added to the table containing priority specific dispatching entries
18425 for this compilation unit.
18426 (Delay_Config_Pragma_Analyze): Delay processing
18427 Priority_Specific_Dispatching pragmas because when processing the
18428 pragma we need to access run-time data, such as the range of
18429 System.Any_Priority.
18430 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
18431 Allow pragma Unreferenced as a context item
18432 Add pragma Preelaborable_Initialization
18433 (Analyze_Pragma, case Interface): Interface is extended so that it is
18434 now syntactically and semantically equivalent to Import.
18435 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
18436 insertion characters.
18437 Add handling for Pragma_Wide_Character_Encoding
18438 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
18439 never supercedes a real restriction, and that a real restriction
18440 always supercedes a warning.
18441 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
18444 2006-10-31 Bob Duff <duff@adacore.com>
18445 Ed Schonberg <schonberg@adacore.com>
18446 Robert Dewar <dewar@adacore.com>
18448 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
18449 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
18450 Is_Inherently_Limited_Type, because return-by-reference has no meaning
18452 (Find_Node_To_Be_Wrapped): Use new method of determining the result
18453 type of the function containing a return statement, because the
18454 Return_Type field was removed. We now use the Return_Applies_To field.
18456 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
18457 (Build_Task_Image_Decl): If procedure is not called from an
18458 initialization procedure, indicate that function that builds task name
18459 uses the sec. stack. Otherwise the enclosing initialization procedure
18460 will carry the indication.
18461 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
18462 N_Object_Declaration instead.
18463 (Kill_Dead_Code): New interface to implement -gnatwt warning for
18464 conditional dead code killed, and change implementation accordingly.
18465 (Insert_Actions): Add N_Return_Object_Declaration case.
18466 Correct comment to mention N_Extension_Aggregate node.
18467 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
18468 attempts to save information for global variables which cannot be
18470 (Get_Current_Value_Condition): Handle conditions the other way round
18471 (constant on left). Also handle right operand of AND and AND THEN
18472 (Set_Current_Value_Condition): Corresponding changes
18473 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
18474 (Get_Current_Value_Condition): Handle simple boolean operands
18475 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
18476 (Get_Current_Value_Condition): If the variable reference is within an
18477 if-statement, does not appear in the list of then_statments, and does
18478 not come from source, treat it as being at unknown location.
18479 (Get_Current_Value_Condition): Enhance to allow while statements to be
18480 processed as well as if statements.
18481 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
18483 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
18484 of loop. This is safe now that we fixed Kill_Current_Values.
18485 (OK_To_Do_Constant_Replacement): Check whether current scope is
18486 Standard, before examining outer scopes.
18488 2006-10-31 Vincent Celier <celier@adacore.com>
18490 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
18491 When True, apply VMS treatment to children of packages A, G, I and S.
18494 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
18496 2006-10-31 Robert Dewar <dewar@adacore.com>
18497 Ed Schonberg <schonberg@adacore.com>
18499 * freeze.adb: Add handling of Last_Assignment field
18500 (Warn_Overlay): Supply missing continuation marks in error msgs
18501 (Freeze_Entity): Add check for Preelaborable_Initialization
18503 * g-comlin.adb: Add Warnings (Off) to prevent new warning
18505 * g-expect.adb: Add Warnings (Off) to prevent new warning
18507 * lib-xref.adb: Add handling of Last_Assignment field
18508 (Generate_Reference): Centralize handling of pragma Obsolescent here
18509 (Generate_Reference): Accept an implicit reference generated for a
18510 default in an instance.
18511 (Generate_Reference): Accept a reference for a node that is not in the
18512 main unit, if it is the generic body corresponding to an subprogram
18515 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
18517 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
18519 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
18521 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
18522 use clauses, to avoid messages on packages used to qualify, and also
18523 to avoid messages from obsolescent units.
18524 (Warn_On_Useless_Assignments): Don't generate messages for imported
18525 and exported variables.
18526 (Warn_On_Useless_Assignments): New procedure
18527 (Output_Obsolescent_Entity_Warnings): New procedure
18528 (Check_Code_Statement): New procedure
18530 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
18531 Change name Is_Ada_2005 to Is_Ada_2005_Only
18532 (Last_Assignment): New field for useless assignment warning
18534 2006-10-31 Olivier Hainque <hainque@adacore.com>
18536 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
18537 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
18539 2006-10-31 Bob Duff <duff@adacore.com>
18540 Robert Dewar <dewar@adacore.com>
18541 Ed Schonberg <schonberg@adacore.com>
18543 * g-awk.adb (Default_Session, Current_Session): Compile this file in
18544 Ada 95 mode, because it violates the new rules for AI-318.
18546 * g-awk.ads: Use overloaded subprograms in every case where we used to
18547 have a default of Current_Session. This makes the code closer to be
18548 correct for both Ada 95 and 2005.
18550 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
18551 code, relying on the fact that the compiler generates a warning
18552 instead of an error in -gnatg mode.
18554 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
18555 E_Return_Statement entity kind.
18556 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
18558 * par.adb (P_Interface_Type_Definition): Addition of one formal to
18559 report an error if the reserved word abstract has been previously found.
18560 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
18562 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
18563 parenthesized range attribute usage
18564 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
18566 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
18567 in the syntax for extended_return_statement. This is not in the latest
18568 RM, but the ARG is expected to issue an AI allowing this.
18569 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
18570 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
18571 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
18572 P_Return_Statement): Parse the new syntax for extended_return_statement.
18574 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
18575 Output_End_Missing): Add error-recovery code for the new
18576 extended_return_statement syntax; that is, the new E_Return entry on
18579 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
18580 limited to nonlimited, because otherwise we violate the new Ada 2005
18581 rules about returning limited types in function Create_AST_Handler in
18584 * sem.adb (Analyze): Add cases for new node kinds
18585 N_Extended_Return_Statement and N_Return_Object_Declaration.
18587 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
18588 type is in the same category as type of context before applying check,
18589 to prevent anomalies in instantiations.
18590 (Resolve_Aggregate): Remove test for limited components in aggregates.
18591 It's unnecessary in Ada 95, because if it has limited components, then
18592 it must be limited. It's wrong in Ada 2005, because limited aggregates
18594 (Resolve_Record_Aggregate): Move check for limited types later, because
18595 OK_For_Limited_Init requires its argument to have been resolved.
18596 (Get_Value): When copying the component default expression for a
18597 defaulted association in an aggregate, use the sloc of the aggregate
18598 and not that of the original expression, to prevent spurious
18599 elaboration errors, when the expression includes function calls.
18600 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
18601 were missing. We also didn't handle qualified expressions. Now also
18602 allow function calls. Use new common routine OK_For_Limited_Init.
18603 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
18604 with space can upper case letter).
18606 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
18607 Has_Static_Discriminants flag
18608 (Record_Type_Declaration): Diagnose an attempt to declare an interface
18609 type with discriminants.
18610 (Process_Range_Expr_In_Decl): Do validity checks on range
18611 (Build_Discriminant_Constraints): Use updated form of
18612 Denotes_Discriminant.
18613 (Process_Subtype): If the subtype is a private subtype whose full view
18614 is a concurrent subtype, introduce an itype reference to prevent scope
18616 (Build_Derived_Record_Type, Collect_Interface_Primitives,
18617 Record_Type_Declaration): The functionality of the subprograms
18618 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
18619 is now performed by a single routine.
18620 (Build_Derived_Record_Type): If the type definition includes an explicit
18621 indication of limitedness, then the type must be marked as limited here
18622 to ensure that any access discriminants will not be treated as having
18623 a local anonymous access type.
18624 (Check_Abstract_Overriding): Issue a detailed error message when an
18625 abstract subprogram was not overridden due to incorrect mode of its
18627 (Analyze_Private_Extension_Declaration): Add support for the analysis of
18628 synchronized private extension declarations. Verify that the ancestor is
18629 a limited or synchronized interface or in the generic case, the ancestor
18630 is a tagged limited type or synchronized interface and all progenitors
18631 are either limited or synchronized interfaces.
18632 Derived_Type_Declaration): Check for presence of private extension when
18633 dealing with synchronized formal derived types.
18634 Process_Full_View): Enchance the check done on the usage of "limited" by
18635 testing whether the private view is synchronized.
18636 Verify that a synchronized private view is completed by a protected or
18638 (OK_For_Limited_Init_In_05): New function.
18639 (Analyze_Object_Declaration): Move check for limited types later,
18640 because OK_For_Limited_Init requires its argument to have been resolved.
18641 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18642 in order to alleviate the upward compatibility introduced by AI-318.
18643 (Constrain_Corresponding_Record): If the constraint is for a component
18644 subtype, mark the itype as frozen, to avoid out-of-scope references to
18645 discriminants in the back-end.
18646 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
18647 this subprogram against wrong sources.
18648 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
18649 discriminant of limited type completed with a protected type, when the
18650 discriminant is used to constrain a private component of the type, and
18651 expansion is disabled.
18652 (Find_Type_Of_Object): Do not treat a return subtype that is an
18653 anonymous subtype as a local_anonymous_type, because its accessibility
18654 level is the return type of the enclosing function.
18655 (Check_Initialization): In -gnatg mode, turn the error "cannot
18656 initialize entities of limited type" into a warning.
18657 (OK_For_Limited_Init): Return true for generated nodes, since it
18658 sometimes violates the legality rules.
18659 (Make_Incomplete_Declaration): If the type for which an incomplete
18660 declaration is created happens to be the currently visible entity,
18661 preserve the homonym chain when removing it from visibility.
18662 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
18663 inherited subprograms.
18664 (Access_Definition): If this is an access to function that is the return
18665 type of an access_to_function definition, context is a type declaration
18666 and the scope of the anonymous type is the current one.
18667 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
18668 incomplete subtype to the set of private dependents of the original
18670 (Constrain_Discriminated_Type): Emit an error message whenever an
18671 incomplete subtype is being constrained.
18672 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
18673 corresponding subtype of the full view of the original incomplete type.
18674 (Check_Incomplete): Properly detect invalid usage of incomplete types
18677 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18679 * g-catiio.ads, g-catiio.adb (Value): New function.
18680 Given an input String, try and parse a valid Time value.
18682 2006-10-31 Vincent Celier <celier@adacore.com>
18684 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
18685 Integer_Address arithmetic, as in Set_Valid.
18687 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18688 Robert Dewar <dewar@adacore.com>
18690 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18691 handling executable extension manually and duplicating code.
18693 * make.adb: Implement new -S switch
18694 (Gnatmake): Use new function Osint.Executable_Name instead
18695 of handling executable extension manually.
18697 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18698 is specified, the executable name ends with this suffix.
18699 Take advantage of Osint.Executable_Name instead of duplicating code.
18701 * switch-m.adb: Recognize new gnatmake -S switch
18703 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18705 (Get_Target_Parameters): Set Executable_Extension_On_Target if
18708 * makeusg.adb: Add line for gnatmake -S switch
18710 2006-10-31 Vincent Celier <celier@adacore.com>
18712 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18713 call it with -static-libgcc, as there are some platforms, such as
18714 Darwin, where one of these two switches is compulsory to link.
18716 2006-10-31 Vincent Celier <celier@adacore.com>
18718 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18719 instead of ADA_PROJECT_PATH, for the project path.
18720 (Gnatls): When displaying the project path directories, use host dir
18723 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18724 names in the project path, as absolute paths may correspond to
18725 multi-valued VMS logical names.
18727 2006-10-31 Vincent Celier <celier@adacore.com>
18729 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18730 absolute path name.
18731 (Locate_Regular_File): Ditto
18732 (Change_Dir): Remove, no longer used
18733 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18734 on Windows. Get it calling Get_Current_Dir.
18735 (OpenVMS): Remove imported boolean, no longer needed.
18736 (Normalize_Pathname)[VMS]: Do not resolve directory names.
18737 (Pid_To_Integer): New function to convert a Process_Id to Integer
18739 2006-10-31 Thomas Quinot <quinot@adacore.com>
18741 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18742 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18744 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18747 2006-10-31 Robert Dewar <dewar@adacore.com>
18749 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18750 initial letter o as a zero.
18752 2006-10-31 Robert Dewar <dewar@adacore.com>
18754 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18756 2006-10-31 Robert Dewar <dewar@adacore.com>
18758 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18760 (Layout_Variant_Record): Retrieve the discriminants from the entity
18761 rather than from the type definition, because in the case of a full
18762 type for a private type we need to take the discriminants from the
18764 (Layout_Component_List): When applying the Max operator to variants with
18765 a nonstatic size, check whether either operand is static and scale that
18766 operand from bits to storage units before applying Max.
18767 (Layout_Type): In VMS, if a C-convention access type has no explicit
18768 size clause (and does not inherit one in the case of a derived type),
18769 then the size is reset to 32 from 64.
18771 2006-10-31 Vincent Celier <celier@adacore.com>
18773 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18774 its file has already been loaded, according to the unit being loaded,
18775 not to the current value of Multiple_Unit_Index.
18777 2006-10-31 Thomas Quinot <quinot@adacore.com>
18778 Eric Botcazou <ebotcazou@adacore.com>
18779 Arnaud Charlet <charlet@adacore.com>
18781 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18782 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18784 (a-except.o): Pass it to the compiler.
18785 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18786 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18787 a-calend-mingw.adb version.
18789 * Makefile.rtl: Added s-dsaser.
18790 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18791 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18792 Ada.Dispatching.Round_Robin.
18793 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18795 * Make-lang.in: Remove all references to gt-ada-decl.h.
18796 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18798 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18799 Update dependencies.
18801 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18803 2006-10-31 Vincent Celier <celier@adacore.com>
18805 * mlib-utl.adb (Initialized): Remove, no longer used
18806 (Initialize): Remove, no longer used
18807 (Ar): If Ar_Exec is null, get the location of the archive builder and,
18808 if there is one, the archive indexer. Fail if the archive builder cannot
18810 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18813 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18815 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18816 Process_Body_Clauses): If the context of a body includes a use clause
18817 for P.Q then a with_clause for P in the same body is not redundant,
18818 even if the spec also has a with_clause on P.
18819 Add missing continuation mark to error msg
18820 (Build_Limited_Views): A limited view of a type is tagged if its
18821 declaration includes a record extension.
18822 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18823 node, even if the subunit has errors. This avoids malfunction by
18824 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18825 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18826 generation of obsolescent messages for with statements (cannot do
18827 this too early, or we cannot implement avoiding the messages in the
18828 case of obsolescent units withing obsolescent units).
18829 (Install_Siblings): If the with_clause is on a remote descendant of
18830 an ancestor of the current compilation unit, find whether there is
18831 a sibling child unit that is immediately visible.
18832 (Remove_Private_With_Clauses): New procedure, invoked after completing
18833 the analysis of the private part of a nested package, to remove from
18834 visibility the private with_clauses of the enclosing package
18836 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18837 now centralized in Generate_Reference.
18838 (Install_Limited_Context_Clauses): Remove superfluous error
18839 message associated with unlimited view visible through use
18840 and renamings. In addition, at the point in which the error
18841 is reported, we add the backslash to the text of the error
18842 to ensure that it is reported as a single error message.
18843 Use new // insertion for some continuation messages
18844 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18845 to create implicit with_clause for parent unit mentioned in original
18846 limited_with_clause.
18847 (Install_Limited_With_Unit): Set entity of parent identifiers if the
18848 unit is a child unit. For ASIS queries.
18849 (Analyze_Subunit): If the subunit appears within a child unit, make all
18850 ancestor child units directly visible again.
18852 2006-10-31 Robert Dewar <dewar@adacore.com>
18854 * par-ch10.adb (P_Context_Clause): Minor error message fix
18856 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18857 Javier Miranda <miranda@adacore.com>
18859 * par-ch12.adb: Grammar update and cleanup.
18860 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18861 support for synchronized derived type definitions.
18862 Add the new actual Abstract_Present to every call to
18863 P_Interface_Type_Definition.
18864 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18865 a formal object declaration with an access definition or a subtype mark
18866 with a null exclusion.
18867 (P_Generic_Association): Handle association with box, and others_choice
18868 with box, to support Ada 2005 partially parametrized formal packages.
18870 2006-10-31 Robert Dewar <dewar@adacore.com>
18871 Javier Miranda <miranda@adacore.com>
18873 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18874 (P_Type_Declaration): Remove barrier against the reserved word "limited"
18875 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18876 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18877 private extensions.
18878 (P_Type_Declaration): Add the new actual Abstract_Present to every call
18879 to P_Interface_Type_Definition.
18880 (P_Interface_Type_Definition): Addition of one formal to report an error
18881 if the reserved word abstract has been previously found.
18882 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18883 object renaming declaration with an access definition or subtype mark
18884 with a possible null exclusion.
18886 * par-ch9.adb: Minor error msg fix
18888 * par-load.adb: Add missing continuation mark to error msg
18890 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18892 2006-10-31 Vincent Celier <celier@adacore.com>
18894 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18895 unknown attribute in unknown package or in package that does not need
18897 (Parse_Package_Declaration): Do not issue warning for unknown package in
18900 2006-10-31 Vincent Celier <celier@adacore.com>
18902 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18903 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18906 2006-10-31 Vincent Celier <celier@adacore.com>
18908 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18909 on VMS, change "__" to '.' before checking the name.
18910 (Record_Ada_Source): Always add the source file name in the list of
18911 of sources, even if it is not the first time, as it is for another
18913 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18914 dot, instead of replacing only the first '_'.
18916 * prj-part.adb (Parse): Convert project file path to canonical form
18918 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18919 extended, the project id of the project extending it is recorded in its
18920 data, even when it has already been processed as an imported project.
18922 2006-10-31 Robert Dewar <dewar@adacore.com>
18924 * repinfo.adb (List_Entities): Don't list entities from renaming
18927 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18928 Robert Dewar <dewar@adacore.com>
18930 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18931 only a restriction warning is active for the given restriction. This is
18932 desirable because we do not want to modify code in the case where only
18934 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18935 causes overriding of real restrictions.
18936 Take advantage of new No_Restrictions constant.
18938 * raise.h: (__gnat_set_globals): Change profile.
18940 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18942 * rtsfind.adb: Remove s-polint from comment as it exists no more.
18945 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18946 Move all the entities in obsolete package System.PolyORB_Interface to
18947 System.Partition_Interface.
18948 (RE_Storage_Size): New function in System.Tasking.
18949 (RE_Get_Ceiling): New entity.
18950 (RE_Set_Ceiling): New entity.
18951 (RO_PE_Get_Ceiling): New entity.
18952 (RO_RE_Set_Ceiling): New entity.
18953 (Inherit_CPP_DT): New entity
18955 2006-10-31 Robert Dewar <dewar@adacore.com>
18957 * scng.adb (Scan, case of numeric literal): Better msg for identifier
18958 starting with a digit.
18960 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18961 Thomas Quinot <quinot@adacore.com>
18962 Javier Miranda <miranda@adacore.com>
18963 Gary Dismukes <dismukes@adacore.com>
18965 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18966 properly an attempt to apply Unchecked_Access to a protected operation.
18967 (OK_Self_Reference): New subprogram to check the legality of an access
18968 attribute whose prefix is the type of an enclosing aggregate.
18969 Generalizes previous mechanism to handle attribute references nested
18970 arbitrarily deep within the aggregate.
18971 (Analyze_Access_Attribute): An access attribute whose prefix is a type
18972 can appear in an aggregate if this is a default-initialized aggregate
18973 for a self-referential type.
18974 (Resolve_Attribute, case Access): Ditto.
18975 Add support for new implementation defined attribute Stub_Type.
18976 (Eval_Attribute, case Attribute_Stub_Type): New case.
18977 (Analyze_Attribute, case Attribute_Stub_Type): New case.
18978 (Stream_Attribute_Available): Implement using new subprogram from
18979 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18980 Has_Specified_Stream_Attribute flag.
18981 Disallow Storage_Size and Storage_Pool for access to subprogram
18982 (Resolve_Attribute, case 'Access et al): Take into account anonymous
18983 access types of return subtypes in extended return statements. Remove
18984 accessibility checks on anonymous access types when Unchecked_Access is
18986 (Analyze_Attribute): Add support for the use of 'Class to convert
18987 a class-wide interface to a tagged type.
18988 Add support for the attribute Priority.
18989 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18990 whether the designated type is discriminated with a constrained partial
18991 view and require static matching in that case.
18992 Add local variable Des_Btyp. The Designated_Type
18993 of an access to incomplete subtype is either its non-limited view if
18994 coming from a limited with or its etype if regular incomplete subtype.
18996 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18997 Fix predicate to identify and allow cases of (expander-generated)
18998 references to tag of designated object of a RACW.
18999 (Validate_Static_Object_Name): In Ada 2005, a formal object is
19000 non-static, and therefore cannot appear as a primary in a preelaborable
19002 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
19003 Has_Read_Write_Attributes.
19004 (Has_Read_Write_Attributes): Reimplement in termes of
19005 Has_Stream_Attribute_Definition.
19006 (Missing_Read_Write_Attributes): When checking component types in a
19007 record, unconditionally call Missing_Read_Write_Attributes recursively
19008 (remove guard checking for Is_Record_Type / Is_Access_Type).
19010 2006-10-31 Robert Dewar <dewar@adacore.com>
19012 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
19013 useless assignments here and conditionalize it on absence of exception
19015 (Analyze_Exception_Handlers): Small code reorganization of error
19016 detection code, for new handling of formal packages.
19018 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19019 Hristian Kirtchev <kirtchev@adacore.com>
19021 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
19022 that has been constant-folded, preserve information of original tree,
19024 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
19025 generated private extension declaration if the formal derived type is
19026 synchronized. Carry synchronized present over to the generated private
19028 (Validate_Derived_Type_Instance): Ensure that the actual of a
19029 synchronized formal derived type is a synchronized tagged type.
19030 (Instantiate_Formal_Package): When creating the instantiation used to
19031 validate the actual package of a formal declared without a box, check
19032 whether the formal itself depends on a prior actual.
19033 (Instantiate_Formal_Subprogram): Create new entities for the defining
19034 identifiers of the formals in the renaming declaration, for ASIS use.
19035 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
19036 a renaming declaration or a subtype declaration for an actual in an
19037 instance, capture location information of declaration in generic, for
19039 (Instantiate_Formal_Package): Add comments on needed additional tests.
19040 AI-317 (partial parametrization) is fully implemented.
19041 (Validate_Private_Type_Instance): Add check for actual which
19042 must have preelaborable initialization
19043 Use new // insertion for some continuation messages
19044 (Analyze_Formal_Object_Declaration): Change usage of Expression to
19045 Default_Expression. Add type retrieval when the declaration has an
19046 access definition. Update premature usage of incomplete type check.
19047 (Check_Access_Definition): New subsidiary routine. Check whether the
19048 current compilation version is Ada 05 and the supplied node has an
19050 (Instantiate object): Alphabetize local variables. Handle the creation
19051 of new renaming declarations with respect to the kind of definition
19052 used - either an access definition or a subtype mark. Guard against
19053 unnecessary error message in the context of anonymous access types after
19054 they have been resolved. Add check for required null exclusion in a
19055 formal object declaration.
19056 (Switch_View): A private subtype of a non-private type needs to be
19057 switched (the base type can have been switched without its private
19058 dependents because of the last branch of Check_Private_View.
19059 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
19061 (Instantiate_Type): Emit an error message whenever a class-wide type of
19062 a tagged incomplete type is used as a generic actual.
19063 (Find_Actual_Type): Extend routine to handle a component type in a child
19064 unit that is imported from a formal package in a parent.
19065 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
19066 agree on constrainedness, rather than checking against ultimate ancestor
19067 (Instantiate_Subprogram_Body): Create a cross-reference link to the
19068 generic body, for navigation purposes.
19070 2006-10-31 Robert Dewar <dewar@adacore.com>
19071 Thomas Quinot <quinot@adacore.com>
19073 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
19075 (New_Stream_Subprogram): When processing an attribute definition clause
19076 for a stream-oriented subprogram, record an entity node occurring at
19077 the point of clause to use for checking the visibility of the clause,
19078 as defined by 8.3(23) as amended by AI-195.
19079 (New_Stream_Subprogram): New procedure, factoring behaviour from both
19080 New_Stream_Function and New_Stream_Procedure.
19081 (New_Stream_Function, New_Stream_Procedure): Removed.
19082 (Analyze_Attribute_Definition_Clause, case Address): Check new
19083 Alignment_Check check
19085 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19086 Javier Miranda <miranda@adacore.com>
19087 Robert Dewar <dewar@adacore.com>
19089 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
19090 generate the same errors compiling under -gnatc.
19091 (Try_Object_Operation): If no candidate interpretation succeeds, but
19092 there is at least one primitive operation with the right name, report
19093 error in call rather than on a malformed selected component.
19094 (Analyze_Selected_Component): If the prefix is an incomplete type from
19095 a limited view, and the full view is available, use the full view to
19096 determine whether this is a prefixed call to a primitive operation.
19097 (Operator_Check): Verify that a candidate interpretation is a binary
19098 operation before checking the type of its second formal.
19099 (Analyze_Call): Add additional warnings for function call contexts not
19101 (Analyze_Allocator): Move the check for "initialization not allowed for
19102 limited types" after analyzing the expression. This is necessary,
19103 because OK_For_Limited_Init looks at the structure of the expression.
19104 Before analysis, we don't necessarily know what sort of expression it
19105 is. For example, we don't know whether F(X) is a function call or an
19106 indexed component; the former is legal in Ada 2005; the latter is not.
19107 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
19108 were missing. We also didn't handle qualified expressions. Now also
19109 allow function calls. Use new common routine OK_For_Limited_Init.
19110 (Analyze_Type_Conversion): Do not perform some legality checks in an
19111 instance, because the error message will be redundant or spurious.
19112 (Analyze_Overloaded_Selected_Component): Do not do style check when
19113 setting an entity, since we do not know it is the right entity yet.
19114 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
19115 (Analyze_Overloaded_Selected_Component): Same change
19116 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
19117 since regular incomplete subtypes are transformed into corresponding
19118 subtypes of their full views.
19119 (Complete_Object_Operation): Treat name of transformed subprogram call
19120 as coming from source, for browsing purposes.
19121 (Try_Primitive_Operation): If formal is an access parameter, compare
19122 with base type of object to determine whether it is a primitive
19124 (Operator_Check): If no interpretation of the operator matches, check
19125 whether a use clause on any candidate might make the operation legal.
19126 (Try_Class_Wide_Operation): Check whether the first parameter is an
19127 access type whose designated type is class-wide.
19129 2006-10-31 Robert Dewar <dewar@adacore.com>
19130 Ed Schonberg <schonberg@adacore.com>
19131 Gary Dismukes <dismukes@adacore.com>
19133 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
19134 warn on infinite loops.
19135 Add \\ to some continuation messages
19136 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
19137 (Process_Bounds): If the bounds are integer literals that result from
19138 constant-folding, and they carry a user-defined type, preserve that type
19139 rather than treating this as an integer range.
19140 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
19141 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
19142 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
19143 left hand side of assignment.
19144 (Analyze_Assignment): Add suport to manage assigments to the attribute
19145 priority of a protected object.
19146 (Check_Possible_Current_Value_Condition): Allow fully qualified names
19147 not just identifiers.
19148 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
19149 or AND THEN for possible tracking.
19150 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
19151 case of while loops so we can track values in the loop body.
19153 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19154 Hristian Kirtchev <kirtchev@adacore.com>
19155 Bob Duff <duff@adacore.com>
19157 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
19158 procedure cannot be a protected operation (it is a basic_declaration,
19159 not a subprogram_declaration).
19160 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
19161 Subp. Add logic for entry processing.
19162 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
19163 Determine whether an entry or subprogram of a protected or task type
19164 override an inherited primitive of an implemented interface.
19165 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
19166 Update the actual used in calls to Check_Overriding_Indicator.
19167 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
19168 generate the proper reference to the parent unit, for cross-reference.
19169 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
19171 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
19172 (Add_Extra_Formal): Revise procedure to allow passing in associated
19173 entity, scope, and name suffix, and handle setting of the new
19174 Extra_Formals field.
19175 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
19176 pass new parameters. Add support for adding the new extra access formal
19177 for functions whose calls are treated as build-in-place.
19178 (Analyze_A_Return_Statement): Correct casing in error message.
19179 Move Pop_Scope to after Analyze_Function_Return, because an extended
19180 return statement really is a full-fledged scope. Otherwise, visibility
19181 doesn't work right. Correct use of "\" for continuation messages.
19182 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
19183 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
19184 the node doesn't get properly marked as analyzed.
19185 (Analyze_Subprogram_Body): If subprogram is a function that returns
19186 an anonymous access type that denotes a task, build a Master Entity
19188 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
19189 proper usage of null exclusion in a result definition.
19190 (Process_Formals): Code cleanup and new error message.
19191 (Process_Formals): Detect incorrect application of null exclusion to
19193 (Conforming_Types): Handle conformance between [sub]types and itypes
19194 generated for entities that have null exclusions applied to them.
19195 (Maybe_Primitive_Operation): Add an additional type retrieval when the
19196 base type is an access subtype. This case arrises with null exclusions.
19197 (New_Overloaded_Entity): Do not remove the overriden entity from the
19198 homonym chain if it corresponds with an abstract interface primitive.
19199 (Process_Formals): Replace membership test agains Incomplete_Kind with a
19200 call to the synthesized predicate Is_Incomplete_Type.
19201 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
19203 (Analyze_Subprogram_Declaration): Check that abstract interface
19204 primitives are abstract or null.
19205 (Analyze_Subprogram_Specification): Remove previous check for abstract
19206 interfaces because it was not complete.
19207 (Has_Interface_Formals): Removed.
19209 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19210 Javier Miranda <miranda@adacore.com>
19212 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
19213 of Analyze_Package_Body, to create Itype references for anonymous
19214 access types created in the package declaration, whose designated types
19215 may have only a limited view.
19216 (Analyze_Package_Specification): For the private part of a nested
19217 package, install private_with_clauses of enclosing compilation unit if
19218 we are in its visible part.
19219 (Declare_Inherited_Private_Subprograms): Complete barrier
19220 to ensure that the primitive operation has an alias to some parent
19221 primitive. This is now required because, after the changes done for the
19222 implementation of abstract interfaces, the contents of the list of
19223 primitives has entities whose alias attribute references entities of
19224 such list of primitives.
19225 (Analyze_Package_Specification): Simplify code that handles parent units
19226 of instances and formal packages.
19227 (Uninstall_Declarations): Check the convention consistency among
19228 primitive overriding operations of a tagged record type.
19230 2006-10-31 Robert Dewar <dewar@adacore.com>
19231 Hristian Kirtchev <kirtchev@adacore.com>
19232 Javier Miranda <miranda@adacore.com>
19233 Ed Schonberg <schonberg@adacore.com>
19235 * sem_ch8.adb: Minor error msg rewording
19236 (Undefined): When checking for misspellings, invert arguments (to get
19237 expected and found set right)
19238 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
19239 (Analyze_Generic_Renaming): Same fix
19240 (Use_One_Package): Do not take into account the internal entities of
19241 abstract interfaces during the analysis of entities that are marked
19242 as potentially use-visible.
19243 (Find_Type): Handle the case of an attribute reference for
19244 implementation defined attribute Stub_Type (simply let the analysis of
19245 the attribute reference rewrite it).
19246 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
19247 type that appears in a Use_Type clause.
19248 (Analyze_Object_Renaming): Add support for renaming of the Priority
19250 (Find_Type): In Ada 2005, a task type can be used within its own body,
19251 when it appears in an access definition.
19252 (Analyze_Object_Renaming): Remove warning on null_exclusion.
19253 (Analyze_Object_Renaming): Introduce checks for required null exclusion
19254 in a formal object declaration or in a subtype declaration.
19255 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
19256 (Check_Null_Exclusion): New local routine to
19257 Analyze_Subprogram_Renaming. Check whether the formals and return
19258 profile of a renamed subprogram have required null exclusions when
19259 their counterparts of the renaming already impose them.
19260 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
19261 Determine whether an entity is inside a generic scope.
19262 (In_Open_Scope): First pass of documentation update.
19263 (Find_Expanded_Name): Add support for shadow entities associated with
19264 limited withed packages. This is required to handle nested packages.
19265 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
19266 that makes a renaming of a limited withed package illegal.
19268 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19269 Ed Schonberg <schonberg@adacore.com>
19271 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
19272 Check_Overriding_Indicator.
19273 (Analyze_Task_Definition): Ditto.
19274 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
19275 (Check_Overriding_Indicator): To find overridden interface operation,
19276 examine only homonyms that have an explicit subprogram declaration, not
19277 inherited operations created by an unrelated type derivation.
19278 (Check_Overriding_Indicator): When checking for the presence of "null"
19279 in a procedure, ensure that the queried node is a procedure
19281 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
19282 type when the formal is an access to variable.
19283 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
19284 (Analyze_Task_Type): Same addition
19285 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
19286 provide navigation capabilities for entries.
19288 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19289 Ed Schonberg <schonberg@adacore.com>
19290 Javier Miranda <miranda@adacore.com>
19291 Gary Dismukes <dismukes@adacore.com>
19293 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
19294 inherited from an interface ancestor by another interface in the
19295 context of an instance as 'late'.
19296 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
19297 of a call to a function that dispatches on access result.
19298 (Check_Dispatching_Operation): In case of late overriding of a primitive
19299 that covers abstract interface subprograms we register it in all the
19300 secondary dispatch tables associated with abstract interfaces.
19301 (Check_Dispatching_Call): Add check that a dispatching call is not made
19302 to a function with a controlling result of a limited type. This is a
19303 current implementation restriction.
19304 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
19305 (Check_Dispatching_Operation): Do no emit a warning if the controlling
19306 argument is an interface type that is a generic formal.
19307 (Is_Interface_Subprogram): Removed.
19308 (Check_Dispatching_Operation): If the subprogram is not a dispatching
19309 operation, check the formals to handle the case in which it is
19310 associated with an abstract interface type.
19312 2006-10-31 Robert Dewar <dewar@adacore.com>
19313 Ed Schonberg <schonberg@adacore.com>
19315 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
19316 Add new calls to this procedure during traversal
19317 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
19318 another unit if expansion is disabled.
19320 2006-10-31 Robert Dewar <dewar@adacore.com>
19322 * sem_eval.adb (Compile_Time_Compare): Make use of information from
19323 Current_Value in the conditional case, to evaluate additional
19324 comparisons at compile time.
19326 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19327 Hristian Kirtchev <kirtchev@adacore.com>
19328 Javier Miranda <miranda@adacore.com>
19330 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
19331 subprogram type to provide better diagnostics in case of ambiguity.
19332 (Covers): Handle coverage of formal and actual anonymous access types in
19333 the context of generic instantiation.
19334 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
19335 abstract interface types; this is required to handle concurrent types
19336 with discriminants and abstract interface types.
19337 (Covers): Include type coverage of both regular incomplete subtypes and
19338 incomplete subtypes of incomplete type visibles through a limited with
19341 2006-10-31 Robert Dewar <dewar@adacore.com>
19342 Hristian Kirtchev <kirtchev@adacore.com>
19343 Ed Schonberg <schonberg@adacore.com>
19345 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
19346 messages for entities in packages which are not used.
19347 (Collect_Synchronized_Interfaces): New procedure.
19348 (Overrides_Synchronized_Primitive): New function.
19349 (Denotes_Discriminant): Extend predicate to apply to task types.
19350 Add missing continuation marks in error msgs
19351 (Unqualify): New function for removing zero or more levels of
19352 qualification from an expression. There are numerous places where this
19353 ought to be used, but we currently only deal properly with zero or one
19355 (In_Instance); The analysis of the actuals in the instantiation of a
19356 child unit is not within an instantiation, even though the parent
19357 instance is on the scope stack.
19358 (Safe_To_Capture_Value): Exclude the case of variables that are
19360 (Check_Obsolescent): Removed
19361 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
19362 is an aliased view, even when rewritten as a reference to the target
19363 object in an assignment.
19364 (Get_Subprogram_Entity): New function
19365 (Known_To_Be_Assigned): New function
19366 (Type_Access_Level): Compute properly the access level of a return
19367 subtype that is an anonymous access type.
19368 (Explain_Limited_Type): Correct use of "\" for continuation messages.
19369 (Is_Transfer): The new extended_return_statement causes a transfer of
19371 (Has_Preelaborable_Initialization): New function
19372 (Has_Null_Exclusion): New function. Given a node N, determine whether it
19373 has a null exclusion depending on its Nkind.
19374 Change Is_Lvalue to May_Be_Lvalue
19375 (May_Be_Lvalue): Extensive additional code to deal with subprogram
19376 arguments (IN parameters are not Lvalues, IN OUT parameters are).
19377 (Safe_To_Capture_Value): Extend functionality so it can be used for
19378 the current value condition case.
19379 (Has_Compatible_Alignment): New function
19380 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
19381 objects to handle the Ada 2005 case, where aliasedness no longer implies
19382 that the object is constrained. In particular, for dereferenced names,
19383 the designated object must be assumed to be unconstrained.
19384 (Kill_Current_Values): Properly deal with the case where we encounter
19385 a loop in the scope chain.
19386 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
19388 (Compile_Time_Constraint_Error): Improve error message in error case
19390 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
19391 associated with entities of abstract interface primitives.
19392 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
19394 2006-10-31 Robert Dewar <dewar@adacore.com>
19396 * s-osinte-tru64.adb:
19397 Mark Asm statements Volatile to prevent warnings (seems a
19398 reasonable change anyway)
19401 * s-mastop-irix.adb: Add Volatile to Asm statements
19402 Suppresses warning, and seems appropriate in any case
19404 * s-osinte-vms.adb: Add Volatile to Asm statement
19406 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
19408 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
19410 Add call to Check_Code_Statement
19412 2006-10-31 Robert Dewar <dewar@adacore.com>
19413 Ed Schonberg <schonberg@adacore.com>
19414 Bob Duff <duff@adacore.com>
19416 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
19417 Synchronized_Present): Add Formal_Derived_Type_Definition and
19418 Private_Extension_Declaration to the list of assertions.
19419 (Is_Entry_Barrier_Function): New flag
19420 (Has_Self_Reference): New flag on aggregates, to indicate that they
19421 contain a reference to the enclosing type, inserted through a default
19423 (Next_Rep_Item): Move from Node4 to Node5.
19424 (Entity): Add this field for N_Attribute_Definition_Clause.
19425 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
19426 (N_Return_Object_Declaration): Remove this node kind. We now use
19427 N_Object_Declaration instead.
19428 (Actual_Designated_Subtype): Move to a different place to make room in
19429 N_Extended_Return_Statement.
19430 (Procedure_To_Call): Move to a different place to make room in
19431 N_Extended_Return_Statement.
19432 (Return_Type): Removed this field to make room in return statements
19434 (Return_Statement_Entity): New field in return statements, in part to
19435 replace Return_Type, and in part to support the fact that return
19436 statements are now pushed on the scope stack during semantic analysis.
19437 (Return_Object_Declarations): New field to support extended return
19439 (N_Extended_Return_Statement): New node for extended_return_statement
19441 (N_Return_Object_Declaration): New node for part of
19442 extended_return_statement nonterminal. Needed because all the necessary
19443 fields won't fit in N_Extended_Return_Statement.
19444 Generic_associations now carry the Box_Present flag, to indicate a
19445 default for an actual in a partially parametrized formal package.
19447 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
19448 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
19449 and for the new predefined dispatching policies: EDF_Across_Priorities,
19450 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
19451 Introduce new name Stub_Type for implementation defined attribute.
19452 Add pragma Preelaborable_Initialization
19453 Add entry for Priority attribute.
19454 Add Pragma_Wide_Character_Encoding
19455 (Get_Convention_Name): Given a convention id, this function returns the
19456 corresponding name id from the names table.
19458 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19459 Robert Dewar <dewar@adacore.com>
19460 Bob Duff <duff@adacore.com>
19462 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
19463 print null exclusion twice in the case of an access definition,
19464 Implement new -gnatL switch
19465 Remove N_Return_Object_Declaration. We now use
19466 N_Object_Declaration instead. Implement the case for
19467 N_Extended_Return_Statement. Alphabetize the cases.
19468 Add cases for new nodes N_Extended_Return_Statement and
19469 N_Return_Object_Declaration. The code is not yet written.
19470 Update the output for N_Formal_Object_Declaration
19471 and N_Object_Renaming_Declaration.
19472 (Write_Itype): Account for the case of a modular integer subtype whose
19473 base type is private.
19475 2006-10-31 Arnaud Charlet <charlet@adacore.com>
19477 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
19478 Remove elaboration code, now done in the binder.
19480 * s-rident.ads: Make this unit Preelaborate.
19481 (No_Restrictions): New constant used to clean up code and follow
19482 preelaborate constraints.
19485 Add System.Restrictions dependence, referenced directly from the
19486 binder generated file.
19488 2006-10-31 Gary Dismukes <dismukes@adacore.com>
19490 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
19491 True when AAMP extended floating-point is in use (48-bit). Change type
19492 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
19493 the two byte array types on AFloat. Change type of IV_Ilf overlay
19494 variable from Byte8 to ByteLF. Add appropriate initializations of
19495 floating-point overlays for AAMP cases.
19497 2006-10-31 Javier Miranda <miranda@adacore.com>
19499 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
19500 (Get_Ceiling): New subprogram that returns
19501 the ceiling priority of the protected object.
19502 (Set_Ceiling): New subprogram that sets the new ceiling priority of
19503 the protected object.
19505 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
19507 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
19509 2006-10-31 Jose Ruiz <ruiz@adacore.com>
19511 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
19512 requeuing to the same protected object to give higher priority tasks
19513 the opportunity to execute.
19515 2006-10-31 Robert Dewar <dewar@adacore.com>
19517 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
19518 add more precise check for the character sequence that follows '[' to
19519 avoid possible confusion in case if '[' is the last character of a
19521 (Scan_Wide): Always allow brackets encoding
19523 2006-10-31 Olivier Hainque <hainque@adacore.com>
19525 * s-stchop.ads: make this unit preelaborate. This is desirable in
19526 general and made mandatory by the use of this unit by s-taprop which
19527 is itself preelaborate.
19529 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
19530 Td_Events component.
19532 2006-10-31 Vincent Celier <celier@adacore.com>
19534 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
19537 2006-10-31 Vincent Celier <celier@adacore.com>
19539 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
19541 2006-10-31 Vincent Celier <celier@adacore.com>
19543 * makegpr.adb (Check_Compilation_Needed): Take into account path names
19545 (Check_Compilation_Needed): When checking a C or C++ source, do not
19546 resolve symbolic links.
19547 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
19548 When not in verbose mode and Ellipse is True, display "..." for the
19549 first argument with Display set to False.
19550 (Build_Global_Archive): Always set Display True for the first object
19551 file. Call Display_Command with Ellipse set to True.
19553 2006-10-31 Matt Heaney <heaney@adacore.com>
19555 * a-crbtgo.ads: Commented each subprogram
19557 * a-crbtgo.adb: Added reference to book from which algorithms were
19560 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
19561 indicate which child.
19562 (Generic_Conditional_Insert): changed parameter name from "Success" to
19564 (Generic_Unconditional_Insert_With_Hint): improved algorithm
19566 * a-coorse.adb (Replace_Element): changed parameter name in call to
19567 conditional insert operation.
19569 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
19571 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
19574 * a-ciorse.adb (Replace_Element): changed parameter name in call to
19575 conditional insert operation.
19577 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
19580 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
19581 instead of mode inout.
19583 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
19585 (Generic_Read): preserve existing buckets array if possible
19586 (Generic_Write): don't send buckets array length anymore
19588 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
19589 instead of mode inout.
19591 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
19592 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19594 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
19595 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19596 (Replace_Element): local operation is now an instantiation
19598 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
19599 check current length.
19600 (Generic_Replace_Element): new operation
19602 2006-10-31 Doug Rupp <rupp@adacore.com>
19604 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
19605 Call TBK$SYMBOLIZE without omitting parameters.
19607 2006-10-31 Vincent Celier <celier@adacore.com>
19609 * symbols-processing-vms-ia64.adb,
19610 symbols-processing-vms-alpha.adb (Process): Do not include symbols
19611 that come from generic instantiations in bodies.
19613 2006-10-31 Pat Rogers <rogers@adacore.com>
19615 * a-rttiev.ads, a-rttiev.adb:
19616 This is a significant redesign primarily for the sake of automatic
19617 timer task termination but also to fix a design flaw.
19618 Therefore we are now using an RTS lock, instead of a protected
19619 object, to provide mutual exclusion to the queue of pending events
19620 and the type Timing_Event is no longer a protected type.
19622 2006-10-31 Robert Dewar <dewar@adacore.com>
19623 Cyrille Comar <comar@adacore.com>
19624 Ben Brosgol <brosgol@adacore.com>
19626 * debug.adb: Update flags documentation
19628 * gnat_ugn.texi: Add documentation for new -gnatwq switch
19629 Clean up documentation for several other warning switches
19630 Clarify how task stack size can be specified with various
19631 versions of Windows.
19632 Add note that -gnatVo includes ranges including loops
19633 Add documentation for -gnatL switch
19634 Add note on elaboration warning for initializing variables
19635 Add documentation for new -gnatwt warning switch
19636 Document new form of pragma Warnings (On|Off, string)
19637 Add comment on use of pragma Warnings to control warnings
19638 Add documentation for -gnatjnn switch
19639 Modify section on interfacing with C for VMS 64-bit.
19640 Add doc for -gnatVe/E
19641 Add documentation of new warning flags -gnatww/-gnatwW
19642 Add warnings about address clause overlays to list of warnings
19643 (Exception Handling Control): Document that the option --RTS must be
19644 used consistently for gcc and gnatbind.
19645 Clarify that inlining is not always possible
19646 Update documentation on pragma Unchecked_Union.
19649 Add documentation for new extended version of pragma Obsolescent
19650 Add documentation for implementation defined attribute 'Stub_Type.
19651 Add note on use of Volatile in asm statements
19652 Add documentation on use of pragma Unreferenced in context clause
19653 Document new form of pragma Warnings (On|Off, pattern)
19654 Document pragma Wide_Character_Encoding
19655 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
19656 enforced if code generation is active.
19657 Add section on pragma Suppress to document GNAT specific check
19659 Clarify difference between No_Dispatching_Calls & No_Dispatch.
19660 Add documentation for pragma Restrictions (No_Elaboration_Code)
19663 Add comments on layout of subprogram local variables in the
19664 presence of nested subprograms.
19666 * ug_words: Resync.
19668 * elists.ads: Minor reformatting
19669 Node returns Node_Or_Entity_Id (doc change only)
19671 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
19673 * g-arrspl.ads (Create): Update comments.
19675 * sem.ads: Add details on the handling of the scope stack.
19677 * usage.adb: Update documentation.
19679 * validsw.ads, validsw.adb:
19680 Add definition of Validity_Check_Components and implement -gnatVe/E
19682 * vms_data.ads: Add missing VMS qualifiers.
19684 * s-addope.ads: Add documentation on overflow and divide by zero
19686 2006-10-31 Robert Dewar <dewar@adacore.com>
19687 Thomas Quinot <quinot@adacore.com>
19688 Arnaud Charlet <charlet@adacore.com>
19690 * fmap.adb: Put routines in alpha order
19692 * g-boumai.ads: Remove redundant 'in' keywords
19694 * g-cgi.adb: Minor reformatting
19696 * g-cgi.ads: Remove redundant 'in' keywords
19698 * get_targ.adb: Put routines in alpha order
19700 * prj-attr.ads: Minor reformatting
19702 * s-atacco.ads: Minor reformatting
19704 * scn.adb: Put routines in alpha order
19706 * sinput-l.adb: Minor comment fix
19708 * sinput-p.adb: Minor comment fix
19710 * s-maccod.ads: Minor reformatting
19712 * s-memory.adb: Minor reformatting
19714 * s-htable.adb: Fix typo in comment.
19716 * s-secsta.adb: Minor comment update.
19718 * s-soflin.adb: Minor reformatting
19721 Add comment about odd qualification in Storage_Offset declaration
19724 Remove unnecessary 'in' keywords for formal parameters.
19726 * treeprs.adt: Minor reformatting
19728 * urealp.adb: Put routines in alpha order
19730 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19733 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19735 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19737 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19738 workaround as on other platforms.
19740 * g-eacodu-vms.adb: Remove redundant 'in' keywords
19741 * g-expect-vms.adb: Remove redundant 'in' keywords
19743 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19744 clear error message if the list-of-files file cannot be opened.
19746 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19747 equality operator is always visible.
19749 * lang.opt: Woverlength-strings: New option.
19752 Update copyright, since nmake.ads and nmake.adb have changed.
19754 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19755 (Binder_Output_Time_Stamps_Set): removed.
19756 (Old_Binder_Output_Time_Stamp): idem.
19757 (New_Binder_Output_Time_Stamp): idem.
19758 (Recording_Time_From_Last_Bind): idem.
19759 (Recording_Time_From_Last_Bind): Make constant.
19761 * output.ads, output.adb (Write_Str): Allow LF characters
19762 (Write_Spaces): New procedure
19764 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19766 * inline.adb: Minor reformatting
19768 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19770 * s-mastop-vms.adb: Remove redundant 'in' keywords
19772 * s-osprim-vms.adb: Remove redundant 'in' keywords
19774 * s-trafor-default.adb: Remove redundant 'in' keywords
19776 * 9drpc.adb: Remove redundant 'in' keywords
19778 * s-osinte-mingw.ads: Minor reformatting
19780 * s-inmaop-posix.adb: Minor reformatting
19782 * a-direio.ads: Remove quotes from Compile_Time_Warning message
19784 * a-exexda.adb: Minor code reorganization
19786 * a-filico.adb: Minor reformatting
19788 * a-finali.adb: Minor reformatting
19790 * a-nudira.ads: Remove quote from Compile_Time_Warning message
19792 * a-numeri.ads: Minor reformatting
19794 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19796 * exp_pakd.ads: Fix obsolete comment
19798 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19799 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19800 Probably not a bug, but certainly neater and more efficient.
19802 * a-tienio.adb: Minor reformatting
19804 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19805 Avoid assuming low bound of string is 1.
19807 * gnatbind.adb: Change Bindusg to package and rename procedure as
19808 Display, which now ensures that it only outputs usage information once.
19809 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19811 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19814 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19816 (Match): Add pragma Assert to ensure that Matches'First is zero
19818 * g-regpat.ads (Match): Document that Matches lower bound must be zero
19820 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19821 documented preconditions (also kills warnings about bad indexes).
19823 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19825 (Build_Import_Library): Ditto;
19827 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19829 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19831 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19832 lower bound of choice table is 1.
19834 * sem_case.ads (Analyze_Choices): Document that lower bound of
19837 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19840 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19841 and add appropriate Assert pragma to suppress warnings.
19843 * atree.h, atree.ads, atree.adb
19844 Change Elist24 to Elist25
19845 Add definitions of Field28 and Node28
19846 (Traverse_Field): Use new syntactic parent table in sinfo.
19848 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19850 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19852 * exp_tss.adb: Put routines in alpha order
19854 * fe.h: Remove redundant declarations.
19856 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19858 * utils.c (builtin_function): Rename to gnat_builtin_function.
19859 Move common code to add_builtin_function.
19860 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19861 gnat_builtin_function.
19862 * gigi.h (builtin_function): Rename to gnat_builtin_function.
19863 Change the signature.
19865 2006-10-16 Brooks Moses <bmoses@stanford.edu>
19867 * Makefile.in: Add TEXI2PDF definition.
19868 * Make-lang.in: Add "ada.pdf" target.
19870 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
19872 * decl.c, utils.c: Fix comment typos.
19873 * utils.c: Fix a typo.
19875 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
19877 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19878 on "pure" Ada subprograms if SJLJ exceptions are used.
19879 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19880 on the declaration node of JMPBUF_SAVE.
19881 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19882 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19883 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19885 2006-08-20 Laurent Guerby <laurent@guerby.net>
19888 g-socket.adb (Bind_Socket): Call Set_Address.
19890 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
19893 * decl.c (same_discriminant_p): New static function.
19894 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19895 subtype and we have discriminants, fix up the COMPONENT_REFs
19896 for the discriminants to make them reference the corresponding
19897 fields of the parent subtype after it has been built.
19899 2006-09-15 Roger Sayle <roger@eyesopen.com>
19902 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19903 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19905 2006-09-13 Olivier Hainque <hainque@adacore.com>
19908 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19909 of a SAVE_EXPR, just make the operand addressable/not-readonly and
19910 let the common gimplifier code make and propagate a temporary copy.
19911 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19912 out/in-out actuals and defer setting the addressable/readonly bits
19915 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19918 * decl.c (components_to_record): Defer emitting debug info for the
19919 record type associated with the variant until after we are sure to
19922 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19925 * gigi.h (gnat_internal_attribute_table): Declare.
19926 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19927 * utils.c (gnat_internal_attribute_table): New global variable.
19928 (builtin_function): Always call decl_attributes on the builtin.
19929 (handle_const_attribute): New static function.
19930 (handle_nothrow_attribute): Likewise.
19932 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19934 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19936 2006-06-23 Olivier Hainque <hainque@adacore.com>
19938 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19939 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19941 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
19942 Eric Botcazou <ebotcazou@adacore.com>
19945 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
19946 check-gnat into check-acats.
19948 2006-06-17 Karl Berry <karl@gnu.org>
19950 * gnat-style.texi (@dircategory): Use "Software development"
19951 instead of "Programming", following the Free Software Directory.
19953 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19956 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19958 2006-06-06 Laurent Guerby <laurent@guerby.net>
19961 mlib-utl.adb: Use Program_Name.
19963 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
19965 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19966 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19967 trans.c, utils.c: Fix comment typos. Follow spelling
19969 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
19972 2006-05-19 Nicolas Setton <setton@adacore.com>
19974 * misc.c (gnat_dwarf_name): New function.
19975 (LANG_HOOKS_DWARF_NAME): Define to it.
19977 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
19979 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19980 (ada/misc.o): Likewise.
19981 (ada/utils.o): Likewise.
19983 2006-04-08 Aurelien Jarno <aurel32@debian.org>
19985 * Makefile.in: Add Ada support for GNU/kFreeBSD.
19986 * s-osinte-kfreebsd-gnu.ads: New file.
19988 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
19990 * Make-lang.in: Rename docdir to gcc_docdir.
19992 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
19994 * gigi.h (get_ada_base_type): Delete.
19995 * utils2.c (get_ada_base_type): Likewise.
19996 * trans.c (convert_with_check): Operate in the real base type.
19998 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20000 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
20002 2006-03-02 Richard Sandiford <richard@codesourcery.com>
20004 * utils.c (create_var_decl): Use have_global_bss_p when deciding
20005 whether to make the decl common.
20007 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
20009 * Make-lang.in (Ada): Remove.
20010 (.PHONY): Remove Ada
20012 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20014 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
20015 aggregate, check the interpretations of the other operand to find one
20016 that may be a boolean array.
20018 (Analyze_Selected_Component): Fix flow-of-control typo in case where
20019 the prefix is a private extension.
20021 2006-02-17 Eric Botcazou <botcazou@adacore.com>
20024 * utils2.c (find_common_type): If both input types are BLKmode and
20025 have the same constant size, keep using the first one.
20027 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
20029 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
20031 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
20033 2006-02-17 Jose Ruiz <ruiz@adacore.com>
20035 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
20036 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
20037 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
20038 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
20039 Abort_Defer/Undefer pairs to avoid the possibility of a task being
20040 aborted while owning a lock.
20042 2006-02-17 Javier Miranda <miranda@adacore.com>
20043 Robert Dewar <dewar@adacore.com>
20045 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
20046 through an access to class-wide interface we force the displacement of
20047 the pointer to the allocated object to reference the corresponding
20048 secondary dispatch table.
20049 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
20050 if Long_Shifts are supported on the target, even if 64 bit divides
20051 are not supported (configurable run time mode).
20052 (Expand_N_Type_Conversion): Do validity check if validity checks on
20053 operands are enabled.
20054 (Expand_N_Qualified_Expression): Do validity check if validity checks
20055 on operands are enabled.
20057 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20059 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
20060 must be materialized when the renamed expression is an explicit
20063 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20065 * freeze.adb (Statically_Discriminated_Components): Return false if
20066 the bounds of the type of the discriminant are not static expressions.
20068 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
20069 the bounds of the discriminant type are not static.
20071 2006-02-17 Robert Dewar <dewar@adacore.com>
20073 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
20074 then we close To if it is valid.
20076 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
20078 * init.c (facility_resignal_table): new array
20079 (__gnat_default_resignal_p): enhance default predicate to resignal if
20080 VMS condition has one of the predefined facility codes.
20082 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
20084 * Makefile.in: Use VMS64 specialized versions of several units in
20085 Interfaces.C hierarchy to be compatible with HP C default size choices.
20086 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
20088 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20090 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
20091 instantiation, the corresponding entity is the related_instance of the
20092 wrapper package created for the instance.
20094 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20096 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
20097 the current instance is nested within another instance in a child unit.
20099 2006-02-17 Javier Miranda <miranda@adacore.com>
20100 Ed Schonberg <schonberg@adacore.com>
20102 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
20103 type we cannot inherit the primitive operations; we inherit the
20104 Corresponding_Record_Type (which has the list of primitive operations).
20105 (Check_Anonymous_Access_Types): When creating anonymous access types for
20106 access components, use Rewrite in order to preserve the tree structure,
20108 (Analyze_Object_Declaration): For limited types with access
20109 discriminants with defaults initialized by an aggregate, obtain
20110 subtype from aggregate as for other mutable types.
20111 (Derived_Type_Declaration): If the derived type is a limited interface,
20112 set the corresponding flag (Is_Limited_Record is not sufficient).
20114 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20116 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
20117 to inline a function that returns an unconstrained type, the return
20118 expression must be the first variable declared in the body of the
20121 2006-02-17 Javier Miranda <miranda@adacore.com>
20123 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
20124 abstract interface type, the static analysis is not enough to know if
20125 the interface is implemented or not by the source tagged type. Hence
20126 we must pass the work to the expander to generate the required code to
20127 evaluate the conversion at run-time.
20128 (Resolve_Equality_Op): Do not apply previous
20129 transformation if expansion is disasbled, to prevent anomalies when
20130 locating global references in a generic unit.
20132 2006-02-17 Vincent Celier <celier@adacore.com>
20134 * snames.ads, snames.adb: New standard names for new project attributes:
20135 archive_builder, archive_indexer, compiler_pic_option,
20136 config_body_file_name, config_body_file_name_pattern,
20137 config_file_switches, config_file_unique, config_spec_file_name,
20138 config_spec_file_name_pattern, default_builder_switches,
20139 default_global_compiler_switches, default_language,
20140 dependency_file_kind, global_compiler_switches, include_path,
20141 include_path_file, language_kind, linker_executable_option,
20142 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
20143 roots, runtime_project.
20145 2006-02-17 Matthew Heaney <heaney@adacore.com>
20147 * a-convec.ads, a-convec.adb:
20148 (operator "&"): handle potential overflow for large index types
20149 (Insert): removed Contraint_Error when using large index types
20150 (Insert_Space): removed Constraint_Error for large index types
20151 (Length): moved constraint check from Length to Insert
20153 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
20154 as not null access.
20155 Explicit raise statements now include an exception message.
20156 (operator "&"): handle potential overflow for large index types
20157 (Insert): removed Contraint_Error when using large index types
20158 (Insert_Space): removed Constraint_Error for large index types
20159 (Length): moved constraint check from Length to Insert
20161 2006-02-17 Robert Dewar <dewar@adacore.com>
20163 * s-wchcnv.adb: Document handling of [ on output (we do not change
20164 this to ["5B"] and the new comments say why not.
20167 Add note for -gnatVo that this now includes the cases of type
20168 conversions and qualified expressions.
20169 Add comments on handling of brackets encoding for Text_IO
20171 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
20172 Thomas Quinot <quinot@adacore.com>
20173 Robert Dewar <dewar@adacore.com>
20174 Javier Miranda <miranda@adacore.com>
20176 * expander.adb: Fix typo in comment
20178 * exp_pakd.adb: Fix typo
20179 Minor comment reformatting.
20181 * g-dyntab.adb: Minor reformatting
20183 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
20184 aliased subprograms to look for the abstract interface subprogram.
20186 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
20188 * env.c (__gnat_setenv): Use size_t.
20189 (__gnat_unsetenv): Likewise.
20190 (__gnat_clearenv): Likewise.
20192 2006-02-16 Arnaud Charlet <charlet@adacore.com>
20194 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
20196 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20198 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
20199 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
20200 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
20201 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
20202 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
20203 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
20204 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
20205 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
20206 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
20209 2006-02-13 Jose Ruiz <ruiz@adacore.com>
20211 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
20212 protection against race conditions is not needed.
20213 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
20215 (Set_Specific_Handler): Add mutual exclusive access to the specific
20217 (Specific_Handler): Add mutual exclusive access for retrieving the
20220 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
20223 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
20224 Fall_Back_Handler and Specific_Handler.
20226 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
20227 termination handlers.
20228 Set two different owerflow depending on the maximal stack size.
20230 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
20231 protection against race conditions is not needed when executing the
20232 task termination handler.
20234 2006-02-13 Robert Dewar <dewar@adacore.com>
20236 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
20237 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
20238 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20239 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
20240 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
20241 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
20242 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
20243 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
20244 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
20245 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
20246 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
20247 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
20248 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
20249 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
20250 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
20251 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
20252 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
20253 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
20254 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
20255 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
20256 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
20257 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
20258 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
20259 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
20260 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
20261 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
20262 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
20263 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
20264 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
20265 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
20266 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
20267 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
20268 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
20269 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
20272 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20274 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
20275 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
20276 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
20277 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
20278 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
20279 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
20280 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
20281 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
20282 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
20284 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20286 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
20287 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
20288 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
20289 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
20290 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
20291 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
20292 replaced by anonymous access type.
20293 (pthread_sigmask): Now take an access sigset_t
20295 * s-osinte-hpux.ads: Ditto.
20296 (pthread_mutex_t, pthread_cond_t): Update definitions to support
20297 properly 32 and 64 bit ABIs.
20299 2006-02-13 Pascal Obry <obry@adacore.com>
20301 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
20302 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
20303 s-taprop-linux.adb, s-taprop-solaris.adb,
20304 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
20305 adjustement is already done when calling this routine.
20307 2006-02-13 Pascal Obry <obry@adacore.com>
20309 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
20310 table to take advantage of the 16 priority levels available on Windows
20311 2000 and XP. On NT4 there are only 7 priority levels, this is properly
20312 supported by this new mapping.
20314 2006-02-13 Nicolas Setton <setton@adacore.com>
20316 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
20317 (get_encoding): New subprogram. Extracts the encodings from an encoded
20320 2006-02-13 Pascal Obry <obry@adacore.com>
20321 Nicolas Roche <roche@adacore.com>
20322 Arnaud Charlet <charlet@adacore.com>
20324 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
20326 (__gnat_try_lock): Add unicode support by using a specific section on
20328 (__gnat_get_current_dir): Idem.
20329 (__gnat_open_read): Idem.
20330 (__gnat_open_rw): Idem.
20331 (__gnat_open_create): Idem.
20332 (__gnat_create_output_file): Idem.
20333 (__gnat_open_append): Idem.
20334 (__gnat_open_new): Idem.
20335 (__gnat_file_time_name): Idem.
20336 (__gnat_set_file_time_name): Idem.
20337 (__gnat_stat): Idem.
20338 (win32_no_block_spawn): Idem.
20339 (__gnat_locate_exec_on_path): Idem.
20340 (__gnat_opendir): New routine.
20341 (__gnat_closedir): Idem.
20342 (__gnat_readdir): Add new parameter length (pointer to int). Update
20343 implementation to use it and add specific Win32 code for Unicode
20345 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
20346 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
20347 (convert_addresses): Do not define this dummy routine on VMS.
20349 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
20350 runtime Unicode support will be activated.
20351 (S2WS): String to Wide-String conversion. This version just copy a
20352 string in non Unicode version.
20353 (WS2S): Wide-String to String conversion. This version just copy a
20354 string in non Unicode version.
20356 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
20357 (Open): Now import __gnat_opendir from adaint.c.
20358 (Read): Change the implementation to support unicode characters. It is
20359 not possible to use strlen() on Windows as this version supports only
20360 standard ASCII characters. So the length of the directory entry is now
20361 returned from the imported __gnat_readdir routine.
20362 Update copyright notice.
20364 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
20365 (opendir): Moved to adaint.c.
20367 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
20368 (Get_Directory): Fix wrong indexing.
20369 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
20370 __gnat_getenv from env.c
20371 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
20374 * env.h, env.c: New file.
20376 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
20377 adaint.c by __gnat_getenv from env.c
20379 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
20380 adaint.c by __gnat_getenv from env.c
20382 * Make-lang.in: Add env.o in the list of C object needed by gnat1
20384 Update dependencies.
20386 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20387 Olivier Hainque <hainque@adacore.com>
20388 Eric Botcazou <ebotcazou@adacore.com>
20390 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
20392 * gigi.h (value_factor_p): Add prototype and description, now public.
20394 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
20395 promotion for field with rep clause if the associated size was proven
20397 Expand comments describing attempts to use a packable type.
20398 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
20399 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
20400 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
20401 necessary since these are not different types and pointers may
20402 actually designate any subtype in this hierarchy.
20403 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
20404 discriminants but put them into record only if not Unchecked_Union;
20405 pass flag to components_to_record showing Unchecked_Union.
20406 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
20407 components before variants; don't set TYPE_UNCHECKED_UNION_P.
20408 (components_to_record): New argument UNCHECKED_UNION.
20409 Remove special case code for Unchecked_Union and instead use main code
20410 with small changes.
20413 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
20414 variable with the expression being built, only its inner field.
20416 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
20417 emit_sequence_entry_statements.
20418 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
20419 (establish_gnat_vms_condition_handler): Move before
20420 Subprogram_Body_to_gnu.
20421 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
20422 for a subprogram if it has a foreign convention or is exported.
20423 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
20424 substituted for a CONST_DECL.
20425 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
20426 Etype to assoc_to_constructor.
20427 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
20428 discriminants of Unchecked_Union.
20429 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
20430 don't need cluttering preprocessor directives.
20431 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
20432 condition handler as current in the compiled function.
20433 (body_with_handlers_p): New function. Tell whether a given sequence of
20434 statements node is attached to a package or subprogram body and involves
20435 exception handlers possibly nested within inner block statements.
20436 (emit_sequence_entry_statements): New function, to emit special
20437 statements on entry of sequences when necessary. Establish GNAT
20438 condition handler in the proper cases for VMS.
20439 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
20440 emit_sequence_entry_statements.
20442 * utils2.c (find_common_type): If both input types are BLKmode and
20443 have a constant size, use the smaller one.
20444 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
20447 * utils.c (value_factor_p): Make public, to allow uses from other gigi
20449 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
20450 (convert, case UNION_TYPE): Remove special treatment for unchecked
20454 (update_pointer_to): Update variants of pointer types to unconstrained
20455 arrays by attaching the list of fields of the main variant.
20457 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20458 Robert Dewar <dewar@adacore.com>
20460 * a-exexpr.adb, a-exexpr-gcc.adb
20461 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
20462 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
20463 Remove code unused for exception propagation for the compiler itself
20464 from a-except.adb and update to still share separate packages.
20466 * a-except.ads, a-except.adb: Ditto.
20467 Add comments that this version is now used only by the compiler and
20468 other basic tools. The full version that includes the Ada 2005 stuff
20469 is in separate files a-except-2005.ads/adb. The reason is that we do
20470 not want to cause bootstrap problems with compilers not recognizing
20472 Add exception reason code PE_Implicit_Return
20473 Add new exception reason code (Null Exception_Id)
20475 * a-except-2005.adb, a-except-2005.ads: New files.
20477 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
20479 * s-wchcon.adb: New file.
20481 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
20482 (traceback.o deps): Likewise.
20483 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
20484 Activate build of GMEM instrumentation library on VMS targets.
20485 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
20486 Use a-except-2005.ads/adb for all run-time library builds unless
20487 specified otherwise.
20488 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
20489 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
20490 Use s-parame.adb on all native platforms.
20491 Use s-parame-vxworks.adb on all vxworks platforms.
20492 Add env.c env.h in LIBGNAT_SRCS
20493 Add env.o in LIBGNAT_OBJS
20494 (GNATMAKE_OBJS): Remove ctrl_c.o object.
20495 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
20496 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20497 supports VxWorks 6 RTPs.
20498 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
20499 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20501 * types.h, types.ads (Terminate_Program): New exception
20502 Add comment on modifying multiple versions of a-except.adb when the
20503 table of exception reasons is modified.
20504 Add exception reason code PE_Implicit_Return
20505 Add new exception reason code (Null Exception_Id)
20507 * clean.adb (Initialize): Get the target parameters before checking
20508 if target is OpenVMS. Move the OpenVMS specific code here from package
20509 body elaboration code.
20511 2006-02-13 Thomas Quinot <quinot@adacore.com>
20512 Vincent Celier <celier@adacore.com>
20513 Robert Dewar <dewar@adacore.com>
20515 * ali-util.adb (Get_File_Checksum): Update to account for change in
20516 profile of Initialize_Scanner.
20518 * gprep.adb (Gnatprep): Update to account for change in profile of
20519 Initialize_Scanner.
20520 (Process_One_File): Same.
20522 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
20523 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
20524 that behaviour using the new Unit information recorded in the source
20525 files table, rather than going through all units every time.
20526 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
20527 (Get_Source_Unit): Same.
20529 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
20530 change in profile of Initialize_Scanner.
20531 (Prepare_To_Preprocess): Same.
20533 * lib.ads: Fix typo in comment (templace -> template).
20535 * prj-part.adb (Parse_Single_Project): Update to account for change in
20536 profile of Initialize_Scanner.
20538 * scn.adb (Initialize_Scanner): Account for change in profile of
20539 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
20540 Also record the association of the given Source_File_Index to the
20541 corresponding Unit_Number_Type.
20543 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
20545 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
20546 Remove Unit formal for generic scanner: this formal
20547 is only relevant to Scn (the scanner instance used to parse Ada source
20548 files), not to other instances. Update comment accordingly.
20549 (Scan): Use new function Snames.Is_Keyword_Name.
20551 * sinfo-cn.adb: Fix typo in comment.
20553 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
20556 * sinput.ads (Source_File_Record): New component Unit, used to capture
20557 the unit identifier (if any) associated to a source file.
20559 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
20560 Unit in Source_File_Record.
20562 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
20563 in profile of Initialize_Scanner.
20565 * scans.adb (Initialize_Ada_Keywords): New procedure
20567 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
20568 Ada keywords in the Namet table, without the need to call
20569 Initialize_Scanner.
20571 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
20572 (Is_Keyword_Name): New function
20574 * snames.ads: Add subtype Configuration_Pragma_Names
20575 Add pragma Ada_2005 (synonym for Ada_05)
20576 (Is_Keyword_Name): New function
20578 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
20580 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20582 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
20585 * a-stwima.adb (To_Set): Add extra check when N = 0.
20587 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
20589 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20591 * s-parame-mingw.adb, s-parame-linux.adb,
20592 s-parame-solaris.adb: Removed, replaced by s-parame.adb
20594 * s-parame-vxworks.ads: Fix typo.
20596 * s-parame-vxworks.adb: New file.
20598 * s-parame.adb: Version now used by all native platforms.
20599 (Default_Stack_Size): Use 2 megs for default stack size and use
20600 __gl_default_stack_size when available.
20601 (Minimum_Stack_Size): Use 12K.
20603 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
20604 (Create_Task): Refine implementation taking advantage of the XP stack
20605 size support. On XP, we now create the thread using the flag
20606 STACK_SIZE_PARAM_IS_A_RESERVATION.
20608 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
20610 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
20611 XP and 0 on older Windows versions.
20613 * interfac-vms.ads: Removed, no longer used.
20615 2006-02-13 Matthew Heaney <heaney@adacore.com>
20617 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
20618 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
20619 a-cohase.adb: All explicit raise statements now include an exception
20622 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
20623 (Update_Element_Preserving_Key): renamed op to just Update_Element.
20624 Explicit raise statements now include an exception message
20626 * a-cihase.ads, a-cohase.ads: Removed comment.
20628 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
20629 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
20630 a-szbzha.adb, a-szfzha.ads: New files.
20632 2006-02-13 Matthew Heaney <heaney@adacore.com>
20634 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
20637 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20639 * lang.opt: Wvariadic-macros: New option.
20640 Wold-style-definition: Likewise.
20641 Wmissing-format-attribute: Likewise.
20643 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
20644 -Wold-style-definition and -Wmissing-format-attribute.
20646 2006-02-13 Robert Dewar <dewar@adacore.com>
20648 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
20650 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
20652 2006-02-13 Nicolas Roche <roche@adacore.com>
20654 * a-envvar.adb, a-envvar.ads: New files.
20656 2006-02-13 Douglas Rupp <rupp@adacore.com>
20658 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
20660 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
20662 2006-02-13 Pat Rogers <rogers@adacore.com>
20664 * a-rttiev.adb, a-rttiev.ads: New files.
20666 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20668 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
20669 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
20671 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
20673 2006-02-13 Robert Dewar <dewar@adacore.com>
20675 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
20676 sem_case.adb: Minor code reorganization (not Present should be No)
20678 2006-02-13 Geert Bosch <bosch@adacore.com>
20679 Gary Dismukes <dismukes@adacore.com>
20681 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
20682 0, since the lower bound of the actual string may be greater than one.
20685 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
20686 layout is requested.
20688 2006-02-13 Vincent Celier <celier@adacore.com>
20690 * back_end.adb (Scan_Compiler_Arguments): Check if
20691 Search_Directory_Present is True and, if it is, add the argument in
20692 the source search directory path.
20694 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20695 Search_Directory_Present to True.
20697 2006-02-13 Joel Brobecker <brobecke@adacore.com>
20699 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20700 volatile, to tell the compiler to preserve this variable at any level
20702 (Gen_Versions_Ada): Temporarily work around codegen bug.
20704 2006-02-13 Vincent Celier <celier@adacore.com>
20706 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20707 gcc to link with option -shared-libgcc.
20708 (Gnatlink): Remove duplicate switches -shared-libgcc
20710 2006-02-13 Robert Dewar <dewar@adacore.com>
20712 * gnatvsn.ads (Current_Year): New constant, used to easily update
20713 copyright on all GNAT tools.
20715 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20718 2006-02-13 Robert Dewar <dewar@adacore.com>
20720 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20721 after hyphen (small aesthetic change useful for a range of numbers
20723 Suppress range checks for a couple of assignments which otherwise
20724 cause validity checks with validity checking turned on.
20726 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20727 Improvement in error message for object.
20728 (Rep_Item_Too_Late): Remove '!' in warning message.
20730 2006-02-13 Robert Dewar <dewar@adacore.com>
20731 Eric Botcazou <ebotcazou@adacore.com>
20733 * err_vars.ads: Suppress range checks for a couple of assignments
20734 which otherwise cause validity checks with validity checking turned on.
20737 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20738 Make message unconditional if it is a warning.
20739 (Error_Msg_NEL): Always output warning messages.
20740 Suppress range checks for a couple of assignments which otherwise
20741 cause validity checks with validity checking turned on.
20743 * errout.ads (Message Insertion Characters): Document that '!' is
20744 implied by '?' in error messages.
20746 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20747 (Gnat1drv): Use a goto to end of main subprogram instead of
20748 Exit_Program (E_Success) so that finalization can occur normally.
20750 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20752 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20755 2006-02-13 Vincent Celier <celier@adacore.com>
20757 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20758 Unchecked_Conversion functions.
20759 (Modification_Time): Use direct conversion of OS_Time to Calendar time
20760 when OpenVMS returns False.
20762 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20763 a-dirval.adb (OpenVMS): New Boolean function
20765 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20766 Thomas Quinot <quinot@adacore.com>
20768 * checks.adb (Build_Discriminant_Checks): If the expression being
20769 checks is an aggregate retrieve the values of its discriminants to
20770 generate the check, rather than creating a temporary and a reference
20772 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20773 (Install_Null_Excluding_Check): Ditto
20774 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20775 not for the renamed object, so that the actual itype is attached in the
20778 2006-02-13 Robert Dewar <dewar@adacore.com>
20779 Vincent Celier <celier@adacore.com>
20781 * debug.adb: Eliminate numeric switches for binder/gnatmake
20783 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20784 switches for the compiler.
20785 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20786 (Scan_Make_Switches): When failing with an illegal switch, output an
20787 error message with the full switch.
20788 Eliminate numeric switches for binder/gnatmake
20790 * switch.ads, switch.adb (Bad_Switch): New procedure
20792 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20793 Remove 0-9 as debug flag character possibilities
20794 -d is now controlling the primary stack size when its value is a
20795 positive. Also add checks against invalid values, and support for kb,
20796 mb. Ditto for -D switch.
20798 2006-02-13 Robert Dewar <dewar@adacore.com>
20799 Serguei Rybin <rybin@adacore.com>
20801 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20802 save/restore routines.
20803 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20804 were not always properly handled previously.
20805 Since we are changing the tree format anyway, also get rid of the
20806 junk obsolete Immediate_Errors flag.
20807 (Tree_Read): Change the way of reading Tree_Version_String - now we
20808 read the version string from the tree even if its length is not the
20809 same as the length of the version string computed from Gnatvsn.
20810 (Search_Directory_Present): New Boolean flag for the compiler.
20811 Define Tree_Version_String as a dynamic string.
20812 (Default_Stack_Size): new variable, used to handle switch -d.
20815 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20816 only for main unit.
20817 Add pragma Ada_2005 (synonym for Ada_05)
20818 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20819 were not always properly handled previously.
20821 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20822 explicit Ada_95 to Ada_2005.
20824 2006-02-13 Javier Miranda <miranda@adacore.com>
20825 Robert Dewar <dewar@adacore.com>
20826 Ed Schonberg <schonberg@adacore.com>
20828 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20829 against errors in the source program: a private types for which the
20830 corresponding full type declaration is missing and pragma CPP_Virtual
20832 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20833 (Is_Known_Null): New flag
20834 (Has_Pragma_Pure): New flag
20835 (No_Return): Present in all entities, set only for procedures
20836 (Is_Limited_Type): A type whose ancestor is an interface is limited if
20837 explicitly declared limited.
20838 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20839 entities. Only used for component marked Is_Tag. If present it stores
20840 the Offset_To_Top function used to provide this value in tagged types
20841 whose ancestor has discriminants.
20843 * exp_ch2.adb: Update status of new Is_Known_Null flag
20845 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20847 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20848 the categorization sense if Is_Pure was set by pragma Pure_Function.
20850 2006-02-13 Quentin Ochem <ochem@adacore.com>
20851 Olivier Hainque <hainque@adacore.com>
20853 * bindusg.adb: Updated documentation for -d and -D switches.
20855 * raise.h (__gnat_set_globals): added new parameter for
20856 Default_Stack_Size.
20858 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20859 (__gnat_handle_vms_condition): Adjust context before raise.
20860 (__gnat_install_handler): Restore the global vector setup for GCC
20861 versions before 3.4, as the frame based circtuitry is not available
20863 (__gnat_set_globals): added a parameter default_stack_size
20864 (__gl_default_stack_size): new variable.
20866 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20868 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20869 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20870 does not exist in the Ada RM.
20871 (Compatible_Int_Bounds): Determine whether two integer range bounds
20872 are of equal length and have the same start and end values.
20873 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20874 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20875 aggregate when it is part of an object declaration.
20876 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
20877 constrains discriminants of its parent, add explicitly the discriminant
20878 constraints of the ancestor by retrieving them from the
20879 stored_constraint of the parent.
20881 2006-02-13 Robert Dewar <dewar@adacore.com>
20883 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20884 attribute Mechanism_Code is applied to renamed subprogram, modify
20885 prefix to point to base subprogram.
20886 Max/Min attributes now violate Restriction No_Implicit_Conditionals
20888 * sinfo.ads: Document that Mechanism_Code cannot be applied to
20889 renamed subprograms so that the front-end must replace the prefix
20892 2006-02-13 Javier Miranda <miranda@adacore.com>
20893 Gary Dismukes <dismukes@adacore.com>
20895 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20896 availability of RE_Interface_Tag.
20897 (Build_Initialization_Call): Fix wrong access to the discriminant value.
20898 (Freeze_Record_Type): Do not generate the tables associated with
20899 timed and conditional dispatching calls through synchronized
20900 interfaces if compiling under No_Dispatching_Calls restriction.
20901 When compiling for Ada 2005, for a nonabstract
20902 type with a null extension, call Make_Controlling_Function_Wrappers
20903 and insert the wrapper function declarations and bodies (the latter
20904 being appended as freeze actions).
20905 (Predefined_Primitive_Bodies): Do not generate the bodies of the
20906 predefined primitives associated with timed and conditional
20907 dispatching calls through synchronized interfaces if we are
20908 compiling under No_Dispatching_Calls.
20909 (Build_Init_Procedure): Use RTE_Available to check if a run-time
20910 service is available before generating a call.
20911 (Make_Controlling_Function_Wrappers): New procedure.
20912 (Expand_N_Full_Type_Declaration): Create a class-wide master for
20913 access-to-limited-interfaces because they can be used to reference
20914 tasks that implement such limited interface.
20915 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20916 procedure spec and body of the Offset_To_Top function that is generated
20917 when the parent of a type with discriminants has secondary dispatch
20919 (Init_Secondary_Tags): Handle the case in which the parent of the type
20920 containing secondary dispatch tables has discriminants to generate the
20921 correct arguments to call Set_Offset_To_Top.
20922 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20924 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20925 Add Wide_[Wide_]Expanded_Name.
20926 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20927 the same functionality of Get_Prim_Op_Address but applied to predefined
20928 primitive operations because the pointers to the predefined primitives
20929 are now saved in a separate table.
20930 (Parent_Size): Modified to get access to the separate table of primitive
20931 operations or the parent type.
20932 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20933 functionality of Set_Prim_Op_Address but applied to predefined primitive
20935 (Set_Signature): New subprogram used to store the signature of a DT.
20936 (Displace): If the Offset_To_Top value is not static then call the
20937 function generated by the expander to get such value; otherwise use
20938 the value stored in the table of interfaces.
20939 (Offset_To_Top): The type of the actual has been changed to Address to
20940 give the correct support to tagged types with discriminants. In this
20941 case this value is stored just immediately after the tag field.
20942 (Set_Offset_To_Top): Two new formals have been added to indicate if the
20943 offset_to_top value is static and hence pass this value to the run-time
20944 to store it in the table of interfaces, or else if this value is dynamic
20945 and then pass to the run-time the address of a function that is
20946 generated by the expander to provide this value for each object of the
20949 * rtsfind.ads (Default_Prin_Op_Count): Removed.
20950 (Default_Prim_Op_Count): New entity
20951 (Get_Predefined_Prim_Op_Address): New entity
20952 (Set_Predefined_Prim_Op_Address): New entity
20953 (RE_Set_Signature): New entity
20955 2006-02-13 Thomas Quinot <quinot@adacore.com>
20956 Ed Schonberg <schonberg@adacore.com>
20958 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20959 Make_Adjust_Call done for a newly-allocated object.
20961 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20962 in a subprogram are wrapped in a cleanup block, indicate that the
20963 subprogram contains an inner block with an exception handler.
20964 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20965 Adjust call is for a newly-allocated object. In that case we must not
20966 assume that the finalization list chain pointers are correct (since they
20967 come from a bit-for-bit copy of the original object's pointers) so if
20968 the attach level would otherwise be zero (no change), we set it to 4
20969 instead to cause the pointers to be reset to null.
20971 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20972 reset chain pointers to null.
20974 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20976 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20977 string, and the context requires a loop for the assignment (e.g.
20978 because the left-hand side is packed), generate a unique name for the
20979 temporary that holds the string, to prevent spurious name clashes.
20981 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20982 Javier Miranda <miranda@adacore.com>
20983 Robert Dewar <dewar@adacore.com>
20984 Gary Dismukes <dismukes@adacore.com>
20986 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20987 return unconstrained arrays.
20989 (Expand_Call): An indirect call through an access parameter of a
20990 protected operation is not a protected call.
20991 Add circuit to raise CE in Ada 2005 mode following call
20992 to Raise_Exception.
20993 (Register_DT_Entry): Do nothing if
20994 the run-time does not give support to abstract interfaces.
20995 (Freeze_Subprogram): In case of dispatching operations, do not generate
20996 code to register the operation in the dispatch table if the source
20997 is compiled with No_Dispatching_Calls.
20998 (Register_Predefined_DT_Entry): Generate code that calls the new
20999 run-time subprogram Set_Predefined_Prim_Op_Address instead of
21000 Set_Prim_Op_Address.
21002 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
21003 on array assignments if the right-hand side is a function call that has
21004 been inlined. Check is performed on the assignment in the block.
21005 (Process_Bounds): If bounds and range are overloaded, apply preference
21006 rule for root operations to disambiguate, and diagnose true ambiguity.
21007 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
21008 a tag-indeterminate right-hand side even when Expander_Active is True.
21009 Needed to ensure that dispatching calls to T'Input are allowed and
21010 get the tag of the target class-wide object.
21012 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
21013 an inherited primitive operation that already overrides several
21014 abstract interface primitives. For transitivity, the new entity must
21015 also override all the abstract interface primitives covered by the
21016 inherited overriden primitive.
21017 Emit warning if new entity differs from homograph in same scope only in
21018 that one has an access parameter and the other one has a parameter of
21019 a general access type with the same designated type, at the same
21020 position in the signature.
21021 (Make_Inequality_Operator): Use source locations of parameters and
21022 subtype marks from corresponding equality operator when creating the
21023 tree structure for the implicit declaration of "/=". This does not
21024 change anything in behaviour except that the decoration of the
21025 components of the subtree created for "/=" allows ASIS to get the
21026 string images of the corresponding identifiers.
21027 (Analyze_Return_Statement): Remove '!' in warning message.
21028 (Check_Statement_Sequence): Likewise.
21029 (Analyze_Subprogram_Body): For an access parameter whose designated type
21030 is an incomplete type imported through a limited_with clause, use the
21031 type of the corresponding formal in the body.
21032 (Check_Returns): Implicit return in No_Return procedure now raises
21033 Program_Error with a compile time warning, instead of beging illegal.
21034 (Has_Single_Return): Function returning unconstrained type cannot be
21035 inlined if expression in unique return statement is not an identifier.
21036 (Build_Body_To_Inline): It is possible to inline a function call that
21037 returns an unconstrained type if all return statements in the function
21038 return the same local variable. Subsidiary procedure Has_Single_Return
21039 verifies that the body conforms to this restriction.
21041 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
21042 same type, and one of them is of an anonymous access type, convert
21043 the other operand to it, so that this is a valid binary operation for
21045 (Resolve_Type_Conversion): Handle subtypes of protected types and
21046 task types when accessing to the corresponding record type.
21047 (Resolve_Allocator): Add '\' in 2-line warning message.
21048 Remove '!' in warning message.
21049 (Resolve_Call): Add '\' in 2-line warning message.
21050 (Valid_Conversion): Likewise.
21051 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
21052 resulting type may be an access type with an implicit dereference.
21053 Obtain the proper component from the designated type.
21054 (Make_Call_Into_Operator): Handle properly a call to predefined equality
21055 given by an expanded name with prefix Standard, when the operands are
21056 of an anonymous access type.
21057 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
21058 Explicit_Dereference and Resolve_Selected_Component, to verify that the
21059 prefix of the expression is not of an incomplete type. Allows full
21060 diagnoses of all semantic errors.
21061 (Resolve_Actuals): If the actual is an allocator whose directly
21062 designated type is a class-wide interface we build an anonymous
21063 access type to use it as the type of the allocator. Later, when
21064 the subprogram call is expanded, if the interface has a secondary
21065 dispatch table the expander will add a type conversion to force
21066 the displacement of the pointer.
21067 (Resolve_Call): If a function that returns an unconstrained type is
21068 marked Inlined_Always and inlined, the call will be inlined and does
21069 not require the creation of a transient scope.
21070 (Check_Direct_Boolean_Op): Removed
21071 (Resolve_Comparison_Op): Remove call to above
21072 (Resolve_Equality_Op): Remove call to above
21073 (Resolve_Logical_Op): Inline above, since this is only call.
21074 (Valid_Conversion): Handle properly conversions between arrays of
21075 convertible anonymous access types.
21078 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
21079 the literal in an unchecked conversion, because GCC 4.x needs a static
21080 value for a string bound.
21082 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21083 Hristian Kirtchev <kirtchev@adacore.com>
21085 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
21086 components of the corresponding record, take into account component
21087 definitions that are access definitions.
21088 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
21089 procedure is not considered a dispatching call and will be expanded
21092 2006-02-13 Javier Miranda <miranda@adacore.com>
21094 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
21095 controlling argument of the dispatching call is an abstract interface
21096 class-wide type then we use it directly.
21097 Check No_Dispatching_Calls restriction.
21098 (Default_Prim_Op_Position): Remove the code that looks for the last
21099 entity in the list of aliased subprograms. This code was wrong in
21101 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
21102 when the source is compiled with the No_Dispatching_Calls restriction.
21103 (Init_Predefined_Interface_Primitives): No need to inherit primitives
21104 if we are compiling with restriction No_Dispatching_Calls.
21105 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
21106 subprograms if we are compiling under No_Dispatching_Calls restriction.
21107 (Make_DT): Generate a dispatch table with a single dummy entry if
21108 we are compiling with the No_Dispatching_Calls restriction. In
21109 addition, in this case we don't generate code that calls to the
21110 following run-time subprograms: Set_Type_Kind, Inherit_DT.
21111 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
21112 of this subprogram if compiling with the No_Dispatching_Calls
21114 (Expand_Type_Conversion): Instead of using the actual parameter,
21115 the argument passed as parameter to the conversion function was
21116 erroneously referenced by the expander.
21117 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
21118 Set_Predefined_Primitive_Op_Address and Set_Signature.
21119 (Expand_Dispatching_Call): Generate call to
21120 Get_Predefined_Prim_Op_Address for predefined primitives.
21121 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
21122 predefined primitives.
21123 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
21124 primitives we reserve one dummy entry to ensure that the tag does not
21125 point to some memory that is associated with some other object. In
21126 addition, remove all the old code that generated the assignments
21127 associated with the signature of the dispatch table and replace them
21128 by a call to the new subprogram Set_Signature.
21129 (Set_All_DT_Position): Change the algorithm because now we have a
21130 separate dispatch table associated with predefined primitive operations.
21131 (Expand_Interface_Conversion): In case of non-static offset_to_top
21132 add explicit dereference to get access to the object after the call
21133 to displace the pointer to the object.
21134 (Expand_Interface_Thunk): Modify the generation of the actual used
21135 in the calls to the run-time function Offset_To_Top to fulfil its
21137 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
21139 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21141 * exp_dist.adb (Copy_Specification): For access parameters, copy
21142 Null_Exclusion flag, which will have been set for stream subprograms
21145 2006-02-13 Pascal Obry <obry@adacore.com>
21147 * expect.c (__gnat_expect_portable_execvp): New implementation. The
21148 previous implementation was using the C runtime spawnve routine but
21149 the corresponding wait was using directly the Win32 API. This was
21150 causing some times a lock when waiting for an event using
21151 WaitForSingleObject in __gnat_waitpid. This new implementation uses
21152 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
21153 API fixes this problem.
21155 2006-02-13 Robert Dewar <dewar@adacore.com>
21157 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
21160 2006-02-13 Thomas Quinot <quinot@adacore.com>
21162 * exp_pakd.ads: Fix typos in comments.
21164 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
21165 array reference that is an explicit dereference, mark the converted
21166 (packed) array reference as analyzed to prevent a forthcoming
21167 reanalysis from resetting its type to the original (non-packed) array
21170 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21171 Javier Miranda <miranda@adacore.com>
21172 Eric Botcazou <ebotcazou@adacore.com>
21174 * exp_util.ads, exp_util.adb (Find_Prim_Op,
21175 Is_Predefined_Primitive_Operation): When
21176 searching for the predefined equality operator, verify that operands
21177 have the same type.
21178 (Is_Predefined_Dispatching_Operation): Remove the code that looks
21179 for the last entity in the list of aliased subprograms. This code
21180 was wrong in case of renamings.
21181 (Set_Renamed_Subprogram): New procedure
21182 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
21183 Exp_Type constant computed when entering this subprogram.
21184 (Known_Null): New function
21185 (OK_To_Do_Constant_Replacement): New function
21186 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
21187 (Side_Effect_Free): An attribute reference 'Input is not free of
21188 side effect, unlike other attributes that are functions. (from code
21190 (Remove_Side_Effects): Expressions that involve packed arrays or records
21191 are copied at the point of reference, and therefore must be marked as
21192 renamings of objects.
21193 (Is_Predefined_Dispatching_Operation): Return false if the operation is
21194 not a dispatching operation.
21197 (Remove_Side_Effects): Lift enclosing type conversion nodes for
21198 elementary types in all cases.
21200 2006-02-13 Javier Miranda <miranda@adacore.com>
21202 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
21203 task types when accessing to the corresponding record type.
21204 Remove '!' in warning message.
21206 2006-02-13 Olivier Hainque <hainque@adacore.com>
21208 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
21209 to avoid useless and space inefficient overalignments on targets where
21210 Max_Alignment is larger than 16.
21212 2006-02-13 Pascal Obry <obry@adacore.com>
21214 * g-catiio.adb (Sec_Number): New type used to compute the number of
21215 seconds since 1-1-1970.
21216 (Image) [Natural]: The parameter was an Integer, as we can't deal with
21217 negative numbers (years, months...) it is better to have a Natural here.
21219 (Image) [Number]: Change parameter from Long_Integer to Number.
21220 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
21221 overflow for dates past year 2038.
21223 2006-02-13 Matthew Heaney <heaney@adacore.com>
21225 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
21228 2006-02-13 Arnaud Charlet <charlet@adacore.com>
21230 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
21232 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
21233 finalization can occur normally.
21235 2006-02-13 Vincent Celier <celier@adacore.com>
21237 * gnatcmd.adb (Rules_Switches): New table
21238 (Add_To_Rules_Switches): New procedure
21239 (GNATCmd): For command CHECK, put all options following "-rules" in the
21240 Rules_Switches table. Append these -rules switches after the -cargs
21243 2006-02-13 Robert Dewar <dewar@adacore.com>
21245 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
21246 These two cases were generating incorrect output, and if this unit
21247 was built with checks on, generated a discriminant mismatch constraint
21250 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21251 Robert Dewar <dewar@adacore.com>
21253 * lib-xref.adb (Get_Type_Reference): For a private type whose full
21254 view is an array type, indicate the component type as well, for
21255 navigation purposes.
21256 (Generate_Reference): Don't consider array ref on LHS to be a case
21257 of violating pragma Unreferenced.
21258 Do not give Ada 2005 warning except on real reference.
21260 2006-02-13 Vincent Celier <celier@adacore.com>
21262 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
21263 main source, add switch -mdebug-main=_ada_ so that the executable can
21264 be debugged by the standard VMS debugger.
21265 (Gnatmake): Set No_Main_Subprogram to True when there is no main
21266 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
21267 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
21268 of the last source, as the binding and linking phases are never
21270 Set all executable obsolete when rebuilding a library.
21272 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
21275 2006-02-13 Javier Miranda <miranda@adacore.com>
21278 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
21279 code to improve the error message reported when the program has
21280 declarations of abstract interface types and it is not compiled with
21281 the -gnat05 switch.
21282 (P_Access_Definition): Reorganize the code to improve the error
21283 message reported when the new Ada 2005 syntax for anonymous
21284 access types is used and the program is not compiled with the
21287 2006-02-13 Robert Dewar <dewar@adacore.com>
21289 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
21290 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
21293 2006-02-13 Javier Miranda <miranda@adacore.com>
21295 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
21296 against source containing syntax errors.
21298 2006-02-13 Vincent Celier <celier@adacore.com>
21300 * prj.adb (Reset): Initialize the first element of table Namings with
21301 the standard naming data.
21303 2006-02-13 Vincent Celier <celier@adacore.com>
21305 * prj.ads (Error_Warning): New enumeration type
21307 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
21308 unknown, use the location of the project to report the error.
21309 (When_No_Sources): New global variable
21310 (Report_No_Ada_Sources): New procedure
21311 (Check): New parameter When_No_Sources. Set value of global variable
21313 (Find_Sources): Call Report_No_Ada_Sources when appropriate
21314 (Get_Sources_From_File): Ditto
21315 (Warn_If_Not_Sources): Better warning messages indicating the unit name
21318 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
21319 Call Prj.Proc.Process with parameter When_No_Sources.
21321 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
21322 Call Recursive_Check with parameter When_No_Sources.
21323 (Recursive_Check): New parameter When_No_Sources. Call itself and
21324 Prj.Nmsc.Check with parameter When_No_Sources.
21325 (Process): New parameter When_No_Sources. Call Check with parameter
21327 (Copy_Package_Declarations): New procedure to copy renamed parameters
21328 and setting the location of the declared attributes to the location
21329 of the renamed package.
21330 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
21333 2006-02-13 Vincent Celier <celier@adacore.com>
21335 * prj-makr.adb (Make): Preserve the comments from the original project
21337 When removing nodes (attributes Source_Dirs, Source_Files,
21338 Source_List_File and package Naming), save the comments and attach the
21339 saved comments to the newly created nodes.
21340 Do not add a with clause for the naming package if one already exists.
21342 2006-02-13 Javier Miranda <miranda@adacore.com>
21343 Gary Dismukes <dismukes@adacore.com>
21344 Robert Dewar <dewar@adacore.com>
21346 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
21348 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
21349 aliased entities to look for the overriden abstract interface
21351 (Is_Interface_Subprogram): Complete documentation.
21352 (Check_Dispatching_Operation): Do not generate code to register the
21353 operation in the dispatch table if the source is compiled with
21354 restriction No_Dispatching_Calls.
21355 (Override_Dispatching_Operation): Check for illegal attempt to override
21356 No_Return procedure with procedure that is not No_Return
21357 (Check_Dispatching_Call): Suppress the check for an abstract operation
21358 when the original node of an actual is a tag-indeterminate attribute
21359 call, since the attribute, which must be 'Input, can never be abstract.
21360 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
21361 call to the Input attribute (even when rewritten).
21362 (Propagate_Tag): Augment comment to indicate the possibility of a call
21363 to an Input attribute.
21365 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
21366 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
21368 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
21369 No_Wide_Characters is no longer partition-wide
21370 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
21373 2006-02-13 Douglas Rupp <rupp@adacore.com>
21375 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
21377 2006-02-13 Javier Miranda <miranda@adacore.com>
21379 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
21380 handles default-initialized components to keep separate the management
21381 of this feature but also avoid the unrequired resolution and
21382 expansion of components that do not have partially initialized
21384 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
21385 (Check_Bounds): Likewise.
21386 (Check_Length): Likewise.
21388 2006-02-13 Javier Miranda <miranda@adacore.com>
21389 Ed Schonberg <schonberg@adacore.com>
21391 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
21392 abstract interface type call analyze_and_resolve to expand the type
21393 conversion into the corresponding displacement of the
21394 reference to the base of the object.
21395 (Eval_Attribute, case Width): For systems where IEEE extended precision
21396 is supported, the maximum exponent occupies 4 decimal digits.
21397 (Accessibility_Message): Add '\' in 2-line warning message.
21398 (Resolve_Attribute): Likewise.
21399 (case Attribute_Access): Significantly revise checks
21400 for illegal access-to-subprogram Access attributes to properly enforce
21401 the rules of 3.10.2(32/2).
21402 Diagnose use of current instance with an illegal attribute.
21404 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
21406 (Enclosing_Generic_Unit): New function to return a node's innermost
21407 enclosing generic declaration node.
21408 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
21409 (Type_Access_Level): The accessibility level of anonymous acccess types
21410 associated with discriminants is that of the current instance of the
21411 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
21412 (Compile_Time_Constraint_Error): Handle case of conditional expression.
21413 (Kill_Current_Values_For_Entity): New function
21414 (Enter_Name): Change formal type to Entity_Id
21416 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
21417 Ed Schonberg <schonberg@adacore.com>
21418 Gary Dismukes <dismukes@adacore.com>
21420 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
21421 Analyze_Compilation_Unit.
21422 Detect and warn on redundant with clauses detected in a package spec
21423 and/or body when -gnatwr is used.
21424 (Analyze_Context): Analyze config pragmas before other items
21425 (Install_Context_Items): Don't analyze config pragmas here
21426 (Install_Limited_Withed_Unit): Set limited entity of package in
21427 with_clause so that cross-reference information or warning messages on
21428 unused packages can be properly generated
21429 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
21430 has Error_Posted set. Prevent infinite loops in illegal programs.
21431 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
21432 to the point of the error test requiring the current unit to be private.
21433 This ensures that private with clauses are not exempted from the basic
21434 checking for being a descendant of the same library unit parent as a
21435 withed private descendant unit.
21436 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
21437 handle private with clauses properly, as well as to account for cases
21438 where the withed unit is a public descendant of a private ancestor
21439 (in which case the current unit must be a descendant of the private
21440 ancestor's parent). The spec comments were updated accordingly. Also,
21441 the old error message in this subprogram was replaced with error
21442 messages that mirror the errors tested and reported by
21443 Check_Private_Child_Unit.
21444 Parameter and variable names improved for readability.
21445 (Install_Limited_Context_Clauses): Remove test for a withed unit being
21446 private as the precondition for calling
21447 Check_Private_Limited_Withed_Unit since that subprogram has been
21448 revised to test public units as well as private units.
21450 2006-02-13 Thomas Quinot <quinot@adacore.com>
21451 Robert Dewar <dewar@adacore.com>
21452 Ed Schonberg <schonberg@adacore.com>
21453 Javier Miranda <miranda@adacore.com>
21455 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
21456 that Scope_Stack.First = 1.
21457 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21458 were not always properly handled previously.
21459 (Formal_Entity): Complete rewrite, to handle properly some complex case
21460 with multiple levels of parametrization by formal packages.
21461 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
21462 to the corresponding derived type declaration for proper semantics.
21464 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
21465 (Check_Component): Enforce restriction on components of
21466 unchecked_unions: a component in a variant cannot contain tasks or
21468 (Unchecked_Union): Allow nested variants and multiple discriminants, to
21470 Add pragma Ada_2005 (synonym for Ada_05)
21471 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21472 were not always properly handled previously.
21473 Document that pragma Propagate_Exceptions has no effect
21474 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
21475 (Set_Convention_From_Pragma): Check that if a convention is
21476 specified for a dispatching operation, then it must be
21477 consistent with the existing convention for the operation.
21478 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
21479 longer required to specify an vtable-ptr component in the record. For
21480 compatibility reasons we leave the support for the previous definition.
21481 (Analyze_Pragma, case No_Return): Allow multiple arguments
21483 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
21484 non-overrideen inherited operation with a controlling result as
21485 illegal only its implicit declaration comes from the derived type
21486 declaration of its result's type.
21487 (Check_Possible_Deferred_Completion): Relocate the object definition
21488 node of the subtype indication of a deferred constant completion rather
21489 than directly analyzing it. The analysis of the generated subtype will
21490 correctly decorate the GNAT tree.
21491 (Record_Type_Declaration): Check whether this is a declaration for a
21492 limited derived record before analyzing components.
21493 (Analyze_Component_Declaration): Diagnose record types not explicitly
21494 declared limited when a component has a limited type.
21495 (Build_Derived_Record_Type): Code reorganization to check if some of
21496 the inherited subprograms of a tagged type cover interface primitives.
21497 This check was missing in case of a full-type associated with a private
21499 (Constant_Redeclaration): Check that the subtypes of the partial and the
21500 full view of a constrained deferred constant statically match.
21501 (Mentions_T): A reference to the current type in an anonymous access
21502 component declaration must be an entity name.
21503 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
21504 class_wide type to refer to full type, not to the incomplete one.
21505 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
21506 available. Required to give support to the certified run-time.
21507 (Analyze_Component_Declaration): In case of anonymous access components
21508 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
21509 (Process_Discriminants): For an access discriminant, use the
21510 discriminant specification as the associated_node_for_itype, to
21511 simplify accessibility checks.
21513 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21514 Javier Miranda <miranda@adacore.com>
21516 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
21517 abstract interpretations on an operator, remove interpretations that
21518 yield Address or a type derived from it, if one of the operands is an
21520 (Try_Object_Operation.Try_Primitive_Operation,
21521 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
21522 location when creating the new reference to a primitive or class-wide
21523 operation as a part of rewriting a subprogram call.
21524 (Try_Primitive_Operations): If context requires a function, collect all
21525 interpretations after the first match, because there may be primitive
21526 operations of the same type with the same profile and different return
21527 types. From code reading.
21528 (Try_Primitive_Operation): Use the node kind to choose the proper
21529 operation when a function and a procedure have the same parameter
21531 (Complete_Object_Operation): If formal is an access parameter and prefix
21532 is an object, rewrite as an Access reference, to match signature of
21533 primitive operation.
21534 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
21535 by an expanded name with prefix Standard, when the operands are of an
21536 anonymous access type.
21537 (Remove_Abstract_Operations): If the operation is abstract because it is
21538 inherited by a user-defined type derived from Address, remove it as
21539 well from the set of candidate interpretations of an overloaded node.
21540 (Analyze_Membership_Op): Membership test not applicable to cpp-class
21543 2006-02-13 Bob Duff <duff@adacore.com>
21545 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
21546 redundant use clauses.
21547 In particular, if the scope of two use clauses overlaps, but one is not
21548 entirely included in the other, we should not warn. This can happen
21549 with nested packages.
21550 (Analyze_Subprogram_Renaming): Protect the compiler against previously
21551 reported errors. The bug was reported when the compiler was built
21552 with assertions enabled.
21553 (Find_Type): If the node is a 'Class reference and the prefix is a
21554 synchronized type without a corresponding record, return the type
21557 2006-02-13 Javier Miranda <miranda@adacore.com>
21559 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
21560 if this is the full-declaration associated with a private declaration
21561 that implement interfaces, then the private type declaration must be
21563 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
21564 as aliased. The use of the 'access attribute is not available for such
21565 object (for this purpose the object should be explicitly marked as
21566 aliased, but being an anonymous type this is not possible).
21568 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21569 Robert Dewar <dewar@adacore.com>
21571 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
21572 compilation unit is an elaboration scope.
21573 (Add_Task_Proc): Add '\' in 2-line warning message.
21574 (Activate_All_Desirable): Deal with case of unit with'ed by parent
21576 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21577 Javier Miranda <miranda@adacore.com>
21579 * sem_type.adb (Write_Overloads): Improve display of candidate
21581 (Add_One_Interp): Do not add to the list of interpretations aliased
21582 entities corresponding with an abstract interface type that is an
21583 immediate ancestor of a tagged type; otherwise we have a dummy
21584 conflict between this entity and the aliased entity.
21585 (Disambiguate): The predefined equality on universal_access is not
21586 usable if there is a user-defined equality with the proper signature,
21587 declared in the same declarative part as the designated type.
21588 (Find_Unique_Type): The universal_access equality operator defined under
21589 AI-230 does not cover pool specific access types.
21590 (Covers): If one of the types is a generic actual subtype, check whether
21591 it matches the partial view of the other type.
21593 2006-02-13 Thomas Quinot <quinot@adacore.com>
21595 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
21596 line. This is necessary to allow In_Extended_Main_Unit to provide
21597 correct results for itypes while writing out expanded source.
21598 (Close_File): No need to update the source_index_table here since it's
21599 now done for each line.
21601 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21602 Robert Dewar <dewar@adacore.com>
21604 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
21605 preserve the source unit where the itype is declared, and prevent a
21607 (Note_Implicit_Run_Time_Call): New procedure
21608 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
21611 * sprint.ads: Document use of $ for implicit run time routine call
21613 2006-02-13 Quentin Ochem <ochem@adacore.com>
21615 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
21618 2006-02-13 Bob Duff <duff@adacore.com>
21620 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
21621 Scan_Unsigned, so we do not scan leading blanks and sign twice.
21622 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21623 raise Constraint_Error.
21625 * s-vallli.adb (Scan_Long_Long_Integer): Call
21626 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
21627 do not scan leading blanks and sign twice.
21628 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21629 raise Constraint_Error.
21631 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
21632 Scan_Long_Long_Unsigned): Split out most of the processing from
21633 Scan_Long_Long_Unsigned out into
21634 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
21635 This prevents scanning leading blanks and sign twice.
21636 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
21639 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
21640 out most of the processing from Scan_Unsigned out into
21641 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
21642 This prevents scanning leading blanks and sign twice.
21644 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
21645 use with Modular'Value attribute.
21646 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
21649 2006-02-13 Robert Dewar <dewar@adacore.com>
21651 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
21653 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
21655 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
21656 (PPC VxWorks): Likewise.
21657 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
21658 (forced_callee): Make non-inlinable and non-pure.
21659 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
21661 2006-02-13 Arnaud Charlet <charlet@adacore.com>
21662 Ben Brosgol <brosgol@adacore.com>
21663 Robert Dewar <dewar@adacore.com>
21665 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
21667 Document that gnatbind -M option is for cross environments only.
21668 Added description of using gnatmem to trace gnat rtl allocs and deallocs
21669 Add note on use of $ to label implicit run time calls
21670 Add documentation for -gnatyI (check mode IN)
21671 Updated chapter on compatibility with HP Ada
21672 VMS-oriented edits.
21673 Ran spell and corrected errors
21674 Add documentation for gnatbind -d and rework documentation of -D
21676 Add subprogram/data elimination section.
21677 Minor editing of annex A.
21678 Add section for gnatcheck.
21679 Add documentation for restriction No_Dispatching_Calls
21680 Add documentation for pragma Ada_2005
21681 Remove mention of obsolete pragma Propagate_Exceptions
21682 Document that pragma Unreferenced can appear after DO in ACCEPT
21683 Clarify Pure_Function for library level units
21684 Mention Max/Min in connection with No_Implicit_Conditionals
21685 No_Wide_Characters restriction is no longer partition-wide
21686 Add a nice example for Universal_Literal_String attribute
21687 Document that pragma No_Return can take multiple arguments
21689 * ug_words: Added entry for gnatcheck
21691 * g-ctrl_c.ads (Install_Handler): Enhance comments
21693 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21695 * g-trasym.ads: Add documentation on how to do off line symbolic
21696 traceback computation.
21698 * s-fatgen.adb: Add comments for Unaligned_Valid
21700 * stand.ads: Fix typo in comment
21702 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21704 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21706 2006-02-06 Roger Sayle <roger@eyesopen.com>
21708 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21710 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21713 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21714 implementation that calls __main.
21716 2006-01-25 Peter O'Gorman <peter@pogma.com>
21719 * Makefile.in (GCC_LINK): Remove quotes.
21720 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21723 (powerpc-darwin): Pass -shared-libgcc when building shared library.
21725 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21728 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21730 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21732 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21734 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21736 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21739 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21741 * Make-lang.in: Update dependencies
21743 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21745 * Make-lang.in: Add rule for ada/exp_sel.o
21747 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21749 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21751 2005-12-09 Arnaud Charlet <charlet@adacore.com>
21753 * gnatvsn.ads (Library_Version): Bump to version 4.2
21754 (ASIS_Version_Number): Bumped.
21756 2005-12-09 Doug Rupp <rupp@adacore.com>
21758 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21759 Ada bind file prefix on VMS from b$ to b__.
21760 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21763 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21764 Targparm.OpenVMS_On_Target.
21765 (Object_Suffix): Initialize with target object suffix.
21766 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21768 * butil.adb: Change some Hostparm.OpenVMS checks to
21769 Targparm.OpenVMS_On_Target.
21771 * clean.adb: Change some Hostparm.OpenVMS checks to
21772 Targparm.OpenVMS_On_Target.
21773 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21774 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21775 Ada bind file prefix on VMS from b$ to b__.
21777 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21778 --GCC so that Get_Target_Parameters can find system.ads.
21779 (Gnatlink): Call Get_Target_Parameters in mainline.
21780 Initialize standard packages for Targparm.
21781 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21782 (Process_Args): Also Check for object files with target object
21784 (Make_Binder_File_Names): Create with target object extension.
21785 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21788 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21789 Targparm.OpenVMS_On_Target.
21790 ({declaration},Build_Library,Check_Library): Change Ada bind file
21791 prefix on VMS from b$ to b__.
21793 * osint-b.adb: Change some Hostparm.OpenVMS checks to
21794 Targparm.OpenVMS_On_Target.
21795 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21798 * targext.c: New file.
21800 * Makefile.in: add support for vxworks653 builds
21801 (../../vxaddr2line): gnatlink with targext.o.
21802 (TOOLS_LIBS): Move targext.o to precede libgnat.
21803 (init.o, initialize.o): Minor clean up in dependencies.
21804 (GNATLINK_OBJS): Add targparm.o, snames.o
21805 Add rules fo building targext.o and linking it explicitly with all
21807 Also add targext.o to gnatlib.
21809 * Make-lang.in: Add rules for building targext.o and linking it in
21810 with gnat1 and gnatbind.
21811 Add entry for exp_sel.o.
21813 * osint.adb Change some Hostparm.OpenVMS checks to
21814 Targparm.OpenVMS_On_Target.
21815 (Object_File_Name): Use target object suffix.
21817 * osint.ads (Object_Suffix): Remove, no longer used.
21818 (Target_Object_Suffix): Initialize with target object suffix.
21820 * rident.ads: Add special exception to license.
21822 * targparm.adb (Get_Target_Parameters): Set the value of
21823 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21825 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21827 * targparm.ads: Add special exception to license.
21829 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21831 (Copy_File): Make sure from file is closed if error on to file
21832 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21834 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21835 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21837 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21838 target object suffix.
21840 2005-12-09 Jose Ruiz <ruiz@adacore.com>
21841 Quentin Ochem <ochem@adacore.com>
21842 Florian Villoing <villoing@adacore.com>
21844 * a-taster.ads, a-taster.adb: New files.
21846 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21847 link to the version that does nothing. This way the task termination
21848 routine is not executed twice for the environment task when finishing
21849 because of an unhandled exception.
21851 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21852 handler because of an unhandled exception.
21854 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21855 System.Tasking.Utilities instead of that in System.Tasking.Stages.
21857 * s-finimp.adb (initialization code): Modify the soft link for the
21858 finalization of the global list instead of Adafinal.
21860 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21861 non-tasking version of the soft link for task termination. We do
21862 nothing since if we are using the non-tasking version it
21863 means that the task termination functionality is not used.
21864 (Null_Finalize_Global_List): Add this null version for the procedure
21865 in charge of finalizing the global list for controlled objects.
21866 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21867 instead for handling run-time termination in a more flexible way.
21868 (Adafinal_NT): This new procedure will take care of finalizing the
21869 global list for controlled objects if needed, but no tasking
21872 * s-tarest.adb (Task_Lock): Do not try to lock again the
21873 Global_Task_Lock if we already own it. Otherwise, we get blocked in
21874 some run-time operations.
21875 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21876 until all nested locks have been released.
21877 (Task_Wrapper): Call the fall-back task termination handler. It
21878 applies to all tasks but the environment task.
21879 (Finalize_Global_Tasks): Add the call for the task termination
21880 procedure for the environment task.
21881 (Task_Wrapper): suppress warnings around declaration of
21882 Secondary_Stack_Address.
21884 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21885 moved to the Common_ATCB record.
21886 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21887 Common_ATCB record.
21888 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21889 Common_ATCB record.
21891 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21892 Fall_Back_Handler, and Specific_Handler.
21894 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21895 defined in Ada.Task_Termination, to avoid circular dependencies.
21896 (Termination_Handler): Redefine this type here, alredy defined in
21897 Ada.Task_Termination, for avoiding circular dependencies.
21898 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21899 for storing task termination handlers. In addition,
21900 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21901 Common_ATCB because it is used by both the regular and the restricted
21903 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21904 Common_ATCB because it is used by both the regular and the restricted
21906 (Common_ATCB): Added a dynamic task analyzer field.
21908 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21909 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21910 (Task_Wrapper): Call the task termination handler. It applies to all
21911 tasks but the environment task.
21912 (Finalize_Global_Tasks): Call the task termination procedure for the
21913 environment task. The call to Finalize_Global_List is now performed
21914 using the soft links mechanism.
21915 (Task_Wrapper): added dynamic stack analysis.
21917 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21918 potentially blocking operations has been moved from
21919 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21920 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21921 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21922 this run-time check.
21924 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21925 of task termination procedure.
21926 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21927 link for the task termination procedure.
21929 * bindusg.adb: (Bindusg): Added documentation for -u option.
21931 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21932 (Get_Main_C): Add handling of dynamic stack analysis.
21933 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21935 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21936 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21937 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21939 * opt.ads: Added flags used by dynamic stack measurement.
21940 (Max_Line_Length): Remove (not used anymore)
21942 * s-io.ads, s-io.adb (Standard_Error): new subprogram
21943 (Standart_Output): new subprogram
21944 (Set_Output): new subprogram
21945 (Put): now uses the value of Current_Out to know if the output has to be
21946 send to stderr or stdout.
21948 * s-stausa.ads: Complete implementation.
21950 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21952 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21953 list of Ada 05 files.
21954 (GNAT Library Units): Add AltiVec files.
21956 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21957 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21958 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21960 2005-12-09 Nicolas Setton <setton@adacore.com>
21962 * adaint.c (__gnat_locate_regular_file): Return immediately if
21963 file_name is empty.
21965 2005-12-09 Javier Miranda <miranda@adacore.com>
21966 Hristian Kirtchev <kirtchev@adacore.com>
21968 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21969 to the specification because the frontend generates code that uses this
21971 (Set_Interface_Table): Add missing assertion.
21972 Update documentation describing the run-time structure.
21973 (Displace): New subprogram that displaces the pointer to the object
21974 to reference one of its secondary dispatch tables.
21975 (IW_Membership): Modified to use the new table of interfaces.
21976 (Inherit_TSD): Modified to use the new table of interfaces.
21977 (Register_Interface_Tag): Use the additional formal to fill the
21978 contents of the new table of interfaces.
21979 (Set_Interface_Table): New subprogram that stores in the TSD the
21980 pointer to the table of interfaces.
21981 (Set_Offset_To_Top): Use the additional formal to save copy of
21982 the offset value in the table of interfaces.
21983 Update structure of GNAT Primary and Secondary dispatch table diagram.
21984 Add comment section on GNAT dispatch table prologue.
21985 (Offset_To_Signature): Update the constant value of the Signature field.
21986 (Dispatch_Table): Update comment on hidden fields in the prologue.
21987 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21988 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21989 the type of formal parameter T to Tag, introduce additional assertions.
21990 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21992 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21994 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21995 in all the calls to Expand_Interface_Thunk. Instead of referencing the
21996 record component containing the tag of the secondary dispatch table we
21997 have to use the Offset_To_Top run-time function to get this information;
21998 otherwise if the pointer to the base of the object has been displace
21999 we get a wrong value if we use the 'position attribute.
22001 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
22002 all the calls to Expand_Interface_Thunk.
22003 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
22004 interfaces; hence the call to Set_Interface_Table was clearly wrong.
22005 (Collect_All_Interfaces): Modify the internal subprogram Collect to
22006 ensure that the interfaces implemented by the ancestors are placed
22007 at the header of the generated list.
22008 (Expand_Interface_Conversion): Handle the case in which the displacement
22009 associated with the interface conversion is not statically known. In
22010 this case we generate a call to the new run-time subprogram Displace.
22011 (Make_DT): Generate and fill the new table of interfaces.
22012 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
22013 Get_Tagged_Kind and Set_Tagged_Kind.
22014 (Tagged_Kind): New function that determines the tagged kind of a type
22015 with respect to limitedness and concurrency and returns a reference to
22017 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
22018 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
22019 primary dispatch table for a type.
22020 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
22021 secondary dispatch table respectively of a tagged type.
22023 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
22024 (Expand_Interface_Conversion): New subprogram to indicate if the
22025 displacement of the type conversion is statically known.
22026 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
22028 * rtsfind.ads (RE_Offset_To_Top): New entity
22029 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
22030 accessible to users.
22031 (Re_Displace): New entity
22032 (RE_Interface_Data): New entity
22033 (RE_Set_Interface_Data): New_Entity
22034 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
22035 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
22036 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
22037 RE_TK_Tagged, RE_TK_Task.
22039 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
22040 Init_Secondary_Tags_Internal to allow its use with interface types and
22041 also to generate the code for the new additional actual required
22042 by Set_Offset_To_Top.
22043 (Build_Init_Statements): In case of components associated with abstract
22044 interface types there is no need to generate a call to its IP.
22045 (Freeze_Record_Type): Generate Select Specific Data tables only for
22047 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
22048 the bodies and specifications of the predefined primitive operations
22049 dealing with dispatching selects and abort, 'Callable, 'Terminated only
22050 for concurrent types.
22052 * exp_sel.ads, exp_sel.adb: New files.
22054 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
22055 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
22056 properly protected objects and attach handler in the case of the
22057 restricted profile.
22058 Move embeded package Select_Expansion_Utilities into a separate external
22060 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
22061 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
22062 (Build_K, Build_S_Assignment): New subprograms, part of the select
22063 expansion utilities.
22064 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
22065 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
22066 where the trigger is a dispatching procedure of a limited tagged type.
22068 2005-12-09 Olivier Hainque <hainque@adacore.com>
22070 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
22071 pointer initialization values. Make a SAVE_EXPR instead. Add comments
22072 about the use and expansion of SAVE_EXPRs in the various possible
22073 renaming handling cases.
22074 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
22075 abusing DECL_FCONTEXT.
22077 2005-12-09 Matthew Heaney <heaney@adacore.com>
22079 * a-convec.adb (Merge): Added assertions to check whether vector params
22082 * a-coinve.adb (Merge): Added assertions to check whether vector params
22085 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
22087 (Cursor'Read): raises PE
22089 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
22090 to its default value.
22092 * a-cihama.adb: Manually check whether cursor's key and elem are
22095 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
22096 (Merge): Assert that target and source lists are in order
22097 (Swap): Declare non-const temporaries, to pass to Splice
22099 * a-cdlili.ads: (Splice): Changed param name and param mode
22101 * a-cdlili.adb: (Splice): Changed param name and param mode
22102 (Merge): Assert that target and source lists are in order
22103 (Swap): Declare non-const temporaries, to pass to Splice
22105 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
22106 (Write): declare Stream param as not null
22108 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
22109 an exception message.
22111 2005-12-09 Thomas Quinot <quinot@adacore.com>
22112 Robert Dewar <dewar@adacore.com>
22114 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
22115 which is the absolute maximum length we can support.
22117 * frontend.adb: For the processing of configuration pragma files,
22118 remove references to Opt.Max_Line_Length, which is not checked anymore.
22120 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
22123 * scn.adb, scng.adb:
22124 Always check line length against the absolute supported maximum,
22125 Hostparm.Max_Line_Length.
22127 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
22128 value for the maximum line length is Max_Line_Length (not
22129 Column_Number'Last).
22130 Minor error msg update
22131 (Set_Style_Check_Options): New interface returning error msg
22132 Minor code reorganization (processing for 'M' was out of alpha order)
22134 * switch-c.adb: New interface for Set_Style_Check_Options
22136 * stylesw.ads (Set_Style_Check_Options): New interface returning error
22139 2005-12-09 Javier Miranda <miranda@adacore.com>
22141 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
22142 with IP subprogram were only supported if there were limited types.
22144 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
22145 records with IP subprogram were only supported if there were limited
22148 2005-12-09 Olivier Hainque <hainque@adacore.com>
22149 Eric Botcazou <ebotcazou@adacore.com>
22151 * trans.c (tree_transform, emit_check): Adjust calls to
22152 build_call_raise, passing the now expected GNAT_NODE argument.
22154 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
22155 source line information than what the current global locus indicates
22158 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
22159 field has overflowed.
22160 (build_call_raise): Add a GNAT_NODE argument to convey better source
22161 line information than what the current global locus indicates when
22163 (build_component_ref): Adjust call to build_call_raise.
22165 2005-12-09 Pascal Obry <obry@adacore.com>
22167 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
22168 the iterator is quitting iteration on parent directory.
22170 2005-12-09 Javier Miranda <miranda@adacore.com>
22172 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
22173 and the assignment to a class-wide object, before the assignment we
22174 generate a run-time check to ensure that the tag of the Target is
22175 covered by the tag of the source.
22177 2005-12-09 Robert Dewar <dewar@adacore.com>
22179 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
22180 parameter in call to Image_Wide_Character.
22182 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
22183 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
22184 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
22185 annoying FFFE/FFFF inconsistency.
22187 2005-12-09 Robert Dewar <dewar@adacore.com>
22188 Javier Miranda <miranda@adacore.com>
22189 Ed Schonberg <schonberg@adacore.com>
22191 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
22192 of type conversion.
22193 (Find_Interface): New subprogram that given a tagged type and one of its
22194 component associated with the secondary table of an abstract interface
22195 type, return the entity associated with such abstract interface type.
22196 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
22197 base type to create anonymous subtype, because entity may be a locally
22198 declared subtype or generic actual.
22199 (Find_Interface): New subprogram that given a tagged type and one of its
22200 component associated with the secondary table of an abstract interface
22201 type, return the entity associated with such abstract interface type.
22203 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
22204 conversion cannot be handled at compile time. In this case we pass this
22205 information to the expander to generate the appropriate code.
22207 2005-12-09 Robert Dewar <dewar@adacore.com>
22208 Ed Schonberg <schonberg@adacore.com>
22209 Gary Dismukes <dismukes@adacore.com>
22210 Javier Miranda <miranda@adacore.com>
22211 Hristian Kirtchev <kirtchev@adacore.com>
22213 * einfo.adb (Itype_Printed): New flag
22214 (Is_Limited_Type): Derived types do not inherit limitedness from
22215 interface progenitors.
22216 (Is_Return_By_Reference_Type): Predicate does not apply to limited
22219 * einfo.ads (Itype_Printed): New flag
22220 Move Is_Wrapper_Package to proper section
22221 Add missing Inline for Is_Volatile
22223 * output.ads, output.adb (Write_Erase_Char): New procedure
22224 (Save/Restore_Output_Buffer): New procedures
22225 (Save/Restore_Output_Buffer): New procedures
22227 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
22228 Add missing support for anonymous access type
22229 (Write_Id): Insert calls to Write_Itype
22230 (Write_Itype): New procedure to output itypes
22232 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
22233 use of "limited" in declaration.
22235 * sinfo.ads, sinfo.adb:
22236 Formal derived types can carry an explicit "limited" indication.
22238 * sem_ch3.adb: Add with and use of Targparm.
22239 (Create_Component): If Frontend_Layout_On_Target is True and the
22240 copied component does not have a known static Esize, then reset
22241 the size and positional fields of the new component.
22242 (Analyze_Component_Declaration): A limited component is
22243 legal within a protected type that implements an interface.
22244 (Collect_Interfaces): Do not add to the list the interfaces that
22245 are implemented by the ancestors.
22246 (Derived_Type_Declaration): If the parent of the full-view is an
22247 interface perform a transformation of the tree to ensure that it has
22248 the same parent than the partial-view. This simplifies the job of the
22249 expander in order to generate the correct object layout, and it is
22250 needed because the list of interfaces of the full-view can be given in
22252 (Process_Full_View): The parent of the full-view does not need to be
22253 a descendant of the parent of the partial view if both parents are
22255 (Analyze_Private_Extension_Declaration): If declaration has an explicit
22256 "limited" the parent must be a limited type.
22257 (Build_Derived_Record_Type): A derived type that is explicitly limited
22258 must have limited ancestor and progenitors.
22259 (Build_Derived_Type): Ditto.
22260 (Process_Full_View): Verify that explicit uses of "limited" in partial
22261 and full declarations are consistent.
22262 (Find_Ancestor_Interface): Remove function.
22263 (Collect_Implemented_Interfaces): New procedure used to gather all
22264 implemented interfaces by a type.
22265 (Contain_Interface): New function used to check whether an interface is
22267 (Find_Hidden_Interface): New function used to determine whether two
22268 lists of interfaces constitute a set equality. If not, the first
22269 differing interface is returned.
22270 (Process_Full_View): Improve the check for the "no hidden interface"
22271 rule as defined by AI-396.
22273 2005-12-09 Robert Dewar <dewar@adacore.com>
22275 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
22276 types, not on record subtypes.
22277 (Freeze_Entity): Code cleanup. Add barrier to the loop
22278 that generates the references for primitive operations. This allows to
22279 remove an unnecessary exception handler.
22280 Code reformatting and comment clean ups.
22282 2005-12-09 Vincent Celier <celier@adacore.com>
22284 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
22285 If GNAT CHECK is called with a project file, but with no
22286 source on the command line, call gnatcheck with all the compilable
22287 sources of the project.
22288 Take into account the new command Check, for gnatcheck. Treat as for
22289 other ASIS tools: take into account project, specific package Check and
22291 For ASIS tools, add the switches in package Compiler for
22292 the invocation of the compiler.
22294 * prj-attr.adb: Add package Check and its attributes
22296 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
22298 * vms_conv.adb (Initialize): Change Params of command Check to
22300 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
22301 Add data for new command Check
22303 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
22305 Add qualifiers for Check command options
22306 (Command_Type): New command Check
22308 2005-12-09 Thomas Quinot <quinot@adacore.com>
22310 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
22311 command line switch overruns the output buffer.
22313 2005-12-09 Robert Dewar <dewar@adacore.com>
22315 * sem_prag.adb: Processing for new pragma Complete_Representation
22316 (Analyze_Pragma, case Debug): Implement two argument form.
22318 * par-prag.adb: Entry for new pragma Complete_Representation
22319 (Prag, case Debug): Recognize two argument form of pragma Debug
22320 New interface for Set_Style_Check_Options.
22322 * sem_ch13.adb: Implement new pragma Complete_Representation.
22324 * snames.adb, snames.ads, snames.h: Entry for new pragma
22325 Complete_Representation.
22327 2005-12-09 Gary Dismukes <dismukes@adacore.com>
22329 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
22330 available user-specified stream attributes on limited parameters to
22331 also test the type directly rather than only its underlying type (for
22332 Ada 95) and, in the case of Ada 2005, to check that the user-specified
22333 attributes are visible at the point of the subprogram declaration.
22334 For Ada 2005, the error message is modified to indicate that the
22335 type's stream attributes must be visible (again, only for -gnat05).
22337 2005-12-09 Ed Schonberg <schonberg@adacore.com>
22339 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
22340 anonymous access types.
22342 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
22343 matching of anonymous access types and anonymous access to subprogram
22344 types. 'R'M 4.9.1 (2/2).
22346 2005-12-09 Ed Schonberg <schonberg@adacore.com>
22348 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
22349 rule prematurely when operands are universal, remaining ambiguities
22350 will be removed during resolution.
22353 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
22354 that are Ada 2005 functions.
22355 (Has_Abstract_Interpretation): Subsidiary to
22356 Remove_Conversions, to remove ambiguities caused by abstract operations
22357 on numeric types when operands are universal.
22359 2005-12-09 Robert Dewar <dewar@adacore.com>
22361 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
22362 for case where spec is categorized.
22364 2005-12-09 Javier Miranda <miranda@adacore.com>
22366 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
22367 types use the corresponding record type. This was not needed before
22368 the implementation of Ada 2005 synchronized types because
22369 concurrent types were never tagged types in Ada 95.
22371 2005-12-09 Ed Schonberg <schonberg@adacore.com>
22373 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
22374 first subtype of the type of the expression to verify that it is a
22377 2005-12-09 Robert Dewar <dewar@adacore.com>
22379 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
22382 2005-12-09 Quentin Ochem <ochem@adacore.com>
22383 Robert Dewar <dewar@adacore.com>
22384 Ed Falis <falis@adacore.com>
22385 Florian Villoing <villoing@adacore.com>
22386 Thomas Quinot <quinot@adacore.com>
22387 Arnaud Charlet <charlet@adacore.com>
22389 * gnat_ugn.texi: Created section "Stack Related Tools"
22390 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
22391 "Stack Related Tools"
22392 Added subsection "Static Stack Usage Analysis"
22393 Added subsection "Dynamic Stack Usage Analysis"
22394 Include documentation of itypes in sprint listing (-gnatG)
22395 Documented gnatbind -D switch (default sec stack size for fixed sec
22397 Added Interrupt_State and Persistent_BSS to list of configuration
22399 Add missing doc for maximum value of nnn in -gnatyMnnn
22401 * gnat_rm.texi: Document the AltiVec binding.
22402 Add documentation for pragma Complete_Representation
22403 Shortened an overly long line (> 79 chars)
22404 Clarify documentation of unchecked conversion in implementation
22406 Document two argument form of pragma Debug
22408 * types.ads (Column_Number): Update documentation.
22410 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
22411 library level Finalize_Storage_Only objects (these are not attached to
22412 any finalization list).
22414 * system-mingw.ads: (Underlying_Priorities): Update comment.
22416 2005-12-09 Robert Dewar <dewar@adacore.com>
22418 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
22419 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
22420 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
22421 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
22422 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
22423 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
22424 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
22425 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
22428 2005-12-09 Robert Dewar <dewar@adacore.com>
22430 * s-vaflop-vms-alpha.adb: (Ne_F): New function
22431 (Ne_G): New function
22433 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
22434 for tag assignment.
22435 (Rewrite_Comparison): Handle case where operation is not a comparison
22436 and ignore, and also handle type conversion case.
22438 2005-12-09 Thomas Quinot <quinot@adacore.com>
22440 * exp_aggr.ads: Fix typo in comment.
22441 ???-mark Convert_Aggr_In_Assignment as needing documentation.
22443 2005-12-09 Gary Dismukes <dismukes@adacore.com>
22445 * layout.adb: Replace various uses of byte by storage unit throughout.
22446 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
22447 static size, convert to storage units before returning, to conform to
22450 2005-12-09 Matthew Gingell <gingell@adacore.com>
22452 * g-exctra.ads: Fix typo in comment.
22454 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22456 * utils.c: Minor reformatting.
22458 2005-12-09 Robert Dewar <dewar@adacore.com>
22461 Further comment fixes to make the status of the default file clear
22463 * s-bitops.adb: Clarify comment for Bits_Array
22465 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22467 * Make-lang.in (ada.install-normal): Remove.
22469 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22471 * Make-lang.in: Remove all dependencies on s-gtype.
22473 2005-12-05 Richard Guenther <rguenther@suse.de>
22475 * utils.c (convert): Use fold_convert where appropriate.
22477 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
22479 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
22482 2005-12-02 Richard Guenther <rguenther@suse.de>
22484 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
22486 2005-12-01 Roger Sayle <roger@eyesopen.com>
22488 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
22491 2005-11-23 Laurent Guerby <laurent@guerby.net>
22493 * mlib-prj.adb (Build_Library): Initialize Delete.
22495 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
22497 * socket.c: Add extern int h_errno for rtems since networking header
22498 files are not available at this point in a tool bootstrap. Newlib
22499 only has basic C library header files.
22501 2005-11-19 Richard Guenther <rguenther@suse.de>
22502 Roger Sayle <roger@eyesopen.com>
22505 * misc.c (internal_error_function): Don't use vsprintf to format
22506 the error message text, instead use pp_format_text and the new
22507 pretty printer APIs. This allows handling of %qs, %w, etc.
22509 2005-11-18 Laurent Guerby <laurent@guerby.net>
22512 * Makefile.in: Use s-auxdec-empty for RTEMS.
22514 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22517 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
22518 a temporary if taking the address of something that is neither
22519 reference, declaration, or constant, since the gimplifier
22520 can't handle that case.
22522 2005-11-17 Laurent Guerby <laurent@guerby.net>
22525 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
22527 2005-11-16 Richard Guenther <rguenther@suse.de>
22529 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
22531 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
22534 * raise-gcc.c: Add missing stdarg.h include.
22536 2005-11-16 Richard Guenther <rguenther@suse.de>
22538 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
22539 (ada/misc.o): Likewise.
22541 2005-11-14 Thomas Quinot <quinot@adacore.com>
22543 * g-soccon.ads: Minor reformatting. Update comments.
22545 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
22546 gain visibility on the declaration of struct timeval.
22548 * g-soccon-freebsd.ads,
22549 g-soccon-darwin.ads,
22550 g-soccon-tru64.ads,
22554 g-soccon-solaris.ads,
22556 g-soccon-mingw.ads,
22557 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
22559 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
22560 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
22561 g-soccon-linux-x86.ads: New files.
22563 * g-socthi-mingw.adb:
22564 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
22566 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
22567 (time_t, suseconds_t): New types constructed to match the tv_sec
22568 and tv_usec fields of C struct timeval.
22569 (Timeval): Construct structure in terms of the new types.
22570 (Host_Errno): New function (imported from socket.c), returns last hosts
22573 * g-socthi-vxworks.adb: Add error handling circuitry.
22575 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
22576 components of struct timeval.
22577 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
22578 (Check_Selector): In error conditions, clear internal socket sets to
22579 avoid a memory leak.
22580 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
22581 Send_Timeout, Receive_Timeout.
22583 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
22584 the tv_sec and tv_usec fields of C struct timeval.
22585 (Timeval): Construct structure in terms of the new types.
22586 (Host_Errno): New function (imported from socket.c), returns last hosts
22589 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
22590 hosts database last error code.
22592 * gen-soccon.c: Complete value expansion should not be performed on
22593 TARGET, as it has the form of a math expression, and some components
22594 may be platform-defined macros.
22595 For VxWorks, generate the OK and ERROR values.
22596 New constants giving the sizes of the components of C struct timeval.
22598 2005-11-14 Robert Dewar <dewar@adacore.com>
22599 Ed Schonberg <schonberg@adacore.com>
22602 * types.ads: Include All_Checks in Suppress_Array
22604 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
22605 not(a=b), since we no longer do this rewriting, and hence it is not
22607 (Elaboration_Checks_Suppressed): Add special casing to
22608 deal with different cases of static and dynamic elaboration checks (all
22609 checks does not count in the first case, but does in the second).
22610 (Expr_Known_Valid): Do not assume that the result of any arbitrary
22611 function call is valid, since this is not the case.
22612 (Ensure_Valid): Do not apply validity check to a real literal
22613 in a universal or fixed context
22615 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
22616 elementary types using the operator in standard. It is cleaner not to
22617 modify the programmers intent, especially in the case of floating-point.
22618 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
22619 it did not matter because we always rewrote a/=b to not(a=b).
22620 (Expand_Allocator_Expression): For an allocator expression whose nominal
22621 subtype is an unconstrained packed type, convert the expression to its
22622 actual constrained subtype.
22623 Implement warning for <= or >= where < or > not possible
22624 Fix to Vax_Float tests (too early in many routines, causing premature
22625 Vax_Float expansions.
22627 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
22628 to be used with packages and generic packages as well as with
22630 (Suppress): Set All_Checks, but not Elaboration_Check, for case
22631 of pragma Suppress (All_Checks)
22632 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
22633 a string literal for precise control over warnings.
22634 Avoid raise of pragma in case of unrecognized pragma and just return
22637 * sem_prag.ads: Minor reformatting
22639 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
22640 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22641 Switch. Do not handle any exception.
22642 Include -gnatwx as part of -gnatg (warn on redundant parens)
22643 Allow optional = after -gnatm
22644 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
22645 longer sets Elaboration_Checks.
22646 Code to set warning mode moved to Sem_Warn
22647 so that it can be shared by pragma processing.
22649 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
22652 * s-taprop-solaris.adb:
22653 Change some <= to =, to avoid new warning
22655 * a-exexda.adb, prj-proc.adb:
22656 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
22657 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
22659 2005-11-14 Robert Dewar <dewar@adacore.com>
22661 * exp_vfpt.adb: Handle /= case
22662 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
22663 so that we do not get duplicate scaling for fixed point conversions.
22665 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
22667 2005-11-14 Matthew Gingell <gingell@adacore.com>
22669 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
22670 Increase default priority on Lynx from 15 to 17, and meet the Ada
22671 requirement that Default_Priority be ((Priority'First +
22672 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
22674 2005-11-14 Vincent Celier <celier@adacore.com>
22676 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22677 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22678 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
22679 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
22680 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
22681 mlib-tgt-lynxos.adb (DLL_Prefix): New function
22683 2005-11-14 Doug Rupp <rupp@adacore.com>
22685 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
22688 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22690 * s-traces-default.adb, s-trafor-default.ads,
22691 s-tratas-default.adb: Fix compilation errors.
22693 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22695 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22696 raising the exception so the memory used is freed.
22698 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22700 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22701 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22702 (convert_address): Update comments and list of platforms using this.
22704 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22707 2005-11-14 Pascal Obry <obry@adacore.com>
22708 Vincent Celier <celier@adacore.com>
22710 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22713 * memroot.adb: Remove redundant with/use clause on
22714 System.Storage_Elements.
22716 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22718 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22719 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22720 related code to a-exexpr.adb
22721 (Save_Occurrence_And_Private): Move GCC EH related code to
22723 (Raise_Current_Excep): Add new variable Id with pragma
22724 volatile, to ensure that the variable lives on stack.
22726 * a-exexpr-gcc.adb, raise-gcc.c: New file.
22728 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22730 Move GCC EH related code to a-exexpr-gcc.adb
22732 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22734 Split the Linux version of g-soccon into separate variants for 32 and 64
22736 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22737 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22738 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22739 of host variable $(RANLIB_FLAGS).
22740 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22741 Code clean up: remove unused/obsolete targets.
22742 (EH_MECHANISM): New variable introduced to differenciate between the
22743 two EH mechanisms statically.
22744 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22745 (LIBGNAT_OBJS): Add raise-gcc.o
22746 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22747 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22748 supports VxWorks 6 RTPs.
22749 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22750 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22752 * raise.c: Move all GCC EH-related routines to raise-gcc.c
22754 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22756 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22757 deferral level, when abort is not allowed, to a later stage (the
22759 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22760 it will not get changed by the generated code. It was previously done
22763 2005-11-14 Thomas Quinot <quinot@adacore.com>
22764 Olivier Hainque <hainque@adacore.com>
22765 Eric Botcazou <ebotcazou@adacore.com>
22768 Factor common code to build a storage type for an unconstrained object
22769 from a fat or thin pointer type and a constrained object type.
22770 (annotate_value): Handle BIT_AND_EXPR.
22771 (annotate_rep): Don't restrict the back annotation of inherited
22772 components to the type_annotate_only case.
22773 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22774 we are not defining the type.
22775 <E_Record_Type>: Likewise.
22776 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22777 to get advantage of the new maybe_stabilize_reference interface, to
22778 ensure that what we reference is indeed stabilized instead of relying
22779 on assumptions on what the stabilizer does.
22780 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22781 type imported through a limited_with clause, use its non-limited view.
22782 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22784 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22785 of #if sections + explicit comparisons of convention identifiers.
22786 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22787 before early-returning for certain types when code generation is
22789 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22790 nullification of gnu_expr we do for objects with address clause and
22791 that we are not defining.
22792 (elaborate_expression_1): Do not create constants when creating
22793 variables needed by the debug info: the dwarf2 writer considers that
22794 CONST_DECLs is used only to represent enumeration constants, and emits
22796 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22797 object with an address clause into an indirect reference, drop the
22798 initializing expression.
22800 (STACK_CHECK_BUILTIN): Delete.
22801 (STACK_CHECK_PROBE_INTERVAL): Likewise.
22802 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22803 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22804 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22805 corresponding to the renamed object as ignored for debugging purposes.
22807 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22808 related): For a prefix that is a dereference of a fat or thin pointer,
22809 if there is an actual subtype provided by the front-end, use that
22810 subtype to build an actual type with bounds template.
22811 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22812 is provided by the front-end, use that subtype to compute the size of
22813 the deallocated object.
22814 (gnat_to_gnu): When adding a statement into an elaboration procedure,
22815 check for a potential violation of a No_Elaboration_Code restriction.
22816 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22817 with extra arguments to control whether to recurse through non-values
22818 and to let the caller know if the stabilization has succeeded.
22819 (gnat_stabilize_reference): Now a simple wrapper around
22820 maybe_stabilize, for common uses without restriction on lvalues and
22821 without need to check for the success indication.
22822 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22823 pass false instead of 0 as the FORCE argument which is a bool.
22824 (Identifier_to_gnu): Remove checks ensuring that an renamed object
22825 attached to a renaming pointer has been properly stabilized, as no such
22826 object is attached otherwise.
22827 (call_to_gnu): Invoke create_var_decl to create the temporary when the
22828 function uses the "target pointer" return mechanism.
22829 Reinstate conversion of the actual to the type of the formal
22830 parameter before any other specific treatment based on the passing
22831 mechanism. This turns out to be necessary in order for PLACEHOLDER
22832 substitution to work properly when the latter type is unconstrained.
22834 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22836 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22837 with extra arguments to control whether to recurse through non-values
22838 and to let the caller know if the stabilization has succeeded.
22840 * utils2.c (gnat_build_constructor): Only sort the fields for possible
22841 static output of record constructor if all the components are constant.
22842 (gnat_build_constructor): For a record type, sort the list of field
22843 initializers in increasing bit position order.
22844 Factor common code to build a storage type for an unconstrained object
22845 from a fat or thin pointer type and a constrained object type.
22846 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22847 types variants, and process special cases of VIEW_CONVERT expressions
22848 as their NOP_EXPR counterpart to ensure we get to the
22849 CORRESPONDING_VARs associated with CONST_DECls.
22850 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22851 on the right-hand side.
22853 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22855 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22856 are converting back to its original type.
22857 (convert) <JM input>: Fallthrough regular conversion code instead of
22858 extracting the object if converting to a type variant.
22859 (create_var_decl): When a variable has an initializer requiring code
22860 generation and we are at the top level, check for a potential violation
22861 of a No_Elaboration_Code restriction.
22862 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22863 SIZE and SIZE_UNIT which we need for later back-annotations.
22864 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22865 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22866 is an unchecked union.
22867 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22868 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22869 main variant, just replace the VIEW_CONVERT_EXPR.
22870 <UNION_TYPE>: Revert 2005-03-02 change.
22872 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22874 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22876 2005-11-14 Matthew Heaney <heaney@adacore.com>
22878 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22879 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22880 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22881 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22882 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22883 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22884 Compiles against the spec for ordered maps described in sections
22885 A.18.6 of the most recent (August 2005) AI-302 draft.
22887 2005-11-14 Olivier Hainque <hainque@adacore.com>
22889 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22890 to ensure bias adjustments take place when need be and to prevent
22891 occurrences of intermediate overflows.
22893 2005-11-14 Matthew Gingell <gingell@adacore.com>
22894 Olivier Hainque <hainque@adacore.com>
22896 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22899 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22900 tracebacks on ia64 HP-UX and provide explanatory comment.
22901 Enable backtraces on ia64 GNU/Linux.
22902 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22903 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22905 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22906 Javier Miranda <miranda@adacore.com>
22908 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22909 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22910 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22911 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22913 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22914 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22917 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22918 subprogram that generates the external name associated with a
22919 secondary dispatch table.
22920 (Get_Secondary_DT_External_Name): New subprogram that generates the
22921 external name associated with a secondary dispatch table.
22923 2005-11-14 Emmanuel Briot <briot@adacore.com>
22925 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22926 line in the ALI file to include both an instantiation reference, and a
22929 2005-11-14 Vincent Celier <celier@adacore.com>
22931 * clean.adb (Check_Project): Look for Ada code in extending project,
22932 even if Ada is not specified as a language.
22933 Use new function DLL_Prefix for DLL_Name
22934 (Clean_Interface_Copy_Directory): New procedure
22935 (Clean_Library_Directory): New procedure
22936 (Clean_Directory): Remove procedure, no longer used
22937 (Clean_Project): Do not delete any file in an externally built project
22939 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22940 directory of an extending project, even when there are no Ada source
22942 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22943 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22945 * mlib-prj.adb (Check_Library): For all library projects, get the
22946 library file timestamp.
22947 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22948 (Build_Library): Use new function DLL_Prefix for the DLL_Name
22949 (Clean): Remove procedure, no longer used
22950 (Ultimate_Extension_Of): New function
22951 (Build_Library): When cleaning the library directory, only remove an
22952 existing library file and any ALI file of a source of the project.
22953 When cleaning the interface copy directory, remove any source that
22954 could be a source of the project.
22956 * prj.ads, prj.adb (Project_Empty): Add values of new components
22957 Library_TS and All_Imported_Projects.
22958 (Project_Empty): Add values for new components of Project_Data:
22959 Library_ALI_Dir and Display_Library_ALI_Dir
22961 * prj-attr.adb: New project level attribute name Library_ALI_Dir
22963 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22964 attribute Library_ALI_Dir.
22965 (Check_Library_Attributes): The library directory cannot be the same as
22966 any source directory of the project tree.
22967 (Check_Stand_Alone_Library): The interface copy directory cannot be
22968 the same as any source directory of the project tree.
22970 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22971 all temporary files.
22973 2005-11-14 Robert Dewar <dewar@adacore.com>
22974 Ed Schonberg <schonberg@adacore.com>
22976 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22977 (Check_Elab_Call): A call within a protected body is never an
22978 elaboration call, and does not require checking.
22979 (Same_Elaboration_Scope): Take into account protected types for both
22981 (Activate_Elaborate_All_Desirable): New procedure
22983 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22986 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22987 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22989 * lib-writ.ads, lib-writ.adb:
22990 Implement new AD/ED for Elaborate_All/Elaborate desirable
22991 Use new Elaborate_All_Desirable flag in N_With_Clause node
22993 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22994 N_Free_Statement nodes.
22995 Define new class N_Subprogram_Instantiation
22996 Add Elaborate_Desirable flag to N_With_Clause node
22997 Add N_Delay_Statement (covering two kinds of delay)
22999 * debug.adb: Introduce d.f flag for compiler
23000 Add -da switch for binder
23002 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23003 Cyrille Comar <comar@adacore.com>
23005 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
23006 for task component, in the case of a limited aggregate. The enclosed
23007 object declaration will create it earlier. Otherwise, in the case of a
23008 nested aggregate, the object may appear in the wrong scope.
23009 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
23010 (Gen_Assign): If the component being assigned is an array type and the
23011 expression is itself an aggregate, wrap the assignment in a block to
23012 force finalization actions on the temporary created for each row of the
23014 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
23015 structures are initialized after all discriminants are set so that
23016 they can be accessed even when their offset is dynamic.
23018 2005-11-14 Robert Dewar <dewar@adacore.com>
23019 Hristian Kirtchev <kirtchev@adacore.com>
23021 * sem_attr.adb: Implement Machine_Rounding attribute
23022 (Analyze_Access_Attribute): The access attribute may appear within an
23023 aggregate that has been expanded into a loop.
23024 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
23025 'Terminated whenever the prefix is of a task interface class-wide type.
23026 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
23027 the prefix is of a task interface class-wide type.
23029 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
23032 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
23033 Remove pragma Inline for [Unaligned_]Valid.
23034 Add comments that Valid routines do not work for Vax_Float
23036 * exp_attr.adb: Implement Machine_Rounding attribute
23038 * snames.h: Add entry for Machine_Rounding attribute
23040 2005-11-14 Javier Miranda <miranda@adacore.com>
23041 Robert Dewar <dewar@adacore.com>
23042 Hristian Kirtchev <kirtchev@adacore.com>
23044 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
23045 and related): For a prefix that is an explicit dereference of an
23046 access to unconstrained packed array type, annotate the dereference
23047 with an actual subtype so GIGI can make a correct size computation.
23048 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
23049 'Unrestricted_Access, if the designated type is an interface we
23050 add a type conversion to force the displacement of the pointer
23051 to the secondary dispatch table.
23052 Use Universal_Real instead of Long_Long_Float when we need a high
23053 precision float type for the generated code (prevents gratuitous
23054 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
23055 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
23056 'Terminated for task interface class-wide objects. Generate a call to
23057 the predefined dispatching routine used to retrieve the _task_id from
23058 a task corresponding record.
23059 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
23061 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
23062 (Check_Dispatching_Operation): Protect the frontend againts
23063 previously detected errors.
23065 * Makefile.rtl: Add new instantiations of system.fat_gen
23067 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
23068 Change name of instantiated package for better consistency
23069 with newly added system.fat_gen instantiations.
23071 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
23072 s-fvagfl.ads: New files.
23074 2005-11-14 Cyrille Comar <comar@adacore.com>
23075 Thomas Quinot <quinot@adacore.com>
23077 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
23078 assignment of a value of a tagged type that has been rewritten to a
23079 block statement, it is known by construction that no checks are
23080 necessary for the statements within the block: analyze it with checks
23082 (Expand_N_If_Statement): When killing a dead then-branch in an
23083 if-statement that has elsif_parts, recompute the Current_Value node
23084 for any entity whose value is known from the condition of the first
23086 (Expand_N_Return_Statement): When returning a mutable record, convert
23087 the return value into its actual subtype in order to help the backend
23088 to return the actual size instead of the maximum. This is another
23089 aftermath of not returning mutable records on the sec-stack anymore.
23091 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
23092 handling of error msg for suspicious reverse range iteration.
23093 (Check_Possible_Current_Value_Condition): Move declaration from body to
23094 spec, to allow this subprogram to be called from exp_ch5.
23096 2005-11-14 Thomas Quinot <quinot@adacore.com>
23098 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
23099 generate a set of nested array aggregates instead of a single flat
23100 aggregate for multi-dimensional arrays.
23102 2005-11-14 Pascal Obry <obry@adacore.com>
23104 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
23105 by spawnve is a process handle, no need to convert. Add a parameter
23106 close to control wether the process handle must be closed.
23107 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
23108 a process handle, not need to convert.
23109 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
23111 * g-expect.adb: (Kill): Document the new close parameter.
23112 (Close): Do not release the process handle in the kill there as
23113 waitpid() is using it.
23114 (Send_Signal): Release the process handle.
23116 2005-11-14 Robert Dewar <dewar@adacore.com>
23118 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
23119 need a high precision float type for the generated code (prevents
23120 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
23123 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
23124 need a high precision float type for the generated code (prevents
23125 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
23127 (Expand_Width_Attribute): In configurable run-time, the attribute is not
23128 allowed on non-static enumeration subtypes. Force a load error to emit
23129 the correct diagnostic.
23131 2005-11-14 Thomas Quinot <quinot@adacore.com>
23132 Robert Dewar <dewar@adacore.com>
23133 Ed Schonberg <schonberg@adacore.com>
23135 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
23136 subtype to compute the size of the designated object at run-time,
23137 create such a subtype and store it in the Actual_Designated_Subtype
23138 attribute of the N_Free_Statement.
23139 Generate itype for classwide designated object in both cases of
23140 user-specified storage pool: specific and class-wide, not only in the
23142 Raise CE when trying to set a not null access type object to null.
23143 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
23144 an explicit loop, because freeze nodes make its position variable.
23146 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
23149 2005-11-14 Javier Miranda <miranda@adacore.com>
23151 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
23152 Build_Stream_Procedure): Add the null-excluding attribute to the first
23154 This has no semantic meaning under Ada95 mode but it is a
23155 requirement under Ada05 mode.
23157 * par-ch3.adb (P_Access_Definition): Addition of warning message if
23158 the null exclusion is used under Ada95 mode
23159 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
23160 (P_Access_Definition): Remove assertion that forbids the use of
23161 the null-exclusion feature in Ada95.
23163 2005-11-14 Robert Dewar <dewar@adacore.com>
23165 * impunit.adb: Exclude container helper units not intended for use by
23168 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23170 * freeze.adb (Freeze_Entity): For an access formal that is an access
23171 to subprogram, freeze the anonymous subprogram type at the same time,
23172 to prevent later freezing in the wrong scope, such as the enclosing
23174 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
23175 subprogram whenever available.
23177 2005-11-14 Arnaud Charlet <charlet@adacore.com>
23180 * gnatvsn.ads (Library_Version): Bump to 4.1
23182 2005-11-14 Robert Dewar <dewar@adacore.com>
23184 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
23185 Storage_Offset to avoid wrap around causing invalid results.
23187 2005-11-14 Pascal Obry <obry@adacore.com>
23189 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
23191 (Scan_Bind_Arg): Fail with an error message if -M option is used
23192 on a native compiler.
23194 2005-11-14 Robert Dewar <dewar@adacore.com>
23195 Vincent Celier <celier@adacore.com>
23197 * gprep.adb: Implement -C switch to scan comments
23199 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
23201 * scans.ads: Comment updates (including new use of Tok_Comment in
23204 * opt.ads: Add documentation for flags that are used by gprmake,
23205 currently and in the next version of gprmake.
23206 (Verbosity_Level): New variable
23207 Add Replace_In_Comments switch
23209 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
23211 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
23213 2005-11-14 Arnaud Charlet <charlet@adacore.com>
23215 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
23216 message, friendlier.
23218 2005-11-14 Robert Dewar <dewar@adacore.com>
23220 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
23222 2005-11-14 Doug Rupp <rupp@adacore.com>
23224 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
23226 2005-11-14 Robert Dewar <dewar@adacore.com>
23228 * interfac.ads: Change declarations of IEEE float types so that we no
23229 longer need a separate version of this package for VMS.
23231 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23233 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
23234 internal entity created for the declaration of a child subprogram body
23235 with no spec as coming from source, to generate proper cross-reference
23238 2005-11-14 Vincent Celier <celier@adacore.com>
23240 * make.adb (Compile_Sources): Change verbose message to minimum
23241 verbosity level High for "is in an Ada library", "is a read-only
23242 library" and "is an internal library",
23243 (Create_Binder_Mapping_File): Path name of ALI file for library project
23244 must include the library directory, not the object directory.
23245 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
23246 for new switches -vl, -vm and -vh.
23247 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
23248 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
23249 (Compile_Sources): Do not attempt to compile if an ALI file is missing
23250 in a project that is externally built.
23251 (Compute_All_Imported_Projects): New procedure
23252 (Gnatmake): Check if importing libraries should be regenerated because
23253 at least an imported library is more recent.
23254 (Initialize): For each project compute the list of the projects it
23255 imports directly or indirectly.
23256 (Add_Library_Search_Dir): New procedure, used in place of
23257 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
23258 put in the search paths.
23259 (Add_Source_Search_Dir): New procedure, used in place of
23260 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
23261 put in the search paths.
23262 (Mark_Directory): Resolve the absolute path the directory before marking
23265 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
23266 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
23267 Switch. Do not handle any exception.
23268 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
23269 so that the switch is recognized as valid.
23270 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
23272 2005-11-14 GNAT Script <nobody@adacore.com>
23274 * Make-lang.in: Makefile automatically updated
23276 2005-11-14 Pascal Obry <obry@adacore.com>
23278 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
23280 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
23281 In both cases the last argument was dropped.
23283 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
23285 * namet.h: (Column_Numbe): New type.
23286 (Get_Column_Number): Define to sinput__get_column_number.
23287 (Instantiation): Define to sinput__instantiation.
23288 (Get_Column_Number): Declare.
23289 (Instantiation): Likewise.
23291 2005-11-14 Robert Dewar <dewar@adacore.com>
23293 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
23294 syntax, which could cause compiler hangs.
23296 2005-11-14 Vincent Celier <celier@adacore.com>
23298 * prj-ext.adb: Take into account new environment variable
23299 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
23301 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
23302 normalize its path name, making it absolute and resolving symbolic
23303 links, and replace the original if resolved path is different.
23305 2005-11-14 Vincent Celier <celier@adacore.com>
23307 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
23308 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
23310 2005-11-14 Emmanuel Briot <briot@adacore.com>
23312 * prj-pp.adb (Print): Do not output the with statement if the
23313 associated name is empty, which happens for virtual extending projects.
23314 (Print): Preserve the "extends all" attribute when printing the project.
23316 * prj-tree.ads (String_Value_Of): Add comment about returned value for
23317 a virtual extending project.
23319 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23321 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
23322 rhs of an assignment even if the type is unconstrained, when the
23323 context is non-expanding.
23324 In an inlined body, if the context type is private,
23325 resolve with its full view, which must be a composite type.
23327 2005-11-14 Robert Dewar <dewar@adacore.com>
23328 Ed Schonberg <schonberg@adacore.com>
23330 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
23331 Do not give obsolescent warning on with of subprogram (since we
23333 (Analyze_With_Clause): Add test for obsolescent package
23334 (Install_Context_Clauses): If the unit is the body of a child unit, do
23335 not install twice the private declarations of the parents, to prevent
23336 circular lists of Use_Clauses in a parent.
23337 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
23338 compiling body of child unit.
23339 Use new class N_Subprogram_Instantiation
23340 (Expand_With_Clause): If this is a private with_clause for a child unit,
23341 appearing in the context of a package declaration, then the implicit
23342 with_clauses generated for parent units are private as well.
23343 (License_Check): Do not generate message if with'ed unit is internal
23345 2005-11-14 Gary Dismukes <dismukes@adacore.com>
23346 Ed Schonberg <schonberg@adacore.com>
23347 Thomas Quinot <quinot@adacore.com>
23349 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
23350 names are internal, because they will not have a corresponding partner
23351 in the actual package.
23352 (Analyze_Formal_Package): Move the setting of the formal package spec's
23353 Generic_Parent field so that it occurs prior to analyzing the package,
23354 to allow proper operation of Install_Parent_Private_Declarations.
23355 (Analyze_Package_Instantiation): Set the instantiated package entity's
23356 Package_Instantiation field.
23357 (Get_Package_Instantiation_Node): Move declaration to package spec.
23358 Retrieve the N_Package_Instantiation node when the Package_Instantiation
23360 (Check_Generic_Child_Unit): Within an inlined call, the only possible
23361 instantiation is Unchecked_Conversion, for which no parents are needed.
23362 (Inline_Instance_Body): Deinstall and record the use_clauses for all
23363 parent scopes of a scope being removed prior to inlining an instance
23365 (Analyze_Package_Instantiation): Do not perform front-end inlining when
23366 the current context is itself an instance within a non-instance child
23367 unit, to prevent scope stack errors.
23368 (Save_References): If the node is an aggregate that is an actual in a
23369 call, rewrite as a qualified expression to preserve some type
23370 information, to resolve possible ambiguities in the instance.
23371 (Instance_Parent_Unit): New global variable to record the ultimate
23372 parent unit associated with a generic child unit instance (associated
23373 with the existing Parent_Unit_Visible flag).
23374 (type Instance_Env): New component Instance_Parent_Unit for stacking
23375 parents recorded in the global Instance_Parent_Unit.
23376 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
23378 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
23379 it's not a top-level unit, and only do this if Instance_Parent_Unit is
23380 not already set. Replace test of Is_Child_Unit with test of parent's
23381 scope against package Standard. Add comments and a ??? comment.
23382 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
23383 on a child instance parent to test that the parent equals
23384 Instance_Parent rather than simply checking that the unit is not a
23386 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
23387 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
23388 a formal interface are ancestors of the corresponding actual.
23389 (Validate_Formal_Interface_Type): Additional legality checks.
23390 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
23391 interface types with ancestors.
23392 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
23393 to diagnose attempts to use generic within its own declaration.
23395 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23396 Javier Miranda <miranda@adacore.com>
23398 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
23400 (Build_Private_Derived_Type): The entity of the created full view of the
23401 derived type does not come from source. If after installing the private
23402 declarations of the parent scope the parent is still private, use its
23403 full view to construct the full declaration of the derived type.
23404 (Build_Derived_Record_Type): Relax the condition that controls the
23405 execution of the check that verifies that the partial view and
23406 the full view agree in the set of implemented interfaces. In
23407 addition, this test now only takes into account the progenitors.
23408 (Derive_Interface_Subprograms): No need to derive subprograms
23409 of ancestors that are interfaces.
23410 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
23412 Change name Is_Package to Is_Package_Or_Generic_Package
23413 (Complete_Subprograms_Derivation): Handle the case in which the full
23414 view is a transitive derivation of the ancestor of the partial view.
23415 (Process_Full_View): Rename local subprogram Find_Interface_In_
23416 Descendant to Find_Ancestor_Interface to leave the code more clear.
23417 Remove wrong code that avoids the generation of an error message
23418 when the immediate ancestor of the partial view is an interface.
23419 In addition some minor reorganization of the code has been done to
23420 leave it more clear.
23421 (Analyze_Type_Declaration): If type has previous incomplete tagged
23422 partial view, inherit properly its primitive operations.
23423 (Collect_Interfaces): Make public, for analysis of formal
23425 (Analyze_Interface_Declaration): New procedure for use for regular and
23426 formal interface declarations.
23427 (Build_Derived_Record_Type): Add support for private types to the code
23428 that checks if a tagged type implements abstract interfaces.
23429 (Check_Aliased_Component_Type): The test applies in the spec of an
23431 (Access_Type_Declaration): Clean up declaration of malformed type
23432 declared as an access to its own classwide type, to prevent cascaded
23434 (Collect_Interfaces): For private extensions and for derived task types
23435 and derived protected types, the parent may be an interface that must
23436 be included in the interface list.
23437 (Access_Definition): If the designated type is an interface that may
23438 contain tasks, create Master_Id for it before analyzing the expression
23439 of the declaration, which may be an allocator.
23440 (Record_Type_Declaration): Set properly the interface kind, for use
23441 in allocators, the creation of master id's for task interfaces, etc.
23443 2005-11-14 Javier Miranda <miranda@adacore.com>
23444 Ed Schonberg <schonberg@adacore.com>
23446 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
23447 omitted in case of stream attribute subprograms.
23448 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
23449 appear immediately after a subprogram body, when there is no previous
23450 subprogram declaration.
23451 Change name Is_Package to Is_Package_Or_Generic_Package
23452 (Process_Formals): A non null qualifier on a non null named access
23453 type is not an error, and is a warning only if Redundant_Constructs
23456 2005-11-14 Gary Dismukes <dismukes@adacore.com>
23457 Ed Schonberg <schonberg@adacore.com>
23459 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
23460 nested within Analyze_Package_Specification to install the private
23461 declarations and use clauses within each of the parent units of a
23462 package instance of a generic child package.
23463 (Analyze_Package_Specification): When entering a private part of a
23464 package associated with a generic instance or formal package, the
23465 private declarations of the parent must be installed (by calling new
23466 procedure Install_Parent_Private_Declarations).
23467 Change name Is_Package to Is_Package_Or_Generic_Package
23468 (Preserve_Full_Attributes): For a synchronized type, the corresponding
23469 record is absent in a generic context, which does not indicate a
23472 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23474 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
23475 not try to rewrite a renamed stream attribute, because the operations
23476 on the type may not have been generated.
23477 Handle properly a renaming_as_body generated for a stream operation
23478 whose default is abstract because the object type itself is abstract.
23479 (Find_Type): If the type is incomplete and appears as the prefix of a
23480 'Class reference, it is tagged, and its list of primitive operations
23481 must be initialized properly.
23482 (Chain_Use_Clauses): When chaining the use clauses that appear in the
23483 private declaration of a parent unit, prior to compiling the private
23484 part of a child unit, find on the scope stack the proper parent entity
23485 on which to link the use clause.
23486 (Note_Redundant_Use): Emit a warning when a redundant use clause is
23488 (Analyze_Object_Renaming): An attribute reference is not a legal object
23489 if it is not a function call.
23491 2005-11-14 Robert Dewar <dewar@adacore.com>
23492 Ed Schonberg <schonberg@adacore.com>
23494 * sem_eval.adb: Implement d.f flag
23495 (Subtype_Statically_Match): A generic actual type has unknown
23496 discriminants when the corresponding actual has a similar partial view.
23497 If the routine is called to validate the signature of an inherited
23498 operation in a child instance, the generic actual matches the full view,
23500 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
23501 Ed Schonberg <schonberg@adacore.com>
23502 Robert Dewar <dewar@adacore.com>
23503 Thomas Quinot <quinot@adacore.com>
23505 * sem_res.adb (Resolve_Call): Provide a better error message whenever
23506 a procedure call is used as a select statement trigger and is not an
23507 entry renaming or a primitive of a limited interface.
23508 (Valid_Conversion): If the operand has a single interpretation do not
23509 remove address operations.
23510 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
23511 statement to inhibit warning.
23512 (Resolve_Unary_Op): Do not produce a warning when
23513 processing an expression of the form -(A mod B)
23514 Use Universal_Real instead of Long_Long_Float when we need a high
23515 precision float type for the generated code (prevents gratuitous
23516 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
23517 (Resolve_Concatenation_Arg): Improve error message when argument is an
23518 ambiguous call to a function that returns an array.
23519 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
23520 there is an implicit operator in the given scope if we are within an
23521 instance: legality check has been performed on the generic.
23522 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
23523 after resolving operand, to avoid false warnings on overloaded calls.
23525 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23526 Javier Miranda <miranda@adacore.com>
23529 * sem_type.adb (Covers): In an inlined body, a composite type matches
23530 a private type whose full view is a composite type.
23531 (Interface_Present_In_Ancestor): Protect the frontend against
23532 previously detected errors to ensure that its compilation
23533 with assertions enabled gives the same output that its
23534 compilation without assertions.
23535 (Interface_Present_In_Ancestor): Add support for private types.
23536 Change name In_Actual to In_Generic_Actual (clean up)
23537 (Disambiguate): New predicate In_Actual, to recognize expressions that
23538 appear in the renaming declaration generated for generic actuals, and
23539 which must be resolved in the outer context.
23541 2005-11-14 Robert Dewar <dewar@adacore.com>
23542 Thomas Quinot <quinot@adacore.com>
23543 Hristian Kirtchev <kirtchev@adacore.com>
23544 Ed Schonberg <schonberg@adacore.com>
23546 * sem_util.ads, sem_util.adb: Change name Is_Package to
23547 Is_Package_Or_Generic_Package.
23548 (Check_Obsolescent): New procedure.
23549 (Set_Is_Public): Remove obsolete junk test.
23550 (Set_Public_Status): Do not set Is_Public on an object whose declaration
23551 occurs within a handled_sequence_of_statemets.
23552 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
23553 for a parameterless procedure.
23554 (Enter_Name): Recognize renaming declarations created for private
23555 component of a protected type within protected operations, so that
23556 the source name of the component can be used in the debugger.
23558 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23559 Robert Dewar <dewar@adacore.com>
23561 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
23562 of a generic subprogram are not visible outside the body.
23563 (Set_Warning_Switch): New procedure (code to set warning mode moved
23564 here from Switch.C so that it can be shared by pragma processing.
23565 (Check_References): Special case warning for non-modified non-imported
23567 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
23568 form with a string literal argument
23570 2005-11-14 Javier Miranda <miranda@adacore.com>
23572 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
23574 (Write): Addition of "not null" to the anonymous access.
23575 (Read): Addition of "not null" to the anonymous access.
23576 (Write): Addition of "not null" to the anonymous access.
23578 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
23579 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
23580 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
23581 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
23582 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
23583 "not null" to the anonymous access.
23585 2005-11-14 Robert Dewar <dewar@adacore.com>
23587 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
23590 2005-11-14 Vincent Celier <celier@adacore.com>
23592 * switch.adb (Bad_Switch): New procedure
23593 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
23594 message when in error.
23596 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
23597 Too_Many_Output_Files): Remove declarations, no longer used.
23598 (Scan_Nat): New parameter Switch
23600 (Bad_Switch): New procedure
23602 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
23603 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
23604 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
23605 to Osint.Fail. Do not handle any exception.
23607 2005-11-14 Vincent Celier <celier@adacore.com>
23609 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
23610 designates a non existent directory.
23612 2005-11-14 Robert Dewar <dewar@adacore.com>
23614 * xgnatugn.adb: Replace invalid membership test by 'Valid
23616 2005-11-14 Vincent Celier <celier@adacore.com>
23618 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
23619 there is no object directory.
23621 2005-11-14 Robert Dewar <dewar@adacore.com>
23623 * usage.adb: Minor adjustment to output format, use nn instead of nnn
23624 (so that -gnateInnn does not run into next column)
23626 2005-11-14 Ed Falis <falis@adacore.com>
23628 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
23631 2005-11-14 Cyrille Comar <comar@adacore.com>
23633 * s-chepoo.ads: Add comments on Dereference.
23634 Remove unnecessary inherited abstract primitives.
23637 2005-11-14 Robert Dewar <dewar@adacore.com>
23639 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
23640 node parameter, not needed, since it is available as Declaration_Node.
23642 2005-11-14 Geert Bosch <bosch@adacore.com>
23644 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
23645 grammatically correct.
23647 2005-11-14 Vincent Celier <celier@adacore.com>
23649 * s-fileio.ads: Correct spelling error in comment
23651 2005-11-14 Cyrille Comar <comar@adacore.com>
23652 Robert Dewar <dewar@adacore.com>
23653 Vincent Celier <celier@adacore.com>
23654 Ben Brosgol <brosgol@adacore.com>
23655 Jose Ruiz <ruiz@adacore.com>
23656 Pascal Obry <obry@adacore.com>
23659 Document that -fstack-check is needed for strict compliance with the
23660 Ada 95 Reference Manual.
23661 Correct reference to VAX systems to meet HP guidelines
23662 Add documentation for new gnatmake switches -vl, -vm and -vh
23663 Replace DEC Ada by HP Ada
23664 Replace DIGITAL by HP
23665 Remove empty section on tools in compatibility section
23666 Clarify the Windows convention semantics.
23667 Document the Win32 calling convention.
23668 The Stdcall, Win32 and DLL convention are synonyms.
23669 Add a note in -gnatR description about zero size record components
23670 Note on new >= and <= warnings for -gnatwc
23671 Document that equal sign after -gnatm is optional.
23672 Note that strip is working fine on DLL built with a Library
23673 Project. The restriction apply only to DLL built with gnatdll.
23674 Update section about the way to debug a DLL.
23675 Update information about the DLL convention.
23676 Document -C switch for gnatprep
23677 Document new attribute Library_ALI_Dir
23678 Update elaboration doc to include implicit Elaborate pragmas now
23679 generated for subprogram instantiations.
23680 Document limitation on executable names that include spaces for --GCC,
23681 --GNATBIND, and --GNATLINK switches.
23682 Document that -w causes -gnatws to be added at start of gcc switches
23684 * gnat_rm.texi: Document that -mieee is needed for generating infinite
23685 and NaN values in case of overflow on machines that are not fully
23686 compliant with the IEEE floating-point standard.
23687 Create a section describing the set of compiler options needed for
23688 strict compliance with the Ada 95 Reference Manual.
23689 Add documentation for pragma Obsolescent applied to a package
23690 Clarify potential issues of mixed language programs related to the
23691 I/O buffering enabling in the elaboration of the GNAT runtime.
23692 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23693 This documentation only patch adds extra documentsion for pragma
23694 Restrictions (No_Elaboration_Code), explaining why it is not possible
23695 to document this restriction in terms of allowed source constructs.
23696 Document string literal form of pragma Warnings
23697 Document new attribute Library_ALI_Dir
23698 Add documentation on stable attributes in project files that was missing
23700 * gnat-style.texi: Indicate that paragraphs within a single comment
23701 should be separated by empty comment lines
23703 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23706 * bindusg.adb: Minor cleanup, put -m before -M for consistency
23708 2005-11-14 Robert Dewar <dewar@adacore.com>
23710 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23711 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23712 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23713 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23714 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23715 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23716 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23717 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23718 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23719 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23720 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23721 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23722 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23723 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23724 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23725 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23726 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23727 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23728 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23729 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23730 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23731 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23732 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23733 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23734 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23735 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23736 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23737 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23738 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23739 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23740 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23741 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23742 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23743 system-interix.ads, system-solaris-sparc.ads,
23744 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23745 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23746 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23747 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23748 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23749 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23750 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23751 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23752 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23753 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23754 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23755 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23756 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23757 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23758 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23759 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23760 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23761 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23762 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23763 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23764 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23765 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23766 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23767 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23768 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23769 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23770 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23771 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23772 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23773 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23774 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23775 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23776 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23777 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23778 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23779 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23780 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23781 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23782 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23783 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23784 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23785 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23786 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23787 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23788 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23789 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23790 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23791 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23792 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23793 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23794 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23795 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23796 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23797 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23798 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23799 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23800 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23801 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23802 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23803 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23804 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23805 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23806 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23807 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23808 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23809 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23810 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23811 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23812 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23813 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23814 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23815 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23816 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23817 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23818 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23819 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23820 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23821 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23822 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23823 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23824 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23825 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23826 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23827 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23828 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23829 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23830 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23831 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23832 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23833 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23834 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23835 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23836 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23837 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23838 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23839 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23840 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23841 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23842 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23843 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23844 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23845 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23846 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23847 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23848 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23849 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23850 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23851 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23852 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23853 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23854 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23855 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23856 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23857 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23858 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23859 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23860 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23861 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23862 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23863 a-numaux-darwin.ads, a-numaux-darwin.adb,
23864 a-swuwha.ads, a-stunha.ads: Minor reformatting
23866 2005-11-14 Robert Dewar <dewar@adacore.com>
23869 * osint-m.adb: Add pragma Elaborate_All for Osint
23871 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
23874 * trans.c (call_to_gnu): Restore statement lost in translation.
23876 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
23878 * init.c: Use the Linux-specific section for the IA-64/Linux target.
23879 (__gnat_adjust_context_for_raise): Add conditional code so that the
23880 IA-64 is also supported.
23882 2005-11-03 James E Wilson <wilson@specifix.com>
23885 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23886 TREE_OVERFLOW check.
23888 2005-09-21 Olivier Hainque <hainque@adacore.com>
23891 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23892 as we create them to store a size in bits.
23894 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
23902 * utils2.c (build_return_expr): New helper function.
23903 * gigi.h (build_return_expr): Declare it.
23904 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23905 of manually building the RETURN_EXPR tree.
23906 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23907 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23908 build_binary_op for the "target pointer" case. Use build_return_expr
23909 instead of manually building the RETURN_EXPR tree.
23911 2005-09-16 Laurent Guerby <laurent@guerby.net>
23914 * s-tpinop.ads: Make this unit Preelaborate.
23916 2005-09-16 Andreas Jaeger <aj@suse.de>
23918 * socket.c: Add string.h for memcpy.
23920 2005-09-05 Arnaud Charlet <charlet@adacore.com>
23922 * dec-io.ads, dec-io.adb: Removed, no longer used.
23924 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23926 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23928 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23929 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23930 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23931 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23932 dependent units are Preelaborate.
23933 (Initialize): Call Interrupt_Managemeent.Initialize and
23934 OS_Primitives.Initialize to ensure proper initialization of this unit.
23935 Remove use of System.Soft_Links
23936 Make this unit Preelaborate.
23938 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23939 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23940 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23941 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23942 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23943 s-tratas.ads, s-tasinf.ads: Minor reformatting.
23944 Add pragma Preelaborate, since these packages are suitable for this
23948 * s-traent-vms.ads, s-intman-dummy.adb,
23949 s-taprop-dummy.adb: Make this unit Preelaborate.
23951 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23952 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23953 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23954 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23955 s-intman-solaris.adb, s-intman-irix-athread.adb,
23956 s-intman-irix.adb: Mark this unit Preelaborate.
23957 (Initialize): New procedure.
23960 * s-taspri-linux.ads: Removed.
23962 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23963 as done by other implementations (e.g. posix).
23965 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23966 responsible for deferring abort.
23967 Mark this unit Preelaborate.
23969 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23970 proper initialization of the tasking run-time.
23972 * s-tasdeb.ads: Mark this unit Preelaborate.
23973 (Known_Tasks): Add explicit default value to avoid elaboration code.
23975 * s-inmaop-vms.adb (Elaboration code): Add call to
23976 Interrupt_Management.Initialize since the elaboration code depends on
23977 proper initialization of this package.
23979 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23980 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23981 s-osprim-posix.adb: Make this unit Preelaborate.
23983 * a-calend.adb: Add call to OS_Primitives.Initialize
23985 * a-elchha.adb: Update use of Except.Id.Full_Name.
23986 Minor reformatting.
23987 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23989 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23990 Move with clauses outside Warnings Off now that dependent units are
23992 Use raise xxx with "..."; Ada 2005 form.
23994 * a-taside.ads, a-taside.adb:
23995 Remove some dependencies, to make it easier to make this unit truly
23997 Rewrite some code to be conformant with Preelaborate rules.
23999 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
24000 marked Preelaborate in the future.
24002 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
24003 these units Preelaborate.
24005 * s-exctab.adb: Update use of Except.Id.Full_Name.
24007 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
24008 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
24009 Set_Exc_Stack_Addr): Removed, no longer used.
24010 Remove reference to *Machine_State_Addr*, no longer needed.
24012 * s-stalib.ads: Mark this unit as Preelaborate[_05].
24013 (Exception_Data): Full_Name is now a System.Address so that this unit
24014 can be made Preelaborate.
24015 Clean up/simplify code thanks to Full_Name being a System.Address.
24016 Remove obsolete pragma Suppress (All_Checks), no longer needed.
24018 * s-taskin.ads, s-taskin.adb:
24019 Move with clauses outside Warnings Off now that dependent units are
24021 Make this unit Preelaborate.
24022 (Initialize): New proceduure, replace elaboration code and makes the
24023 set up of the tasking run-time cleaner.
24024 (Detect_Blocking): Now a function instead of a deferred boolean, to
24025 obey Preelaborate rules.
24027 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
24028 soft links, no longer used.
24030 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
24031 packages are suitable for this categorization.
24033 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
24034 since we compile run-time sources in Ada 2005 mode.
24035 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
24036 avoid having s-taprop*.adb depend on s-soflin and to avoid code
24038 Remove reference to *Machine_State_Addr*, no longer needed.
24040 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24042 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
24043 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
24044 Remove reference to System.Exceptions.
24046 * s-mastop-x86.adb: Removed, no longer used.
24048 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
24050 * a-excach.adb: Minor reformatting.
24052 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
24053 instead fix new warnings that were hidden by this change.
24054 (AAA, ZZZ): Removed, replaced by...
24055 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
24056 are used instead of constants, to help make Ada.Exception truly
24058 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
24059 Raise_Storage_Error): File is now a System.Address, to simplify code.
24060 (Elab code): Removed, no longer used.
24061 (Null_Occurrence): Remove Warnings Off and make this construct
24063 Remove code related to front-end zero cost exception handling, since
24064 it is no longer used.
24065 Remove -gnatL/-gnatZ switches.
24067 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
24068 Update use of Except.Msg.
24070 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
24071 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
24072 to front-end zero cost exception handling, since it is no longer used.
24073 Remove -gnatL/-gnatZ switches.
24075 * lib-writ.ads: Minor reformatting
24078 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
24080 * Make-lang.in: Remove references to s-except.ads
24082 * s-except.ads: Removed, no longer used.
24084 * s-mastop.ads, s-mastop.adb:
24085 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
24086 Remove reference to System.Exceptions.
24088 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
24089 switch-b.adb: Remove code related to front-end zero cost exception
24090 handling, since it is no longer used.
24091 Remove -gnatL/-gnatZ switches.
24093 2005-09-01 Robert Dewar <dewar@adacore.com>
24094 Gary Dismukes <dismukes@adacore.com>
24095 Javier Miranda <miranda@adacore.com>
24097 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
24098 type by valid test and generate warning.
24099 (Tagged_Membership): Generate call to the run-time
24100 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
24101 Change formal name Subtype_Mark to Result_Definition in several calls to
24102 Make_Function_Specification.
24103 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
24104 check for proper accessibility of the operand of a class-wide allocator.
24105 The check can be left out if checks are suppressed or if the expression
24106 has a specific tagged type whose level is known to be safe.
24108 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
24109 generates the run-time check associated with null-excluding entities.
24110 (Expand_N_Return_Statement): Add tests to determine if the accessibility
24111 check on the level of the return expression of a class-wide function
24112 can be elided. The check usually isn't needed if the expression has a
24113 specific type (unless it's a conversion or a formal parameter). Also
24114 add a test for whether accessibility checks are suppressed. Augment
24115 the comments to describe the conditions for performing the check.
24117 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
24118 Javier Miranda <miranda@adacore.com>
24119 Gary Dismukes <dismukes@adacore.com>
24120 Ed Schonberg <schonberg@adacore.com>
24122 * a-tags.adb (IW_Membership): Give support to
24123 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
24124 subprogram has been extended to look for the tag in the ancestors tag
24126 Update the structure of the GNAT Dispatch Table to reflect the
24127 additional two tables used in dispatching selects.
24128 Introduce appropriate array types and record components in
24129 Type_Specific_Data to reflect the two tables.
24130 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
24131 the TSD of a tag, indexed by position.
24132 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
24133 operation kind in the TSD of a tag, indexed by position.
24135 * a-tags.ads: Introduce an enumeration type to capture different
24136 primitive operation kinds. Define a constant reflecting the number of
24137 predefined primitive operations.
24138 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
24139 of an entry wrapper.
24140 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
24141 callable entity of a primitive operation.
24143 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
24144 primitive operations used in dispatching selects for limited
24145 interfaces, limited tagged, task and protected types what implement a
24147 (Freeze_Type): Generate the bodies of the primitive operations used in
24148 dispatching selects for limited tagged, task and protected types that
24149 implement a limited interface. Generate statements to populate the two
24150 auxiliary tables used for dispatching in select statements.
24151 (Freeze_Record_Type): Add call to initialize the dispatch table entries
24152 associated with predefined interface primitive operations.
24153 (Build_Dcheck_Function): Change Set_Subtype_Mark to
24154 Set_Result_Definition.
24155 (Build_Variant_Record_Equality): Change Subtype_Mark to
24157 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
24158 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
24159 (Build_Assignment): Simplify the code that adds the run-time-check.
24160 (Expand_N_Object_Declaration): Code cleanup.
24162 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
24163 entries when there is a protected type that implements a limited
24166 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
24167 common routines used in expansion of dispatching selects.
24168 (Add_Private_Declarations): Select the appropriate protection type when
24169 there is a protected type that implements a limited interface.
24170 (Build_Parameter_Block): Generate a wrapped parameter block.
24171 (Build_Protected_Subprogram_Body): Select the appropriate type for
24172 locking entries when there is a protected type that implements a
24174 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
24175 classified as entry wrappers.
24176 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
24177 asynchronous selects.
24178 (Expand_N_Conditional_Entry_Call): Add support for expansion of
24179 dispatching conditional selects.
24180 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
24181 protection when there is a protected type that implements limited
24183 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
24185 (Extract_Dispatching_Call): Extract the entity of the name of a
24186 dispatching call, the object parameter, actual parameters and
24187 corresponding formals.
24188 (Make_Initialize_Protection): Correct logic of protection initialization
24189 when there is a protected type that implements a limited interface.
24190 (Parameter_Block_Pack): Populate a wrapped parameter block with the
24191 values of actual parameters.
24192 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
24193 block and assign them to the original actual parameters.
24195 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
24196 (Build_Protected_Sub_Specification): Change the type and name of the
24197 last formal to account for the increased variety of protection modes.
24199 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
24200 entities. Used to save the value of the Is_Hidden attribute when the
24201 limited-view is installed.
24202 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
24203 the attribute of procedures classified as entry wrappers.
24204 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
24205 entity of a primitive wrapper.
24206 (Write_Entity_Flags): Output the name and value of the
24207 Is_Primitive_Wrapper attribute.
24208 (Write_Field27_Name): Output the name and entity of the field Wrapped_
24210 (Underlying_Type): If we have an incomplete entity that comes from
24211 the limited view then we return the Underlying_Type of its non-limited
24212 view if it is already available.
24213 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
24214 including operators.
24215 (Write_Field26_Name): Add entry for Overridden_Operation
24216 (Overridden_Operation): New attribute of functions and procedures.
24218 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
24219 predefined position in the dispatch table for the primitive operations
24220 used in dispatching selects.
24221 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
24222 predefined primitive operations and replace it with
24223 Default_Prim_Op_Count.
24224 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
24225 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
24226 the names of the generated primitive operations used in dispatching
24228 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
24229 case of abstract interface types. They will be inherit by the objects
24230 implementing the interface.
24231 (Make_DT): There is no need to inherit the dispatch table of the
24232 ancestor interface for the elaboration of abstract interface types.
24233 The dispatch table will be inherited by the object implementing the
24235 (Copy_Secondary_DTs): Add documentation.
24236 (Validate_Position): Improve this static check in case of
24237 aliased subprograms because aliased subprograms must have
24239 (Init_Predefined_Interface_Primitives): New subprogram that initializes
24240 the entries associated with predefined primitives of all the secondary
24242 (Build_Anonymous_Access_Type): Removed.
24243 (Expand_Interface_Actuals): With the previous cleanup there is no need
24244 to build an anonymous access type. This allows further cleanup in the
24245 code generated by the expander.
24246 (Expand_Interface_Conversion): If the actual is an access type then
24247 build an internal function to handle the displacement. If the actual
24248 is null this function returns null because no displacement is
24249 required; otherwise performs a type conversion that will be
24250 expanded in the code that returns the value of the displaced actual.
24251 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
24252 conversions that have no effect in the generated code because no
24253 displacement is required. Code cleanup; use local variables to
24254 avoid repeated calls to the subprogram directly_designated_type().
24256 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
24257 Classify the primitive operations used in dispatching selects as
24259 (Implements_Limited_Interface): Determine whether some type either
24260 directly implements a limited interface or extends a type that
24261 implements a limited interface.
24262 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
24263 (Expand_Subtype_From_Expr): Do not build actual subtype if the
24264 expression is limited.
24265 (Find_Interface_Tag): Add code to handle class-wide types and
24266 entities from the limited-view.
24268 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
24269 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
24270 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
24271 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
24274 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
24275 of procedure name or prefix that appears as a trigger in a triggering
24278 * uintp.ads: Introduce constants Uint_11 and Uint_13.
24280 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24282 * s-tataat.adb, a-tasatt.adb:
24283 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
24285 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
24286 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
24287 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
24290 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24291 Jose Ruiz <ruiz@adacore.com>
24293 * s-taprop-vxworks.adb:
24294 Move with clauses outside Warnings Off now that dependent units are
24296 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
24297 initialization of this unit.
24298 (Specific): Add new procedures Initialize and Delete so that this
24299 package can be used for VxWorks 5.x and 6.x
24300 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
24301 differences between VxWorks 5.x and 6.x
24302 Minor reformatting.
24303 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
24305 Use only Preelaborate-compatible constructs.
24307 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
24308 Primitives.Operations.
24309 (Delete, Initialize): New procedures.
24311 * s-osinte-vxworks.adb: Body used to handle differences between
24312 VxWorks 5.x and 6.x
24313 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
24315 * s-osinte-vxworks.ads: Minor reformatting.
24316 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
24317 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
24319 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
24320 between Vxworks 5 and 6.
24321 (taskLock, taskUnlock): Removeed, no longer used.
24323 * adaint.c: The wait.h header is not located in the sys directory on
24324 VxWorks when using RTPs.
24325 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
24327 (__gnat_dup): dup is available on Vxworks when using RTPs.
24328 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
24330 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
24332 * expect.c: The wait.h header is not located in the sys directory on
24333 VxWorks when using RTPs.
24335 2005-09-01 Thomas Quinot <quinot@adacore.com>
24337 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
24339 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
24341 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
24342 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
24343 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
24344 g-soccon-freebsd.ads: Add new constants:
24346 SO_RCVTIMEO/SO_SNDTIMEO
24350 Move all target-specific file inclusions and macro definitions to
24351 gsocket.h, in order to ensure that any C code in socket.c will see a
24352 set of constants that is consistent with the contents of g-soccon.ads.
24354 * gsocket.h: Code imported from gen-soccon.c:
24355 Move all target-specific file inclusions and macro definitions to
24356 gsocket.h, in order to ensure that any C code in socket.c will see a set
24357 of constants that is consistent with the contents of g-soccon.ads.
24358 This change also makes gen-soccon self-contained (removing dependencies
24359 upon GCC internal headers).
24361 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
24363 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
24365 * socket.c: Minor reformatting.
24367 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24368 Thomas Quinot <quinot@adacore.com>
24370 * fname-sf.adb, mlib-tgt.ads,
24371 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
24372 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
24373 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
24374 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
24375 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
24376 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
24377 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
24378 makegpr.adb: Remove redundant use_clauses.
24380 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24382 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
24383 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
24384 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
24385 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
24386 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
24387 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
24388 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
24389 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
24390 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24391 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
24392 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
24393 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
24394 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
24395 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
24396 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
24397 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
24398 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24399 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
24400 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
24401 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
24402 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
24403 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
24404 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
24405 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
24406 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
24407 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
24408 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
24409 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
24410 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
24411 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
24412 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
24413 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
24414 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
24415 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
24416 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
24417 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
24418 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
24419 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
24420 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
24421 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
24422 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
24423 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
24424 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
24425 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
24426 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
24427 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
24428 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
24429 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
24430 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
24431 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
24432 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
24433 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
24434 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
24435 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
24436 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
24437 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
24438 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
24439 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
24440 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
24441 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
24442 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
24443 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
24444 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
24445 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
24446 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
24447 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
24448 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
24449 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
24450 and always use the no parameter form for consistency.
24452 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
24454 2005-09-01 Robert Dewar <dewar@adacore.com>
24456 * binde.adb: Minor reformatting
24457 (Find_Elab_Order): Output warning if -p used with static elab order
24459 2005-09-01 Robert Dewar <dewar@adacore.com>
24461 * checks.adb (Check_Needed): New procedure, deals with removing checks
24462 based on analysis of short-circuited forms. Also generates warnings for
24463 improper use of non-short-circuited forms.
24466 2005-09-01 Robert Dewar <dewar@adacore.com>
24468 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
24471 2005-09-01 Robert Dewar <dewar@adacore.com>
24473 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
24475 Implement new insertion char < (conditional warning)
24476 * errutil.adb, erroutc.adb: Implement new insertion char <
24477 (conditional warning).
24478 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
24479 (Error_Msg_Warn): New variable for < insertion char.
24480 * prj-nmsc.adb: Implement new errout insertion char < (conditional
24482 (Check_For_Source): Change value of Source_Id only after the current
24483 source has been dealt with.
24485 2005-09-01 Robert Dewar <dewar@adacore.com>
24486 Doug Rupp <rupp@adacore.com>
24488 * exp_attr.adb: Handle vax fpt for 'Valid attribute
24489 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
24490 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
24491 (Valid_D, Valid_F, Valid_G): New functions
24493 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24494 Hristian Kirtchev <kirtchev@adacore.com>
24495 Javier Miranda <miranda@adacore.com>
24497 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
24498 from object notation, the original node is unanalyzed and carries no
24499 semantic information, so that accessiblity checks must be performed on
24500 the type of the actual itself.
24501 (Expand_N_Subprogram_Declaration): Change last actual parameter for
24502 compatibility with Build_Protected_Sub_Specification.
24503 (Check_Overriding_Inherited_Interfaces): Add suport to handle
24504 overloaded primitives.
24505 (Register_Interface_DT_Entry): Use the new name of the formal
24506 the the calls to Expand_Interface_Thunk
24508 * exp_dbug.ads: Augment comments on encoding of protected types to
24509 include the generation of dispatching subprograms when the type
24510 implements at least one interface.
24512 * lib.ads: Extend information in Load_Stack to include whether a given
24513 load comes from a Limited_With_Clause.
24515 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
24516 whether a potential circularity is harmless, because it includes units
24517 loaded through a limited_with clause. Extends previous treatment which
24518 did not handle properly arbitrary combinations of limited and
24519 non-limited clauses.
24521 2005-09-01 Nicolas Setton <setton@adacore.com>
24523 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
24524 to be encoded as typ___XBLU_lowerbound__upperbound instead of
24525 typ___XB_lowerbound__upperbound.
24527 2005-09-01 Thomas Quinot <quinot@adacore.com>
24529 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
24530 dummy access formal for RACW/RAS TypeCode TSS.
24531 (Build_TypeCode_Call): Do not generate dummy null access actual for
24532 calls to the TypeCode TSS.
24534 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24536 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
24537 fully qualified name, to distinguish instances with the same local name.
24539 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
24542 2005-09-01 Robert Dewar <dewar@adacore.com>
24544 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
24547 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
24549 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
24550 (Free): New deallocation procedure for filter elements
24551 (Close): Deallocate any existing filter for the concerned connection
24553 2005-09-01 Laurent Pautet <pautet@adacore.com>
24555 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
24556 position set is provided, we compute one in order to reduce the maximum
24557 length of the keys. This computation first selects a character
24558 position between 1 and the minimum length of the keys in order to
24559 avoid reducing one of the keys to an empty string.
24560 (Initialize, Compute): When the ratio V to K is too low, the algorithm
24561 does not converge. The initialization procedure now comes with a
24562 maximum number of iterations such that when exceeded, an exception is
24563 raised in Compute. The user can initialize this ratio to another value
24565 Reformating and updated headers.
24567 2005-09-01 Javier Miranda <miranda@adacore.com>
24569 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
24570 that given an entity T creates and returns an Itype that duplicates the
24571 contents of T. The returned Itype has the null-exclusion
24572 attribute set to True, and its Etype attribute references T
24573 to keep the association between the two entities.
24574 Update copyright notice
24576 * sem_aggr.adb (Check_Can_Never_Be_Null,
24577 Aggregate_Constraint_Checks, Resolve_Aggregate,
24578 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
24580 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
24582 2005-09-01 Gary Dismukes <dismukes@adacore.com>
24583 Robert Dewar <dewar@adacore.com>
24584 Hristian Kirtchev <kirtchev@adacore.com>
24586 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
24589 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
24591 Call Set_Result_Definition instead of Set_Subtype_Mark.
24592 (P_Subprogram_Specification): Add parsing of anonymous access result
24593 plus null exclusions. Call Set_Result_Definition instead of
24596 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24597 (P_Access_Type_Definition): Add parsing for an anonymous access result
24598 subtype, plus parsing for null exclusions. Call Set_Result_Definition
24599 instead of Set_Subtype_Mark.
24601 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24602 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
24603 (Result_Definition): New function for N_Function_Specifications.
24604 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
24605 N_Function_Specification.
24606 (Set_Null_Exclusion_Present): Allow this flag for
24607 N_Function_Specification.
24608 (Set_Result_Definition): New procedure for N_Function_Specifications.
24609 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
24610 and N_Function_Specification.
24612 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
24613 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
24614 Add support for LIMITED NEW for Ada 2005 AI-419
24615 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
24616 syntax for anonymous access results.
24617 Replace Subtype_Mark field by Result_Definition in
24618 N_Function_Specification and N_Access_Definition specs.
24619 Add Null_Exclusion_Present to spec of N_Function_Specification.
24620 (Result_Definition): New function for N_Function_Specification and
24621 N_Access_Function_Definition.
24622 (Set_Result_Definition): New procedure for N_Function_Specification and
24623 N_Access_Function_Definition.
24625 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
24626 Result_Definition for cases of N_Access_Function_Definition and
24627 N_Function_Specification.
24628 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
24630 2005-09-01 Vincent Celier <celier@adacore.com>
24632 * lib-writ.adb: Update Copyright notice
24633 (Write_With_Lines): On platforms where file names are case-insensitive,
24634 record the file names in lower case.
24635 (Write_ALI): For D lines, on platforms where file names are
24636 case-insensitive, record the file names in lower case.
24638 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24639 Emmanuel Briot <briot@adacore.com>
24641 * lib-xref.adb (Output_Overridden_Op): Display information on
24642 overridden operation.
24644 * lib-xref.ads: Add documentation on overridden operations.
24646 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
24649 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
24650 overriding entity information.
24652 2005-09-01 Vincent Celier <celier@adacore.com>
24654 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
24655 including those that are inherited.
24657 2005-09-01 Robert Dewar <dewar@adacore.com>
24659 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
24661 * par-prag.adb: Implement new pragma Debug_Policy
24663 * sem_prag.adb Implement new pragma Debug_Policy
24664 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
24665 Component_Size attribute specification. Give warning for ignored pragma
24668 * snames.h, snames.ads, snames.adb: Introduce entries in
24669 Preset_Names for Name_Disp_Asynchronous_Select,
24670 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
24671 Name_Disp_Timed_Select.
24672 New pragma Debug_Policy
24674 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24676 Switch -gnata also sets Debug_Pragmas_Enabled
24678 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
24679 handle an explicit -gnata when compiling predefined files.
24681 2005-09-01 Vincent Celier <celier@adacore.com>
24683 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
24684 directories of projects that have no Ada sources.
24686 2005-09-01 Robert Dewar <dewar@adacore.com>
24688 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24689 (makes a difference for wide characters)
24691 * widechar.adb, widechar.ads:
24692 Add Wide_Char_Byte_Count feature to count chars vs bytes
24694 2005-09-01 Thomas Quinot <quinot@adacore.com>
24695 Ed Schonberg <schonberg@adacore.com>
24696 Robert Dewar <dewar@adacore.com>
24698 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24699 'Address attribute reference with an overloaded prefix, use the
24700 location of the prefix (not the location of the attribute reference) as
24701 the error location.
24702 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24703 a function renaming thereof, is a valid prefix for 'Size (where it is
24704 intepreted as a function call).
24705 (Statically_Denotes_Entity): New predicate to determine whether the
24706 prefix of an array attribute can be considered static.
24709 (Eval_Attr): Fix failure to evaluate Component_Size for
24710 unconstrained arrays (resulted in wrong value in packed case, since
24711 back end cannot handle this case)
24713 2005-09-01 Robert Dewar <dewar@adacore.com>
24715 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24716 error msgs for most common cases.
24717 Use new errout insertion char < (conditional warning)
24719 2005-09-01 Javier Miranda <miranda@adacore.com>
24720 Ed Schonberg <schonberg@adacore.com>
24722 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24723 become local to the whole package.
24724 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24725 the package was already analyzed the new algorithm "replaces" the
24726 real entities by the shadow ones. This is required to ensure that
24727 the order of these entities in the homonym chains does not change;
24728 otherwise we can have undefined references at linking time because
24729 in case of conflicts the external name of the entities will have
24730 a suffix that depends on the order of the entities in the chain.
24731 (Remove_Limited_With_Clause): Complementary code that completes the
24732 new algorithm and replaces the shadow entities by the real ones.
24733 (Install_Limited_Withed_Unit): When unchaining entities before the
24734 installation of the shadow entities, only regular entities of the
24735 public part must be taken into account. This is required to
24736 keep this routine in synch with the work done by Remove_Limited_
24738 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24739 even if unit is analyzed, because the analysis of the unit is
24740 idempotent in any case, and the limited view of the unit may have to
24741 be installed for proper visibility.
24742 (Expand_Limited_With_Clause): Even if the unit in the implicit
24743 with_clause has been analyzed already, a limited view of the package
24744 must be built for the current context, if it does not exist yet.
24746 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24747 Javier Miranda <miranda@adacore.com>
24748 Gary Dismukes <dismukes@adacore.com>
24750 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24751 defining entity for the instance body, make a new defining identifier
24752 rather than copying the entity of the spec, to prevent accidental
24753 sharing of the entity list.
24754 (Check_Private_View): When exchanging views of private types, build the
24755 list of exchanged views as a stack, to ensure that on exit the exchanges
24756 are undone in the proper order.
24757 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24758 Restore the compilation environment in case of instantiation_error.
24759 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24760 for an anonymous access result.
24761 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24762 (Formal_Entity): Handle properly the case of a formal package that
24763 denotes a generic package renaming.
24765 2005-09-01 Thomas Quinot <quinot@adacore.com>
24767 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24768 clause if the array aggregate is surrounded by parentheses.
24770 2005-09-01 Cyrille Comar <comar@adacore.com>
24771 Gary Dismukes <dismukes@adacore.com>
24772 Ed Schonberg <schonberg@adacore.com>
24773 Javier Miranda <miranda@adacore.com>
24775 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24777 to check if a type is Constrained in cases related to code generation
24778 (rather than semantic checking) since otherwise we do not generate
24779 similar code for mutable private types depending if their
24780 discriminants are visible or not.
24781 (Check_Abstract_Overriding): Do not complain about failure to override
24782 the primitive operations used in dispatching selects since they will
24783 always be overriden at the freeze point of the type.
24784 (Access_Definition): Separate out handling for resetting the scope
24785 of an anonymous access function result type. Retrieve the scope
24786 of the associated function rather than using Current_Scope, which
24787 does not have a consistent value (depends on whether we're in the
24788 middle of analyzing formal parameters). Add ??? comment about
24789 finding a cleaner way to handle the special cases of scope setting.
24790 (Process_Incomplete_Dependents): A protected operation is never a
24791 dispatching operation (only its wrapper may be).
24792 (Build_Derived_Record_Type): In case of tagged private types that
24793 implement interfaces add derivation of predefined primitive
24795 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24796 by two parameters that are used in case of derivation from abstract
24797 interface types: No_Predefined_Prims is used to avoid the derivation
24798 of predefined primitives from the interface, and Predefined
24799 Prims_Only is used to complete the derivation predefined primitives
24800 in case of private tagged types implementing interfaces.
24801 Fix typo in comments
24802 (Find_Interface_In_Descendant): Protect the frontend against
24803 wrong code with large circularity chains.
24804 (Is_Private_Overriding): Add support for entities overriding interface
24805 subprograms. The test failed because Entities associated with overriden
24806 interface subprograms are always marked as hidden (and used to build
24807 the secondary dispatch table); in this case the overriden entity is
24808 available through the field abstract_interface_alias (cf. override_
24809 dispatching_operation)
24810 (Access_Definition): Set the scope of the type to Current_Scope for the
24811 case of a function with an anonymous access result type.
24812 (Access_Subprogram_Declaration): Handle creation of the type entity for
24813 an access-to-function type with an anonymous access result.
24814 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24815 in handling for N_Access_Function_Definition.
24816 (Analyze_Subtype_Declaration): Modify the text of error message.
24817 (Derived_Type_Declaration): Modify the text of error message.
24818 (Process_Subtype): Modify the text of error message plus cleanup
24819 of one redundant error message.
24820 (Analyze_Component_Declaration): Code cleanup.
24821 (Analyze_Object_Declaration): Code cleanup.
24822 (Analyze_Subtype_Declaration): Propagate the null-exclusion
24823 attribute in case of access types. Code cleanup.
24824 (Array_Type_Declaration): Code cleanup.
24825 (Process_Discriminants): Create the new null-excluding itype
24826 if required. Code cleanup.
24827 (Process_Subtype): Create the new null-excluding itype if
24828 required. Code cleanup.
24829 (Build_Derived_Record_Type): Code cleanup to avoid calling
24830 twice the subprogram derive_subprograms in case of private
24831 types that implement interfaces. In this particular case the
24832 subprogram Complete_Subprograms_Derivation already does the
24833 job associated with the second call.
24835 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24836 conversion to the full view when generating an operation for a
24837 discriminant whose type may currently be private.
24839 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24840 Javier Miranda <miranda@adacore.com>
24842 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24843 V (Obj.F), the rewriting does not involve the indexed component, but
24844 only the selected component itself.
24845 Do not apply the transformation if the analyzed node is an actual of a
24846 call to another subprogram.
24847 (Complete_Object_Operation): Retain the entity of the
24848 dispatching operation in the selector of the rewritten node. The
24849 entity will be used in the expansion of dispatching selects.
24850 (Analyze_One_Call): Improve location of the error message associated
24852 (Analyze_Selected_Component): No need to resolve prefix when it is a
24853 function call, resolution is done when parent node is resolved, as
24855 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24856 when attempting to resolve a call transformed from its object notation.
24857 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24858 of the argument list for each interpretation of the operation.
24859 (Try_Object_Operation): The designated type of an access parameter may
24860 be an incomplete type obtained through a limited_with clause, in which
24861 case the primitive operations of the type are retrieved from its full
24863 (Analyze_Call): If this is an indirect call, and the return type of the
24864 access_to_subprogram is incomplete, use its full view if available.
24866 2005-09-01 Javier Miranda <miranda@adacore.com>
24867 Gary Dismukes <dismukes@adacore.com>
24869 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24870 access types the null-exclusion and access-to-constant attributes must
24872 (Analyze_Return_Statement): When the result type is an anonymous access
24873 type, apply a conversion of the return expression to the access type
24874 to ensure that appropriate accessibility checks are performed.
24875 (Analyze_Return_Type): For the case of an anonymous access result type,
24876 generate the Itype and set Is_Local_Anonymous_Access on the type.
24877 Add ??? placeholder for check to disallow returning a limited object
24878 in Ada 2005 unless it's an aggregate or a result of a function call.
24879 Change calls from Subtype_Mark to Result_Definition.
24880 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24881 Result_Definition in call to Make_Function_Specification.
24882 (Build_Body_To_Inline): Change Set_Subtype_Mark to
24883 Set_Result_Definition.
24884 (Make_Inequality_Operator): Change formal Subtype_Mark to
24885 Result_Definition in call to Make_Function_Specification.
24886 (Process_Formals): Create the new null-excluding itype if required.
24887 (New_Overloaded_Entity): For an entity overriding an interface primitive
24888 check if the entity also covers other abstract subprograms in the same
24889 scope. This is required to handle the general case, that is, overriding
24890 other interface primitives and overriding abstract subprograms inherited
24891 from some abstract ancestor type.
24892 (New_Overloaded_Entity): For an overriding entity that comes from
24893 source, note the operation that it overrides.
24894 (Check_Conformance, Type_Conformant): Addition of one new formal
24895 to skip controlling formals in the analysis. This is used to
24896 handle overloading of abstract interfaces.
24897 (Base_Types_Match): Add missing case for types imported from
24898 limited-with clauses
24899 (New_Overloaded_Entity): Add barrier to protect the use of
24900 the "alias" attribute.
24902 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24904 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24905 verify that the procedure and the entry are mode conformant.
24906 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24907 as a different operator, which is often a cut-and-paste error.
24909 2005-09-01 Javier Miranda <miranda@adacore.com>
24910 Ed Schonberg <schonberg@adacore.com>
24912 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24913 used in controlling parameters exclude null because it is necessary to
24914 read the tag to dispatch, and null has no tag.
24915 (Override_Dispatching_Operation): If the previous operation is inherited
24916 from an interface, it becomes hidden and does not participate in later
24919 2005-09-01 Javier Miranda <miranda@adacore.com>
24920 Ed Schonberg <schonberg@adacore.com>
24921 Gary Dismukes <dismukes@adacore.com>
24923 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24924 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24925 the expander will generate the corresponding run-time check to evaluate
24927 (Resolve_Call): Check for legal type of procedure name or prefix that
24928 appears as a trigger in a triggering alternative.
24929 (Valid_Conversion): If expression is ambiguous and the context involves
24930 an extension of System, remove System.Address interpretations.
24931 (Resolve_Qualified_Expression): Reject the case of a specific-type
24932 qualification applied to a class-wide argument. Enhance comment
24933 to explain checking of Original_Node.
24934 (Resolve_Type_Conversion): The location of the error message was not
24935 general enough to handle the general case and hence it has been removed.
24936 In addition, this patch improves the text of the message.
24937 (Resolve_Type_Conversion): Add missing support for access to interface
24939 (Resolve_Type_Conversion): If the target is a class-wide interface type,
24940 do not expand if the expression is the actual in a call, because proper
24941 expansion will take place when the call itself is expanded.
24942 (Resolve_Allocator): If the context is an unchecked conversion, the
24943 allocator inherits its storage pool, if any, from the target type of
24946 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24947 Javier Miranda <miranda@adacore.com>
24949 * sem_type.adb (Add_One_Interp): If a candidate operation is an
24950 inherited interface operation that has an implementation, use the
24951 implementation to avoid spurious ambiguities.
24952 (Interface_Present_In_Ancestor): In case of concurrent types we can't
24953 use the Corresponding_Record_Typ attribute to look for the interface
24954 because it is set by the expander (and hence it is not always
24955 available). For this reason we traverse the list of interfaces
24956 (available in the parent of the concurrent type).
24957 (Interface_Present_In_Ancestor): Handle entities from the limited view
24959 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24961 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24962 from the list of required components.
24963 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24964 primitive procedure of a limited interface with a controlling first
24966 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24968 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24969 capture if it is generated in the second operand of a short-circuit
24971 Do not capture values for variables with address clauses.
24972 (Is_Object_Reference): Treat a function call as an object reference only
24973 if its type is not Standard_Void_Type.
24975 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24977 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24978 to a variable that is statically known to be constant.
24980 2005-09-01 Geert Bosch <bosch@adacore.com>
24981 Robert Dewar <dewar@adacore.com>
24983 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24984 (VAXGF_Safe_First): Idem.
24986 2005-09-01 Robert Dewar <dewar@adacore.com>
24987 Arnaud Charlet <charlet@adacore.com>
24989 * g-dirope.ads: Minor reformatting
24990 Document that bounds of result of Base_Name match the input index
24992 Add documentation on environment variable syntax for Expand_Path
24994 * gnat_ugn.texi: Update documentation to include mention of -m switches
24995 Document new treatment of wide characters in max line length
24997 Remove -gnatL/-gnatZ switches, no longer used.
24998 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
25001 * gnat_rm.texi: Add doc for two argument form of pragma
25002 Float_Representation.
25003 Add documentation for pragma No_Strict_Aliasing
25004 Add note that explicit component clause overrides pragma Pack.
25005 Add documentation of pragma Debug_Policy
25007 2005-09-01 Matthew Heaney <heaney@adacore.com>
25009 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
25010 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
25011 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
25012 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
25013 draft (Draft 13, August 2005) of Ada Amendment 1.
25015 2005-09-01 Arnaud Charlet <charlet@adacore.com>
25017 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
25018 Note that the platform-specific version of g-soccon.ads for VMS is now
25019 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
25020 really is a package spec).
25021 Replace s-taspri-linux.ads by s-taspri-posix.ads
25022 Remove references to s-mastop-x86.adb
25024 * system-vxworks-xscale.ads: Removed, no longer used.
25025 * s-vxwork-xscale.ads: Removed, no longer used.
25027 2005-09-01 Robert Dewar <dewar@adacore.com>
25029 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
25030 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
25031 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
25032 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
25033 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
25034 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
25035 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
25036 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
25037 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
25038 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
25039 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
25040 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
25041 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
25042 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
25043 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
25044 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
25045 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
25046 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
25047 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
25048 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
25049 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
25051 2005-08-29 Arnaud Charlet <charlet@adacore.com>
25055 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
25057 2005-08-29 Arnaud Charlet <charlet@adacore.com>
25058 Doug Rupp <rupp@adacore.com>
25060 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
25062 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
25063 this code in the GNAT run-time.
25065 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
25068 * init.c (__gnat_error_handler [many]): Mark "msg" as const
25069 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
25071 (__gnat_inside_elab_final_code): Moved here from
25072 Standard_Library and only defined for the compiler.
25073 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
25074 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
25075 using RTPs because directly vectored Interrupt routines are not
25076 supported on this configuration.
25077 (getpid): Do not redefine this function on VxWorks when using RTPs
25078 because this primitive is well supported by the RTP libraries.
25079 (copy_msg): Correct the code that checks for buffer overflow.
25080 Discovered during code reading.
25082 2005-08-29 Olivier Hainque <hainque@adacore.com>
25084 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
25085 a library level mutable variable with an initializer, tell
25086 build_allocator to ignore the initializer's size. It may not be large
25087 enough for all the values that might be assigned to the variable later
25090 2005-08-29 Arnaud Charlet <charlet@adacore.com>
25091 Eric Botcazou <ebotcazou@adacore.com>
25093 * trans.c: Protect < in error msg with quote
25094 Replace GCC_ZCX by Back_End_Exceptions.
25095 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
25096 has been sufficiently aligned in the record.
25098 2005-08-15 James E. Wilson <wilson@specifix.com>
25100 * system-linux-alpha.ads: Change ia64 to alpha.
25102 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
25104 * decl.c, utils.c: Fix comment typos.
25106 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
25108 * decl.c, init.c, initialize.c: Fix comment typos.
25110 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
25112 Make CONSTRUCTOR use VEC to store initializers.
25113 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
25115 * trans.c (extract_values): Likewise.
25116 * utils.c (convert, remove_conversions): Likewise.
25117 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
25118 gnat_build_constructor): Likewise.
25120 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
25122 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
25124 (compare_field_bitpos): Likewise.
25126 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
25128 * utils.c (create_var_decl): Only set DECL_COMMON on
25129 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
25130 VAR_OR_FUNCTION_DECL_P.
25132 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
25134 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
25137 2005-07-07 Pascal Obry <obry@adacore.com>
25139 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
25140 returned type on Windows.
25142 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
25145 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
25146 exception in this case.
25147 Simplify the code as "Image (Image'Range)" = "Image".
25149 2005-07-07 Vincent Celier <celier@adacore.com>
25151 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
25152 the destructor/constructor attributes for <lib>final/<lib>init.
25154 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
25156 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
25158 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
25159 type if the parameter is not passed by copy but reference by default.
25161 2005-07-07 Javier Miranda <miranda@adacore.com>
25163 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
25164 Reimplementation of the support for abstract interface types in order
25165 to leave the code more clear and easy to maintain.
25167 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
25168 abstract interface types in order to leave the code clearer and easier
25171 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
25172 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
25173 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
25174 appropriate entry of the secondary dispatch table.
25175 (Make_DT): Add code to inherit the secondary dispatch tables of
25178 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
25179 implementing both functionalities by means of a common routine, each
25180 routine has its own code.
25182 2005-07-07 Javier Miranda <miranda@adacore.com>
25184 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
25186 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
25189 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
25192 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
25193 use of tag incomplete types.
25195 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
25196 give support to tagged incomplete types.
25198 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
25199 expression is a discriminant reference and its type is private, as can
25200 happen within a stream operation for a mutable record, use the full
25201 view of the type to resolve the case alternatives.
25202 (Analyze_Assignment): Check wrong dereference of incomplete types.
25204 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
25207 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
25210 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
25211 N_Incomplete_Type_Declaration nodes.
25213 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
25214 Tag_Present to give support to tagged incomplete types:
25216 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
25219 2005-07-07 Olivier Hainque <hainque@adacore.com>
25222 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
25223 definitions for the Unwind wrappers in the compiler case.
25225 2005-07-07 Ed Schonberg <schonberg@adacore.com>
25226 Javier Miranda <miranda@adacore.com>
25228 * par-load.adb (Load): If a child unit is loaded through a limited_with
25229 clause, each parent must be loaded as a limited unit as well.
25231 * sem_ch10.adb (Previous_Withed_Unit): Better name for
25232 Check_Withed_Unit. Return true if there is a previous with_clause for
25233 this unit, whether limited or not.
25234 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
25236 (Is_Visible_Through_Renamings): New local subprogram of install_limited
25237 _withed_unit that checks if some package installed through normal with
25238 clauses has a renaming declaration of package whose limited-view is
25239 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
25240 of the current Draft document for Ada 2005.
25241 (Analyze_Context): Complete the list of compilation units that
25242 are allowed to contain limited-with clauses. It also contains
25243 checks that were previously done by Install_Limited_Context_Clauses.
25244 This makes the code more clear and easy to maintain.
25245 (Expand_Limited_With_Clause) It is now a local subprogram of
25246 Install_Limited_Context_Clauses, and contains the code that adds
25247 the implicit limited-with clauses for parents of child units.
25248 This functionality was prevously done by Analyze_Context.
25250 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
25253 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
25254 been erroneously named in a limited-with clause of its own context.
25255 In this case the error has been previously notified by Analyze_Context.
25257 2005-07-07 Ed Schonberg <schonberg@adacore.com>
25259 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
25260 generic package that contains local declarations with the same name.
25261 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
25263 2005-07-07 Bernard Banner <banner@adacore.com>
25265 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
25266 ia64 platform only on platforms that you the GCC unwind library
25267 rather than the system unwind library.
25269 2005-07-07 Thomas Quinot <quinot@adacore.com>
25271 * expect.c: Minor reformatting
25273 2005-07-07 Sergey Rybin <rybin@adacore.com>
25275 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
25278 * gnat_ugn.texi: Add description for new gnatpp option
25281 2005-07-04 Thomas Quinot <quinot@adacore.com>
25283 * g-expect-vms.adb, g-expect.ads, g-expect.adb
25284 (Get_Command_Output): New subprogram to launch a process and get its
25285 standard output as a string.
25287 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25288 Olivier Hainque <hainque@adacore.com>
25290 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
25291 fetch a code-range descriptor associated with the machine state. On
25292 failure set the machine state's PC to 0; on success, pass the
25293 descriptor to exc_virtual_unwind.
25295 * init.c (Tru64 section): New function __gnat_set_code_loc.
25297 2005-07-04 Vincent Celier <celier@adacore.com>
25299 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25300 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25301 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
25302 Remove all auto-initialization code, as this is now done through the
25303 constructor mechanism.
25305 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
25306 __gnat_sals_init_using_constructors): New functions.
25308 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
25309 Linker_Constructor and Linker_Destructor when switch -a is used.
25311 * bindusg.adb: Add line for new switch -a
25313 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
25314 (Gnatbind): When switch -a is used, check if it is allowed
25316 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
25318 2005-07-04 Joel Brobecker <brobecker@adacore.com>
25320 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
25321 This prevents us from hitting a limitation during the debug info
25322 generation when using stabs.
25323 (Prims_Ptr): Likewise.
25325 2005-07-04 Gary Dismukes <dismukes@adacore.com>
25326 Ed Schonberg <schonberg@adacore.com>
25327 Javier Miranda <miranda@adacore.com>
25329 * checks.adb (Null_Exclusion_Static_Checks): In the case of
25330 N_Object_Declaration, only perform the checks if the Object_Definition
25331 is not an Access_Definition.
25333 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
25334 where the parent of an the access definition is an N_Object_Declaration
25335 when determining the Associated_Node_For_Itype and scope of an
25336 anonymous access-to-subprogram type.
25338 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
25339 Corresponding_Spec on the body created for a null procedure. Add ???
25340 comment. Remove New_Copy_Tree call on body argument to
25341 Set_Body_To_Inline.
25343 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
25344 discriminants, use the type of the actual as well, because the
25345 discriminants may be read by the called subprogram.
25347 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
25348 access type we do not need to handle non-limited views.
25349 (Build_Derived_Record_Type): Additional check to check that in case of
25350 private types, interfaces are only allowed in private extensions.
25352 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25354 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
25355 <Pragma_Linker_Destructor>: Likewise.
25357 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
25358 Pragma_Linker_Destructor.
25360 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
25361 ATTR_LINK_DESTRUCTOR.
25362 (static_ctors, static_dtors): New variables.
25364 * misc.c (gnat_expand_body): Output current function as constructor
25365 and destructor if requested.
25367 * par-prag.adb: Add processing for pragma Linker_Constructor and
25370 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
25371 extracted from Check_Interrupt_Or_Attach_Handler.
25372 (Check_Interrupt_Or_Attach_Handler): Invoke it.
25373 Implement pragma Linker_Constructor and Linker_Destructor with the
25374 help of Find_Unique_Parameterless_Procedure.
25375 Replace Name_Alias with Name_Target for pragma Linker_Alias.
25377 * snames.h, snames.ads, snames.adb:
25378 Add Name_Linker_Constructor and Name_Linker_Destructor.
25379 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
25380 * snames.adb: Remove Name_Alias.
25382 * trans.c: Include cgraph.h.
25383 (build_global_cdtor): New function.
25384 (Compilation_Unit_to_gnu): Build global constructor and destructor if
25386 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
25388 (addressable_p) <COMPONENT_REF>: Unconditionally test
25389 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
25391 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
25392 variable if it is external.
25394 (static_ctors, static_dtors): New global variables.
25395 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
25396 <ATTR_LINK_DESTRUCTOR>: Likewise.
25397 (end_subprog_body): Chain function as constructor and destructor
25400 * exp_util.adb (Force_Evaluation): Unconditionally invoke
25401 Remove_Side_Effects with Variable_Ref set to true.
25402 (Remove_Side_Effects): Handle scalar types first. Use a renaming
25403 for non-scalar types even if Variable_Ref is true and for class-wide
25406 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25408 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
25409 to prevent spurious warnings.
25411 2005-07-04 Thomas Quinot <quinot@adacore.com>
25413 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
25414 Itypes. Itypes are really unexpected there.
25415 (Build_TypeCode_Function): Generalise special processing for Itypes to
25416 handle the case of numeric implicit base types as well as enumerated
25419 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25421 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
25422 controlled, indicate the expected type of the dereference that is
25423 created for the call to Deep_Finalize, to prevent spurious errors when
25424 the designated type is private and completed with a derivation from
25425 another private type.
25427 2005-07-04 Vincent Celier <celier@adacore.com>
25429 * make.adb (Change_To_Object_Directory): When unable to change the
25430 current dir to the object directory, output the full path of the
25433 2005-07-04 Matthew Gingell <gingell@adacore.com>
25435 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
25437 * indepsw-linux.adb: Replace by...
25439 * indepsw-gnu.adb: ...this new file
25441 2005-07-04 Vincent Celier <celier@adacore.com>
25443 * mlib-prj.adb (Auto_Initialize): New constant String
25444 (SALs_Use_Constructors): New Boolean function
25445 (Build_Library): Call gnatbind with Auto_Initialize switch when
25446 SALs_Use_Constructors returns True.
25448 * mlib-tgt.ads: Minor reformatting
25450 * mlib-utl.ads: Minor reformatting
25452 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
25454 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25456 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
25457 single protected declarations can have an interface list.
25458 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
25459 with seriously malformed entry declarations, and lead to compilation
25460 abandoned messages.
25462 2005-07-04 Javier Miranda <miranda@adacore.com>
25464 * par-load.adb: Load the context items in two rounds.
25466 2005-07-04 Robert Dewar <dewar@adacore.com>
25468 * scng.adb: Do not consider Mod used as an attribute to be a keyword
25470 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25471 Javier Miranda <miranda@adacore.com>
25473 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
25474 type extension needs a limited view.
25475 Remove previous restriction on private types available through the
25476 limited-view (only tagged private types were previously allowed).
25477 (Install_Withed_Unit): In the code that implements the
25478 legality rule given in AI-377, exclude a child unit with the name
25479 Standard, because it is a homonym of the Standard environment package.
25481 2005-07-04 Thomas Quinot <quinot@adacore.com>
25483 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
25484 overloaded function call, carry interpretations from the original tree
25487 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25489 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
25490 types check whether some designated type is a limited view, and use
25491 the non-limited view if available.
25493 2005-07-04 Gary Dismukes <dismukes@adacore.com>
25495 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
25496 constraint of full view of a private view T1 if present, when T2 is a
25497 discriminated full view.
25499 2005-07-04 Thomas Quinot <quinot@adacore.com>
25501 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
25502 actual that is a view conversion of a bit packed array reference.
25504 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25506 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
25507 present before checking whether an interface type covers a synchronized
25510 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25512 * sem_util.adb (Is_Object_Reference): An indexed or selected component
25513 whose prefix is an implicit dereference is an object reference. Removes
25514 spurious errors when compiling with -gnatc.
25516 2005-07-04 Robert Dewar <dewar@adacore.com>
25519 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
25521 2005-07-04 Matthew Gingell <gingell@adacore.com>
25523 * tracebak.c: Enable tracebacks on ia64 platforms
25525 2005-07-04 Vincent Celier <celier@adacore.com>
25527 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
25528 the GNAT BIND command, as gnatbind accepts multiples ALI files with
25529 the -L or -n switches.
25531 2005-07-04 Vincent Celier <celier@adacore.com>
25533 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
25534 correctly computed and the main project data is not modified while
25536 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
25537 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
25538 c++linker as this does not work on some platforms.
25540 2005-07-04 Matthew Heaney <heaney@adacore.com>
25542 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
25544 * a-coinve.adb: Perform constraint checks explicitly.
25546 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25547 Thomas Quinot <quinot@adacore.com>
25549 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
25550 new target gen-soccon.
25552 2005-07-04 Robert Dewar <dewar@adacore.com>
25554 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
25556 2005-07-04 Thomas Quinot <quinot@adacore.com>
25558 * g-socket.ads (Check_Selector): Minor rewording of comment.
25560 2005-07-04 Vincent Celier <celier@adacore.com>
25562 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
25564 2005-07-04 Thomas Quinot <quinot@adacore.com>
25566 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
25568 2005-07-04 Sergey Rybin <rybin@adacore.com>
25570 * gnat_ugn.texi: Add description of --eol gnatpp option
25572 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25573 Thomas Quinot <quinot@adacore.com>
25575 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
25576 if the user wants all calls of a subprogram to be flagged,
25577 independently of whether they are made from within the same unit or
25579 Mention restriction for pragma Linker_Alias on some platforms.
25580 Document pragma Linker_Constructor and Linker_Destructor.
25581 Rewrite documentation of Weak_External, Linker_Section and
25582 Linker_Alias pragmas.
25584 2005-07-04 Arnaud Charlet <charlet@adacore.com>
25586 * s-stausa.ads, s-stausa.adb: New files.
25588 2005-06-30 Kelley Cook
25590 * all files: Update FSF address in copyright headers.
25591 * gen-soccon.co (main): Output new FSF address in generated files.
25593 2005-06-28 Paul Brook <paul@codesourcery.com>
25595 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
25597 2005-06-14 Olivier Hainque <hainque@adacore.com>
25598 Eric Botcazou <ebotcazou@adacore.com>
25600 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
25601 exc_unwind, now that we are generating proper .debug_frame output for
25604 * tracebak.c: Remove the mips-irix section, as we are now using the
25605 s-mastop based unwinder again.
25606 Under SPARC/Solaris, take into account the stack bias to compute the
25607 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
25610 2005-06-14 Doug Rupp <rupp@adacore.com>
25612 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
25614 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
25616 2005-06-14 Pascal Obry <obry@adacore.com>
25618 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
25619 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
25620 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
25623 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
25624 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
25625 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
25626 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
25627 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
25628 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
25629 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
25630 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
25631 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
25632 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
25633 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
25634 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
25635 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
25636 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
25637 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
25638 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
25639 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
25640 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
25641 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
25642 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
25643 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
25644 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
25645 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
25646 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
25647 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
25648 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
25649 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
25650 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
25651 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
25652 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
25653 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
25654 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
25655 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
25656 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
25657 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
25658 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
25659 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
25660 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
25661 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
25662 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
25663 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
25664 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
25665 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
25666 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
25667 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
25668 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
25669 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
25670 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
25671 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
25672 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
25673 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25674 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25675 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
25676 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25677 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
25678 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25679 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
25680 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
25681 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
25682 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
25683 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
25684 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
25685 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
25686 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25687 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25688 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
25689 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25690 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
25691 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
25692 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
25693 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25694 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25695 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25696 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25697 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25698 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25699 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25700 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25701 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25702 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25703 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25704 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25705 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25706 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25707 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25708 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25709 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25710 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25711 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25712 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25713 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25714 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25715 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25716 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25717 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25718 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25719 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25720 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25721 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25722 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25723 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25724 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25725 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25726 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25727 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25728 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25729 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25730 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25731 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25732 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25733 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25734 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25735 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25736 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25737 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25738 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25739 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25740 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25741 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25742 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25743 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25744 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25745 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25746 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25747 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25748 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25749 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25750 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25751 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25752 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25753 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25754 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25755 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25757 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25758 Arnaud Charlet <charlet@adacore.com>
25760 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25761 longer protected objects. They have been replaced by lower-level
25762 suspension objects made up by a mutex and a condition variable (or
25763 their equivalent given a particular OS) plus some internal data to
25764 reflect the state of the suspension object.
25765 (Initialize, Finalize): Add this initialization procedure for
25766 Suspension_Object, which is a controlled type.
25767 (Finalize): Add the finalization procedure for Suspension_Object,
25768 which is a controlled type.
25770 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25771 Ada.Synchronous_Task_Control because there is no longer a need for a
25772 VxWorks specific version of this package. Target dependencies
25773 has been moved to System.Task_Primitives.Operations.
25775 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25777 (InitializeCriticalSection, EnterCriticalSection,
25778 LeaveCriticalSection, DeleteCriticalSection): Replace the type
25779 pCriticalSection by an anonymous access type so that we avoid problems
25780 of accessibility to local objects.
25782 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25783 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25784 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25785 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25786 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25787 set the environment task mask here.
25788 (Current_State): Add this function that returns the state of the
25790 (Set_False): Add this procedure that sets the state of the suspension
25792 (Set_True): Add this procedure that sets the state of the suspension
25793 object to True, releasing the task that was suspended, if any.
25794 (Suspend_Until_True): Add this procedure that blocks the calling task
25795 until the state of the object is True. Program_Error is raised if
25796 another task is already waiting on that suspension object.
25797 (Initialize): Add this procedure for initializing the suspension
25798 object. It initializes the mutex and the condition variable which are
25799 used for synchronization and queuing, and it sets the internal state
25801 (Finalize): Add this procedure for finalizing the suspension object,
25802 destroying the mutex and the condition variable.
25804 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25805 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25806 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25807 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25808 which provides a low-level abstraction (using operating system
25809 primitives) for Ada.Synchronous_Task_Control.
25810 This object is made up by a mutex (for ensuring mutual exclusion), a
25811 condition variable (for queuing threads until the condition is
25812 signaled), a Boolean (State) indicating whether the object is open,
25813 and a Boolean (Waiting) reflecting whether there is a task already
25814 suspended on this object.
25816 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25817 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25818 s-intman-vms.ads, s-intman-mingw.adb,
25819 (Initialize_Interrupts): Removed, no longer used.
25821 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25822 (Setup_Interrupt_Mask): New procedure.
25824 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
25826 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25828 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25829 this is no longer done in the body of s-taprop
25830 (Server_Task): Explicitely test for Pending_Action in case
25831 System.Parameters.No_Abort is True.
25833 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25834 is no longer done in the body of s-taprop
25836 2005-06-14 Robert Dewar <dewar@adacore.com>
25838 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25839 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25840 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25841 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25842 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25843 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25844 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25845 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25846 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25847 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25848 system-linux-hppa.ads, system-vms_64.ads,
25849 system-vxworks-alpha.ads: Minor comment update for
25850 AI-362 (unit is Pure).
25852 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25853 Add pragma Pure_05 for AI-362
25854 Make remaining conversion functions obsolescent in Ada 95
25856 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25857 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25858 Add entries for a-wichun and a-zchuni
25859 Add a-widcha a-zchara for AI-395
25860 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25862 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25863 Add entries for a-wichun.o and a-zchuni.o
25864 Entries for a-widcha.o and a-zchara.o
25865 Add entry for a-chacon.o
25867 * a-ztenau.adb: Add with of Ada.Characters.Conversions
25869 * a-chacon.ads, a-chacon.adb: New files.
25871 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25872 categorization violations.
25874 * a-strmap.ads: Add pragma Pure_05 for AI-362
25875 * a-strmap.ads: Add note on implicit categorization for AI-362
25877 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25879 * par-prag.adb: Dummy entry for pragma Persistent_BSS
25880 Set Ada_Version_Explicit, for implementation of AI-362
25881 Add processing for pragma Pure_05 and Preelaborate_05
25882 Add entry for Assertion_Policy pragma
25884 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25885 when needed for proper processing of categorization stuff
25888 For several cases, make errors in preealborate units warnings,
25889 instead of errors, if GNAT_Mode is set. For AI-362.
25891 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25892 preelaborate unit is now warning if in GNAT mode
25894 * s-stoele.ads: Document AI-362 for pragma preelaborate
25896 2005-06-14 Doug Rupp <rupp@adacore.com>
25898 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25899 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25900 Default_Exception_Msg_Max_Length: new parameter.
25902 * a-except.ads: (Exception_Msg_Max_Length): Set to
25903 System.Parameters.Default_Exception_Msg_Max_Length
25904 Add pragma Preelaborate_05 for AI-362
25905 Add warnings off to allow categorization violations for AI-362
25907 2005-06-14 Vincent Celier <celier@adacore.com>
25909 * gnatsym.adb: Adapt to modification of package Symbols: procedure
25910 Process is now in package Processing.
25912 * symbols.ads, symbols.adb:
25913 (Processing): New package, containing procedure Process
25915 * symbols-vms-alpha.adb:
25916 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25918 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25919 symbols-processing-vms-ia64.adb: New files.
25921 2005-06-14 Pascal Obry <obry@adacore.com>
25923 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25924 implementation. This new version generates the proper DllMain routine
25925 to initialize the SAL. The DllMain is generated in Ada and compiled
25926 before being added as option to the library build command.
25928 2005-06-14 Doug Rupp <rupp@adacore.com>
25929 Pascal Obry <obry@adacore.com>
25931 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25932 call to decc$translate_vms.
25933 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25934 need to remove those quotes before catenating the filename.
25935 (__gnat_locate_exec_on_path): improvements to the Win32 section:
25936 * avoid allocating the memory twice for better efficiency;
25937 * allocate 32K buffer for environment expansion as suggested by MSDN;
25938 * prepend ".;" to the path so that current directory is searched too.
25940 2005-06-14 Robert Dewar <dewar@adacore.com>
25942 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25943 instead of raising CE (AI-241)
25944 Add warnings off to allow categorization violations for AI-362
25946 2005-06-14 Robert Dewar <dewar@adacore.com>
25948 * ali-util.adb, gnatbind.adb: Remove references to
25949 Force_RM_Elaboration_Order.
25951 * switch-b.adb: Remove recognition of -f switch
25953 2005-06-14 Pascal Obry <obry@adacore.com>
25955 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25956 implementation which is slightly more efficient.
25958 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25959 Javier Miranda <miranda@adacore.com>
25960 Ed Schonberg <schonberg@adacore.com>
25961 Hristian Kirtchev <kirtchev@adacore.com>
25963 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25964 allocator's designated type is a class-wide type, and compiling for
25965 Ada 2005, emit a run-time check that the accessibility level of the
25966 type given in the allocator's expression is not deeper than the level
25967 of the allocator's access type.
25969 (Tagged_Membership): Modified to gives support to abstract interface
25972 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25974 (Descendant_Tag): New predefined function
25975 (Is_Descendant_At_Same_Level): New predefined function
25976 (Get_Access_Level): New private function
25977 (Set_Access_Level): New private procedure
25978 (IW_Membership): New function. Given the tag of an object and the tag
25979 associated with an interface, evaluate if the object implements the
25981 (Register_Interface_Tag): New procedure used to initialize the table of
25982 interfaces used by the IW_Membership function.
25983 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25984 of the dispatch table.
25985 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25986 table of interfaces of the parent.
25987 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25988 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25989 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25990 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25991 Ada 2005 semantics for the new predefined function.
25993 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25994 call to Descendant_Tag rather than Internal_Tag.
25995 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25996 the accessibility level of the attribute's Item parameter is not deeper
25997 than the level of the attribute's prefix type. Tag_Error is raised if
25998 the check fails. The check is only emitted for Ada_05.
25999 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
26000 requested stream attribute, use it.
26001 (Expand_N_Attribute_Reference): If the designated type is an interface
26002 then rewrite the referenced object as a conversion to force the
26003 displacement of the pointer to the secondary dispatch table.
26004 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
26005 is a dereference of an object with a constrained partial view.
26007 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
26008 type is a class-wide type, emit a run-time check that the accessibility
26009 level of the returned object is not deeper than the level of the
26010 function's master (only when compiling for Ada 2005).
26012 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
26013 Action_Nb_Arg): Add entries for new Get_Access_Level and
26014 Set_Access_Level routines in these tables.
26015 (Make_DT): Generate a call to set the accessibility level of the
26016 tagged type in its TSD.
26017 (Make_DT): Code cleanup. The functionality of generating all the
26018 secondary dispatch tables has been moved to freeze_record_type.
26019 (Make_Abstract_Interface_DT): Minor code cleanup.
26020 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
26021 this subprogram implements a new algorithm that provides the
26022 same functionality and it is more clear in case of primitives
26023 associated with abstract interfaces.
26024 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
26025 clean up, the functionality of this subprogram is now provided
26026 by Set_All_DT_Position.
26027 (Write_DT): New subprogram: a debugging procedure designed to be called
26028 within gdb to display the dispatch tables associated with a tagged
26030 (Collect_All_Interfaces): New subprogram that collects the whole list
26031 of interfaces that are directly or indirectly implemented by a tagged
26033 (Default_Prim_Op_Position): New subprogram that returns the fixed
26034 position in the dispatch table of the default primitive operations.
26035 (Expand_Interface_Actuals): New subprogram to generate code that
26036 displaces all the actuals corresponding to class-wide interfaces to
26037 reference the interface tag of the actual object.
26038 (Expand_Interface_Conversion): New subprogram. Reference the base of
26039 the object to give access to the interface tag associated with the
26040 secondary dispatch table.
26041 (Expand_Interface_Thunk): New subprogram that generates the code of the
26042 thunk. This is required for compatibility with the C+ ABI.
26043 (Make_Abstract_Interface_DT): New subprogram that generate the
26044 declarations for the secondary dispatch tables associated with an
26045 abstract interface.
26046 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
26047 attribute for each primitive operation covering interface subprograms
26048 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
26049 These subprograms were upgraded to give support to abstract interfaces
26051 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
26052 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
26053 RE_Set_Access_Level.
26054 (RE_Unit_Table): Add entries for new Ada.Tags operations.
26055 Add support to call the followig new run-time subprograms:
26056 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
26058 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
26059 match its full declaration when both have an access definition with
26060 statically matching designated subtypes.
26061 (Analyze_Component_Declaration): Delete commented out code that was
26062 incorrectly setting the scope of an anonymous access component's type.
26063 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
26064 an access discriminant when the containing type is nonlimited.
26065 (Make_Incomplete_Type_Declaration): Create an incomplete type
26066 declaration for a record type that includes self-referential access
26068 (Check_Anonymous_Access_Types): Before full analysis of a record type
26069 declaration, create anonymous access types for each self-referential
26071 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
26072 an access component in this context is a Local_Anonymous_Access, for
26073 proper accessibility checks.
26074 (Access_Definition): Set properly the scope of the anonymous access type
26075 created for a stand-alone access object.
26076 (Find_Type_Of_Object): An object declaration may be given with an access
26078 (Complete_Subprograms_Derivation): New subprogram used to complete
26079 type derivation of private tagged types implementing interfaces.
26080 In this case some interface primitives may have been overriden
26081 with the partial-view and, instead of re-calculating them, they
26082 are included in the list of primitive operations of the full-view.
26083 (Build_Derived_Record_Type): Modified to give support to private
26084 types implemening interfaces.
26085 (Access_Definition): Reject ALL on anonymous access types.
26086 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
26087 type derivation to occur at a deeper accessibility level than the
26089 For the case of derivation within a generic body however, disallow the
26090 derivation if the derived type has an ancestor that is a formal type
26091 declared in the formal part of an enclosing generic.
26092 (Analyze_Object_Declaration): For protected objects, remove the check
26093 that they cannot contain interrupt handlers if not declared at library
26095 (Add_Interface_Tag_Components): New subprogram to add the tag components
26096 corresponding to all the abstract interface types implemented by a
26097 record type or a derived record type.
26098 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
26099 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
26100 Process_Full_View, Record_Type_Declaration): Modified to give
26101 support to abstract interface types
26102 (Collect_Interfaces): New subprogram that collects the list of
26103 interfaces that are not already implemented by the ancestors
26104 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
26105 when partial view has no discriminants and full view has defaults.
26106 (Constrain_Access): Reject a constraint on a general access type
26107 if the discriminants of the designated type have defaults.
26108 (Access_Subprogram_Declaration): Associate the Itype node with the inner
26109 full-type declaration or subprogram spec. This is required to handle
26110 nested anonymous declarations.
26111 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
26112 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
26113 Process_Full_View, Record_Type_Declaration): Modified to give
26114 support to abstract interface types
26115 (Derive_Subprograms): Addition of a new formal to indicate if
26116 we are in the case of an abstact-interface derivation
26117 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
26118 to the specification because it is requied to analyze all the
26119 identifiers found in a list of interfaces
26121 * debug.adb: Complete documentation of flag "-gnatdZ"
26123 * exp_ch3.adb: Implement config version of persistent_bss pragma
26124 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
26125 testing for TSS presence to properly enforce visibility rules.
26126 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
26127 Make_Abstract_Interfaces_DT to generate the secondary tables
26128 associated with abstract interfaces.
26129 (Build_Init_Procedure): Modified to initialize all the tags
26131 (Component_Needs_Simple_Initialization): Similar to other tags,
26132 interface tags do not need initialization.
26133 (Freeze_Record_Type): Modified to give support to abstract interface
26135 (Expand_N_Object_Declaration): Do not generate an initialization for
26136 a scalar temporary marked as internal.
26138 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
26139 in-out parameter that is a component in an initialization procedure,
26140 whose constraint might depend on discriminants, and that may be
26141 misaligned because of packing or representation clauses.
26142 (Is_Legal_Copy): New predicate to determine whether a possibly
26143 misaligned in-out actual can actually be passed by copy/return. This
26144 is an error in case the type is by_reference, and a warning if this is
26145 the consequence of a DEC import pragma on the subprogram.
26146 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
26148 (Expand_Inlined_Call): Mark temporary generated for the return value as
26149 internal, so that no useless scalar normalization is generated for it.
26150 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
26151 null procedure can always be inlined.
26152 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
26153 procedure, generate an explicit empty body for it.
26155 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
26156 Given a type implementing an interface, returns the corresponding
26157 access_disp_table value.
26158 (Find_Interface_Tag): New subprogram. Given a type implementing an
26159 interface, returns the record component containing the tag of the
26161 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
26162 previous ones that return the corresponding tag and access_disp_table
26164 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
26165 is a predefined primitive operation.
26166 (Expand_Subtype_From_Expr): If the expression is a selected component
26167 within an initialization procedure, compute its actual subtype, because
26168 the component may depend on the discriminants of the enclosing record.
26170 * i-cpp.ads, i-cpp.adb:
26171 This package has been left available for compatibility with previous
26172 versions of the frontend. As part of the new layout this is now a
26173 dummy package that uses declarations available at a-tags.ads
26175 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
26176 "constant access" and "aliased [constant] access" when not compiling
26178 Suppress Ada 2005 keyword warning if -gnatwY used
26179 (P_Identifier_Declarations): Add support for object declarations with
26180 access definitions.
26181 (Private_Extension_Declaration): Complete the documentation
26182 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
26183 attribute in case of private extension declaration
26184 (P_Type_Declaration): Mark as "abstract" the type declarations
26185 corresponding with protected, synchronized and task interfaces
26186 (P_Declarative_Items): "not" and "overriding" are overriding indicators
26187 for a subprogram or instance declaration.
26189 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
26190 instantiation that is a dispatching operation has controlling access
26191 parameters that are null excluding.
26192 Save and restore Ada_Version_Explicit, for implementation of AI-362
26193 (Validate_Derived_Type_Instance): Add check for abstract interface
26195 (Analyze_Formal_Package): Establish Instantiation source for the copy of
26196 the generic that is created to represent the formal package.
26197 (Analyze_Package_Instantiation): Instantiate body immediately if the
26198 package is a predefined unit that contains inlined subprograms, and
26199 we are compiling for a Configurable_Run_Time.
26200 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
26201 If the program has a null default, generate an empty body for it.
26203 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
26204 error message condition, null procedures are correctly detected now.
26205 (New_Overloaded_Entity): Bypass trivial overriding indicator check
26206 for subprograms in the context of protected types. Instead, the
26207 indicator is examined in Sem_Ch9 while analysing the subprogram
26209 (Check_Overriding_Indicator): Check consistency of overriding indicator
26210 on subprogram stubs as well.
26211 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
26213 (Analize_Subprogram_Specification): When analyzing a subprogram in which
26214 the type of the first formal is a concurrent type, replace this type
26215 by the corresponding record type.
26216 (Analyze_Subprogram_Body): Undo the previous work.
26217 (Analyze_Procedure_Call): If the call has the form Object.Op, the
26218 analysis of the prefix ends up analyzing the call itself, after which
26220 (Has_Interface_Formals): New subprogram subsidiary to analyze
26221 subprogram_specification that returns true if some non
26222 class-wide interface subprogram is found
26223 (New_Overloaded_Entity): Modified to give support to abstract
26225 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
26226 access to subprograms must be recursive.
26227 (Is_Unchecked_Conversion): Improve the test that recognizes
26228 instantiations of Unchecked_Conversion, and allows them in bodies that
26229 are to be inlined by the front-end. When the body comes from an
26230 instantiation, a reference to Unchecked_Conversion will be an
26231 Expanded_Name, even though the body has not been analyzed yet.
26232 Replace Is_Overriding and Not_Overriding in subprogram_indication with
26233 Must_Override and Must_Not_Override, to better express intent of AI.
26234 (Analyze_Subprogram_Body): If an overriding indicator is given, check
26235 that it is consistent with the overrinding status of the subprogram
26237 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
26239 If the subprogram is a null procedure, indicate that it does not need
26242 * sem_disp.adb (Check_Controlling_Type): Give support to entities
26243 available through limited-with clauses.
26244 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
26245 allowed as the last primitive of a tagged type if it has no previous
26247 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
26248 to give support to abstract interface types
26250 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
26251 in the case where the target type is an anonymous access type of an
26252 object or component (that is, when Is_Local_Anonymous_Access is true).
26253 Prevent the special checks for conversions of access discriminants in
26254 the case where the discriminant belongs to a nonlimited type, since
26255 such discriminants have their accessibility level defined in the same
26256 way as a normal component of an anonymous access type.
26257 (Resolve_Allocator): When an allocator's designated type is a class-wide
26258 type, check that the accessibility level of type given in the
26259 allocator's expression or subtype indication is not statically deeper
26260 than the level of the allocator's access type.
26261 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
26262 name in a discriminant constraint of a record component.
26263 (Resolve_Explicit_Dereference): Do not check whether the type is
26264 incomplete when the dereference is a use of an access discriminant in
26265 an initialization procedure.
26266 (Resolve_Type_Conversion): Handle conversions to abstract interface
26268 (Valid_Tagged_Conversion): The conversion of a tagged type to an
26269 abstract interface type is always valid.
26270 (Valid_Conversion): Modified to give support to abstract interface types
26271 (Resolve_Actuals): Enable full error reporting on view conversions
26272 between unrelated by_reference array types.
26273 The rule for view conversions of arrays with aliased components is
26274 weakened in Ada 2005.
26275 Call to obsolescent subprogram is now considered to be a violation of
26276 pragma Restrictions (No_Obsolescent_Features).
26277 (Check_Direct_Boolean_Operator): If the boolean operation has been
26278 constant-folded, there is nothing to check.
26279 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
26280 check on possible violation of restriction No_Direct_Boolean_Operators
26281 until after expansion of operands, to prevent spurious errors when
26282 operation is constant-folded.
26284 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
26285 Has_Compatible_Type): Modified to give support to abstract interface
26287 (Interface_Present_In_Ancestor): New function to theck if some ancestor
26288 of a given type implements a given interface
26290 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
26291 prefix is a parameterless function that returns an access_to_procedure.
26292 (Transform_Object_Operation): Handle properly function calls of the
26293 form Obj.Op (X), which prior to analysis appear as indexed components.
26294 (Analyze_One_Call): Complete the error notification to help new Ada
26296 (Analyze_Allocator): For an allocator without an initial value, where
26297 the designated type has a constrained partial view, a discriminant
26298 constraint is illegal.
26300 2005-06-14 Robert Dewar <dewar@adacore.com>
26302 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
26303 do with treatment of Set_Col when positioned at end of line character.
26305 2005-06-14 Robert Dewar <dewar@adacore.com>
26307 * atree.adb: (Elist*): Protect against uninitialized field
26309 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26311 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
26312 for an attribute reference that returns an access type.
26313 (Apply_Discriminant_Check): No need for check if (designated) type has
26314 constrained partial view.
26316 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
26317 both bound checks, rather than a conjunction.
26318 (Insert_Valid_Check): If the expression is an actual that is an indexed
26319 component of a bit-packed array, force expansion of the packed element
26320 reference, because it is specifically inhibited elsewhere.
26322 2005-06-14 Vincent Celier <celier@adacore.com>
26324 * clean.adb (Clean_Project): Correctly delete executable specified as
26325 absolute path names.
26327 * make.adb (Gnatmake): Allow relative executable path names with
26328 directory information even when project files are used.
26329 (Change_To_Object_Directory): Fail gracefully when unable to change
26330 current working directory to object directory of a project.
26331 (Gnatmake): Remove exception handler that could no longer be exercized
26332 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
26333 may be deallocated by Normalize_Arguments.
26334 (Collect_Arguments): Eliminate empty arguments
26336 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
26337 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
26338 (Check_Project): Return False when Project is No_Project. Return True
26339 when All_Projects is True.
26340 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
26341 All_Projects to True.
26344 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26345 Javier Miranda <miranda@adacore.com>
26346 Thomas Quinot <quinot@adacore.com>
26347 Robert Dewar <dewar@adacore.com>
26348 Hristian Kirtchev <kirtchev@adacore.com>
26349 Gary Dismukes <dismukes@adacore.com>
26351 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
26352 anonymous access types, to indicate that the accessibility level of
26353 the type is determined by that of the enclosing declaration.
26354 (Has_Persistent_BSS): New flag
26355 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
26356 of this attribute with functions.
26357 (Is_Primitive_Wrapper): Remove the barrier.
26358 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
26359 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
26361 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
26362 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
26364 (Is_Pure_Unit_Access_Type): New flag
26365 (Abstract_Interfaces): Complete the assertion to cover all usages.
26366 (Set_Is_Interface): Complete the assertion to cover all usages.
26367 (Is_Primitive_Wrapper): New attribute.
26368 (Is_Obsolescent): Now applies to all entities (though it is only set
26369 for subprograms currently)
26370 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
26371 which solves various problems concerning access subtypes.
26372 (Has_Persistent_BSS): New flag
26373 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
26374 Remove these subprograms because this attribute is currently
26377 Has_Specified_Stream_Input (Flag190)
26378 Has_Specified_Stream_Output (Flag191)
26379 Has_Specified_Stream_Read (Flag192)
26380 Has_Specified_Stream_Write (Flag193)
26381 Present in all type and subtype entities. Set for a given view if the
26382 corresponding stream-oriented attribute has been defined by an
26383 attribute definition clause. When such a clause occurs, a TSS is set
26384 on the underlying full view; the flags are used to track visibility of
26385 the attribute definition clause for partial or incomplete views.
26386 (Is_Pure_Unit_Access_Type): New flag
26387 Clarify use of Is_Internal.
26388 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
26389 internally generated to wrap the invocation of tasks and protected
26390 types that implement interfaces.
26391 (Implementation_Base_Type): Documentation correction
26392 (Is_Obsolescent): Now applies to all entities (though it is only set
26393 for subprograms currently)
26394 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
26395 which solves various problems concerning access subtypes.
26397 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
26398 for examined parameters. Identify unequal parameter list lengths as
26399 non-conformant parameters.
26400 (Overriding_Possible): Do not check for "All" qualifier in declaration
26401 of controlling access parameter, following prescription of AI-404.
26402 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
26403 that build the procedure body that wraps an entry invocation
26404 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
26405 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
26406 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
26407 give support to abstract interface types
26409 * freeze.adb (Freeze_Entity): Issue error message if
26410 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
26411 type has no storage pool (Ada 2005) AI-366.
26412 Also modified to give support to abstract interface types
26413 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
26414 Inline_Always pragma.
26416 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
26417 now begin an entry declaration.
26418 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
26419 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
26420 a subprogram declaration preceded by an overriding indicator.
26421 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
26422 declarations or subprogram declarations preceded by reserved words
26423 "not" or "overriding".
26424 (P_Entry_Declaration): Update comment. Parse and check overriding
26425 indicator, set semantic flags of entry declarations.
26426 (P_Task): New error message in case of private applied
26427 to a task type declaration.
26428 (P_Protected): New error message in case of private applied
26429 to a task type declaration.
26431 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
26432 in which the full view of a type implementing an interface is a
26434 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
26435 Declare_Inherited_Private_Subprograms): If an explicit operation
26436 overrides an operation that is inherited in the private part, mark the
26437 explicit one as overriding, to enable overriding indicator checks.
26438 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
26439 full view to partial view, to simplify handling in back-end.
26441 * sprint.adb: Print interface lists where needed: derived types,
26442 protected types, task types.
26443 output "is null" for null procedures. Part of implementation of
26445 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
26446 relaxation of rules for access types in pure, shared passive partitions.
26448 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
26449 first read discriminants into temporary objects, performing checks on
26450 the read values, then possibly performing discriminant checks on the
26451 actual (if it is constrained), and only finally reading the components
26452 into a constrained temporary object.
26453 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
26454 case of reading discriminants of a mutable record type to recognize
26455 the new form of the code generated by
26456 Build_Mutable_Record_Read_Procedure.
26458 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
26459 of a simple call to Make_TSS_Name.
26460 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
26461 buffer, in order for Is_TSS to work correctly on local TSS names.
26463 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
26464 Is_Local_Anonymous_Access to check legaliy of attributes in the
26465 context of access components and stand-alone access objects.
26466 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
26467 treated as available for a limited private type if there is an
26468 attribute_definition_clause that applies to its full view, but not in
26469 other cases where the attribute is available for the full view
26470 (specifically, the sole fact that the full view is non-limited does not
26471 make the attribute available for the partial view).
26472 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
26473 non-overloaded intrinsic subprogram.
26474 (Check_Stream_Attribute): Reject an attribute reference for an
26475 unavailable stream attribute even if the prefix is not a limited type
26476 (case of a 'Input attribute reference for an abstract, non-classwide
26478 (Stream_Attribute_Available): New function to determine whether a stream
26479 attribute is available at a place.
26480 (Check_Attribute): Use Stream_Attribute_Available instead of just
26481 testing for TSS presence on the implementation base type.
26482 (Analyze_Attribute): Modified to give support to task interfaces.
26483 (Analyze_Access_Attribute): Add error check for use of an Access (or
26484 Unrestricted_Access) attribute with a subprogram marked as
26486 (Analyze_Attribute, case Attribute_Address): Add error check for use of
26487 an Address attribute with a subprogram marked as Inline_Always.
26488 Update Eval_Attribute to handle new value of Width from AI-395
26490 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
26491 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
26492 Factor common code across the stream-oriented attribute circcuits into
26493 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
26494 processing is functionally identical to the previous duplicated one,
26495 except that an expression that denotes an abstract subprogram will now
26496 be rejected, as mandated by AI-195 item 5.
26498 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
26499 Is_Local_Anonymous_Access to apply accessibility checks to access
26500 components and stand-alone access objects.
26501 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
26503 (Is_Potentially_Persistent_Type): New function
26504 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
26505 a heap-object whose type has a constrained partial view, the object is
26506 unconstrained and the component may depend on a discriminant, making its
26509 * sinfo.ads, sinfo.adb
26510 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
26511 (Must_Override): Flag applicable to N_Entry_Declaration.
26512 Indicate that interface_list can appear in single task and single
26513 protected declarations.
26514 Replace Is_Overriding and Not_Overriding with Must_Override and
26515 Must_Not_Override, to better express intent of AI.
26516 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
26517 of an overriding indicator in a subprogram or instance.
26518 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
26519 Add the overriding indicator [[not] overriding] construct to the
26520 following grammar productions:
26522 GENERIC_INSTANTIATION
26523 SUBPROGRAM_SPECIFICATION
26525 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
26526 can start with an overriding indicator.
26528 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
26529 flags accordingly on subrogram specifications or instances.
26532 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
26533 overriding_indicator, if present, is consistent with status of spec.
26534 Improve error message for null-excluding checks on controlling access
26536 (Check_In_Previous_With_Clause): Protect the frontend against
26537 previously reported critical errors in the context clauses.
26538 Save and restore Ada_Version_Explicit, for implementation of AI-362
26539 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
26540 operation verify that controlling formals of the renamed entity that
26541 are access parameters are explicitly non-null.
26542 (Find_Expanded_Name): Improve error message when prefix is an illegal
26543 reference to a private child unit.
26545 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
26546 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
26547 Rewrite to correspond to new wide character names in AI-395
26549 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
26550 default procedures.
26552 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26553 Robert Dewar <dewar@adacore.com>
26555 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
26556 code, not on the bodies of predefined operations, to cut down on
26559 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26561 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
26562 be expanded in place. The size computation does not require a
26563 subtraction, which would raise an exception on a compiler built with
26564 assertions when the upper bound is Integer'first.
26565 (Flatten): For an array of composite components, take into account the
26566 size of the components to determine whether it is safe to expand the
26567 array into a purely positional representation.
26569 2005-06-14 Thomas Quinot <quinot@adacore.com>
26571 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
26572 denoting a formal parameter into account.
26574 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26576 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
26577 the entry_call alternative of a conditional entry call, wrap the
26578 conditional entry call itself.
26580 2005-06-14 Nicolas Setton <setton@adacore.com>
26581 Ed Schonberg <schonberg@adacore.com>
26583 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
26584 the "simple_choice" member in a variant record, in accordance with the
26585 description in the package spec: the information output for a constant
26586 should be "S number", not "SS number".
26587 (Get_Encoded_Name): Return at once if not generating code. Avoids name
26588 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
26590 2005-06-14 Thomas Quinot <quinot@adacore.com>
26592 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
26593 RACW without any primitives, do not generate the if statement for
26594 dispatching by name in the PolyORB/DSA case, as it would be malformed
26595 (it would have an Elsif_Parts list that is not No_List, but with a
26598 2005-06-14 Robert Dewar <dewar@adacore.com>
26600 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
26602 2005-06-14 Jose Ruiz <ruiz@adacore.com>
26604 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
26605 can determine whether pragma Suppress_Exception_Locations is in effect.
26607 * utils2.c (build_call_raise): Do not pass the file name to the
26608 exception handler if pragma Suppress_Exception_Locations is in effect.
26609 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
26611 2005-06-14 Emmanuel Briot <briot@adacore.com>
26613 * g-debpoo.adb (Deallocate, Dereference): Improve output.
26615 2005-06-14 Nicolas Roche <roche@adacore.com>
26617 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
26619 (Next_Level): Fix minor bug in handling of ../dir case
26620 (Read): Add dir separator to Directory name so that "" is understood as
26623 2005-06-14 Pascal Obry <obry@adacore.com>
26625 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
26626 releasing the items.
26628 2005-06-14 Vincent Celier <celier@adacore.com>
26629 Cyrille Comar <comar@adacore.com>
26631 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
26632 with output file descriptor and with output file name.
26633 (Dup, Dup2): Now global procedures as they are used by two subprograms
26634 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
26636 2005-06-14 Thomas Quinot <quinot@adacore.com>
26639 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
26641 (Create_Selector): Bind listening socket used to create the signalling
26642 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
26643 Set listen backlog to 1 to ensure that we detect socket theft by a
26644 failure of our own connect(2) call.
26645 (Check_Selector): Improve documentation of the selector mechanism.
26646 (Broadcast_Inet_Addr): New constant.
26648 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26650 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
26651 type which turns out to be an incomplete and incorrect fix.
26652 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
26653 of the type is declared in a record (for determination of insertion
26655 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
26656 a private type and ensure that the primary entity is used for the type
26657 of the newly created function's V formal by taking the Etype of the
26660 2005-06-14 Javier Miranda <miranda@adacore.com>
26661 Jose Ruiz <ruiz@adacore.com>
26662 Robert Dewar <dewar@adacore.com>
26663 Ed Schonberg <schonberg@adacore.com>
26665 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
26666 that indicates if we are parsing a compilation unit found in a
26667 limited-with clause.
26668 It is use to avoid the circularity check.
26670 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
26671 we are parsing a compilation unit found in a limited-with clause. This
26672 is use to avoid the circularity check.
26674 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26675 unit as a consequence of parsing a limited-with clause. This is used
26676 to avoid the circularity check.
26678 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
26679 (Analyze_Context): Limited-with clauses are now allowed
26680 in more compilation units.
26681 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
26682 againts previously reported critical errors in context clauses
26683 (Install_Limited_Withed_Unit): Code cleanup plus static detection
26684 of two further errors: renamed subprograms and renamed packages
26685 are not allowed in limited with clauses.
26686 (Install_Siblings): Do not install private_with_clauses on the package
26687 declaration for a non-private child unit.
26688 (Re_Install_Parents): When a parent of the subunit is reinstalled,
26689 reset visibility of child units properly.
26690 (Install_Withed_Unit): When a child unit appears in a with_clause of its
26691 parent, it is immediately visible.
26693 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26694 Emmanuel Briot <briot@adacore.com>
26696 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26697 declared within an inlined body as referenced, to prevent spurious
26699 (Output_One_Ref): If an entity renames an array component, indicate in
26700 the ALI file that this aliases (renames) the array. Capture as well
26701 function renamings that rename predefined operations.
26702 Add information about generic parent for package and subprogram
26704 (Get_Type_Reference): For a subtype that is the renaming of an actual in
26705 an instantiation, use the first_subtype to ensure that we don't generate
26706 cross-reference information for internal types.
26707 For objects and parameters of a generic private type, retain the '*'
26708 indicator to distinguish such an entity from its type.
26710 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26711 to store information about instantiated entities.
26713 * ali.adb (Scan_ALI): Add support for parsing the reference to the
26716 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26717 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26720 2005-06-10 Doug Rupp <rupp@adacore.com>
26721 Arnaud Charlet <charlet@adacore.com>
26722 Olivier Hainque <hainque@adacore.com>
26723 Jose Ruiz <ruiz@adacore.com>
26725 * Make-lang.in: Add initialize.o when needed.
26726 Remove obsolete references to RT_FLAGS.
26727 Add missing dependencies for sdefault.o
26729 * initialize.c: New file.
26731 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26732 [VMS] cond_signal_table: Fix problem in declaration.
26733 [VMS] __gnat_error_handler: rewrite.
26734 Move all __gnat_initialize() routines to initialize.c
26735 Specialize the former "hpux" section to "hppa hpux", as this is what the
26736 section really is here for and we now have other hpux ports that need
26737 different contents.
26738 (__gnat_adjust_context_for_raise) i386-linux: First version of this
26739 function for this target. Adjust PC by one in the machine context. This
26740 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26741 it is more reliable to do that in the signal handler itself.
26742 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26743 flags, so that the handler is passed the context structure to adjust
26744 prior to the raise.
26745 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26746 SA_SIGINFO sigaction should look like. Call
26747 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26748 Machine_State_Operations stuff.
26749 Add conditional code so that the x86_64 is also supported.
26751 2005-06-14 Pascal Obry <obry@adacore.com>
26753 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26756 2005-06-14 Robert Dewar <dewar@adacore.com>
26758 * opt.ads, opt.adb: New flags for persistent_bss mode
26759 Add Ada_Version_Explicit, for implementation of AI-362
26760 Add Assertions_Enabled_Config and associated handling
26761 Needed since setting can be changed with Assertion_Policy pragma
26762 Add new flag Warn_On_Ada_2005_Compatibility
26764 * switch-c.adb: Recognize -gnatwy/Y
26765 Set Ada_Version_Explicit, for implementation of AI-362
26766 The -gnatg switch now includes -gnatyu
26768 * usage.adb: Add -gnatwy/Y
26769 Remove wrong asterisk on -gnatwX line
26770 Add line for -gnatyu switch
26772 2005-06-14 Vincent Celier <celier@adacore.com>
26774 * osint.adb (Add_Default_Search_Dirs): Put source and object
26775 directories of project files before directories coming from
26776 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26778 2005-06-14 Robert Dewar <dewar@adacore.com>
26781 * par-ch2.adb (Scan_Pragma_Argument): New procedure
26782 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26784 2005-06-14 Vincent Celier <celier@adacore.com>
26786 * prep.adb (Preprocess): Ignore error when scanning the first token of
26789 2005-06-14 Vincent Celier <celier@adacore.com>
26791 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26792 (Check_Stand_Alone_Library): If the specified reference symbol file does
26793 not exist, only issue a warning when the symbol policy is not
26794 Controlled. And, when symbol policy is Compliant, set the symbol
26795 policy to Autonomous.
26797 2005-06-14 Vincent Celier <celier@adacore.com>
26799 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26800 when the project file in a with clause is not the last one, that is the
26801 project file name is followed by a comma.
26802 * prj-pp.adb: (First_With_In_List): New Boolean global variable
26803 (Print): Issue list of project files separated by commas in with clauses
26804 according to the values returned by Is_Not_Last_In_List.
26805 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26806 (Set_Is_Not_Last_In_List): New procedure
26808 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26810 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26812 2005-06-14 Robert Dewar <dewar@adacore.com>
26814 * scng.adb: Add call to new Check_EOF routine
26815 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26816 Add some comments regarding wide character handling
26818 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26820 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26822 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26823 characters are now considered graphic characters and hence yield false
26826 * nmake.adt: Modify header so that xnmake does not generate output
26827 files with multiple blank lines.
26829 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26830 not have an extra blank line
26832 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26834 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26835 expression when the component type is an anonymous access type to
26836 ensure that appropriate accessibility checks are done.
26838 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26839 expression of an assignment when the target object is of an anonymous
26840 access type. This ensures that required accessibility checks are done.
26841 (One_Bound): Move the check for type Universal_Integer to
26843 (Process_Bounds): Check whether the type of the preanalyzed range is
26844 Universal_Integer, and in that case set Typ to Integer_Type prior
26845 to setting the type of the original range and the calls to One_Bound.
26847 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26849 * sem_case.adb (Expand_Others_Choice): Improve warning.
26851 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26853 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26854 constraint of full view if present, when other type is discriminated.
26855 (Eval_Relational_Op): Recognize tests of pointer values against Null,
26856 when the pointer is known to be non-null, and emit appropriate warning.
26858 2005-06-14 Robert Dewar <dewar@adacore.com>
26859 Ed Schonberg <schonberg@adacore.com>
26862 * sem_prag.adb: Implement pragma Persistent_BSS
26863 Remove obsolete pragma Persistent_Data, Persistent_Object
26864 Set Ada_Version_Explicit, for implementation of AI-362
26865 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26866 Add processing for pragma Pure_05 and Preelaborate_05
26867 Add processing for Assertion_Policy pragma
26868 Add pragma identifiers for Assert
26869 (Analyze_Pragma, case Assert): Check number of arguments
26870 (Process_Inline): Additional guard against an illegal program, where the
26871 argument of the pragma is undefined, and warnings on redundant
26872 constructs are enabled.
26873 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26874 Ada_05 to this pragma, specifying that the pragma is only active in
26876 (Check_Arg_Order): New procedure
26877 Add appropriate calls to this procedure throughout
26878 Also throughout, check entity name before doing any other checks
26880 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26881 Remove obsolete pragma Persistent_Data, Persistent_Object
26882 Add entries for pragma Pure_05 and Preelaborate_05
26883 Add entries for Assertion_Policy pragma and associated names
26884 Add some names for pragma argument processing
26886 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26888 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26890 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26891 appears within a negation (either from source or as a rewriting of
26892 inequality) adjust text of warning accordingly.
26894 2005-06-14 Thomas Quinot <quinot@adacore.com>
26896 * s-strxdr.adb: Follow AI95-00132
26898 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26900 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26902 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26903 Jose Ruiz <ruiz@adacore.com>
26905 * s-tposen.adb, s-tpobop.adb
26906 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26908 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26909 there is no violation of the Max_Entry_Queue_Length restriction (if it
26910 has been set); Program_Error is raised otherwise.
26911 (Requeue_Call): Before requeuing the task on the target entry queue we
26912 check that there is no violation of the Max_Entry_Queue_Length
26913 restriction (if it has been set); Program_Error is raised otherwise.
26915 2005-06-14 Robert Dewar <dewar@adacore.com>
26917 * styleg.adb: Fix several remaining problems in -gnatyu switch
26918 Blank line count not reset at start
26919 Scanning outside source buffer in some cases
26920 Confusing message for blanks at end of file
26921 Non-empty blank lines not recognized
26923 * nmake.adt: Modify header so that xnmake does not generate output
26924 files with multiple blank lines.
26926 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26927 not have an extra blank line
26929 2005-06-14 Sergey Rybin <rybin@adacore.com>
26931 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26933 2005-06-14 Doug Rupp <rupp@adacore.com>
26934 Vincent Celier <celier@adacore.com>
26936 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26939 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26940 Remove "Library" command.
26941 Change keyword for style check -gnatyd from NOCRLF to
26943 Remove useless second style check keyword NONE
26944 Remove help documentation for inexistent style check keyword
26946 Add help documentation for style check keywords DOS_LINE_ENDINGS,
26947 UNNECESSARY_BLANK_LINES and XTRA_PARENS
26948 Add UNNECESSARY_BLANK_LINES for -gnatyu
26949 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26951 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26953 2005-06-14 Vincent Celier <celier@adacore.com>
26955 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26956 gprmake was invoked with -d.
26957 (Compile_Sources): If -d was used, output the "completed ..." message
26958 for each compilation.
26959 (Scan_Arg): Recognize new switch -d
26960 When -c and at least one main is specified, set
26961 Unique_Compile to True to guarantee that no other sources will be
26964 2005-06-14 Matthew Heaney <heaney@adacore.com>
26966 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26967 * a-swuwha.ads, a-swuwha.adb: New files
26969 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26970 * a-szuzha.ads, a-szuzha.adb: New files.
26972 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26973 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26974 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26975 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26976 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26977 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26978 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26979 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26980 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26981 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26984 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
26985 Olivier Hainque <hainque@adacore.com>
26986 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26987 Pascal Obry <obry@adacore.com>
26989 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26991 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26992 making a temporary around a procedure call because of non-addressable
26994 (process_freeze_entity): If entity is a private type, capture size
26995 information that may have been computed for the full view.
26996 (tree_transform, case N_Allocator): If have initializing expression,
26997 check type for Has_Constrained_Partial_View and pass that to
26999 (tree_transform, case N_Return_Statement): Pass extra arg to
27002 * decl.c (annotate_value): Remove early return if -gnatR is not
27004 (gnat_to_gnu_field): Don't make a packable type for a component clause
27005 if the position is byte aligned, the field is aliased, and the clause
27006 size isn't a multiple of the packable alignment. It serves no useful
27007 purpose packing-wise and would be rejected later on.
27008 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
27011 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
27012 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
27014 (create_concat_name): Idem.
27016 2005-06-10 Robert Dewar <dewar@adacore.com>
27017 Eric Botcazou <ebotcazou@adacore.com>
27018 Ben Brosgol <brosgol@adacore.com>
27019 Cyrille Comar <comar@adacore.com>
27020 Sergey Rybin <rybin@adacore.com>
27021 Pascal Obry <obry@adacore.com>
27023 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
27024 Document second argument (Ada_05) of pragma Obsolescent
27025 Add note that call to subprogram marked with pragma Obsolescent
27026 is now considered to be a violation of program Restrictions
27027 (No_Obsolescent_Features).
27028 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
27029 that only machine-dependent attributes are supported.
27032 Commented out menu lines and empty section for gnatclean examples
27034 Fix some over long lines
27035 Clarify and enhance documentation of ADA_PROJECT_PATH.
27036 Rework section 2.11.2(3) about linking with a non-GNU compiler.
27037 Mention new switch -fcallgraph-info.
27038 Mention new switch -fstack-usage.
27039 For gnatpp, replace '-notab' with '-N' and add this option to Index
27040 Corrected VMS example.
27041 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
27043 Add documentation for -gnatyu switch (unnecessary blank lines)
27044 Document new switch -U for GNAT PRETTY and GNAT METRIC
27045 Add note about Stdcall being handled as C convention on non Windows OS.
27046 Remove some junk typo in description of gnatbind -S switch
27047 Remove reference to Extensions_Allowed pragma
27048 Document the new order of the directories to be searched (source and
27049 object directories of project files before directories in ADA_*_PATH
27050 environment variables.
27052 * g-trasym.ads: Document that IRIX is supported
27054 2005-06-10 Arnaud Charlet <charlet@adacore.com>
27056 * Makefile.in: Add initialize.o when needed.
27057 Adapt to new VMS package body Symbols and subunits
27058 No specialized version of a-sytaco is needed for VxWorks.
27060 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
27061 * a-zchara.ads, a-widcha.ads: New files.
27063 * system-hpux-ia64.ads: New file.
27065 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
27066 is imported from the VxWorks kernel.
27068 2005-06-14 Robert Dewar <dewar@adacore.com>
27070 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
27071 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
27072 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
27073 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
27074 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
27075 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
27076 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
27077 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
27078 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
27079 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
27080 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
27081 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
27083 2005-06-14 Thomas Quinot <quinot@adacore.com>
27085 * xeinfo.adb: Fix typo in comment
27087 2005-06-14 Javier Miranda <miranda@adacore.com>
27089 * repinfo.ads: Fix typo in comment
27091 2005-06-14 Gary Dismukes <dismukes@adacore.com>
27093 * s-finimp.adb (Parent_Tag): Delete this imported function (function
27094 Parent_Tag is now in the visible part of Ada.Tags).
27095 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
27096 using imported function.
27098 2005-06-14 Bernard Banner <banner@adacore.com>
27100 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
27101 also apply for handling support for VxSim 653.
27103 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
27105 * xsnames.adb: Add automatic generation of snames.h.
27107 2005-06-14 Thomas Quinot <quinot@adacore.com>
27109 * gen-soccon.c: Add IP_MULTICAST_IF constant
27110 Minor reformatting and adjustments to prevent warnings.
27112 2005-06-14 Pascal Obry <obry@adacore.com>
27114 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
27116 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
27118 * trans.c (gnat_gimplify_expr): Call
27119 recompute_tree_invarant_for_addr_expr when we change
27120 the operand of the ADDR_EXPR.
27122 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27124 * misc.c: Don't include errors.h.
27126 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27128 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
27130 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
27132 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
27134 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
27136 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
27139 * Makefile.in: Make TGT_LIB behave correctly.
27141 2005-04-23 DJ Delorie <dj@redhat.com>
27143 * misc.c: Adjust warning() callers.
27145 2005-04-16 Laurent Guerby <laurent@guerby.net>
27148 * a-nudira.adb (Value): Check for valid string.
27149 * a-nuflra.adb (Value): Likewise.
27151 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
27153 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
27155 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
27157 * adaint.c, init.c, tracebak.c: Fix comment typos.
27158 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
27160 2005-04-07 Laurent Guerby <laurent@guerby.net>
27161 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27163 * Makefile.in: Add make ifeq define for hppa linux tasking support.
27164 * system-hpux.ads: Define Signed_Zeros to be True.
27165 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
27167 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
27169 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
27170 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
27173 2005-03-30 Tom Tromey <tromey@redhat.com>
27175 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
27177 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27179 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
27181 2005-03-29 Robert Dewar <dewar@adacore.com>
27183 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
27184 fixed-point expression has value that is not a multiple of the Small
27187 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
27189 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
27192 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
27194 2005-03-29 Vincent Celier <celier@adacore.com>
27196 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
27197 (Build_Dynamic_Library.Version_String): Return the empty string when
27198 Lib_Version is empty or when the symbol policy is not Autonomous.
27200 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
27201 a symbol is not in the reference symbol file, increase the Major ID
27202 and set the Minor ID to 0.
27203 Use gsmatch=lequal instead of gsmatch=equal
27205 2005-03-29 Doug Rupp <rupp@adacore.com>
27207 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
27208 name and translate.
27210 2005-03-29 Javier Miranda <miranda@adacore.com>
27212 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
27213 (Inherit_DT): The first formal has been redefined as a Tag.
27214 This allows us the removal of the subprogram Get_TSD.
27215 (TSD): Replace the call to Get_TSD by the actual code.
27217 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
27218 (Make_DT): Upgrade the call to Inherit_TSD according to the
27219 new interface: the first formal is now a Tag.
27221 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
27222 redefined as a Tag.
27223 This change allows us to remove the subprogram Get_TSD.
27224 (CPP_Get_TSD): Subprogram removed.
27225 (TSD): Replace the call to CPP_Get_TSD by the actual code.
27227 * rtsfind.ads: Remove support to call the run-time
27230 2005-03-29 Robert Dewar <dewar@adacore.com>
27232 * errutil.adb, errout.adb:
27233 Minor comment updates on Line_Terminator references
27235 * par-ch10.adb: Add ??? comment about line terminator
27237 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
27238 (check dos line terminator).
27239 (Check_Line_Max_Length): New procedure, split off from the existing
27240 Check_Line_Terminator routine. Separating this out allows -gnatyf to
27241 be properly recognized.
27243 * styleg.adb: Add ??? comment for line terminator reference
27245 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
27246 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
27248 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
27249 (check dos line terminator).
27250 (Check_Line_Max_Length): New procedure, split off from the existing
27251 Check_Line_Terminator routine. Separating this out allows -gnatyf to
27252 be properly recognized.
27254 * stylesw.ads, stylesw.adb:
27255 Add handling for new -gnatyd switch (check dos line terminator)
27257 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
27258 Recognize -gnatwb/-gnatwB switches
27259 Include Warn_On_Bad_Fixed_Value for -gnatg
27262 Add line for new -gnatyd switch (check dos line terminator)
27264 * usage.adb: Add lines for -gnatwb/-gnatwB
27266 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
27268 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
27270 * gnat_ugn.texi: Fix overlong lines
27271 Document new -gnatyd switch
27272 Document new -gnatwb/-gnatwB switches
27274 2005-03-29 Ed Schonberg <schonberg@adacore.com>
27276 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
27277 order to retrieve the component list of the type, before examining
27278 individual components.
27280 * sem_type.adb (Covers): Types are compatible if one is the base type
27281 of the other, even though their base types might differ when private
27282 views are involved.
27284 2005-03-29 Thomas Quinot <quinot@adacore.com>
27286 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
27287 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
27288 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
27289 analyzed if expansion is disabled (which could otherwise cause spurious
27290 error messages if expansion has been disabled due to previous
27291 (unrelated) errors).
27293 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
27294 is disabled, the entity denoted by the argument is the access type
27295 itself, not an underlying record type, so there is no need to go back
27296 to the Corresponding_Remote_Type.
27298 2005-03-29 Gary Dismukes <dismukes@adacore.com>
27299 Robert Dewar <dewar@adacore.com>
27301 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
27302 expand a call to an instance of
27303 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
27304 Constructor actual of the instance. A class-wide membership
27305 check is also generated, to ensure that the tag passed to the instance
27306 denotes a type in the class.
27307 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
27308 of Name_Generic_Dispatching_Constructor.
27310 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
27311 05 unit for AI-260-02).
27313 * a-tgdico.ads: New file.
27315 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
27316 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
27318 * snames.ads, snames.adb (Preset_Names): Add entry for
27319 Generic_Dispatching_Constructor.
27322 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
27323 character type cases.
27324 (Analyze_Subprogram_Renaming): Add special handling for
27325 the case of renaming of stream attributes when the renaming denotes a
27326 generic formal subprogram association for an abstract formal subprogram.
27327 Check that the attribute is a primitive stream attribute (and not
27328 a class-wide stream attribute) and then rewrite the attribute name
27329 as the name of the appropriate compiler-generated stream primitive.
27331 2005-03-29 Robert Dewar <dewar@adacore.com>
27333 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
27335 (Is_Possibly_Unaligned_Object): Correct typo that
27336 resulted in inaccurate result for unaligned scalars within records.
27338 2005-03-29 Ed Schonberg <schonberg@adacore.com>
27340 * freeze.adb (Freeze_Record_Type): If the type of the component is an
27341 itype whose parent is controlled and not yet frozen, do not create a
27342 freeze node for the itype if expansion is disabled.
27344 2005-03-29 Vincent Celier <celier@adacore.com>
27346 * make.adb (Gnatmake): Don't fail if the main project file is declared
27347 as having no Ada sources. Do not display message "no sources to
27348 compile" in quiet output.
27350 2005-03-29 Doug Rupp <rupp@adacore.com>
27352 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
27355 2005-03-29 Robert Dewar <dewar@adacore.com>
27357 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
27360 2005-03-29 Robert Dewar <dewar@adacore.com>
27362 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
27363 missing TYPE Improve the error message generated when compiling a
27364 limited interface in Ada83 or Ada95 mode.
27366 2005-03-29 Robert Dewar <dewar@adacore.com>
27368 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
27369 rather than proceed ahead using a junk attribute name.
27371 2005-03-29 Vincent Celier <celier@adacore.com>
27373 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
27375 * prj-part.adb (Parse_Single_Project): Set the location of a project
27376 on its defining identifier, rather than on the reserved word "project".
27378 * prj-proc.adb (Expression): Adapt to the fact that default of external
27379 references may be string expressions, not always literal strings.
27380 (Recursive_Process): Set Display_Name equal to Name
27381 when Location is No_Location, that is when there is no actual file.
27382 Get the Display_Name of the project from the source, when it is not a
27384 (Process): Use the Display_Name in error messages
27386 * prj-strt.adb (External_Reference): Allow default to be string
27387 expressions, not only literal strings.
27389 2005-03-29 Vincent Celier <celier@adacore.com>
27391 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
27392 file and the reference symbol file to be the same file.
27394 2005-03-29 Thomas Quinot <quinot@adacore.com>
27396 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
27397 forbid conversion of a local access-to-subprogram type to a remote one.
27399 * sem_util.adb (Wrong_Type): For a record type that is the expanded
27400 equivalent type for a remote access-to-subprogram type, go back to the
27401 original RAS entity when displaying an error message, so the casing is
27402 the original source casing.
27404 2005-03-29 Robert Dewar <dewar@adacore.com>
27406 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
27409 2005-03-29 Ed Schonberg <schonberg@adacore.com>
27411 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
27412 subtype if code is being pre-analyzed, to prevent un-expanded
27413 references to protected formals, among others.
27414 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
27415 interpretation that can be a call, include the result of the call as a
27416 possible interpretation of the dereference.
27418 * sem_ch5.adb (Process_Bounds): Determine type of range by
27419 pre-analyzing a copy of the original range, and then analyze the range
27420 with the expected type.
27422 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
27423 with an overloaded prefix where not all interpretations yield an
27424 access to subprogram, do not rewrite node as a call.
27425 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
27426 the node as a call once the context identifies the interpretation of
27427 the prefix whose call yields the context type.
27428 (Valid_Conversion): For the case of a conversion between
27429 local access-to-subprogram types, check subtype conformance using
27430 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
27431 detailed error message.
27433 2005-03-29 Ed Schonberg <schonberg@adacore.com>
27435 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
27436 indicator, indicate that the formal can never be null.
27437 (Process_Formals): If a formal has a non_null indicator, insert the
27438 resulting subtype immediately before the enclosing subprogram decl,
27439 and not at the beginning of the corresponding declarative part, to
27440 prevent access before elaboration (Ada2005).
27442 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27445 * utils.c (finish_record_type): Use variable_size when setting sizes.
27447 2005-03-29 Robert Dewar <dewar@adacore.com>
27449 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
27450 guarantee Unix style line terminators for the output files, even when
27451 running on windows.
27453 2005-03-29 Robert Dewar <dewar@adacore.com>
27455 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
27456 buffer if an exception is raised.
27458 2005-03-29 Ed Falis <falis@adacore.com>
27460 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
27463 2005-03-29 Robert Dewar <dewar@adacore.com>
27465 * sem_util.ads: Minor reformatting
27466 * gnat_rm.texi: Minor editing.
27468 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
27470 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
27471 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
27473 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27475 * adaint.c (__gnat_portable_spawn): Adjust cast.
27477 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
27479 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
27481 2005-03-17 Pascal Obry <obry@adacore.com>
27483 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
27486 * expect.c (__gnat_waitpid): Moved here from adaint.c.
27487 Reimplement under Win32 using Win32 API.
27489 (__gnat_kill) [Win32]: Properly close the process handle before leaving
27492 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
27494 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
27495 (DECL_RENAMED_OBJECT): New accessor macro.
27496 (SET_DECL_RENAMED_OBJECT): New setter macro.
27498 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
27499 object in all cases. Attach the renamed object to the VAR_DECL.
27500 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
27501 field is not prescribed.
27503 * misc.c (gnat_handle_option): Handle -gnatO separately.
27504 (gnat_print_decl) <VAR_DECL>: New case.
27505 Print the DECL_RENAMED_OBJECT node.
27507 * lang.opt: Declare separate -gnatO option.
27509 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
27510 pointer, replace it with the renamed object.
27511 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
27512 pointer type if the source is not a fat pointer type whose underlying
27513 array has the same non-zero alias set as that of the destination array.
27515 2005-03-17 Javier Miranda <miranda@adacore.com>
27517 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
27518 (Get_Inheritance_Depth): Removed.
27519 (Set_Inheritance_Depth): Removed.
27521 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
27522 subprogram Get_Expanded_Name because it is not referenced by the
27525 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
27526 (CPP_Get_Inheritance_Depth): Removed.
27527 (CPP_Set_Inheritance_Depth): Removed.
27529 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
27531 2005-03-17 Robert Dewar <dewar@adacore.com>
27533 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
27534 3, since we now expect GCC 3 to do all the work.
27536 2005-03-17 Javier Miranda <miranda@adacore.com>
27538 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
27539 of one barrier to avoid wrong usage of this attribute.
27541 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
27542 First_Private_Entity.
27544 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
27545 the subprogram against wrong usage.
27546 Adapt the code to traverse the entities in the
27547 scope of a record_type because in addition to its usage regarding
27548 packages, this subprogram is also called by Expand_N_Freeze_Entity
27549 to install the visible declarations of the enclosing scope of a
27550 record_type_with_private to establish the proper visibility before
27551 freezing the entity and related subprograms.
27553 2005-03-17 Ed Schonberg <schonberg@adacore.com>
27555 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
27558 2005-03-17 Thomas Quinot <quinot@adacore.com>
27560 * exp_ch3.adb (Check_Attr): New subprogram.
27561 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
27562 into a new Check_Attr subprogram, in order to provide a more
27563 explanatory error message (including the name of the missing attribute).
27564 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
27565 subprogram determines whether a default implementation exists for a
27566 given stream attribute.
27567 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
27568 Determine whether to generate a default implementation for each stream
27569 attribute separately, as this depends on the specific attribute.
27571 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
27572 limited extension where a stream attribute is missing for a limited
27573 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
27574 generate a bogus reference to the missing attribute to prevent
27575 cascaded errors. Instead, generate a null statement.
27577 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
27578 available for a limited type if it has been specified for an ancestor
27581 2005-03-17 Ed Schonberg <schonberg@adacore.com>
27583 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
27584 entity is an operator.
27586 2005-03-17 Thomas Quinot <quinot@adacore.com>
27588 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27589 spec, to make this predicate available to other units.
27591 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
27594 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
27595 when no distribution runtime library is available.
27597 * sem_res.adb, sem_dist.adb: Disable expansion of remote
27598 access-to-subprogram types when no distribution runtime library is
27600 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
27601 predicate available to other units.
27603 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27604 spec, to make this predicate available to other units.
27606 2005-03-17 Vincent Celier <celier@adacore.com>
27608 * make.adb (Insert_Project_Sources): Make sure the Q is always
27611 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
27612 the default for the tree, not the global default naming.
27614 * prj-proc.adb (Recursive_Process): No need to put the default naming
27615 in the project data, it's already there.
27617 2005-03-17 Doug Rupp <rupp@adacore.com>
27619 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
27621 * 5xcrtl.ads: Renamed to...
27622 * s-crtl-vms64.ads: ...this new file
27624 2005-03-17 Robert Dewar <dewar@adacore.com>
27627 * namet.adb (Copy_One_Character): Set proper wide character encoding
27628 for upper half character if we have upper half encoding.
27630 2005-03-17 Robert Dewar <dewar@adacore.com>
27632 * par.adb (Par): Improved msg for attempt to recompile predefined unit
27634 2005-03-17 Thomas Quinot <quinot@adacore.com>
27636 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
27637 tagged limited type, the TSS is a newly built renaming declaration:
27638 insert it using Set_TSS, not Copy_TSS.
27640 2005-03-17 Javier Miranda <miranda@adacore.com>
27642 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
27643 Try_Object_Operation): Analyze the object that is accessible
27644 through the prefix of the subprogram call before we apply
27645 the transformation of the object-operation notation.
27647 2005-03-17 Jose Ruiz <ruiz@adacore.com>
27649 * s-taprob.adb (Initialize_Protection): Initialize the protected
27650 object's owner to Null_Task.
27651 (Lock): If pragma Detect_Blocking is in effect and the caller of this
27652 procedure is already the protected object's owner then Program_Error
27653 is raised. In addition the protected object's owner is updated.
27654 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
27655 of this procedure is already the protected object's owner then
27656 Program_Error is raised.
27657 In addition the protected object's owner is updated.
27658 (Unlock): Remove the ownership of the protected object.
27660 * s-taprob.ads (Protection): Add the field Owner, used to store the
27661 protected object's owner.
27662 This component is needed for detecting one type of potentially blocking
27663 operations (external calls on a protected subprogram with the same
27664 target object as that of the protected action). Document the rest of
27667 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
27668 Initialize the protected object's owner to Null_Task.
27669 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
27670 caller of this procedure is already the protected object's owner then
27671 Program_Error is raised.
27672 Do not raise Program_Error when this procedure is called from a
27674 (Unlock_Entries): Remove the ownership of the protected object.
27675 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
27676 of this procedure is already the protected object's owner then
27677 Program_Error is raised.
27678 Do not raise Program_Error when this procedure is called from
27679 a protected action.
27681 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
27682 used to store the protected object's owner.
27684 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
27685 effect and this procedure (a potentially blocking operation) is called
27686 from whithin a protected action, Program_Error is raised.
27687 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27688 and this procedure (a potentially blocking operation) is called from
27689 whithin a protected action, Program_Error is raised.
27691 2005-03-17 Vincent Celier <celier@adacore.com>
27692 Nicolas Setton <setton@adacore.com>
27694 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27695 switch, not supported by the linker on Darwin. Add '_' before
27696 <library>init, as this character is added unconditionally by the
27698 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27699 correct one ".dylib". This fixes detection of the archive files when
27700 building library projects.
27702 2005-03-17 Vincent Celier <celier@adacore.com>
27704 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27705 -gnat83, -gnat95 and -gnat05.
27707 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
27709 * gnat_ugn.texi: Document gnatmem restriction
27711 2005-03-17 Thomas Quinot <quinot@adacore.com>
27713 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27716 2005-03-17 Robert Dewar <dewar@adacore.com>
27718 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27719 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27720 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27722 * casing.adb: Comment improvements
27724 2005-03-17 Pascal Obry <obry@adacore.com>
27726 * g-expect.adb: Minor reformatting.
27728 2005-03-15 Zack Weinberg <zack@codesourcery.com>
27730 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27731 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27734 2005-03-15 Vincent Celier <celier@adacore.com>
27736 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27737 Add new parameter In_Tree to specify the project tree: needed
27738 by the project manager. Adapt to changes in project manager
27739 using new parameter In_Tree.
27741 2005-03-15 Jakub Jelinek <jakub@redhat.com>
27743 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27744 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27745 ada/bldtools to avoid make -jN failures.
27747 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27749 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27750 to NULL_TREE on entry.
27752 2005-03-15 Robert Dewar <dewar@adacore.com>
27754 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27755 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27756 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27757 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27758 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27759 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27760 system-interix.ads, system-solaris-sparc.ads,
27761 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27762 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27763 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27764 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27765 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27766 Compiler_System_Version to be False.
27768 * opt.ads: Add new flag Opt.Address_Is_Private
27770 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27771 Add new parameter Compiler_System_Version to avoid checking for
27772 completeness of parameters when compiler is compiling itself.
27773 Allows old versions of GNAT to be compiled with new compiler.
27775 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27777 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27778 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27780 (Stack_Base_Available): New flag.
27781 (Get_Page_Size): New overloaded functions imported from C.
27782 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27783 PROT_ON, PROT_OFF): New constants.
27784 (mprotect): New function imported from C.
27785 (pthread_teb_t): New record type.
27787 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27788 (Create_Task): Account for the Yellow Zone and the guard page.
27790 2005-03-15 Vincent Celier <celier@adacore.com>
27792 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27793 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27794 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27795 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27796 Library_File_Name_For): Add new parameter In_Tree
27797 to specify the project tree: needed by the project manager.
27798 Adapt to changes in project manager using new parameter In_Tree.
27799 Remove local imports, use functions in System.CRTL.
27801 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27802 to use the project manager.
27804 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27805 In_Tree to designate the project tree. Adapt to changes in the project
27806 manager, using In_Tree.
27808 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27809 Copy_Interface_Sources): Add new parameter In_Tree to specify the
27810 project tree: needed by the project manager.
27811 (Build_Library): Check that Arg'Length >= 6 before checking if it
27812 contains "--RTS=...".
27814 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27815 Library_File_Name_For): Add new parameter In_Tree to specify the
27816 project tree: needed by the project manager.
27818 * prj.ads, prj.adb: Major modifications to allow several project trees
27819 in memory at the same time.
27820 Change tables to dynamic tables and hash tables to dynamic hash
27821 tables. Move tables and hash tables from Prj.Com (in the visible part)
27822 and Prj.Env (in the private part). Move some constants from the visible
27823 part to the private part. Make other constants deferred.
27824 (Project_Empty): Make it a variable, not a function
27825 (Empty_Project): Add parameter Tree. Returns the data with the default
27826 naming data of the project tree Tree.
27827 (Initialize): After updating Std_Naming_Data, copy its value to the
27828 component Naming of Project Empty.
27829 (Register_Default_Naming_Scheme): Use and update the default naming
27830 component of the project tree, instead of the global variable
27832 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27833 Tree is not defaulted, return the default naming data of the Tree.
27834 (Initial_Buffer_Size): Constant moved from private part
27835 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27836 variables initialized in procedure Initialize.
27837 (Add_To_Buffer): Add two in out parameters to replace global variables
27838 Buffer and Buffer_Last.
27839 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27841 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27843 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27844 for the project tree.
27845 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27846 constant at the beginning of the package spec, so that they cane be used
27847 in subprograms before their full declarations.
27848 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27849 (Empty_Project): Add parameter of type Project_Node_Ref
27850 (Private_Project_Tree_Data): Add component Default_Naming of type
27852 (Buffer, Buffer_Last): remove global variables
27853 (Add_To_Buffer): Add two in out parameters to replace global variables
27854 Buffer and Buffer_Last.
27855 (Current_Packages_To_Check): Remove global variable
27856 (Empty_Name): Move to private part
27857 (No-Symbols): Make it a constant
27858 (Private_Project_Tree_Data): New type for the private part of the
27860 (Project_Tree_Data): New type for the data of a project tree
27861 (Project_Tree_Ref): New type to designate a project tree
27862 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27863 for the project tree.
27865 * prj-attr.ads: Add with Table; needed, as package Prj no longer
27866 imports package Table.
27868 * prj-com.adb: Remove empty, no longer needed body
27870 * prj-com.ads: Move most of the content of this package to package Prj.
27872 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27873 designate the project node tree and Packages_To_Check to replace
27874 global variable Current_Packages_To_Check.
27875 Add new parameters In_Tree and Packages_To_Check to local subprograms,
27876 when needed. Adapt to changes in project manager with project node tree
27879 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27880 project tree to most subprograms. Move tables and hash tables to
27881 private part of package Prj.
27882 Adapt to changes in project manager using project tree In_Tree.
27884 * prj-makr.adb (Tree): New constant to designate the project node tree
27885 Adapt to change in project manager using project node tree Tree
27887 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27888 display the Library_Src_Dir and the Library_Dir.
27889 Add new parameter In_Tree to designate the project node tree to most
27890 subprograms. Adapt to changes in the project manager, using project tree
27892 (Check_Naming_Scheme): Do not alter the casing on platforms where
27893 the casing of file names is not significant.
27894 (Check): Add new parameter In_Tree to designate the
27896 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27897 designate the project tree.
27898 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27900 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27901 to replace those that were in the private part of package Prj.
27902 Add new parameter In__Tree to designate the project node tree to most
27903 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27904 (Post_Parse_Context_Clause): When specifying the project node of a with
27905 clause, indicate that it is a limited with only if there is "limited"
27906 in the with clause, not necessarily when In_Limited is True.
27907 (Parse): Add new parameter In_Tree to designate the project node tree
27909 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27910 designate the project node tree. Adapt to change in Prj.Tree with
27911 project node tree In_Tree.
27913 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27914 tree In_Tree in the call to function Empty_Process to give its initial
27915 value to the project data Processed_Data.
27916 Add new parameters In_Tree to designate the project tree and
27917 From_Project_Node_Tree to designate the project node tree to several
27918 subprograms. Adapt to change in project manager with project tree
27919 In_Tree and project node tree From_Project_Node_Tree.
27921 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27922 to replace those that were in the private part of package Prj.
27923 Add new parameter In_Tree to designate the project node tree to most
27924 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27926 * prj-tree.ads, prj-tree.adb: Add new parameter of type
27927 Project_Node_Tree_Ref to most subprograms.
27928 Use this new parameter to store project nodes in the designated project
27930 (Project_Node_Tree_Ref): New type to designate a project node tree
27931 (Tree_Private_Part): Change table to dynamic table and hash tables to
27932 dynamic hash tables.
27934 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27935 the project tree to most subprograms. Adapt to changes in project
27936 manager using project tree In_Tree.
27938 * makegpr.adb (Project_Tree): New constant needed to use project
27941 2005-03-15 Olivier Hainque <hainque@adacore.com>
27943 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27944 for sigactions with SA_SIGINFO set. Call
27945 __gnat_adjust_context_for_raise before raising, to perform the
27946 potentially required adjustments to the machine context for the GCC
27949 * raise.h (__gnat_adjust_context_for_raise): New prototype.
27951 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27952 Adjust PC by one in the provided machine context.
27953 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27954 so that the handler is passed the context structure to adjust prior to
27956 (__gnat_error_handler) HPUX: Adjust the signature to match what an
27957 SA_SIGINFO sigaction should look like. Call
27958 __gnat_adjust_context_for_raise before actually raising.
27959 (__gnat_adjust_context_for_raise): Default noop to help PC
27960 adjustments before raise from signal handlers.
27961 (__gnat_error_handler): Indirectly call a predicate function to
27962 determine if a condition should be resignaled or not.
27963 (__gnat_set_resignal_predicate): User interface to modify the predicate.
27964 (__gnat_default_resignal_p): Default GNAT predicate.
27966 2005-03-15 Doug Rupp <rupp@adacore.com>
27968 * adaint.c: Prefix #include of VMS system header files with vms/
27969 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27970 Do not define a dummy function "convert_addresses" under Darwin,
27973 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27976 2005-03-15 Nicolas Setton <setton@adacore.com>
27978 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27981 2005-03-15 Robert Dewar <dewar@adacore.com>
27983 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27986 * a-retide.ads: Minor comment changes
27988 2005-03-15 Robert Dewar <dewar@adacore.com>
27990 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27991 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27992 Realloc_For_Chunk to private part of package.
27993 New subprograms for AI-301
27995 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27996 Get_Line procedure.
27997 Avoid unnecessary use of Get/Set_Wide_String
27999 2005-03-15 Robert Dewar <dewar@adacore.com>
28002 * a-stunau.ads, a-stunau.adb:
28003 Change interface to allow efficient (and correct) implementation
28004 The previous changes to allow extra space in unbounded strings had
28005 left this interface a bit broken.
28007 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
28009 * g-spipat.ads, g-spipat.adb: New interface for Get_String
28010 Minor reformatting (function specs)
28012 * g-spitbo.adb: New interface for Get_String
28014 * g-spitbo.ads: Minor reformatting
28016 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
28018 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
28020 2005-03-15 Javier Miranda <miranda@adacore.com>
28021 Robert Dewar <dewar@adacore.com>
28022 Thomas Quinot <quinot@adacore.com>
28023 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28025 * atree.ads, atree.adb: Add support for Elist24 field
28027 * atree.h: Fix wrong definition of Field27
28028 Add support for Elist16 field
28029 Add support for Elist24 field
28031 * einfo.ads, einfo.adb (Abstract_Interfaces,
28032 Set_Abstract_Interfaces): New subprograms.
28033 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
28035 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
28036 entities rather than a single node.
28037 (Is_Interface, Set_Is_Interface): New subprogram
28038 (First_Tag_Component): New syntesized attribute
28039 (Next_Tag_Component): New synthesized attribute
28040 (Write_Entity_Flags): Upgraded to write Is_Interface
28041 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
28042 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
28043 (Task_Body_Procedure): New subprogram to read this attribute.
28044 (Set_Task_Body_Procedure): New subprogram to set this attribute.
28045 (Has_Controlled_Component): Now applies to all entities.
28046 This is only a documentation change, since it always worked to apply
28047 this to other than composite types (yielding false), but now this is
28049 Update documentation on Must_Be_Byte_Aligned for new spec
28051 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
28052 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
28053 uses of the Access_Disp_Table attribute to reference the first dispatch
28054 table associated with a tagged type. As
28055 part of the implementation of abstract interface types,
28056 Access_Disp_Table has been redefined to contain a list of dispatch
28057 tables (rather than a single dispatch table).
28058 Similarly, upgrade all the references to Tag_Component by the
28059 new attribute First_Tag_Component.
28060 (Find_Inherited_TSS): Moved to exp_tss.
28061 Clean up test in Expand_N_Object_Declaration for cases
28062 where we need to do a separate assignment of the initial value.
28063 (Expand_N_Object_Declaration): If the expression in the
28064 declaration of a tagged type is an aggregate, no need to generate an
28065 additional tag assignment.
28066 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
28068 Bit packed array ops are only called if operands are known to be
28070 (Component_Equality): When returning an N_Raise_Program_Error statement,
28071 ensure that its Etype is set to Empty to avoid confusing GIGI (which
28072 expects that only expressions have a bona fide type).
28073 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
28074 determine the amount of data to be copied.
28076 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
28077 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
28078 INTERFACE_TYPE_DEFINITION ::=
28079 [limited | task | protected | synchronized] interface
28080 [AND interface_list]
28082 * par-ch3.adb (P_Type_Declaration): Modified to give support to
28084 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
28086 (P_Interface_Type_Definition): New subprogram that parses the new
28087 syntax rule of Ada 2005 interfaces
28088 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
28089 messages by the correct RENAMES (quotes removed).
28091 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
28092 attribute First_Tag_Component.
28094 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
28095 (Interface_List, Set_Interface_List): New subprograms.
28096 (Interface_Present, Set_Interface_Present): New subprograms.
28097 (Limited_Present, Set_Limited_Present): Available also in derived
28098 type definition nodes.
28099 (Protected_Present, Set_Protected_Present): Available also in
28100 record type definition and
28101 derived type definition nodes.
28102 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
28103 (Task_Present, Set_Task_Present): New subprogram.
28104 (Task_Body_Procedure): Removed.
28105 (Set_Task_Body_Procedure): Removed.
28106 These subprogram have been removed because the attribute
28107 Task_Body_Procedure has been moved to the corresponding task type
28108 or task subtype entity to leave a field free to store the list
28109 of interfaces implemented by a task (for AI-345)
28110 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
28111 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
28112 expression flag Do_Range_Check
28113 (Exception_Junk): Change to Flag7 to accomodate above change
28114 (Box_Present, Default_Name, Specification, Set_Box_Present,
28115 Set_Default_Name, Set_Specification): Expand the expression
28116 "X in N_Formal_Subprogram_Declaration" into the corresponding
28117 two comparisons. Required to use the csinfo tool.
28119 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
28120 "with string" given.
28122 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
28125 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
28128 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
28129 attribute Task_Body_Procedure rather than the old semantic field that
28130 was available in the task_type_declaration node.
28132 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
28133 interface type definitions.
28134 (P_Formal_Derived_Type_Definition): Modified to handle the list of
28137 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
28138 task type declaration.
28139 (P_Protected): Modified to handle the list of interfaces in a
28140 protected type declaration.
28142 2005-03-15 Doug Rupp <rupp@adacore.com>
28143 Vincent Celier <celier@adacore.com>
28145 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
28146 (Gen_Output_File_C): Likewise.
28147 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
28149 2005-03-15 Thomas Quinot <quinot@adacore.com>
28151 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
28152 is an N_Raise_Constraint_Error node, create a new copy of it without
28153 going through a call to Duplicate_Subexpr.
28155 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28156 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28157 Nicolas Setton <setton@adacore.com>
28158 Ed Schonberg <schonberg@adacore.com>
28164 * decl.c (gnat_to_gnu_field): Reject aliased components with a
28165 representation clause that prescribes a size not equal to the rounded
28166 size of their types.
28167 (gnat_to_gnu_entity, case E_Component): Always look at
28168 Original_Record_Component if Present and not the entity.
28169 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
28170 of tagged extension types by not making field for components that are
28172 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
28173 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
28174 expression to the type of the object when the object is constant.
28175 Reverse defer_debug_incomplete_list before traversing it, so that trees
28176 are processed in the order at which they were added to the list. This
28177 order is important when using the stabs debug format.
28178 If we are deferring the output of debug information, also defer this
28179 output for a function return type.
28180 When adding fields to a record, prevent emitting debug information
28181 for incomplete records, emit the information only when the record is
28183 (components_to_record): New parameter defer_debug.
28184 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
28185 (gnat_to_gnu_field_decl): New function.
28186 (substitution_list, annotate_rep): Call it.
28187 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
28188 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
28189 No longer update discriminants to not be a COMPONENT_REF.
28190 (copy_alias_set): Strip padding from input type; also handle
28191 unconstrained arrays properly.
28193 * gigi.h (write_record_type_debug_info): New function.
28194 Convert to use ANSI-style prototypes. Remove unused
28195 declarations for emit_stack_check, elab_all_gnat and
28196 set_second_error_entity.
28197 (gnat_to_gnu_field_decl): New decl.
28199 * utils.c (write_record_type_debug_info): New function.
28200 (finish_record_type): Delegate generation of debug information to
28201 write_record_type_debug_info.
28202 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
28203 (update_pointer_to): Fix pasto.
28204 (convert) <UNION_TYPE>: Accept slight type variations when
28205 converting to an unchecked union type.
28207 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
28208 replace the N_Freeze_Entity with a null statement.
28210 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
28211 within a constrained subcomponent of an enclosing record, place the
28212 freeze nodes in the scope stack entry for the enclosing record.
28213 (Undelay_Type): New Subprogram.
28214 (Set_Small_Size): Pass T, the type to modify; all callers changed.
28215 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
28216 within records; allow them to have freeze nodes if their base types
28219 * exp_util.adb (Remove_Side_Effects): Properly test for
28220 Expansion_Delayed and handle case when it's inside an
28221 N_Qualified_Expression.
28223 * sem_ch3.adb (Derived_Type_Declaration): New predicate
28224 Comes_From_Generic, to recognize accurately that the parent type in a
28225 derived type declaration can be traced back to a formal type, because
28226 it is one or is derived from one, or because its completion is derived
28228 (Constrain_Component_Type): If component comes from source and has no
28229 explicit constraint, no need to constrain in in a subtype of the
28231 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
28232 Minor change to propagate Is_Ada_2005 flag
28234 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
28235 Expansion_Delayed is False.
28236 (assoc_to_constructor): Ignore fields that have a
28237 Corresponding_Discriminant.
28238 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
28239 function returns "by target", dereference the target pointer using the
28240 type of the actual return value.
28241 <all>: Be prepared for a null gnu_result.
28242 (processed_inline_subprograms): Check flag_really_no_inline
28243 instead of flag_no_inline.
28244 (set_second_error_entity): Remove unused function.
28245 (gnat_to_gnu, case N_Selected_Component): Call
28246 gnat_to_gnu_field_decl.
28247 (assoc_to_constructor): Likewise.
28249 2005-03-15 Robert Dewar <dewar@adacore.com>
28250 Ed Schonberg <schonberg@adacore.com>
28251 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28253 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
28254 Must_Be_Byte_Aligned for cases where we do not need to use a
28255 System.Pack_nn unit.
28257 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
28259 Needed now that we do some processing for IN parameters as well. This
28260 may well fix some unrelated errors.
28261 (Expand_Call): Handle case of unaligned objects (in particular those
28262 that come from packed arrays).
28263 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
28264 renamed entity is an inherited operation, re-expand the call using the
28265 original operation, which is the one to call.
28266 Detect attempt to inline parameterless recursive subprogram.
28267 (Represented_As_Scalar): Fix to work properly with private types
28268 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
28269 accurate estimate. Yields True in far fewer cases than before,
28270 improving the quality of code that depends on this test.
28272 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
28273 over both visible and private declarations to remove them from tree,
28274 and mark subprograms declared in package as eliminated, to prevent
28275 spurious use in subsequent compilation of generic units in the context.
28277 * exp_util.ads: Minor cleanup in variable names
28279 * sem_eval.ads, sem_eval.adb: Minor reformatting
28280 (Compile_Time_Known_Bounds): New function
28282 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28284 * exp_ch7.adb (Convert_View): Use base types of underlying types when
28285 determining whether an unchecked conversion is needed for the argument
28286 of an initialization call.
28288 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28290 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
28291 that appears in the instantiation rather than the internal subtype
28292 generated in the wrapper package, to avoid anomalies in gigi when the
28293 target is derived from a private type whose full view is an access type.
28295 2005-03-15 Robert Dewar <dewar@adacore.com>
28297 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
28299 Add documentation to replace the use of this flag
28300 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
28303 2005-03-15 Thomas Quinot <quinot@adacore.com>
28305 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
28306 here from exp_attr so it can be shared between exp_attr and exp_dist.
28307 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
28308 all TSS names, not a subset thereof, and the previous name introduced
28309 an unnecessarily confusion that a distinction might exist between
28310 "OK" TSS names and some "not OK" TSS names.
28312 2005-03-15 Doug Rupp <rupp@adacore.com>
28314 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
28317 2005-03-15 Pascal Obry <obry@adacore.com>
28318 Eric Botcazou <ebotcazou@adacore.com>
28322 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
28323 when IN_RTS. This is to work around a bootstrap path problem.
28325 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
28326 table and pass it to __gnat_install_SEH_handler().
28327 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
28329 * lang.opt: Fix specification of -fRTS=.
28331 2005-03-15 Doug Rupp <rupp@adacore.com>
28332 Bernard Banner <banner@adacore.com>
28333 Vincent Celier <celier@adacore.com>
28334 Arnaud Charlet <charlet@adacore.com>
28337 This change works fine when gnatlib is built from the gcc directory,
28338 but does not work when using the libada Makefile, since GCC_FOR_TARGET
28339 is not passed to ada/Makefile.in, so more work is needed by a
28340 Makefile/configure expert.
28342 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
28343 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
28344 Setup gnatlink switch -M for x86_64 linux, as it is already setup
28346 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
28347 Run ranlib on libgccprefix.a
28348 Define PREFIX_OBJS for Darwin, to build libgccprefix.
28349 (ADA_INCLUDE_SRCS): Split Ada packages.
28351 2005-03-15 Robert Dewar <dewar@adacore.com>
28353 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
28355 * impunit.adb: Add GNAT.UTF_32
28357 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
28359 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
28360 now uses GNAT.UTF_32).
28362 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
28363 capabilities for categorizing characters using Unicode categories
28365 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28367 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
28368 instantiation that has been rewritten as a package body, retrieve spec
28369 to generate proper name for implicit_with_clause.
28370 (Install_Parents): Recognize a parent that is an instantiation but has
28371 been rewritten as a package declaration during analysis.
28373 2005-03-15 Javier Miranda <miranda@adacore.com>
28374 Ed Schonberg <schonberg@adacore.com>
28376 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
28377 parameter reported some error we immediately return. This improves the
28378 behaviour of the frontend in case of errors.
28379 (Install_Parent, Remove_Parent): Introduce new flag
28380 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
28381 ancestor of a generic child unit, when the child is being instantiated.
28382 (Inline_Instance_Body): If we are compiling the private
28383 part or the body of a child unit, restore the proper visibility of the
28384 parents after compiling the instance body.
28386 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28387 Javier Miranda <miranda@adacore.com>
28390 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
28391 of a private type, in which case it is underlying_type that denotes
28392 the proper task. Also modified to use the new entity attribute
28393 that is directly available in the task type and task subtype entities
28394 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
28395 arrays when other dimensions than the first are constrained by
28396 discriminants of an enclosing record.
28397 (Insert_Explicit_Dereference): If the prefix is an indexed component or
28398 a combination of indexed and selected components, find ultimate entity
28399 and generate the appropriate reference for it, to suppress spurious
28401 (Note_Possible_Modification): If an entity name has no entity, return.
28402 (Is_Variable): A function call never denotes a variable.
28403 (Requires_Transient_Scope): For record types, recurse only on
28404 components, not on internal subtypes that may have been generated for
28405 constrained components.
28407 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28409 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
28410 Eliminated as candidates for resolution. Both efficient, and avoids
28411 anomalies with operators declared in deleted code.
28412 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
28413 expansion is disabled (as when compiling a generic) to prevent spurious
28414 warnings on prefixes of selected components.
28416 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28418 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
28419 attached to a list before checking whether it appears in the private
28420 declarations of the current package.
28421 (Make_Inequality_Operator): Insert declaration in proper declarative
28422 list rather than just setting the Parent field, so that
28423 Is_Private_Declaration can handle it properly.
28425 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28427 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
28428 a renaming a body, check that the renamed subprogram in not intrinsic.
28429 (Find_Direct_Name): If several use_visible entities hide
28430 each other, and the context is a predefined file compiled through
28431 rtsfind, keep only the entity that comes from a predefined file.
28433 2005-03-15 Geert Bosch <bosch@adacore.com>
28435 * s-fatgen.adb (Valid): Extend special exceptions to account for long
28436 long float padding to also cover AMD64 and IA64.
28438 2005-03-15 Gary Dismukes <dismukes@adacore.com>
28440 * s-imgwch.adb: Add with and use of Interfaces.
28441 (Img_Wide_Character): Change type of Val to Unsigned_16.
28442 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
28444 2005-03-15 Matthew Gingell <gingell@adacore.com>
28446 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
28448 2005-03-15 Robert Dewar <dewar@adacore.com>
28450 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
28452 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
28454 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
28456 2005-03-15 Robert Dewar <dewar@adacore.com>
28458 * s-bitops.adb, s-bitops.ads,
28459 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
28460 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
28461 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
28462 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
28463 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
28464 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
28465 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
28466 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
28469 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28471 * utils2.c (build_binary_op): Fix typo.
28473 2005-03-15 Doug Rupp <rupp@adacore.com>
28475 * s-crtl.ads (popen,pclose): New imports.
28477 2005-03-15 Cyrille Comar <comar@adacore.com>
28479 * comperr.adb (Compiler_Abort): remove references to obsolete
28480 procedures in the bug boxes for various GNAT builds.
28482 2005-03-15 Vincent Celier <celier@adacore.com>
28484 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
28486 2005-03-15 Geert Bosch <bosch@adacore.com>
28487 Arnaud Charlet <charlet@adacore.com>
28488 Robert Dewar <dewar@adacore.com>
28489 Cyrille Comar <comar@adacore.com>
28490 Sergey Rybin <rybin@adacore.com>
28492 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
28493 too specific and long-winded to be appropriate for the GNAT User's
28495 Warn about use of GCC switches not documented in the GNAT User's Guide,
28496 as these may cause generated code to not conform to Ada semantics.
28497 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
28498 Add documentation for -gnat95 and -gnat05 switches
28499 Remove paragraph documenting obsolete way to refer to third party
28501 Add a few references to Ada_05 that were missing.
28502 Update documentation on -gnatZ/-gnatL.
28503 Document limitation when using -m64 under Solaris.
28504 Change the "Name Casing" subsection of the pretty-printer section
28505 according to the changes in the dictionary processing.
28507 * gnat_rm.texi: Document the Ada_05 pragma.
28508 Section on record representation clauses describes the new more
28509 relaxed rules about placement of large packed bit array components.
28510 Add documentation of GNAT.UTF_32
28512 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
28514 * misc.c (gnat_post_options): Turn off structural
28517 2005-03-08 Laurent Guerby <laurent@guerby.net>
28519 * system-linux-sparc.ads: Fix typo in previous commit.
28521 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
28522 Laurent Guerby <laurent@guerby.net>
28525 * system-linux-sparc.ads: New.
28526 * Makefile.in: Add sparc linux entry.
28528 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
28530 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
28531 parameters as unused.
28533 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
28534 Partial merge from libada-gnattools-branch:
28536 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
28537 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
28538 into code in gnattools/Makefile.in. Remove direct dependencies on
28539 stamp-tools by tools clauses.
28540 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
28541 * config-lang.in: Add gnattools to $lang_dirs.
28543 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
28546 * utils.c (gnat_type_for_mode): Return null instead of ICE because
28547 we asked for an unknown mode.
28549 2005-02-12 Richard Henderson <rth@redhat.com>
28551 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
28552 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
28554 2005-02-10 Andreas Jaeger <aj@suse.de>
28556 * init.c (__gnat_initialize): Mark parameter as unused.
28558 2005-02-09 Doug Rupp <rupp@adacore.com>
28560 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
28561 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
28563 2005-02-09 Doug Rupp <rupp@adacore.com>
28565 * gnatchop.adb (dup, dup2),
28566 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
28568 * gnatlbr.adb (mkdir),
28569 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
28571 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
28573 2005-02-09 Doug Rupp <rupp@adacore.com>
28575 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
28577 2005-02-09 Robert Dewar <dewar@adacore.com>
28578 Thomas Quinot <quinot@adacore.com>
28579 Javier Miranda <miranda@adacore.com>
28580 Pascal Obry <obry@adacore.com>
28581 Ed Schonberg <schonberg@adacore.com>
28582 Doug Rupp <rupp@adacore.com>
28583 Gary Dismukes <dismukes@adacore.com>
28584 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28586 * g-zstspl.ads: New file.
28588 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
28590 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
28592 Add definition of Wide_Wide_Space for AI-285
28594 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
28595 interface (to support Ada 95 and Ada 2005 units).
28596 Add Unbounded_IO files
28597 Add entries for Wide_Wide packages for AI-285
28598 Add list of containers packages to Ada 2005 unit list
28600 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
28601 support new Unbounded_IO package cleanly.
28603 * g-utf_32.ads, g-utf_32.adb: New files.
28605 * Makefile.rtl: Add entry for g-utf_32
28606 Add new files for Unbounded_IO
28607 Adjust make file for new AI-285 wide wide packages
28608 Add AI-302 containers to the run time.
28610 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
28611 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
28612 subprograms for AI-301.
28614 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
28616 * a-stunau.ads: Minor comment correction
28618 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
28620 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
28621 (Check_RPC): Update to match changes in expanded code.
28622 Clean up unused entity.
28624 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
28625 was not taken into account.
28626 This includes proper initialization with Normalize_Scalars.
28627 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
28628 normalize scalars cases (particularly the latter) to do a better job
28629 of finding invalid representations.
28631 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
28633 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
28636 * exp_dist.adb: Add support for wide wide character type
28637 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
28638 private part, generate stub bodies at the end of the private part,
28639 not the visible part.
28640 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
28642 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
28643 generic wrapper to execute final processing after completing the
28644 expansion of the RPC receiver for an RACW.
28646 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
28647 packages and attributes.
28648 (Preset_Names): Addition of the new reserved words of Ada 2005,
28649 that is interface, overriding and synchronized.
28650 (Get_Pragma_Id): Give support to the use of the new reserved word
28651 "interface" as a pragma name.
28652 (Is_Pragma_Name): Give support to the use of the new reserved word
28653 "interface" as a pragma name.
28654 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
28655 attribute implementation.
28657 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
28658 checks to entities that are output parameters of Asm operations.
28659 Handle the Stream_Size attribute.
28660 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
28662 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
28664 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
28665 for second parameter being 0.0.
28666 Add support for wide wide character type.
28667 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
28669 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
28670 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
28671 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
28672 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
28673 for wide wide character cases.
28675 * cstand.adb: Create entities for Wide_Wide_Character and
28678 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
28679 accordance with AI-258.
28680 Add new declarations for 16/32 bit C character types (Part of AI285)
28682 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
28683 (Obsolescent_Warning): New field
28684 (Rep_Clause): New local subprogram used to share code. Returns the rep
28685 clause for which the name is given in parameter.
28686 (Has_Stream_Size_Clause): New routine.
28687 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28688 (Address_Clause): Implementation is now using Rep_Clause.
28689 (Alignment_Clause): Idem.
28690 (Size_Clause): Idem.
28692 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28693 entity in non-Ada 2005 mode and generate warning.
28695 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28696 (Prag): Code cleanup. Remove old gnat pragma "overriding"
28698 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28699 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28700 on the named unit if the pragma is not in the current compilation unit,
28701 so that elaboration calls in the current unit can set up an elaboration
28702 dependency on the named unit, as needed.
28703 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28704 subprogram as well as for subprograms declared within a package.
28705 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28708 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28709 to z) to avoid some instances of duplication for Wide_Wide packages.
28711 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28714 * scn.adb: Char_Literal_Value field is now a Uint
28716 * scng.adb: Significant rewrite to handle new Ada 2005 features
28717 allowing wide and wide wide characters in program text, e.g. for
28718 identifiers, as described in AI-285.
28719 (Set_Reserved): New procedure, makes setting up keywords cleaner.
28720 (Initialize_Scanner): Register the new reserved words of Ada 2005.
28721 (Scan): Give support to the new reserved words.
28723 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28724 warning notifying that interface, overriding, and synchronized are
28725 new reserved words.
28726 (P_Pragma): Allow the use of the new reserved word "interface" as
28729 * gnatls.adb, gnatbind.adb,
28730 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28731 identifiers named "interface" to "SAL_Interface".
28733 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28734 (Structured Exception handling).
28735 (Gen_Main_C): Idem.
28738 (Gen_Main_Ada): Set the default exit code if specified.
28739 (Gen_Main_C): Likewise.
28741 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28742 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28744 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28747 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28748 has a collision with the new Ada 2005 "interface" reserved word.
28750 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28751 generate a warning notifying that interface, overriding, and
28752 synchronized are new reserved words.
28754 * scans.ads (Token_Type): Addition of the tokens corresponding to the
28755 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28756 and Tok_Synchronized.
28758 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28759 "dispatching" rather than "primitive" operations, since dispatching
28760 calls are now allowed to abstract formal subprograms (which are not
28762 Char_Literal_Value field is now a Uint
28763 (Resolve_Slice): If the prefix is an access to an unconstrained array,
28764 compute the actual subtype of the designated object to impose the proper
28766 (Resolve_Selected_Component): Do not insert an access check if the
28767 prefix is an access type: such a node is expanded into an explicit
28768 dereference, on which the access check is performed anyway. Removes
28769 expensive duplicate checks.
28770 (Resolve_Call): Use new flag Is_Obsolescent and field
28771 Obsolescent_Warning so that pragma Obsolescent works on library
28773 Add support for wide wide character type
28774 (Resolve_Allocator): Replace the error message on wrong null-exclusion
28775 value by a warning message.
28776 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28777 as fixed-point, and one of the operands is non-static and universal, it
28778 can only be an illegal exponentiation operation, in which case there is
28779 no real value to retrieve.
28781 * exp_strm.adb: Add support for wide wide character type
28782 (Build_Elementary_Input_Call): Compute the size of the stream element by
28783 querying the rep chain to find the Stream_Attribute attribute value.
28784 (Build_Elementary_Write_Call): Ditto.
28786 * sem_aggr.adb: Char_Literal_Value field is now a Uint
28787 Add support for wide wide character type
28788 Replace the error messages on wrong null-exclusion value by warnings
28789 as described in Ada 2005.
28790 (Resolve_Extension_Aggregate): Document the fact that the error
28791 message on class-wide expressions in extensions aggregates.
28793 * sem_case.adb: Add support for wide wide character type
28795 * sem_ch13.adb: Add support for wide wide character type
28796 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28798 * sem_ch3.adb: Add support for wide wide character type
28799 (Process_Subtype): If constraint is illegal for the type, set Ekind of
28800 now-useless Itype, to prevent cascaded errors on a compiler built
28803 * sem_ch8.adb: Add with and use of Sem_Disp.
28804 (Analyze_Subprogram_Renaming): Replace unclean uses of
28805 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28806 of Corresponding_Spec to Empty).
28807 (Attribute_Renaming): Replace use of Corresponding_Spec with
28808 Corresponding_ Formal_Spec and simplify condition.
28809 (Use_One_Package): Check that scope of homonym of identifier is defined,
28810 before checking whether it is a wrapper package.
28811 Add support for wide wide character type
28813 * sem_eval.adb: Add support for wide wide character type.
28814 (Eval_Arithmetic_Op): Check for compile time known signed integer
28815 overflow in the non-static case.
28816 (Subtypes_Statically_Match): A formal scalar type and its base type do
28817 not statically match.
28819 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28820 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28822 (Unit_Declaration_Node): Ditto.
28823 (Is_Variable_Prefix): For the case of an indexed component whose prefix
28824 has a packed array type, the prefix has been rewritten into a type
28825 conversion. Determine variable-ness from the converted expression.
28826 Handle wide wide character cases.
28828 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28830 * stringt.ads, stringt.adb: Handle full UTF-32 range.
28831 Remove ["0A"] from comment, since it can look like a line terminator.
28832 Currently we don't permit this, but this is under discussion by the
28833 ARG, and it is easy enough to use a different example.
28835 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28836 handling UTF-32 encoding for wide wide character.
28837 Implement new brackets coding ["hhhhhhhh"]
28838 Add UTF-8 encodings for full UTF-32 range
28840 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28842 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28843 bit range Add full UTF-32 support.
28844 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28845 notify that constraint error will be raised at run-time
28846 because a null value is assigned to a null-excluding object.
28847 Remove some obsolete declarations and make Char_Code
28850 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28851 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28852 Rcheck subprograms.
28854 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28855 wrong null-exclusion value by a warning message.
28856 (Enable_Range_Check): Do range check if the prefix is an
28857 explicit dereference whose designated object is an unconstrained array.
28858 Current algorithm for removing duplicate checks is over-eager in this
28861 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28862 null-exclusion value by a warning message
28864 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28865 completely. Add support for Uint2 field
28867 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28868 exp_prag.adb: Char_Literal_Value field is now a Uint.
28870 * exp_util.adb (Insert_Actions): Replace
28871 N_Formal_Subprogram_Declaration by
28872 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28873 Char_Literal_Value field is now a Uint.
28875 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28876 defined for subprogram renaming declarations. When set, the field
28877 indicates the defining entity of a corresponding formal subprogram
28878 when the renaming corresponds to a formal subprogram association in an
28880 (Set_Corresponding_Formal_Spec): New procedure to return
28881 Corresponding_Formal_Spec field.
28882 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28883 (which is now a subtype).
28884 Char_Literal_Value field is now a Uint
28886 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28887 pointer to the base of the dispatch table.
28888 Minor changes to comments.
28889 (Controlling_Type): New function for determining the tagged type
28890 associated with a tagged primitive subprogram.
28891 (Expand_Dispatching_Call): Add support for a controlling actual that is
28892 directly a value of type Ada.Tag rather than a tagged object.
28894 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28895 describing the new layout.
28896 (Dispatch_Table): The expander computes the actual array size, allocates
28897 the Dispatch_Table record accordingly, and generates code that displaces
28898 the base of the record after the Typeinfo_Ptr component. The access to
28899 these components is done by means of local functions.
28900 (Offset_To_Top): New function.
28901 (Typeinfo_Ptr): New function.
28902 (Get_TSD): Modified to access the new position of the TSD.
28903 (Set_TSD): Modified to save the TSD in its new position.
28905 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28906 case of formal abstract subprograms. Add check and message for -gnat05.
28909 * sem_ch12.adb: Add with and use for Sem_Disp.
28910 (Analyze_Associations): Minor change from "=" to "in" for use of
28911 N_Formal_Subtype_Declaration (which is now a subtype).
28912 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28913 N_Formal_Subtype_Declaration (which is now a subtype).
28914 (Analyze_Formal_Subprogram): Add handling for
28915 N_Formal_Abstract_Subprogram, marking the formal as abstract and
28916 dispatching, setting the controlling status of the formal parameters
28917 and result, and issuing an error if there is no controlling type for
28918 the formal subprogram.
28919 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28920 which is an unclean use of that field, we set the new field
28921 Corresponding_Formal_Spec to make the formal subprogram available to
28922 processing in Analyze_Subprogram_Declaration.
28923 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28924 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28925 Constrained, so that it is is does not statically match its anonymous
28928 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28929 abstract formal subprograms in error check for functions returning
28930 abstract types. Set scope of new designator for
28931 a parameterless subprogram, so that it is available when checking the
28932 body for nested subprograms, before full analysis of said body.
28933 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28934 subprogram only if inner one comes from source.
28935 (Analyze_Function_Call): If the call is given in object notation, the
28936 analysis of the name rewrites the node and analyzes it with the proper
28937 argument list. After analyzing the name, if the call has been rewritten
28938 and the result type is set, no further analysis is needed.
28939 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28940 mark in function specification, in a context where the formals are
28941 visible and hide outer homographs.
28943 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28944 as the tagged type for the cases of abstract formal subprograms and
28945 renamings of those. Clean up spec comments.
28946 (Check_Dispatching_Context): Add error message to indicate "abstract
28947 procedure", covering the case of a call to a formal abstract procedure
28948 that has statically tagged operands.
28949 (Check_Dispatching_Call): Check for the case of an actual given by
28950 a tag-indeterminate function call whose type is an ancestor of the
28951 containing call's associated tagged type. This situation can occur
28952 for inherited primitives with function defaults. In this case we
28953 use the tagged type's tag directly as the controlling argument for
28955 (Expand_Call): Name change on call to Expand_Dispatch_Call.
28957 * sprint.adb (Sprint_Node_Actual): Split
28958 N_Formal_Subprogram_Declaration into two alternatives for the new
28959 cases N_Formal_Abstract_Subprogram_Declaration and
28960 N_Formal_Concrete_Subprogram_Declaration.
28961 Char_Literal_Value field is now a Uint.
28963 * trans.c: Get rid of junk Uint2 reference.
28964 Char_Literal_Value field is now a Uint.
28965 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28966 (gigi): Correct third arg to gimplify_body.
28968 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28969 (TYPE_LANG_FLAG_0): Check for record or union.
28971 * treepr.adb: Char_Literal_Value field is now a Uint
28973 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28976 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28977 Add full UTF-32 support
28978 Char_Code is now 32 bits
28980 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28981 wide character UTF_32 line terminators.
28982 Initialize Main_Source_File to avoid error when no main
28985 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28986 (Main_Source_File) when no main source has been loaded, to avoid
28989 2005-02-09 Robert Dewar <dewar@adacore.com>
28991 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28992 Fix name of Set routine
28994 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28997 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28998 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
29001 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
29002 forms of Get_Line subprograms for AI-301.
29004 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
29005 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
29006 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
29007 a-stwima.ads: Minor reformatting.
29009 2005-02-09 Doug Rupp <rupp@adacore.com>
29010 Thomas Quinot <quinot@adacore.com>
29012 * adaint.c, adaint.h
29013 [VMS] (to_ptr32): New function.
29014 (MAYBE_TO_PTR32): New macro.
29015 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
29017 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
29018 [VMS] (#define fork()): Remove since unneccessary.
29019 (__gnat_set_close_on_exec): New routine to support
29020 GNAT.OS_Lib.Set_Close_On_Exec.
29022 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
29023 the parent side as close-on-exec so that they are not inherited by the
29026 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
29027 set or clear the FD_CLOEXEC flag on a file descriptor.
29029 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
29030 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29034 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
29035 on the field if Pragma Component_Alignment (Storage_Unit).
29036 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
29037 side-effects as if it were a constant; also make SAVE_EXPR to protect
29039 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
29041 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
29042 (components_to_record): Test it.
29043 Fix improper usage of REFERENCE_CLASS_P.
29045 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
29048 * utils2.c: Minor reformatting.
29050 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
29051 handle other cases like RECORD_TYPE.
29053 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
29055 2005-02-09 Ed Schonberg <schonberg@adacore.com>
29057 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
29058 component of an array of arrays in an assignment context, and the
29059 aggregate has component associations that require sliding on
29060 assignment, force reanalysis of the aggregate to generate a temporary
29061 before the assignment.
29062 (Must_Slide): Make global to the package, for use in Gen_Assign.
29064 2005-02-09 Ed Schonberg <schonberg@adacore.com>
29066 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
29067 unchecked union with no inferable discriminants, return a
29068 Raise_Program_Error node, rather than inserting it at the point the
29070 (Expand_Record_Equality, Component_Equality): Handle properly the case
29071 where some subcomponent is an unchecked union whose generated equality
29072 code raises program error.
29074 2005-02-09 Doug Rupp <rupp@adacore.com>
29076 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
29077 [VMS] (#define exit hack): Remove.
29079 2005-02-09 Pascal Obry <obry@adacore.com>
29080 Arnaud Charlet <charlet@adacore.com>
29082 * init.c (__gnat_initialize): Add a new parameter eh which contains the
29083 address of the exception registration. The Win32 version of this
29084 routine calls __gnat_install_SEH_handler() to initialize the SEH
29085 (Structured Exception Handling) handler.
29086 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
29087 SEH (Structured Exception Handling) now.
29088 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
29089 (__gnat_initialize for ppc-vxworks): Adjust comments and the
29090 preprocessor condition protecting the call to the extra eh setup
29091 subprogram, which is only available for the ppc target.
29092 (__gnat_clear_exception_count): replaced reference to
29093 variable taskIdCurrent by call to taskIdSelf(), cleaner.
29095 * seh_init.c: New file.
29097 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
29098 (GNATBIND_OBJS): Idem.
29100 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
29101 routine takes a new parameter (a pointer to the exception registration
29102 for the SEH (Structured Exception Handling) support.
29104 * raise.h: (__gnat_install_SEH_handler): New prototype.
29105 Update copyright notice.
29107 * s-tassta.adb (Task_Wrapper): Declare the exception registration
29108 record and initialize it by calling __gnat_install_SEH_handler.
29110 2005-02-09 Vincent Celier <celier@adacore.com>
29112 * make.adb (Gnatmake): Do not fail when the main project has no object
29115 2005-02-09 Doug Rupp <rupp@adacore.com>
29117 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
29118 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
29119 [VMS]: Add translations for g-enblsp.adb.
29121 * s-asthan-vms.adb: Removed.
29122 * s-asthan-vms-alpha.adb: Added.
29124 2005-02-09 Pascal Obry <obry@adacore.com>
29126 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
29127 (LIBGNAT_OBJS): Add seh_init.o.
29129 2005-02-09 Arnaud Charlet <charlet@adacore.com>
29132 * Makefile.in: Link all gnat tools with -static-libgcc, since
29133 -shared-libgcc is now used by default on some systems (e.g. linux with
29135 Remove references to Makefile.prolog/generic, no longer used.
29137 2005-02-09 Vincent Celier <celier@adacore.com>
29139 * prj-makr.adb (Process_Directory): Put file name in canonical case
29140 before matching against the patterns.
29141 If gnatname has been invoked as <prefix>-gnatname
29142 then invoke the compiler as <prefix>-gcc, not just "gcc".
29144 2005-02-09 Ed Schonberg <schonberg@adacore.com>
29146 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
29147 with expansion disabled. The actual subtype is needed among other
29148 places when the selected component appears in the context of a loop
29149 bound, and denotes a packed array.
29150 (Operator_Check): Always use the first subtype in the
29151 error message, to avoid the appearance of internal base types.
29152 (Transform_Object_Operation): Copy each actual in full
29153 to the parameter associations of the constructed call, rather than
29154 using the shallow copy mechanism of New_Copy_List. This ensures that
29155 the chaining of named associations is done properly.
29156 (Complete_Object_Operation): Rewrite node, rather than
29157 replacing it, so that we can trace back to the original selected
29160 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
29161 and calls that use object notation, if the called function is not
29162 declared in a withed unit, place the elaboration constraint on the
29163 unit in the context that makes the function accessible.
29164 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
29165 imposes an elaboration constraint between two packages.
29167 2005-02-09 Ed Schonberg <schonberg@adacore.com>
29169 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
29170 views of a private type after handling its private dependents, to
29171 maintain proper stack discipline between entry and exit from the
29174 2005-02-09 Cyrille Comar <comar@adacore.com>
29176 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
29177 Minor reformatting.
29179 2005-02-09 Arnaud Charlet <charlet@adacore.com>
29181 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
29182 fields for foreign threads.
29184 2005-02-09 Doug Rupp <rupp@adacore.com>
29186 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
29187 recursion warnings when compiled with -gnatdm.
29189 2005-02-09 Robert Dewar <dewar@adacore.com>
29191 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
29192 Slight fix to documentation of -gnaty with no parameters
29194 * xr_tabls.ads: Add ??? comment for missing overall comment
29196 * xsinfo.adb: Make default file name be sinfo.h, since this is what
29197 we now use by default.
29199 * xsnames.adb: Adjust end of file test to look for five space followed
29200 by '#' instead of six spaces. The format of xsnames.adb was modified
29201 in the last update.
29203 * a-numeri.ads: Add reference to AI-388 for greek letter pi
29206 * clean.adb: Minor reformatting.
29208 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
29209 gnatname.adb: Minor reformatting
29210 Add 2005 to copyright output when utility is run
29212 * csets.adb: Eliminate obsolete comment
29214 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
29217 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
29219 2005-02-09 Sergey Rybin <rybin@adacore.com>
29221 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
29222 the difference between compact and incompact layout and add the record
29223 representation clause to the example illustrating different layouts.
29224 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
29225 component clauses").
29227 2005-02-09 Florian Villoing <villoing@adacore.com>
29229 * gnat_ugn.texi: Fix typos.
29230 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
29232 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
29233 in the generated documentation.
29235 2005-02-09 Arnaud Charlet <charlet@adacore.com>
29237 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
29239 Update linker wrapper when linking with non GNU C++.
29241 2005-02-09 Pascal Obry <obry@adacore.com>
29244 Document the procedure to debug the DllMain routine on Windows.
29245 Add note about -funwind-tables and mixed Ada and C/C++ programming in
29247 Document new BIND qualifer /RETURN_CODES=VMS.
29249 2005-02-09 Ben Brosgol <brosgol@adacore.com>
29251 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
29252 Edited gnatmetric chapter
29254 2005-02-09 Robert Dewar <dewar@adacore.com>
29257 Changes to document new wide wide character support
29259 Update documentation on Normalize_Scalars and Initialize_Scalars
29261 2005-02-09 Pascal Obry <obry@adacore.com>
29263 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
29265 2005-02-09 Jose Ruiz <ruiz@adacore.com>
29267 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
29268 from the VxWorks kernel) that is needed for getting the active
29269 priority of the different tasks.
29271 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
29272 Use a pragma Elaborate_Body in the spec file instead.
29273 Noticed by code reading.
29275 2005-02-09 Thomas Quinot <quinot@adacore.com>
29277 * exp_util.ads: Minor correction in comment.
29279 2005-02-09 Arnaud Charlet <charlet@adacore.com>
29281 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
29282 since this procedure is now too complex to be worth inlining.
29284 2005-02-09 Richard Henderson <rth@redhat.com>
29286 * utils.c (gnat_define_builtin): Remove.
29287 (gnat_install_builtins): Use build_common_builtin_nodes.
29289 2005-02-09 Arnaud Charlet <charlet@adacore.com>
29291 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
29292 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
29293 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
29294 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
29295 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
29296 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
29297 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
29298 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
29299 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
29300 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
29301 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
29302 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
29303 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
29304 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
29305 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
29306 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
29307 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
29308 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
29309 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
29310 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
29311 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
29312 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
29313 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
29314 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
29315 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
29316 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
29317 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
29318 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
29319 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
29320 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
29321 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
29322 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
29323 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
29324 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
29327 2005-01-27 Laurent Guerby <laurent@guerby.net>
29329 * Makefile.in: Fix a-intnam.ads from previous commit,
29330 add 2005 to copyright.
29331 * a-intman-rtems.ads: Renamed to...
29332 * a-intnam-rtems.ads:
29334 2005-01-27 Laurent Guerby <laurent@guerby.net>
29336 * Makefile.in: Rename GNAT RTEMS specific files.
29337 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
29338 5rosinte.ads, 5rparame.adb: Replaced by files below.
29339 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
29340 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
29342 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
29343 Laurent Guerby <laurent@guerby.net>
29346 * 5rosinte.ads: Add No_Key constant.
29347 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
29348 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
29350 2005-01-26 Laurent Guerby <laurent@guerby.net>
29353 * i-cobol.adb (Valid_Numeric): Handle zero length case.
29355 2005-01-20 Richard Henderson <rth@redhat.com>
29357 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
29358 a-intnam-linux.ads and system-linux-alpha.ads.
29359 * a-intnam-linux-alpha.ads: Remove file.
29360 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
29361 * system-linux-alpha.ads: New file.
29363 2005-01-18 Jakub Jelinek <jakub@redhat.com>
29366 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
29367 set to the new string.
29369 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
29371 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
29374 2005-01-18 Richard Henderson <rth@redhat.com>
29376 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
29377 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
29379 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
29381 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
29383 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
29384 (GCC_ZCX_Support): Likewise.
29386 2005-01-11 Bastian Blank <waldi@debian.org>
29388 * system-linux-s390.ads: Define Preallocated_Stacks.
29389 * system-linux-s390x.ads: Likewise.
29391 2005-01-04 Arnaud Charlet <charlet@adacore.com>
29393 * gnat_ugn.texi: Fix texi errors with null variables.
29395 2005-01-03 Thomas Quinot <quinot@adacore.com>
29397 * gen-soccon.c: New utility program to generate g-soccon.ads
29400 * socket.c, gsocket.h: Split inclusion of system header files into a
29401 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
29403 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
29404 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
29405 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
29406 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
29407 should not be edited by hand anymore, but should be regenerated using
29410 2005-01-03 Robert Dewar <dewar@adacore.com>
29411 Ed Schonberg <schonberg@adacore.com>
29412 Vincent Celier <celier@adacore.com>
29414 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
29415 on/off, since this is an obsolescent feature, for which we now generate
29418 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
29419 warning mode is set and obsolescent usage of this attribute occurs.
29420 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
29421 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
29422 predates, and partly motivates, the adoption of the AI.
29423 Implement new Ada 2005 attribute Mod
29425 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
29428 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
29430 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
29431 pragma restrictions.
29432 New entry for Ada 2005 attribute Mod.
29435 Add recognition of new pragma Restrictions No_Dependence
29436 Recognize restriction No_Obsolescent_Features at parse time
29438 * bcheck.adb: Add circuitry for checking for consistency of
29439 No_Dependence restrictions.
29441 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
29444 * restrict.ads, restrict.adb: Add subprograms to deal with
29445 No_Dependence restrictions.
29447 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
29450 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
29451 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
29453 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
29454 dummy parameter to scng instantiation.
29455 Needed for new restriction No_Obsolescent_Features
29457 * scn.adb: (Obsolescent_Check): New procedure
29458 Needed for new restriction No_Obsolescent_Features
29460 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
29461 specified by AI-285, needed for implementation of AI-388 (adding greek
29462 pi to Ada.Numerics).
29463 Add new generic formal to scng, needed for new restriction
29464 No_Obsolescent_Features.
29466 * s-rident.ads: Add new restriction No_Obsolescent_Features.
29468 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
29469 restrictions lines.
29470 (Scan_ALI): When finding an unexpected character on an R line, raise
29471 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
29472 Ignore_Errors is True, default restrictions are set and scanning of the
29473 ALI file continues with the next line. Also, when Bad_R_Line is raised
29474 and Ignore_Errors is True, skip to the end of le line.
29476 * sem_ch10.adb: Check that explicit with's do not violate
29477 No_Dependence restrictions.
29478 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
29479 illegal context clauses containing child units of instance.
29481 * sem_prag.adb: Processing and checking for new No_Dependence
29483 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
29484 analyze and check the External argument.
29486 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
29488 2005-01-03 Robert Dewar <dewar@adacore.com>
29490 * atree.adb: Add a fifth component to entities
29491 This allows us to add 32 flags and four new fields
29493 * atree.ads: Add a fifth component to entities
29494 This allows us to add 32 flags and four new fields
29496 * einfo.ads, einfo.adb: Document new fields and new flags now available
29497 Add routines for printing new fields
29499 * treepr.adb: Call routines to print out additional fields if present
29501 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29503 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
29504 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
29506 * Makefile.in: Add support to build shared Ada libraries on solaris x86
29507 Remove gpr2make, replaced by gprmake.
29508 Remove references to gnatmem and libaddr2line.
29509 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
29510 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
29511 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
29512 a-numaux-darwin.ads and a-numaux-darwin.adb
29513 Enable mlib-tgt-lynxos.adb on lynxos.
29515 * Make-lang.in: Remove rules for gpr2make.
29516 When generating sdefault.adb, do not call Relocate_Path
29517 on S3 for function Target_Name, as it is not a path.
29518 Remove references to gnatmem and libaddr2line.
29520 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
29523 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
29525 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
29526 address is incompatible with its base type alignment constraints when
29527 this can be decided statically.
29529 2005-01-03 Olivier Hainque <hainque@adacore.com>
29531 * decl.c (compatible_signatures_p): New function. The intended purpose
29532 is to check if two function signatures for a call-site and a callee are
29533 compatible enough for the call to be valid. The underlying purpose is
29534 to check if a call to a mapped builtin is using the right interface.
29535 The current code actually does not check antyhing - this a placeholder
29536 for future refinements.
29537 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
29538 builtin calls for convention Intrinsic.
29540 * gigi.h (builtin_decl_for): Declare (new function).
29542 * utils.c (gnat_install_builtins): Install the target specific builtins.
29543 (builtin_decl_for): New function, provide a dummy body for now.
29545 2005-01-03 Geert Bosch <bosch@adacore.com>
29547 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
29548 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29549 (Pred): Implement in terms of Succ.
29551 * trans.c (convert_with_check): Reimplement conversion of float to
29554 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29555 Vincent Celier <celier@adacore.com>
29557 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
29558 bounds can be negative, and must be declared Int, not Nat.
29560 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
29561 array is checked after using the index in the array.
29563 * makegpr.adb (Add_Switches): Check if there is a package for the
29564 processor. If there is no package, do not look for switches.
29566 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29568 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
29569 generation of predefined stream operations (specs and bodies) should
29570 proceed. Under various restrictions these subprograms must not be
29573 2005-01-03 Thomas Quinot <quinot@adacore.com>
29576 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
29577 amount of PCS-specific code in RACW stubs generation.
29578 (Copy_Specification): Set Etype on copied formal parameter entities, as
29579 this information is needed for PolyORB stubs generation.
29580 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
29581 variable Dynamic_Async.
29582 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
29583 (Build_RPC_Receiver_Specification): Make generic again, as recent
29584 changes have allowed RPC receivers to have the same profile for both
29585 variants of the PCS.
29586 Reorganise RPC receiver generation to reduce differences between the
29587 structure of GARLIC and PolyORB RPC receivers.
29588 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
29590 Simplify elaboration code for RCI packages.
29592 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
29593 generation to reduce differences between the structure of GARLIC and
29594 PolyORB RPC receivers.
29596 * s-stratt.adb: Fix typo in comment.
29598 2005-01-03 Thomas Quinot <quinot@adacore.com>
29600 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
29601 copied from Make_Init_Call).
29603 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
29604 reads and assignments on a temporary variable declared with appropriate
29607 2005-01-03 Robert Dewar <dewar@adacore.com>
29609 * i-c.adb (To_C): Raise CE if string is null and Append_Null
29611 2005-01-03 Robert Dewar <dewar@adacore.com>
29613 * i-cstrin.adb (Update): Do not append a null in form called with a
29614 String. This avoids unintended behavior.
29616 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29619 * init.c: Fix warnings on Free BSD section.
29621 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29624 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
29627 2005-01-03 Vincent Celier <celier@adacore.com>
29629 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
29630 libraries when Unique_Compile is True (-u switch).
29633 2005-01-03 Robert Dewar <dewar@adacore.com>
29635 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
29636 upper case letter or underscore after W, as allowed by spec.
29638 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29640 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
29641 darwin port by using proper type definitions from header files.
29642 Use SIGTERM instead of SIGABRT for SIGADAABORT.
29644 2005-01-03 Robert Dewar <dewar@adacore.com>
29646 * par.adb: Enhance error message handling for configuration file
29649 2005-01-03 Robert Dewar <dewar@adacore.com>
29651 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
29652 removed during the previous update (test properly for case of dividing
29653 largest negative number by -1, which generates overflow).
29655 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29656 Sergey Rybin <rybin@adacore.com>
29658 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
29659 to use as the defining identifier for a formal package.
29660 (Remove_Parent): If the instance takes place within (an instance of)
29661 a sibling, preserve private declarations of common parent.
29663 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29665 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
29666 to determine whether one of the operands is a fixed-point type for
29667 which a user-defined multiplication or division operation might be
29670 * sem_res.adb (Valid_Conversion): The legality rules for conversions
29671 of access types are symmetric in Ada 2005: either designated type can
29674 2005-01-03 Vincent Celier <celier@adacore.com>
29676 * s-fileio.adb (Temp_File_Record): Change length of string component
29677 Name from L_tmpnam + 1 to max_path_len + 1.
29679 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29681 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
29682 Self_Id.Deferral_Level = 0.
29683 (Do_Pending_Action): Move this function to the spec.
29685 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
29686 Do_Pending_Action explicitely when needed, in case we're using
29687 No_Abort restrictions.
29689 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29690 deferral level since it will not get changed by the generated code.
29691 Keeping a default value of 1 would prevent some operations (e.g.
29692 select or delay) to proceed successfully.
29694 2005-01-03 Ben Brosgol <brosgol@adacore.com>
29695 Robert Dewar <dewar@adacore.com>
29696 Cyrille Comar <comar@adacore.com>
29698 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29699 porting guide chapter (vms version).
29700 Revised doc title (removed "for native platforms") and subtitle.
29701 Add discussion on warning flag for obsolescent features. First we
29702 note that it applies to obsolete GNAT features, which was previously
29703 omitted. Second we contrast the behavior with that of the new
29704 Ada 2005 AI-368 restriction No_Obsolescent_Features.
29705 Preliminary rewriting of GNAT & libraries chapter in order to take
29706 into account default project locations & new project manager
29709 2005-01-03 Robert Dewar <dewar@adacore.com>
29711 * cstand.adb (Create_Operators): Clean up format and documentation of
29712 unary and binary operator result tables. No change in code, just
29713 reformatting and addition of comments.
29715 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29716 sem_ch2.adb: Minor reformatting
29718 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29719 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29720 comments for Tree_Read and Tree_Write.
29722 2005-01-03 Pascal Obry <obry@adacore.com>
29724 * exp_attr.ads: Minor reformatting.
29726 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
29728 * comperr.adb (Compiler_Abort): Add specialized message for GAP
29731 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29733 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29734 whether the ancestor type is private, as may be the case with nested
29737 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
29740 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29742 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
29744 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29745 * utils2.c (build_unary_op): Likewise.
29747 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29749 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29751 2004-12-19 Richard Henderson <rth@redhat.com>
29753 * trans.c (gigi): Update gimplify_body call.
29755 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
29757 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29759 2004-12-07 Ed Falis <falis@adacore.com>
29761 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29762 current task being suspended.
29764 * init.c (__gnat_clear_exception): added to reset VxWorks exception
29766 (__gnat_map_signal): removed test for current task being suspended.
29768 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29770 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29771 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29772 targets (such as AAMP).
29774 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29776 * atree.adb (Visit_Itype): Create a new name for the generated itype,
29777 because the back-end may otherwise treat it as a redefinition of the
29780 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
29782 * back_end.adb (Scan_Back_End_Switches): Accept --param.
29784 * lang-specs.h: Accept --param.
29786 2004-12-07 Vincent Celier <celier@adacore.com>
29788 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29789 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29790 Current_Body_Suffix => Ada_Body_Suffix).
29791 Take into account Externally_Built attribute.
29793 * clean.adb (In_Extension_Chain): Always return False when one of the
29794 parameter is No_Project.
29795 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29796 Ada_Language_Index).
29797 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29798 Process_Languages for procedure Parse).
29800 * gnatcmd.adb (Carg_Switches): New table.
29801 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29802 Adapt to name changes in package Prj (Current_Spec_Suffix =>
29803 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29805 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29806 Header_Num and function Hash are now declared in package Prj,
29809 * prj.adb (Suffix_Of): New function.
29810 (Set (Suffix)): New procedure.
29811 (Hash): One function moved from Prj.Com
29812 (Is_Present, Language_Processing_Data_Of): New functions
29813 (Set): Two new procedures
29814 (Add_Language_Name, Display_Language_Name): New procedures
29816 * prj.ads: (Suffix_Of): New function
29817 (Set (Suffix)): New procedure
29818 Add several types and tables for multi-language support.
29819 (Header_Num): Type moved from Prj.Com
29820 (Hash): Two functions moved from Prj.Com
29821 (Is_Present, Language_Processing_Data_Of): New functions
29822 (Set): Two new procedures
29823 (Add_Language_Name, Display_Language_Name): New procedures
29824 (Naming): Component name changes:
29825 Current_Spec_Suffix => Ada_Spec_Suffix,
29826 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29827 Impl_Suffixes, Supp_Suffixes.
29828 (Project_Data): New components: Externally_Built, Supp_Languages,
29829 First_Language_Processing, Supp_Language_Processing, Default_Linker,
29830 Default_Linker_Path.
29832 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29833 new package Language_Processing with its attributes (Compiler_Driver,
29834 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29835 Binder_Driver, Default_Linker).
29837 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29838 (Header_Num): Type moved to package Prj
29840 * prj-env.adb: Adapt to name changes in package Prj
29841 (Current_Spec_Suffix => Ada_Spec_Suffix,
29842 Current_Body_Suffix => Ada_Body_Suffix).
29844 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29845 default to the project path, except the "-" is one of the directories
29846 in env var ADA_PROJECT_PATH.
29847 (Current_Project_Path): Global variable, replacing Project_Path
29848 that was in the body of Prj.Part.
29849 (Project_Path): New function
29850 (Set_Project_Path): New procedure
29851 Initialize Current_Project_Path during elaboration of the package
29852 Remove dependency on Prj.Com, no longer needed
29854 * prj-ext.ads (Project_Path): New function
29855 (Set_Project_Path): New procedure
29857 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29858 suffix is defined for language <lang>.
29859 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29860 accessing directly the components of Naming.
29861 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29862 Reorganise of this package.
29863 Break procedure Check in several procedures.
29865 * prj-nmsc.ads: Replace all procedures (Ada_Check,
29866 Other_Languages_Check and Language_Independent_Check) with a single
29869 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29870 Process_Languages, no longer needed.
29872 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29873 Current_Project_Path.
29874 Remove elaboration code, moved to the body of Prj.Ext
29875 Use new function Prj.Ext.Project_Path instead of old variable
29877 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29878 When comparing with project paths on the stack, first put the resolved
29879 path in canonical case.
29880 (Parse_Single_Project): Set the path name of the project file in the
29881 tree to the normalized path.
29883 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29884 parameter Process_Languages, no longer needed.
29885 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29886 Other_Languages_Check.
29888 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29889 to store the resolved canonical path of the project file.
29890 Remove dependency to Prj.Com, no longer needed
29892 * prj-util.adb: Adapt to name changes in package Prj
29893 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29896 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29897 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29898 Externally_Built, Include_Option, Language_Processing.
29900 * makegpr.adb: Numerous changes due to changes in packages
29903 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29904 default to the project path, except whe "-" is one of the directories
29905 in env var ADA_PROJECT_PATH.
29906 (Gnatls): In verbose mode, add the new section "Project Search Path:"
29908 2004-12-07 Robert Dewar <dewar@adacore.com>
29910 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29912 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29915 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29916 flag. No longer needed now that we handle this in gnat1drv.adb.
29918 * repinfo.ads: Minor reformatting
29920 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29921 Olivier Hainque <hainque@adacore.com>
29922 Eric Botcazou <ebotcazou@adacore.com>
29924 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29925 TYPE_SIZE_UNIT of result type if SIZE is not specified.
29926 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29927 of a bitfield, which we know is useless and causes trouble because of
29928 alignment implications.
29930 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29932 (process_attributes): Clear DECL_COMMON again when a section attribute
29934 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29935 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29936 (create_field_decl): Special case ADDRESSABLE negative to mean
29937 "no bitfield creation", to be used by make_aligning_type. Don't
29938 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29939 fields claimed addressable still have to be bitfields. Use
29940 value_factor_p instead of a raw binop construction to check for the
29941 position's alignment.
29943 2004-12-07 Geert Bosch <bosch@adacore.com>
29945 * eval_fat.adb: Revert previous change.
29947 2004-12-07 Thomas Quinot <quinot@adacore.com>
29948 Ed Schonberg <schonberg@adacore.com>
29950 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29951 with an implicit dereference as its prefix, use
29952 Insert_Explicit_Dereference instead of merely rewriting the prefix into
29953 an explicit dereference. This ensures that a reference to the original
29954 prefix is generated, if appropriate.
29956 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29957 dereference is rewritten to an explicit one, generate a reference to
29958 the entity denoted by its prefix using the original prefix node, so
29959 the dereference can be properly recorded as a read of the denoted
29960 access value, if appropriate.
29962 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29963 emitting 'assigned but never read' warning on a variable on the basis
29964 that it has an access type.
29965 (Check_References): Emit unreferenced warning when the scope is a
29968 2004-12-07 Robert Dewar <dewar@adacore.com>
29969 Ed Schonberg <schonberg@adacore.com>
29971 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29974 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29975 leaving call unchanged.
29976 This deals with the case where the pragma Import specified
29977 an external name, to be handled by the back end.
29979 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29980 subprogram which is Imported with convention Intrinsic if an
29981 External_Name argument is specified.
29982 (Process_Import_Or_Interface): Properly diagnose link name argument.
29983 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29984 with Sem_Ch6.Cannot_Inline.
29985 (Process_Inline): Provide separate warning for inapplicable inline
29987 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29988 treatment is uniform on different targets.
29990 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29992 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29993 construct is rewritten, preserve end label to permit source navigation.
29995 2004-12-07 Thomas Quinot <quinot@adacore.com>
29997 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29998 Specific_Build_Stub_Target): New subprograms.
29999 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
30000 the PCS implementation used, using the above PCS-customized subprograms.
30001 Minor reformatting.
30002 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
30003 for generation of DSA code targeted to the PolyORB PCS.
30004 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
30005 implementation of the partition communication subsystem in ancillary
30007 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
30008 PolyORB_Support.Build_Stub_Type): New subrograms containing the
30009 PCS-specific part of Add_Stub_Type.
30010 (Insert_Partition_Check): Use runtime library function to perform
30013 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
30014 (RE_Same_Partition): New entity, from s-parint.
30016 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
30018 2004-12-07 Gary Dismukes <dismukes@adacore.com>
30020 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
30021 Output the copyright message on a separate line from the version
30024 2004-12-07 Joel Brobecker <brobecker@adacore.com>
30026 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
30027 compile-time warning.
30029 2004-12-07 Robert Dewar <dewar@adacore.com>
30031 * g-regpat.adb: (Match): Change a misuse of or to or else
30033 2004-12-07 Ed Schonberg <schonberg@adacore.com>
30036 (Generate_Reference): Handle properly a reference to an entry formal,
30037 when an accept statement has a pragma Unreferenced for it.
30039 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
30040 and the Has_Pragma_Unreferenced flag for each formal before analyzing
30041 the body, to ensure that warnings are properly emitted for each accept
30042 statement of a given task entry.
30044 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
30046 * Makefile.in: Add support for foreign threads on VMS.
30048 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30050 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
30052 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
30054 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
30056 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
30058 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
30060 2004-12-07 Robert Dewar <dewar@adacore.com>
30062 * nlists.adb (Prepend_Debug): Remove parameters and nest within
30064 (Remove_Next_Debug): Same fix
30066 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
30067 maintain back pointers now, though we did not used to, and comments
30069 (Prepend): Remove pragma Inline.
30070 (Remove_Next): Same cleanup
30072 2004-12-07 Thomas Quinot <quinot@adacore.com>
30074 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
30075 used to record an implicit dereference as a read operation on its
30076 prefix when operating under -gnatc. Necessary to avoid spurious
30077 'variable assigned but never read' warnings in that mode.
30078 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
30079 is a non-overloaded implicit dereference, call the above subprogram to
30080 ensure proper recording of references.
30082 2004-12-07 Gary Dismukes <dismukes@adacore.com>
30084 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
30085 to be resolved later as part of Analyze_Iteration_Scheme's call to
30088 2004-12-07 Ed Schonberg <schonberg@adacore.com>
30090 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
30091 prefix is not a scalar type, place error message on prefix, not on
30094 2004-12-07 Bernard Banner <banner@adacore.com>
30096 * vxaddr2line.adb: Add support for x86 vxworks
30098 2004-12-07 Thomas Quinot <quinot@adacore.com>
30100 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
30101 documentation of the behaviour of these functions when passed an IP
30102 address that has no record in the system hosts database and no reverse
30105 * cstand.adb, a-tags.ads: Fix typos in comment.
30107 2004-12-07 Robert Dewar <dewar@adacore.com>
30109 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
30110 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
30111 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
30112 s-poosiz.ads: Minor reformatting
30114 * make.adb: Minor reformatting
30115 Add some ??? comments asking for more comments
30117 * s-poosiz.adb: Minor reformatting
30118 Add comments on alignment requirement
30120 * sinfo.ads: Remove obsolete comment and fix typo.
30122 2004-12-07 Vincent Celier <celier@adacore.com>
30123 Sergey Rybin <rybin@adacore.com>
30125 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
30126 Files" with the new tool and package names.
30127 Reformatting to suppress most of the warnings for line too long
30128 Document the new section "Project Search Path:" in the output of
30130 Add gnatmetric section
30132 2004-12-07 Vincent Celier <celier@adacore.com>
30134 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
30135 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
30136 and -eit to -ept. Added qualifier
30137 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
30139 2004-11-27 Andreas Schwab <schwab@suse.de>
30141 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
30143 2004-11-25 Arnaud Charlet <charlet@adacore.com>
30145 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
30146 internal implementation unit GNAT.Sockets.Thin,
30147 as their usage for sockets is non-portable (using the read and write
30148 functions from the system runtime library is fine on UNIX but won't
30149 work under Windows).
30151 * mingw32.h: Update copyright notice.
30153 2004-11-25 Arnaud Charlet <charlet@adacore.com>
30155 * ada-tree.h: Minor reformatting of previous change to avoid lines
30156 longer than 79 characters.
30158 2004-11-25 Olivier Hainque <hainque@adacore.com>
30160 * tb-gcc.c: GCC infrastructure based implementation of
30163 2004-11-24 Steven Bosscher <stevenb@suse.de>
30165 * misc.c (gnat_post_options): Don't clear
30166 flag_inline_functions.
30168 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
30171 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
30174 2004-11-21 Andreas Jaeger <aj@suse.de>
30176 * stylesw.adb: Change Style_Check_Subprogram_Order to
30177 Style_Check_Order_Subprograms.
30179 2004-11-18 Arnaud Charlet <charlet@adacore.com>
30181 * adaint.h, adaint.c
30182 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
30184 Add also a cast to kill another warning.
30185 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
30186 parameter with the priority class of the parent process instead of
30187 always using the NORMAL_PRIORITY_CLASS.
30188 (__gnat_dup): New function.
30189 (__gnat_dup2): New function.
30190 (__gnat_is_symbolic_link): Enable the effective body of this
30191 function when __APPLE__ is defined.
30193 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
30196 2004-11-18 Olivier Hainque <hainque@adacore.com>
30198 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
30199 address of which may be used to represent "others" and "all others"
30200 choices in exception tables, instead of the current harcoded
30201 (void *)0 and (void *)1.
30202 (Setup_Exception): Do nothing in the GNAT SJLJ case.
30204 * gigi.h (others_decl, all_others_decl): New decls representing the
30205 new Others_Value and All_Others_Value objects.
30206 (struct attrib): Rename "arg" component as "args", since GCC expects a
30207 list of arguments in there.
30209 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
30210 corresponding objects exported by a-exexpr, instead of hardcoded dummy
30213 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
30214 others_decl and all_others_decl instead of hardcoded dummy addresses
30215 to represent "others" and "all others" choices, which is cleaner and
30216 more flexible with respect to the possible eh pointer encoding policies.
30218 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
30219 (process_attributes): Account for the naming change of the "args"
30220 attribute list entry component.
30222 * decl.c (build_attr_list): Rename into prepend_attributes to allow
30223 cumulating attributes for different entities into a single list.
30224 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
30225 attributes for the current entity and propagate first subtype
30226 attributes to other subtypes.
30227 <E_Procedure>: Attribute arguments are attr->args and not
30228 attr->arg any more.
30229 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
30230 argument provided, as this is what GCC expects. Use NULL_TREE instead
30233 2004-11-18 Robert Dewar <dewar@adacore.com>
30235 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
30236 Minor reformatting througout (including new function specs)
30237 Add ??? comments asking for clarification.
30239 2004-11-18 Thomas Quinot <quinot@adacore.com>
30241 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
30242 incomplete duplicate implementation of this subprogram from butil.
30244 2004-11-18 Thomas Quinot <quinot@adacore.com>
30246 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
30247 procedures factors the common processing for building an RPC receiver
30248 for an RCI package or an RACW type.
30249 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
30250 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
30251 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
30253 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
30255 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
30257 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
30258 distribution subprogram identifiers that are either subprogram numbers
30260 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
30261 string distribution identifiers assigned to a given subprogram.
30262 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
30263 (Add_RAS_Dereference_TSS): Add comments.
30264 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
30265 is not referenced yet because it will be used by the PolyORB DSA
30267 (Insert_Partition_Check): Remove fossile code.
30268 (First_RCI_Subprogram_Id): Document this constant.
30269 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
30271 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
30272 replaced with calls to Get_Library_Unit_Name_String. Previously there
30273 were several instances of the same code in different locations in the
30274 compiler; this checkin completes the replacement of all of these
30275 instances with calls to a common subprogram.
30276 Minor reformatting.
30278 * sem_dist.adb: Remove comment noting that RPC receiver generation
30279 should be disabled for RACWs that implement RASs.
30280 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
30282 * sem_util.ads, sem_util.adb (Has_Stream): New function
30283 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
30284 qualified name of a library unit into the name buffer.
30285 (Note_Possible_Modification): Generate a reference only
30286 if the context comes from source.
30288 * snames.ads (PCS_Names): New subtype corresponding to names of
30289 supported implementations of the Partition Communication Subsystem
30290 (PCS) (i.e. the runtime library support modules for the distributed
30293 2004-11-18 Robert Dewar <dewar@adacore.com>
30294 Ed Schonberg <schonberg@adacore.com>
30296 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
30297 (Has_Rep_Pragma): New function
30298 (Has_Attribute_Definition_Clause): New function
30299 (Record_Rep_Pragma): Moved here from sem_ch13.adb
30300 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
30302 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
30304 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
30305 (Expand_Pragma_Psect_Object): New procedure
30306 These procedures contain the revised and cleaned up processing for
30307 these two pragmas. This processing was formerly in Sem_Prag, but
30308 is more appropriately moved here. The cleanup involves making sure
30309 that the pragmas are properly attached to the tree, and that no
30310 nodes are improperly shared.
30312 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
30313 pragmas to Exp_Prag, which is more appropriate.
30314 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
30315 check for duplicates Remove use of Is_Psected flag, no longer needed.
30316 Use new Make_String_Literal function with string.
30318 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
30319 that are functions return universal values, that have to be converted
30320 to the context type.
30321 Use new Make_String_Literal function with string.
30322 (Get_Stream_Convert_Pragma): New function, replaces the use of
30323 Get_Rep_Pragma, which had to be kludged to work in this case.
30325 * freeze.adb: Use new Has_Rep_Pragma function
30327 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
30328 function with string.
30329 Use new Has_Rep_Pragma function.
30331 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
30334 2004-11-18 Robert Dewar <dewar@adacore.com>
30336 * errout.ads, errout.adb: (First_Sloc): New function
30338 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
30339 check (-gnatyx) instead of being included as a redundant construct
30342 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
30343 Style_Check_Order_Subprograms.
30345 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
30346 stylesw.adb: Add Style_Check_Xtra_Parens
30348 * usage.adb: Add line for -gnatyx (check extra parens)
30350 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
30352 2004-11-18 Ed Schonberg <schonberg@adacore.com>
30353 Robert Dewar <dewar@adacore.com>
30355 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
30356 discriminant of a constrained subtype, analyze the copy of the
30357 corresponding constraint, because in some cases it may be only
30358 partially analyzed.
30359 Removes long-lived ??? comments.
30361 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
30362 handled controlled or secondary-stack expressions within the
30363 iteration_scheme of a loop.
30365 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
30366 bounds that may contain functions calls, to prevent memory leaks when
30367 the bound contains a call to a function that uses the secondary stack.
30368 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
30369 generate temporaries for loop bounds that might contain function calls
30370 that require secondary stack and/or finalization actions.
30372 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
30373 selected component and the selector is overloadable (not just a
30374 function) treat as function call, Analyze_Call will disambiguate if
30376 (Analyze_Selected_Component): Do not generate an actual subtype for the
30377 selected component if expansion is disabled. The actual subtype is only
30378 needed for constraint checks.
30379 (Analyze_Allocator): If restriction No_Streams is set, then do
30380 not permit objects to be declared of a stream type, or of a
30381 composite type containing a stream.
30383 * restrict.ads: Remove the a-stream entry from Unit_Array, since
30384 No_Streams no longer prohibits with'ing this package.
30386 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
30387 discriminants, but the parent base has unknown discriminants, there is
30388 no discriminant constraint to inherit. Such a discrepancy can arise
30389 when the actual for a formal type with unknown discriminants is a
30390 similar private type whose full view has discriminants.
30391 (Analyze_Object_Declaration): If restriction No_Streams is set, then
30392 do not permit objects to be declared of a stream type, or of a
30393 composite type containing a stream.
30395 2004-11-18 Ed Schonberg <schonberg@adacore.com>
30397 * exp_dbug.ads: Update documentation to reflect simpler encoding for
30398 protected operations.
30400 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
30401 generated name, it complicates decoding in gdb and hinders debugging
30402 of protected operations.
30403 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
30404 flag for the protected entry barrier function.
30405 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
30406 flag for the protected entry function.
30408 2004-11-18 Nicolas Setton <setton@adacore.com>
30410 * expect.c: Define __unix__ when __APPLE__ is defined.
30412 * Makefile.in: Inform the value of the variable GMEM_LIB in the
30413 Darwin-specific section.
30415 * lang-specs.h: Change the placement of the %1 marker.
30416 Works around the fact that gcc adds -fPIC by default under Darwin.
30418 2004-11-18 Ed Schonberg <schonberg@adacore.com>
30420 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
30421 type of the object with the packed array type, set the Analyzed flag
30422 on the object if it is an entity or simple indexed component, to avoid
30423 spurious type errors.
30425 2004-11-18 Gary Dismukes <dismukes@adacore.com>
30427 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
30428 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
30429 separate line from the version message.
30431 2004-11-18 Ed Falis <falis@adacore.com>
30433 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
30435 (init_float): Eliminate initialization of floating point status for
30436 AE653. The instructions have no effect for vThreads.
30438 2004-11-18 Vincent Celier <celier@adacore.com>
30440 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
30441 gnatbind is invoked with -shared.
30443 2004-11-18 Jose Ruiz <ruiz@adacore.com>
30445 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
30446 for Detect_Blocking which is redundant with the check done within the
30447 procedure Protected_Single_Entry_Call.
30448 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
30449 Detect_Blocking which is redundant with the check done within the
30450 procedure Protected_Single_Entry_Call.
30452 2004-11-18 Vincent Celier <celier@adacore.com>
30454 * makegpr.adb (Compile): Put the compiling switches (in package
30455 Compiler and on the command line) immediately after "-c", instead of
30456 at the end of the command line invocation of the compiler, when
30457 compiling a non-Ada file.
30458 (Build_Global_Archive): When there is no need to rebuild the archive,
30459 set Global_Archive_Exists, so that the archive is passed to the linker
30462 2004-11-18 Robert Dewar <dewar@adacore.com>
30463 Sergey Rybin <rybin@adacore.com>
30466 Remove extra paren check from list of checks for redundant constructs
30467 Add documentation of new -gnatyx style check (check extra parens)
30468 Remove paragraph about gnatelim debug options.
30470 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
30471 objects rather than forbidding dependencies on the package Ada.Streams.
30473 * sinfo.ads: Add ??? note that we should document pragmas passed to
30476 * g-expect.ads: Fix a few typos in the comments.
30478 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
30480 * misc.c (gnat_handle_option): Use %< and %> for quoting in
30483 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30485 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
30487 2004-11-07 Andreas Schwab <schwab@suse.de>
30489 * Makefile.in (install-gnatlib): Remove spurious hyphen.
30491 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
30494 * Makefile.in (darwin): Set soext to .dylib.
30496 2004-10-26 Vincent Celier <celier@gnat.com>
30497 Thomas Quinot <quinot@act-europe.fr>
30499 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
30500 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
30501 there is no use of GNAT.Sockets.Constants.
30502 Remove remaining pragma Import for C_Write
30503 Remove C_Read and C_Write from internal implementation unit
30504 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
30505 the read and write functions from the system runtime library is fine
30506 on UNIX but won't work under Windows).
30508 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
30509 (Check_Selector): Use C_Recv instead of C_Read.
30510 Selectors are the GNAT.Sockets abstraction to perform a select()
30511 call on a set of descriptors. To allow abortion of an ongoing
30512 select operation, some data is written to a dedicated socket that
30513 is always monitored.
30514 Under Windows, the write and read library functions cannot operate
30515 on sockets, so we need to use send and recv instead, which is portable
30516 across all supported platforms.
30518 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
30519 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
30520 (using the read and write functions from the system runtime library is
30521 fine on UNIX but won't work under Windows).
30523 2004-10-26 Nicolas Setton <setton@act-europe.fr>
30525 * mlib-tgt-darwin.adb: New file.
30527 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30528 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30529 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30530 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
30533 * Makefile.in: Add support for building shared libraries under Darwin.
30534 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
30535 the low level EH init subprogram to be called from __gnat_initialize.
30537 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
30538 indicates which options to pass to the archive indexer.
30540 * mlib-utl.adb: Add support for calling ranlib with additional
30541 options. This is needed for instance under Mac OS X.
30542 (Ranlib_Options): New global variable, used to store the potential
30543 options to pass to ranlib.
30544 (Ar): Use Ranlib_Options when spawning ranlib.
30545 (Initialize): Set the value of ranlib option.
30547 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
30549 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
30550 instead of 8K, to reflect the real potential needs for stack-checking
30553 2004-10-26 Pascal Obry <obry@gnat.com>
30555 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
30557 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
30558 Windows only the initial thread stack size can be set so it is good to
30559 start we a low stack size.
30560 The OS will adjust the size as needed.
30562 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
30563 Nicolas Setton <setton@act-europe.fr>
30565 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
30566 "__unix__" instead of "unix".
30567 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
30568 sections were just mistakenly ignored. The former is
30569 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
30570 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
30571 of hpux. This prevents an unwanted definition of the symbol
30572 convert_addresses in adaint.o.
30574 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30576 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
30577 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
30579 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30581 * a-filico.ads, a-filico.adb: fix incorrect header.
30583 2004-10-26 Javier Miranda <miranda@gnat.com>
30585 * a-ststio.ads: Fix typo in identifier
30587 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30589 * sem_ch4.adb: Minor reformatting.
30591 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30593 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
30594 enabled, check the result of unary and binary operations when the
30595 expression is the right-hand side of an assignment.
30597 2004-10-26 Vincent Celier <celier@gnat.com>
30599 * clean.adb (Delete): Do not output warnings when in quiet output and
30600 not in verbose mode.
30601 (Force_Deletions): New Boolean flag, defaulted to False
30602 (Delete): Only delete a file if it is writable, and when
30603 Force_Deletions is True.
30604 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
30605 (Usage): Line for new switch -f
30606 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
30609 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30611 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
30612 JM type only if its size matches that of the wrapper. When a size is
30613 prescribed and the field is not aliased, remove the wrapper of a JM
30614 type only if the size is not greater than that of the packed array.
30615 (gnat_to_gnu_entity): Change the extension of packed array wrappers
30618 2004-10-26 Geert Bosch <bosch@gnat.com>
30620 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
30621 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
30622 (Pred): Implement in terms of Succ.
30624 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30626 * exp_aggr.adb (Safe_Component): An aggregate component that is an
30627 unchecked conversion is safe for in-place use if the expression of the
30628 conversion is safe.
30629 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
30630 be expandable in place even if the aggregate does not come from source.
30631 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
30632 designated object of an allocator in place, rather than building it
30633 first on the stack. The previous scheme forces a full copy of the array,
30634 and may be altogether unsusable if the size of the array is too large
30635 for stack allocation.
30637 2004-10-26 Robert Dewar <dewar@gnat.com>
30639 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
30640 compares if the component is atomic.
30642 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
30643 array assignment if the component type is atomic.
30645 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30646 Eric Botcazou <ebotcazou@act-europe.fr>
30648 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
30649 is aliased and is a by_reference type, do not pass by copy.
30650 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
30651 detect whether the call is in the right side of an assignment or
30652 the expression of an object declaration. Recurse on component
30653 association within aggregates.
30654 Call it in the condition that determines whether the temporary is
30655 necessary for correct stack-checking.
30657 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30659 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
30660 RACW_Type, used in the PolyORB version.
30661 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
30662 version and the GARLIC version.
30664 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
30665 Rename RCI_Info to RCI_Locator for better consistency between the
30666 GARLIC and PolyORB versions of the distributed systems annex.
30667 (DSA_Implementation_Name): This enumeration lists the possible
30668 implementations of the Partition Communication Subsystem for the
30669 Distributed Systems Annex (DSA). The three available implementations
30670 are the dummy stub implementation (No_DSA), and two versions based on
30671 two different distribution runtime libraries: GARLIC and PolyORB. Both
30672 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
30674 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30677 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
30678 between the GARLIC and PolyORB versions of the distributed systems
30680 Remove RE_Unbounded_Reclaim_Pool since it is unused.
30682 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30684 * gnat1drv.adb: Suppress calling the back end when
30685 Frontend_Layout_On_Target is true.
30687 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30689 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30690 Set_Read_Only): New subprograms.
30691 These new routines allow the user to set or unset the Owner execute
30692 and Owner write permission flags on a file.
30694 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30695 GNAT.OS_Lib.Set_Executable instead of rolling our own.
30697 2004-10-26 Matthew Gingell <gingell@gnat.com>
30699 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30701 2004-10-26 Pascal Obry <obry@gnat.com>
30703 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30704 memory before the faulting page we properly test the process read
30705 access for this address using appropriate Win32 routine.
30706 (HPUX sections): guard with "__hpux__" instead of "hpux".
30708 2004-10-26 Robert Dewar <dewar@gnat.com>
30710 * lib-xref.adb (Generate_Reference): Don't complain about reference to
30711 entry parameter if pragma Unreferenced set, since we do not properly
30712 handle the case of multiple parameters.
30714 2004-10-26 Vincent Celier <celier@gnat.com>
30716 * prj-env.adb: (Contains_ALI_Files): New Boolean function
30717 (Ada_Objects_Path.Add): For a library project, add to the object path
30718 the library directory only if there is no object directory or if the
30719 library directory contains ALI files.
30720 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30722 2004-10-26 Vincent Celier <celier@gnat.com>
30724 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30725 extension of library projects.
30727 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30728 path defaults to ".:<prefix>/lib/gnat".
30729 (Parse): For an extending all project, allow direct import of a project
30730 that is virtually extended.
30732 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30733 the specified name is directly imported, return its ID. Otherwise, if
30734 an extension of this project is imported, return the ID of the
30737 2004-10-26 Robert Dewar <dewar@gnat.com>
30739 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30740 (Sub3): New procedure, used by Scaled_Divide
30741 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30742 correct more than one instance of failure to propagate carries
30744 (Double_Divide): Handle overflow case of largest negative number
30745 divided by minus one.
30747 * s-arit64.ads (Double_Divide): Document that overflow can occur in
30748 the case of a quotient value out of range.
30751 2004-10-26 Robert Dewar <dewar@gnat.com>
30753 * s-bitops.adb (Bit_Eq): Remove redundant check.
30755 * s-bitops.ads: Minor comment updates
30756 Change some occurrences of Address to System.Address
30758 * s-carsi8.ads: Fix minor cut-and-paste error in comments
30760 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30762 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30763 accessibility check to prefix that is a protected operation.
30765 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30767 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30768 empty, post message on stub.
30770 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30771 Javier Miranda <miranda@gnat.com>
30773 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30774 current instance appears within a unit that is directly in the context
30776 Used to determine whether the body of the instance should be analyzed
30777 immediately after its spec, to make its subprogram bodies available
30778 for front-end inlining.
30779 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30780 constraint is not allowed on the component type (AARM 12.5.3(3))
30782 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30784 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30785 'Storage_Pool): enhance, document & limit detection of non-sharable
30788 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30790 * s-pooglo.ads: Add more documentation now that this pool is properly
30793 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30795 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30796 or protected type with discriminants, do not constrain the
30797 corresponding record type if the subtype declaration has no
30798 discriminant constraints. This can be the case in source code, or in
30799 the subtype declaration created to rename an actual type within an
30802 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30804 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30805 different kind of stub (possibly wrong name for file), do not check
30807 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30808 includes call to some function that returns an unconstrained type, do
30811 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30813 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30814 appear in the code for the main unit. Dependencies among units in the
30815 context of the main unit are established when those other units are
30816 compiled. Otherwise spurious elaboration constraints can generate
30817 incorrect elaboration circularities.
30819 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30820 Ed Schonberg <schonberg@gnat.com>
30822 * sem_util.adb (Is_Aliased_View): Defend against the case where this
30823 subprogram is called with a parameter that is not an object name. This
30824 situation arises for some cases of illegal code, which is diagnosed
30825 later, and in this case it is wrong to call Is_Aliased, as that might
30826 cause a compiler crash.
30827 (Explain_Limited_Type): Refine previous fix to include
30828 inherited components of derived types, to provide complete information.
30830 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30831 is the prival for a protected object.
30832 It is necessary to mark this entity as a variable, in addition to
30833 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30834 modified to avoid checking the Aliased flag on entities that are not
30835 objects. (Checking that flag for non-objects is erroneous and could
30836 lead to a compiler crash).
30838 2004-10-26 Robert Dewar <dewar@gnat.com>
30840 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30841 X_Frac = 0.5, then we know that the number X must be positive.
30842 (Succ): Remove the same redundant test, and also fix the primary test
30843 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30845 (Decompose): Add fuller comments to spec
30847 2004-10-26 Pascal Obry <obry@gnat.com>
30849 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30850 validity (process must have read access). Set to 0 in all other cases.
30851 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30852 violation on Win32.
30853 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30854 segmentation violation.
30856 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30858 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30859 whose type is a constructed subtype of an aliased object with an
30860 unconstrained nominal subtype, convert the actual to the constructed
30861 subtype before taking its address.
30863 2004-10-26 Vincent Celier <celier@gnat.com>
30865 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30866 (Is_Path_Name_Case_Sensitive): New function
30868 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30869 (Base_Name, Simple_Name, Current_Directory, Compose,
30870 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30873 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30874 Vasiliy Fofanov <fofanov@act-europe.fr>
30875 Vincent Celier <celier@gnat.com>
30877 * gnat_ugn.texi: Generalize "finding memory problems" section into a
30878 "memory management issues" section and document some of the useful
30879 memory pools provided as part of the GNAT library.
30880 Remove "virtual" from declaration of A::method2 in
30881 the simple example of Ada/C++ mixed system.
30882 Library Projects may be virtually extended: their virtual extensions
30883 are not Library Projects.
30884 Added section on extending project hierarchies.
30886 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30888 * adaint.c (__gnat_get_libraries_from_registry): Cast value
30890 (__gnat_portable_spawn): Remove const.
30892 * mingw32.h (MAXPATHLEN): Check for previous definition.
30894 2004-10-17 Matthias Klose <doko@debian.org>
30896 * gnatvsn.ads: Set gnat library version to 4.0.
30898 2004-10-05 Vincent Celier <celier@gnat.com>
30900 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30902 2004-10-04 Laurent Guerby <laurent@guerby.net>
30905 * Makefile.in: Define and use RANLIB_FLAGS.
30907 2004-10-04 Pascal Obry <obry@gnat.com>
30909 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30910 other x86 platforms).
30912 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30914 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30915 in general and triggers stack alignment adjustment for thread entry
30916 points on targets where this is necessary.
30918 2004-10-04 Bernard Banner <banner@gnat.com>
30921 * Makefile.in: Add section for powerpc linux
30922 Add variant i-vxwork-x86.ads
30924 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30926 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30928 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30929 table registration calls when need be. Ensures no reference to the crt
30930 ctors symbol are issued in the SJLJ case, which avoids possible
30931 undefined symbol errors in the case of modules to be statically linked
30934 2004-10-04 Javier Miranda <miranda@gnat.com>
30936 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30937 in-line the code corresponding to subprogram Analyze_Actuals. In
30938 addition, analyze the actuals only in case of subprogram call.
30940 2004-10-04 Ed Falis <falis@gnat.com>
30942 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30944 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
30946 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30947 in the documentation.
30949 2004-10-04 Robert Dewar <dewar@gnat.com>
30951 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30953 (Analyze_Block_Statement): Add circuitry to detect following dead code
30954 (Check_Unreachable_Code): Handle case of block exit
30956 2004-10-04 Robert Dewar <dewar@gnat.com>
30958 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30959 (XMatchD): Avoid warning for Logic_Error call
30961 2004-10-04 Robert Dewar <dewar@gnat.com>
30963 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30964 consider expressions buried within a procedure actual to be an actual.
30965 This caused some blowups with uses of packed slices within a procedure
30968 2004-10-04 Robert Dewar <dewar@gnat.com>
30970 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30971 longer need to be initialized to zero.
30972 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30973 initialized to zero.
30975 * checks.adb (Expr_Known_Valid): Packed arrays are now always
30976 considered valid, even if the representation is modular. That's correct
30977 now that we no longer initialize packed modular arrays to zero.
30979 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30980 suffixes. These are now documented as the only cases in which the
30981 debugger ignores outer records.
30982 Previously, the spec allowed arbitrary suffixes for this purpose.
30983 Change name of LJM to JM for packed array pad records
30984 Create separate section on packed array handling, and add a whole new
30985 set of comments to this section describing the situation with packed
30986 modular types and justification requirements depending on endianness.
30988 2004-10-04 Robert Dewar <dewar@gnat.com>
30990 * a-except.adb: Add a comment for last change
30992 * einfo.ads: Minor spelling correction in comment
30994 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30996 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30999 * sem_util.ads: Minor comment update
31001 2004-10-04 Ed Schonberg <schonberg@gnat.com>
31003 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
31004 Inline_Always when in Configurable_Run_Time mode.
31006 * sem_prag.adb (Process_Convention): If entity is an inherited
31007 subprogram, apply convention to parent subprogram if in same scope.
31008 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
31009 when in Configurable_Run_Time mode.
31011 2004-10-04 Ed Schonberg <schonberg@gnat.com>
31013 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
31014 class_wide type after component list has been inherited.
31016 2004-10-04 Ed Schonberg <schonberg@gnat.com>
31018 * sem_ch12.adb (Check_Generic_Actuals): New predicate
31019 Denotes_Previous_Actual, to handle properly the case of a private
31020 actual that is also the component type of a subsequent array actual.
31021 The visibility status of the first actual is not affected when the
31022 second is installed.
31023 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
31024 make fully recursive the treatment of formals of packages declared
31026 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
31027 the above on exit from an instantiation.
31028 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
31029 current instantiation which is now complete.
31030 (Analyze_Package_Instantiation): No instantiated body is needed if the
31031 main unit is generic. Efficient, and avoid anomalies when a instance
31032 appears in a package accessed through rtsfind.
31034 2004-10-04 Ed Schonberg <schonberg@gnat.com>
31036 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
31037 do not generate a declaration for a temporary if the call is part of a
31038 library-level instantiation.
31040 2004-10-04 Ed Schonberg <schonberg@gnat.com>
31042 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
31043 searching for a limited component to flag.
31045 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
31046 expansion of Input, to account for the fact that the implicit call
31047 generated by the attribute reference must freeze the user-defined
31048 stream subprogram. This is only relevant to 'Input, because it can
31049 appear in an object declaration, prior to the body of the subprogram.
31051 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
31052 expansion can proceed and further errors uncovered.
31053 (Minor clean up): Fix cases of using | instead of \ for continuation
31056 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31058 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
31060 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
31061 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
31062 Use gcc_assert and gcc_unreachable.
31064 * decl.c (gnat_to_gnu_entity, case object): Check and process a
31065 specified alignment before validating size.
31066 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
31067 stripped-down declaration for the type of the inner field when making
31070 * utils.c (finish_record_type): Do not compute the size in units
31071 incrementally. Instead compute it once for the rep clause case.
31072 Use gcc_assert and gcc_unreachable.
31074 2004-10-04 Vincent Celier <celier@gnat.com>
31076 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
31078 (Is_Valid_Path_Name): Take '/' as a directory separator.
31080 2004-10-04 Vincent Celier <celier@gnat.com>
31082 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
31083 (Extended_Project) only if Extended_Project is defined, to avoid
31085 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
31087 (Parse_Single_Project): Ditto.
31089 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
31090 Add_To_Project_Path for virtual projects.
31092 2004-10-04 Vincent Celier <celier@gnat.com>
31094 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31095 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
31096 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
31097 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
31098 parameter Options_2.
31100 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
31101 Build_Dynamic_Library with an empty Options_2.
31103 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
31106 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
31107 directory separator, if any.
31108 (Gprmake): Do not allow mains on the command line for library projects.
31109 Do not attempt to link when the project is a library project.
31110 (Library_Opts): New table to store Library_Options.
31111 (Build_Library): If Library_Options is specified, pass these options
31112 when building a shared library.
31114 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
31116 * s-tposen.adb (Service_Entry): The object must be always unlocked at
31117 the end of this procedure now that the unlock operation was inserted
31120 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
31122 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
31123 corresponding to the Preallocated_Stacks flags in System.
31124 (Get_Target_Parameters): Including the processing for
31125 Preallocated_Stacks.
31127 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
31128 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
31129 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
31130 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
31131 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
31132 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
31133 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
31134 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
31135 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
31136 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
31137 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
31138 used to signal whether the compiler creates the required stacks and
31139 descriptors for the different tasks (when True) or it is done by the
31140 underlying operating system at run time (when False).
31141 It is initially set to False in all targets.
31143 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
31144 if it is supported by the target.
31145 (Make_Task_Create_Call): Pass the stack address if it has been
31146 previously created. Otherwise pass a Null_Address.
31148 * snames.adb: Add _stack.
31150 * snames.ads: Add Name_uStack. Required to allow the expander to
31151 statically allocated task stacks.
31153 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
31154 Stack_Address argument.
31155 Check that its value is equal to Null_Address because this target does
31156 not support the static stack allocation.
31158 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
31160 * usage.adb: Change "pragma inline" to "pragma Inline" in information
31163 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
31165 * exp_dist.adb: Split declaration of asynchronous flag out of
31166 Add_RACW_Read_Attribute.
31167 Minor reformatting for better alignment with PolyORB version.
31168 Store the entity for the asynchronous flag of an RACW, rather than the
31169 expression, in the asynchronous flags table. This will allow this flag
31170 to be used in other subprograms beside Add_RACW_Read_Attribute.
31172 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
31174 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
31175 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
31176 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
31177 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
31178 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
31179 sockets constant MSG_NOSIGNAL (Linux-specific).
31180 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
31181 all Send operations.
31182 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
31183 from trigerring SIGPIPE.
31184 Rename components to avoid clash with Ada 2005 possible reserved
31186 (Check_Selector): When the select system call returns with an error
31187 condition, propagate Socket_Error to the caller.
31189 2004-10-01 Jan Hubicka <jh@suse.cz>
31191 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
31193 2004-09-23 Robert Dewar <dewar@gnat.com>
31196 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
31197 instead do this at freeze time (we won't do it if there is an address
31199 Change "pragma inline" to "pragma Inline" in information and error
31201 Minor reformatting.
31203 * freeze.adb (Check_Address_Clause): Remove previous change, not the
31204 right way of doing things after all.
31205 (Freeze_Entity): For object, set Is_Public for imported entities
31206 unless there is an address clause present.
31208 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
31210 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
31211 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
31212 ensures proper handling of types with rep clauses, which might have
31213 their TYPE_SIZE set already.
31215 2004-09-21 Robert Dewar <dewar@gnat.com>
31217 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
31218 packed array types in both little- and big-endian cases. This change
31219 ensures that we no longer count on the unused bits being initialized
31220 for such types (and in particular ensures that equality testing will
31221 only read the relevant bits).
31222 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
31223 These changes mean that we no longer need to initialize small packed
31225 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
31226 optimization to an LJM field as to its parent field.
31228 * ada-tree.h, trans.c, utils.c, utils2.c:
31229 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
31231 2004-09-20 Jan Hubicka <jh@suse.cz>
31233 * utils.c (gnat_finalize): Remove.
31234 (end_subprog_body): Directly call cgraph_finalize_function;
31235 do not lower the nested functions.
31237 2004-09-20 Robert Dewar <dewar@gnat.com>
31240 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
31241 if an address clause is present, since that means that the Import
31244 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
31246 * 5tsystem.ads: Removed, no longer used.
31248 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
31249 Zack Weinberg <zack@codesourcery.com>
31251 * ada-tree.def: Use tree_code_class enumeration constants
31252 instead of code letters.
31253 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
31254 Update for new tree-class enumeration constants.
31256 2004-09-17 Vincent Celier <celier@gnat.com>
31258 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
31259 capabilities of the general project manager.
31261 2004-09-09 Vincent Celier <celier@gnat.com>
31263 * a-direct.ads: Add pragma Ada_05
31264 (Directory_Entry_Type): Give default value to component Kind to avoid
31265 not initialized warnings.
31267 * a-direct.adb (Current_Directory): Remove directory separator at the
31269 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
31270 an existing directory.
31271 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
31272 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
31273 Convert the result to File_Size.
31275 * prj.ads: (Project_Error): New exception
31277 * prj-attr.adb: Except in procedure Initialize, Fail comes from
31278 Prj.Com, not from Osint.
31279 (Attrs, Package_Attributes): Tables moved to private part of spec
31280 (Add_Attribute, Add_Unknown_Package): Moved to new child package
31282 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
31283 Prj.Project_Error after call to Fail.
31284 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
31285 Fail. Check that package name is not already in use.
31287 * prj-attr.ads: Comment updates to indicate that all subprograms may be
31288 used by tools, not only by the project manager, and to indicate that
31289 exception Prj.Prj_Error may be raised in case of problem.
31290 (Add_Unknown_Package, Add_Attribute): Moved to new child package
31292 (Attrs, Package_Attributes): Table instantiations moved from the body to
31293 the private part to be accessible from Prj.Attr.PM body.
31295 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
31296 from new package Prj.Attr.PM.
31297 (Parse_Attribute_Declaration): Call Add_Attribute from new package
31300 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
31302 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
31303 instead of Elaboration_Checks).
31305 * a-calend.adb: Minor reformatting
31307 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31309 * gigi.h (maybe_pad_type): New declaration.
31310 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
31312 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
31314 * cuintp.c: Convert to use buildN.
31316 * decl.c (maybe_pad_type): No longer static.
31317 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
31319 Convert to use buildN.
31321 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
31322 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
31323 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
31325 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
31326 (gnat_gimplify_expr, case ADDR_EXPR): New case.
31327 Convert to use buildN.
31329 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
31330 TREE_READONLY for const.
31331 Convert to use buildN.
31333 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
31334 (create_var_decl): Refine when TREE_STATIC is set.
31335 Convert to use buildN.
31337 2004-09-09 Gary Dismukes <dismukes@gnat.com>
31339 * gnat_ugn.texi: Delete text relating to checking of ali and object
31342 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
31345 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
31347 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
31348 pragmas recognized by GNAT.
31350 * gnat_rm.texi: Document pragma Detect_Blocking.
31352 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
31353 raise Program_Error if called from a protected operation.
31355 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
31356 the protected action nesting level.
31357 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
31358 protected action nesting level.
31359 (Unlock): When pragma Detect_Blocking is active decrease the protected
31360 action nesting level.
31362 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
31363 Protected_Action_Nesting.
31365 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
31366 Common_ATCB record. It contains the dynamic level of protected action
31367 nesting for each task. It is needed for checking whether potentially
31368 blocking operations are called from protected operations.
31369 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
31370 Detect_Blocking is active or not in the partition.
31372 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
31373 raise Program_Error if called from a protected operation.
31374 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
31375 Program_Error if called from a protected operation.
31376 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
31377 Program_Error if called from a protected operation.
31379 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
31380 raise Program_Error if called from a protected operation.
31382 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
31383 raise Program_Error if called from a protected operation, and increase
31384 the protected action nesting level.
31385 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
31386 Program_Error if called from a protected operation, and increase the
31387 protected action nesting level.
31388 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
31389 protected action nesting level.
31391 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
31392 raise Program_Error if called from a protected operation, and increase
31393 the protected action nesting level.
31394 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
31395 Program_Error if called from a protected operation, and increase the
31396 protected action nesting level.
31397 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
31398 raise Program_Error if called from a protected operation.
31399 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
31400 active, raise Program_Error if called from a protected operation.
31401 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
31402 protected action nesting level.
31404 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
31405 insertion of the statement raising Program_Error. The run time
31406 contains the required machinery for handling that.
31408 * sem_util.ads: Change comment associated to procedure
31409 Check_Potentially_Blocking_Operation.
31410 This procedure does not insert a call for raising the exception because
31411 that is currently done by the run time.
31413 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
31415 * init.c: Add the global variable __gl_detect_blocking that indicates
31416 whether pragma Detect_Blocking is active (1) or not (0). Needed for
31417 making the pragma available at run time.
31418 (__gnat_set_globals): Pass and update the detect_blocking parameter.
31420 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
31421 pragma Detect_Blocking is active.
31423 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
31425 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
31426 DB is found in the ali file. Any unit compiled with pragma
31427 Detect_Blocking active forces its effect in the whole partition.
31429 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
31430 Detect_Blocking is active and delay is called from a protected
31433 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
31434 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
31435 Detect_Blocking is active (0 otherwise).
31436 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
31437 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
31440 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
31442 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
31443 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
31446 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
31447 (Register_Receiving_Stub): Add Subp_Info formal parameter.
31448 Update API in placeholder implemetation of s-parint to reflect changes
31449 in distribution runtime library.
31451 * sem_ch3.adb (Expand_Derived_Record): Rename to
31452 Expand_Record_Extension.
31454 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
31455 primitive operations of potentially distributed object types that have
31456 non-controlling anonymous access formals.
31458 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
31460 New implementation of expansion for remote access-to-subprogram types,
31461 based on the RACW infrastructure.
31462 This version of sem_dist is compatible with PolyORB/DSA as well as
31465 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
31466 Asynchrronous that applies to a remote access-to-subprogram type, mark
31467 the underlying RACW type as asynchronous.
31469 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
31470 __gnat_using_gnu_linker to 1.
31472 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
31473 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
31474 GNAT.Perfect_Hash_Generators, and remove the empty
31475 GNAT.Perfect_Hash package.
31477 * atree.adb: Minor reformatting
31479 * exp_ch3.adb (Expand_Derived_Record): Rename to
31480 Expand_Record_Extension.
31481 (Build_Record_Init_Proc.Build_Assignment): The default expression in
31482 a component declaration must remain attached at that point in the
31483 tree so New_Copy_Tree copies it if the enclosing record type is derived.
31484 It is therefore necessary to take a copy of the expression when building
31485 the corresponding assignment statement in the init proc.
31486 As a side effect, in the case of a derived record type, we now see the
31487 original expression, without any rewriting that could have occurred
31488 during expansion of the ancestor type's init proc, and we do not need
31489 to go back to Original_Node.
31491 * exp_ch3.ads (Expand_Derived_Record): Rename to
31492 Expand_Record_Extension.
31494 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
31495 Returns the RACW type used to implement a remote access-to-subprogram
31497 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
31498 New subprograms. Used to create a proxy tagged object for a remote
31499 subprogram. The proxy object is used as the designated object
31500 for RAS values on the same partition (unless All_Calls_Remote applies).
31501 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
31502 System.Partition_Interface.Get_Unique_Remote_Pointer.
31503 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
31504 Renamed from Add_RAS_*_Attribute.
31505 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
31507 New implementation of expansion for remote access-to-subprogram types,
31508 based on the RACW infrastructure.
31510 * exp_dist.ads (Copy_Specification): Update comment to note that this
31511 function can copy the specification from either a subprogram
31512 specification or an access-to-subprogram type definition.
31514 2004-09-09 Ed Schonberg <schonberg@gnat.com>
31516 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
31517 in an instance, between an explicit subprogram an one inherited from a
31518 type derived from an actual.
31520 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
31521 add a polling call if the subprogram is to be inlined by the back-end,
31522 to avoid repeated calls with multiple inlinings.
31524 * checks.adb (Apply_Alignment_Check): If the expression in the address
31525 clause is a call whose name is not a static entity (e.g. a dispatching
31526 call), treat as dynamic.
31528 2004-09-09 Robert Dewar <dewar@gnat.com>
31530 * g-trasym.ads: Minor reformatting
31532 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
31533 packed arrays, since unused bits are expected to be zero for a
31536 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
31538 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
31541 2004-09-09 Pascal Obry <obry@gnat.com>
31543 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
31544 enable map file generation. Add the right option to generate the map
31545 file if Map_File is set to True.
31547 * gnatdll.adb (Gen_Map_File): New variable.
31548 (Syntax): Add info about new -m (Map_File) option.
31549 (Parse_Command_Line): Add support for -m option.
31550 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
31551 Minor reformatting.
31553 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
31555 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
31556 new gnatdist implementation.
31557 Define a subpackage isolating the output routines specific to this
31560 2004-09-09 Joel Brobecker <brobecker@gnat.com>
31562 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
31564 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
31566 2004-09-09 Cyrille Comar <comar@act-europe.fr>
31568 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
31571 * opt.ads: Add Ada_Version_Runtime constant used to decide which
31572 version of the language is used to compile the run time.
31574 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
31576 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
31577 of variable length temporaries for function return now that the
31578 back-end and gigi support it.
31580 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31582 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
31584 * trans.c (struct stmt_group): Delete field GLOBAL.
31585 (gnat_init_stmt_group): Do not initialize it.
31586 (call_to_gnu): Use save_expr, not protect_multiple_eval.
31587 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
31588 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
31589 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
31590 (start_stmt_group): Likewise.
31591 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
31593 * utils2.c (ggc.h): Include.
31594 (build_call_raise): Call build_int_cst, not build_int_2.
31596 * utils.c (gnat_init_decl_processing): Fix arg to
31597 build_common_tree_nodes.
31598 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
31599 (gnat_define_builtin): Set built_in_decls.
31600 (init_gigi_decls): Call build_int_cst, not build_int_2.
31602 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
31603 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
31604 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
31605 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
31606 SET_TYPE_MODULE): Use them.
31607 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
31608 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
31609 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
31610 SET_TYPE_ADA_SIZE): Likewise.
31611 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
31612 (DECL_CONST_CORRESPONDING_VAR,
31613 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
31614 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
31615 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
31616 (TYPE_RM_SIZE_NUM): New macro.
31617 (TYPE_RM_SIZE): Modified to use above.
31619 * cuintp.c: (build_cst_from_int): New function.
31620 (UI_To_gnu): Use it.
31622 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
31623 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
31624 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
31625 MIN_EXPR for the size, copy it into new.
31627 2004-09-01 Robert Dewar <dewar@gnat.com>
31629 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
31630 packed indexed component where array is an IN OUT formal. This
31631 generated garbage code previously.
31633 * gnat_ugn.texi: Document -fverbose-asm
31635 * gnat-style.texi: Minor updates (note that boolean constants and
31636 variables are joined with AND/OR rather than short circuit forms).
31638 2004-09-01 Ed Schonberg <schonberg@gnat.com>
31640 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
31641 it is an upward conversion of an untagged type with no representation
31644 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
31646 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
31647 System.Partition_Interface.
31649 * checks.adb (Apply_Access_Checks): Do not generate checks when
31650 expander is not active (but check for unset reference to prefix of
31653 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
31654 pragma Debug as an if statement with a constant condition, for
31655 consistent treatment of entity references contained within the
31656 enclosed procedure call.
31658 2004-09-01 Vincent Celier <celier@gnat.com>
31660 * bindgen.adb: (Set_EA_Last): New procedure
31661 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
31663 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
31664 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
31665 linked without errors.
31666 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
31668 (Gen_Exception_Table_C): Correct same bugs
31670 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
31672 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
31673 on Windows, make sure that the drive letter is in upper case.
31675 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
31676 Windows, when the drive letter is added and Case_Sensitive is True, the
31677 drive letter is forced to upper case.
31679 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
31680 to Options_2 for the call to MLib.Utl.Gcc.
31682 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
31683 directory separator when defining BASE_DIR.
31685 2004-09-01 Pascal Obry <obry@gnat.com>
31687 * gprcmd.adb (Extend): Do not output trailing directory separator. This
31688 is not needed and it confuses Windows GNU/make which does not report
31689 directory terminated by a slash as a directory.
31690 (gprcmd): Idem for "pwd" internal command.
31692 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31693 target names rewrite to fix regressions with recent version of
31694 GNU/make. Starting with GNU/make 3.80 the pipe character was not
31695 handled properly anymore.
31697 2004-09-01 Andreas Schwab <schwab@suse.de>
31699 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31700 * raise.c [!IN_RTS]: Undef abort.
31702 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
31704 * utils2.c (build_allocator): Use ssize_int.
31706 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31708 2004-08-27 Andreas Schwab <schwab@suse.de>
31710 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31712 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31713 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31715 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31717 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31719 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31720 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31721 * utils.c (init_gigi_decls): Likewise.
31722 * utils2.c (build_call_raise, build_allocator): Likewise.
31724 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
31726 * utils.c (gnat_init_decl_processing): Adjust
31727 build_common_tree_nodes call.
31729 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
31731 * utils2.c (build_allocator): Use build_int_cst for negative
31734 2004-08-18 Richard Henderson <rth@redhat.com>
31736 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31738 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
31740 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31742 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31743 (gnat_to_gnu): Likewise.
31745 2004-08-16 Pascal Obry <obry@gnat.com>
31747 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31748 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31749 option and not mdll anymore. Update comment.
31751 2004-08-16 Pascal Obry <obry@gnat.com>
31753 * bld.adb (Put_Include_Project): Properly handle directory separators
31756 2004-08-16 Ed Schonberg <schonberg@gnat.com>
31758 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31759 decreasing the number of allocated junk nodes while searching for the
31760 appropriate subprogram.
31762 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
31764 * cuintp.c (UI_To_gnu): Use build_int_cst..
31765 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31766 * utils.c (init_gigi_decls): Likewise.
31767 * utils2.c (build_call_raise): Likewise.
31769 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
31771 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31772 for a global aliased object with a variable size and an unconstrained
31773 nominal subtype, pretend there is no initializer if the one we have is
31774 incomplete, and avoid referencing an inexistant component in there. The
31775 part we have will be rebuilt anyway and the reference may confuse
31776 further operations.
31778 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
31780 * einfo.ads: Minor reformatting
31782 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31783 restrictions in the ALI if we only want to warn about violations.
31785 2004-08-13 Vincent Celier <celier@gnat.com>
31787 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31788 when creating a new Unit_Record in table Units.
31790 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31791 that are violated, if any.
31793 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31794 add directory separator if path already ends with a directory separator.
31796 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31798 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31799 unit, this is an attempt to inline a construct that is not available in
31800 the current restricted mode, so abort rather than trying to continue.
31802 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31803 discriminants that rename those of the parent, recover names of
31804 original discriminants for the constraint on the full view of the
31806 (Complete_Private_Subtype): Do not create a subtype declaration if the
31807 subtype is an itype.
31809 * gnat_rm.texi: Added section on implementation of discriminated
31810 records with default values for discriminants.
31812 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31815 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31816 the second operand is overloaded.
31818 2004-08-10 Richard Henderson <rth@redhat.com>
31820 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31821 add __builtin_alloca.
31823 2004-08-10 Richard Henderson <rth@redhat.com>
31825 * config-lang.in (boot_language): Yes.
31827 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
31829 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31830 from complaining on potential uninitialized reference.
31831 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31832 new specification and test explicitly for non-zero return value.
31834 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31835 returning C.int, to avoid using a derived boolean type.
31837 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31838 Duplicate_Subexpr_No_Checks in preference to direct use of
31839 Remove_Side_Effects and New_Copy_Tree.
31840 Clear Comes_From_Source on prefix of 'Size attribute reference.
31842 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31843 g-socthi-vxworks.adb: Change calls to
31844 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31845 and test explicitly for non-zero return value.
31847 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31848 (Is_Socket_In_Set): Declare imported function as returning C.int, to
31849 avoid using a derived boolean type.
31851 2004-08-09 Albert Lee <lee@gnat.com>
31853 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31855 2004-08-09 Pascal Obry <obry@gnat.com>
31857 * gnat_ugn.texi: Document new way to build DLLs on Windows using
31858 GCC's -shared option.
31860 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31861 Options_2 parameter (options put after object files).
31863 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
31865 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31866 ignore overflows on low and high bounds of an index to also account for
31867 differences in signedness between sizetype and gnu_index_subtype.
31868 These are as legitimate as the ones caused by a lower TYPE_PRECISION
31871 2004-08-09 Robert Dewar <dewar@gnat.com>
31873 * s-solita.ads, s-solita.adb: Minor reformatting
31875 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31876 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31877 obsolescent section
31878 Add note that No_Implicit_Conditionals does not suppress
31879 run time constraint checks.
31881 * vms_conv.ads: Minor reformatting
31883 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31884 and necessary for following change).
31885 (Mark): Return new format Mark_Id containing sec stack address
31886 (Release): Use sec stack address from Mark_Id avoiding Self call
31888 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31889 pointer (cleanup and necessary for following change).
31890 Define Mark_Id as record containing address of secondary stack, that way
31891 Release does not need to find the stack again, decreasing the number of
31892 calls to Self and improving efficiency.
31894 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31896 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31897 case variable into the individual case branches when possible.
31899 * sem_ch11.adb: Minor reformatting
31901 * prj.ads: Correct spelling of suffixs
31903 * prj-nmsc.adb: Minor reformatting
31904 Correct spelling suffixs throughout (also in identifiers)
31906 * freeze.adb: Minor spelling correction
31908 * exp_ch2.adb: Cleanups to handling of Current_Value
31909 (no functional effect).
31911 * bld.adb: Correct spelling of suffixs
31913 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31915 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31918 * sem_ch7.adb (Install_Private_Declarations): In the body of the
31919 package or of a child, private entities are both immediately_visible
31922 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31924 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31925 there are no range checks on the value of the literal.
31927 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31928 wrapped is the triggering alternative of an asynchronous select, action
31929 statements mustbe inserted before the select itself.
31931 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31932 case where the prefix is a protected function call.
31933 (Resolve_Attribute, case 'Access): The attribute reference on a
31934 subprogram is legal in a generic body if the subprogram is declared
31937 2004-08-09 Vincent Celier <celier@gnat.com>
31939 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31940 languages, otherwise building the library may fail with unresolved
31942 (Compile_Sources): Do not build libraries if -c switch is used
31944 * gnatlink.adb (Process_Args): New switches -M and -Mmap
31945 (Write_Usage): If map file creation is supported, output new switches
31947 (Gnatlink): When -M is specified, add the necessary switch(es) to the
31948 gcc call, when supported.
31950 * Makefile.in: Added indepsw.o to the object list for gnatlink
31951 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31953 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31954 indepsw.adb, indepsw.ads: New files.
31956 2004-08-09 Bernard Banner <banner@gnat.com>
31958 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31960 * Makefile.in: add section for vxworks x86
31962 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
31964 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31965 per-object constrained components where the discriminant is of an
31967 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31968 the parent initialization procedure for derived Unchecked_Unions.
31969 Instead, derived Unchecked_Unions build their own initialization
31971 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31972 Check the body of the subprogram for details.
31973 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31974 functions for derived Unchecked_Union types by introducing a condition.
31975 Allow the creation of TSS equality functions for Unchecked_Unions.
31976 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31977 Add formal parameter Discr to function signature. Discr is used to
31978 control the generated case statement for Unchecked_Union types.
31979 (Make_Eq_If): Rename formal parameter Node to E in function signature.
31981 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31983 Check the body of the subprogram for details.
31984 (Expand_Composite_Equality): Augment composite type equality to include
31985 correct handling of Unchecked_Union components.
31986 (Expand_N_In): Add condition to detect illegal membership tests when the
31987 subtype mark is a constrained Unchecked_Union and the expression lacks
31988 inferable discriminants, and build a Raise_Program_Error node.
31989 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31990 to detect types that contain components of unconstrained Unchecked_Union
31991 subtype. Add condition to detect equality between types that have an
31992 unconstrained Unchecked_Union component, and build a Raise_Program_Error
31993 node. Add condition to detect equality between Unchecked_Union types
31994 that lack inferable discriminants, and build a Raise_Program_Error node.
31995 Otherwise build a TSS equality function call.
31996 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31997 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31998 with the operand lacking inferable discriminants, and build a Raise_
31999 Program_Error node.
32000 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
32001 composite equality.
32002 (Has_Inferable_Discriminants): Implement new predicate for objects and
32003 expressions of Unchecked_Union type. Check the body of subprogram for
32005 (Has_Unconstrained_UU_Components): Add function
32006 Component_Is_Unconstrained_UU. It is used to detect whether a single
32007 component is of an unconstrained Unchecked_Union subtype. Add function
32008 Variant_Is_Unconstrained_UU. It is used to detect whether a single
32009 component inside a variant is of an unconstrained Unchecked_Union type.
32011 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
32012 inferred discriminant values. Add condition to generate a case
32013 statement with an inferred discriminant as the switch.
32014 (Make_Component_List_Assign): Introduce a Boolean flag that determines
32015 the behaviour of the subprogram in the presence of an Unchecked_Union.
32016 Add condition to trigger the usage of the inferred discriminant value
32017 as the generated case statement switch.
32018 (Make_Field_Assign): Introduce a Boolean flag that determines the
32019 behaviour of the subprogram in the presence of an Unchecked_Union. Add
32020 condition to trigger the usage of the inferred discriminant value as
32021 the right-hand side of the generated assignment.
32023 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
32024 parameter generation when dealing with Unchecked_Unions.
32026 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
32027 checks for Unchecked_Unions.
32029 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
32031 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
32032 Raise_Program_Error nodes for the execution of Read and Write
32033 attributes of Unchecked_Union types and the execution of Input and
32034 Output attributes of Unchecked_Union types that lack default
32035 discriminant values.
32037 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
32038 Unchecked_Union. Add procedure Check_Component. It is used to inspect
32039 per-object constrained components of Unchecked_Unions for being
32040 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
32041 check individual components withing a variant.
32043 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
32044 comparison of Unchecked_Unions.
32045 (Resolve_Equality_OP): Remove guard that prevents equality between
32048 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
32049 of component subtypes for Unchecked_Union components.
32050 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
32051 since it is the actual subtype.
32053 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
32054 pass of Unchecked_Union subtypes as generic actuals to formal types
32055 that lack known_discriminant_parts or that are derived Unchecked_Union
32056 types, and do nothing. In any other case, produce an error message.
32058 * sem_ch3.adb (Analyze_Component_Declaration): Add function
32059 Contains_POC. It determines whether a constraint uses the discriminant
32060 of an enclosing record type.
32061 Add condition to detect per-object constrained component and set the
32063 (Derived_Type_Declaration): Remove guard that prevents derivation from
32064 Unchecked_Union types.
32065 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
32068 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
32069 references to Unchecked_Union discriminants.
32071 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
32072 formal generation when dealing with Unchecked_Unions.
32073 (Set_Actual_Subtypes): Add condition to prevent generation of actual
32074 subtypes for Unchecked_Unions.
32076 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
32077 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
32078 completions of discriminated partial views by Unchecked_Unions and
32079 produce an error message.
32081 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32083 * trans.c (struct stmt_group): New field, GLOBAL.
32084 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
32085 (struct elab_info): New struct.
32086 (elab_info_list, gnu_elab_proc_stack): New variables.
32087 (Compilation_Unit_to_gnu): New procedure.
32088 (gigi): Call it and also handle elaboration procs we've saved.
32089 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
32090 global field from parent.
32091 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
32092 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
32093 (start_stmt_group): Initialize global field from parent.
32094 (add_decl_expr): Set to global for current statement group.
32095 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
32098 * utils.c (global_bindings_p): True when no current_function_decl; no
32099 longer check current_binding_level.
32101 2004-08-09 Ben Brosgol <brosgol@gnat.com>
32103 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
32106 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
32108 2004-08-06 Andreas Schwab <schwab@suse.de>
32110 * utils.c (gnat_define_builtin): Remove second parameter of
32112 (begin_subprog_body): Likewise.
32114 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
32116 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
32117 optimization, not supported by the tree-ssa back-end.
32119 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
32121 * s-mastop-irix.adb: Update comments.
32123 * a-except.adb (Exception_Information): Raise Constraint_Error if
32124 exception Id is Null_Id.
32125 This is required behavior, which is more reliably and clearly checked
32126 at the top level interface level.
32128 2004-07-26 Javier Miranda <miranda@gnat.com>
32130 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
32131 call if a component has no default_expression and the box is used.
32133 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
32134 default_expression and you use box, it behaves as if you had declared a
32135 stand-alone object.
32136 (Resolve_Record_Aggregate): If a component has no default_expression and
32137 you use box, it behaves as if you had declared a stand-alone object.
32139 * sem_ch10.adb (Install_Siblings): Do not make visible the private
32140 entities of private-with siblings.
32142 2004-07-26 Ed Schonberg <schonberg@gnat.com>
32144 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
32145 for a component of an itype, set the parent pointer for analysis,
32146 there is no list in which to insert it.
32148 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
32149 bona-fide renamings, not for inherited operations.
32151 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
32152 actual for a formal that is an access parameter, create local
32153 finalization list even if the expression is not an aggregate.
32155 2004-07-26 Ed Schonberg <schonberg@gnat.com>
32158 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
32159 Diagnose properly illegal subprogram renamings that are library units.
32161 2004-07-26 Ed Schonberg <schonberg@gnat.com>
32164 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
32165 conversion rewritten as an unchecked conversion, check that original
32166 expression is a variable.
32168 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
32169 unchecked_conversion, create new node rather than rewriting in place,
32170 to preserve original construct.
32172 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32174 * gigi.h (gnat_expand_body): Deleted.
32176 * Make-lang.in: (trans.o): Depends on function.h.
32178 * misc.c: (gnat_expand_body): Moved to here.
32180 * trans.c (gnat_expand_body_1): Deleted.
32181 (gnat_expand_body): Moved from here.
32182 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
32183 (add_stmt): Check for marked visited with global_bindings_p.
32184 (gnat_gimplify_expr, case COMPONENT_REF): New case.
32185 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
32187 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
32188 VIEW_CONVERT_EXPR if not operation type.
32190 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
32193 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
32194 changes: reformatting of negation operators, removing unneeded
32195 inequality comparison with zero, converting equality comparisons with
32196 zero to negations, changing int/0/1 to bool/false/true, replace calls
32197 to gigi_abort with abort, and various other similar changes.
32199 2004-07-26 Vincent Celier <celier@gnat.com>
32201 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
32204 * make.adb (Gnatmake): Fail when a library is not present and there is
32205 no object directory.
32207 * mlib-prj.adb (Check_Library): No need to check if the library needs
32208 to be rebuilt if there is no object directory, hence no object files
32209 to build the library.
32211 * opt.ads (Setup_Projects): New Boolean flag.
32213 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
32215 Create directory when Kind /= "" and in "gnat setup". Report error if
32216 directory cannot be created.
32217 (Ada_Check): Create library interface copy dir if it does not exist
32218 and we are in "gnat setup".
32219 (Find_Sources): No error if in "gnat setup" and no Ada sources were
32221 (Language_Independent_Check): Create object directory, exec directory
32222 and/or library directory if they do not exist and we are in
32225 * vms_conv.ads: (Command_Type): New command Setup.
32227 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
32229 * vms_data.ads: Add qualifiers/switches for new built-in command
32232 2004-07-25 Richard Henderson <rth@redhat.com>
32234 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
32235 DECL_IGNORED_P on RESULT_DECL.
32237 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
32239 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
32240 allocation and potentially overflowing update with
32241 Tailored_Exception_Information. Use the sec-stack free procedural
32242 interface to output Exception_Information instead.
32244 * a-except.adb (To_Stderr): New subprogram for character, and string
32245 version moved from a-exextr to be visible from other separate units.
32246 (Tailored_Exception_Information): Remove the procedural version,
32247 previously used by the default Last_Chance_Handler and not any more.
32248 Adjust various comments.
32250 * a-exexda.adb: Generalize the exception information procedural
32251 interface, to minimize the use of secondary stack and the need for
32252 local buffers when the info is to be output to stderr:
32253 (Address_Image): Removed.
32254 (Append_Info_Character): New subprogram, checking for overflows and
32255 outputing to stderr if buffer to fill is of length 0.
32256 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
32257 (Append_Info_Address, Append_Info_Exception_Name,
32258 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
32259 Append_Info_Basic_Exception_Traceback,
32260 Append_Info_Exception_Information): New subprograms.
32261 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
32262 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
32263 Exception_Info_Maxlength, Exception_Name_Length,
32264 Exception_Message_Length): New subprograms.
32265 (Exception_Information): Use Append_Info_Exception_Information.
32266 (Tailored_Exception_Information): Use
32267 Append_Info_Basic_Exception_Information.
32268 Export services for the default Last_Chance_Handler.
32270 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
32271 other separate units.
32273 2004-07-20 Vincent Celier <celier@gnat.com>
32275 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
32277 2004-07-20 Ed Schonberg <schonberg@gnat.com>
32279 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
32280 emit itype references for the designated types of component types that
32281 are declared outside of the full record declaration, and that may
32282 denote a partial view of that record type.
32284 2004-07-20 Ed Schonberg <schonberg@gnat.com>
32287 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
32288 which is the designated type in an access component declaration, to the
32289 list of incomplete dependents of the parent type, to avoid elaboration
32290 issues with out-of-scope subtypes.
32291 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
32292 full view of the parent.
32294 2004-07-20 Ed Schonberg <schonberg@gnat.com>
32297 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
32298 entities that are hidden, such as references to generic actuals
32299 outside an instance.
32301 2004-07-20 Javier Miranda <miranda@gnat.com>
32303 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
32304 support to the new notation.
32305 (Analyze_Selected_Component): Add call to Try_Object_Operation.
32307 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
32309 * s-taprob.adb: Adding the elaboration code required for initializing
32310 the tasking soft links that are common to the full and the restricted
32313 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
32314 restricted run time has been moved to the package
32315 System.Soft_Links.Tasking.
32317 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
32318 restricted run time has been moved to the package
32319 System.Soft_Links.Tasking.
32321 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
32323 * s-solita.ads, s-solita.adb: New files.
32325 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32327 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
32328 Case_Statement_to_gnu): Split off from gnat_to_gnu.
32329 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
32330 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
32331 Exception_Handler_to_gnu_zcx): Likewise.
32333 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
32335 * gigi.h (builtin_function): Declare.
32337 2004-07-15 Robert Dewar <dewar@gnat.com>
32339 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
32342 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
32343 access values as an example of a warning.
32345 * gnat_rm.texi: Document new attribute Has_Access_Values
32347 * gnat-style.texi: Document that box comments belong on nested
32350 * sem_util.ads (Has_Access_Values): Improved documentation
32352 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
32354 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
32355 (Process_Interface_Name): Call to this new procedure
32356 (Set_Extended_Import_Export_External_Name): Call to this new procedure
32358 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
32360 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
32362 * einfo.ads: Minor comment typo fixed
32364 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
32366 * snames.adb: Add _atcb.
32368 * snames.ads: Add Name_uATCB.
32370 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
32371 (in the expanded code) when using the restricted run time.
32373 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
32374 a in parameter in order to allow ATCBs to be preallocated (in the
32377 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
32378 order to allow ATCBs to be preallocated. In case of error, the ATCB is
32379 deallocated in System.Tasking.Stages.
32381 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
32382 order to allow ATCBs to be preallocated.
32384 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
32385 here. It was previously done in Initialize_ATCB.
32387 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
32389 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
32390 Restricted run time.
32392 * exp_ch3.adb: When using the Restricted run time, pass the
32393 preallocated Ada_Task_Control_Block when creating a task.
32395 2004-07-15 Ed Schonberg <schonberg@gnat.com>
32397 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
32398 function call that is itself an actual in an enclosing call, diagnose
32399 problem here rather than assuming that resolution will catch it.
32401 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
32402 the local copy of a generic unit for a formal package, and the generic
32403 is a child unit, install private part of ancestors before compiling
32404 private part of spec.
32406 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
32407 use scope entities rather than tree structures, to handle properly
32408 parent units that are instances rewritten as bodies for inlining
32411 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
32412 Remove_Parents): Handle properly a parent unit that is an
32413 instantiation, when the unit has been rewritten as a body for inlining
32416 * par.adb (Goto_List): Global variable to collect goto statements in a
32417 given unit, for use in detecting natural loops.
32419 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
32420 use in detecting natural loops.
32422 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
32423 backwards goto's, and rewrite as a infinite loop, to improve locality
32426 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
32427 subcomponent that includes an indexed reference, to prevent the
32428 generation of copies that would miscompile the desired assignment
32430 (Build_Task_Image_Decls): Add a numeric suffix to
32431 generated name for string variable, to avoid spurious conflicts with
32432 the name of the type of a single protected object.
32434 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
32435 loop with an explicit exit statement, to avoid generating an
32436 out-of-range value with 'Succ leading to spurious constraint_errors
32437 when compiling with -gnatVo.
32439 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
32441 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
32442 might not be analyzed yet, even if its Etype is already set (case of an
32443 unchecked conversion built using Unchecked_Convert_To, for example).
32444 If the prefix has already been analyzed, this will be a nop anyway.
32446 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
32447 controller type, or an assignment of a record type with controlled
32448 components, copy only user data, and leave the finalization chain
32449 pointers untouched.
32451 2004-07-15 Vincent Celier <celier@gnat.com>
32453 * make.adb (Collect_Arguments): Improve error message when attempting
32454 to compile a source not part of any project, when -x is not used.
32456 * prj.ads: (Defined_Variable_Kind): New subtype
32458 * prj-attr.adb (Register_New_Package): Two new procedures to register
32459 a package with or without its attributes.
32460 (Register_New_Attribute): Mew procedure to register a new attribute in a
32462 New attribute oriented subprograms: Attribute_Node_Id_Of,
32463 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
32464 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
32466 New package oriented subprograms: Package_Node_Id_Of,
32467 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
32469 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
32471 (Package_Node_Id): Now a private, self initialized type
32472 (Register_New_Package): New procedure to register a package with its
32474 New attribute oriented subprograms: Attribute_Node_Id_Of,
32475 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
32476 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
32478 New package oriented subprograms: Package_Node_Id_Of,
32479 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
32481 * prj-dect.adb (Parse_Attribute_Declaration,
32482 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
32484 * prj-makr.adb (Make): Parse existing project file before creating
32485 other files. Fail if there was an error during parsing.
32487 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
32488 new spec of Prj.Attr.
32490 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
32491 to new spec of Prj.Attr.
32493 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32495 * utils2.c: Fix typo in comment.
32497 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32499 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
32500 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
32502 2004-07-14 Andreas Schwab <schwab@suse.de>
32504 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
32506 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32508 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
32510 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
32513 * misc.c (gnat_types_compatible_p): New function.
32514 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
32515 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
32517 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
32518 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
32519 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
32520 (mark_visited): Don't mark dummy type.
32521 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
32522 parameter, we must remove any LJM building from GNU_NAME.
32523 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
32524 (pos_to_constructor): Use int_const_binop.
32525 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
32528 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
32529 (gnat_pushlevel): Set TREE_USE on BLOCK node.
32530 (gnat_install_builtins): Add __builtin_memset.
32532 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
32534 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
32535 for a renaming, stabilize the initialization expression if we are at a
32536 local level. At the local level, uses of the renaming may be performed
32537 by a direct dereference of the initializing expression, and we don't
32538 want possible variables there to be evaluated for every use.
32540 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
32541 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
32542 them on the way. Account for the fact that we may introduce side
32543 effects in the process.
32545 2004-07-13 Richard Henderson <rth@redhat.com>
32547 * misc.c (default_pass_by_ref): Use pass_by_reference.
32549 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
32551 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
32552 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
32554 2004-07-08 Richard Henderson <rth@redhat.com>
32556 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
32559 2004-07-06 Vincent Celier <celier@gnat.com>
32561 * vms_conv.ads: Minor reformatting.
32562 Alphabetical order for enumerated values of type Command_Type, to have
32563 the command in alphabetical order for the usage.
32565 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
32566 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
32568 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
32570 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
32571 (Add_Archive_Path): Only add the global archive if there is one.
32572 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
32573 or not any object file to put in the global archive, and don't build
32574 a global archive if there is none.
32575 (X_Switches): New table
32576 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
32577 in the X_Switches table, if any.
32578 (Initialize): Make sure the X_Switches table is empty
32579 (Scan_Arg): Record -X switches in table X_Switches
32581 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
32583 * make.adb: Minor comment fix
32585 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
32586 invoked with directory information, add the directory in front of the
32589 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
32590 invoked with directory information, add the directory in front of the
32593 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
32594 when Keep_Temporary_Files is False.
32595 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
32596 directory information, add the directory in front of the path.
32597 When not on VMS, handle new switch -dn before the command to set
32598 Keep_Temporary_Files to True.
32599 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
32602 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
32603 invoked with directory information, add the directory in front of the
32606 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
32608 * snames.ads, snames.adb (Name_Stub): New name for the distributed
32611 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
32612 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
32614 * g-socket.adb (To_Timeval): Fix incorrect conversion of
32615 Selector_Duration to Timeval for the case of 0.0.
32617 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
32618 documentation from Evolve_And_Then.
32620 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
32622 * s-taprop-tru64.adb, s-taprop-os2.adb,
32623 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
32625 2004-07-06 Robert Dewar <dewar@gnat.com>
32627 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
32628 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
32629 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
32630 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
32631 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
32632 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
32633 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
32634 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
32635 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
32636 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
32637 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
32638 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
32639 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
32640 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
32641 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
32642 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
32643 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
32644 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
32645 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
32646 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
32647 vms_data.ads: Minor reformatting,
32648 Fix bad box comment format.
32650 * gnat_rm.texi: Fix minor grammatical error
32652 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
32654 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
32655 more cases of discriminated records to be recognized as not needing a
32657 (Has_Access_Values): New function.
32659 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
32661 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
32662 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
32663 with LRM terminology).
32664 Change terminology in comments primitive type => elementary type.
32666 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32669 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
32670 parameters do not impose any requirements on the presence of a body.
32672 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32675 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
32676 compilation unit and is in an open scope at the point of instantiation,
32677 assume that a body may be present later.
32679 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32681 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
32682 Improve error message when specified size is not supported.
32684 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
32685 is never a primitive operation.
32687 2004-07-05 Andreas Schwab <schwab@suse.de>
32689 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32690 RECORD_OR_UNION_CHECK.
32691 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32693 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
32695 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32696 dependency on xgnatugn, instead build it via a submake.
32697 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32699 2004-07-04 Richard Henderson <rth@redhat.com>
32701 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32703 2004-07-01 Richard Henderson <rth@redhat.com>
32705 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32706 * utils.c (max_size): Likewise.
32708 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32710 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32711 and rest_of_type_compilation; add arg to create_*_decl.
32712 (annotate_decl_with_node): Deleted.
32713 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32714 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32715 (get_current_block_context, gnat_pushdecl): New declarations.
32716 (gnat_init_stmt_group): Likewise.
32717 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32718 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32719 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32720 (gnat_init): Call gnat_init_stmt_group.
32721 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32722 (gnu_pending_elaboration_list): Deleted.
32723 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32724 (gigi): Rearrange initialization calls and move some to last above.
32725 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32726 Delete calls to add_decl_expr; add arg to create_*_decl.
32727 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32728 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32729 begin_subprog_body and call it.
32730 Don't push and pop ggc context.
32731 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32732 (add_stmt): Remove handling of DECL_EXPR from here.
32733 If not in function, mark visited.
32734 (add_decl_expr): Put global at top level.
32735 Check for cases of DECL_INITIAL we have to handle here.
32736 (process_type): Add extra arg to create_type_decl.
32737 (build_unit_elab): Rework to just gimplify.
32738 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32739 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32740 (get_pending_elaborations, pending_elaborations_p): Likewise.
32741 (push_pending_elaborations, pop_pending_elaborations): Likewise.
32742 (get_elaboration_location, insert_elaboration_list): Likewise.
32743 (gnat_binding_level): Renamed from ada_binding_level.
32744 (init_gnat_to_gnu): Don't clear pending_elaborations.
32745 (global_bindings_p): Treat as global if no current_binding_level.
32746 (set_current_block_context): New function.
32747 (gnat_pushdecl): Renamed from pushdecl; major rework.
32748 All callers changed.
32749 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32750 (finish_record_type): Call call pushdecl for stub decl.
32751 (function_nesting_depth): Deleted.
32752 (begin_subprog_body): Delete obsolete code.
32753 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32755 2004-06-28 Robert Dewar <dewar@gnat.com>
32757 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32758 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32759 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32760 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32761 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32763 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32764 deal with problem of inefficient slices on machines with strict
32765 alignment, when the slice is a component of a composite.
32767 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32768 machines, we need the check there as well.
32770 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32772 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32773 determine safe copying direction for overlapping slice assignments
32774 when component is controlled.
32776 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32777 formal derived type in the actual for a formal package are visible in
32778 the enclosing instance.
32780 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32783 * sem_util.adb (Trace_Components): Diagnose properly an illegal
32784 circularity involving a private type whose completion includes a
32785 self-referential component.
32786 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32787 renaming or an instantiation from an implicit derived operation.
32789 2004-06-28 Pascal Obry <obry@gnat.com>
32791 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32793 (Library_File_Name_For): Idem.
32795 2004-06-28 Matthew Gingell <gingell@gnat.com>
32797 * g-traceb.ads: Add explanatory note on the format of addresses
32798 expected by addr2line.
32800 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
32802 * Makefile.in: Force debugging information on s-tasdeb.adb,
32803 a-except.adb and s-assert.adb needed by the debugger.
32805 2004-06-28 Vincent Celier <celier@gnat.com>
32807 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32811 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32813 * prj.adb: Minor reformatting
32814 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32816 * prj.ads: Comment updates
32818 (Project_Data): Change Flag1 to Need_To_Build_Lib.
32819 Remove Flag2: not used.
32821 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32824 * gnat_ugn.texi: Put a "null;" declaration in one project file example
32826 * gnat_rm.texi: Document Empty declarations "null;".
32828 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32829 front of the linker options.
32830 (Link_Foreign): Put the global archives and the libraries in front of
32831 the linker options.
32833 2004-06-28 Javier Miranda <miranda@gnat.com>
32835 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32836 (RTU_Loaded): Code cleanup
32837 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32838 withed predefined units.
32840 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32841 explicitly withed predefined units.
32842 Fix typo in comment
32844 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32845 explicitly withed predefined units.
32847 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32849 * ada-tree.def (DECL_STMT): Deleted.
32850 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32851 (DECL_STMT_VAR): Deleted.
32852 * decl.c: add_decl_stmt now add_decl_expr.
32853 * gigi.h: Likewise.
32854 * trans.c: Likewise.
32855 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32856 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32857 (add_stmt): Only handle padded type here.
32858 (add_stmt_with_node): Allow gnat_node to not be present.
32859 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32860 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32861 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32862 make a SAVE_EXPR for the entire fat pointer.
32863 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32864 (create_index_type): Make a DECL_EXPR.
32865 (end_subprog_body): Don't call allocate_struct_function here but
32868 2004-06-25 Pascal Obry <obry@gnat.com>
32870 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32871 Relocatable from Build_Dynamic_Library call.
32873 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32874 Relocatable are now synonym.
32876 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32878 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32879 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32882 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32883 Lib_Address and Relocatable.
32884 (Default_DLL_Address): Removed.
32886 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32887 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32888 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32889 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32890 (Default_DLL_Address): Removed.
32892 * mlib-tgt-mingw.adb: Ditto.
32893 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32895 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32896 the initial thread stack size.
32898 * a-strmap.ads: Move package L to private part as it is not used in
32899 the spec. Found while reading code.
32901 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
32903 * tracebak.c: Introduce support for a GCC infrastructure based
32904 implementation of __gnat_backtrace.
32906 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32907 any more. Use accessors instead. This eases maintenance and relaxes
32908 some alignment constraints.
32909 (_GNAT_Exception structure): Remove the Ada specific fields
32910 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32912 (is_handled_by, __gnat_eh_personality): Replace component references to
32913 exception structure by use of the new accessors.
32915 * init.c (__gnat_initialize): Adjust comments to match the just
32916 reverted meaning of the -static link-time option.
32918 * adaint.c (convert_addresses): Arrange not to define a stub for
32919 mips-irix any more, as we now want to rely on a real version from a
32920 recent libaddr2line.
32922 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32923 the personality routine can use them and not have to rely on a C
32924 counterpart of the record anymore. This simplifies maintenance and
32925 relaxes the constraint of having Standard'Maximum_Alignment match
32927 Update comments, and add a section on the common header alignment issue.
32929 2004-06-25 Geert Bosch <bosch@gnat.com>
32931 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32932 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32934 2004-06-25 Robert Dewar <dewar@gnat.com>
32936 * gnat_rm.texi: Fix section on component clauses to indicate that the
32937 restriction on byte boundary placement still applies for bit packed
32939 Add comment on stack usage from Initialize_Scalars
32941 * gnat_ugn.texi: Add documentation for -gnatyLnnn
32943 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32944 limiting nesting level.
32946 * usage.adb: Add line for -gnatyLnnn switch
32948 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32949 sem_ch13.adb, exp_aggr.adb: Minor reformatting
32951 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32952 type as well as on the subtype. This corrects a problem in freeze in
32953 setting alignments of atomic types.
32955 * sem_eval.ads: Minor comment typo fixed
32957 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32958 level. Minor reformatting.
32960 * fname.adb (Is_Predefined_File_Name): Require a letter after the
32961 minus sign. This means that file names like a--b.adb will not be
32962 considered predefined.
32964 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32965 record Test new flag and give diagnostic for bad component clause.
32966 (Freeze_Entity): Set alignment of array from component alignment in
32967 cases where this is safe to do.
32969 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32972 * cstand.adb: (Create_Standard): Set alignment of String to 1
32974 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32976 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32977 code in the common constrained array cases.
32979 * a-storio.adb: Change implementation to avoid possible alignment
32980 problems on machines requiring strict alignment (data should be moved
32981 as type Buffer, not type Elmt).
32983 * checks.adb (Apply_Array_Size_Check): Improve these checks by
32984 killing the overflow checks which we really do not need (64-bits is
32987 2004-06-25 Vincent Celier <celier@gnat.com>
32989 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32990 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32991 inconditionally for the main project.
32992 (Recursive_Add_Archives.Add_Archive_Path): New procedure
32993 (Link_Executables.Check_Time_Stamps): New procedure
32994 (Link_Executables.Link_Foreign): New procedure
32995 Changes made to reduce nesting level of this package
32996 (Check): New procedure
32997 (Add_Switches): When not in quiet output, check that a switch is not
32998 the concatenation of several valid switches. If it is, issue a warning.
32999 (Build_Global_Archive): If the global archive is rebuilt, linking need
33001 (Compile_Sources): Rebuilding a library archive does not imply
33002 rebuilding the global archive.
33003 (Build_Global_Archive): New procedure
33004 (Build_Library): New name for Build_Archive, now only for library
33006 (Check_Archive_Builder): New procedure
33007 (Create_Global_Archive_Dependency_File): New procedure
33008 (Gprmake): Call Build_Global_Archive before linking
33009 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
33011 (Scan_Arg): Display the Copyright notice when -v is used
33013 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
33016 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
33018 Add new GNAT LIST qualifier /FILES=
33019 Added qualifier /DIRECTORY= to GNAT METRIC
33020 Added qualifier /FILES= to GNAT METRIC
33021 Added qualifier /FILES to GNAT PRETTY
33023 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
33024 to take into account both versions of the switch.
33026 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
33027 always be the last switch to the gcc driver. Disable switch storing so
33028 that switches automatically added by the gcc driver are not put in the
33031 * prj.adb (Project_Empty): Take into account changes in components of
33034 * prj.ads (Languages_Processed): New enumaration value All_Languages.
33036 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
33037 used. Split Boolean component Ada_Sources_Present in two Boolean
33038 components Ada_Sources_Present and Other_Sources_Present.
33041 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
33042 instead of Sources_Present.
33043 (Set_Ada_Paths.Add.Recursive_Add): Ditto
33045 * prj-nmsc.adb: Minor reformatting
33046 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
33047 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
33048 Check_Ada_Naming_Scheme.
33049 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
33052 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
33054 Make sure that all cycles where there is at least one "limited with"
33056 (Parse_Single_Project): New Boolean parameter In_Limited
33058 * prj-proc.adb (Recursive_Check): When Process_Languages is
33059 All_Languages, call first Prj.Nmsc.Ada_Check, then
33060 Prj.Nmsc.Other_Languages_Check.
33062 * prj-proc.adb (Process): Use Ada_Sources_Present or
33063 Other_Sources_Present (instead of Sources_Present) depending on
33066 * lang-specs.h: Keep -g and -m switches in the same order, and as the
33069 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
33070 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
33072 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
33075 * lib.ads (Disable_Switch_Storing): New procedure.
33077 * make.adb: Modifications to reduce nesting level of this package.
33078 (Check_Standard_Library): New procedure
33079 (Gnatmake.Check_Mains): New procedure
33080 (Gnatmake.Create_Binder_Mapping_File): New procedure
33081 (Compile_Sources.Compile): Add switch -gnatez as the last option
33082 (Display): Never display -gnatez
33084 * Makefile.generic:
33085 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
33087 * gnatcmd.adb (Check_Project): New function
33088 (Process_Link): New procedure to reduce nesting depth
33089 (Check_Files): New procedure to reduce the nesting depth.
33090 For GNAT METRIC, include the inherited sources in extending projects.
33091 (GNATCmd): When GNAT LS is invoked with a project file and no files,
33092 add the list of files from the sources of the project file. If this list
33093 is too long, put it in a temp text files and use switch -files=
33094 (Delete_Temp_Config_Files): Delete the temp text file that contains
33095 a list of source for gnatpp or gnatmetric, if one has been created.
33096 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
33097 in the project file is too large, create a temporary text file that
33098 list them and pass it to the tool with "-files=<temp text file>".
33099 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
33101 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
33102 generated file is in not in Ada.
33104 * gnatls.adb: Remove all parameters And_Save that are no longer used.
33105 (Scan_Ls_Arg): Add processing for -files=
33106 (Usage): Add line for -files=
33108 * g-os_lib.adb (On_Windows): New global constant Boolean flag
33109 (Normalize_Pathname): When on Windows and the path starts with a
33110 directory separator, make sure that the resulting path will start with
33113 * clean.adb (Clean_Archive): New procedure
33114 (Clean_Project): When there is non-Ada code, delete the global archive,
33115 the archive dependency files, the object files and their dependency
33116 files, if they exist.
33117 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
33119 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
33121 * sinfo.ads: Fix typo in comment.
33123 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
33124 the TSS for remote access-to-subprogram types, since these TSS are
33125 always present once the type has been analyzed.
33126 (RAS_E_Dereference): Same.
33128 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
33129 reference raises Bad_Attribute, mark the reference as analyzed so the
33130 node (and any children resulting from rewrites that could have occurred
33131 during the analysis that ultimately failed) is not analyzed again.
33133 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
33135 * exp_dist.adb: Minor comment fix.
33137 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
33138 type is an anonymous access type, no unchecked deallocation of the
33139 allocated object can occur. If the object is controlled, attach it with
33140 a count of 1. This allows attachment to the Global_Final_List, if
33141 no other relevant list is available.
33142 (Get_Allocator_Final_List): For an anonymous access type that is
33143 the type of a discriminant or record component, the corresponding
33144 finalisation list is the one of the scope of the type.
33146 2004-06-25 Ed Schonberg <schonberg@gnat.com>
33148 * sem_ch3.adb (Replace_Type): When computing the signature of an
33149 inherited subprogram, use the first subtype if the derived type
33150 declaration has no constraint.
33152 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
33153 before applying previous optimization. Minor code cleanup.
33155 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
33156 placed at the beginning of an unpacked record without explicit
33157 alignment, a slice of it will be aligned and does not need a copy when
33160 2004-06-25 Ed Schonberg <schonberg@gnat.com>
33164 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
33165 reference is written with expressions mimicking parameters.
33167 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
33170 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
33171 STEP 2a. The constraints of a full type declaration of a derived record
33172 type are checked for conformance with those declared in the
33173 corresponding private extension declaration. The message
33174 "not conformant with previous declaration" is emitted if an error is
33177 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
33179 * g-traceb.ads: Document the need for -E binder switch in the spec.
33181 * g-trasym.ads: Document the need for -E binder switch in the spec.
33183 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
33185 * sem_prag.adb: Add handling of pragma Detect_Blocking.
33187 * snames.h, snames.ads, snames.adb: Add entry for pragma
33190 * s-rident.ads: Change reference to pragma Detect_Blocking.
33192 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
33195 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
33196 to indicate whether pragma Detect_Blocking is active.
33198 * par-prag.adb: Add entry for pragma Detect_Blocking.
33200 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
33201 of not handling WITH.
33202 Note that this replaces the previous update which was incorrect.
33204 2004-06-25 Javier Miranda <miranda@gnat.com>
33206 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
33207 use-clauses to have a clean environment.
33209 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
33210 the installation of the use-clauses to stablish a clean environment in
33211 case of compilation of a separate unit; otherwise the call to
33212 use_one_package is protected by the barrier Applicable_Use.
33214 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
33215 the installation of the use-clauses to stablish a clean environment in
33216 case of compilation of a separate unit.
33217 (End_Use_Clauses): Minor comment cleanup.
33219 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
33221 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
33223 2004-06-23 Richard Henderson <rth@redhat.com>
33225 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
33227 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33229 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
33230 now bool instead of int.
33231 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
33232 * trans.c (gnu_switch_label_stack): New function.
33233 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
33234 elaboration of renamed entity returns.
33235 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
33236 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
33237 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
33238 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
33239 DECL_SIZE_UNIT and simplify variable-sized case.
33240 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
33241 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
33242 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
33243 (build_unit_elab): Disable for now.
33244 * utils.c (mark_visited): New function.
33245 (pushdecl): Walk tree to call it for global decl.
33246 (update_pointer_to): Update all variants of pointer and ref types.
33247 Add arg to COMPONENT_REF.
33248 (convert): Likewise.
33249 Move check for converting between variants lower down.
33250 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
33251 (build_allocator): Don't force type of MODIFY_EXPR.
33252 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
33253 put_var_into_stack.
33255 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33257 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
33258 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
33259 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
33261 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
33262 all callers changed.
33263 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
33264 the way that EXIT_STMT finds the loop label.
33265 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
33266 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
33267 (add_stmt): Use annotate_with_locus insted of setting directly.
33268 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
33269 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
33270 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
33271 (build_vms_descriptor): Add extra args to ARRAY_REF.
33272 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
33273 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
33275 (build_binary_op): Don't make explicit CONVERT_EXPR.
33276 Add extra rgs to ARRAY_REF.
33278 2004-06-14 Pascal Obry <obry@gnat.com>
33280 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
33281 Windows. Fix minor typo.
33283 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
33284 which is now supported on Windows. With this implementation using the
33285 Library Project feature is no different on Windows than on UNIX.
33287 2004-06-14 Vincent Celier <celier@gnat.com>
33289 * makegpr.adb (Compile_Sources): Nothing to do when there are no
33292 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
33294 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
33295 found, show the project name and the path of the previously parsed
33298 2004-06-14 Ed Schonberg <schonberg@gnat.com>
33300 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
33301 array, avoid copying the actual before the call.
33303 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
33305 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
33306 Instead, allocate memory on worst-case alignment assumptions, and then
33307 return an aligned address within the allocated zone.
33309 2004-06-14 Robert Dewar <dewar@gnat.com>
33311 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
33312 elab entities in predefined units in No_Run_Time_Mode.
33313 (Gen_Adainit_C): Same fix
33314 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
33315 units in No_Run_Time_Mode
33316 (Gen_Elab_Calls_C): Same fix
33318 * symbols-vms-alpha.adb: Minor reformatting
33320 * g-debpoo.ads: Minor reformatting
33322 * lib.adb (In_Same_Extended_Unit): Version working on node id's
33324 * lib.ads (In_Same_Extended_Unit): Version working on node id's
33326 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
33329 * make.adb: Minor reformatting
33331 * par-ch12.adb: Minor reformatting
33333 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
33335 * prj-strt.adb: Minor reformatting
33337 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
33340 * sem_attr.adb: Minor reformatting
33342 * sem_ch7.adb: Minor reformatting
33344 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
33345 for type in the same unit as the object declaration.
33347 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
33348 static string expressions and not just string literals.
33350 (Set_Warning): Reset restriction warning flag for restriction pragma
33351 Implement pragma Profile_Warnings
33352 Implement pragma Profile (Restricted)
33353 Give obolescent messages for old restrictions and pragmas
33355 * snames.h, snames.ads, snames.adb: Add new entry for pragma
33358 * s-rident.ads: Add declarations for restrictions required by profile
33359 Restricted and profile Ravenscar.
33361 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
33363 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
33364 configuration pragmas.
33366 2004-06-11 Vincent Celier <celier@gnat.com>
33368 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
33369 gnatsym, when symbol policy is Restricted.
33371 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
33372 gnatsym, when symbol policy is Restricted.
33374 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
33375 read the symbol file.
33376 (Finalize): Fail in symbol policy Restricted if a symbol in the original
33377 symbol file is not in the object files. Do not create a new symbol file
33378 when symbol policy is Restricted.
33380 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
33383 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
33385 (Usage): Line for new switch -R
33387 * make.adb (Initialize): When the platform is not VMS, add the
33388 directory where gnatmake is invoked in the front of the path, if
33389 gnatmake is invoked with directory information. Change the Scan_Args
33390 while loop to a for loop.
33391 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
33392 if Depth is equal or greater than the proposed depth, there is nothing
33394 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
33397 * prj.ads: Add new symbol policy Restricted.
33399 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
33400 with the new parameters Check_All_Labels and Case_Location.
33402 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
33403 (Library_Symbol_File needs to be defined).
33405 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
33406 and Case_Location If Check_All_Labels is True, check that all values of
33407 the string type are used, and output warning(s) if they are not.
33409 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
33412 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
33414 * gnat_ugn.texi: Update documentation about the library directory in
33417 * makegpr.adb (Display_Command): In verbose mode, also display the
33418 value of the CPATH env var, when the compiler is gcc.
33419 (Initialize): Change the Scan_Args while loop to a for loop
33420 (Compile_Individual_Sources): Change directory to object directory
33421 before compilations.
33423 * symbols.ads: New symbol policy Restricted.
33425 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
33427 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
33428 is now taken care of internally in the Exception_Propagation package
33429 and does not require clients assistance any more.
33431 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
33432 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
33433 functions. Helpers to maintain a predicate required in the handling of
33434 occurrence transfer between tasks.
33435 This is now handled internally and does not require clients assistance
33436 for the setup/propagate separation anymore.
33437 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
33438 allocation strategy, handle the Setup_And_Not_Propagated predicate and
33441 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
33442 raise_after_setup, now that everything is handled internally within the
33443 setup/propagation engine.
33445 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
33447 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
33448 Add additional conditions for the case of an actual being a simple
33449 name or literal. Improve inlining by preventing the generation
33450 of temporaries with a short lifetime (one use).
33452 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
33455 * einfo.ads: Minor comment updates for Has_Completion and
33456 E_Constant list of flags.
33458 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
33459 and constant redeclarations now set the Has_Completion flag of their
33460 defining identifiers.
33462 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
33463 Inspect_Deferred_Constant_Completion.
33464 Used to detect private deferred constants that have not been completed
33465 either by a constant redeclaration or pragma Import. Emits error message
33466 "constant declaration requires initialization expression".
33468 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
33469 completes a deferred constant.
33471 2004-06-11 Geert Bosch <bosch@gnat.com>
33473 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
33475 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
33476 calculating exponent for scaling denormal numbers.
33477 (Leading_Part): Properly raise Constraint_Error for zero or negative
33479 (Remainder): Properly raise Constraint_Error for zero divisor.
33481 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
33483 * sem_util.adb: Minor reformatting.
33485 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
33486 dereference when accessing the entry parameter record.
33487 (Check_Array_Type): Always check for possible implicit dereference.
33488 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33489 Abort if a pointer is still present (denoting that an implicit
33490 dereference was left in the tree by the front-end).
33492 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
33493 dereference when accessing the entry parameter record.
33494 (Check_Array_Type): Always check for possible implicit dereference.
33495 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33496 Abort if a pointer is still present (denoting that an implicit
33497 dereference was left in the tree by the front-end).
33499 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
33501 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
33502 message, like the compiler itself does. Easier to parse the output.
33504 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
33506 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
33507 be base names, and not includes directories.
33509 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33511 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
33512 so that dependencies are properly taken into account by make.
33514 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33517 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
33518 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
33520 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
33522 * Makefile.in (install-gnatlib): install target-specific run-time files.
33524 * Make-lang.in: Remove obsolete targets.
33526 2004-06-11 Ed Schonberg <schonberg@gnat.com>
33528 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
33529 specification, to catch misuses of program unit names.
33531 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
33532 superfluous conversions in an instance.
33534 2004-06-11 Ed Schonberg <schonberg@gnat.com>
33537 * sem_ch12.adb (Save_References): If operator node has been folded to
33538 enumeration literal, associated_node must be discarded.
33540 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
33542 * s-stchop-vxworks.adb: Add required pragma Convention to
33543 Task_Descriptor because it is updated by a C function.
33545 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
33548 * Makefile.in: Remove target specific SO_OPT on IRIX
33550 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33552 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
33553 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
33554 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
33555 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
33556 (STMT_STMT, USE_STMT): New statement codes.
33557 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
33558 * ada-tree.h: Reflect above changes.
33559 (struct tree_loop_id): Deleted.
33560 (union lang_tree_node, struct lang_decl, struct lang_type):
33561 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
33562 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
33563 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
33564 (IS_ADA_STMT): New macro.
33565 * decl.c (annotate_decl_with_node): New function.
33566 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
33567 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
33568 Call add_stmt_with_node to do needed assignments.
33569 Add call to update setjmp buffer directly, not via EXPR_STMT.
33570 (maybe_variable): Argment GNAT_NODE deleted.
33571 * gigi.h (maybe_variable): Likewise.
33572 (make_transform, add_stmt_with_node, set_block_for_group): New.
33573 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
33574 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
33575 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
33576 (set_lineno, set_lineno_from_sloc): Likewise.
33577 (record_code_position, insert_code_for): Likewise.
33578 (gnat_poplevel): Now returns void.
33579 (end_subprog_body): Now takes argument.
33580 * misc.c (cgraph.h, tree-inline.h): New includes.
33581 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
33582 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
33583 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
33584 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
33585 (gnat_parse_file): Don't set immediate_size_expand.
33586 Call cgraph functions.
33587 (gnat_expand_expr): Remove most cases.
33588 (record_code_position, insert_code_for): Remove from here.
33589 * trans.c (toplev.h, tree-gimple.h): Now included.
33590 (discard_file_names): Deleted.
33591 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
33592 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
33593 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
33594 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
33595 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
33596 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
33597 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
33598 (set_block_for_group, add_stmt_list): Likewise.
33599 (start_stmt_group): Renamed from start_block_stmt.
33600 (end_stmt_group): Likewise, from end_block_stmt.
33601 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
33602 (gigi): Don't set discard_file_names or call set_lineno.
33603 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
33604 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
33605 Numerous changes throughout to reflect new names and complete
33606 function-at-a-time implementation.
33607 (gnat_expand_stmt): Delete or comment out all cases.
33608 (process_inlined_subprograms): Use add_stmt.
33609 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
33610 call set_lineno; also remove unneeded block handling.
33611 (process_type): Remove unneeded block handling.
33612 (build_unit_elab): Remove calls to deleted functions.
33613 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
33614 (tree-dump.h): Likewise.
33615 (struct ada_binding_level): Add field jmpbuf_decl.
33616 (gnat_define_builtin, gnat_install_builtins): New.
33617 (gnat_gimplify_function, gnat_finalize): Likewise.
33618 (gnat_poplevel): No longer return BLOCK, set it instead.
33619 Remove code dealing with nested functions.
33620 (gnat_init_decl_processing): Also set size_type_node.
33621 Call gnat_install_builtins.
33622 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
33623 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
33624 Remove special-case for "main".
33625 (end_subprog_body): Add arg and rework for tree-ssa.
33626 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
33627 Add case for BOOLEAN_TYPE.
33628 * utils2.c (rtl.h): Now include.
33629 (build_call_raise): Test Debug_Flag_NN directly.
33630 (build_call_alloc_dealloc): Don't use local stack allocation for now.
33631 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
33632 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
33634 2004-06-07 Robert Dewar <dewar@gnat.com>
33636 * a-direct.ads, einfo.ads: Minor comment updates
33638 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
33639 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33640 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
33641 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
33642 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
33644 * s-interr-sigaction.adb: Remove unreferenced variable
33645 (Attached_Interrupts). Minor reformatting.
33646 Avoid use of variable I (replace by J).
33648 * par-ch10.adb: Fix text of one error message
33650 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
33651 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
33652 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
33653 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
33654 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
33655 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
33656 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
33657 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
33658 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
33659 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
33660 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
33663 2004-06-07 Doug Rupp <rupp@gnat.com>
33665 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
33667 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
33669 * mlib-tgt-vms-ia64.adb: New file.
33671 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
33672 Add mlib-tgt-vms-ia64.adb
33673 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
33674 Move to alpha specific ifeq section.
33675 Add VMS specific versions of symbols.adb
33676 Renaming of 5q vms files.
33678 * 5qsystem.ads renamed to system-vms_64.ads.
33680 2004-06-07 Vincent Celier <celier@gnat.com>
33682 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
33683 explain that when a time of day corresponding to the non existing hour
33684 on the day switching to DST is specified, Split may return a different
33687 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33690 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33691 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33693 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33695 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33696 the linking options.
33697 (Build_Library.Check_Libs): On VMS, if there is a dependency on
33698 g-trasym.ads, set Gtrasymobj_Needed to True.
33700 * prj-attr.adb: Add new package Metrics for gnatmetric
33702 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33703 canonical case to take into account files with upper case characters on
33705 (Ada_Check): Load the reference symbol file name in the name buffer to
33706 check it, not the symbol file name.
33708 * snames.ads, snames.adb: Add standard name Metrics (name of project
33709 file package for gnatmetric).
33711 * vms_conv.ads: Add Metric to Comment_Type
33713 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33715 * vms_data.ads: Add qualifiers for GNAT METRIC
33717 * makegpr.adb (Link_Executables): Take into account the switches
33718 specified in package Linker of the main project.
33720 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
33722 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33723 the index of the last element is Units.Last, not Units.Table'Last
33724 (which is usually not a valid index within the actually allocated
33725 storage for the table).
33727 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33728 determines whether to generate a call to a checked storage pool
33729 Dereference action.
33730 Generate such a call only for a dereference that either comes from
33731 source, or is the result of rewriting a dereference that comes from
33734 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
33736 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33738 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
33740 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33741 file level, elaborate the stride for inner dimensions in alignment
33744 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33747 2004-06-07 Javier Miranda <miranda@gnat.com>
33749 * exp_ch6.adb: Correct wrong modification in previous patch
33751 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
33753 * g-trasym.ads: Corrected comment to properly reflect level of support
33756 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
33758 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33759 includes case of a variable referenced on the left hand side of an
33760 assignment, therefore remove redundant code. Variables and prefixes of
33761 indexed or selected components are now marked as referenced on left
33762 hand side. Warnings are now properly emitted when variables or prefixes
33763 are assigned but not read.
33765 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33766 left hand side referenced variables. Private access types do not
33767 produce the warning "variable ... is assigned but never read".
33768 Add also additional checks to left hand side referenced variables.
33769 Aliased, renamed objects and access types do not produce the warning
33770 "variable ... is assigned but never read" since other entities may read
33771 the memory location.
33773 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
33775 * Makefile.in: In the powerpc/vxworks-specific section, restore
33776 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33779 2004-06-07 Ed Schonberg <schonberg@gnat.com>
33781 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33782 predefined operators.
33783 Removes spurious type errors from g-trasym-vms.adb.
33785 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33786 distinct from the operator appearing in the source, call appropriate
33787 routine to insert conversions when needed, and complete resolution of
33789 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33790 interpretations for rewritten right operand.
33791 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33792 the other operand is overloaded and the context is a type conversion.
33794 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33796 * ada-tree.def (BLOCK_STMT): Now has two operands.
33799 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33801 * gigi.h: (gnat_poplevel): Now returns a tree.
33803 * trans.c (end_block_stmt): Add arg; all callers changed.
33804 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33805 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33806 (add_stmt): Set TREE_TYPE.
33807 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33808 (gnat_expand_stmt, case BREAK_STMT): New case.
33810 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33812 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
33814 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33815 procedure Set_Stack_Size that is not needed.
33817 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
33819 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33820 used for gnatpp input file and for the files upon which it depends
33822 2004-06-07 Ben Brosgol <brosgol@gnat.com>
33824 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33826 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
33828 * gnatvsn.ads: Bump version numbers appropriately.
33829 Add new build type.
33831 2004-06-07 Pascal Obry <obry@gnat.com>
33833 * gnat_ugn.texi: Improve comments about imported names and link names
33834 on Windows. Add a note about the requirement to use -k gnatdll's option
33835 when working with a DLL which has stripped stdcall symbols (no @nn
33838 2004-05-27 Vincent Celier <celier@gnat.com>
33840 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33841 COMMENTS_LAYOUT=UNTOUCHED
33843 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33844 symbols-vms-alpha.adb
33846 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
33848 * sem.ads: Clarify documentation on checks suppression.
33850 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33852 2004-05-27 Ed Schonberg <schonberg@gnat.com>
33854 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33855 the case of multiple derivations.
33856 (Is_Object_Reference): For a selected component, verify that the prefix
33857 is itself an object and not a value.
33859 * sem_ch12.adb (Same_Instantiated_Constant): New name for
33860 Same_Instantiated_Entity.
33861 (Same_Instantiated_Variable): Subsidiary to
33862 Check_Formal_Package_Instance, to recognize actuals for in-out generic
33863 formals that are obtained from a previous formal package.
33864 (Instantiate_Subprogram_Body): Emit proper error when
33865 generating code and the proper body of a stub is missing.
33867 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33868 has a universal interpretation, do the disambiguation here.
33870 * exp_ch4.adb (Expand_N_Type_Conversion,
33871 Expand_N_Unchecked_Type_Conversion): Special handling when target type
33872 is Address, to avoid typing anomalies when Address is a visible integer
33875 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33876 to determine whether a subprogram should not be marked Pure, even when
33877 declared in a pure package.
33879 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
33881 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33883 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33884 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33885 Update the documentation about the Ravenscar profile, following the
33886 definition found in AI-249.
33888 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33889 setting the Profile (Ravenscar). This must be done in addition to
33890 setting the required restrictions.
33892 * rtsfind.ads: Add the set of operations defined in package
33895 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33898 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
33900 lang-specs.h: Always require -c or -S and always redirect to /dev/null
33901 if -gnatc or -gnats is passed.
33903 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
33905 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33906 a significant reference. Warnings are now properly emitted when a
33907 discriminated type is not referenced.
33909 * lib-xref.adb (Generate_Reference): A deferred constant completion,
33910 record representation clause or record type discriminant does not
33911 produce a reference to its corresponding entity. Warnings are now
33912 properly emitted when deferred constants and record types are not
33915 2004-05-27 Geert Bosch <bosch@gnat.com>
33917 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33918 Fixes ACATS Annex G tests.
33920 2004-05-27 Robert Dewar <dewar@gnat.com>
33922 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33925 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
33927 * s-interr.adb (Server_Task): Take into account case of early return
33928 from sigwait under e.g. linux.
33930 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
33932 * gnat_ugn.texi: Add description for the new gnatpp options:
33933 -rnb - replace the original source without creating its backup copy
33934 -c0 - do not format comments
33936 2004-05-24 Geert Bosch <bosch@gnat.com>
33938 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33939 with 192 bits of precision, sufficient to reduce a double-extended
33940 arguments X with a maximum relative error of T'Machine_Epsilon, for X
33941 in -2.0**32 .. 2.0**32.
33942 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
33943 reduction by the processor, which only uses a 68-bit approximation of
33945 (Tan): Always reduce arguments and compute function either using
33946 the processor's fptan instruction, or by dividing sin and cos as needed.
33948 2004-05-24 Doug Rupp <rupp@gnat.com>
33950 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33951 gcc error on 32/64 bit VMS.
33953 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
33955 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33956 since this is what we get for stack overflows although not documented
33958 Document the issues which may require adjustments to our signal
33961 2004-05-24 Ed Schonberg <schonberg@gnat.com>
33963 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33964 enclosing dynamic scope if the instantiation is within a generic unit.
33966 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33968 * exp_dbug.ads: Fix typo.
33970 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33971 Rename it to its proper name: system-linux-ia64.ads
33972 (stamp-gnatlib1): Remove extra target specific run time files when
33973 setting up the rts directory.
33975 2004-05-24 Javier Miranda <miranda@gnat.com>
33977 * einfo.ads, einfo.adb (Limited_Views): Removed.
33978 (Limited_View): New attribute that replaces the previous one. It is
33979 now a bona fide package with the limited-view list through the
33980 first_entity and first_private attributes.
33982 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33983 limited-private-with clause.
33984 (Install_Limited_Withed_Unit): Install the private declarations of a
33985 limited-private-withed package. Update the installation of the shadow
33986 entities according to the new structure (see Build_Limited_Views)
33987 (Build_Limited_Views): Replace the previous implementation of the
33988 limited view by a package entity that references the first shadow
33989 entity plus the first shadow private entity (required for limited-
33990 private-with clause)
33991 (New_Internal_Shadow_Entity): Code cleanup.
33992 (Remove_Limited_With_Clause): Update the implementation to undo the
33993 new work carried out by Build_Limited_Views.
33994 (Build_Chain): Complete documentation.
33995 Replace Ada0Y by Ada 0Y in comments
33998 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33999 types the level of accessibility depends on the enclosing type
34002 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
34003 entities. Complete documentation of previous change.
34005 2004-05-24 Robert Dewar <dewar@gnat.com>
34007 * namet.adb: Minor reformatting
34008 Avoid use of name I (replace by J)
34009 Minor code restructuring
34011 * sem_ch6.adb: Minor reformatting
34013 * lib-writ.adb: Do not set restriction as active if this is a
34014 Restriction_Warning case.
34016 * sem_prag.adb: Reset restriction warning flag if real pragma
34017 restriction encountered.
34019 * s-htable.adb: Minor reformatting
34020 Change rotate count to 3 in Hash (improves hash for small strings)
34022 * 5qsystem.ads: Add comments for type Address (no literals allowed).
34024 * gnat_ugn.texi: Add new section of documentation "Code Generation
34025 Control", which describes the use of -m switches.
34027 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
34029 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
34030 through the DECL_INITIAL for renamed variables.
34032 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
34034 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
34036 2004-05-19 Joel Brobecker <brobecker@gnat.com>
34038 * exp_dbug.ads: Correct comments concerning handling of overloading,
34039 since we no longer use $ anymore.
34041 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
34043 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
34044 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
34045 with illegal subunits.
34047 2004-05-19 Ed Schonberg <schonberg@gnat.com>
34049 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
34050 body with front-end inlining enabled, check whether an inline pragma
34051 appears immediately after the body and applies to it.
34053 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
34054 enabled and the pragma appears after the body of the subprogram.
34056 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34058 Part of function-at-a-time conversion
34060 * misc.c (adjust_decl_rtl): Deleted.
34061 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
34064 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
34065 (add_decl_stmt, add_stmt, block_has_vars): New functions.
34066 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
34068 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
34069 when making a decl.
34070 (gnat_to_gnu_entity): Likewise.
34071 Use add_stmt to update setjmp buffer.
34072 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
34074 No longer call adjust_decl_rtl.
34075 (DECL_INIT_BY_ASSIGN_P): New macro.
34076 (DECL_STMT_VAR): Likewise.
34078 * trans.c (gigi): Call start_block_stmt to make the outermost
34080 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
34081 Call start_block_stmt and end_block_stmt temporarily.
34082 Use gnat_expand_stmt instead of expand_expr_stmt.
34083 (add_decl_stmt): New function.
34084 (tree_transform): Call it.
34085 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
34086 (end_block_stmt): Set type and NULL_STMT.
34087 (gnat_expand_stmt): Make recursize call instead of calling
34089 (gnat_expand_stmt, case DECL_STMT): New case.
34090 (set_lineno_from_sloc): Do nothing if global.
34091 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
34092 (start_block_stmt, add_stmt, end_block_stmt): New functions.
34093 (build_block_stmt): Call them.
34094 (gnat_to_code): Don't expand NULL_STMT.
34095 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
34097 (tree_transform): Likewise.
34098 (tree_transform, case N_Null_Statement): Return NULL_STMT.
34099 (gnat_expand_stmt, case NULL_STMT): New case.
34100 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
34103 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
34106 * utils.c (create_var_decl): Do not call expand_decl or
34108 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
34109 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
34111 (struct e_stack): Add chain_next to GTY.
34112 (struct binding_level): Deleted.
34113 (struct ada_binding_level): New struct.
34114 (free_block_chain): New.
34115 (global_binding_level, clear_binding_level): Deleted.
34116 (global_bindings_p): Rework to see if no chain.
34117 (kept_level_p, set_block): Deleted.
34118 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
34119 new data structure and work directly on BLOCK node.
34120 (gnat_poplevel): Similarly.
34121 (get_decls): Look at BLOCK_VARS.
34122 (insert_block): Work directly on BLOCK node.
34123 (block_has_var): New function.
34124 (pushdecl): Rework for new binding structures.
34125 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
34127 (build_subprog_body): Likewise.
34128 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
34130 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
34132 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
34133 (DECL_STMT_VAR): Likewise.
34135 2004-05-17 Robert Dewar <dewar@gnat.com>
34137 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
34140 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
34141 of restriction synonyums by using
34142 Restrict.Process_Restriction_Synonyms.
34144 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
34146 * s-restri.ads (Tasking_Allowed): Correct missing comment
34148 * s-rident.ads: Add entries for restriction synonyms
34150 * ali.adb: Fix some problems with badly formatted ALI files that can
34151 result in infinite loops.
34153 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
34154 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
34155 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
34156 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
34157 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
34158 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
34159 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
34160 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
34161 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
34162 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
34163 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
34164 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
34165 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
34166 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
34167 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
34168 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
34169 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
34170 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
34171 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
34172 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
34173 to Task_Id (minor cleanup).
34175 2004-05-17 Vincent Celier <celier@gnat.com>
34177 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
34178 directory separator.
34180 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
34181 project being extended, if Languages is not declared in extending
34184 2004-05-17 Javier Miranda <miranda@gnat.com>
34186 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
34187 limited view of a visible sibling.
34189 2004-05-14 Robert Dewar <dewar@gnat.com>
34191 * gnat_ugn.texi: Minor change to -gnatS documentation
34193 * sprint.adb: Remove some instances of Assert (False) and for this
34194 purpose replace them by output of a ??? string.
34196 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
34199 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
34200 flag processing. This was suppressing required dependencies in
34201 No_Run_Time mode and is not needed since the binder does not generate
34202 references for things in libgnat anyway.
34204 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
34207 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
34209 * gnat_ugn.texi: Document AIX-specific issue with initialization of
34212 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
34213 action for the case of an actual parameter in an init proc call.
34215 2004-05-14 Ed Schonberg <schonberg@gnat.com>
34217 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
34218 subtype, check visible entities in base type.
34220 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
34221 actions if the object is a renaming.
34223 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
34224 Check_Formal_Package_Instance, to determine more precisely when the
34225 formal and the actual denote the same entity.
34227 2004-05-14 Javier Miranda <miranda@gnat.com>
34229 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
34231 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
34232 corresponding to a private_with must be removed from visibility; it
34233 will be made visible later, just before we analyze the private part of
34235 (Check_Private_Child_Unit): Allow private_with clauses in public
34237 (Install_Siblings): Make visible the private entities of private-withed
34239 (Install_Withed_Unit): Do not install the private withed unit if we
34240 are compiling a package declaration and the Private_With_OK flag was
34241 not set by the caller. These declarations will be installed later,
34242 just before we analyze the private part of the package.
34244 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
34245 during the evaluation of the expression that initializes the object,
34246 decorate it with the expected type to avoid cascade errors.
34249 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
34250 subprogram we have to install the private_with clauses after its
34251 specification has been analyzed (as documented in AI-262.TXT).
34253 * sem_ch8.adb (Has_Private_With): New function. Determines if the
34254 current compilation unit has a private with on a given entity.
34255 (Find_Direct_Name): Detect the Beaujolais problem described in
34258 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
34259 provides the functionality of the function Is_Ancestor that was
34260 previously available in sem_ch10. It has been renamed to avoid
34263 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
34265 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34267 * utils.c (build_vms_descriptor): Use SImode pointers.
34269 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
34271 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
34273 2004-05-14 GNAT Script <nobody@gnat.com>
34275 * Make-lang.in: Makefile automatically updated
34277 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
34279 Renaming of target specific files for clarity
34281 * Makefile.in: Rename GNAT target specific files.
34283 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
34284 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
34285 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
34286 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
34287 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
34288 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
34289 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
34290 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
34291 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
34292 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
34293 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
34294 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
34295 51osinte.adb, 51osinte.ads, 51system.ads,
34296 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
34297 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
34298 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
34299 56tpopsp.adb, 57system.ads, 58system.ads,
34300 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
34301 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
34302 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
34303 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
34304 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
34305 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
34306 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
34307 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
34308 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
34309 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
34310 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
34311 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
34312 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
34313 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
34314 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
34315 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
34316 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
34317 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
34318 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
34319 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
34320 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
34321 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
34322 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
34323 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
34324 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
34325 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
34326 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
34327 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
34328 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
34329 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
34330 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
34331 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
34332 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
34333 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
34334 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
34335 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
34336 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
34337 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
34338 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
34339 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
34341 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
34342 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
34343 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
34344 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
34345 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
34346 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
34347 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
34348 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
34349 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
34350 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
34351 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
34352 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
34353 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
34354 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
34355 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
34356 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
34357 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
34358 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
34359 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
34360 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
34361 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
34362 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
34363 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
34364 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
34365 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
34366 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
34367 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
34368 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
34369 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
34370 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
34371 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
34372 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
34373 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
34374 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
34375 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
34376 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
34377 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
34378 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
34379 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
34380 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
34381 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
34382 s-osinte-vms.ads, s-osinte-vxworks.adb,
34383 s-osinte-vxworks.ads, s-osprim-mingw.adb,
34384 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
34385 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
34386 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
34387 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
34388 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
34389 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
34390 s-stchop-vxworks.adb, s-taprop-dummy.adb,
34391 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
34392 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
34393 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
34394 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
34395 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
34396 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
34397 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
34398 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
34399 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
34400 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
34401 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
34402 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
34403 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
34404 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
34405 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
34406 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
34407 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
34408 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
34409 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
34410 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
34411 system-irix-o32.ads, system-linux-x86_64.ads,
34412 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
34413 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
34414 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
34415 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
34416 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
34417 system-vxworks-mips.ads, system-vxworks-ppc.ads,
34418 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
34421 2004-05-13 Zack Weinberg <zack@codesourcery.com>
34423 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
34425 2004-05-13 Diego Novillo <dnovillo@redhat.com>
34427 Merge from tree-ssa-20020619-branch.
34429 * config-lang.in (boot_language, build_by_default): Set
34431 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
34432 (max_size): Add static chain op for call_expr.
34434 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
34437 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
34439 2004-05-11 Roger Sayle <roger@eyesopen.com>
34441 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
34444 2004-05-10 Doug Rupp <rupp@gnat.com>
34446 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
34449 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
34451 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
34453 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
34454 Fixes undefined symbols in IA64 gnatlib.
34456 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
34458 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
34459 Short_Address). This will be moved to system.auxdec.
34461 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
34463 * sem_util.adb: Replace test for presence of a node that is always
34464 present with a call to Discard_Node.
34466 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
34467 Analyze on the library unit node after generation of distribution stub
34468 constructs. The call was a no-op because Unit_Node has already been
34469 Analyzed, and the tree fragments for the distribution stubs are
34470 analyzed as they are inserted in Exp_Dist.
34471 Update comment regarding to distribution stubs to reflect that we
34472 do not generate stub in separate files anymore.
34474 * einfo.ads: Clarify the fact that a tagged private type has the
34475 E_Record_Type_With_Private Ekind.
34477 * erroutc.adb: Minor reformatting
34479 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
34480 values if line length is increased using -gnatyM (noticed during code
34483 * eval_fat.adb: Minor reformatting
34484 Put spaces around exponentiation operator
34486 2004-05-10 Ed Schonberg <schonberg@gnat.com>
34489 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
34490 has been rewritten as an explicit dereference, retrieve type of
34491 original node to check for possibly unconstrained record type.
34493 2004-05-10 Ed Schonberg <schonberg@gnat.com>
34495 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
34496 overriding, use the operation of the parent unconditionally.
34498 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
34499 operation when either operand is a literal, to avoid further
34502 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
34503 overridden by a previous explicit declaration, mark the previous entity
34506 * sem_disp.adb (Check_Dispatching_Operation): New predicate
34507 Is_Visibly_Controlled, to determine whether a declaration of a
34508 primitive control operation for a derived type overrides an inherited
34509 one. Add warning if the explicit declaration does not override.
34511 2004-05-10 Vincent Celier <celier@gnat.com>
34513 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
34514 some cases when the sources are no longer present.
34516 * make.adb (Collect_Arguments): Fail if an external source, not part
34517 of any project need to be compiled, when switch -x has not been
34520 * makeusg.adb: Document new switch -x
34522 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
34523 defaulted to False.
34525 * switch-m.adb (Scan_Make_Switches): New switch -x
34527 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
34528 gnatmake switch -x.
34530 * gnat_ugn.texi: Document new gnatmake switch -x
34532 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
34534 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
34536 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
34537 (process_attributes): Likewise.
34539 2004-05-10 Joel Brobecker <brobecker@gnat.com>
34541 * s-inmaop.ads: Fix spelling mistake in one of the comments.
34543 2004-05-10 Robert Dewar <dewar@gnat.com>
34545 * gnat_ugn.texi: Document that for config pragma files, the maximum
34546 line length is always 32767.
34548 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
34549 literals is now allowed.
34551 * gnat-style.texi: Remove statement about splitting long lines before
34552 an operator rather than after, since we do not follow this rule at all.
34553 Clarify rule (really lack of rule) for spaces around exponentiation
34555 * sem_elim.adb: Allow concatenation of string literals as well as a
34556 single string literal for pragma arguments.
34558 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
34560 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
34561 written for append case.
34563 * frontend.adb: Changes to avoid checking max line length in config
34566 * g-os_lib.ads: Minor reformatting
34568 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
34569 wrong in any case. Instead use standard value. Noticed during code
34572 * opt.ads (Max_Line_Length): New field, used to implement removal of
34573 limitation on length of lines when scanning config pragma files.
34575 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
34576 makeutl.ads, makeutl.adb: Minor reformatting
34578 * scn.adb: Do not check line length while scanning config pragma files
34579 Do not check line length while scanning out license information
34581 * scng.adb: Changes to avoid line length checks while parsing config
34584 2004-05-10 GNAT Script <nobody@gnat.com>
34586 * Make-lang.in: Makefile automatically updated
34588 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
34590 * osint.adb (Find_Program_Name): Fix handling of VMS version
34593 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
34595 * g-os_lib.ads (Invalid_Time): New constant
34597 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
34598 return OS_Time instead of time_t to match what is imported by Ada.
34599 Now return -1 if the file doesn't exist, instead of a random value
34601 2004-05-05 Robert Dewar <dewar@gnat.com>
34603 * usage.adb: Add line for -gnatR?s switch
34605 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
34607 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
34608 and for Match (Data_First, Data_last)
34610 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
34611 written when we are dealing with multi-unit files.
34613 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
34615 * Makefile.in: Remove unused targets and variables.
34617 2004-05-05 Vincent Celier <celier@gnat.com>
34619 * switch-m.adb: New gnatmake switch -eI
34621 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
34622 of new gnatmake switch -eInnn.
34624 * makegpr.adb: Take into account new parameters Index and Src_Index in
34627 * clean.adb: Implement support for multi-unit sources, including new
34630 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
34633 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
34634 (Extract_From_Q): New out parameter Index
34635 (Mark, Is_Marked): Subprograms moved to Makeutl
34636 (Switches_Of): New parameter Source_Index
34637 (Add_Switch): New parameter Index
34638 (Check): New parameter Source_Index
34639 (Collect_Arguments): New parameter Source_Index
34640 (Collect_Arguments_And_Compile): New parameter Source_Index
34641 (Compile): New parameter Source_Index
34642 Put subprograms in alphabetical order
34643 Add support for multi-source sources, including in project files.
34645 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
34646 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
34649 * makeusg.adb: New gnatmake switch -eInnn
34651 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
34654 * opt.ads (Main_Index): New variable, defaulted to 0.
34656 * osint.ads, osinte.adb (Add_File): New parameter Index
34657 (Current_Source_Index): New function
34659 * prj.adb: Take into account new components Index and Src_Index
34661 * prj.ads (String_Element): New component Index
34662 (Variable_Value): New component Index
34663 (Array_Element): New component Src_Index
34665 * prj-attr.adb: Indicate that optional index may be specified for
34666 attributes Main, Executable, Spec, Body and some of Switches.
34668 * prj-attr.ads (Attribute_Kind): New values for optional indexes
34669 (Attribute_Record): New component Optional_Index
34671 * prj-com.ads (File_Name_Data): New component Index
34673 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34675 * prj-env.adb (Put): Output optional index
34677 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
34678 attributes Spec and Body.
34680 * prj-nmsc.adb: Process optional indexes
34682 * prj-pp.adb: Ouput "at" for optional indexes
34684 * prj-proc.adb: Take into account optional indexes
34686 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34687 Optional_Index. For string literal,
34688 process optional index when Optional_Index is True.
34689 (Parse_Expresion): New Boolean parameter Optional_Index
34691 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34692 (Set_Source_Index_Of): New procedure
34694 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34697 * prj-util.ads (Executable_Of): New parameter Index
34698 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34699 New parameter Src_Index, defaulted to 0.
34701 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34704 * sem_ch3.adb (Access_Definition): If this is an access parameter
34705 whose designated type is imported through a limited_with clause, do
34706 not add the enclosing subprogram to the list of private dependents of
34709 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34712 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34713 a limited_with clause, and the other is its non-limited view.
34715 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
34717 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34719 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34720 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34721 Stand.Boolean_Literals to produce references to entities
34722 Standard_False and Standard_True from compile-time computed boolean
34725 * stand.ads (Boolean_Literals): New variable, provides the entity
34726 values for False and True, for use by the expander.
34728 2004-05-05 Doug Rupp <rupp@gnat.com>
34730 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34731 5vinmaop.adb: Unchecked convert Short_Address vice Address
34733 * adaint.c, raise.c: Caste CRTL function return value
34734 to avoid gcc error on 32/64 bit IVMS.
34736 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34739 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34741 * 5qsystem.ads (Address): Declare as Long_Integer
34742 (Short_Address): Declare as 32 bit subtype of Address
34743 Declare abstract address operations to avoid gratuitous ambiguities.
34745 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
34747 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34748 instead of the old Boolean_Entry_Barriers.
34749 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34751 2004-05-05 GNAT Script <nobody@gnat.com>
34753 * Make-lang.in: Makefile automatically updated
34755 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34757 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34759 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
34762 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34763 alone. Replacing object references by literals is inappropriate in a
34764 so low level context.
34766 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34768 * a-exexpr.adb: Add comments
34770 2004-05-03 Joel Brobecker <brobecker@gnat.com>
34772 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34773 declare the Ancestor_Tags array in Type_Specific_Data with a small size
34774 without risking a bounds check error when accessing one of its
34776 (Type_Specific_Data): Define Ancestor_Tags as a small array.
34777 This prevents us from hitting a limitation during the debug info
34778 generation when using stabs.
34780 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34782 This prevents us from hitting a limitation during the debug info
34783 generation when using stabs.
34785 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
34787 lang-specs.h: Remove -gnatz* from specs.
34789 2004-05-03 Vincent Celier <celier@gnat.com>
34791 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34793 * Make-lang.in, Makefile.in: Add gprmake
34795 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
34797 * sem_aggr.adb: Fix typo in comment.
34799 2004-05-03 Robert Dewar <dewar@gnat.com>
34801 * make.adb: Minor reformatting
34803 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34805 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34806 so that it works when address is not a private type.
34808 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34809 properly with rewritten unchecked conversions. This prevents
34810 order-of-elaboration issues that can otherwise arise.
34811 (Minimum_Size): Don't check size of access types under VMS
34813 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34814 interpretations of integer literals as type System.Address.
34816 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34817 (Is_Descendent_Of): New function
34819 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
34821 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34822 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34823 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34825 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34826 of the old Max_Entry_Queue_Depth.
34828 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34829 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34830 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34832 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34833 New entry for proper handling of Max_Entry_Queue_Depth.
34834 New entry for proper handling of No_Dynamic_Interrupts.
34836 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34837 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34838 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34839 the GNAT specific restriction Max_Entry_Queue_Depth.
34840 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34841 the GNAT specific restriction No_Dynamic_Interrupts.
34843 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34844 instead of the old Boolean_Entry_Barriers.
34845 Use the new restriction No_Dynamic_Attachment instead of the old
34846 No_Dynamic_Interrupts.
34848 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34849 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34851 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34852 of the old Max_Entry_Queue_Depth.
34854 2004-05-03 GNAT Script <nobody@gnat.com>
34856 * Make-lang.in: Makefile automatically updated
34858 2004-04-29 Ed Schonberg <schonberg@gnat.com>
34860 * checks.adb (Enable_Range_Check): If the prefix of an index component
34861 is an access to an unconstrained array, perform check unconditionally.
34863 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34865 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34868 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
34870 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34871 alternate stack setting. There was no support for the tasking cases
34872 and the changes eventually caused a number of side-effect failures in
34873 the non-tasking case too.
34875 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
34877 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34880 2004-04-29 Vincent Celier <celier@gnat.com>
34882 * make.adb (Gnatmake): Increase max size of argument array for
34883 gnatbind for the potential addition of -F.
34884 If there are Stand-Alone Library projects, invoke gnatbind with -F to
34885 be sure that elaboration flags will be checked.
34887 * switch-c.adb: Correct call to Scan_Pos for -gnateI
34889 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
34891 * sem_warn.adb (Check_References): Move '<access-variable> may be
34892 null' warning out of under Warn_On_No_Value_Assigned.
34894 2004-04-29 Ed Falis <falis@gnat.com>
34896 * gnat_ugn.texi: Fixed texi error
34898 2004-04-29 Robert Dewar <dewar@gnat.com>
34900 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34901 abstract operations if they come from predefined files.
34903 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34906 * s-addope.adb: Correct obvious error in mod function
34908 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
34910 * Makefile.in: Add target pairs for powerpc darwin*
34913 * a-intnam-darwin.ads, s-osinte-darwin.adb,
34914 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34916 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34918 * Makefile.in: Add target macro definitions for s390*-linux*.
34919 * system-linux-s390.ads: New file.
34920 * system-linux-s390x.ads: New file.
34922 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
34924 * gnat_ugn.texi: Correct argument to @setfilename.
34926 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34928 * a-exexpr.adb (Unwind_Word): New data type.
34929 (Unwind_Exception): Use it as type of Private1 and Private2.
34931 * raise.c (db_action_for): Fix debug printf.
34933 2004-04-27 Ed Schonberg <schonberg@gnat.com>
34935 * a-wtmoio.ads: Formal type must be a modular type, not a signed
34938 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34940 * decl.c (gnat_to_gnu_entity, case object): Call
34941 __builtin_update_setjmp_buf.
34943 * gigi.h (update_setjmp_buf): Deleted.
34944 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34946 * misc.c: (update_setjmp_buf): Deleted.
34948 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34949 around block of RTL.
34951 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34953 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
34955 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34956 subprogram for which no pragma All_Calls_Remote applies, store the
34957 address of the real subprogram in the underlying record type, so local
34958 dereferences do not go through the PCS.
34960 2004-04-26 Robert Dewar <dewar@gnat.com>
34962 * i-c.ads: Add some type qualifications to avoid ambiguities when
34963 compiling with s-auxdec.ads and a non-private address type.
34965 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
34967 * Makefile.rtl: Fix error in previous check-in:
34968 Add s-addope.o to non tasking object list (rather than tasking object
34971 2004-04-26 Javier Miranda <miranda@gnat.com>
34973 * sem_aggr.adb: Fix typo in comments
34974 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34975 Required to check the null-exclusion attribute.
34977 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34978 case of anonymous access types in record and array components. For a
34979 component definition the level is the same of the enclosing composite
34982 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34983 that are anonymous access types the level of accessibility depends on
34984 the enclosing type declaration. In order to have this information, set
34985 the scope of the anonymous access type to the enclosing record type
34987 (Array_Type_Declaration): In case of components that are anonymous
34988 access types the level of accessibility depends on the enclosing type
34989 declaration. In order to have this information, set the scope of the
34990 anonymous access type to the enclosing array type declaration.
34992 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34995 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34996 renaming of anonymous access-to-constant types allowed if and only if
34997 the renamed object is access-to-constant.
34999 * sem_util.adb (Type_Access_Level): In case of anonymous access types
35000 that are component_definition or discriminants of a nonlimited type,
35001 the level is the same as that of the enclosing component type.
35003 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
35005 * sem_elim.adb: Some minor code reorganization from code reading. Fix
35006 misprint in the function name (File_Name_Match).
35008 2004-04-23 Laurent Guerby <laurent@guerby.net>
35010 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
35013 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35015 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
35017 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
35019 * adaint.c (__gnat_try_lock): No longer requires that the parent
35020 directory be writable, the directory itself is enough.
35021 (gnat_is_absolute_path): Change profile, so that the call from
35022 GNAT.OS_Lib can be made more efficient.
35024 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
35025 from GNAT.OS_Lib can be made more efficient.
35027 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
35028 one copy of the file name. Found by code reading.
35030 2004-04-23 Vincent Celier <celier@gnat.com>
35032 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
35033 Correct documentation on gnatmake switches transmitted to the compiler
35035 * ali.ads: Minor comment fix
35037 2004-04-23 Javier Miranda <miranda@gnat.com>
35039 * sem_ch6.adb: (Confirming Types): Code cleanup
35041 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
35042 subprogram types: E_Anonymous_Access_Subprogram_Type and
35043 E_Anonymous_Access_Protected_Subprogram_Type.
35045 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
35047 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
35048 whether a pragma All_Calls_Remote applies to the subprogram on which
35050 No functional change is introduced by this revision; the new parameter
35051 will be used to allow calls to local RCI subprograms to be optimized
35052 to not use the PCS in the case where no pragma All_Calls_Remote applies,
35053 as is already done in the PolyORB implementation of the DSA.
35055 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
35056 whether a pragma All_Calls_Remote applies to the subprogram on which
35058 No functional change is introduced by this revision; the new parameter
35059 will be used to allow calls to local RCI subprograms to be optimized
35060 to not use the PCS in the case where no pragma All_Calls_Remote applies,
35061 as is already done in the PolyORB implementation of the DSA.
35063 2004-04-23 Robert Dewar <dewar@gnat.com>
35065 * Makefile.rtl: Add entry for s-addope.o in run time library list
35066 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
35067 * s-addope.ads, s-addope.adb: New files.
35069 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
35070 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
35071 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
35072 System.Address to be non-private and signed.
35074 * sem_elim.adb: Minor reformatting (fairly extensive)
35075 Some minor code reorganization from code reading
35076 Add a couple of ??? comments
35078 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35080 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
35081 (tree_transform, case N_If_Statement): Remove non-determinism.
35083 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
35085 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
35087 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
35088 Eliminate' section.
35090 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
35091 no longer used as a parameter name for Eliminate pragma).
35093 2004-04-22 Laurent Guerby <laurent@guerby.net>
35095 PR optimization/14984
35096 PR optimization/14985
35097 * trans.c (gigi): Fix non determinism leading to bootstrap
35098 comparison failures.
35100 2004-04-21 Pascal Obry <obry@gnat.com>
35102 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
35103 passed to spawnvp() to properly handle program pathname with spaces on
35106 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
35108 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
35109 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
35110 unlocked in case of exceptions.
35112 2004-04-21 Joel Brobecker <brobecker@gnat.com>
35114 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
35115 This function does not exist anymore.
35117 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
35119 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
35121 * link.c: Move variables to the __gnat name space.
35123 * Makefile.in: list link.o explicitly when needed.
35125 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
35127 2004-04-21 Javier Miranda <miranda@gnat.com>
35129 * einfo.adb (Original_Access_Type): New subprogram
35130 (Set_Original_Access_Type): New subprogram
35131 (Write_Field21_Name): Write the name of the new field
35133 * einfo.ads (Original_Access_Type): New field present in access to
35135 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
35136 E_Anonymous_Access_Protected_Subprogram_Type.
35138 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
35141 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
35142 to anonymous access to subprogram types.
35144 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
35145 to subprogram types.
35147 * sem_ch3.adb (Access_Definition): Complete decoration of entities
35148 corresponding to anonymous access to subprogram types.
35149 (Analyze_Component_Declaration): Add new actual to the call to
35150 subprogram replace_anonymous_access_to_protected_subprogram.
35151 (Array_Type_Declaration): Add new actual to the call to subprogram
35152 replace_anonymous_access_to_protected_subprogram.
35153 (Process_Discriminants): Add new actual to the call to subprogram
35154 replace_anonymous_access_to_protected_subprogram.
35155 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
35157 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
35160 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
35161 access to subprogram types.
35163 * sem_util.adb (Has_Declarations): Addition of package_specification
35166 2004-04-21 Ed Schonberg <schonberg@gnat.com>
35168 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
35169 inlined flags to renamed entity only if in current unit.
35171 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
35173 * s-parint.ads: Add DSA implementation marker.
35175 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
35176 value of System.Partition_Interface.DSA_Implementation to determine
35177 what version of the distributed systems annex is available (no
35178 implementation, GLADE, or PolyORB).
35180 2004-04-21 Joel Brobecker <brobecker@gnat.com>
35182 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
35184 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35186 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
35187 with new type if alias sets differ.
35188 Fixes ACATS c41103b.
35190 2004-04-21 Vincent Celier <celier@gnat.com>
35192 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
35193 Add array Lang_Args for the language specific compiling argument
35196 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
35198 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
35200 * gnat_rm.texi: Update the descripton of the Eliminate pragma
35201 according to the recent changes in the format of the parameters of the
35202 pragma (replacing Homonym_Number with Source_Location).
35204 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
35206 * 5isystem.ads: Removed, unused.
35208 * gnat_rm.texi: Redo 1.13 change.
35210 2004-04-19 Robert Dewar <dewar@gnat.com>
35212 * s-stoele.ads: Clean up definition of Storage_Offset (the new
35213 definition is cleaner, avoids the kludge of explicit Standard operator
35214 references, and also is consistent with a visible System.Address with
35215 no visible operations.
35217 * s-geveop.adb: Add declarations to avoid assumption of visible
35218 operations on type System.Address (since these might not be available
35219 if Address is a non-private type for which the operations
35220 are made abstract).
35222 * sem_eval.adb: Minor reformatting
35224 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
35225 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
35226 reformatting (new function spec format).
35228 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
35229 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
35230 s-caun64.adb: Add declarations to avoid assumption of visible
35231 operations on type System.Address (since these might not be available
35232 if Address is a non-private type for which the operations are made
35235 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
35237 * exp_intr.adb: Minor comment update
35239 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
35241 * 5omastop.adb: Add declarations to avoid assumption of visible
35242 operations on type System.Address (since these might not be available
35243 if Address is a non-private type for which the operations
35244 are made abstract).
35246 2004-04-19 Vincent Celier <celier@gnat.com>
35248 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
35250 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
35253 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
35255 Call Check with Process_Languages.
35256 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
35257 with Process_Languages.
35258 (Recursive_Check): New Boolean parameter Process_Languages. Call
35259 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
35262 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
35264 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
35265 parameter Ada_Main, defaulted to True.
35266 Check for Ada specific characteristics only when Ada_Main is True.
35268 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
35270 * prj.adb: (Project_Empty): Add new Project_Data components.
35272 * prj.ads: New types and tables for non Ada languages.
35273 (Project_Data): New components Languages, Impl_Suffixes,
35274 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
35275 Include_Path, Include_Data_Set.
35277 * prj-env.ads, prj-env.adb: Minor reformatting
35279 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
35280 Put subprograms in alphabetical order
35282 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
35283 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
35286 * mlib-prj.adb: Back out modification in last version, as they are
35288 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
35290 * make.adb: (Mains): Moved to package Makeutl
35291 (Linker_Opts): Moved to package Makeutl
35292 (Is_External_Assignment): Moved to package Makeutl
35293 (Test_If_Relative_Path): Moved to package Makeutl
35294 (Gnatmake): Move sorting of linker options to function
35295 Makeutl.Linker_Options_Switches.
35297 * makeutl.ads, makeutl.adb: New files.
35299 * Makefile.in: Add makeutl.o to the object files for gnatmake
35301 * makeusg.adb: Add line for new switch -eL.
35303 * gnatls.adb (Image): New function.
35304 (Output_Unit): If in verbose mode, output the list of restrictions
35305 specified by pragmas Restrictions.
35307 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
35310 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
35311 needed, to put it in the range 1970 (included) - 2026 (excluded).
35312 (Time_Of): Do not shift Unix_Min_Year (1970).
35313 Shift the date by multiple of 56 years, if needed, to put it in the
35314 range 1970 (included) - 2026 (excluded).
35316 * adaint.h, adaint.c (__gnat_set_executable): New function.
35318 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35320 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
35321 and pop GC context.
35322 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
35323 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
35324 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
35325 (tree_transform, case N_Code_Statement): Likewise.
35326 (gnat_expand_stmt, case LABEL_STMT): Don't look at
35327 LABEL_STMT_FIRST_IN_EH.
35328 (gnat_expand_stmt, case ASM_STMT): New case.
35330 * utils2.c (build_unary_op): Properly set TREE_READONLY of
35331 UNCONSTRAINED_ARRAY_REF.
35333 * utils.c (poplevel): Temporarily push/pop GC context around inline
35334 function expansion.
35336 * decl.c (maybe_variable): Properly set TREE_READONLY of
35337 UNCONSTRAINED_ARRAY_REF.
35338 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
35340 * ada-tree.def: (ASM_STMT): New.
35342 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
35343 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
35344 ASM_STMT_INPUT): New.
35345 (ASM_STMT_CLOBBER): Likewise.
35347 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
35349 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
35350 general rcheck mechanism to raise Program_Error for E.4(18), instead
35351 of a custom raiser in System.Partition_Interface.
35352 Part of general cleanup work before PolyORB integration.
35354 * snames.ads, snames.adb: Add new runtime library entities and names
35357 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
35359 (Build_Subprogram_Id): New subprogram provided by exp_dist
35360 Code reorganisation in preparation for PolyORB integration.
35362 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
35364 (Build_Subprogram_Id): New subprogram provided by exp_dist
35366 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
35367 actual parameter types for call to dereference of an
35368 access-to-subprogram type.
35370 * rtsfind.ads: Add new runtime library entities and names for PolyORB
35373 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
35374 instead, which has the same behaviour here since we never pass it a
35377 * link.c (run_path_option, Solaris case): Use -Wl, as for other
35380 * Makefile.in: adjust object file lists for gnatlink and gnatmake
35381 to account for new dependency upon Interfaces.C.Strings + link.o
35382 For x86 FreeBSD, use 86numaux.
35384 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
35385 from Mlib.Tgt to Mlib.
35387 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
35388 target-independent.
35390 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
35391 target-specific versions of this subprogram, now implemented as a
35392 target-independent function in Mlib.
35394 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
35395 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
35396 (Linker_Library_Path_Option): Remove target-specific versions of this
35397 subprogram, now implemented as a target-independent function in Mlib.
35399 * atree.adb: (Allocate_Initialize_Node): New subprogram.
35400 Factors out node table slots allocation.
35401 (Fix_Parents): New subprogram.
35402 Encapsulate the pattern of fixing up parent pointers for syntactic
35403 children of a rewritten node.
35404 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
35405 (Rewrite): Use New_Copy when creating saved copy of original node.
35406 (Replace): Use Copy_Node to copy nodes.
35408 2004-04-19 Javier Miranda <miranda@gnat.com>
35410 * sprint.adb (Sprint_Node_Actual): Give support to the new
35411 Access_To_Subprogram node available in Access_Definition nodes. In
35412 addition, give support to the AI-231 node fields: null-exclusion,
35413 all-present, constant-present.
35415 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
35417 * sinfo.ads, sinfo.adb:
35418 New field Access_To_Subprogram_Definition in Access_Definition nodes
35420 * sem_ch6.adb (Process_Formals): Move here the code that creates and
35421 decorates internal subtype declaration corresponding to the
35422 null-excluding formal. This code was previously in Set_Actual_Subtypes.
35423 In addition, carry out some code cleanup on this code. In case of
35424 access to protected subprogram call
35425 Replace_Anonymous_Access_To_Protected_Subprogram.
35426 (Set_Actual_Subtypes): Code cleanup.
35428 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
35429 Find_Type in case of anonymous access renamings. Add warning in case of
35430 null-excluding attribute used in anonymous access renaming.
35432 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
35435 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
35437 (Access_Definition): In case of anonymous access to subprograms call
35438 the corresponding semantic routine to decorate the node.
35439 (Access_Subprogram_Declaration): Addition of some comments indicating
35440 some code that probably should be added here. Detected by comparison
35441 with the access_definition subprogram.
35442 (Analyze_Component_Declaration): In case of access to protected
35443 subprogram call Replace_Anonymous_Access_To_Protected.
35444 (Array_Type_Declaration): In case of access to protected subprogram call
35445 Replace_Anonymous_Access_To_Protected_Subprogram.
35446 (Process_Discriminants): In case of access to protected subprogram call
35447 Replace_Anonymous_Access_To_Protected_Subprogram.
35449 * par.adb (P_Access_Definition): New formal that indicates if the
35450 null-exclusion part was present.
35451 (P_Access_Type_Definition): New formal that indicates if the caller has
35452 already parsed the null-excluding part.
35454 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
35455 (P_Identifier_Declarations): Code cleanup and give support to renamings
35456 of anonymous access to subprogram types.
35457 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
35458 (P_Array_Type_Definition): Give support to AI-254.
35459 (P_Component_Items): Give support to AI-254.
35460 (P_Access_Definition): New formal that indicates if the header was
35461 already parsed by the caller.
35462 (P_Access_Type_Definition): New formal that indicates if the caller has
35463 already parsed the null-excluding part.
35465 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
35466 call to P_Access_Definition.
35468 2004-04-19 Geert Bosch <bosch@gnat.com>
35470 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
35471 the delicate semantics of floating-point to integer conversion.
35472 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
35474 * eval_fat.adb (Machine_Mantissa): Moved to spec.
35475 (Machine_Radix): New function.
35477 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
35479 (Machine_Radix): New function also for use in conversion checks.
35481 2004-04-19 Ed Schonberg <schonberg@gnat.com>
35483 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
35485 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
35486 to decorate the access-to-protected subprogram and the equivalent type.
35488 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
35489 to anonymous access to subprogram types.
35491 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
35492 constant-folding, for legality checks in contexts that require an RM
35495 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
35496 temporary but stack checking is not enabled, increment serial number
35497 to so that symbol generation is consistent with and without stack
35500 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
35501 independent on whether stack checking is enabled, caller must check
35502 the corresponding flag.
35504 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
35506 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
35507 parent if it has discriminants.
35508 (Build_Derived_Private_Type): Constructed full view does
35509 not come from source.
35510 (Process_Discriminants): Default discriminants on a tagged type are
35511 legal if this is the internal completion of a private untagged
35514 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
35515 no constraint checks, because it corresponds to an existing object.
35517 * sem_prag.adb (Process_Convention): Pragma applies
35518 only to subprograms in the same declarative part, i.e. the same unit,
35519 not the same scope.
35521 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
35522 ignore type mismatch on a numeric conversion if expression comes from
35525 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
35527 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
35528 Homonym_Number parameter, add processing for Source_Location parameter
35530 (Check_Eliminated): Remove the check for homonym numbers, add the check
35531 for source location traces.
35533 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
35534 with Arg_Source_Location corresponding to the changes in the format of
35537 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
35538 Eliminate pragma corresponding to the changes in the format of the
35539 pragma: Homonym_Number is replaced with Source_Location, two ways of
35540 distinguishing homonyms are mutially-exclusive.
35542 2004-04-19 Joel Brobecker <brobecker@gnat.com>
35544 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
35546 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
35547 No_Dollar_In_Label, no longer necessary, as it is always True.
35548 (Strip_Suffixes): Likewise.
35550 2004-04-19 Gary Dismukes <dismukes@gnat.com>
35552 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
35553 modulus for compatibility with size clause on targets with 16-bit
35556 * layout.adb (Discrimify): In the case of private types, set Vtyp to
35557 full type to fix type mismatches on calls to size functions for
35558 discriminant-dependent array components.
35560 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
35562 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
35565 2004-04-19 Pascal Obry <obry@gnat.com>
35567 * mdll-utl.adb (Locate): New version is idempotent.
35569 2004-04-17 Laurent Guerby <laurent@guerby.net>
35571 PR ada/14988 (partial)
35572 * impunit.adb: Fix typo.
35574 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
35576 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
35577 and install-rts-cert targets. Remove all gnatlib and gnattools
35578 targets and all other rts-* targets (moved to libada). Remove (now)
35579 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
35580 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
35582 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35584 * trans.c (tree_transform): Shortcut returning error_mark_node for
35585 statements in annotate_only_mode.
35586 (tree_transform, case N_Label, case N_Return_Statement,
35587 N_Goto_Statement): Make statement tree instead of generating code.
35588 (tree_transform, case N_Assignment_Statement): No longer check
35589 type_annotate_only.
35590 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
35592 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
35594 (gnat_to_gnu): Collect any RTL generated and deal with it.
35595 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
35596 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
35597 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
35599 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
35601 * ada-tree.def (EXPR_STMT): Fix typo in name.
35602 (BLOCK_STMT, IF_STMT): New nodes.
35604 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
35605 LABEL_STMT_FIRST_IN_EH): New macros.
35606 (RETURN_STMT_EXPR): Likewise.
35608 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
35609 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
35611 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
35613 * atree.ads: Correct documentation on extended nodes.
35615 * link.c: Set run_path_option for FreeBSD.
35617 2004-04-08 Vincent Celier <celier@gnat.com>
35619 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
35620 one of the ALI file, do not link with DEC lib.
35622 * par.adb Remove the last two characters ("%s" or "%b") when checking
35623 if a language defined unit may be recompiled.
35625 2004-04-08 Ed Schonberg <schonberg@gnat.com>
35627 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
35628 removal of abstract operation leaves no possible interpretation for
35631 * sem_eval.adb (Eval_Qualified_Expression): Use
35632 Set_Raises_Constraint_Error on node when needed, so that it does not
35633 get optimized away by subsequent optimizations.
35635 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
35636 operands even when they are not wrapped in a type conversion.
35638 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
35640 * sem_prag.adb (Set_Exported): Warn about making static as result of
35641 export only when the export is coming from source. This may be not
35642 be true e.g. on VMS where we expand export pragmas for exception codes
35643 together with imported or exported exceptions, and we don't want the
35644 user to be warned about something he didn't write.
35646 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
35648 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
35649 duplication between normal entities and those declared as renamings.
35650 No functional change.
35652 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
35653 inline functions returning an unconstrained result.
35655 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
35657 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
35658 conform to what other front-ends do.
35660 2004-04-08 Doug Rupp <rupp@gnat.com>
35662 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
35665 2004-04-06 Pascal Obry <obry@gnat.com>
35667 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
35669 * osint.adb (Program_Name): Do not look past a directory separator.
35671 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
35673 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35675 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
35676 requirement for preserving a copy of the original assignment node.
35678 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
35680 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
35682 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
35685 2004-04-06 Ed Schonberg <schonberg@gnat.com>
35687 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35688 operator calls in functional notation, and apply
35689 Universal_Interpretation to operands, not to their type.
35691 2004-04-06 Robert Dewar <dewar@gnat.com>
35693 * 5wdirval.adb: Minor reformatting
35695 2004-04-06 Ed Falis <falis@gnat.com>
35697 * gnat_rm.texi: Improve a reference to the GCC manual
35699 2004-04-05 Vincent Celier <celier@gnat.com>
35701 * adaint.h, adaint.c: Add function __gnat_named_file_length
35703 * impunit.adb: Add Ada.Directories to the list
35705 * Makefile.in: Add VMS and Windows versions of
35706 Ada.Directories.Validity package body.
35708 * Makefile.rtl: Add a-direct and a-dirval
35710 * mlib-tgt.ads: Minor comment update.
35712 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35713 a-direct.ads, a-direct.adb: New files.
35715 2004-04-05 Vincent Celier <celier@gnat.com>
35718 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35719 just to the compiler.
35721 2004-04-05 Robert Dewar <dewar@gnat.com>
35723 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35724 returned string is 1.
35726 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35728 * eval_fat.ads: Minor reformatting
35730 * g-curexc.ads: Document that lower bound of returned string values
35733 * gnatlink.adb: Add ??? comment for previous change
35734 (need to document why this is VMS specific)
35736 * s-stoele.ads: Minor reformatting
35738 * tbuild.ads: Minor reformatting throughout (new function specs)
35740 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35743 * scng.adb: Minor reformatting
35745 2004-04-05 Geert Bosch <bosch@gnat.com>
35747 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35748 (Leading_Part): Still perform truncation to machine number if the
35749 specified radix_digits is greater or equal to machine_mantissa.
35751 2004-04-05 Javier Miranda <miranda@gnat.com>
35753 * par-ch3.adb: Complete documentation of previous change
35754 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35755 (aliased must appear before constant).
35757 * par-ch4.adb: Complete documentation of previous change.
35759 * par-ch6.adb: Complete documentation of previous change.
35761 * sinfo.ads: Fix typo in commment.
35763 2004-04-05 Ed Schonberg <schonberg@gnat.com>
35765 * sem_ch3.adb (Inherit_Components): If derived type is private and has
35766 stored discriminants, use its discriminants to constrain parent type,
35767 as is done for non-private derived record types.
35769 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35770 Ada 2005 AI-310: an abstract non-dispatching operation is not a
35771 candidate interpretation in an overloaded call.
35773 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35774 expression is Null and target type is not an access type (e.g. a
35775 non-private address type).
35777 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
35779 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35780 statement whose right-hand side is an inlined call, save a copy of the
35781 original assignment subtree to preserve enough consistency for
35782 Analyze_Assignment to proceed.
35784 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35785 complete assignment subtree which is now unnecessary, as the expansion
35786 of inlined call has been improved to preserve a consistent assignment
35787 tree. Note_Possible_Modification must be called only
35788 after checks have been applied, or else unnecessary checks will
35791 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35792 of explicit dereferences that do not Come_From_Source:
35793 - be selective on cases where we must go back to the dereferenced
35794 pointer (an assignment to an implicit dereference must not be
35795 recorded as modifying the pointer);
35796 - do not rely on Original_Node being present (Analyze_Assignment
35797 calls Note_Possible_Modification on a copied tree).
35799 * sem_warn.adb (Check_References): When an unset reference to a pointer
35800 that is never assigned is encountered, prefer '<pointer> may be null'
35801 warning over '<pointer> is never assigned a value'.
35803 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
35805 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35808 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
35810 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35811 libexc. We currently don't reference anything in this library and
35812 linking it in triggers linker warnings we don't want to see.
35814 * init.c: Update comments.
35816 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35818 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35819 * utils.c (create_field_decl): Likewise.
35820 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35822 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
35824 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35825 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35826 Add info directory entry and category.
35828 2004-04-02 Jan Hubicka <jh@suse.cz>
35830 * utils.c: Include function.h
35831 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35833 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35836 * Make-lang.in: Clean up generation of documentation
35838 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35840 * xgnatug.adb: Removed, replaced by xgnatugn.adb
35842 * xgnatugn.adb: Replaces xgnatug.adb
35844 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35846 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35848 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35849 gnat_ug_wnt.texi: Removed.
35851 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35853 * utils2.c: Update copyright notice.
35855 2004-04-01 Robert Dewar <dewar@gnat.com>
35857 * checks.adb: Minor reformatting throughout
35858 Note that prev checkin added RM reference to alignment warning
35860 2004-04-01 Ed Schonberg <schonberg@gnat.com>
35862 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35863 non-static when building aggregate for bit-packed array.
35865 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35866 function call that is itself the actual in a procedure call, build
35869 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35870 a string literal, create a temporary for it, constant folding only
35871 handles scalars here.
35873 2004-04-01 Vincent Celier <celier@gnat.com>
35875 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35876 Error_Msg_SP): New empty procedures to instantiate the Scanner.
35877 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35879 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35880 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35881 and get the checksum.
35883 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35885 Increase the Marking_Label at the end of the Multiple_Main_Loop,
35886 instead of at the beginning.
35888 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35890 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35893 * osint.ads (Multi_Unit_Index_Character): New Character global variable
35895 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35898 * par.adb: Remove test on file name to detect language defined units.
35899 Add test on unit name, after parsing, to detect language defined units
35900 that are not compiled with -gnatg (except System.RPC and its children)
35902 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35903 following units without style checking.
35905 * switch-c.adb: Change -gnatC to -gnateI
35907 * usage.adb: Document new switch -gnateInnn
35909 * scng.adb (Accumulate_Token_Checksum): New procedure
35910 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35911 word or literal number.
35912 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35915 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
35918 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35919 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35920 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35921 5vtpopde.adb: Add missing 'constant' keywords.
35923 2004-04-01 Javier Miranda <miranda@gnat.com>
35925 * par-ch4.adb: (P_Allocator): Code cleanup
35927 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35930 * sinfo.ads: Complete documentation of previous change
35932 2004-04-01 Pascal Obry <obry@gnat.com>
35934 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35935 only on VMS. This special handling was done because an old GNU/ld bug
35936 on Windows which has been fixed.
35938 2004-04-01 GNAT Script <nobody@gnat.com>
35940 * Make-lang.in: Makefile automatically updated
35942 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35944 * decl.c (gnat_to_gnu_entity, make_type_from_size):
35945 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35946 * trans.c (tree_transform, convert_with_check): Likewise.
35947 * utils.c (gnat_signed_or_unsigned_type): Likewise.
35948 (build_vms_descriptor, unchecked_convert): Likewise.
35949 * utils2.c (nonbinary_modular_operation): Likewise.
35951 2004-03-29 Javier Miranda <miranda@gnat.com>
35953 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35954 (Install_Null_Excluding_Check): Local subprogram that determines whether
35955 an access node requires a runtime access check and if so inserts the
35956 appropriate run-time check.
35957 (Apply_Access_Check): Call Install_Null_Excluding check if required
35958 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35960 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35962 * einfo.ads: Fix typo in comment
35964 * exp_ch3.adb (Build_Assignment): Generate conversion to the
35965 null-excluding type to force the corresponding run-time check.
35966 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35967 type to force the corresponding run-time check.
35969 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35970 the null-excluding type to force the corresponding run-time check.
35972 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35973 case of access types unless they have the null-excluding attribute.
35975 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35978 * exp_util.ads: Fix typo in comment
35980 * par.adb (P_Null_Exclusion): New subprogram
35981 (P_Subtype_Indication): New formal that indicates if the null-excluding
35982 part has been scanned-out and it was present
35984 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35986 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35987 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35988 type to force the corresponding run-time check
35989 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35991 (Resolve_Array_Aggregate): Carry out some static checks
35992 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35994 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35995 attribute must be set only if specified by means of the null-excluding
35996 part. In addition, we must also propagate the access-constant attribute
35998 (Access_Subprogram_Declaration, Access_Type_Declaration,
35999 Analyze_Component_Declaration, Analyze_Object_Declaration,
36000 Array_Type_Declaration, Process_Discriminants,
36001 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
36002 and carry out some static checks.
36003 (Build_Derived_Access_Type): Set the null-excluding attribute
36004 (Derived_Type_Declaration, Process_Subtype): Carry out some static
36007 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
36009 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
36011 * sem_ch6.adb (Process_Formals): Carry out some static checks.
36012 (Set_Actual_Subtypes): Generate null-excluding subtype if the
36013 null-excluding part was present; it is not required to be done here in
36014 case of anonymous access types.
36015 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
36018 * sem_res.adb (Resolve_Actuals): Carry out some static check
36019 (Resolve_Null): Allow null in anonymous access
36021 * sinfo.adb: New subprogram Null_Exclusion_Present
36022 All_Present and Constant_Present available on access_definition nodes
36024 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
36025 object_declaration, derived_type_definition, component_definition,
36026 discriminant_specification, access_to_object_definition,
36027 access_function_definition, allocator, access_procedure_definition,
36028 access_definition, parameter_specification, All_Present and
36029 Constant_Present flags available on access_definition nodes.
36031 2004-03-29 Robert Dewar <dewar@gnat.com>
36033 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
36034 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
36035 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
36036 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
36037 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
36038 sem_prag.adb: Updates to handle multiple units/file
36040 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
36042 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
36043 sem_util.adb: Minor reformatting
36045 * sem_ch12.adb: Add comment for previous change
36047 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
36049 * osint.adb (Executable_Prefix): Set Exec_Name to the current
36050 executable name when not initialized. Otherwise, use its current value.
36052 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
36053 initialize it to another executable name than the current one. This
36054 allows to configure paths for an executable name (gnatmake) different
36055 from the current one (gnatdist).
36057 2004-03-29 Ed Schonberg <schonberg@gnat.com>
36059 * exp_ch6.adb (Expand_Call): A call to a function declared in the
36060 current unit cannot be inlined if it appears in the body of a withed
36061 unit, to avoid order of elaboration problems in gigi.
36063 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
36064 information for protected (wrapper) operation as well, to simplify gdb
36067 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
36068 protected body, indicate that the entity for the generated spec comes
36069 from source, to ensure that references are properly generated for it.
36070 (Build_Body_To_Inline): Do not inline a function that returns a
36073 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
36074 apply convention to homonyms that are declared explicitly.
36076 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
36077 that renames an equality operator and the operands are overloaded,
36078 resolve them with the declared formal types, before rewriting as an
36081 2004-03-29 GNAT Script <nobody@gnat.com>
36083 * Make-lang.in: Makefile automatically updated
36085 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
36087 * memtrack.adb: Log realloc calls, which are treated as free followed
36090 2004-03-25 Vincent Celier <celier@gnat.com>
36092 * prj-makr.adb (Process_Directories): Detect when a file contains
36093 several units. Do not include such files in the config pragmas or
36094 in the naming scheme.
36096 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
36097 Resolve links only when not in Trusted_Mode.
36098 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
36099 Do not resolve links for the display names.
36101 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
36102 resolve links when computing the display names.
36104 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
36106 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
36107 attribute reference does not denote a subtype, it can be any
36108 expression that has a classwide type, potentially after an implicit
36109 dereference. In particular, the prefix can be a view conversion for
36110 a classwide type (for which Is_Object_Reference holds), but it can
36111 also be a value conversion for an access-to-classwide type. In the
36112 latter case, there is an implicit dereference, and the original node
36113 for the prefix does not verify Is_Object_Reference.
36115 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
36116 conversion of a discriminant-dependent component of a mutable object
36119 2004-03-25 Ed Schonberg <schonberg@gnat.com>
36121 * freeze.adb (Freeze_Entity): When an inherited subprogram is
36122 inherited, has convention C, and has unconstrained array parameters,
36123 place the corresponding warning on the derived type declaration rather
36124 than the original subprogram.
36126 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
36127 indication on renaming declaration, if formal has a box and actual
36130 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
36131 determine whether to generate an implicit or explicit reference to
36132 the renamed entity.
36134 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
36135 subprogram renaming comes from a defaulted formal subprogram in an
36138 2004-03-25 Gary Dismukes <dismukes@gnat.com>
36140 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
36141 value expressions to ensure that calls within a component definition
36142 will be checked (since those are evaluated during the record type's
36145 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
36147 * s-tpobop.adb: Code clean up:
36148 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
36150 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
36152 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
36154 * Makefile.in: Clean up in the ravenscar run time.
36156 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36158 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
36159 of No_Strict_Aliasing to build_pointer_type_for_mode.
36160 * utils.c (update_pointer_to): Walk pointer and ref chains.
36162 2004-03-22 Cyrille Comar <comar@act-europe.fr>
36164 * ali.ads: Fix Comment about Dynamic_Elab.
36166 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
36167 Has_RACW, Is_Generic, etc.)
36168 (Output_Object, Gnatls): Take into account ALI files not attached to
36171 2004-03-22 Vincent Celier <celier@gnat.com>
36173 * gprep.adb: Change all String_Access to Name_Id
36174 (Is_ASCII_Letter): new function
36175 (Double_File_Name_Buffer): New procedure
36176 (Preprocess_Infile_Name): New procedure
36177 (Process_Files): New procedure
36178 (Gnatprep): Check if output and input are existing directories.
36179 Call Process_Files to do the real job.
36181 2004-03-22 Robert Dewar <dewar@gnat.com>
36183 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
36184 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
36186 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
36188 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
36189 case when the source contains only comments.
36191 2004-03-22 Ed Schonberg <schonberg@gnat.com>
36193 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
36194 declaration for a child subprogram body that acts as a spec, indicate
36195 that the entity in the declaration needs debugging information.
36197 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
36198 full view if the subtype is created for a constrained record component;
36199 gigi has enough information to construct the record, and there is no
36200 place in the tree for the declaration.
36202 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
36203 serial number for the dummy body that is built for analysis, to avoid
36204 inconsistencies in the generation of internal names when compiling
36207 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
36209 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
36212 2004-03-22 GNAT Script <nobody@gnat.com>
36214 * Make-lang.in: Makefile automatically updated
36216 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36218 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
36219 * trans.c (tree_transform, emit_index_check): Likewise.
36220 * utils.c (build_template): Likewise.
36221 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
36222 (maybe_unconstrained_array, unchecked_convert): Likewise.
36223 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
36224 (build_unary_op): Likewise.
36225 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
36226 (fill_vms_descriptor): Likewise.
36227 (build_call_alloc_dealloc): Likewise.
36229 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
36231 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
36234 * gnat_ug.texi: Add info directory category and entry.
36235 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36236 gnat_ug_wnt.texi: Regenerate.
36238 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
36240 * ada-tree.h: Update copyright notice.
36241 Minor reformatting.
36243 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
36245 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
36246 as regular exception objects and not as mere integers representing the
36247 condition code. The latter approach required some dynamics to mask off
36248 severity bits, which did not fit well into the GCC table based model.
36249 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
36250 exception data objects. We don't it and it would conflict with the other
36251 external symbol we have to generate for such exceptions.
36253 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
36254 the special code for VMS exceptions, since these are now represented
36255 as regular exceptions objects.
36257 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36259 * decl.c (debug_no_type_hash): Remove.
36260 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
36261 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
36263 2004-03-19 Laurent Guerby <laurent@guerby.net>
36265 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
36266 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
36268 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36270 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
36271 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
36272 (TYPE_RM_SIZE_INT): Directly use type.values.
36273 (TREE_LOOP_ID): Clean up check.
36274 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
36275 TYPE_VALUES, not TYPE_FIELDS.
36276 * trans.c (convert_with_check): Delay access of bounds of basetype
36277 until sure is numeric.
36279 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
36281 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
36284 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
36285 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
36286 Specific.Set instead of direct call to e.g pthread_setspecific.
36288 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
36290 * adaint.c: Update comments.
36292 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
36293 GNATLIB_SHARED for FreeBSD.
36295 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
36297 * init.c [VxWorks]: Do not fix the stack size for the environment task.
36298 When needed (stack checking) the stack size is retrieved
36299 from the VxWorks kernel.
36301 * Makefile.in: Flag -nostdinc is required when building the run time
36302 for avoiding looking for files in the base compiler.
36303 Add the VxWorks specific version of the package body for
36304 System.Stack_checking.Operations (5zstchop.adb).
36306 * Make-lang.in: Add the object file for
36307 System.Stack_Checking.Operations.
36309 * Makefile.rtl: Add object file for the package
36310 System.Stack_Checking.Operations.
36312 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
36314 * s-stache.ads, s-stache.adb: Move the operations related to stack
36315 checking from this package to package System.Stack_Checking.Operations.
36316 This way, stack checking operations are only linked in the final
36317 executable when using the -fstack-check flag.
36319 2004-03-18 Doug Rupp <rupp@gnat.com>
36321 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
36324 * 5qsystem.ads, 5xcrtl.ads: New files.
36326 2004-03-18 Vincent Celier <celier@gnat.com>
36328 * prj.adb (Reset): Reset hash table Files_Htable
36330 * prj-env.adb (Source_Paths, Object_Paths): New tables.
36331 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
36332 the procedures Add_To_Path_File.
36333 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
36334 making sure that each directory is present only once and, for object
36335 dirs, when a directory already present is added, the duplicate is
36336 removed and the directory is always put as the last in the table.
36337 Write the path files at the end of these accumulations.
36339 * prj-nmsc.adb (Record_Source): Add source file name in hash table
36340 Files_Htable for all sources.
36342 * prj-proc.adb (Process): Remove restrictions between not directly
36343 related extending projects.
36345 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
36347 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
36348 (Find_Sources): Minor speed optimization.
36350 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
36351 parameter Trusted_Mode.
36353 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
36355 * scn.adb (Determine_License): Take into account a degenerated case
36356 when the source contains only comments.
36358 2004-03-18 Ed Schonberg <schonberg@gnat.com>
36360 * sem_warn.adb (Check_References): For a warning on a selected
36361 component that does not come from source, locate an uninitialized
36362 component of the record type to produce a more precise error message.
36364 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
36366 * 3zsoccon.ads: Fix multicast options.
36368 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
36371 2004-03-15 Robert Dewar <dewar@gnat.com>
36373 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
36374 pragma used for a private type.
36376 * lib-xref.adb (Generate_Reference): Do not generate warning if
36377 reference is in a different unit from the pragma Unreferenced.
36379 * 5vtpopde.adb: Minor reformatting
36380 Fix casing of To_Task_ID
36382 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
36383 flag if we have an unchecked conversion to an access type in the same
36386 2004-03-15 Geert Bosch <bosch@gnat.com>
36388 * a-ngcoty.adb (Modulus): In alternate formula for large real or
36389 imaginary parts, use Double precision throughout.
36391 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
36392 we want to be able to compile run-time with -gnata for testing, but
36393 this may also be instantiated in user code that is compiled with -gnata.
36395 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
36397 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
36398 codes. Having a separate type for this is useful to enforce consistency
36399 throughout the various run-time units.
36400 (Exception_Data): Use Exception_Code for Import_Code.
36402 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
36403 Natural and Integer in various places.
36404 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
36405 with the severity bits masked off.
36406 (Register_VMS_Exception): Handle the additional exception data pointer
36409 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
36410 component, now reflected by an exported accessor.
36411 (is_handled_by): New routine to compute whether the propagated
36412 occurrence matches some handler choice specification. Extracted out of
36413 get_action_description_for, and expanded to take care of the VMS
36415 (get_action_description_for): Use is_handled_by instead of an explicit
36416 complex condition to decide if the current choice at hand catches the
36417 propagated occurrence.
36419 * raise.h (Exception_Code): New type for C.
36421 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
36422 System.Standard_Library.Exception_Code, to allow references from the
36423 pragma import/export expander.
36425 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
36426 New accessors to allow easy access to GNAT exception data
36428 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
36429 redundant Handled_By_Others component, helper for the personality
36430 routine which will now be able to call the appropriate exception data
36433 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
36434 component of Standard_Exception_Type to be the closest possible to
36435 Exception_Code in System.Standard_Library, that we cannot get at this
36436 point. Expand a ??? comment to notify that this type node should
36437 probably be rewritten later on.
36439 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
36440 registration call to include a pointer to the exception object in the
36443 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
36444 instead of int and explicit bitmasks.
36446 2004-03-15 Vincent Celier <celier@gnat.com>
36448 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
36449 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
36451 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
36452 longer needed now that it is in the spec of
36453 System.Tasking.Task_Attributes.
36455 * adaint.h, adaint.c: (__gnat_create_output_file): New function
36457 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
36459 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
36461 * make.adb (Gnatmake): Do not check the executable suffix; it is being
36462 taken care of in Scan_Make_Arg.
36463 (Scan_Make_Arg): Add the executable suffix only if the argument
36464 following -o, in canonical case, does not end with the executable
36465 suffix. When in verbose mode and executable file name does not end
36466 with executable suffix, output the executable name, in canonical case.
36468 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
36469 to avoid warnings when instantiating Ada.Task_Attributes.
36472 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
36473 in the correct order.
36475 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
36476 redirect standard output and error to a file for the invocation of the
36477 compiler, then read the file.
36479 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
36480 directory, instead of the Value.
36481 (Find_Source_Dirs): Remove useless code & comments.
36483 2004-03-15 Ed Schonberg <schonberg@gnat.com>
36485 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
36486 tagged type is inherited, and the parent operation is not frozen yet,
36487 force generation of a freeze node for the inherited operation, so the
36488 corresponding dispatch entry is properly initialized.
36489 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
36490 when looking for user-defined equality operation.
36492 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
36493 boolean when locating primitive equality of tagged component.
36495 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
36496 bit-aligned field and the right-hand side a string literal, introduce
36497 a temporary before expanding assignment into a loop.
36499 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
36500 priority in full, to ensure that any expanded subepxressions of it are
36501 elaborated in the scope of the init_proc.
36503 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
36504 after object declaration, skipping over code that may have been
36505 generated for validity checks.
36507 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
36508 discriminants, ignore the known discriminants of its full view, if
36509 any, to check legality.
36511 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
36512 component if type has unknown discriminants.
36513 (Analyze_Private_Extension_Declaration): Discriminant constraint is
36514 null if type has unknown discriminants.
36516 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
36517 for end label when present.
36519 * s-fileio.adb (Open): When called with a C_Stream, use given name for
36520 temporary file, rather than an empty string.
36522 2004-03-15 Ed Falis <falis@gnat.com>
36524 * s-thread.adb: Removed, no longer used.
36526 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36528 * decl.c (target.h): Now include.
36529 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
36530 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
36531 (validate_size): For POINTER_TYPE, get smallest size permitted on
36534 * fe.h: Sort Einfo decls and add Set_Mechanism.
36536 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
36537 (ada/decl.o): Depends on target.h.
36539 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
36540 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
36542 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
36544 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
36546 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
36547 Insert_Dereference_Action when rewriting an implicit dereference into
36548 an explicit one, this will be taken care of during expansion of the
36549 explicit dereference.
36550 (Expand_N_Slice): Same. Always do the rewriting, even for the case
36551 of non-packed slices, since the dereference action generated by
36552 expansion of the explicit dereference is needed in any case.
36553 (Expand_N_Selected_Component): When rewriting an implicit dereference,
36554 analyze and resolve the rewritten explicit dereference so it is seen
36556 (Insert_Dereference_Action): This procedure is now called only for the
36557 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
36558 dereferences that do not come from source (including explicit
36559 dereferences resulting from rewriting implicit ones), but do not
36560 recursively insert a check for the dereference nodes contained within
36562 (Insert_Dereference_Action): Clarify and correct comment.
36564 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
36567 Move language detection to the top level.
36568 * config-lang.in: Build by default.
36570 2004-03-05 Robert Dewar <dewar@gnat.com>
36572 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
36574 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
36575 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
36576 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
36577 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
36578 unchecked conversion to spec to avoid warnings.
36580 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
36583 * 7stpopsp.adb: Correct casing in To_Task_ID call
36585 * a-strsea.ads, a-strsea.adb: Minor reformatting
36587 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
36589 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
36590 Adjust Max_Msg_Length to be clearly large enough.
36592 * fe.h: Define In_Same_Source_Unit
36594 * osint.adb: Add pragma Warnings Off to suppress warnings
36595 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
36598 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
36600 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
36602 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
36604 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
36606 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
36608 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
36609 node. We now do generate them for gcc back end.
36611 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
36614 * sinput-c.adb: Fix bad name in header.
36615 Add pragma Warnings Off to suppress aliasing warning.
36617 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
36619 * snames.h, snames.ads, snames.adb: Add entry for pragma
36620 No_Strict_Aliasing.
36622 2004-03-05 Vincent Celier <celier@gnat.com>
36624 * prj-com.ads: Add hash table Files_Htable to check when a file name
36625 is already a source of another project.
36627 * prj-nmsc.adb (Record_Source): Before recording a new source, check
36628 if its file name is not already a source of another project. Report an
36631 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
36632 source file name, call gnatpp with all the sources of the main project.
36634 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
36637 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
36638 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
36639 /RUNTIME_SYSTEM=, converted to --RTS=
36640 /NOTABS, converted to -notabs
36642 2004-03-05 Pascal Obry <obry@gnat.com>
36644 * make.adb: Minor reformatting.
36646 2004-03-05 Ed Schonberg <schonberg@gnat.com>
36648 Part of implemention of AI-262.
36649 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
36651 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
36654 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
36655 when component type is a partially constrained class-wide subtype.
36656 (Constrain_Discriminated_Type): If parent type has unknown
36657 discriminants, a constraint is illegal, even if full view has
36659 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
36660 with unknown discriminants whose full view is a discriminated record.
36662 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
36663 flag, to handle properly derivations of tagged types with unknown
36665 (Analyze_Package_Spec, Analyze_Package_Body): Install
36666 Private_With_Clauses before analyzing private part or body.
36668 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
36669 Has_Discriminants can be true for a given type (documentation).
36671 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
36673 * s-restri.ads: Fix license (GPL->GMGPL).
36675 * s-tassta.adb: Minor reformatting.
36677 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36678 by calls to Exit_One_ATC_Level, since additional clean up is performed
36681 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36682 by calls to Exit_One_ATC_Level, since additional clean up is performed
36685 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36687 * trans.c: Reflect GCC changes to fix bootstrap problem.
36688 Add warning for suspicious aliasing unchecked conversion.
36690 2004-03-05 GNAT Script <nobody@gnat.com>
36692 * Make-lang.in: Makefile automatically updated
36694 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
36696 * ali.adb (Read_Instantiation_Instance): Do not modify the
36697 current_file_num when reading information about instantiations, since
36698 this corrupts files in later references.
36700 2004-03-02 Vincent Celier <celier@gnat.com>
36702 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36703 before checking if it is read-only.
36705 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36706 of SRC_DIRS and eliminate duplicates.
36708 * gprcmd.adb: Replace command "path" with command "path_sep" to return
36709 the path separator.
36710 (Usage): Document path_sep
36712 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36713 C++ compiler. No need for a script.
36714 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36715 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36718 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36719 where there are Ada sources.
36720 (Set_Ada_Paths): Only add to the include path the source dirs of project
36722 (Add_To_Path): Add the Display_Values of the directories, not their
36725 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36728 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36730 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36731 Value is canonicalized.
36732 (Language_Independent_Check): Do not copy Value to Display_Value when
36733 canonicalizing Value.
36735 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36736 path to find limited with cycles.
36737 (Parse_Single_Project): Use canonical cased path to find the end of a
36740 2004-03-02 Ed Schonberg <schonberg@gnat.com>
36742 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36743 and not a child unit.
36745 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36746 appear in a with_clause.
36748 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36749 only happen in type_annotate mode, do not try to elaborate it.
36751 * exp_util.adb (Force_Evaluation): If expression is a selected
36752 component on the left of an assignment, use a renaming rather than a
36753 temporary to remove side effects.
36755 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36756 inlined instance body, which is analyzed before the end of the
36759 2004-03-02 Robert Dewar <dewar@gnat.com>
36761 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36762 sem_ch4.adb: Use new feature for substitution of keywords in VMS
36764 * errout.ads, errout.adb: Implement new circuit for substitution of
36767 * sem_case.adb (Analyze_Choices): Place message properly when case is
36768 a subtype reference rather than an explicit range.
36770 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36772 2004-03-02 Doug Rupp <rupp@gnat.com>
36774 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36776 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
36778 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36780 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36782 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36785 2004-02-25 Robert Dewar <dewar@gnat.com>
36787 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36788 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36789 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36790 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36791 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36792 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36793 the defining instance of the type to avoid aliasing problems.
36794 Fix copyright header. Fix bad comments in package header.
36796 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36798 2004-02-25 Ed Schonberg <schonberg@gnat.com>
36800 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36801 rewritten as references when aliased through an address clause.
36803 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36804 whether call can be interpreted as an indirect call to the result of a
36805 parameterless function call returning an access subprogram.
36807 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
36810 * exp_ch7.adb (Make_Clean): Remove generation of calls to
36811 Unlock[_Entries], since this is now done by Service_Entries directly.
36813 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36815 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36816 Requeue_Call for better code readability. Change spec and update calls:
36817 PO_Service_Entries now unlock the PO on exit.
36818 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36819 PO_Service_Entries.
36821 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36823 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36825 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
36827 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36828 protected subprogram call and analyzing the result of such expanding
36829 in case when the called protected subprogram is eliminated.
36831 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36834 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
36836 * Makefile.in: Clean ups.
36838 2004-02-23 Ed Schonberg <schonberg@gnat.com>
36840 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36841 protected operations if original subprogram is flagged as eliminated.
36842 (Expand_N_Subprogram_Body): For a protected operation, create
36843 discriminals for next operation before checking whether the operation
36846 * exp_ch9.adb (Expand_N_Protected_Body,
36847 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36848 for internal protected operations if the original subprogram is
36851 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36852 declared in a single protected object.
36854 2004-02-23 Vincent Celier <celier@gnat.com>
36856 * prj-attr.adb: Make attribute Builder'Executable an associative array,
36857 case insensitive if file names are case insensitive, instead of a
36858 standard associative array.
36860 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36861 them as case insensitive on platforms where the file names are case
36864 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36865 project file has already been parsed that canonical path are compared.
36867 2004-02-23 Robert Dewar <dewar@gnat.com>
36869 * sinput-c.ads: Correct bad unit title in header
36871 * freeze.adb: Minor reformatting
36873 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36875 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36876 nonaddressable COMPONENT_REF that is removing padding that we are
36877 taking the address of, take the address of the padded record instead
36878 if item is variable size.
36880 2004-02-20 Robert Dewar <dewar@gnat.com>
36882 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36884 2004-02-20 Ed Schonberg <schonberg@gnat.com>
36886 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36887 itype references for the constrained designated type of a component
36888 whose base type is already frozen.
36890 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
36892 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36893 avoid GCC warnings.
36895 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
36897 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36898 identifier for a phantom package that rewrites the formal package
36899 declaration with a box. The Add semantic decorations for the defining
36900 identifier from the original node (that represents the formal package).
36902 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
36904 * Make-lang.in (ada/stamp-sdefault): Use the top level
36907 2004-02-19 Richard Henderson <rth@redhat.com>
36909 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36911 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
36913 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36914 Scan_ALI can be used for multiple ALI files without reinitializing
36917 2004-02-18 Robert Dewar <dewar@gnat.com>
36919 * debug.adb: Minor reformatting.
36921 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36923 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36924 to zero if there is an address clause.
36926 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
36928 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36930 2004-02-18 Gary Dismukes <dismukes@gnat.com>
36932 * layout.adb (Layout_Component_List): Revise generation of call to
36933 discriminant-checking function to pass selections of all of the type's
36934 discriminants rather than just the variant-controlling discriminant.
36936 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
36938 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36939 fail in the current setup and triggers spurious system error messages.
36940 Pretend it occurred and failed instead.
36942 2004-02-18 Vincent Celier <celier@gnat.com>
36944 * bld.adb: Mark FLDFLAGS as saved
36945 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36946 it is not the root project. Put each directory to be
36947 extended between double quotes to prevent it to be expanded on Windows.
36948 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36949 the project file. Set them back to their initial values if they have not
36950 been set in the project file.
36952 * gprcmd.adb: (Gprdebug, Debug): New global variables
36953 (Display_Command): New procedure
36954 (Usage): Document new command "linkopts"
36955 Call Display_Command when env var GPRDEBUG has the value "TRUE"
36956 Implement new command "linkopts"
36957 Remove quotes that may be around arguments for "extend"
36958 Always call Normalize_Pathname with arguments formatted for the platform
36960 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36961 Change @echo to @$(display) in target clean to be able to clean silently
36963 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36965 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36968 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36969 = Extending_All when current project is an extending all project.
36971 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36972 set to True only for LINK command, after Unix switch -o.
36973 (Process_Arguments): Set Output_File_Expected to True for LINK command
36974 after Unix switch -o. When Output_File_Expected is True, never add an
36975 extension to a file name.
36977 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36978 option file name, only to the --for-linker= switch.
36979 (Option_File_Name): If option file name do not end with ".opt", append
36982 2004-02-18 GNAT Script <nobody@gnat.com>
36984 * Make-lang.in: Makefile automatically updated
36986 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
36988 * Make-lang.in (stamp-sdefault): Do not depend on
36991 2004-02-12 Zack Weinberg <zack@codesourcery.com>
36993 * config-lang.in: Disable Ada by default until probe logic for
36994 a bootstrap Ada compiler can be moved to the top level configure
36997 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
36999 * decl.c (components_to_record): Don't claim that the internal fields
37000 we make to hold the variant parts are semantically addressable, because
37003 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
37004 adjust the comment describing the modular type form when we can use it.
37005 (Install_PAT): Account for the Esiz renaming.
37007 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
37008 sc_onstack context indication before raising the exception to which
37009 the signal is mapped. Allows better handling of later signals possibly
37010 triggered by the resumed user code if the exception is handled.
37012 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
37014 * 5zinit.adb: Removed, no longer used.
37016 2004-02-12 Robert Dewar <dewar@gnat.com>
37018 * ali.adb: Remove separating space between parameters on R line. Makes
37019 format consistent with format used by the binder for Set_Globals call.
37021 * atree.ads, atree.adb: Minor reformatting (new function header format)
37023 * bindgen.adb: Add Run-Time Globals documentation section containing
37024 detailed documentation of the globals passed from the binder file to
37027 * gnatls.adb: Minor reformatting
37029 * init.c (__gnat_set_globals): Add note pointing to documentation in
37032 * lib-writ.ads, lib-writ.adb: Remove separating space between
37033 parameters on R line.
37034 Makes format consistent with format used by the binder for Set_Globals
37037 * osint.ads: Add 2004 to copyright notice
37040 * snames.ads: Correct capitalization of FIFO_Within_Priorities
37041 Noticed during code reading, documentation issue only
37043 * usage.adb: Remove junk line for obsolete C switch
37044 Noticed during code reading
37046 2004-02-12 Vincent Celier <celier@gnat.com>
37048 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
37049 extend for each directory, so that multiple /** directories are
37050 extended individually.
37051 (Recursive_Process): Set the default for LANGUAGES to ada
37053 * gprcmd.adb: Define new command "ignore", to do nothing.
37054 Implement new comment "path".
37056 * Makefile.generic: Suppress output when SILENT is set
37057 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
37058 used, so that the correct compiler is invoked.
37059 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
37060 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
37062 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
37064 * Makefile.in: Clean ups and remove obsolete targets.
37066 2004-02-12 Ed Schonberg <schonberg@gnat.com>
37068 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
37069 predicate declared in exp_util.
37071 * exp_util.adb: Add comments.
37073 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
37074 visibility before compiling context of the subunit.
37076 * sem_res.adb (Check_Parameterless_Call): If the context expects a
37077 value but the name is a procedure, do not attempt to analyze as a call,
37078 in order to obtain more telling diagnostics.
37080 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
37081 'Access on parameterless function calls.
37082 (Normalize_Actuals): For a parameterless function call with missing
37083 actuals, defer diagnostic until resolution of enclosing call.
37085 * sem_util.adb (Wrong_Type): If the context type is an access to
37086 subprogram and the expression is a procedure name, suggest a missing
37089 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
37090 Nathanael Nerode <neroden@gcc.gnu.org>
37094 Merge with libada-branch:
37095 * config-lang.in: Build libada only when ada is built.
37097 2004-02-09 Ed Schonberg <schonberg@gnat.com>
37099 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
37100 for a tagged type, verify that both formals have the same type.
37102 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
37103 temporary when the formal is an in-parameter and the actual a possibly
37106 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
37107 when expansion is disabled, to ensure proper name capture with
37108 overloaded literals. Condition can be of any boolean type, resolve
37111 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
37112 renaming is for a formal subprogram with a default operator name, and
37113 there is a usable operator that is visible at the point of
37116 2004-02-09 Robert Dewar <dewar@gnat.com>
37118 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
37119 rewrite to ignore errors in ali files, intended to allow tools downward
37120 compatibility with new versions of ali files.
37122 * ali.ads: Add new parameter Ignore_Errors
37124 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
37125 duplicating the error message giving the file with restrictions.
37127 * debug.adb: Add debug flag I for gnatbind
37129 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
37130 operators for the case where the operator is a defining operator.
37132 * exp_ch3.adb: Minor reformatting (new function spec format).
37134 * exp_ch4.adb: Add comment for previous change, and make minor
37135 adjustment to loop to always check for improper loop termination.
37136 Minor reformatting throughout (new function spec format).
37138 * gnatbind.adb: Implement -di debug flag for gnatbind
37140 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
37142 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
37144 * lib-load.adb: Fix bad assertion.
37145 Found by testing and code reading.
37146 Minor reformatting.
37148 * lib-load.ads: Minor reformatting.
37150 * lib-writ.adb: There is only one R line now.
37152 * lib-writ.ads: Add documentation on making downward compatible changes
37153 to ali files so old tools work with new ali files.
37154 There is only one R line now.
37155 Add documentation on format incompatibilities (with special GPS note)
37157 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
37159 * par-load.adb: Minor reformatting
37161 * sem_ch8.adb: Fix to error message from last update
37162 Minor reformatting and restructuring of code from last update
37164 * par-prag.adb, snames.adb, snames.ads, snames.h,
37165 sem_prag.adb: Implement pragma Profile.
37167 * stylesw.adb: Implement -gnatyN switch to turn off all style check
37170 * usage.adb: Add line for -gnatyN switch
37172 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
37174 2004-02-09 Albert Lee <lee@gnat.com>
37176 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
37178 2004-02-09 Ed Schonberg <schonberg@gnat.com>
37180 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
37183 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
37184 is nested in an instance that is not frozen yet, to avoid
37185 order-of-elaboration problems in gigi.
37187 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
37188 body the attribute is legal.
37190 2004-02-09 Robert Dewar <dewar@gnat.com>
37192 * s-rident.ads: Minor comment correction
37194 * targparm.adb: Remove dependence on uintp completely. There was
37195 always a bug in Make in that it called Targparm before initializing
37196 the Uint package. The old code appeared to get away with this, but
37197 the new code did not! This caused an assertion error in gnatmake.
37199 * targparm.ads: Fix bad comment, restriction pragmas with parameters
37200 are indeed fully supported.
37202 2004-02-06 Alan Modra <amodra@bigpond.net.au>
37204 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
37206 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
37208 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
37209 with targetm.calls.promote_prototypes.
37211 2004-02-04 Robert Dewar <dewar@gnat.com>
37213 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
37214 ali.ads, gprcmd.adb: Minor reformatting
37216 * bindgen.adb: Output restrictions string for new style restrictions
37219 * impunit.adb: Add s-rident.ads (System.Rident) and
37220 s-restri (System.Restrictions)
37222 * lib-writ.adb: Fix bug in writing restrictions string (last few
37225 * s-restri.ads, s-restri.adb: Change name Restrictions to
37226 Run_Time_Restrictions to avoid conflict with package name.
37227 Add circuit to read and acquire run time restrictions.
37229 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
37231 * restrict.ads, restrict.adb: Use the new restriction
37232 No_Task_Attributes_Package instead of the old No_Task_Attributes.
37234 * sem_prag.adb: No_Task_Attributes is a synonym of
37235 No_Task_Attributes_Package.
37237 * snames.ads, snames.adb: New entry for proper handling of
37238 No_Task_Attributes.
37240 * s-rident.ads: Adding restriction No_Task_Attributes_Package
37241 (AI-00249) that supersedes the GNAT specific restriction
37242 No_Task_Attributes.
37244 2004-02-04 Ed Schonberg <schonberg@gnat.com>
37247 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
37248 body, an identifier may be wrapped in an unchecked conversion.
37250 2004-02-04 Vincent Celier <celier@gnat.com>
37252 * lib-writ.ads: Comment update for the W lines
37254 * bld.adb: (Expression): An empty string list is static
37256 * fname-uf.adb: Minor comment update
37258 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
37260 * gnatbind.adb: Initialize Cumulative_Restrictions with the
37261 restrictions on the target.
37263 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
37265 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
37268 2004-02-02 Arnaud Charlet <charlet@gnat.com>
37270 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
37272 2004-02-02 Vincent Celier <celier@gnat.com>
37274 * gprcmd.adb (Check_Args): If condition is false, print the invoked
37275 comment before the usage.
37276 Gprcmd: Fail when command is not recognized.
37277 (Usage): Document command "prefix"
37279 * g-md5.adb (Digest): Process last block.
37280 (Update): Do not process last block. Store remaining characters and
37283 * g-md5.ads (Update): Document that several call to update are
37284 equivalent to one call with the concatenated string.
37285 (Context): Add fields to allow new Update behaviour.
37287 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
37288 defaulted to False.
37289 When May_Fail is True and no existing file can be found, return No_File.
37291 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
37294 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
37295 spec file name instead on the W line.
37297 2004-02-02 Robert Dewar <dewar@gnat.com>
37299 * ali.adb: Read and acquire info from new format restrictions lines
37301 * bcheck.adb: Add circuits for checking restrictions with parameters
37303 * bindgen.adb: Output dummy restrictions data
37304 To be changed later
37306 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
37307 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
37308 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
37309 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
37310 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
37312 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
37313 the warning message on access to possibly uninitialized variable S)
37314 Minor changes for new restrictions handling.
37316 * gnatbind.adb: Minor reformatting
37317 Minor changes for new restrictions handling
37318 Move circuit for -r processing here from bcheck (cleaner)
37320 * gnatcmd.adb, gnatlink.adb: Minor reformatting
37322 * lib-writ.adb: Output new format restrictions lines
37324 * lib-writ.ads: Document new R format lines for new restrictions
37327 * s-restri.ads/adb: New files
37329 * Makefile.rtl: Add entry for s-restri.ads/adb
37331 * par-ch3.adb: Fix bad error messages starting with upper case letter
37334 * restrict.adb: Major rewrite throughout for new restrictions handling
37335 Major point is to handle restrictions with parameters
37337 * restrict.ads: Major changes in interface to handle restrictions with
37338 parameters. Also generally simplifies setting of restrictions.
37340 * snames.ads/adb: New entry for proper handling of No_Requeue
37342 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
37343 restriction counting.
37344 Other minor changes for new restrictions handling
37346 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
37347 Restriction_Warnings now allows full parameter notation
37348 Major rewrite of Restrictions for new restrictions handling
37350 2004-02-02 Javier Miranda <miranda@gnat.com>
37352 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
37353 syntax rule for object renaming declarations.
37354 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
37355 component definitions.
37357 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
37359 (Array_Type_Declaration): Give support to access components. In addition
37360 it was also modified to reflect the name of the object in anonymous
37361 array types. The old code did not take into account that it is possible
37362 to have an unconstrained anonymous array with an initial value.
37363 (Check_Or_Process_Discriminants): Allow access discriminant in
37365 (Process_Discriminants): Allow access discriminant in non-limited types
37366 Initialize the new Access_Definition field in N_Object_Renaming_Decl
37367 node. Change Ada0Y to Ada 0Y in comments
37369 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
37370 equality operators.
37371 Change Ada0Y to Ada 0Y in comments
37373 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
37374 renamings Change Ada0Y to Ada 0Y in comments
37376 * sem_type.adb (Find_Unique_Type): Give support to the equality
37377 operators for universal access types
37378 Change Ada0Y to Ada 0Y in comments
37380 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
37382 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
37384 (N_Object_Renaming_Declaration): Addition of Access_Definition field
37385 Change Ada0Y to Ada 0Y in comments
37387 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
37388 component definition and object renaming nodes
37389 Change Ada0Y to Ada 0Y in comments
37391 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
37393 * restrict.adb: Use the new restriction identifier
37394 No_Requeue_Statements instead of the old No_Requeue for defining the
37395 restricted profile.
37397 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
37398 No_Requeue_Statements.
37400 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
37401 that supersedes the GNAT specific restriction No_Requeue. The later is
37402 kept for backward compatibility.
37404 2004-02-02 Ed Schonberg <schonberg@gnat.com>
37406 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
37407 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
37408 pragma and fix incorrect ones.
37410 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
37411 warning if the pragma is redundant.
37413 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
37415 * 5staprop.adb: Add missing 'constant' keywords.
37417 * Makefile.in: use consistent value for SYMLIB on
37418 platforms where libaddr2line is supported.
37420 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37422 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
37425 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
37427 * init.c (__gnat_install_handler): Setup an alternate stack for signal
37428 handlers in the environment thread. This allows proper propagation of
37429 an exception on stack overflows in this thread even when the builtin
37430 ABI stack-checking scheme is used without support for a stack reserve
37433 * utils.c (create_field_decl): Augment the head comment about bitfield
37434 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
37435 here, because the former is not accurate enough at this point.
37436 Let finish_record_type decide instead.
37437 Don't make a bitfield if the field is to be addressable.
37438 Always set a size for the field if the record is packed, to ensure the
37439 checks for bitfield creation are triggered.
37440 (finish_record_type): During last pass over the fields, clear
37441 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
37442 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
37443 from DECL_BIT_FIELD.
37445 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
37447 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
37448 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
37449 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
37451 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37453 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
37455 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
37456 (ZCX_By_Default): Likewise.
37457 (Front_End_ZCX_Support): Likewise.
37459 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
37460 (Initialize_Lock): Mark Level unreferenced.
37461 (Sleep): Mark Reason unreferenced.
37462 (Timed_Sleep): Likewise.
37463 (Wakeup): Likewise.
37464 (Exit_Task): Use Result.
37465 (Check_No_Locks): Mark Self_ID unreferenced.
37467 * 5gtasinf.adb (New_Sproc): Make Attr constant.
37468 (Bound_Thread_Attributes): Make Sproc constant.
37469 (New_Bound_Thread_Attributes): Likewise.
37471 2004-01-26 Ed Schonberg <schonberg@gnat.com>
37473 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
37474 one-dimensional array an slice assignments, when component type is
37477 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
37478 component type is controlled, and control_actions are in effect, use
37479 TSS procedure rather than generating inline code.
37481 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
37482 arrays with controlled components.
37484 2004-01-26 Vincent Celier <celier@gnat.com>
37486 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
37487 command line for the non VMS case.
37489 * gnatlink.adb (Process_Binder_File): When building object file, if
37490 GNU linker is used, put all object paths between quotes, to prevent ld
37491 error when there are unusual characters (such as '!') in the paths.
37493 * Makefile.generic: When there are sources in Ada and the main is in
37494 C/C++, invoke gnatmake with -B, instead of -z.
37496 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
37497 from VMS_Conversion.
37498 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
37499 specification of argument file on the command line.
37501 2004-01-26 Bernard Banner <banner@gnat.com>
37503 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
37505 2004-01-26 Ed Schonberg <schonberg@gnat.com>
37507 * snames.adb: Update copyright notice.
37508 Add info on slice assignment for controlled arrays.
37510 2004-01-23 Robert Dewar <dewar@gnat.com>
37512 * exp_aggr.adb: Minor reformatting
37514 * exp_ch9.adb: Minor code clean up
37516 Fix bad character in comment
37519 * targparm.adb (Get_Target_Parameters): Give clean abort error on
37520 unexpected end of file, along with more detailed message.
37522 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37524 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
37527 * decl.c (copy_alias_set): New function.
37528 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
37530 2004-01-23 Doug Rupp <rupp@gnat.com>
37532 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
37533 lib$${file} in case subsequent character is not a separator.
37535 2004-01-23 Vincent Celier <celier@gnat.com>
37537 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
37538 when the GCC version is at least 3.
37540 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
37541 Remove all "Opt.", to prepare for opt split
37543 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
37544 Extends_All. Set to True when the project parsed is an extending all
37545 project. Fails for importing an extending all project only when the
37546 imported project is an extending all project.
37547 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
37548 depending on the value of Extends_All returned.
37550 * prj-proc.adb (Process): Check that no project shares its object
37551 directory with a project that extends it, directly or indirectly,
37552 including a virtual project.
37553 Check that no project extended by another project shares its object
37554 directory with another also extended project.
37556 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
37557 Kind = N_With_Clause
37559 * prj-tree.ads: Minor reformatting
37560 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
37562 2004-01-23 Ed Schonberg <schonberg@gnat.com>
37564 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
37565 applies to a type with an incomplete view, use full view in Name of
37566 clause, for consistency with uses of Get_Attribute_Definition_Clause.
37568 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
37570 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
37571 SCHED_RR, since other values are not supported by this policy.
37572 (Initialize): Move initialization of mutex attribute to package
37573 elaboration, to prevent early access to this variable.
37575 * Makefile.in: Remove mention of Makefile.adalib, unused.
37577 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37578 1ssecsta.ads: Removed, unused.
37580 2004-01-21 Javier Miranda <miranda@gnat.com>
37582 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
37583 entity if already built in the current scope.
37585 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
37586 reminder in internal scopes. Required for nested limited aggregates.
37588 2004-01-21 Doug Rupp <rupp@gnat.com>
37590 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
37591 VMS. Replace all occurences of libgnat- and libgnarl- with
37592 libgnat$(hyphen) and libgnarl$(hyphen).
37593 Fixed shared library build problem on VMS.
37595 2004-01-21 Robert Dewar <dewar@gnat.com>
37597 * mlib-prj.adb: Minor reformatting
37599 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
37601 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
37602 'constant' keywords for declaration of pointers that are not modified.
37604 * exp_pakd.adb: Fix English in comment.
37606 2004-01-21 Ed Schonberg <schonberg@gnat.com>
37609 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
37610 copy all attributes of the parent, including the foreign language
37613 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
37616 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
37617 for 'delay until' statement.
37619 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
37621 * Make-lang.in: Replace $(docdir) with doc.
37622 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
37623 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
37624 to use consistent MAKEINFO rule.
37625 (ada.man, ada.srcman): Dummy entry.
37626 (ADA_INFOFILES): Define.
37627 (ada.info, ada.srcinfo): New rules.
37629 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
37631 * utils.c: Update copyright notice, missed in previous change.
37633 2004-01-19 Vincent Celier <celier@gnat.com>
37635 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
37636 args if Bind is True. Set First_ALI, if not already done.
37637 (Build_Library): For Stand Alone Libraries, extract from one ALI file
37638 an eventual --RTS switch, for gnatbind, and all backend switches +
37639 --RTS, for linking.
37641 2004-01-19 Robert Dewar <dewar@gnat.com>
37643 * sem_attr.adb, memtrack.adb: Minor reformatting
37645 2004-01-19 Ed Schonberg <schonberg@gnat.com>
37647 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
37648 that rename enumeration literals. This is properly done in sem_eval.
37650 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
37651 to functions that rename enumeration literals.
37653 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
37654 functions that rename enumeration literals.
37656 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
37658 * Make-lang.in (utils.o): Depend on target.h.
37659 * utils.c: Include target.h.
37660 (process_attributes): Use targetm.have_named_sections instead
37661 of ASM_OUTPUT_SECTION_NAME.
37663 2004-01-16 Andreas Jaeger <aj@suse.de>
37665 * Makefile.in: Add $(DESTDIR).
37667 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
37669 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
37670 also when not defining if a Size clause applies. That information is
37673 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
37675 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
37676 symbolic links for the shared gnat run time when needed.
37678 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
37680 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
37681 for writing, and terminate with an error message if not.
37683 2004-01-15 Ed Schonberg <schonberg@gnat.com>
37685 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
37686 warning on an access to subprogram in an instance, when the target
37687 type is declared in the same generic unit.
37688 (Eval_Attribute): If 'access is known to fail accessibility check,
37689 rewrite as a raise statement.
37691 2004-01-15 GNAT Script <nobody@gnat.com>
37693 * Make-lang.in: Makefile automatically updated
37695 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
37697 * Make-lang.in (ada.srcextra): Dummy entry.
37699 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
37701 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37703 2004-01-13 Ed Schonberg <schonberg@gnat.com>
37705 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37706 components that are initialized with aggregates.
37708 2004-01-13 Vincent Celier <celier@gnat.com>
37710 * gnatlink.adb (Process_Binder_File): To find directory of shared
37711 libgcc, if "gcc-lib" is not a subdirectory, look for the last
37712 subdirectory "lib" in the path of the shared libgnat or libgnarl.
37714 * make.adb (Gnatmake): If GCC version is at least 3, link with
37715 -shared-libgcc, when there is at least one shared library project.
37717 * opt.ads (GCC_Version): New integer constant.
37719 * adaint.c (get_gcc_version): New function.
37721 2004-01-13 Robert Dewar <dewar@gnat.com>
37723 * sem_dist.adb, sem_res.adb, sem_util.adb,
37724 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37725 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37727 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
37729 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37730 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37733 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
37735 * misc.c: Remove trailing spaces.
37736 Update copyright notice missed in previous change.
37739 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37742 * Makefile.generic: Update copyright.
37743 Add license notice.
37745 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37746 of prefix/share/make.
37748 * Makefile.prolog: Update copyright.
37749 Add license notice.
37751 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
37753 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37754 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37755 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37758 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37761 2004-01-12 Javier Miranda <miranda@gnat.com>
37763 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37764 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37765 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37766 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37767 Component_Definition node.
37769 2004-01-12 Ed Falis <falis@gnat.com>
37771 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37773 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
37775 * link.c: Change default libgnat kind to STATIC for FreeBSD.
37777 2004-01-12 Bernard Banner <banner@gnat.com>
37779 * Makefile.in: map 86numaux to a-numaux for x86_64
37781 2004-01-12 Ed Schonberg <schonberg@gnat.com>
37783 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37784 generated to rename a generic actual, go to the actual itself, the
37785 subtype is not a user-visible entity.
37787 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37788 part is a private subtype, reset the visibility of its full view, if
37789 any, to be consistent.
37792 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37793 to use a generic package G as a formal package for another generic
37796 2004-01-12 Robert Dewar <dewar@gnat.com>
37798 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37800 * usage.adb: Remove mention of obsolete -gnatwb switch
37801 Noticed during code reading
37803 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
37805 * 1ssecsta.adb: Minor changes for -gnatwa warnings
37807 2004-01-12 GNAT Script <nobody@gnat.com>
37809 * Make-lang.in: Makefile automatically updated
37811 2004-01-09 Mark Mitchell <mark@codesourcery.com>
37813 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37815 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37817 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37819 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
37821 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37822 Update comment and copyright date.
37823 * stamp-xgnatug: Delete.
37825 2004-01-05 Robert Dewar <dewar@gnat.com>
37827 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37828 be modified by the binder generated main program if the -D switch is
37831 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37832 imported functions (since now we expect this to be done for imported
37835 * 5vtaprop.adb: Add several ??? for sections requiring more comments
37836 Minor reformatting throughout
37838 * 5zinit.adb: Minor reformatting
37839 Add 2004 to copyright date
37840 Minor changes to avoid -gnatwa warnings
37841 Correct some instances of using OR instead of OR ELSE (noted while
37842 doing reformatting)
37844 * sprint.adb: Minor updates to avoid -gnatwa warnings
37846 * s-secsta.ads, s-secsta.adb:
37847 (SS_Get_Max): New function to obtain high water mark for ss stack
37848 Default_Secondary_Stack is not a constant since it may be modified by
37849 the binder generated main program if the -D switch is used.
37851 * switch-b.adb: New -Dnnn switch for binder
37854 Make -gnatg imply all warnings currently in -gnatwa
37856 * vms_conv.adb: Minor reformatting
37857 Add 2004 to copyright notice
37858 Add 2004 to printed copyright notice
37860 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37861 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37862 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37863 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37864 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37865 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37866 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37867 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37868 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37869 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37870 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37871 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37872 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37873 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37874 checks.adb, clean.adb, cstand.adb, einfo.ads,
37875 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37876 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37877 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37878 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37879 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37880 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37881 Minor reformatting and code clean ups.
37882 Minor changes to prevent -gnatwa warnings
37884 * ali.adb: Minor reformatting and cleanup of code
37885 Acquire new SS indication of secondary stack use from ali files
37887 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37888 (since now we expect this to be done for imported functions)
37890 * bindgen.adb: Generate call to modify default secondary stack size if
37893 * bindusg.adb: Add line for new -D switch
37895 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37896 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37897 Add circuitry for both records and arrays to avoid gigi
37898 processing if the type involved has non-bit-aligned components
37900 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37901 N_String_Literal node always references an E_String_Literal_Subtype
37902 entity. This may not be true in the future.
37903 (Possible_Bit_Aligned_Component): Move processing of
37904 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37906 * exp_ch6.adb (Expand_Thread_Body): Pick up
37907 Default_Secondary_Stack_Size as variable so that we get value modified
37908 by possible -Dnnn binder parameter.
37910 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37911 (Type_May_Have_Bit_Aligned_Components): New function.
37913 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37914 (Type_May_Have_Bit_Aligned_Components): New function.
37916 * fe.h: (Set_Identifier_Casing): Fix prototype.
37917 Add declaration for Sem_Elim.Eliminate_Error_Msg.
37918 Minor reformatting.
37920 * freeze.adb (Freeze_Entity): Add RM reference to error message about
37921 importing constant atomic/volatile objects.
37922 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37923 unless explicit Pure_Function pragma given, to avoid insidious bug of
37924 call to non-pure imported function getting eliminated.
37926 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37927 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37928 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37929 Add 2004 to printed copyright notice
37931 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37934 * Makefile.rtl: Add entry for g-sestin.o
37935 g-sestin.ads: New file.
37937 * mdll.adb: Minor changes to avoid -gnatwa warnings
37939 * mlib-tgt.adb: Minor reformatting
37941 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37942 New switch Sec_Stack_Used (GNAT, GNATBIND)
37943 Make Default_Secondary_Stack_Size a variable instead of a constant,
37944 so that it can be modified by the new -Dnnn bind switch.
37946 * rtsfind.adb (Load_Fail): Give full error message in configurable
37947 run-time mode if all_errors mode is set. This was not done in the case
37948 of a file not found, which was an oversight.
37949 Note if secondary stack unit is used by compiler.
37951 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37952 ineffective elaborate all pragmas on non-visible packages (this
37953 happened when a renamed subprogram was called). Now the elaborate all
37954 always goes on the package containing the renaming rather than the one
37955 containing the renamed subprogram.
37957 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37958 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37960 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37961 has an Etype that references an E_String_Literal.
37962 (Eval_String_Literal): Avoid assumption that N_String_Literal node
37963 always references an E_String_Literal_Subtype entity. This may not
37964 be true in the future.
37966 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37969 * sem_res.adb (Resolve): Specialize msg for function name used in proc
37972 2004-01-05 Ed Falis <falis@gnat.com>
37974 * g-debuti.adb: Replaced direct boolean operator with short-circuit
37977 2004-01-05 Vincent Celier <celier@gnat.com>
37979 * bld.adb: Minor comment updates
37980 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37983 * make.adb (Gnatmake): Special process for files to compile/check when
37984 -B is specified. Fail when there are only foreign mains in attribute
37985 Main of the project file and -B is not specified. Do not skip bind/link
37986 steps when -B is specified.
37988 * makeusg.adb: Document new switch -B
37990 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37992 * switch-m.adb: (Scan_Make_Switches): Process -B switch
37994 * vms_data.ads: Add new GNAT PRETTY qualifier
37995 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37997 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37999 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
38002 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
38003 Set_Identifier_Casing.
38005 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
38006 has size that overflows.
38008 2004-01-05 Gary Dismukes <dismukes@gnat.com>
38010 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
38011 -gnatwa warning on static condition.
38013 2004-01-05 Doug Rupp <rupp@gnat.com>
38015 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
38017 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
38019 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
38020 all attributes, including read-only attribute.
38022 2004-01-05 Pascal Obry <obry@gnat.com>
38024 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
38025 library naming scheme.
38027 * mlib-prj.adb (Build_Library): Generate different names for the static
38028 or dynamic version of the GNAT runtime. This is needed to support the
38029 new shared library naming scheme.
38030 (Process_Binder_File): Add detection of shared library in binder file
38031 based on the new naming scheme.
38033 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
38034 scheme for the shared runtime libraries.
38037 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
38039 (install-gnatlib): Do not create symlinks for shared libraries.
38040 (gnatlib-shared-default): Idem.
38041 (gnatlib-shared-dual-win32): New target. Not used for now as the
38042 auto-import feature does not support arrays/records.
38043 (gnatlib-shared-win32): Do not create copy for the shared libraries.
38044 (gnatlib-shared-vms): Fix shared runtime libraries names.
38046 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
38047 dependent runtime shared library name.
38049 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
38051 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
38054 2004-01-05 Ed Schonberg <schonberg@gnat.com>
38056 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
38057 protected objects when allocator has a subtype indication, not a
38058 qualified expression. Note that qualified expressions may have to be
38059 checked when limited aggregates are implemented.
38061 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
38062 pure, emit warning.
38063 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
38064 subprogram is imported, remove warning.
38066 2004-01-05 Geert Bosch <bosch@gnat.com>
38068 * s-poosiz.adb: Update copyright notice.
38069 (Allocate): Use Task_Lock to protect against concurrent access.
38070 (Deallocate): Likewise.
38072 2004-01-05 Joel Brobecker <brobecker@gnat.com>
38074 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
38077 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
38079 * gnat_ug.texi: Force a CVS commit by updating copyright.
38080 * gnat_ug_vxw.texi: Regenerate.
38081 * gnat_ug_wnt.texi: Regenerate.
38082 * gnat_ug_vms.texi: Regenerate.
38083 * gnat_ug_unx.texi: Regenerate.
38085 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
38087 * trans.c: Remove uses of "register" specifier in
38088 declarations of local variables.
38090 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
38092 * stamp-xgnatug: New stamp file.
38093 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
38094 (ada/doctools/xgnatug): Add $(build_exeext).
38095 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
38096 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
38098 2003-12-17 Ed Falis <falis@gnat.com>
38100 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
38103 * a-exextr.adb: Add context clause for
38104 Ada.Exceptions.Last_Chance_Handler.
38106 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
38108 * cstand.adb (Create_Standard): Change the way how the declaration of
38109 the Duration type is created (making it the same way as it is for all
38110 the other standard types).
38112 2003-12-17 Robert Dewar <dewar@gnat.com>
38114 * s-crtl.ads: Fix header format
38115 Change Pure to Preelaborate
38117 2003-12-17 Ed Schonberg <schonberg@gnat.com>
38119 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
38120 the expression type only if it is declared in the current unit.
38122 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
38123 are universal and already analyzed, as can occur in constrained
38124 subcomponents that depend on discriminants, when one constraint is a
38127 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
38128 type Any_Fixed is legal as the argument of a conversion, if only one
38129 fixed-point type is in context.
38131 2003-12-17 GNAT Script <nobody@gnat.com>
38133 * Make-lang.in: Makefile automatically updated
38135 2003-12-15 Robert Dewar <dewar@gnat.com>
38137 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
38140 2003-12-15 Vincent Celier <celier@gnat.com>
38142 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
38143 (Gnatchop): Do not set failure status when reporting the number of
38146 2003-12-15 Doug Rupp <rupp@gnat.com>
38148 * s-ctrl.ads: New file.
38150 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
38152 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
38153 (GNATBIND_OBJS): Add ada/s-crtl.o.
38155 * Makefile.in [VMS]: Clean up ifeq rules.
38157 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
38158 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
38159 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
38160 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
38161 s-tasdeb.adb: Update copyright.
38162 Import System.CRTL.
38163 Make minor modifications to use System.CRTL declared functions instead
38164 of importing locally.
38166 2003-12-15 GNAT Script <nobody@gnat.com>
38168 * Make-lang.in: Makefile automatically updated
38170 2003-12-11 Ed Falis <falis@gnat.com>
38172 * 5zinit.adb: Clean up.
38174 * 5zintman.adb (Notify_Exception): replaced case statement with a call
38175 to __gnat_map_signal, imported from init.c to support
38176 signal -> exception mappings that depend on the vxWorks version.
38179 Created and exported __gnat_map_signal to support signal -> exception
38180 mapping that is dependent on the VxWorks version.
38181 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
38183 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
38185 * 5wosinte.ads: Link with -mthreads switch.
38187 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
38189 * init.c (__gnat_install_handler [NetBSD]): Set
38190 __gnat_handler_installed, as done on all other platforms.
38191 Remove duplicated code.
38193 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
38195 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
38197 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
38199 * sinfo.ads: Fix inconsistent example code in comment.
38201 2003-12-11 Robert Dewar <dewar@gnat.com>
38203 * a-tiinau.adb: Add a couple of comments
38205 * sem_ch3.adb: Minor reformatting
38208 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
38209 Minor reformatting throughout
38211 2003-12-11 Ed Schonberg <schonberg@gnat.com>
38213 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
38214 bounds of a loop, create a separate block in order to generate proper
38215 cleanup actions to prevent memory leaks.
38217 * sem_res.adb (Resolve_Call): After a call to
38218 Establish_Transient_Scope, the call may be rewritten and relocated, in
38219 which case no further processing is needed.
38221 * sem_util.adb: (Wrong_Type): Refine previous fix.
38222 Fixes ACATS regressions.
38225 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
38228 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
38230 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
38231 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
38234 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
38237 2003-12-08 Robert Dewar <dewar@gnat.com>
38239 * 7sintman.adb: Minor reformatting
38241 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
38242 standard linker options to get standard libraries linked. We now plan
38243 to provide dummy versions of these libraries to match the appropriate
38244 configurable run-time (e.g. if a library is not needed at all, provide
38245 a dummy empty library).
38247 * targparm.ads: Configurable_Run_Time mode no longer affects linker
38248 options (-L parameters and standard libraries). What we plan to do is
38249 to provide dummy libraries where the libraries are not required.
38251 * gnatbind.adb: Minor comment improvement
38253 2003-12-08 Javier Miranda <miranda@gnat.com>
38255 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
38256 aggregate in the parent. Otherwise constants with limited aggregates
38257 are not supported. Add new formal to pass the component type (Ctype).
38258 It is required to call the corresponding IP subprogram in case of
38259 default initialized components.
38260 (Gen_Assign): In case of default-initialized component, generate a
38261 call to the IP subprogram associated with the component.
38262 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
38263 of aggregate with default initialized components.
38264 (Has_Default_Init_Comps): Improve implementation to recursively check
38265 all the present expressions.
38267 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
38268 to indicate that the initialization call corresponds to a
38269 default-initialized component of an aggregate.
38270 In case of default initialized aggregate with tasks this parameter is
38271 used to generate a null string (this is just a workaround that must be
38272 improved later). In case of discriminants, this parameter is used to
38273 generate a selected component node that gives access to the discriminant
38276 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
38277 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
38278 allocated aggregates with default-initialized components.
38280 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
38281 the box notation is used in positional aggregates.
38283 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
38285 * lib.ads: Fix typo in comment
38287 2003-12-08 Vincent Celier <celier@gnat.com>
38289 * prj.adb (Project_Empty): New component Unkept_Comments
38290 (Scan): Remove procedure; moved to Prj.Err.
38292 * prj.ads (Project_Data): New Boolean component Unkept_Comments
38293 (Scan): Remove procedure; moved to Prj.Err.
38295 * prj-dect.adb: Manage comments for the different declarations.
38297 * prj-part.adb (With_Record): New component Node
38298 (Parse): New Boolean parameter Store_Comments, defaulted to False.
38299 Set the scanner to return ends of line and comments as tokens, if
38300 Store_Comments is True.
38301 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
38302 comments are associated with these nodes. Store the node IDs in the
38304 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
38306 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
38307 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
38308 current project. Call Tree.Restore afterwards. Set the various nodes
38309 for comment storage (Next_End, End_Of_Line, Previous_Line,
38312 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
38313 defaulted to False.
38315 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
38316 to False. When Truncated is True, truncate the string, never go to the
38318 (Write_End_Of_Line_Comment): New procedure
38319 (Print): Process comments for nodes N_With_Clause,
38320 N_Package_Declaration, N_String_Type_Declaration,
38321 N_Attribute_Declaration, N_Typed_Variable_Declaration,
38322 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
38323 Process nodes N_Comment.
38325 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
38326 without comments and there are some comments, set the flag
38327 Unkept_Comments to True.
38328 (Scan): If there are comments, set the flag Unkept_Comments to True and
38329 clear the comments.
38330 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
38331 (Next_End_Nodes: New table
38332 (Comment_Zones_Of): New function
38333 (Scan): New procedure; moved from Prj. Accumulate comments in the
38334 Comments table and set end of line comments, comments after, after end
38336 (Add_Comments): New procedure
38337 (Save, Restore, Seset_State): New procedures
38338 (There_Are_Unkept_Comments): New function
38339 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
38340 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
38342 (First_Comment_After, First_Comment_After_End): New functions
38343 (First_Comment_Before, First_Comment_Before_End): New functions
38344 (Next_Comment): New function
38345 (End_Of_Line_Comment, Follows_Empty_Line,
38346 Is_Followed_By_Empty_Line): New functions
38347 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
38348 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
38349 (Set_Next_Comment): New procedure
38350 (Default_Project_Node): Associate comment before if the node can store
38353 * scans.ads (Token_Type): New enumeration value Tok_Comment
38354 (Comment_Id): New global variable
38356 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
38357 defaulted to False.
38358 (Scan): Store position of start of comment. If comments are tokens, set
38359 Comment_Id and set Token to Tok_Comment when scanning a comment.
38360 (Set_Comment_As_Token): New procedure
38362 * sinput-p.adb: Update Copyright notice
38363 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
38364 that no longer exists.
38366 2003-12-08 Javier Miranda <miranda@gnat.com>
38368 * sem_aggr.adb: Add dependence on Exp_Tss package
38369 Correct typo in comment
38370 (Resolve_Aggregate): In case of array aggregates set the estimated
38371 type of the aggregate before calling resolve. This is needed to know
38372 the name of the corresponding IP in case of limited array aggregates.
38373 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
38374 in case of default initialized array components.
38376 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
38377 types. Required to give support to limited aggregates in generic
38380 2003-12-08 Ed Schonberg <schonberg@gnat.com>
38382 * sem_ch3.adb (Check_Initialization): For legality purposes, an
38383 inlined body functions like an instantiation.
38384 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
38385 until bounds are analyzed, to diagnose premature use of type.
38387 * sem_util.adb (Wrong_Type): Improve error message when the type of
38388 the expression is used prematurely.
38390 2003-12-08 GNAT Script <nobody@gnat.com>
38392 * Make-lang.in: Makefile automatically updated
38394 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
38396 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
38397 they are automatically generated by Make-lang.in and cause nothing but
38398 maintenance troubles.
38400 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
38402 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
38403 version of this unit).
38405 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
38407 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
38408 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
38409 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
38410 the body of System.Interrupt_Management common to several targets.
38411 Update copyright notice when appropriate.
38413 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
38416 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
38417 to ensure that the kernel fills in the interrupted context structure
38418 before calling a signal handler, which is necessary to be able to
38419 unwind past it. Update the copyright notice.
38421 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
38423 * a-elchha.ads: New file.
38425 * a-elchha.adb: New default last chance handler. Contents taken from
38426 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
38428 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
38429 is moved to a-elchha.adb to provide a target-independent default last
38432 * Makefile.rtl: Add a-elchha.o
38434 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
38436 2003-12-05 Ed Schonberg <schonberg@gnat.com>
38438 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
38439 declared in an instance, do not inline the call if the instance is not
38440 frozen yet, to prevent order of elaboration problems.
38442 * sem_prag.adb: Add comments for previous fix.
38444 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
38446 * g-table.adb: Use the right variable in Set_Item.
38447 Update copyright notice.
38449 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
38451 * Makefile.in: Remove unused rules.
38453 2003-12-05 Vincent Celier <celier@gnat.com>
38455 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
38456 -nostdlib. Not needed here after all.
38458 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
38461 * adaint.h, adaint.c, g-os_lib.ads:
38462 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
38463 on some platforms (including FreeBSD), it is a 64 bit value.
38464 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
38466 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
38468 * gnatvsn.ads (Library_Version): Now contain only the relevant
38470 (Verbose_Library_Version): New constant.
38472 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
38473 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
38474 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
38476 * gnatlbr.adb: Clean up: replace Library_Version by
38477 Verbose_Library_Version.
38479 * make.adb, lib-writ.adb, exp_attr.adb:
38480 Clean up: replace Library_Version by Verbose_Library_Version.
38482 * 5lintman.adb: Removed.
38485 Update and simplify computation of LIBRARY_VERSION.
38486 Fix computation of GSMATCH_VERSION.
38487 5lintman.adb is no longer used: replaced by 7sintman.adb.
38489 2003-12-03 Robert Dewar <dewar@gnat.com>
38492 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
38493 name. Modified to consider small non-bit-packed arrays as troublesome
38494 and in need of component-by-component assigment expansion.
38496 2003-12-03 Vincent Celier <celier@gnat.com>
38498 * lang-specs.h: Process nostdlib as nostdinc
38500 * back_end.adb: Update Copyright notice
38501 (Scan_Compiler_Arguments): Process -nostdlib directly.
38503 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
38506 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
38507 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
38508 included in HIE_NONE_TARGET_PAIRS.
38510 2003-12-03 Ed Schonberg <schonberg@gnat.com>
38513 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
38514 is legal in an instance, because legality is cheched in the template.
38517 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
38518 appplied to an unchecked conversion of a formal parameter.
38521 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
38524 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
38526 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
38527 routines. The second one is new functionality to deal with backtracing
38528 through signal handlers.
38529 (unwind): Split into the two separate subroutines above.
38530 Update the documentation, and deal properly with sizeof (REG) different
38531 from sizeof (void*).
38533 2003-12-01 Nicolas Setton <setton@act-europe.fr>
38535 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
38536 so that the debugger can reliably access the value of the parameter,
38537 and therefore is able to display the exception name when an exception
38538 breakpoint is reached.
38540 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
38542 * fmap.adb: Fix typo in warning message.
38544 * g-socket.ads, g-socket.adb: Make Free a visible instance of
38545 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
38547 2003-12-01 Vincent Celier <celier@gnat.com>
38549 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
38551 (Build_Library): Get the switches only if Default_Switches is declared
38554 2003-12-01 Ed Schonberg <schonberg@gnat.com>
38556 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
38557 actuals that are indexed components, reanalyze actual to ensure that
38558 packed array references are properly expanded.
38560 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
38561 attempted assignment to a discriminant.
38563 2003-12-01 Robert Dewar <dewar@gnat.com>
38565 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
38568 * switch-c.adb: Minor reformatting of comments
38570 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38572 * Makefile.in: Clean ups.
38574 2003-12-01 GNAT Script <nobody@gnat.com>
38576 * Make-lang.in: Makefile automatically updated
38578 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38580 * 5wsystem.ads: Disable zero cost exception, not ready yet.
38582 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
38584 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
38585 to force serialization.
38587 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
38589 * g-socket.ads, g-socket.adb:
38590 Clarify documentation of function Stream. Introduce a Free procedure
38591 to release the returned Stream once it becomes unused.
38593 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
38595 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
38597 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
38598 since NT 4 cannot handle timeout values that are too large,
38599 e.g. DWORD'Last - 1.
38601 2003-11-26 Ed Schonberg <schonberg@gnat.com>
38604 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
38605 in procedure calls and whose expansion must be deferred.
38607 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
38611 (Build_Derived_Array_Type): Create operator for unconstrained type
38612 if ancestor is unconstrained.
38614 2003-11-26 Vincent Celier <celier@gnat.com>
38616 * make.adb (Project_Object_Directory): New global variable
38617 (Change_To_Object_Directory): New procedure
38618 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
38619 of Change_Dir directly. Do not change working directory to object
38620 directory of main project after each compilation.
38621 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
38623 Change to object directory of main project before binding step.
38624 (Initialize): Initialize Project_Object_Directory to No_Project
38627 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
38628 binding a Stand-Alone Library.
38630 * output.adb: Update Copyright notice
38631 (Write_Char): Output buffer when full
38633 2003-11-26 Robert Dewar <dewar@gnat.com>
38635 * sem_ch13.adb: (Check_Size): Reset size if size is too small
38638 (Check_Size): Fix documentation to include bit-packed array case
38640 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
38642 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
38644 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
38646 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
38649 * utils.c (init_gigi_decls): Change name of built-in setjmp to
38650 __builtin_setjmp, since this is apparently needed by recent
38653 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38655 * adadecode.c: Only include ctype.h if not IN_GCC.
38656 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
38658 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
38661 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
38662 signals and interrupts.
38664 * 5zintman.ads: New File.
38666 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
38667 add exception signals to the set of unmasked signals.
38670 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
38671 between signals and interrupts.
38672 Add to Unblocked_Signal_Mask the set of signals that are in
38676 Adding a check to see whether the Interrupt_ID we want to unmask is in
38677 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
38678 reason is that the index type of the Keep_Unmasked array is not always
38679 Interrupt_ID; it may be a subtype of Interrupt_ID.
38681 2003-11-24 Gary Dismukes <dismukes@gnat.com>
38684 (Remove_Side_Effects): Condition constantness of object created for a
38685 an unchecked type conversion on the constantness of the expression
38686 to ensure the correct value for 'Constrained when passing components
38687 of view-converted class-wide objects.
38689 2003-11-24 Robert Dewar <dewar@gnat.com>
38691 * par-load.adb (Load): Improve handling of misspelled and missing units
38692 Removes several cases of compilation abandoned messages
38694 * lib.adb: (Remove_Unit): New procedure
38696 * lib.ads: (Remove_Unit): New procedure
38698 * lib-load.adb: Minor reformatting
38700 2003-11-24 Vincent Celier <celier@gnat.com>
38703 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38704 (Marking_Label): Label to mark processed source files. Incremented for
38706 (Gnatmake): Increase Marking_Labet for each executable
38707 (Is_Marked): Compare against marking label
38708 (Mark): Mark with marking label
38710 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
38713 Move the declaration of the TSD for System.Threads to System.Soft_Links.
38716 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38717 (rts-cert): build a single relocatable object for the run-time lib.
38720 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
38723 Use gnatls rather than gcc to obtain the location of GNAT RTL for
38726 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
38728 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38729 can not use it as before (that is, as a variable) when dumping it into
38730 the tree file. Add a local variable to store the result of this
38731 function and to be used as the string to be written into the tree.
38733 * scn.adb (Initialize_Scanner): Add comments explaining the recent
38736 * sinput.adb (Source_First, Source_Last): In case of
38737 Internal_Source_File, replace returning attributes of
38738 Internal_Source_Ptr (which is wrong) with returning attributes of
38741 2003-11-24 Ed Schonberg <schonberg@gnat.com>
38744 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38745 used for implicit concatenation operators.
38749 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38750 task bodies that are in the scope of a Suppress pragma.
38751 (Check_A Call): Use the flag to prevent spurious elaboration checks.
38753 * sinfo.ads, sinfo.adb:
38754 New flag No_Elaboration_Check on function/procedure calls, to properly
38755 suppress checks on calls in task bodies that are within a local suppress
38759 (Expand_Concatenate_Other): Use the proper integer type for the
38760 expression for the upper bound, to avoid universal_integer computations
38763 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
38765 * .cvsignore: Delete.
38767 2003-11-21 Andreas Schwab <schwab@suse.de>
38769 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38771 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
38773 * 5wsystem.ads: Enable zero cost exception.
38775 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
38777 * 5ztiitho.adb: Remove an unreferenced variable.
38779 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
38781 * adaint.c: For FreeBSD, use mkstemp.
38783 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
38785 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38787 2003-11-21 Robert Dewar <dewar@gnat.com>
38789 * bld.adb: Remove useless USE of gnatvsn
38791 * gnatchop.adb: Minor reformatting
38792 Clean up version handling to be more consistent
38794 * gnatxref.adb: Minor reformatting
38796 * gprcmd.adb: Minor reformatting
38797 Fix output of copyright to be more consistent with other tools
38799 2003-11-21 Vincent Celier <celier@gnat.com>
38801 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38803 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
38805 * atree.adb (Initialize): Add initializations for global variables
38806 used in New_Copy_Tree.
38808 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38809 Internal_Source_File as the actual).
38810 Put the set of statements creating Any_Character before the set of
38811 statements creating Any_Array to have Any_Character fully initialized
38812 when it is used in creating Any_Array.
38814 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38815 not call Scan in case if the actual is Internal_Source_File
38816 Add 2003 to copyright note.
38818 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38819 processing Internal_Source_File.
38821 * types.ads: Add the constant Internal_Source_File representing the
38822 source buffer for artificial source-code-like strings created within
38823 the compiler (the definition of Source_File_Index is changed).
38825 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
38827 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38828 56system.ads: New file, FreeBSD version.
38830 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
38832 * Make-lang.in (ada.extraclean): Delete.
38834 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
38836 * gnatmem.adb: Clean up verbose output.
38838 * gprcmd.adb: Change copyright to FSF.
38840 2003-11-19 Vincent Celier <celier@gnat.com>
38842 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38843 and Version (ignored).
38845 * symbols.ads: (Policy): New type
38846 (Initialize): New parameter Reference, Symbol_Policy and
38848 Remove parameter Force.
38849 Minor reformatting.
38851 * snames.ads, snames.adbadb: New standard names
38852 Library_Reference_Symbol_File and Library_Symbol_Policy
38855 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38859 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38861 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38863 * prj.adb: (Project_Empty): New component Symbol_Data
38865 * prj.ads: (Policy, Symbol_Record): New types
38866 (Project_Data): New component Symbol_Data
38869 New attributes Library_Symbol_File, Library_Symbol_Policy and
38870 Library_Reference_Symbol_File.
38873 (Ada_Check): When project is a Stand-Alone library project, process
38874 attribute Library_Symbol_File, Library_Symbol_Policy and
38875 Library_Reference_Symbol_File.
38877 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38878 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38879 5sml-tgt.adb (Build_Dynamic_Library): New parameter
38880 Symbol_Data (ignored).
38882 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38883 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38884 functions Option_File_Name and Version_String. Set new options of
38885 gnatsym related to symbol file, symbol policy and reference symbol
38889 Extensive modifications to take into account the reference symbol file,
38890 the symbol policy, the library version and to put in the symbol file the
38891 minor and major IDs.
38893 * bld.adb (Process_Declarative_Items): Put second argument of
38894 gprcmd to_absolute between single quotes, to avoid problems with
38897 * bld-io.adb: Update Copyright notice.
38898 (Flush): Remove last character of a line, if it is a back slash, to
38899 avoid make problems.
38902 Implement new scheme with reference symbol file and symbol policy.
38904 * g-os_lib.ads: (Is_Directory): Clarify comment
38906 2003-11-19 Robert Dewar <dewar@gnat.com>
38908 * atree.adb: Move New_Copy_Tree global variables to head of package
38910 * errout.adb: Minor reformatting
38912 2003-11-19 Javier Miranda <miranda@gnat.com>
38914 * sem_ch4.adb: (Diagnose_Call): Improve error message.
38915 Add reference to Ada0Y (AI-50217)
38917 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38918 sem_util.adb: Add reference to AI-50217
38920 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38922 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38924 * sem_aggr.adb: Complete documentation of AI-287 changes
38926 * par-ch4.adb: Document previous changes.
38928 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38929 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38932 * exp_aggr.adb: Add references to AI-287 in previous changes
38934 2003-11-19 Ed Schonberg <schonberg@gnat.com>
38937 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38938 in the rewriting is the result of an inlined call.
38940 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38941 parameter is a type conversion, use original node to construct the
38942 post-call assignment, because expression may have been rewritten, e.g.
38943 if it is a packed array.
38946 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38947 body, just as it is in an instance.
38948 Categorization routines
38950 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38951 Instantiate_Object): Set proper sloc reference for message on missing
38954 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
38956 * Makefile.in: Add FreeBSD libgnat pairs.
38958 * usage.adb: Fix typo in usage message.
38960 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
38962 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38963 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38964 pragma Thread_Body.
38965 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38967 * s-thread.adb: This file is now a dummy implementation of
38970 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
38972 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38974 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
38976 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38977 instanciation references in the parent type description.
38979 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38981 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38983 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38984 TYPE_PRECISION directly from esize.
38986 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
38989 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38991 * init.c: Initialization routines for FreeBSD
38993 * link.c: Link info for FreeBSD
38995 * sysdep.c: Add the case of FreeBSD
38997 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
38999 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
39000 already called in System.Threads.
39002 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
39003 environment task, as it has been moved to System.Threads.Initialization.
39005 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
39007 * adaint.c (__gnatlib_install_locks): Only reference
39008 __gnat_install_locks on VMS, since other platforms can avoid using
39009 --enable-threads=gnat
39011 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39013 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
39015 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
39016 TYPE_PACKED_ARRAY_TYPE_P.
39017 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
39019 Part of PR ada/12806
39020 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
39021 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
39023 2003-11-17 Vincent Celier <celier@gnat.com>
39025 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
39027 Do not set exit status to Failure when Warning is True.
39028 (Gnatchop): Make errors "no compilation units found" and
39029 "no source files written" warnings only.
39031 * make.adb (Gnatmake): When using a project file, set
39032 Look_In_Primary_Dir to False.
39033 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
39034 and Local_Configuration_Pragmas in the project where they are declared
39035 not an extending project which might have inherited them.
39037 * osint.adb (Locate_File): If Name is already an absolute path, do not
39038 look for a directory.
39040 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
39041 -gnats (Check_Syntax) is used, issue only a warning, not an error.
39043 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
39044 in objects of type Variable_Value.
39046 * prj.ads: (Variable_Value): New component Project
39048 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
39049 is in a project extended by Project.
39051 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
39052 Project of Variable_Values to this new parameter value.
39053 (Expression): Set component Project of Variable_Values.
39054 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
39055 Set the component Project in array elements.
39057 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
39059 * errout.adb: (Initialize): Add initialization for error nodes.
39061 * sem_ch12.adb (Initialize): Add missing initializations for
39062 Exchanged_Views and Hidden_Entities.
39064 2003-11-17 Ed Schonberg <schonberg@gnat.com>
39066 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
39067 already instantiated tree for use in subsequent inlining.
39068 (Analyze_Associations, Instantiate_Formal_Subprogram,
39069 Instantiate_Object): improve error message for mismatch in
39072 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
39073 instantiations of subprograms declared in instances.
39075 2003-11-17 Javier Miranda <miranda@gnat.com>
39077 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
39078 executed only under the Extensions_Allowed flag.
39080 2003-11-17 Robert Dewar <dewar@gnat.com>
39082 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
39084 (Address_Image): Fix bug of returning 0x instead of 0x0
39085 Minor reformatting (function specs).
39087 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
39088 (missed case of 33-63)
39090 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
39092 * s-thread.adb: Add comments for pragma Restriction
39094 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
39095 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
39097 2003-11-17 Ed Falis <falis@gnat.com>
39099 * s-thread.adb: Added No_Tasking restriction for this implementation.
39101 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
39103 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
39104 instanciation references in the parent type description.
39106 2003-11-17 GNAT Script <nobody@gnat.com>
39108 * Make-lang.in: Makefile automatically updated
39110 2003-11-16 Jason Merrill <jason@redhat.com>
39112 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
39113 and TAGS files that include them for each front end.
39115 2003-11-14 Andreas Jaeger <aj@suse.de>
39117 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
39118 is the canonical version.
39119 * misc.c (gnat_handle_option): Likewise.
39121 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
39123 * 5nsystem.ads: New file for x86_64-linux-gnu.
39125 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
39127 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
39129 * comperr.adb: Fix logic in previous change.
39131 2003-11-13 Vincent Celier <celier@gnat.com>
39133 * 5bml-tgt.adb (Build_Dynamic_Library): Use
39134 Osint.Include_Dir_Default_Prefix instead of
39135 Sdefault.Include_Dir_Default_Name.
39137 * gnatlbr.adb: Update Copyright notice
39138 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
39139 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
39140 instead of Sdefault.Object_Dir_Default_Name
39143 (Process_Binder_File): Never suppress the option following -Xlinker
39146 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
39147 Sdefault.Object_Dir_Default_Name.
39149 * osint.ads, osint.adb:
39150 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
39151 Minor reformatting.
39153 * vms_conv.ads: Minor reformating
39154 Remove GNAT STANDARD and GNAT PSTA
39157 Allow GNAT MAKE to have several files on the command line.
39158 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
39159 Sdefault.Object_Dir_Default_Name.
39161 Remove data for GNAT STANDARD
39164 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
39165 Remove data for GNAT STANDARD
39166 Remove options and documentation for -gnatwb/-gnatwB: these warning
39167 options no longer exist.
39169 2003-11-13 Ed Falis <falis@gnat.com>
39171 * 5zthrini.adb: (Init_RTS): Made visible
39174 (Register): Removed unnecessary call to taskVarGet that checked whether
39175 an ATSD was already set as a task var for the argument thread.
39178 Updated comment to reflect that this is a VxWorks version
39179 Added context clause for System.Threads.Initialization
39180 Added call to System.Threads.Initialization.Init_RTS
39182 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
39185 (Init_RTS): New procedure, for the initialization of the run-time lib.
39188 Remove dependancy on System.Init, so that this file can be used in the
39189 AE653 sequential run-time lib.
39191 2003-11-13 Robert Dewar <dewar@gnat.com>
39193 * bindgen.adb: Minor reformatting
39195 2003-11-13 Ed Schonberg <schonberg@gnat.com>
39198 (Apply_Discriminant_Check): Do no apply check if target type is derived
39199 from source type with no applicable constraint.
39202 (Ensure_System_Dependency): Do not apply the style checks that may have
39203 been specified for the main unit.
39206 (Find_Selected_Component): Further improvement in error message, with
39210 (Resolve): Handle properly the case of an illegal overloaded protected
39213 2003-11-13 Javier Miranda <miranda@gnat.com>
39216 (Has_Default_Init_Comps): New function to check the presence of
39217 default initialization in an aggregate.
39218 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
39219 extension aggregate of a limited record. In addition, a new formal
39220 was added to do not initialize the record controller (if any) during
39221 this recursive expansion of ancestors.
39222 (Init_Controller): Add support for limited record components.
39223 (Expand_Record_Aggregate): In case of default initialized components
39224 convert the aggregate into a set of assignments.
39226 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
39227 describing the new syntax.
39228 Nothing else needed to be done because this subprogram delegates part of
39229 its work to P_Precord_Or_Array_Component_Association.
39230 (P_Record_Or_Array_Component_Association): Give support to the new
39231 syntax for default initialization of components.
39234 (Resolve_Aggregate): Relax the strictness of the frontend in case of
39235 limited aggregates.
39236 (Resolve_Record_Aggregate): Give support to default initialized
39238 (Get_Value): In case of default initialized components, duplicate
39239 the corresponding default expression (from the record type
39240 declaration). In case of default initialization in the *others*
39241 choice, do not check that all components have the same type.
39242 (Resolve_Extension_Aggregate): Give support to limited extension
39246 (Check_Initialization): Relax the strictness of the front-end in case
39247 of aggregate and extension aggregates. This test is now done in
39248 Get_Value in a per-component manner.
39250 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
39251 expression corresponds to a limited aggregate. This test is now done
39254 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
39257 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
39258 present in an N_Component_Association node
39260 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
39262 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
39263 type-conformant entry only if they are homographs.
39265 2003-11-13 GNAT Script <nobody@gnat.com>
39267 * Make-lang.in: Makefile automatically updated
39269 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39271 * adadecode.c: Use <> form of include for ctype.h.
39272 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
39274 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39276 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
39277 Works around PR middle-end/6552.
39279 2003-11-10 Ed Falis <falis@gnat.com>
39281 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
39283 * 5zinit.adb: (Install_Handler): Moved back to spec
39284 (Install_Signal_Handlers): Deleted
39286 * 5zthrini.adb: Added context clause for System.Storage_Elements
39287 (Register): Only handles creation of taskVar; initialization moved to
39289 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
39290 Added declaration of environment task secondary stack and
39293 * s-thread.adb: Implement bodies for thread body processing
39296 Added comment identifying supported targets for pragma Thread_Body.
39298 2003-11-10 Pascal Obry <obry@gnat.com>
39300 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
39304 (Open): Properly check for string length before copying into the buffer.
39305 Raises Name_Error if buffer is too small. Note that this was a potential
39308 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
39310 * bindgen.adb, comperr.adb: Code clean ups.
39311 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
39313 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
39315 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
39317 2003-11-10 Vincent Celier <celier@gnat.com>
39320 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
39323 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
39325 * prj.adb: (Project_Empty): Add new boolean component Virtual
39327 * prj.ads: (Virtual_Prefix): New constant string
39328 (Project_Data): New boolean component Virtual
39330 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
39331 a library project is extended by a virtual extending project.
39334 Modifications throughout to implement extending-all project, including:
39335 (Virtual_Hash, Processed_Hash): New hash tables
39336 (Create_Virtual_Extending_Project): New procedure
39337 (Look_For_Virtual_Projects_For): New procedure
39340 (Process): After checking the projects, if main project is an
39341 extending-all project, set the object directory of all virtual extending
39342 project to the object directory of the main project.
39343 Adjust error message when a virtual extending project has the same
39344 object directory as an project being extended.
39345 (Recursive_Process): If name starts with the virtual prefix, set Virtual
39346 to True in the project data.
39349 (Default_Project_Node): Add new boolean component Extending_All
39350 (Is_Extending_All): New function
39351 (Set_Is_Extending_All): New procedure
39353 * prj-tree.ads: (Is_Extending_All): New function
39354 (Set_Is_Extending_All): New procedure
39355 (Project_Node_Record): New boolean component Extending_All
39357 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
39360 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
39362 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
39363 "gprcmd prefix" to define it.
39365 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
39367 * einfo.ads: Fix a typo and remove an extraneous word in comments.
39370 (Create_Dummy_Package_Unit): Set the scope of the entity for the
39371 created dummy package to Standard_Standard, not to itself, to
39372 defend other parts of the front-end against encoutering a cycle in
39376 (Analyze_With_Clause): When setting the entities for the successive
39377 N_Expanded_Names that constitute the name of a child unit, do not
39378 attempt to go further than Standard_Standard in the chain of scopes.
39379 This case arises from the placeholder units created by
39380 Create_Dummy_Package_Unit in the case of a with_clause for a
39381 nonexistent child unit.
39383 2003-11-10 Ed Schonberg <schonberg@gnat.com>
39386 (Expand_Thread_Body): Place subprogram on scope stack, so that new
39387 declarations are given the proper scope.
39390 (Check_Expr_Constants): Reject an expression that contains a constant
39391 created during expansion, and that appears after the object to which
39392 the address clause applies.
39394 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
39395 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
39396 that uses 'Range of a function call with controlled components, so
39397 that the function result can be finalized before starting the loop.
39400 (Find_Selected_Component): Improve error message when prefix is
39401 an implicit dereference of an incomplete type.
39403 2003-11-10 Robert Dewar <dewar@gnat.com>
39405 * opt.ads: New Print_Standard flag for -gnatS switch
39407 * sem_ch13.adb: Remove some additional checks for unaligned arrays
39409 * cstand.adb (Create_Standard): Print out package standard if -gnatS
39412 * debug.adb: Update doc for -gnatds to discuss relationship with new
39415 * sinfo.adb: Add new field Entity_Or_Associated_Node
39417 * sinfo.ads: Add new field Entity_Or_Associated_Node
39418 Update documentation for Associated_Node and Entity fields to clarify
39419 relationship and usage.
39422 (Write_Id): Properly process Associated_Node field in generic template
39425 Recognize new -gnatS switch for printing package Standard
39426 This replaces gnatpsta
39429 Add line for new -gnatS switch for printing package Standard
39430 This replaces gnatpsta
39432 2003-11-10 Andreas Jaeger <aj@suse.de>
39434 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
39437 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
39439 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
39442 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
39444 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
39447 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
39449 * sysdep.c: Add handling of cygwin.
39451 2003-11-10 GNAT Script <nobody@gnat.com>
39453 * Make-lang.in: Makefile automatically updated
39455 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
39458 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
39459 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
39460 Replace GNAT_ROOT by GCC_ROOT.
39462 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
39464 2003-11-06 Zack Weinberg <zack@codesourcery.com>
39466 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
39467 and update for changed meaning of GET_MODE_BITSIZE.
39469 2003-11-04 Doug Rupp <rupp@gnat.com>
39471 * sysdep.c: Problem discovered during IA64 VMS port.
39472 [VMS] #include <unixio.h> to get proper prototypes.
39475 Issues discovered/problems fixed during IA64 VMS port.
39476 [VMS] #define _POSIX_EXIT for proper semantics.
39477 [VMS] #include <unixio.h> for proper prototypes.
39478 [VMS] (fork): #define IA64 version.
39479 (__gnat_os_exit): Remove unnecessary VMS specific code.
39481 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39483 Part of PR ada/12806
39484 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
39488 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
39491 * targtyps.c, decl.c, misc.c,
39492 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
39493 routines to work around change in FP sizing semantics in GCC.
39496 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
39498 * gigi.h: (enumerate_modes): New function.
39500 * Make-lang.in: (ada/misc.o): Add real.h.
39502 * misc.c: (enumerate_modes): New function.
39504 2003-11-04 Robert Dewar <dewar@gnat.com>
39506 * 3vtrasym.adb: Minor reformatting
39507 Use terminology encoded/decoded name, rather than C++ specific notion
39508 of mangling (this is the terminology used throughout GNAT).
39510 * einfo.h: Regenerated
39512 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
39515 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
39517 * par-prag.adb: Add dummy entry for Thread_Body pragma
39520 Add entries for System.Threads entities for thread body processing
39523 (Analyze_Pragma, Access attributes): Check these are not applied to a
39524 thread body, since this is not permitted
39526 * sem_prag.adb: Add processing for Thread_Body pragma.
39530 (Resolve_Call): Check for incorrect attempt to call a thread body
39531 procedure with a direct call.
39533 * snames.ads, snames.adb: Add entry for Thread_Body pragma
39534 Add names associated with thread body expansion
39536 * snames.h: Add entry for Thread_Body pragma
39538 * s-thread.adb: Add entries for thread body processing
39539 These are dummy bodies so far
39541 * s-thread.ads: Add documentation on thread body handling.
39542 Add entries for thread body processing.
39544 2003-11-04 Javier Miranda <miranda@gnat.com>
39547 (Build_Limited_Views): Return after posting an error in case of limited
39548 with_clause on subprograms, generics, instances or generic renamings
39549 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
39550 on subprograms, generics, instances or generic renamings
39552 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
39554 * raise.c (setup_to_install): Correct mistake in last revision; two
39555 arguments out of order.
39557 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
39558 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
39559 notice, missed in previous change.
39560 Remove trailing blanks and other style errors introduced in previous
39563 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
39565 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
39566 rid of the wrapper for a LJM type, ensuring we don't do that if the
39567 field is addressable. This avoids potential low level type view
39568 mismatches later on, for instance in a by-reference argument passing
39571 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39573 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
39574 aligned at byte boundary.
39576 2003-11-04 Joel Brobecker <brobecker@gnat.com>
39578 * decl.c (components_to_record): Do not delete the empty variants from
39579 the end of the union type.
39581 2003-11-04 Ed Schonberg <schonberg@gnat.com>
39583 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
39584 operation for a derived type, an explicit declaration may use a local
39585 subtype of Boolean.
39587 2003-11-04 Vincent Celier <celier@gnat.com>
39589 * make.adb (Gnatmake): Allow main sources on the command line with a
39590 library project when it is only for compilation (no binding or
39593 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39595 * Makefile.in: Remove many duplicate variables.
39597 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
39599 * Make-lang.in (dvi): Move targets to $(docobjdir).
39600 (gnat_ug_vms.dvi): Simplify rule and adjust target.
39601 (gnat_ug_wnt.dvi): Likewise.
39602 (gnat_ug_unx.dvi): Likewise.
39603 (gnat_ug_vxw.dvi): Likewise.
39604 (gnat_rm.dvi): Likewise.
39605 (gnat-style.dvi): Likewise.
39607 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39609 * gigi.h: Missed commit from update for C90.
39611 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39613 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
39615 2003-10-31 Andreas Schwab <schwab@suse.de>
39617 * raise.c (get_action_description_for): Fix typo in last change.
39619 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
39622 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
39623 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
39625 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
39627 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
39628 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
39629 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
39630 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
39631 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
39633 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
39636 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
39637 numbers when symbol name is too long.
39639 2003-10-30 Ed Falis <falis@gnat.com>
39641 * g-signal.ads, g-signal.adb: New files
39643 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
39645 * Makefile.rtl: Introduce GNAT.Signals
39647 2003-10-30 Robert Dewar <dewar@gnat.com>
39649 * freeze.adb: Minor reformatting
39651 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
39653 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
39654 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
39655 New handling of Id_Check parameter to improve recognition of keywords
39656 used as identifiers.
39657 Update copyright notice to include 2003
39659 2003-10-29 Robert Dewar <dewar@gnat.com>
39661 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
39662 sem_ch10.adb: Minor reformatting
39664 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
39665 (Expand_Assign_Record): Test right hand side for bit unaligned as well
39667 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
39669 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
39670 Support for TBK$SYMBOLIZE-based symbolic traceback.
39672 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
39675 Revert previous change, that did not work well when pragma No_Run_Time
39676 was used in conjunction with a run-time other than ZFP.
39678 2003-10-29 Vincent Celier <celier@gnat.com>
39681 (Gnatmake): When there are no Ada mains in attribute Main, disable the
39682 bind and link steps only is switch -z is not used.
39684 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
39686 * Makefile.generic: Remove duplicated setting of CC.
39688 * Makefile.prolog: Set CC to gcc by default, to override make's
39691 * einfo.h: Regenerated.
39693 2003-10-29 Ed Schonberg <schonberg@gnat.com>
39695 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39696 current body, after compiling subunit.
39698 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39699 when in deleted code, because gigi needs properly ordered freeze
39700 actions to annotate types.
39702 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39703 prevent the premature freezing of record type that contains
39704 subcomponents with a private type that does not yet have a completion.
39706 2003-10-29 Javier Miranda <miranda@gnat.com>
39709 (Analyze_Package_Instantiation): Check that instances can not be used in
39710 limited with_clauses.
39713 (Analyze_Package_Renaming): Check that limited withed packages cannot
39714 be renamed. Improve text on error messages related to limited
39717 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39719 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39720 Update copyright notice.
39722 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39723 (Install_Limited_Context_Clauses): New subprogram that isolates all the
39724 checks required for limited context_clauses and installs the limited
39726 (Install_Limited_Withed_Unit): Complete its documentation.
39727 (Analyze_Context): Check that limited with_clauses are only allowed in
39729 (Install_Context): Call Install_Limited_Context_Clauses after the
39730 parents have been installed.
39731 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39732 package as 'From_With_Type'; this mark indicates that the limited view
39733 is installed. Used to check bad usages of limited with_clauses.
39734 (Build_Limited_Views): Do not add shadow entities to the scope's list
39735 of entities. Do not add real entities to the Non_Limited_Views chain.
39736 Improve error notification.
39737 (Remove_Context_Clauses): Remove context clauses in two phases:
39738 limited views first and regular views later (to maintain the
39740 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39741 its visible entities.
39743 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
39745 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39746 with any type that Is_Fixed_Point_Type.
39748 * sinfo.ads: Fix documentation for Associated_Node attribute.
39750 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
39752 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39753 both '-gnatc' and '-gnatt' are specified.
39755 * atree.adb (Initialize): Add initialization for Node_Count (set to
39758 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39760 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39761 do not consider as Pure.
39763 Part of implementation of function-at-a-time:
39765 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39766 (tree_transform): Add new argument to build_component_ref.
39767 (tree_transform, case N_Assignment_Statement): Make and return an
39769 (tree_transform): If result IS_STMT, set flags and return it.
39770 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39772 * utils2.c (build_simple_component_ref, build_component_ref): Add new
39774 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39775 (build_allocator): Likewise.
39777 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39778 Add new arg to build_component_ref.
39779 (maybe_unconstrained_array, unchecked_convert): Likewise.
39781 * ada-tree.def (EXPR_STMT): New code.
39783 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39785 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39786 build_component_ref calls.
39788 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39790 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39791 (build_component_ref): Add new argument, NO_FOLD_P.
39793 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
39795 * Makefile.generic: Add missing substitution on object_deps handling.
39798 * Make-lang.in (check-ada): Enable ACATS test suite.
39800 2003-10-27 Robert Dewar <dewar@gnat.com>
39803 (Freeze_Array_Type): We do not need an initialization routine for types
39804 derived from String or Wide_String. They should be treated the same
39805 as String and Wide_String themselves. This caused problems with the
39806 use of Initialize_Scalars.
39809 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39810 composites. This allows use of component clauses that are not byte
39814 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39815 is an attempt to pack an array of atomic objects.
39817 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39819 2003-10-27 Pascal Obry <obry@gnat.com>
39822 (Basename): Check for drive letters in a pathname only on DOS based OS.
39824 2003-10-27 Vincent Celier <celier@gnat.com>
39827 (Gnatmake): When unable to change dir to the object dir, display the
39828 content of the parent dir of the obj dir, to try to understand why this
39831 2003-10-27 GNAT Script <nobody@gnat.com>
39833 * Make-lang.in: Makefile automatically updated
39835 2003-10-27 Ed Schonberg <schonberg@gnat.com>
39838 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39839 should not be done in Save/Restore_Scope_Stack, because it is performed
39843 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39844 whether use clauses should be removed/restored.
39847 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39848 whether use clauses should be removed/restored.
39850 2003-10-26 Andreas Jaeger <aj@suse.de>
39852 * Makefile.in: Remove duplicated lines.
39854 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39856 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39857 minimize the differences with ACT tree.
39859 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39860 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39861 Gnatvsn.Gnat_Static_Version_String to reduce differences between
39864 2003-10-24 Pascal Obry <obry@gnat.com>
39867 * adadecode.c (ostrcpy): New function.
39868 (__gnat_decode): Use ostrcpy of strcpy.
39869 (has_prefix): Set first parameter a const.
39870 (has_suffix): Set first parameter a const.
39871 Update copyright notice. Fix source name in header.
39872 Removes a trailing space.
39874 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
39877 Remove the test against being in No_Run_Time_Mode before generating a
39878 call to Register_Tag. It is redundant with the test against the
39879 availability of the function Register_Tag.
39881 2003-10-24 Vincent Celier <celier@gnat.com>
39883 * g-catiio.adb: (Month_Name): Correct spelling of February
39885 * make.adb: (Mains): New package
39886 (Initialize): Call Mains.Delete
39887 (Gnatmake): Check that each main on the command line is a source of a
39888 project file and, if there are several mains, each of them is a source
39889 of the same project file.
39890 (Gnatmake): When a foreign language is specified in attribute Languages,
39891 no main is specified on the command line and attribute Mains is not
39892 empty, only build the Ada main. If there is no Ada main, just compile
39893 the Ada sources and their closure.
39894 (Gnatmake): If a main is specified on the command line with directory
39895 information, check that the source exists and, if it does, that the path
39896 is the actual path of a source of a project.
39899 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39900 Full_Path is True, return the full path instead of the simple file name.
39901 (Project_Of): New function
39904 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39905 defaulted to False.
39906 (Project_Of): New function
39908 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39910 * Makefile.generic:
39911 Ensure objects of main project are always checked and rebuilt if needed.
39912 Set CC to gcc by default.
39913 Prepare new handling of link by creating a global archive (not activated
39916 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39917 stringt.h: Update copyright notice. Remove trailing blanks.
39918 Fix source name in header.
39920 2003-10-24 Robert Dewar <dewar@gnat.com>
39922 * sem_ch12.adb: Minor reformatting
39925 Minor reformatting (including new function return style throughout)
39928 Minor reformatting (including new function return style throughout)
39930 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39932 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39933 stringt.h: Update copyright notice. Remove trailing blanks.
39934 Fix source name in header.
39936 2003-10-24 GNAT Script <nobody@gnat.com>
39938 * Make-lang.in: Makefile automatically updated
39940 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
39942 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39943 stringt.h: Convert to ISO C90 declarations and definitions.
39945 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
39948 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39949 External_Tag attribute definition clauses.
39951 2003-10-23 Ed Schonberg <schonberg@gnat.com>
39954 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39955 child unit, generate a fully qualified name to avoid spurious errors
39956 when the context contains renamings of different child units with
39957 the same simple name.
39959 * exp_dbug.ads: Add documentation on name qualification for renamings
39962 2003-10-23 Robert Dewar <dewar@gnat.com>
39964 * g-regpat.ads, g-regpat.adb: Minor reformatting
39966 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
39968 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39970 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39972 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39975 * urealp.h: (Machine): Update to proper definition.
39977 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
39979 * init.c, adaint.c: Minor reformatting.
39981 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
39983 * adaint.c (w32_epoch_offset): Define static const at file level.
39984 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39985 rather than t_create, t_access in call to GetFileTime. Use union
39986 to convert between FILETIME and unsigned long long.
39987 (__gnat_file_time_name): Test for invalid file handle.
39988 (__gnat_set_filetime_name): Support win32 targets using
39989 w32api SetFileTime.
39991 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
39993 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39995 * ctrl_c.c (__gnat_int_handler): Remove declaration.
39997 * decl.c (creat_concat_name): Const-ify prefix.
39999 * adaint.c: Include ctype.h if __MINGW32__.
40000 (__gnat_readlink): Mark arguments as possibly unused.
40001 (__gnat_symlink): Likewise.
40002 (__gnat_is_symbolic_link): Likewise.
40003 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
40005 (__gnat_file_time_name): Don't declare struct stat statbuf when
40007 (__gnat_is_absolute_path): Add parenthesis around condition of
40008 'if' statement to avoid warning.
40009 (__gnat_plist_init): Specify void as parameter.
40010 (plist_enter): Likewise.
40011 (plist_leave): Likewise.
40012 (remove_handle): Make static. Initialize prev.
40014 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
40017 * Makefile.in: Disable build of gnatpsta.
40018 * cstreams.c (__gnat_full_name): Minor improvements and clean up
40019 of previous change.
40021 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40023 * tracebak.c (MAX): Avoid redefinition warning.
40025 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
40026 Change msg to const char *.
40027 (__gnat_install_handler): Remove ss, unused.
40028 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
40030 * cstreams.c (__gnat_full_name): Declare p only when used.
40031 (__gnat_full_name) [sgi] Return buffer.
40033 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
40035 * mingw32.h: New file.
40036 * gnat_wrapper.adb: New file.
40038 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
40040 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
40041 string match a pre compiled regular expression (the corresponding
40042 version of the function working on a raw regular expression)
40043 Fix typos in various comments
40044 Update copyright notice in spec
40046 2003-10-21 Gary Dismukes <dismukes@gnat.com>
40049 (Component_Needs_Simple_Initialization): Return False when the type is a
40050 packed bit array. Revise spec comments to document this case.
40053 (Expand_Pragma_Import): Set any expression on the imported object to
40054 empty to avoid initializing imported objects (in particular this
40055 covers the case of zero-initialization of bit arrays).
40056 Update copyright notice.
40058 2003-10-21 Ed Schonberg <schonberg@gnat.com>
40061 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
40062 a subunit is missing.
40063 (Instantiate_Subprogram_Body): If body of function is missing, set type
40064 of return expression explicitly in dummy body, to prevent cascaded
40065 errors when a subunit is missing.
40069 (Access_Subprogram_Declaration): Verify that return type is valid.
40073 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
40078 (Corresponding_Discriminant): If the scope of the discriminant is a
40079 private type without discriminant, use its full view.
40082 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
40084 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
40085 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
40086 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
40087 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
40088 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
40089 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
40090 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
40091 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
40092 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
40093 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
40094 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
40095 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
40096 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
40097 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
40098 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
40099 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
40100 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
40101 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
40102 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
40103 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
40104 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
40105 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
40106 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
40107 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
40108 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
40109 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
40110 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
40111 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
40112 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
40113 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
40114 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
40115 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
40116 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
40117 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
40118 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
40119 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
40120 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
40121 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
40122 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
40123 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
40124 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
40125 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
40126 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
40127 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
40128 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
40129 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
40130 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
40131 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
40132 vms_conv.ads, vms_conv.adb, vms_data.ads,
40133 vxaddr2line.adb: Files added. Merge with ACT tree.
40135 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
40136 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
40137 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
40138 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
40139 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
40140 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
40141 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40142 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
40143 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
40144 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
40146 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40147 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40148 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40149 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40150 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
40151 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
40152 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40153 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
40154 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
40155 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
40156 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
40157 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
40158 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
40159 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
40160 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
40161 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
40162 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
40163 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40164 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
40165 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
40166 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
40167 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
40168 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
40169 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
40170 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
40171 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
40172 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
40173 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
40174 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
40175 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
40176 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
40177 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
40178 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
40179 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
40180 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
40181 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
40182 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
40183 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
40184 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
40185 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
40186 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
40187 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
40188 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
40189 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
40190 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
40191 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
40192 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
40193 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
40194 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
40195 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
40196 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
40197 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
40198 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
40199 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
40200 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
40201 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
40202 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
40203 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
40204 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
40205 checks.adb, checks.ads, cio.c, comperr.adb,
40206 comperr.ads, csets.adb, cstand.adb, cstreams.c,
40207 debug_a.adb, debug_a.ads, debug.adb, decl.c,
40208 einfo.adb, einfo.ads, errout.adb, errout.ads,
40209 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
40210 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
40211 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
40212 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
40213 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
40214 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
40215 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
40216 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
40217 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
40218 fe.h, fmap.adb, fmap.ads, fname.adb,
40219 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
40220 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
40221 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
40222 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40223 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40224 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40225 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
40226 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
40227 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
40228 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
40229 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
40230 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
40231 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
40232 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
40233 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
40234 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
40235 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
40236 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
40237 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
40238 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
40239 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
40240 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
40241 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
40242 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
40243 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
40244 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
40245 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
40246 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
40247 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
40248 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
40249 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
40250 layout.adb, lib.adb, lib.ads, lib-list.adb,
40251 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
40252 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40253 link.c, live.adb, make.adb, make.ads,
40254 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
40255 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
40256 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
40257 misc.c, mkdir.c, mlib.adb, mlib.ads,
40258 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
40259 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
40260 namet.adb, namet.ads, namet.h, nlists.ads,
40261 nlists.h, nmake.adt, opt.adb, opt.ads,
40262 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
40263 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
40264 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40265 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
40266 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
40267 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
40268 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
40269 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
40270 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
40271 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
40272 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
40273 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
40274 prj-util.adb, prj-util.ads, raise.c, raise.h,
40275 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
40276 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
40277 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
40278 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
40279 scans.ads, scn.adb, scn.ads, s-crc32.adb,
40280 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
40281 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
40282 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
40283 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
40284 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
40285 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40286 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40287 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
40288 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
40289 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
40290 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
40291 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
40292 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
40293 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
40294 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40295 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
40296 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
40297 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
40298 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
40299 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
40300 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
40301 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
40302 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
40303 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
40304 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
40305 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
40306 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
40307 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
40308 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
40309 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
40310 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
40311 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
40312 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
40313 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
40314 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
40315 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
40316 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
40317 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
40318 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
40319 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
40320 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
40321 stringt.adb, stringt.ads, stringt.h, style.ads,
40322 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
40323 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
40324 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
40325 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
40326 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
40327 table.adb, table.ads, targparm.adb, targparm.ads,
40328 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
40329 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
40330 ttypes.ads, types.ads, types.h, uintp.adb,
40331 uintp.ads, uintp.h, uname.adb, urealp.adb,
40332 urealp.ads, urealp.h, usage.adb, utils2.c,
40333 utils.c, validsw.adb, validsw.ads, widechar.adb,
40334 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
40335 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
40336 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
40337 gnatvsn.ads: Merge with ACT tree.
40339 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
40341 2003-10-20 Mark Mitchell <mark@codesourcery.com>
40343 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
40344 (gnat_ug_vmx.info): Likewise.
40345 (gnat_ug_vxw.info): Likewise.
40346 (gnat_ug_wnt.info): Likewise.
40347 (gnat_rm.info): Likewise.
40348 (gnat-style.info): Likewise.
40350 * Make-lang.in (ada.install-info): Remove target.
40351 (info): New target.
40352 (install-info): Likewise.
40353 (gnat_ug_unx.info): Simplify rule.
40354 (gnat_ug_vmx.info): Likewise.
40355 (gnat_ug_vxw.info): Likewise.
40356 (gnat_ug_wnt.info): Likewise.
40357 (gnat_rm.info): Likewise.
40358 (gnat-style.info): Likewise.
40360 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
40362 * Make-lang.in: Replace uses of $(target_alias) with
40363 $(target_noncanonical).
40364 * ada/Makefile.in: Remove unused mention of $(target_alias).
40366 2003-10-06 Mark Mitchell <mark@codesourcery.com>
40368 * Make-lang.in (ada.info): Replace with ...
40370 (ada.dvi): Replace with ...
40373 2003-09-29 Zack Weinberg <zack@codesourcery.com>
40375 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
40376 initialize dconstp5 and dconstmp5.
40378 2003-09-28 Richard Henderson <rth@redhat.com>
40380 * trans.c (tree_transform): Update call to expand_asm_operands.
40382 2003-09-21 Richard Henderson <rth@redhat.com>
40384 * trans.c, utils.c: Revert.
40386 2003-09-21 Richard Henderson <rth@redhat.com>
40388 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
40391 2003-09-04 Michael Matz <matz@suse.de>
40393 * misc.c: Include "target.h".
40394 * Make-lang.in (misc.o): Add dependency on target.h.
40396 2003-09-03 DJ Delorie <dj@redhat.com>
40398 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
40401 2003-08-30 Zack Weinberg <zack@codesourcery.com>
40403 * Makefile.in: Update substitutions to match changes to
40404 configure. Use include directives instead of @-insertions
40405 to read in host and target fragments. Add a rule to
40406 regenerate ada/Makefile.
40408 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
40410 * lang-options.h: Remove.
40411 * lang.opt: Add help text.
40413 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
40415 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
40418 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
40420 * misc.c (gnat_handle_option): Don't handle filenames.
40422 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
40424 * Make-lang.in: Replace PWD with PWD_COMMAND.
40425 * Makefile.adalib: Likewise.
40426 * Makefile.in: Likewise.
40428 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
40430 * misc.c (gnat_argv): Revert last change.
40431 (gnat_handle_option, gnat_init_options): Copy arguments.
40433 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
40435 * misc.c (gnat_argv): Make const.
40437 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
40439 * misc.c (save_argc, save_argv): Keep non-static!
40441 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
40443 * misc.c (save_argc, save_argv): Make static.
40444 (gnat_init_options): New prototype.
40445 (gnat_init_options): Update.
40447 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
40449 * gnat_ug.texi: Remove unlikely characters from @vars.
40450 * gnat_ug_vms.texi: Regenerate.
40452 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
40454 * misc.c (record_code_position): Adjust emit_note call.
40456 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
40458 * misc.c (gnat_handle_option): Don't check for missing arguments.
40460 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
40462 * utils.c (end_subprog_body): Adjust expand_function_end call.
40464 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
40466 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
40469 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
40471 * lang.opt: Declare Ada.
40472 * misc.c (gnat_init_options): Update.
40474 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
40476 * utils.c (begin_subprog_body): Adjust init_function_start call.
40478 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
40480 * Make-lang.in: Update to use options.c and options.h.
40481 * misc.c: Include options.h not aoptions.h.
40482 (gnat_handle_option): Abort on unrecognized switch.
40483 (gnat_init_options): Request Ada switches.
40485 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
40487 * lang.opt: Add -Wall.
40488 * misc.c (gnat_handle_option): Handle it.
40490 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
40492 * misc.c (gnat_handle_option): Fix warnings.
40494 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
40496 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
40498 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
40500 * Make-lang.in: Update to handle command-line options.
40501 * lang.opt: New file.
40502 * misc.c: Include aoptions.h.
40503 (cl_options_count, cl_options): Remove.
40504 (gnat_handle_option): New.
40505 (gnat_decode_option): Remove.
40506 (LANG_HOOKS_DECODE_OPTION): Remove.
40507 (LANG_HOOKS_HANDLE_OPTION): Override.
40509 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
40511 * init.c, misc.c, trans.c, utils.c: Remove dead code.
40513 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
40515 * Makefile.in: Replace "host_canonical" with "host" for autoconf
40518 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
40520 * Make-lang.in: Update.
40521 * misc.c: Include opts.h. Define cl_options_count and cl_options.
40523 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
40525 * misc.c (gnat_init_options): Update.
40527 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40529 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
40530 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
40531 __attribute__ ((__unused__)).
40533 2003-06-05 Jan Hubicka <jh@suse.cz>
40535 * Make-lang.in: Add support for stageprofile and stagefeedback
40537 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40539 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
40540 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
40542 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
40544 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
40545 Remove non-VMS directive.
40546 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
40548 (Examples of gnatls Usage): Remove VMS alternative.
40550 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
40553 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
40554 and turn ZCX_By_Default back to False since the underlying support
40555 is not quite there yet.
40557 2003-06-01 Andreas Jaeger <aj@suse.de>
40559 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
40560 and ROUND_TYPE_SIZE_UNIT.
40562 2003-05-22 Geert Bosch <bosch@gnat.com>
40564 * gnat_rm.texi : Remove reference to Ada Core Technologies.
40566 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
40568 * trans.c (tree_transform): Use location_t and input_location
40570 (build_unit_elab): Likewise.
40571 * utils.c (create_label_decl): Likewise.
40573 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
40575 * trans.c (tree_transform, build_unit_elab,
40576 set_lineno): Rename lineno to input_line.
40577 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
40578 end_subprog_body): Likewise.
40579 * utils2.c (build_call_raise): Likewise.
40581 2003-05-01 Laurent Guerby <guerby@acm.org>
40584 * 5iosinte.ads: Increase pthread_cond_t size to match recent
40585 LinuxThread and NPTL version, merge from ACT.
40587 2003-04-28 Zack Weinberg <zack@codesourcery.com>
40589 * utils.c (convert): No need to clear TREE_CST_RTL.
40591 2003-04-23 Geert Bosch <bosch@gnat.com>
40593 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40594 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40595 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40596 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40597 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40598 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
40599 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
40600 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
40601 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40602 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
40603 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
40604 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
40605 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
40606 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
40607 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
40608 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
40609 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
40610 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
40611 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
40612 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
40613 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
40614 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
40615 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40616 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
40617 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
40618 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
40619 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
40620 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
40621 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
40622 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
40623 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
40624 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
40625 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
40626 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
40627 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
40628 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
40629 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
40630 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
40631 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
40632 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
40633 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
40634 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
40635 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
40636 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
40637 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
40638 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
40639 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
40640 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
40641 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
40642 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
40643 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
40644 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
40645 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
40646 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
40647 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
40648 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
40649 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
40650 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
40651 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
40652 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
40653 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
40654 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
40655 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
40656 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
40657 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
40658 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
40659 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
40660 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
40661 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
40662 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
40663 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
40664 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
40665 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
40666 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
40667 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
40668 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
40669 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
40670 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
40671 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
40672 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
40673 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
40674 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40675 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
40676 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
40677 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
40678 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
40679 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
40680 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
40681 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
40682 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
40683 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
40684 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
40685 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
40686 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40687 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40688 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40689 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40690 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40691 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40692 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40693 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40694 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40695 ali.adb, ali.ads, alloc.ads, argv.c,
40696 atree.adb, atree.ads, atree.h, aux-io.c,
40697 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40698 binde.adb, binde.ads, binderr.adb, binderr.ads,
40699 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40700 butil.adb, butil.ads, cal.c, calendar.ads,
40701 casing.adb, casing.ads, ceinfo.adb, checks.adb,
40702 checks.ads, cio.c, comperr.adb, comperr.ads,
40703 config-lang.in, csets.adb, csets.ads, csinfo.adb,
40704 cstand.adb, cstand.ads, cuintp.c, debug.adb,
40705 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40706 dec-io.ads, dec.ads, deftarg.c, directio.ads,
40707 einfo.adb, einfo.ads, elists.adb, elists.ads,
40708 elists.h, errno.c, errout.adb, errout.ads,
40709 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40710 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40711 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40712 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40713 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40714 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40715 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40716 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40717 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40718 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40719 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40720 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40721 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40722 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40723 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40724 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40725 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40726 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40727 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40728 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40729 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40730 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40731 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40732 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40733 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40734 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40735 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40736 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40737 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40738 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40739 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40740 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40741 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40742 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40743 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40744 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40745 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40746 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40747 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40748 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40749 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40750 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40751 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40752 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40753 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40754 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40755 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40756 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40757 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40758 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40759 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40760 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40761 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40762 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40763 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40764 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40765 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40766 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40767 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40768 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40769 lib.adb, lib.ads, live.adb, live.ads,
40770 machcode.ads, make.adb, make.ads, makeusg.adb,
40771 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40772 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40773 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40774 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40775 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40776 mlib.ads, namet.adb, namet.ads, nlists.adb,
40777 nlists.ads, opt.adb, opt.ads, osint-b.adb,
40778 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40779 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40780 osint.ads, output.adb, output.ads, par-ch10.adb,
40781 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40782 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40783 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40784 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40785 par-tchk.adb, par-util.adb, par.adb, par.ads,
40786 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40787 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40788 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40789 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40790 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40791 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40792 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40793 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40794 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40795 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40796 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40797 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40798 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40799 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40800 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40801 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40802 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40803 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40804 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40805 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40806 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40807 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40808 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40809 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40810 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40811 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40812 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40813 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40814 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40815 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40816 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40817 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40818 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40819 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40820 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40821 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40822 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40823 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40824 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40825 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40826 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40827 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40828 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40829 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40830 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40831 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40832 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40833 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40834 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40835 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40836 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40837 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40838 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40839 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40840 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40841 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40842 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40843 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40844 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40845 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40846 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40847 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40848 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40849 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40850 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40851 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40852 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40853 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40854 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40855 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40856 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40857 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40858 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40859 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40860 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40861 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40862 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40863 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40864 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40865 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40866 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40867 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40868 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40869 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40870 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40871 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40872 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40873 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40874 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40875 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40876 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40877 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40878 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40879 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40880 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40881 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40882 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40883 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40884 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40885 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40886 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40887 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40888 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40889 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40890 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40891 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40892 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40893 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40894 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40895 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40896 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40897 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40898 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40899 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40900 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40901 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40902 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40903 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40904 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40905 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40906 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40907 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40908 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40909 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40910 snames.ads, sprint.adb, sprint.ads, stand.adb,
40911 stand.ads, stringt.adb, stringt.ads, style.adb,
40912 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40913 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40914 switch-m.ads, switch.adb, switch.ads, system.ads,
40915 table.adb, table.ads, targparm.adb, targparm.ads,
40916 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40917 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40918 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40919 ttypef.ads, ttypes.ads, types.adb, types.ads,
40920 uintp.adb, uintp.ads, uname.adb, uname.ads,
40921 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40922 usage.adb, usage.ads, validsw.adb, validsw.ads,
40923 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40924 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40925 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40926 formatting and other trivial changes from ACT.
40928 2003-04-12 Zack Weinberg <zack@codesourcery.com>
40930 * gigi.h, utils2.c (build_constructor):
40931 Rename gnat_build_constructor. Use build_constructor.
40932 * decl.c (gnat_to_gnu_entity)
40933 * trans.c (tree_transform, pos_to_constructor, extract_values)
40934 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40935 (unchecked_convert)
40936 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40937 (fill_vms_descriptor):
40940 2003-04-06 Zack Weinberg <zack@codesourcery.com>
40942 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40943 * misc.c (gnat_tree_size): New function.
40944 (LANG_HOOKS_TREE_SIZE): Override.
40946 2003-04-03 Jason Merrill <jason@redhat.com>
40948 * misc.c (gnat_adjust_rli): #if 0.
40950 2003-03-31 Geert Bosch <bosch@gnat.com>
40953 * link.c : Fix misspelled "const" keyword
40955 2003-03-23 Mark Mitchell <mark@codesourcery.com>
40958 * utils2.c: Adjust calls to put_var_into_stack.
40960 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
40962 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40964 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
40966 * misc.c (gnat_init): Update for new prototype.
40968 2003-03-05 Olivier Hainque <hainque@gnat.com>
40971 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40972 warning, and fix return type for the IN_RTS && !SJLJ case.
40974 2003-03-04 Tom Tromey <tromey@redhat.com>
40976 * Make-lang.in (ada.tags): New target.
40978 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
40981 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40982 wrapper, which name remains constant whatever underlying GCC
40985 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40986 the stable interface needed for a-except.
40988 2003-03-02 Andreas Jaeger <aj@suse.de>
40990 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40991 gnat_ug_wnt.texi: Regenerate.
40993 2003-03-02 Laurent Guerby <guerby@acm.org>
40995 * Makefile.in (install-gnatlib): Match previous change there
40998 2003-02-28 Andreas Schwab <schwab@suse.de>
41000 * Make-lang.in (install-gnatlib): Change to ada directory before
41001 running make instead of using ada/Makefile directly.
41003 2003-02-18 Ben Elliston <bje@redhat.com>
41005 Part of PR ada/9406
41006 * gnat_ug.texi (Binder output file): Grammar fix.
41008 2003-02-18 Ben Elliston <bje@redhat.com>
41011 * 5qtaprop.adb (Sleep): Fix typo in comment.
41013 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
41015 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
41016 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41017 gnat_ug_wnt.texi: Regenerate.
41019 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
41021 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
41022 be created if necessary.
41023 (ada.install-common): Let $(DESTDIR)$(bindir) be created
41024 if necessary. Remove erroneous and redundant gnatchop
41025 installation commands. Test for gnatdll before attempting
41027 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
41028 and gnatdll from all plausible locations.
41030 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
41032 * utils2.c (build_unary_op): Don't check flag_volatile.
41033 * gnat_ug.texi: Remove -fvolatile from example.
41034 * gnat_ug_vxw.texi: Likewise.
41036 2003-01-29 Laurent Guerby <guerby@acm.org>
41039 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
41040 * Makefile.in: match previous change.
41041 * Make-lang.in: match previous change.
41043 2003-01-29 Joel Sherrill <joel@OARcorp.com>
41045 * 5rosinte.ads: Add SIGXCPU.
41046 * 5rtpopsp.adb: New file.
41047 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
41048 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
41049 specific file 5rtpopsp.adb.
41050 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
41051 is likely needed for all newlib targets.
41052 * init.c: Add RTEMS specific version of __gnat_initialize().
41054 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41056 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
41058 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41060 * init.c (__gnat_error_handler): Make msg const.
41062 * gmem.c (convert_addresses): Move declaration ...
41063 * adaint.h: ... here.
41064 * adaint.c (convert_addresses): Adapt addrs type to match
41067 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
41069 2003-01-24 Andreas Schwab <schwab@suse.de>
41071 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
41072 size_t to avoid warning.
41074 2003-01-21 Zack Weinberg <zack@codesourcery.com>
41076 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
41078 2003-01-09 Geoffrey Keating <geoffk@apple.com>
41080 * gnat_rm.texi: Remove RCS version number.
41082 * ada-tree.h (union lang_tree_node): Add chain_next option.
41084 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
41086 * Make-lang.in (ada.install-info, ada.install-common,
41087 ada.uninstall): Prepend $(DESTDIR) to the destination
41088 directory in all (un)installation commands.
41089 * Makefile.in (install-gnatlib, install-rts): Ditto.
41091 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
41093 * gnat_rm.texi, gnat_ug.texi: Use @copying.
41094 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41095 gnat_ug_wnt.texi: Regenerate.
41097 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
41099 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
41101 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
41102 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
41103 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
41104 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
41105 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
41106 $(srcdir)/doc/include/gcc-common.texi.
41108 2002-12-15 Geert Bosch <bosch@gnat.com>
41110 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
41112 2002-12-14 Geert Bosch <bosch@gnat.com>
41115 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
41116 case of a body created for a Renaming_As_Body, on which
41117 conformance checks are not performed.
41119 2002-11-30 Zack Weinberg <zack@codesourcery.com>
41121 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
41122 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
41123 not already included.
41124 * Make-lang.in: Update dependencies.
41126 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
41127 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
41128 solution to buffer overflow bug on GNU/Linux.
41130 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
41134 * bindgen.adb: Remove all references to Public_Version.
41135 * comperr.adb: Remove all references to Public_Version and
41136 GNATPRO_Version; correct bug reporting instructions.
41137 * comperr.ads: Change to match bug box.
41138 * gnatvsn.ads: Remove all references to Public version and
41141 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
41144 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
41148 * config-lang.in: Remove diff_excludes.
41150 2002-11-05 Graham Stott <graham.stott@btinternet.com>
41153 * trans.c (gnu_pending_elaboration_lists): New GC root.
41154 (build_unit_elab): Use..
41156 2002-10-30 Geert Bosch <bosch@gnat.com>
41159 * misc.c : Include optabs.h
41161 * Make-lang.in (misc.o): Add dependency on optabs.h
41163 2002-10-29 Geert Bosch <bosch@gnat.com>
41166 * Make-lang.in (gnatbind): Depend on CONFIG_H
41168 2002-10-29 Geert bosch <bosch@gnat.com>
41171 * misc.c: Unrevert misc.c (1.13)
41173 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
41175 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
41176 maintainership comments.
41178 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
41181 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
41182 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
41183 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
41184 7staprop.adb: Correct statements in comments about
41185 maintainership of GNAT.
41188 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
41189 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
41190 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
41191 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
41192 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
41193 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
41194 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
41195 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
41196 comments about maintainership of GNAT.
41198 PR ada/6919 (forward port of patch for PR ada/5904)
41199 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
41200 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
41201 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
41202 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
41203 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
41204 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
41205 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
41206 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
41207 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
41208 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
41209 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
41210 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
41211 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
41212 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
41213 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
41214 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
41215 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
41216 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
41217 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
41218 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
41219 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
41220 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
41221 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
41222 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
41223 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
41224 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
41225 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
41226 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
41227 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
41228 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
41229 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
41230 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
41231 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
41232 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
41233 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
41234 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
41235 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
41236 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
41237 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
41238 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
41239 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
41240 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
41241 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
41242 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
41243 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
41244 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
41245 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
41246 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
41247 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
41248 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
41249 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
41250 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
41251 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
41252 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
41253 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
41254 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
41255 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
41256 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
41257 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
41258 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
41259 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
41260 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
41261 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
41262 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
41263 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
41264 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
41265 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
41266 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
41267 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
41268 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
41269 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
41270 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
41271 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
41272 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
41273 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
41274 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
41275 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
41276 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
41277 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
41278 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
41279 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
41280 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
41281 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
41282 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
41283 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
41284 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
41285 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
41286 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
41287 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
41288 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
41289 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
41290 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
41291 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
41292 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
41293 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
41294 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
41295 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
41296 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
41297 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
41298 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
41299 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
41300 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
41301 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
41302 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
41303 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
41304 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
41305 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
41306 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
41307 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
41308 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
41309 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
41310 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
41311 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
41312 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
41313 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
41314 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
41315 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
41316 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
41317 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
41318 par-endh.adb par-labl.adb par-load.adb par-prag.adb
41319 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
41320 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
41321 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
41322 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
41323 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
41324 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
41325 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
41326 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
41327 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
41328 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
41329 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
41330 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
41331 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
41332 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
41333 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
41334 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
41335 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
41336 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
41337 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
41338 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
41339 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
41340 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
41341 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
41342 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
41343 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
41344 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
41345 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
41346 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
41347 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
41348 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
41349 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
41350 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
41351 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
41352 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
41353 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
41354 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
41355 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
41356 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
41357 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
41358 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
41359 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
41360 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
41361 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
41362 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
41363 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
41364 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
41365 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
41366 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
41367 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
41368 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
41369 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
41370 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
41371 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
41372 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
41373 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
41374 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
41375 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
41376 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
41377 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
41378 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
41379 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
41380 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
41381 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
41382 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
41383 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
41384 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
41385 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
41386 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
41387 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
41388 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
41389 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
41390 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
41391 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
41392 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
41393 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
41394 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
41395 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
41396 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
41397 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
41398 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
41399 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
41400 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
41401 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
41402 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
41403 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
41404 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
41405 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
41406 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
41407 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
41408 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
41409 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
41410 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
41411 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
41412 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
41413 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
41414 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
41415 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
41416 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
41417 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
41418 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
41419 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
41420 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
41421 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
41422 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
41423 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
41424 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
41425 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
41426 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
41427 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
41428 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
41429 stringt.ads stringt.h style.adb style.ads stylesw.adb
41430 stylesw.ads switch.adb switch.ads sysdep.c system.ads
41431 table.adb table.ads targparm.adb targparm.ads targtyps.c
41432 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
41433 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
41434 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
41435 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
41436 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
41437 usage.ads utils.c utils2.c validsw.adb validsw.ads
41438 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
41439 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
41440 xtreeprs.adb: Correct statements in comments about maintainership
41443 2002-09-23 Zack Weinberg <zack@codesourcery.com>
41445 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
41446 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
41447 * gnatvsn.ads: Gnat_Version_String is now a function.
41448 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
41449 copy the C version_string into a String and return it.
41450 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
41451 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
41452 Remove pragma Ident (Gnat_Version_String). If this was the
41453 sole use of package Gnatvsn, remove the with statement too.
41454 * gnat1drv.adb: Tweak -gnatv output.
41456 2002-09-17 Richard Henderson <rth@redhat.com>
41458 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
41459 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
41460 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
41461 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
41462 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
41463 and real_2expN instead of a loop.
41464 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
41465 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
41467 2002-08-25 Andre Leis <a.leis@gmx.net>
41468 David Billinghurst <David.Billinghurst@riotinto.com>
41470 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
41472 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41474 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
41475 Remove $(CONFIG_H) dependency.
41477 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
41479 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
41481 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41483 * adadecode.c (ada_demangle): Use xstrdup in lieu of
41485 * misc.c (gnat_decode_option): Likewise.
41487 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
41489 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41490 function approach did not work well because of a side effect (the
41491 function call could reallocate the table which was being indexed
41492 using its result). Fixes ada/4851. [RESURRECTED]
41494 2002-07-01 Roger Sayle <roger@eyesopen.com>
41496 * ada/utils.c (builtin_function): Accept an additional parameter.
41498 2002-06-28 Andreas Jaeger <aj@suse.de>
41501 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
41504 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41506 * Makefile.in (SHELL): Set to @SHELL@.
41508 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41510 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
41511 array size calculation.
41513 2002-06-04 Andreas Jaeger <aj@suse.de>
41515 * Make-lang.in (gnatbind): Readd rule that has been lost in last
41518 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
41520 Merge from pch-branch:
41522 * config-lang.in (gtfiles): Add ada-tree.h.
41523 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
41524 (SET_TYPE_MODULUS): New.
41525 (SET_TYPE_INDEX): New.
41526 (SET_TYPE_DIGITS_VALUE): New.
41527 (SET_TYPE_RM_SIZE): New.
41528 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
41529 (SET_TYPE_ADA_SIZE): New.
41530 (SET_TYPE_ACTUAL_BOUNDS): New.
41531 (SET_DECL_CONST_CORRESPONDING_VAR): New.
41532 (SET_DECL_ORIGINAL_FIELD): New.
41533 (TREE_LOOP_ID): Correct typo.
41534 * decl.c: Use new macros.
41535 * utils.c: Include debug.h, use new macros.
41536 * utils2.c: Use new macros.
41538 * ada-tree.h: Update all macros for new tree description.
41539 (struct tree_loop_id): New.
41540 (union lang_tree_node): New.
41541 (struct lang_decl): New.
41542 (struct lang_type): New.
41543 * misc.c (gnat_mark_tree): Delete.
41544 (LANG_HOOKS_MARK_TREE): Delete.
41545 * trans.c (tree_transform): No longer any need to cast
41548 * utils.c (struct language_function): New dummy structure.
41550 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
41551 (misc.o): Likewise.
41552 (utils.o): Likewise; also gtype-ada.h.
41553 * Make-lang.in (gnat1): Add dependency on s-gtype.
41554 (gnatbind): Add dependency on $(CONFIG_H).
41555 * utils.c: Correct last #include.
41556 (stuct e_stack): Remove unnecessary 'static'.
41557 (mark_e_stack): Remove unused prototype.
41559 * scn-nlit.adb: Remove whitespace after version number to
41560 keep lines under 80 chars.
41561 * snames.adb: Likewise.
41562 * treepr.ads: Likewise.
41564 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
41565 (misc.o): Likewise.
41566 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
41567 * config-lang.in (gtfiles): New.
41568 * decl.c: Use gengtype for roots.
41569 * gigi.h: Use gengtype for roots.
41570 * trans.c: Use gengtype for roots.
41571 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
41573 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
41575 * misc.c (gnat_init): Adjust setting of internal_error_function.
41577 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
41579 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
41580 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41581 gnat_ug_wnt.texi: Regenerate.
41583 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
41585 * 5ntaprop.adb (with System.OS_Primitives): Remove.
41587 * cstreams.c (max_path_len): Move from here ...
41588 * adaint.c (__gnat_max_path_len): ... to here.
41589 * adaint.c (__gnat_max_path_len): Declare.
41590 * g-dirope.adb (Max_Path): Adjust.
41591 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
41592 * i-cstrea.ads (max_path_len): Adjust.
41593 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
41594 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
41596 * Makefile.in, Make-lang.in: Documentation is now built in
41597 Make-lang.in. Store Info and generated Texinfo files in the
41599 * gnat_ug.texi: Remove CVS keywords, correct version number.
41600 Set file name correctly.
41602 * gnat_ug_*.texi: Add.
41603 * .cvsignore: Ignore generated Texinfo files.
41605 2002-05-30 Zack Weinberg <zack@codesourcery.com>
41607 * ada.h: Add MI guard macro.
41608 (SUBTYPE): Define constants with an anonymous enum, not static
41610 (IN): Cast constants to appropriate type before use.
41612 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
41614 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
41617 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41619 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
41620 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
41621 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
41622 (ALL_ADA_CFLAGS): Likewise.
41623 (ADA_INCLUDES): Likewise.
41624 Adapt for new working dir.
41625 (GNATBIND): Use Makefile.in version.
41626 (.SUFFIXES): Copy from Makefile.in.
41627 (ada-warn): Define.
41628 (.adb.o, .ads.o): Copy from Makefile.in.
41629 Added $(OUTPUT_OPTION).
41630 (GNAT1_C_OBJS): Moved from Makefile.in.
41631 Prefix with ada subdir.
41632 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
41633 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
41634 Adapt for new working dir.
41635 (EXTRA_GNATBIND_OBJS): Likewise.
41636 (ADA_BACKEND): Moved from Makefile.in.
41637 Renamed to avoid conflict with global BACKEND.
41639 (TARGET_ADA_SRCS): Moved from Makefile.in.
41640 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
41642 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
41643 (ada_extra_files): Moved from Makefile.in.
41644 Prefix with ada subdir.
41645 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
41646 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
41647 (ada/nmake.ads): Likewise.
41648 (update-sources): Moved from Makefile.in.
41649 Prefix with ada subdir.
41650 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
41651 (ADA_TREE_H): Likewise.
41652 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
41653 (ada/memtrack.o): Likewise.
41654 (ada/adadecode.o): Likewise.
41655 Update dependencies.
41656 (ada/adaint.o): New.
41657 (ada/argv.o): Moved from Makefile.in.
41658 Prefix with ada subdir.
41659 Update dependencies.
41660 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
41661 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
41662 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
41663 Prefix with ada subdir.
41664 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
41665 (GNAT DEPENDENCIES): Regenerate.
41666 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
41667 toplevel Makefile.in.
41668 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
41669 (TARGET_ADA_SRCS): Removed.
41670 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
41671 (GNATBIND_OBJS): Likewise.
41672 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
41673 (BACKEND): Removed.
41674 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41675 (TREE_H): Likewise.
41676 (ada_extra_files): Likewise.
41677 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
41678 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
41679 (update-sources): Likewise.
41680 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
41681 (ADA_TREE_H): Likewise.
41682 (adadecoce.o): Likewise.
41683 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
41684 (GNAT DEPENDENCIES): Likewise.
41686 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41688 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41689 * Makefile.in: Likewise.
41691 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41693 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41694 Restore $(CONFIG_H) and prefix.o dependencies.
41695 (ada.stage[1-4]): Depend on stage?-start.
41697 * Makefile.in (b_gnatb.c): Depend on interfac.o.
41699 2002-05-02 Jim Wilson <wilson@redhat.com>
41701 * utils.c (finish_record_type): Change record_size to record_type.
41703 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
41705 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41706 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41707 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
41709 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
41711 * misc.c (gnat_parse_file): Update.
41713 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
41715 * misc.c (gnat_init): Don't set lang_attribute_common.
41717 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
41719 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41721 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
41723 * gnat_ug.texi: New file.
41725 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
41726 instead of gfdl.texi
41728 * xgnatug.adb, ug_words: New files.
41730 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
41731 gnat_rm and gnat-style manuals.
41733 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
41735 * gigi.h (incomplete_type_error): Remove.
41736 * utils.c (incomplete_type_error): Remove.
41738 2002-04-16 Mark Mitchell <mark@codesourcery.com>
41740 * trans.c (tree_transform): Add has_scope argument to
41741 expand_start_stmt_expr.
41743 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41745 * gigi.h (truthvalue_conversion): Rename.
41746 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41747 * trans.c (tree_transform): Update.
41748 * utils2.c (truthvalue_conversion): Rename, update.
41749 (build_binary_op, build_unary_op): Update.
41751 2002-04-04 Laurent Guerby <guerby@acm.org>
41753 * make.adb: Implement -margs, remove restriction about file name placement.
41754 * makeusg.adb: Documentation update.
41755 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41756 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41758 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41760 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41761 (builtin_function): Similarly.
41763 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41765 * decl.c (gnat_to_gnu_entity): Update.
41766 * gigi.h (mark_addressable): Rename.
41767 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41768 * trans.c (tree_transform): Update.
41769 * utils.c (create_var_decl): Update.
41770 * util2.c (build_binary_op, build_unary_op,
41771 fill_vms_descriptor): Update.
41772 (mark_addressable): Rename, update.
41774 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41776 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41778 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41779 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41780 * trans.c (tree_transform, convert_with_check): Update.
41781 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41784 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
41786 * gigi.h (finish_incomplete_decl): Rename.
41787 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41788 * utils.c (gnat_init_decl_processing): Don't set hook.
41789 (finish_incomplete_decl): Rename.
41791 2002-03-29 Andreas Schwab <schwab@suse.de>
41793 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41796 2001-03-28 Robert Dewar <dewar@gnat.com>
41799 (Remove_Checks): New procedure
41802 (Remove_Checks): New procedure
41805 Use new Duplicate_Subexpr functions
41806 (Duplicate_Subexpr_No_Checks): New procedure
41807 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41808 (Duplicate_Subexpr): Restore original form (checks duplicated)
41809 (Duplicate_Subexpr): Call Remove_Checks
41812 (Duplicate_Subexpr_No_Checks): New procedure
41813 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41814 Add 2002 to copyright notice
41816 * sem_util.adb: Use new Duplicate_Subexpr functions
41819 (Eval_Indexed_Component): This is the place to call
41820 Constant_Array_Ref and to replace the value. We simply merge
41821 the code of this function in here, since it is now no longer
41822 used elsewhere. This fixes the problem of the back end not
41823 realizing we were clever enough to see that this was
41825 (Expr_Val): Remove call to Constant_Array_Ref
41826 (Expr_Rep_Val): Remove call to Constant_Array_Ref
41828 (Constant_Array_Ref): Deal with string literals (patch
41829 suggested by Zack Weinberg on the gcc list)
41831 2001-03-28 Ed Schonberg <schonber@gnat.com>
41833 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41834 Duplicate_Subexpr_Move_Checks.
41836 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41837 Duplicate_Subexpr_Move_Checks.
41839 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41840 value of array exists before retrieving it (it may a private
41841 protected component in a function).
41843 2002-03-28 Geert Bosch <bosch@gnat.com>
41845 * prj-pp.adb : New file.
41847 * prj-pp.ads : New file.
41849 2002-03-28 Andreas Jaeger <aj@suse.de>
41851 * Makefile.in (stamp-sdefault): Fix path for Makefile.
41853 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
41855 * misc.c (gnat_expand_expr): Move prototype.
41857 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41859 * misc.c (insert_default_attributes): Remove.
41861 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41863 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41864 (gnat_init): Don't set hook.
41865 (gnat_expand_expr): Fix prototype.
41867 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41869 * misc.c (ggc_p): Remove.
41871 2002-03-27 Geert Bosch <bosch@gnat.com>
41873 * prj-makr.ads, prj-makr.adb : New files.
41875 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
41877 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41878 (lang_mark_tree): Make static, rename.
41880 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
41882 * misc.c (maybe_build_cleanup): Remove.
41884 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
41886 * gigi.h (yyparse): Remove.
41888 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
41890 From Ben Brosgol <brosgol@gnat.com>
41891 * gnat_rm.texi: Sync with ACT version.
41893 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
41895 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41896 (gnat_init): Remove old hook.
41898 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
41900 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41901 (yyparse): Rename gnat_parse_file.
41903 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
41905 Delete all lines containing "$Revision:".
41906 * xeinfo.adb: Don't look for revision numbers.
41907 * xnmake.adb: Likewise.
41908 * xsinfo.adb: Likewise.
41909 * xsnames.adb: Likewise.
41910 * xtreeprs.adb: Likewise.
41912 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41914 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41915 gnat_tree_code_name): Delete.
41916 (tree_code_type, tree_code_length, tree_code_name): Define.
41917 (gnat_init): Don't try to copy into the various tree_code
41920 2002-03-11 Richard Henderson <rth@redhat.com>
41922 * Makefile.in (.NOTPARALLEL): Add fake tag.
41924 2002-03-07 Geert Bosch <bosch@gnat.com>
41926 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41927 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41928 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41929 switch-m.adb, switch-m.ads : New files.
41931 2002-03-07 Geert Bosch <bosch@gnat.com>
41933 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41934 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41935 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41936 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41937 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41938 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41939 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41940 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41941 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41942 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41943 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41944 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41945 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41946 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41947 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41948 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41949 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41950 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41951 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41952 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41953 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41954 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41955 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41956 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41957 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41958 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41959 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41960 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41961 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41962 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41963 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41964 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41965 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41966 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41967 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41968 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41969 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41970 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41971 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41972 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41973 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41974 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41975 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41976 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41977 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41978 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41979 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41980 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41981 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41982 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41983 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41984 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41985 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41986 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41987 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41988 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41989 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41990 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41991 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41992 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41993 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41994 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41995 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41996 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41997 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41998 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41999 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
42000 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
42001 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
42002 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
42003 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
42004 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
42005 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
42006 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
42007 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
42008 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
42009 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
42010 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
42011 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
42012 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
42013 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
42014 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
42015 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
42016 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
42017 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
42018 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
42019 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
42020 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
42021 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
42022 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
42023 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
42024 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
42025 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
42026 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
42027 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
42028 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
42029 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
42031 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
42032 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
42033 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
42034 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
42036 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
42037 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
42039 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
42040 to mdll-fil.ad[bs] and mdll-util.ad[bs]
42042 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
42043 from mdllfile.ad[bs] and mdlltool.ad[bs]
42045 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
42047 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
42048 lieu of explicit sizeof/sizeof.
42050 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
42052 * misc.c (copy_lang_decl): Remove.
42054 2002-02-27 Zack Weinberg <zack@codesourcery.com>
42056 * misc.c: Delete traditional-mode-related code copied from the
42057 C front end but not used, or used only to permit the compiler
42060 2002-02-07 Richard Henderson <rth@redhat.com>
42062 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
42063 * adaint.h (__gnat_to_gm_time): Update prototype.
42065 2002-01-30 Richard Henderson <rth@redhat.com>
42067 * trans.c (tree_transform) [N_Loop_Statement]: Use
42068 expand_exit_loop_top_cond.
42070 2001-12-23 Richard Henderson <rth@redhat.com>
42072 * utils.c (end_subprog_body): Push GC context around
42073 rest_of_compilation for nested functions.
42075 2001-12-23 Richard Henderson <rth@redhat.com>
42077 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
42079 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
42081 * gnat-style.texi (Declarations and Types): Remove ancient style
42082 rule which was mandated by code generation issues.
42084 * gnat-style.texi (header): Add @dircategory, @direntry.
42085 (title page): Remove date.
42086 (general) Add @./@: where approriate, and two spaces after the
42087 full stop at the end of a sentence. Use @samp markup when
42088 referring concrete lexical entities (keywords, attribute names
42089 etc.), and @syntax for ARM grammar elements. Use @r for English
42090 text in comments. Use @emph for emphasis. Change "if-statements"
42091 etc. to "if statements" (without @samp). Break long lines. Make
42092 casing of section names consistent.
42093 (Identifiers): Use @samp markup for variable names.
42094 (Comments): Use @samp markup for comment characters. Line-end
42095 comments may follow any Ada code, not just statements. Fix
42096 misspelling of "Integer" as "integer".
42097 (Loop statements): Do not use variable name "I", use "J".
42098 (Subprogram Declarations): Document alignment.
42099 (Subprogram Bodies, Block statements): Document empty line before
42102 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
42104 * make.adb (Add_Switch): Make Generic_Position a procedure. The
42105 function approach did not work well because of a side effect (the
42106 function call could reallocate the table which was being indexed
42107 using its result). Fixes ada/4851.
42109 2001-12-19 Robert Dewar <dewar@gnat.com>
42111 * bindgen.adb: Minor reformatting
42113 * cstand.adb: Minor reformatting
42115 * fmap.adb: Minor reformatting
42116 Change name from Add for Add_To_File_Map (Add is much too generic)
42117 Change Path_Name_Of to Mapped_Path_Name
42118 Change File_Name_Of to Mapped_File_Name
42119 Fix copyright dates in header
42122 Change name from Add for Add_To_File_Map (Add is much too generic)
42123 Change Path_Name_Of to Mapped_Path_Name
42124 Change File_Name_Of to Mapped_File_Name
42125 Fix copyright dates in header
42127 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
42128 Add use clause for Fmap.
42130 * make.adb: Minor reformatting
42132 * osint.adb: Minor reformatting. Change of names in Fmap.
42133 Add use clause for Fmap.
42135 * prj-env.adb: Minor reformatting
42137 * prj-env.ads: Minor reformatting
42139 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
42140 error found (there were odd exceptions to this general rule in
42141 -gnatec/-gnatem processing)
42143 2001-12-19 Olivier Hainque <hainque@gnat.com>
42145 * raise.c (__gnat_eh_personality): Exception handling personality
42146 routine for Ada. Still in rough state, inspired from the C++ version
42147 and still containing a bunch of debugging artifacts.
42148 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
42149 inspired from the C++ library.
42151 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
42152 exception handling integration.
42154 2001-12-19 Arnaud Charlet <charlet@gnat.com>
42156 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
42157 (HIE_SOURCES): Add s-secsta.ad{s,b}.
42158 (HIE_OBJS): Add s-fat*.o
42159 (RAVEN_SOURCES): Remove files that are no longer required. Add
42160 interrupt handling files.
42161 (RAVEN_MOD): Removed, no longer needed.
42163 2001-12-19 Robert Dewar <dewar@gnat.com>
42165 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
42166 Add 2001 to copyright date
42168 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
42169 need to force universal inlining for these cases.
42171 2001-12-19 Arnaud Charlet <charlet@gnat.com>
42173 * s-taprob.adb: Minor clean ups so that this unit can be used in
42176 * exp_ch7.adb: Allow use of secondary stack in HI mode.
42177 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
42179 2001-12-19 Vincent Celier <celier@gnat.com>
42181 * prj-tree.ads (Project_Node_Record): Add comments for components
42182 Pkg_Id and Case_Insensitive.
42184 2001-12-19 Pascal Obry <obry@gnat.com>
42186 * g-socket.adb: Minor reformatting. Found while reading code.
42188 2001-12-19 Robert Dewar <dewar@gnat.com>
42190 * prj-tree.ads: Minor reformatting
42192 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
42194 * config-lang.in (diff_excludes): Remove.
42196 2001-12-17 Ed Schonberg <schonber@gnat.com>
42198 * sem_res.adb (Resolve_Selected_Component): do not generate a
42199 discriminant check if the selected component is a component of
42200 the argument of an initialization procedure.
42202 * trans.c (tree_transform, case of arithmetic operators): If result
42203 type is private, the gnu_type is the base type of the full view,
42204 given that the full view itself may be a subtype.
42206 2001-12-17 Robert Dewar <dewar@gnat.com>
42208 * sem_res.adb: Minor reformatting
42210 * trans.c (tree_transform, case N_Real_Literal): Add missing third
42211 parameter in call to Machine (unknown horrible effects from this
42214 * urealp.h: Add definition of Round_Even for call to Machine
42215 Add third parameter for Machine
42217 2001-12-17 Ed Schonberg <schonber@gnat.com>
42219 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
42220 predefined units in No_Run_Time mode.
42222 2001-12-17 Richard Kenner <kenner@gnat.com>
42224 * misc.c (insn-codes.h): Now include.
42226 2001-12-17 Olivier Hainque <hainque@gnat.com>
42228 * a-except.adb: Preparation work for future integration of the GCC 3
42229 exception handling mechanism
42230 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
42231 to factorize previous code sequences and make them externally callable,
42232 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
42233 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
42234 Use the new notification routines.
42236 2001-12-17 Emmanuel Briot <briot@gnat.com>
42238 * prj-tree.ads (First_Choice_Of): Document the when others case
42240 2001-12-17 Arnaud Charlet <charlet@gnat.com>
42242 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
42243 HI-E mode, in order to support Ravenscar profile properly.
42245 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
42246 mode on 32 bits targets.
42248 2001-12-17 Vincent Celier <celier@gnat.com>
42250 * fmap.adb: Initial version.
42252 * fmap.ads: Initial version.
42254 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
42255 If search is successfully done, add to mapping.
42257 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
42260 (Gnatmake): Add new local variable Mapping_File_Name.
42261 Create mapping file when using project file(s).
42262 Delete mapping file before exiting.
42264 * opt.ads (Mapping_File_Name): New variable
42266 * osint.adb (Find_File): Use path name found in mapping, if any.
42268 * prj-env.adb (Create_Mapping_File): New procedure
42270 * prj-env.ads (Create_Mapping_File): New procedure.
42272 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
42275 * usage.adb: Add entry for new switch -gnatem.
42277 * Makefile.in: Add dependencies for fmap.o.
42279 2001-12-17 Ed Schonberg <schonber@gnat.com>
42281 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
42282 is a package instantiation rewritten as a package body.
42283 (Install_Withed_Unit): Undo previous change, now redundant.
42285 2001-12-17 Gary Dismuke <dismukes@gnat.com>
42288 (Compute_Length): Move conversion to Unsigned to callers.
42289 (Get_Max_Size): Convert Len expression to Unsigned after calls to
42290 Compute_Length and Determine_Range.
42291 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
42292 Compute_Length and Determine_Range.
42293 Above changes fix problem with length computation for supernull arrays
42294 where Max (Len, 0) wasn't getting applied due to the Unsigned
42295 conversion used by Compute_Length.
42297 2001-12-17 Arnaud Charlet <charlet@gnat.com>
42300 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
42301 System.Secondary_Stack.
42302 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
42304 Remove unused entity RE_Exception_Data.
42306 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
42308 * rident.ads (No_Secondary_Stack): New restriction.
42310 2001-12-17 Joel Brobecker <brobecke@gnat.com>
42312 * gnat_rm.texi: Fix minor typos. Found while reading the section
42313 regarding "Bit_Order Clauses" that was sent to a customer.
42314 Very interesting documentation!
42316 2001-12-17 Robert Dewar <dewar@gnat.com>
42318 * sem_case.adb (Choice_Image): Avoid creating improper character
42319 literal names by using the routine Set_Character_Literal_Name. This
42320 fixes bombs in certain error message cases.
42322 2001-12-17 Arnaud Charlet <charlet@gnat.com>
42324 * a-reatim.adb: Minor reformatting.
42326 2001-12-17 Ed Schonberg <schonber@gnat.com>
42328 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
42329 case where the formal is an extension of another formal in the current
42330 unit or in a parent generic unit.
42332 2001-12-17 Arnaud Charlet <charlet@gnat.com>
42334 * s-tposen.adb: Update comments. Minor reformatting.
42335 Minor code clean up.
42337 * s-tarest.adb: Update comments. Minor code reorganization.
42339 2001-12-17 Gary Dismukes <dismukes@gnat.com>
42341 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
42344 2001-12-17 Robert Dewa <dewar@gnat.com>
42346 * exp_attr.adb: Minor reformatting
42348 2001-12-17 Ed Schonberg <schonber@gnat.com>
42350 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
42351 derivations nested within a child unit: verify that the parent
42352 type is declared in an outer scope.
42354 2001-12-17 Robert Dewar <dewar@gnat.com>
42356 * sem_ch12.adb: Minor reformatting
42358 2001-12-17 Ed Schonberg <schonber@gnat.com>
42360 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
42361 warning if current unit is a predefined one, from which bodies may
42364 2001-12-17 Robert Dewar <dewar@gnat.com>
42366 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
42367 Fix header format. Add 2001 to copyright date.
42369 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
42370 which caused CE during compilation if checks were enabled.
42372 2001-12-17 Vincent Celier <celier@gnat.com>
42375 (Switches_Of): New function
42376 (Test_If_Relative_Path): New procedure
42377 (Add_Switches): Use new function Switches_Of
42378 (Collect_Arguments_And_Compile): Use new function Switches_Of.
42379 When using a project file, test if there are any relative
42380 search path. Fail if there are any.
42381 (Gnatmake): Only add switches for the primary directory when not using
42382 a project file. When using a project file, change directory to the
42383 object directory of the main project file. When using a project file,
42384 test if there are any relative search path. Fail if there are any.
42385 When using a project file, fail if specified executable is relative
42386 path with directory information, and prepend executable, if not
42387 specified as an absolute path, with the exec directory. Make sure
42388 that only one -o switch is transmitted to the linker.
42390 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
42393 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
42394 when using a non standard naming scheme.
42395 (Check_Ada_Naming_Scheme): Make sure that error messages
42396 do not raise exceptions.
42397 (Is_Illegal_Append): Return True if there is no dot in the suffix.
42398 (Language_Independent_Check): Check the exec directory.
42400 * prj.adb (Project_Empty): Add new component Exec_Directory
42403 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
42404 (Project_Data): Add component Exec_Directory
42406 * snames.adb: Updated to match snames.ads revision 1.215
42408 * snames.ads: Added Exec_Dir
42410 2001-12-17 Robert Dewar <dewar@gnat.com>
42412 * make.adb: Minor reformatting
42414 * prj-nmsc.adb: Minor reformatting
42416 * snames.adb: Updated to match snames.ads
42418 * snames.ads: Alphebetize entries for project file
42420 2001-12-17 Ed Schonberg <schonber@gnat.com>
42422 * trans.c (process_freeze_entity): Do nothing if the entity is a
42423 subprogram that was already elaborated.
42425 2001-12-17 Richard Kenner <kenner@gnat.com>
42427 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
42428 and Esize if object is referenced via pointer.
42430 2001-12-17 Ed Schonberg <schonber@gnat.com>
42432 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
42433 is discrete before analyzing choices.
42435 2001-12-17 Joel Brobecker <brobecke@gnat.com>
42437 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
42438 containing the name of the Ada Main Program. This string is mainly
42439 intended for the debugger.
42440 (Gen_Output_File_C): Do the equivalent change when generating a C file.
42442 2001-12-17 Robert Dewar <dewar@gnat.com>
42444 * ali.adb: Set new Dummy_Entry field in dependency entry
42446 * ali.ads: Add Dummy_Entry field to source dependency table
42448 * bcheck.adb (Check_Consistency): Ignore dummy D lines
42450 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
42452 * lib-writ.ads: Document dummy D lines for missing files.
42454 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
42456 2001-12-17 Robert Dewar <dewar@gnat.com>
42458 * ali.adb: Type reference does not reset current file.
42460 * ali.adb: Recognize and scan renaming reference
42462 * ali.ads: Add spec for storing renaming references.
42464 * lib-xref.ads: Add documentation for handling of renaming references
42466 * lib-xref.adb: Implement output of renaming reference.
42469 (Determine_Range): Document local variables
42470 (Determine_Range): Make sure Hbound is initialized. It looks as though
42471 there could be a real problem here with an uninitialized reference
42472 to Hbound, but no actual example of failure has been found.
42474 2001-12-17 Laurent Pautet <pautet@gnat.com>
42477 Fix comment of Shutdown_Socket and Close_Socket. These functions
42478 should not fail silently because if they are called twice, this
42479 probably means that there is a race condition in the user program.
42480 Anyway, this behaviour is consistent with the rest of this unit.
42481 When an error occurs, an exception is raised with the error message
42482 as exception message.
42484 2001-12-17 Robert Dewar <dewar@gnat.com>
42486 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
42487 that it happens before modification of Sloc values for -gnatD.
42489 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
42490 so that it happens before modification of Sloc values for -gnatD.
42492 * switch.adb: Minor reformatting
42494 2001-12-15 Richard Henderson <rth@redhat.com>
42496 * sem_ch7.adb: Wrap comment.
42498 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42500 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
42501 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
42502 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
42503 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
42504 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
42505 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
42506 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
42507 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
42508 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
42509 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
42510 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
42511 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
42512 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
42513 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
42514 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
42515 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
42516 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
42517 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
42518 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
42519 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
42520 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
42521 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
42522 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
42523 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
42526 2001-12-14 Vincent Celier <celier@gnat.com>
42528 * osint.adb(Create_Debug_File): When an object file is specified,
42529 put the .dg file in the same directory as the object file.
42531 2001-12-14 Robert Dewar <dewar@gnat.com>
42533 * osint.adb: Minor reformatting
42535 * lib-xref.adb (Output_Instantiation): New procedure to generate
42536 instantiation references.
42538 * lib-xref.ads: Add documentation of handling of generic references.
42540 * ali.adb (Read_Instantiation_Ref): New procedure to read
42541 instantiation references
42543 * ali.ads: Add spec for storing instantiation references
42545 * bindusg.adb: Minor reformatting
42547 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42549 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42551 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42553 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42557 Add 2001 to copyright date
42558 Add entry for Latin-5 (Cyrillic ISO-8859-5)
42560 2001-12-14 Matt Gingell <gingell@gnat.com>
42562 * adaint.c: mktemp is a macro on Lynx and can not be used as an
42565 2001-12-14 Richard Kenner <kenner@gnat.com>
42567 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
42568 if operand is CONSTRUCTOR.
42570 2001-12-14 Ed Schonberg <schonber@gnat.com>
42572 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
42573 before emiting check on right-hand side, so that exception information
42576 2001-12-14 Richard Kenner <kenner@gnat.com>
42578 * utils.c (create_var_decl): Throw away initializing expression
42579 if just annotating types and non-constant.
42581 2001-12-14 Vincent Celier <celier@gnat.com>
42583 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
42586 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42588 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
42590 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42592 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
42594 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42596 * ChangeLog: Remove piece of diff output.
42598 2001-12-14 Geert Bosch <bosch@gnat.com>
42600 * config-lang.in: Update copyright notice
42602 * layout.adb: Remove commented out code.
42604 * mdllfile.ads: Update copyright notice. Fix header format.
42606 * sem_case.ads: Likewise.
42608 * sem_ch3.adb: Minor reformatting.
42610 2001-12-12 Geert Bosch <bosch@gnat.com>
42612 * freeze.ads: Update copyright date.
42614 * g-comlin.ads: Minor reformatting.
42616 * gnat-style.texi: Fix typo.
42618 2001-12-12 Geert Bosch <bosch@gnat.com>
42620 * einfo.h: Regenerate.
42622 2001-12-12 Ed Schonberg <schonber@gnat.com>
42624 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
42625 on known node types, rather than untyped fields. Further cleanups.
42627 2001-12-12 Robert Dewar <dewar@gnat.com>
42630 (Save_Entity_Descendant): Minor comment update.
42631 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
42632 of an N_Attribute_Reference node. As per note below, this does not
42633 eliminate need for Associated_Node in attribute ref nodes.
42634 (Associated_Node): Documentation explicitly mentions attribute
42635 reference nodes, since this field is used in such nodes.
42637 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
42639 2001-12-12 Robert Dewar <dewar@gnat.com>
42641 * s-stalib.adb: Add more comments on with statements being needed
42643 * par-ch12.adb: Minor reformatting
42645 * prj-dect.ads: Fix copyright header
42647 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
42648 inputs fit in 32 bits, but the result still overflows.
42650 * s-fatgen.ads: Minor comment improvement
42652 2001-12-12 Ed Schonberg <schonber@gnat.com>
42654 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
42655 formal derived type, look for an inherited component from the full
42656 view of the parent, if any.
42658 2001-12-12 Robert Dewar <dewar@gnat.com>
42660 * checks.ads (Apply_Alignment_Check): New procedure.
42662 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
42663 ensure that the alignment of objects with address clauses is
42664 appropriate, and raise PE if not.
42666 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
42667 Exp_Pakd.Known_Aligned_Enough
42669 * mdllfile.ads: Minor reformatting
42671 * mlib-fil.ads: Minor reformatting
42673 2001-12-12 Ed Schonberg <schonber@gnat.com>
42675 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
42676 fix to any component reference if enclosing record has non-standard
42679 2001-12-12 Vincent Celier <celier@gnat.com>
42681 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
42684 2001-12-12 Ed Schonberg <schonber@gnat.com>
42686 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
42689 2001-12-12 Robert Dewar <dewar@gnat.com>
42691 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
42693 2001-12-12 Emmanuel Briot <briot@gnat.com>
42695 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42696 and it adds dependencies to system.io.
42698 2001-12-12 Pascal Obry <obry@gnat.com>
42700 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
42703 2001-12-11 Ed Schonberg <schonber@gnat.com>
42705 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
42706 that is the parent of other generics, the instance body replaces the
42707 instance node. Retrieve the instance of the spec, which is the one
42708 that is visible in clients and within the body.
42710 2001-12-11 Vincent Celier <celier@gnat.com>
42712 * gnatmain.adb: Initial version.
42714 * gnatmain.ads: Initial version.
42716 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42718 * snames.adb: Updated to match snames.ads.
42720 * snames.ads: Added Gnatstub.
42722 2001-12-11 Vincent Celier <celier@gnat.com>
42724 * prj-attr.adb (Initialization_Data): Change name from
42725 Initialisation_Data.
42727 2001-12-11 Emmanuel Briot <briot@gnat.com>
42729 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42730 + and * applied to backslashed expressions like \r.
42732 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
42734 * g-os_lib.ads: String_List type added, Argument_List type is now
42735 subtype of String_List.
42737 2001-12-11 Robert Dewar <dewar@gnat.com>
42739 * g-os_lib.ads: Change copyright to FSF
42740 Add comments for String_List type
42742 2001-12-11 Vincent Celier <celier@gnat.com>
42744 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42745 string to the buffer).
42747 2001-12-11 Ed Schonberg <schonber@gnat.com>
42749 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42752 * sem_attr.adb: Simplify previous fix for Address.
42753 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42754 to avoid anomalies where the bound of the type appears to raise
42757 2001-12-11 Robert Dewar <dewar@gnat.com>
42759 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42762 2001-12-11 Ed Schonber <schonber@gnat.com>
42764 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42765 renamed unit before checking for recursive instantiations.
42767 2001-12-11 Emmanuel Briot <briot@gnat.com>
42769 * prj.ads: Add comments for some of the fields.
42771 2001-12-11 Robert Dewar <dewar@gnat.com>
42773 * lib-xref.adb (Output_Refs): Don't output type references outside
42774 the main unit if they are not otherwise referenced.
42776 2001-12-11 Ed Schonberg <schonber@gnat.com>
42778 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42779 code and diagnose additional illegal uses
42781 * sem_util.adb (Is_Object_Reference): An indexed component is an
42782 object only if the prefix is.
42784 2001-12-11 Vincent Celier <celier@gnat.com>
42786 * g-diopit.adb: Initial version.
42788 * g-diopit.ads: Initial version.
42791 (Expand_Path): Avoid use of Unbounded_String
42792 (Find, Wildcard_Iterator): Moved to child package Iteration
42794 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42796 2001-12-11 Robert Dewar <dewar@gnat.com>
42798 * sem_attr.adb: Minor reformatting
42800 2001-12-11 Ed Schonberg <schonber@gnat.com>
42802 * sem_ch3.adb: Clarify some ???.
42804 2001-12-11 Robert Dewar <dewar@gnat.com>
42806 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42807 Exp_Pakd.Known_Aligned_Enough
42809 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42810 version is moved to Exp_Ch13.
42812 2001-12-11 Robert Dewar <dewar@gnat.com>
42814 * einfo.ads: Minor reformatting
42816 * exp_ch5.adb: Add comment for previous.change
42818 * ali.adb: New interface for extended typeref stuff.
42820 * ali.ads: New interface for typeref stuff.
42822 * checks.adb (Apply_Alignment_Check): New procedure.
42824 * debug.adb: Add -gnatdM for modified ALI output
42826 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42828 * lib-xref.adb: Extend generation of <..> notation to cover
42829 subtype/object types. Note that this is a complete rewrite,
42830 getting rid of the very nasty quadratic algorithm previously
42831 used for derived type output.
42833 * lib-xref.ads: Extend description of <..> notation to cover
42834 subtype/object types. Uses {..} for these other cases.
42835 Also use (..) for pointer types.
42837 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42839 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
42840 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42842 2001-12-11 Vincent Celier <celier@gnat.com>
42845 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42846 Changed /BIND_ONLY to /ACTIONS=BIND
42847 Changed /LINK_ONLY to /ACTIONS=LINK
42849 2001-12-11 Ed Schonberg <schonber@gnat.com>
42851 * sem_ch8.adb (Find_Selected_Component): improved search for a
42852 candidate package in case of error.
42854 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42855 chain back on scope stack before reinstalling use clauses.
42857 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42858 is enabled, do not kill the code for the condition, to preserve
42861 2001-12-11 Robert Dewar <dewar@gnat.com>
42863 * checks.adb (Insert_Valid_Check): Apply validity check to expression
42864 of conversion, not to result of conversion.
42866 2001-12-11 Ed Schonberg <schonber@gnat.com>
42868 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42869 before freezing parent. If the declarations are mutually recursive,
42870 an access to the current record type may be frozen before the
42871 derivation is complete.
42873 2001-12-05 Vincent Celier <celier@gnat.com>
42875 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42876 -c /COMPILE_ONLY, -l /LINK_ONLY
42879 (Bind_Only): New Flag
42880 (Link_Only): New flag
42882 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42885 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42888 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42889 (Gnatmake): Set the step flags. Only perform a step if the
42890 corresponding step flag is True.
42891 (Scan_Make_Arg): Reset the bind and link step flags when -u
42892 or -gnatc has been specified.
42894 2001-12-05 Ed Schonberg <schonber@gnat.com>
42896 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42897 get bounds from right operand.
42899 * sem_eval.adb: Minor reformatting
42901 * exp_util.adb (Make_Literal_Range): use bound of literal rather
42902 than Index'First, its lower bound may be different from 1.
42904 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42907 2001-12-05 Vincent Celier <celier@gnat.com>
42909 * prj-nmsc.adb Minor reformatting
42911 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42912 set and libraries are not supported.
42914 2001-12-05 Ed Schonberg <schonber@gnat.com>
42916 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42917 private view explicitly, so the back-end can treat as a global
42920 2001-12-05 Ed Schonberg <schonber@gnat.com>
42922 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42923 unit, always replace instance node with new body, for ASIS use.
42925 2001-12-05 Vincent Celier <celier@gnat.com>
42927 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42928 libraries are not supported and both attributes Library_Name and
42929 Library_Dir are specified.
42931 * prj-proc.adb (Expression): Set location of Result to location of
42934 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42935 (prj-nmsc is now importing MLib.Tgt)
42937 * prj-proc.adb: Put the change indicated above that was forgotten.
42939 2001-12-05 Robert Dewar <dewar@gnat.com>
42941 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42943 2001-12-05 Ed Schonberg <schonber@gnat.com>
42945 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42946 constraint, introduce explicit subtype declaration and derive from it.
42948 * sem_ch3.adb: Minor reformatting
42950 2001-12-05 Robert Dewar <dewar@gnat.com>
42952 * checks.adb (Determine_Range): Increase cache size for checks.
42955 * exp_ch6.adb: Minor reformatting
42956 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42957 a parameter whose root type is System.Address, since treating such
42958 subprograms as pure in the code generator is almost surely a mistake
42959 that will lead to unexpected results.
42961 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42962 change handling of conversions.
42964 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42966 2001-12-05 Ed Schonberg <schonber@gnat.com>
42968 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42969 aggregate with static wrong size, attach generated Raise node to
42972 2001-12-05 Robert Dewar <dewar@gnat.com>
42974 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42975 Fixes compilation abandoned bomb in B24009B.
42977 2001-12-05 Ed Schonberg <schonber@gnat.com>
42980 Document use of Associated_Node on Selected_Components.
42981 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42982 to clarify use of untyped descendant fields.
42984 2001-12-05 Robert Dewar <dewar@gnat.com>
42986 * prj-dect.ads: Add ??? comment
42987 Add 2001 to copyright notice (was not done in after all)
42989 * prj-part.adb: Minor reformatting. Reword one awkward error message.
42991 * prj.ads: Minor reformatting throughout, and add some ??? comments
42993 * snames.ads: Minor reformatting
42995 2001-12-05 Geert Bosch <bosch@gnat.com>
42997 * snames.adb: Autoupdate
42999 2001-12-05 Vincent Celier <celier@gnat.com>
43001 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
43003 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
43005 * prj-env.adb: Minor comment changes (modifying -> extends).
43007 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
43009 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
43012 * prj.adb (Initialize): Change Modifying to Extends.
43014 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
43016 * prj.ads: Minor comment change (Modifying -> extending).
43018 * snames.ads: Change modifying to extends.
43020 2001-12-05 Robert Dewar <dewar@gnat.com>
43022 * sem_warn.adb: Remove stuff for conditionals, we are not going to
43025 * sem_warn.ads: Remove stuff for conditionals, we are not going to
43026 do this after all. Add 2001 to copyright notice
43028 2001-12-04 Geert Bosch <bosch@gnat.com>
43030 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
43032 2001-12-04 Robert Dewar <dewar@gnat.com>
43034 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
43035 location if we already have errors. Stops some cases of cascaded
43038 * errout.adb: Improve comment.
43040 2001-12-04 Robert Dewar <dewar@gnat.com>
43043 (Analyze_Formal_Type_Definition): Defend against Error.
43044 (Analyze_Formal_Subprogram): Defend against Error.
43046 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
43047 remove following semicolon if present. Removes cascaded error.
43049 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
43052 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
43053 exceptions equals 0.
43054 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
43055 Fixes PIWG E tests (which have to be run with -gnatL).
43057 2001-12-04 Robert Dewar <dewar@gnat.com>
43059 * einfo.ads: Minor reformatting
43061 2001-12-04 Ed Schonberg <schonber@gnat.com>
43063 * einfo.ads: Block_Node points to the identifier of the block, not to
43064 the block node itself, to preserve the link when the block is
43065 rewritten, e.g. within an if-statement with a static condition.
43067 * inline.adb (Cleanup_Scopes): recover block statement from block
43068 entity using new meaning of Block_Node.
43070 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
43071 identifier of block node, rather than to node itself.
43073 2001-12-04 Gary Dismukes <dismukes@gnat.com>
43076 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
43077 (Discrimify): Go back to setting the Etypes of the selected component
43078 because the Vname component does not exist at this point and will
43079 fail name resolution. Also set Analyzed.
43080 Remove with and use of Sem_Res.
43082 2001-12-04 Arnaud Charlet <charlet@gnat.com>
43084 * Makefile.in: (HIE_SOURCES): add s-fat*.
43086 2001-12-04 Robert Dewar <dewar@gnat.com>
43089 (Compile_Time_Known_Attribute): New procedure.
43090 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
43091 proper range check.
43093 2001-12-04 Ed Schonberg <schonber@gnat.com>
43095 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
43096 processing discriminants to diagnose illegal default values.
43098 2001-12-04 Ed Schonberg <schonber@gnat.com>
43100 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
43101 access discriminant within a type extension that constrains its
43102 parent discriminants.
43104 2001-12-04 Ed Schonberg <schonber@gnat.com>
43106 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
43107 is malformed, use instance of Any_Id to allow analysis to proceed.
43109 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
43110 type definition is illegal.
43111 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
43114 2001-12-04 Ed Schonberg <schonber@gnat.com>
43116 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
43119 2001-12-04 Robert Dewar <dewar@gnat.com>
43121 * errout.adb: Minor reformatting
43123 2001-12-04 Robert Dewar <dewar@gnat.com>
43125 * exp_util.adb: Minor reformatting from last change
43127 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
43128 which is a rewriting of an expression, traverse the original
43129 expression to remove warnings that may have been posted on it.
43131 2001-12-04 Ed Schonberg <schonber@gnat.com>
43133 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
43134 record that has other packed components.
43136 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
43138 * adaint.c: Minor cleanups.
43140 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
43142 * adaint.c: Do not use utime.h on vxworks.
43144 2001-12-04 Arnaud Charlet <charlet@gnat.com>
43146 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
43147 more confusion than it solves.
43149 2001-12-04 Geert bosch <bosch@gnat.com>
43151 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
43153 2001-12-04 Geert Bosch <bosch@gnat.com>
43155 * Makefile.in (update-sources): New target.
43156 For use by gcc_release script.
43158 2001-12-04 Ed Schonberg <schonber@gnat.com>
43160 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
43161 a configuration pragma, it is now legal wherever a pragma can appear.
43163 2001-12-04 Zack Weinberg <zack@codesourcery.com>
43165 * Makefile.in: Don't set ALL. Delete @cross_defines@,
43166 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
43167 is now @CROSS@ -DIN_GCC; update comment.
43169 2001-12-04 Robert Dewar <dewar@gnat.com>
43171 * einfo.adb (Has_Pragma_Pure_Function): New flag.
43172 Fix problem that stopped ceinfo from working
43174 * einfo.ads (Has_Pragma_Pure_Function): New flag.
43176 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
43178 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
43181 (File_Time_Stamp): New procedure.
43182 (Preserve_Mode): New boolean.
43183 (Write_Unit): Pass time stamp.
43184 Implement -p switch (preserve time stamps).
43186 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
43188 * gnatchop.adb: Do usage info for -p switch
43190 * adaint.h (__gnat_set_file_time_name): New function
43192 * adaint.c (__gnat_set_file_time_name): Implement
43194 * adaint.h: Fix typo
43196 2001-12-03 Robert Dewar <dewar@gnat.com>
43198 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
43199 have Associated_Node.
43201 2001-12-03 Robert Dewar <dewar@gnat.com>
43203 * prj-proc.adb: Minor reformatting
43205 * make.adb: Minor reformatting
43207 2001-12-03 Geert Bosch <bosch@gnat.com>
43209 * make.adb: Minor reformatting.
43211 2001-12-03 Robert Dewar <dewar@gnat.com>
43213 * sem_ch12.adb: Minor reformatting
43215 2001-12-03 Ed Schonberg <schonber@gnat.com>
43217 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
43218 push Standard on the stack before analyzing the instance body,
43219 in order to have a clean visibility environment.
43221 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
43223 2001-12-03 Ed Schonberg <schonber@gnat.com>
43225 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
43226 instantiation of a body that contains an inlined body.
43228 2001-12-03 Ed Schonberg <schonber@gnat.com>
43231 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
43232 to prevent freezing within formal packages.
43233 (Freeze_Subprogram_Body): If body comes from another instance that
43234 appeared before its own body, place freeze node at end of current
43235 declarative part, to prevent a back-end crash.
43236 (Inline_Instance_Body): Handle properly a package instance within
43237 a subprogram instance that is a child unit.
43239 2001-12-01 Graham Stott <grahams@redhat.com>
43241 * Makefile.in (misc.o): Add missing $(srcdir) prefix
43242 and add optabs.h dependency.
43244 * misc.c: Include optabs.h
43245 (gnat_tree_code_type): Make static and const.
43246 (gnat_tree_code_length): Likewise.
43247 (gnat_tree_code_name): Likewise.
43248 (update_setjmp_buf): Obtain operands mode from insn_data.
43250 2001-11-29 Richard Henderson <rth@redhat.com>
43252 * init.c: Remove obsolete dwarf2 frame.h section.
43254 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
43256 * Make-lang.in (ada.generated-manpages): New dummy target.
43258 2001-11-29 Ed Schonberg <schonber@gnat.com>
43260 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
43261 into Command, an array conversion is illegal here. Uncovered by
43264 2001-11-28 Geert Bosch <bosch@gnat.com>
43266 * init.c: Minor whitespace changes.
43268 2001-11-28 Doug Rupp <rupp@gnat.com>
43270 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
43273 2001-11-28 Zack Weinberg <zack@codesourcery.com>
43275 * misc.c (gnat_expand_constant): Move declaration above
43276 definition of lang_hooks.
43277 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
43278 (gnat_init): lang_expand_constant no longer exists.
43280 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
43281 always have vprintf.
43282 (gnat_init): Always call set_internal_error_function.
43284 2001-11-27 Andreas Jaeger <aj@suse.de>
43286 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
43288 2001-11-27 Laurent Guerby <guerby@acm.org>
43290 * Makefile.in: Regenerate Ada dependencies.
43292 2001-11-26 Richard Henderson <rth@redhat.com>
43294 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
43295 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
43296 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
43298 2001-11-25 Laurent Guerby <guerby@acm.org>
43300 * sysdep.c (rts_get_*): Fix style.
43302 2001-11-19 Laurent Guerby <guerby@acm.org>
43304 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
43305 since it is of no apparent use and cause warnings.
43307 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
43309 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
43311 (gnat_init): Don't return NULL.
43312 (finish_parse): Remove.
43314 2001-11-17 Laurent Guerby <guerby@acm.org>
43316 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
43317 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
43318 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
43319 * lang-spec.h: Add missing struct field to silence warnings.
43320 * sysdep.c (rts_get_*): Provide K&R prototype.
43321 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
43322 * traceback.c (Unlock_Task, Lock_Task): Likewise.
43323 * tracebak.c (__gnat_backtrace): Remove unused variable.
43324 * utils.c (end_subprog_body): Move to K&R style.
43326 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43328 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
43330 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
43332 * misc.c (gnat_init): Change prototype. Include the
43333 functionality of the old init_parse and init_decl_processing.
43334 (gnat_init_decl_processing): New prototype.
43335 (init_parse): Remove.
43336 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
43338 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
43340 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
43341 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
43342 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
43343 set_yydebug): Remove.
43345 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
43347 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
43348 (struct lang_hooks): Constify.
43349 (language_string, lang_identify): Remove.
43350 * utils.c (init_decl_processing): Update.
43352 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
43354 * misc.c: Include langhooks-def.h.
43355 * Makefile.in: Update.
43357 2001-10-30 Robert Dewar <dewar@gnat.com>
43360 (Check_Identifier): Rewrite circuit to be compatible with use of letters
43361 in the upper half of ASCII.
43362 (Check_Identifier): Minor reformatting
43364 2001-10-30 Geert Bosch <bosch@gnat.com>
43366 * (Associated_Node, Set_Associated_Node): Do not check for
43369 2001-10-30 Robert Dewar <dewar@gnat.com>
43371 * a-reatim.ads: Minor reformatting
43373 2001-10-30 Robert Dewar <dewar@gnat.com>
43375 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
43376 undocumented declarations.
43378 2001-10-30 Pascal Obry <obry@gnat.com>
43380 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
43381 to the binder and linker.
43384 * mdll.ads: Fix layout. Update copyright notice.
43386 * mdll.adb: Fix layout. Update copyright notice.
43388 2001-10-30 Robert Dewar <dewar@gnat.com>
43390 * usage.adb: Minor fix to output for -gnaty.
43392 2001-10-30 Ed Schonberg <schonber@gnat.com>
43394 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
43395 to accommodate all its possible values.
43397 * a-reatim.adb (Split): Special-case handling of Time_Span_First
43398 and of small absolute values of T.
43400 2001-10-30 Richard Kenner <kenner@gnat.com>
43402 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
43403 set_mem_attributes since not needed and wrong if RESULT if a REG;
43404 fixes ACATS failures.
43406 2001-10-30 Geert Bosch <bosch@gnat.com>
43408 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
43409 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
43411 2001-10-30 Robert Dewar <dewar@gnat.com>
43413 * bindusg.adb: Undocument -f switch.
43415 * gnatcmd.adb: Remove /FULL_ELABORATION.
43417 * opt.ads (Force_RM_Elaboration_Order): Document that this is
43420 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
43422 * gnatbind.adb: Minor update of warning msg.
43424 2001-10-30 Vincent Celier <celier@gnat.com>
43426 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
43427 for project file switches (-P (/PROJECT_FILE=),
43428 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
43431 2001-10-30 Geert Bosch <bosch@gnat.com>
43433 * decl.c: Minor whitespace fixes.
43435 2001-10-30 Richard Kenner <kenner@gnat.com>
43437 * utils2.c (build_allocator): Test for SIZE overflow in array case too
43439 2001-10-30 Geert Bosch <bosch@gnat.com>
43441 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
43442 Found due to GCC 3.0 warning of using uninitialized value.
43445 (Get_Max_Size): Use variant record for tracking value/expression.
43446 Makes logic clearer and prevents warnings for uninitialized variables.
43447 (Layout_Array_Type): Use variant record for tracking value/expression.
43448 Makes logic clearer and prevents warnings for uninitialized variables.
43450 2001-10-30 Robert Dewar <dewar@gnat.com>
43452 * lib.adb: Minor reformatting
43454 * s-taprop.ads: Minor reformatting
43456 2001-10-29 Laurent Guerby <guerby@acm.org>
43459 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
43461 (_gnat_error_handler): Make MSG const.
43463 2001-10-29 Richard Kenner <kenner@gnat.com>
43465 * sysdep.c: Fix localtime_r problem on LynxOS.
43466 Also remove #elif to avoid warnings.
43468 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
43471 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
43473 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
43475 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
43476 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
43477 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
43478 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
43479 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
43480 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
43481 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
43482 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
43483 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
43484 types.ads, urealp.adb: Fix spelling errors.
43486 2001-10-27 Laurent Guerby <guerby@acm.org>
43488 * trans.c (gigi): Fix non determinism leading to bootstrap
43489 comparison failures for debugging information.
43491 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
43493 * gnat_rm.texi: Use @./@: where appropriate.
43495 2001-10-26 Robert Dewar <dewar@gnat.com>
43497 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
43499 2001-10-26 Richard Kenner <kenner@gnat.com>
43501 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
43503 2001-10-26 Richard Kenner <kenner@gnat.com>
43505 * decl.c (validate_size): Modify message for bad size to avoid
43506 implication that compiler is modifying the size.
43508 2001-10-26 Robert Dewar <dewar@gnat.com>
43510 * prj-util.adb: Minor reformatting. Fix bad header format.
43512 2001-10-26 Robert Dewar <dewar@gnat.com>
43514 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
43516 * sinfo.ads: Clarify use of Associated_Node (documentation only).
43518 * sem_ch12.adb: Change Node4 to Associated_Node. Change
43519 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
43520 much more narrowly in places where needed. These are cleanups.
43522 2001-10-26 Joel Brobecker <brobecke@gnat.com>
43524 * 5zosinte.ads (null_pthread): new constant.
43527 (Initialize_TCB): Initialize thread ID to null, to be able to verify
43528 later that this field has been set.
43529 (Finalize_TCB): ditto.
43530 (Suspend_Task): Verify that the thread ID is not null before using it.
43531 (Resume_Task): ditto.
43534 (Resume_All_Tasks): Lock the tasks list before using it.
43535 (Suspend_All_Tasks): ditto.
43537 2001-10-26 Richard Kenner <kenner@gnat.com>
43539 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
43540 Make constant variant of designated type for Is_Access_Constant.
43541 Call update_pointer_to with main variant.
43543 * trans.c (process_freeze_entity, process_type):
43544 Call update_pointer_to on main variant.
43546 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
43547 If main variant, update all other variants.
43549 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
43552 2001-10-26 Robert Dewar <dewar@gnat.com>
43554 * prj-util.adb: Minor reformatting
43556 2001-10-26 Robert Dewar <dewar@gnat.com>
43558 * prj-util.adb: Minor reformatting
43560 2001-10-26 Robert Dewar <dewar@gnat.com>
43562 * prj-attr.adb: Minor reformatting throughout
43564 2001-10-26 Robert Dewar <dewar@gnat.com>
43566 * prj-attr.ads: Minor reformatting
43567 Add ??? comment (this whole spec has almost no comments)
43569 2001-10-26 Vincent Celier <celier@gnat.com>
43571 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
43572 ("//") that precede the drive letter on Interix.
43574 2001-10-26 Geert Bosch <bosch@gnat.com>
43576 * gnat_rm.texi: Add GNAT Reference Manual.
43578 2001-10-25 Robert Dewar <dewar@gnat.com>
43580 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
43581 is Error. Similar change for other renaming cases.
43583 2001-10-25 Robert Dewar <dewar@gnat.com>
43585 * s-atacco.ads: Add pragma Inline_Always for functions.
43586 Fix header format. Add copyright 2001
43588 2001-10-25 Ed Schonberg <schonber@gnat.com>
43590 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
43591 return Error rather than Empty so that analysis can proceed.
43593 2001-10-25 Ed Schonberg <schonber@gnat.com>
43595 * sem_util.adb (Enter_Name): better handling of cascaded error
43596 messages when a unit appears in its own context.
43598 2001-10-25 Ed Schonberg <schonber@gnat.com>
43600 * sem_util.adb (Defining_Entity): in case of error, attach created
43601 entity to specification, so that semantic analysis can proceed.
43603 2001-10-25 Robert Dewar <dewar@gnat.com>
43606 (Defining_Entity): Deal with Error.
43607 (Process_End_Label): Deal with bad end label for.
43609 2001-10-25 Ed Schonberg <schonber@gnat.com>
43611 * sem_elab.adb (Check_A_Call): refine message when call is in an
43612 instance but callee is not declared in the generic unit.
43614 2001-10-25 Ed Schonberg <schonber@gnat.com>
43616 * sem_elab.adb (Check_A_Call): check for renaming before finding the
43617 enclosing unit, which may already be different from the calling unit.
43619 2001-10-25 Geert Bosch <bosch@gnat.com>
43621 * 4gintnam.ads: fix header format.
43623 2001-10-25 Ed Schonberg <schonber@gnat.com>
43625 * sem_res.adb (Resolve_Call): if the call is actually an indexing
43626 operation on the result of a parameterless call, perform elaboration
43627 check after the node has been properly rewritten.
43629 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
43630 inlined within the generic tree, the defining identifier is not a
43633 2001-10-25 Ed Schonberg <schonber@gnat.com>
43635 * sem_res.adb (Resolve): special-case resolution of Null in an
43636 instance or an inlined body to avoid view conflicts.
43638 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
43639 compatibility by retrieving the access type of the generic copy.
43641 2001-10-25 Robert Dewar <dewar@gnat.com>
43644 (Analyze_Number_Declaration): Handle error expression.
43645 (Signed_Integer_Type_Declaration): Handle error bound.
43646 (Analyze_Subtype_Indication): Handle error range.
43648 * sem_util.adb (Get_Index_Bounds): Check for Error.
43650 2001-10-25 Robert Dewar <dewar@gnat.com>
43652 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
43653 in no run time mode.
43655 2001-10-25 Pascal Obry <obry@gnat.com>
43657 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
43658 mode case for ALLOC case.
43660 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
43661 all platforms. Improvement of last change.
43663 2001-10-25 Robert Dewar <dewar@gnat.com>
43665 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
43667 2001-10-25 Geert Bosch <bosch@gnat.com>
43669 * osint.adb (Is_Relative): Remove duplicate.
43671 2001-10-25 Pascal Obry <obry@gnat.com>
43673 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
43674 pathnames in UNIX and DOS style with drive letter.
43675 (Is_Relative): new routine.
43677 * osint.adb: Minor reformatting
43679 * osint.adb (Is_Relative): implementation using
43680 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
43682 2001-10-25 Pascal Obry <obry@gnat.com>
43684 * g-dirope.adb (Basename): correctly compute offset between the
43685 original Path and the translated one.
43687 * g-dirope.adb: (Base_Name): add some comments.
43689 2001-10-25 Robert Dewar <dewar@gnat.com>
43691 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
43692 in HIE mode, avoids compilation abandoned message
43694 * exp_imgv.adb: Correct typo in previous change
43696 * exp_imgv.adb: Correct typo in previous change (not my day!)
43698 2001-10-25 Robert Dewar <dewar@gnat.com>
43700 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43702 2001-10-25 Pascal Obry <obry@gnat.com>
43704 * g-awk.ads: Move all pragma inlines next to the routine
43705 declarations. This is more uniform with other GNAT spec.
43707 2001-10-22 Geert Bosch <bosch@gnat.com>
43709 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43711 2001-10-19 Geert Bosch <bosch@gnat.com>
43713 * Makefile.in (tools, gnattools): Remove gnatmem.
43715 2001-10-17 Richard Henderson <rth@redhat.com>
43717 * Makefile.in (misc.o): Depend on langhooks.h.
43718 * misc.c: Include it.
43719 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43720 (LANG_HOOKS_DECODE_OPTION): New.
43721 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43723 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
43725 * trans.c (tree_transform): Adjust to recent change in
43726 expand_asm_operands to implement named asm operands.
43728 2001-10-11 Ed Schonberg <schonber@gnat.com>
43730 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43731 renaming of discriminant for mutable record type.
43733 2001-10-11 Robert Dewar <dewar@gnat.com>
43735 * validsw.adb: Properly save -gnatVn status.
43737 2001-10-11 Robert Dewar <dewar@gnat.com>
43739 * usage.adb: Add lines for V switch.
43741 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43742 (/VALIDITY_CHECKING).
43744 2001-10-11 Ed Schonberg <schonber@gnat.com>
43746 * sem_type.adb (Add_One_Interp): an operator for a type declared in
43747 an extension of System is known to be visible.
43749 2001-10-11 Ed Schonberg <schonber@gnat.com>
43751 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43752 properly. Fixes regression on ACATS C34005G.
43754 2001-10-11 Robert Dewar <dewar@gnat.com>
43756 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43757 loop in generic instance, since this is likely not very useful.
43759 2001-10-11 Robert Dewar <dewar@gnat.com>
43761 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43762 the error message for high integrity mode.
43764 * rtsfind.adb (RTE): Give message if we try to find an entity that
43765 is not available in high integrity mode.
43768 (OK_To_Use_In_HIE_Mode): New array.
43769 (RTE): May return Empty in high integrity mode.
43771 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43772 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43774 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43775 unit if not inlined always and in no runtime mode. Fixes problem
43776 caused by new Rtsfind changes.
43778 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43781 * rtsfind.adb (RTE): Make sure we do not try to load unit after
43782 giving message for entity not available in high integrity mode.
43784 2001-10-11 Pascal Obry <obry@gnat.com>
43786 * impunit.adb: Add GNAT.CRC32.
43788 2001-10-11 Ed Schonberg <schonber@gnat.com>
43790 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43791 properly the case where one universal operand in a non-static
43792 exponentiation of a real literal.
43794 2001-10-11 Ed Schonberg <schonber@gnat.com>
43796 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43797 clause, return the gobal finalization list, for lack of anthing else.
43799 2001-10-11 Ed Schonberg <schonber@gnat.com>
43801 * exp_ch7.adb (Make_Transient_Block): if statement is within
43802 exception handler, always use new transient scope to place Clean
43805 2001-10-11 Pascal Obry <obry@gnat.com>
43808 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43809 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43810 (GNATLS_RTL_OBJS): add g-crc32.o
43811 (GNATMAKE_RTL_OBJS): add g-crc32.o
43814 (CRC_Match): new function.
43815 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43816 instead of the previous simple checksum algorithm.
43817 (Time_Stamp_Mismatch): use CRC_Match for comparison.
43818 (Set_Source_Table): idem.
43821 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43822 instead of simple checksum.
43823 (CRC_Match): new function.
43824 (CRC_Error): new constant.
43826 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43827 a CRC now and not a simple checksum. A CRC uses lower-case hex
43828 letters, fixes ambiguity in parsing.
43830 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43831 is what this variable will store.
43833 * bcheck.adb: Change reference to chechsum in comments by CRC.
43834 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43835 rename All_Checksum_Match to All_CRC_Match. Change due to API
43836 renaming since now GNAT does not use a simple checksum but a
43837 CRC using GNAT.CRC32.
43839 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43840 now and not anymore a simple checksum.
43842 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43845 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43848 (Restore_Scan_State): rename Checksum to CRC.
43849 (Save_Scan_State): idem.
43853 (Checksum): rename to CRC.
43854 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43856 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43857 GNAT.CRC32). Update copyright notice.
43859 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43860 GNAT.CRC32). Update copyright notice.
43863 (Accumulate_Checksum): removed.
43864 (Update): new procedure. Add a wide-character into the CRC.
43867 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43868 (Load_File): fix initialization of S (change Source_Checksum to
43871 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43872 Source_CRC in S initialization.
43874 * sinput.adb (Source_Checksum): renamed to Source_CRC.
43876 * sinput.ads (Source_Checksum): renamed to Source_CRC.
43877 Update comments for the CRC.
43879 * types.adb (Hex): Use lowercase for the letter part.
43881 * types.ads (Get_Hex_String): Returns the hexadecimal representation
43882 for a word. This is currently used only for CRC. In previous version,
43883 the checksum was using a representation with all letter being
43884 upper-case. With the new implementation (using CRC) we do not remove
43885 the 32th bit of the CRC, so we can have an upper-case starting letter
43886 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43887 It is ambigous since the CRC was optional and could be followed by
43888 options like EB, EE. So now this routines uses lower-case letter for
43889 the hexadecimal representation. Strange enough only lower case letters
43890 where checked in Scan_ALI (even if this was not a possible case).
43892 * gnatvsn.ads (Library_Version): changed to 3.15a.
43894 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43897 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43900 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43901 Add 2001 to copyright notice
43902 (Accumulate_Checksum): Modify to use System.CRC32.
43904 * ali-util.ads: Redo changes of previous revision to continue to use
43905 the word Checksum. Add 2001 to copyright notice.
43907 * ali.adb: Undo some of previous changes, not needed.
43908 Keep the change for lower case letters in the checksum.
43910 * ali.ads: Undo previous change not needed.
43912 * bcheck.adb: Undo most of previous change, not needed.
43913 But do use Checksums_Match for checksum comparison.
43915 * gnatls.adb: Undo most of previous change, not needed.
43916 But do use Checksums_Match for comparing checksums.
43918 * lib-load.adb: Undo previous change, not needed.
43920 * lib-writ.adb: Undo previous change, not needed.
43922 * lib-writ.ads: Document that checksums use lower case,
43923 not upper case letters.
43925 * scans.adb: Undo previous change, not needed
43927 * scans.ads: Undo previous change, not needed.
43929 * scn-nlit.adb: Undo previous changes, not needed.
43931 * scn-slit.adb: Undo previous change, not needed. Fix header format.
43934 (Accumulate_Checksum): Use System.CRC32.
43935 (Initialize_Checksum): New procedure.
43936 Remove other changes of previous revision.
43938 * sinput-p.adb: Undo previous change, not needed.
43940 * sinput.adb: Undo previous change, not needed.
43942 * sinput-l.adb: Undo previous change, not needed.
43944 * sinput.ads: Undo previous change, not needed. Keep only comment
43945 on new checksum algorithm
43947 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43948 Also remove a-tags and a-stream from GNAT sources.
43950 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43952 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43954 2001-10-11 Geert Bosch <bosch@gnat.com>
43956 * einfo.h: Regenerate.
43958 * nmake.ads: Regenerate.
43960 * nmake.adb: Regenerate.
43962 * sinfo.h: Regenerate.
43964 * treeprs.adb: Regenerate.
43966 2001-10-10 Geert Bosch <bosch@gnat.com>
43968 * gnat-style.texi: New file describing coding guidelines for Ada.
43970 2001-10-10 Ed Schonberg <schonber@gnat.com>
43972 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43975 2001-10-10 Geert Bosch <bosch@gnat.com>
43977 * snames.ads: Add new names for project facility.
43979 * snames.adb: Update to reflect snames.ads changes.
43981 * snames.h: Update to reflect snames.ads changes.
43983 2001-10-10 Vincent Celier <celier@gnat.com>
43986 (Add_Switches): reflect the changes for the switches attributes
43987 Default_Switches indexed by the programming language,
43988 Switches indexed by the file name.
43989 (Collect_Arguments_And_Compile): Idem.
43990 Reflect the attribute name changes.
43993 (Initialisation_Data): Change the names of some packages and
43995 (Initialize): process case insensitive associative arrays.
43998 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
44001 (Parse_Attribute_Declaration): For case insensitive associative
44002 arrays, set the index string to lower case.
44005 Reflect the changes of the project attributes.
44008 Replace Check_Naming_Scheme by Ada_Check and
44009 Language_Independent_Check.
44012 Replaced Check_Naming_Scheme by 2 procedures:
44013 Ada_Check and Language_Independent_Check.
44016 (Process_Declarative_Items): For case-insensitive associative
44017 arrays, set the index string to lower case.
44018 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
44019 Prj.Nmsc.Check_Naming_Scheme.
44022 (Case_Insensitive): New function
44023 (Set_Case_Insensitive): New procedure
44026 (Case_Insensitive): New function
44027 (Set_Case_Insensitive): New procedure
44028 (Project_Node_Record): New flag Case_Insensitive.
44031 (Value_Of): new function to get the string value of a single
44032 string variable or attribute.
44035 (Value_Of): new function to get the string value of a single
44036 string variable or attribute.
44039 (Ada_Default_Spec_Suffix): New function
44040 (Ada_Default_Impl_Suffix): New function
44041 Change definitions of several constants to reflect
44042 new components of record types.
44045 (Naming_Data): Change several components to reflect new
44046 elements of naming schemes.
44047 (Project_Data): New flags Sources_Present and
44048 Language_Independent_Checked.
44049 (Ada_Default_Spec_Suffix): New function.
44050 (Ada_Default_Impl_Suffix): New function.
44053 Modification of predefined names for project manager: added
44054 Implementation, Specification_Exceptions, Implementation_Exceptions,
44055 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
44056 Default_Switches, _Languages, Builder, Cross_Reference,
44057 Finder. Removed Body_Part, Specification_Append, Body_Append,
44058 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
44061 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
44064 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
44065 not that it is Nil_Variable_Value.
44067 * prj.ads: Add ??? for uncommented declarations
44069 2001-10-10 Ed Schonberg <schonber@gnat.com>
44071 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
44072 constant, do not indicate possible modification, so that gigi can
44073 treat it as a bona fide constant.
44075 2001-10-10 Robert Dewar <dewar@gnat.com>
44077 * sem_prag.adb: Add processing for pragma External.
44079 * snames.ads: Add entry for pragma External.
44081 * par-prag.adb: Add pragma External.
44083 * snames.adb: Updated to match snames.ads.
44085 2001-10-10 Ed Schonberg <schonber@gnat.com>
44087 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
44088 a dynamic task if the allocator appears in an indexed assignment
44089 or selected component assignment.
44091 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
44092 For a dynamic task in an assignment statement, use target of
44093 assignment to generate meaningful name.
44095 2001-10-10 Ed Schonberg <schonber@gnat.com>
44097 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
44100 * einfo.ads: Body_Entity is also defined for generic package.
44101 Documentation change only
44103 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
44104 others_choice for a discriminated component initialization,
44105 convert discriminant references into the corresponding discriminals.
44107 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
44108 only if original type is private and expression has to be wrapped
44112 (Apply_Constraint_Check): Do not perform length check
44113 if expression is an aggregate with only an others_choice.
44114 (Length_N_Cond): two references to the same in_parameter
44115 (typically the discriminal in an init_proc) denote the same value.
44116 Two useful optimization uncovered by bugfixes above.
44118 2001-10-10 Robert Dewar <dewar@gnat.com>
44120 * xeinfo.adb: Change int to char in translation of enumeration types.
44121 This fixes a problem in the C representation of component alignment.
44122 Add 2001 to copyright notice
44124 2001-10-10 Richard Kenner <kenner@gnat.com>
44126 * decl.c: (validate_size): Do check size of object of integral type
44127 if it is a packed array type.
44129 2001-10-10 Richard Kenner <kenner@gnat.com>
44131 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
44132 VAR_DECL for constant if not Is_Public but -O0.
44134 2001-10-10 Richard Kenner <kenner@gnat.com>
44136 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
44138 2001-10-10 Geert Bosch <bosch@gnat.com>
44140 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
44141 use '/' as switch character, allowing for absolute file names.
44143 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
44145 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
44148 2001-10-08 Geert Bosch <bosch@gnat.com>
44150 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
44151 Automatically build utilities when files need to be regenerated.
44153 2001-10-08 Geert Bosch <bosch@gnat.com>
44155 * xsnames.adb: New utility for updating snames.ads and snames.adb
44157 2001-10-08 Zack Weinberg <zack@codesourcery.com>
44159 * Make-lang.in (ADAFLAGS): Add -W -Wall.
44160 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
44161 (gnat1): Also depend on attribs.o.
44162 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
44163 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
44164 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
44165 (ADAFLAGS): Add -W -Wall.
44166 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
44169 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
44170 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
44171 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
44172 Use $(ADAC), not $(CC), as compilation command.
44174 (gnattools): Depend directly on tools to build, don't use
44176 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
44178 * einfo.h, sinfo.h: New files (autogenerated).
44180 2001-10-08 Richard Henderson <rth@redhat.com>
44182 * comperr.adb (Abort_In_Progress): New.
44183 (Compiler_Abort): Use it to prevent recursion.
44185 2001-10-08 Robert Dewar <dewar@gnat.com>
44187 * atree.adb: Set Error_Posted in Error node, helps error recovery.
44189 * par-endh.adb (Output_End_Expected): We should also not test
44190 Error_Posted on the Error node, since now it is always set.
44192 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
44193 to help error recovery. Part of general work on 9407-004.
44195 * par.adb: Add ??? for misuse of error
44198 (Resolve): Defend against Error, fixes 9407-003.
44199 (Resolve_Discrete_Subtype_Indication): Defend against Error.
44201 * sinfo.ads (N_Error): Now has Etype field (which will be set
44202 to Any_Type to help error recovery).
44204 2001-10-08 Richard Kenner <kenner@gnat.com>
44206 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
44207 Consistently set MEM attributes from expression; fixes
44208 bootstrap failure on x86.
44210 2001-10-08 Geert Bosch <bosch@gnat.com>
44212 * 5oosinte.adb: Add 2001 to copyright notice.
44214 2001-10-08 Geert Bosch <bosch@gnat.com>
44216 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
44218 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
44220 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
44222 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
44224 2001-10-05 Geert Bosch <bosch@gnat.com>
44226 * adaint.h: Small formatting fix.
44228 2001-10-04 Geert Bosch <bosch@gnat.com>
44230 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
44231 Arg is int, not FILE *, in dummy version of functions.
44233 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
44234 Arg is int, not FILE *.
44236 2001-10-04 Geert Bosch <bosch@gnat.com>
44238 * 3lsoccon.ads: Added file, missed with initial check ins.
44240 * 4lintnam.ads: Fix header format.
44241 Change Linux to GNU/Linux.
44243 * 5iosinte.adb: Change Linux to GNU/Linux.
44245 * 5iosinte.ads: Change Linux to GNU/Linux.
44247 * 5itaprop.adb: Change Linux to GNU/Linux.
44249 * 5itaspri.ads: Change Linux to GNU/Linux.
44250 Update copyright notice.
44252 * 5lintman.adb: Change Linux to GNU/Linux.
44254 * 5lml-tgt.adb: Change Linux to GNU/Linux.
44256 * 5losinte.ads: Change Linux to GNU/Linux.
44258 * 5lsystem.ads: Change Linux to GNU/Linux.
44260 * 5qosinte.adb: Change Linux to GNU/Linux.
44262 * 5qosinte.ads: Change Linux to GNU/Linux.
44264 * 5qparame.ads: Change Linux to GNU/Linux.
44266 * 5qtaprop.adb: Change Linux to GNU/Linux.
44268 * 5qtaspri.ads: Change Linux to GNU/Linux.
44269 Add 2001 to copyright notice.
44271 * 5vintman.ads: Change Linux to GNU/Linux.
44272 Fix header format. Add 2001 to copyright notice.
44274 * g-soccon.ads: Change Linux to GNU/Linux.
44276 * g-trasym.ads: Change Linux to GNU/Linux.
44277 Add 2001 to copyright notice.
44279 * memtrack.adb: Change Linux to GNU/Linux.
44281 * s-intman.ads: Change Linux to GNU/Linux.
44282 Add 2001 to copyright notice. Fix header format.
44284 * s-stache.adb: Change Linux to GNU/Linux.
44286 * adaint.c: Change Linux to GNU/Linux.
44288 * cio.c: Change Linux to GNU/Linux.
44290 * cstreams.c: Change Linux to GNU/Linux.
44292 * init.c: Change Linux to GNU/Linux.
44294 * gmem.c: Change Linux to GNU/Linux.
44296 * tracebak.c: Change Linux to GNU/Linux.
44299 2001-10-02 Geert Bosch <bosch@gnat.com>
44301 * misc.c (insert_default_attributes): Add dummy version.