1 2009-04-09 Pascal Obry <obry@adacore.com>
3 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
4 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
5 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
8 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
11 missing overriding indicator if the new declaration is not seen as
14 2009-04-09 Thomas Quinot <quinot@adacore.com>
16 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
17 overflows in computation of bounds.
19 2009-04-09 Pascal Obry <obry@adacore.com>
21 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
24 2009-04-09 Robert Dewar <dewar@adacore.com>
26 * sem_attr.adb (Check_Stream_Attribute): Check violation of
27 restriction No_Streams
29 * gnat_rm.texi: Clarify No_Streams restriction
31 * g-socket.adb: Minor reformatting.
33 2009-04-09 Thomas Quinot <quinot@adacore.com>
35 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
37 2009-04-09 Geert Bosch <bosch@adacore.com>
39 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
40 (Set_Result): Likewise.
41 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
42 conversion, as required by RM 4.6(31).
44 2009-04-08 Robert Dewar <dewar@adacore.com>
46 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
49 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
52 2009-04-08 Robert Dewar <dewar@adacore.com>
54 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
55 No_Local_Allocators restriction preventing local instantiation.
57 2009-04-08 Thomas Quinot <quinot@adacore.com>
59 * sem_eval.adb: Minor comment fix
61 2009-04-08 Thomas Quinot <quinot@adacore.com>
63 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
64 New limited controlled type used to automate the initialization and
65 finalization of the sockets implementation.
66 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
68 2009-04-08 Vincent Celier <celier@adacore.com>
70 * prj-attr.adb: New read-only project-level attribute Project_Dir
72 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
73 read-only attribute of the same name.
74 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
75 (Recursive_Process): Ditto
77 * snames.adb: Add new standard name Project_Dir
79 * snames.ads: Add new standard name Project_Dir
81 2009-04-08 Thomas Quinot <quinot@adacore.com>
83 * checks.adb: Minor reformatting
85 2009-04-08 Vincent Celier <celier@adacore.com>
87 * vms_data.ads: Add documentation for new style keyword
90 2009-04-08 Robert Dewar <dewar@adacore.com>
92 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
93 spec is in the current unit.
95 2009-04-08 Ed Schonberg <schonberg@adacore.com>
97 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
100 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
102 2009-04-08 Vincent Celier <celier@adacore.com>
104 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
106 2009-04-08 Thomas Quinot <quinot@adacore.com>
108 * checks.ads: Minor reformatting
110 2009-04-08 Robert Dewar <dewar@adacore.com>
112 * gnat_rm.texi: Update documentation of pragma Obsolescent
114 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
115 be omitted, and allow Entity parameter to be omitted.
117 2009-04-08 Thomas Quinot <quinot@adacore.com>
119 * exp_util.adb: Minor comment fix
121 2009-04-08 Robert Dewar <dewar@adacore.com>
123 * g-socket.ads: Fix bad syntax in pragma Obsolescent
125 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
126 argument with no identifier following one that has an identifier. Was
127 missed in some cases.
129 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
131 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
133 * snames.adb: Add Name_Policy
135 * snames.ads: Add Name_Policy
137 2009-04-08 Robert Dewar <dewar@adacore.com>
139 * gnat_rm.texi: Minor reformatting
141 * par-ch2.adb: Minor reformatting
143 2009-04-08 Robert Dewar <dewar@adacore.com>
145 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
147 2009-04-08 Robert Dewar <dewar@adacore.com>
149 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
150 properly in the presence of Remote_Types or Remote_Call_Interface.
152 * sem_util.adb: Add comment.
154 2009-04-08 Robert Dewar <dewar@adacore.com>
156 * ug_words: Add /ASSUME_VALID for -gnatB
158 * vms_data.ads: Add /ASSUME_VALID for -gnatB
160 * sem_cat.adb: Add clarifying commment
162 * a-direio.ads (Bytes): Make sure value is non-zero
164 2009-04-08 Ed Schonberg <schonberg@adacore.com>
166 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
167 that does not come from source, check for a rewritten function call in
168 prefixed notation before other forms of rewriting.
170 2009-04-08 Robert Dewar <dewar@adacore.com>
172 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
173 these are now obsolescent units used only for bootrapping with an
176 2009-04-08 Robert Dewar <dewar@adacore.com>
178 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
180 * sem_ch3.adb: Minor comment updates
182 2009-04-08 Ed Schonberg <schonberg@adacore.com>
184 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
185 that come from source.
187 2009-04-08 Tristan Gingold <gingold@adacore.com>
189 * gcc-interface/utils.c, gcc-interface/decl.c, gcc-interface/gigi.h:
190 Add support for pragma Thread_Local_Storage
192 2009-04-08 Ed Schonberg <schonberg@adacore.com>
194 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
195 by the back-end if it contains a call to a subprogram without a
196 previous spec that is declared in the same unit.
198 * errout.ads: Update comments on uses of dirs
200 2009-04-08 Robert Dewar <dewar@adacore.com>
202 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
204 2009-04-08 Tristan Gingold <gingold@adacore.com>
206 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
208 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
210 2009-04-08 Vincent Celier <celier@adacore.com>
213 (Add_Source): Add the mapping of the unit name to source file name in
214 the Unit_Sources_HT hash table, if the unit name is not null.
216 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
218 * prj.ads (Unit_Sources_Htable): New hash table instantiation
219 (Project_Tree_Data): New component Unit_Sources_HT
221 2009-04-08 Thomas Quinot <quinot@adacore.com>
223 * sem_ch8.adb: Minor reformatting.
224 Minor code reorganization.
226 2009-04-08 Robert Dewar <dewar@adacore.com>
228 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
229 snames.ads, freeze.adb, par-prag.adb: Add implementation of
230 pragma Thread_Local_Storage, setting new flag
231 Has_Pragma_Thread_Local_Storage in corresponding entities.
233 2009-04-08 Emmanuel Briot <briot@adacore.com>
235 * prj.ads: Update comment on switches file
237 * prj-nmsc.adb: Code clean up. Use renaming clauses.
239 2009-04-08 Robert Dewar <dewar@adacore.com>
241 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
243 2009-04-08 Thomas Quinot <quinot@adacore.com>
245 * ali-util.adb: Minor comment fix
247 2009-04-08 Ed Schonberg <schonberg@adacore.com>
249 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
250 appears in a context clause, and the enclosing package is mentioned in
251 a limited_with_clause.
252 (Use_One_Type): Reject clause if type is still incomplete.
254 2009-04-08 Emmanuel Briot <briot@adacore.com>
256 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
257 avoid copies of Source_Data variables when possible, since these
258 involve calls to memcpy() which are done too many times.
260 2009-04-08 Robert Dewar <dewar@adacore.com>
262 * exp_ch4.adb (Expand_Concatenate): Clean up code
264 2009-04-07 Thomas Quinot <quinot@adacore.com>
266 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
267 type for the case of concatenating a constrained array indexed by an
270 2009-04-07 Ed Schonberg <schonberg@adacore.com>
272 * sem_ch6.adb (Check_Conformance): when checking conformance of an
273 operation that overrides an abstract operation inherited from an
274 interface, return False if only one of the controlling formals is an
277 2009-04-07 Ed Schonberg <schonberg@adacore.com>
279 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
280 mandated by AI05-105.
282 2009-04-07 Vincent Celier <celier@adacore.com>
284 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
286 2009-04-07 Thomas Quinot <quinot@adacore.com>
288 * usage.adb: Minor fix in usage message.
290 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
291 match declaration; the correct subtype is Node_Id, not Entity_Id,
292 because the expected node kind is an identifier, not a defining
295 * switch-c.adb: Minor reformatting.
297 * uintp.adb: Minor reformatting.
299 2009-04-07 Robert Dewar <dewar@adacore.com>
301 * exp_ch13.adb: Minor reformatting
303 2009-04-07 Robert Dewar <dewar@adacore.com>
305 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
306 against missing parent.
308 2009-04-07 Thomas Quinot <quinot@adacore.com>
310 * xoscons.adb: Minor reformatting
312 2009-04-07 Robert Dewar <dewar@adacore.com>
314 * rtsfind.ads: Remove obsolete string concatenation entries
316 2009-04-07 Robert Dewar <dewar@adacore.com>
318 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
320 2009-04-07 Ed Schonberg <schonberg@adacore.com>
322 * sem_ch10.adb (Check_Body_Required): Handle properly imported
325 2009-04-07 Gary Dismukes <dismukes@adacore.com>
327 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
328 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
329 is of a scalar or string type then suppress the setting of the
332 * freeze.adb (Warn_Overlay): Also emit the warnings about default
333 initialization for the cases of scalar and string objects when
334 Init_Or_Norm_Scalars is True.
336 2009-04-07 Bob Duff <duff@adacore.com>
338 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
340 2009-04-07 Bob Duff <duff@adacore.com>
342 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
343 Form parameter of Text_Translation=No allows binary mode for Text_IO
346 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
348 2009-04-07 Javier Miranda <miranda@adacore.com>
350 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
351 processing the bounds for bit packed arrays or VM target machines.
353 2009-04-07 Thomas Quinot <quinot@adacore.com>
355 * g-sothco.ads (Int_Access): Remove extraneous access type (use
356 anonymous access instead).
357 (Get_Socket_From_Set): Fix incorrectly reverted formals
358 Last and Socket to match the underlying C routine.
360 * g-socket.adb, g-socket.ads
361 (Get): Use named parameter associations instead of positional ones in
362 call go Get_Socket_From_Set, since this routine has two formals of the
364 (Image): New procedure.
366 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
367 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
368 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
369 for type of Arg formal.
371 * sem_warn.adb: Minor reformatting
373 2009-04-07 Ed Schonberg <schonberg@adacore.com>
375 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
376 over record components.
378 2009-04-07 Nicolas Roche <roche@adacore.com>
381 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
382 has disappeared between VxWorks 6.4 and VxWorks 6.5
383 In RTP mode use time.h instead of times.h
385 2009-04-07 Robert Dewar <dewar@adacore.com>
387 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
389 2009-04-07 Kevin Pouget <pouget@adacore.com>
391 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
392 expanded code for constrained types.
394 2009-04-07 Ed Schonberg <schonberg@adacore.com>
396 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
397 AI05-105: in an object renaming declaration, anonymousness is a name
400 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
402 2009-04-07 Arnaud Charlet <charlet@adacore.com>
404 * g-comlin.adb (Expansion): Fix old regression: also return directory
407 2009-04-07 Robert Dewar <dewar@adacore.com>
410 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
411 (Expand_Concatenate): New name for Expand_Concatenate_String which has
412 been rewritten to handle all types.
413 (Expand_Concatenate_Other): Remove
415 2009-04-07 Ed Schonberg <schonberg@adacore.com>
417 * lib-xref.adb (Generate_Reference): A default subprogram in an
418 instance appears within the tree for the instance, but generates an
419 implicit reference in the ALI.
421 2009-04-07 Javier Miranda <miranda@adacore.com>
423 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
424 derived type that has discriminants, propagate the list of interfaces
425 to the corresponding new base type. In addition, propagate also
426 attribute Limited_Present (found working in this patch).
428 2009-04-07 Robert Dewar <dewar@adacore.com>
430 * exp_ch4.adb: Rewrite concatenation expansion.
432 2009-04-07 Ed Schonberg <schonberg@adacore.com>
434 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
435 relevant to packages.
437 2009-04-07 Robert Dewar <dewar@adacore.com>
439 * sem_attr.adb: Minor reformatting
441 * sem_ch6.adb: Minor reformatting
443 2009-04-07 Tristan Gingold <gingold@adacore.com>
445 * socket.c: Add more protections against S_resolvLib_ macros.
447 2009-04-07 Thomas Quinot <quinot@adacore.com>
449 * sem_attr.adb: Minor reformatting
451 2009-04-07 Ed Schonberg <schonberg@adacore.com>
453 * sem_ch6.adb (New_Overloaded_Entity): New predicate
454 Is_Overriding_Alias to handle properly types that inherit two homonym
455 operations that have distinct dispatch table entries.
457 2009-04-07 Emmanuel Briot <briot@adacore.com>
459 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
460 looking for the end of a parenthesis group
462 2009-04-07 Tristan Gingold <gingold@adacore.com>
464 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
466 * socket.c Don't use resolvLib_ macros if not defined.
468 2009-04-07 Robert Dewar <dewar@adacore.com>
470 * g-socket.adb: Minor reformatting.
472 * g-socthi-mingw.adb: Minor reformatting
474 * g-sothco.ads: Minor reformatting
477 (Expand_Concatenate_String): Complete rewrite to generate efficient code
478 inline instead of relying on external library routines.
480 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
481 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
484 2009-04-07 Ed Schonberg <schonberg@adacore.com>
487 (Eval_Attribute): for attributes of array objects that are not strings,
488 attributes are not static if nominal subtype of object is unconstrained.
490 2009-04-07 Ed Schonberg <schonberg@adacore.com>
492 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
493 operations for a type T in an instance do not override each other,
494 when T is derived from a formal private type, the corresponding
495 operations inherited by a type derived from T outside
496 of the instance do not override each other either.
498 2009-04-07 Robert Dewar <dewar@adacore.com>
500 (Osint.Fail): Change calling sequence to have one string arg
501 (Make.Make_Failed): Same change
502 All callers are adjusted to use concatenation
504 2009-04-07 Robert Dewar <dewar@adacore.com>
506 * exp_ch4.adb: Fix documentation typo
508 2009-04-07 Robert Dewar <dewar@adacore.com>
510 * tbuild.ads: Minor reformatting
512 2009-04-07 Javier Miranda <miranda@adacore.com>
514 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
515 when compiling under ZFP runtime.
517 2009-04-07 Robert Dewar <dewar@adacore.com>
519 * g-comlin.adb: Minor reformatting
521 2009-04-07 Thomas Quinot <quinot@adacore.com>
523 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
524 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
525 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
526 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
528 2009-04-07 Robert Dewar <dewar@adacore.com>
530 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
532 * opt.ads (Sprint_Line_Limit): New parameter
534 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
536 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
538 * usage.adb: Output information for -gnatGnn -gnatDnn
540 2009-04-07 Robert Dewar <dewar@adacore.com>
542 * make.adb: Minor reformatting
544 2009-04-07 Robert Dewar <dewar@adacore.com>
546 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
548 2009-04-07 Robert Dewar <dewar@adacore.com>
550 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
552 2009-04-07 Robert Dewar <dewar@adacore.com>
555 Remove Assume_Valid parameter from In_Subrange_Of calls
558 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
559 (Is_In_Range): Remove incorrect use of Assume_Valid
560 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
563 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
564 (Is_In_Range): Documentation cleanup
565 (Is_Out_Of_Range): Documentation cleanup
568 Add documentation for Assume_No_Invalid_Values pragma
570 * sem_ch12.adb: Minor reformatting
572 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
574 * sem_prag.adb: Improve error message.
576 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
577 LF/CR no longer recognized as line terminator
579 * switch.ads: Minor documentation improvement
581 * vms_data.ads: Minor reformatting
583 2009-04-07 Robert Dewar <dewar@adacore.com>
585 * checks.adb (Determine_Range): Add Assume_Valid parameter
587 * checks.ads (Determine_Range): Add Assume_Valid parameter
589 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
590 Is_Null_Loop to suppress warnings in a loop body.
593 (Rewrite_Comparison): Major rewrite to accomodate invalid values
596 (Expand_N_Loop_Statement): Delete loop known not to execute
599 (Assume_No_Invalid_Values): Now set to False, and as documented, this
600 fully enables the proper handling of invalid values.
603 New calling sequence for Is_In_Range
606 (Analyze_Iteration_Scheme): Accomodate possible invalid values
607 in determining if a loop range is null.
610 (Is_In_Range): Add Assume_Valid parameter
611 (Is_Out_Of_Range): Add Assume_Valid_Parameter
612 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
613 also to do more accurate and complete range analysis, catching more
617 (Is_In_Range): Add Assume_Valid parameter
618 (Is_Out_Of_Range): Add Assume_Valid_Parameter
621 New calling sequence for Is_In_Range
624 (Suppress_Loop_Warnings): New flag
627 (Is_Null_Loop): Update documentation
628 (Suppress_Loop_Warnings): New flag
630 * gnat_ugn.texi: Document -gnatB switch
632 2009-04-07 Arnaud Charlet <charlet@adacore.com>
634 * gnatvsn.ads: Bump version number.
636 2009-04-07 Thomas Quinot <quinot@adacore.com>
638 * exp_ch3.adb: Minor rewording (comments)
640 2009-04-07 Robert Dewar <dewar@adacore.com>
642 * exp_disp.adb: Minor reformatting
644 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
646 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
648 * gcc-interface/trans.c (lvalue_required_p): Likewise.
650 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
652 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
653 Do not convert the result. Remove obsolete comment.
655 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
657 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
659 (Subprogram_Body_to_gnu): Fix pasto.
661 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
663 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
664 (void_type_decl_node): Remove.
665 (init_gigi_decls): Likewise.
666 (gnat_install_builtins): Declare.
667 (record_builtin_type): Likewise.
668 (create_type_stub_decl): Likewise.
669 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
670 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
672 <E_Array_Subtype>: Use the index types, not only their name, in the
673 record giving the names of the bounds, if any.
674 For a packed array type, make it artificial only if the base type
675 was artificial as well. Remove redundant statement.
676 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
678 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
679 (rest_of_type_decl_compilation_no_defer): Likewise.
680 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
681 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
682 and use create_type_stub_decl to build it.
683 (gnat_pushdecl): Rewrite condition.
684 (gnat_install_builtins): Remove bogus declaration.
685 (record_builtin_type): New function.
686 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
688 (create_type_stub_decl): New function.
689 (create_type_decl): Assert that the type is not dummy. If the type
690 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
691 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
692 (build_vms_descriptor): Likewise.
693 (init_gigi_decls): Delete and move bulk of code to...
694 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
695 (emit_range_check): Add gnat_node parameter.
696 (emit_index_check): Likewise.
697 (emit_check): Likewise.
698 (build_unary_op_trapv): Likewise.
699 (build_binary_op_trapv): Likewise.
700 (convert_with_check): Likewise.
701 (Attribute_to_gnu): Adjust calls for above changes.
702 (call_to_gnu): Likewise.
703 (gnat_to_gnu): Likewise.
704 (assoc_to_constructor): Likewise.
705 (pos_to_constructor): Likewise.
706 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
707 (process_type): Do not create TYPE_DECL for dummy types.
709 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
711 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
712 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
713 * gcc-interface/utils.c: Fix comments.
715 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
717 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
719 (gnat_to_gnu_type): Move around.
720 (get_unpadded_type): Likewise.
721 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
724 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
726 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
727 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
728 (call_to_gnu): Invoke it instead of manually checking.
730 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
732 * gcc-interface/utils.c (finish_record_type): Force structural equality
733 checks if the record type is discriminated.
735 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
737 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
738 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
739 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
740 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
741 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
742 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
743 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
745 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
747 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
748 of TREE_CONSTANT_OVERFLOW.
750 2009-03-30 Joseph Myers <joseph@codesourcery.com>
752 PR rtl-optimization/323
753 * gcc-interface/misc.c (gnat_post_options): Set
754 flag_excess_precision_cmdline. Give an error for
755 -fexcess-precision=standard for processors where the option is
758 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
761 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
764 2009-03-11 Olivier Hainque <hainque@adacore.com>
766 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
767 checks processing, remove unintended TREE_TYPE walk on index type.
769 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
772 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
773 call make_packable_type on fat pointer types.
774 <E_Array_Subtype>: Likewise.
775 <E_Record_Subtype>: Call make_packable_type on all record types
776 except for fat pointer types.
777 (make_packable_type): Likewise.
778 (gnat_to_gnu_field): Likewise.
780 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
782 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
783 EH_MECHANISM change made on 2007-12-06.
785 2009-02-26 Andreas Schwab <schwab@suse.de>
788 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
789 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
790 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
792 (target_cpu_default): Substitute.
794 2009-02-25 Laurent GUERBY <laurent@guerby.net>
797 * a-teioed.adb (Expand): Fix Result overflow.
799 2009-02-25 Laurent GUERBY <laurent@guerby.net>
801 * gcc-interface/Makefile.in: Fix multilib handling for
804 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
806 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
808 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
810 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
812 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
814 * gcc-interface/deftarg.c: Remove.
816 2009-02-10 Olivier Hainque <hainque@adacore.com>
817 Eric Botcazou <ebotcazou@adacore.com>
819 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
820 (copy_alias_set): Rename into...
821 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
822 underlying array of unconstrained arrays for the new type as well.
823 If the old and new alias sets don't conflict, make one a subset of
824 the other as per the OP parameter.
825 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
826 <E_Record_Type>: Do not copy the alias set for derived types.
827 For all types, make the alias set of derived types a superset of
828 that of their parent type.
829 (make_aligning_type): Adjust calls to copy_alias_set.
830 (make_packable_type): Likewise.
831 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
832 Check for alias set conflict instead of strict equality to issue the
835 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
837 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
838 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
839 (copy_alias_set): Assert that arrays have the same aliasing settings.
840 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
842 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
844 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
845 Set TYPE_NONALIASED_COMPONENT on the array type.
847 2009-01-31 Laurent GUERBY <laurent@guerby.net>
849 * gcc-interface/Makefile.in: Fix mipsel linux handling.
851 2009-01-16 Jakub Jelinek <jakub@redhat.com>
853 * gcc-interface/Makefile.in: Fix multilib handling for
856 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
858 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
859 only useless conversions around renamed objects.
861 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
863 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
864 the _Tag field before any discriminants in the field list.
865 (components_to_record): Remove obsolete comment.
867 2008-12-09 Jakub Jelinek <jakub@redhat.com>
870 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
871 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
874 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
877 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
879 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
882 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
884 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
886 * gcc-interface/decl.c: Fix various nits.
888 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
890 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
892 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
895 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
896 special-case boolean types. Propagate the name.
897 * gcc-interface/targtyps.c: Tweak comment.
899 2008-11-15 Geert Bosch <bosch@adacore.com>
901 * gcc-interface/trans.c (emit_check): Put back a final save_expr
902 to prevent exponential expansion during gimplification.
904 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
906 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
908 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
910 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
911 initialized to a static constant to be statically allocated even if
912 they are of a padding type, provided the original type also has
915 2008-11-15 Laurent Guerby <laurent@guerby.net>
918 * gcc-interface/Makefile.in: Add multilib handling for x86_64
920 * system-darwin-x86_64.ads: New file.
922 2008-11-13 Olivier Hainque <hainque@adacore.com>
924 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
925 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
926 are explicit to the middle-end. Tidy.
928 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
930 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
931 (MINUS_NOMOD_EXPR): Likewise.
932 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
934 <PLUS_NOMOD_EXPR>: New case.
935 <MINUS_NOMOD_EXPR>: Likewise.
936 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
937 assignment statement instead of using an increment operator.
939 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
941 * system-irix-n64.ads: New file.
942 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
945 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
948 * system-solaris-x86_64.ads: New file.
949 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
951 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
952 Eric Botcazou <ebotcazou@adacore.com>
955 * lib.ads: (Enable_Switch_Storing): Declare.
956 * lib.adb: (Enable_Switch_Storing): New procedure.
957 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
958 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
959 (Display): Never display -gnatea
960 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
962 2008-11-07 Thomas Quinot <quinot@adacore.com>
964 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
965 for empty range in original base type, not converted result type.
967 2008-11-07 Geert Bosch <bosch@adacore.com>
969 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
970 and result for call to __gnat_mulv64.
972 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
974 * gcc-interface/trans.c: Fix formatting nits.
976 2008-11-07 Geert Bosch <bosch@adacore.com>
978 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
979 overflow check for constant result.
981 2008-11-07 Geert Bosch <bosch@adacore.com>
983 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
984 overflow check for addition/subtraction if neither operand is constant.
986 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
988 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
989 files for the target-dependent part of the runtime.
990 (SPARC/Linux): Likewise.
992 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
994 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
995 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
998 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
1000 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
1003 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
1006 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
1007 Generate a call to memmove for an assignment between overlapping
1010 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1013 * gcc-interface/Makefile.in: Add multilib handling for
1014 s390-linux and s390x-linux.
1016 2008-10-24 Jakub Jelinek <jakub@redhat.com>
1018 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
1019 check-acats-subtargets and check-gnat-subtargets.
1020 (check_acats_targets): New variable.
1021 (check-acats-subtargets, check-acats%): New targets.
1022 (check-acats): If -j is used and CHAPTERS is empty, run the testing
1023 in multiple make goals, possibly parallel, and afterwards run
1024 dg-extract-results.sh to merge the sum and log files.
1026 2008-10-17 Geert Bosch <bosch@adacore.com>
1028 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
1029 to use only a single check instead of three, and avoid unnecessary
1031 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
1032 creating more opportunities for optimizations.
1034 2008-10-13 Jakub Jelinek <jakub@redhat.com>
1037 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
1040 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
1042 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
1043 dealing with volatileness to after code dealing with renaming.
1045 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
1047 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
1048 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
1050 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
1052 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
1053 (unchecked_convert): Use it to disable problematic folding with
1054 VIEW_CONVERT_EXPR in the general case. Always disable it for the
1055 special VIEW_CONVERT_EXPR built for integral types and cope with
1056 its addressability issues by preserving the first conversion.
1058 2008-10-01 Andreas Schwab <schwab@suse.de>
1060 * system-linux-ppc64.ads: New file.
1061 * gcc-interface/Makefile.in: Add multilib handling for
1064 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
1066 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
1067 to that of ptr_mode instead of word_mode.
1069 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
1072 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
1074 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
1077 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
1078 instead of deprecated FILE_WRITE_PROPERTIES.
1080 2008-09-22 Olivier Hainque <hainque@adacore.com>
1082 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
1083 are never assigned, volatile entities are not constant for code
1084 generation purposes.
1086 2008-09-21 Laurent Guerby <laurent@guerby.net>
1089 * gcc-interface/Makefile.in: Add multilib handling for x86_64
1091 * system-linux-sparcv9.ads: New file.
1093 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
1095 * exp_dbug.ads: Document new convention for the XVZ variable.
1096 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
1097 debug info if necessary for the type padding the component type.
1098 <E_Array_Subtype>: Likewise.
1099 (maybe_pad_type): Emit the XVZ variable in units.
1100 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
1101 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
1102 on statements generated to initialize the parameter attributes cache.
1103 Set the source line of the end label of the body on the special return
1104 statement built for a procedure with copy-in copy-out parameters.
1106 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
1109 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
1110 inlined external functions if they contain a nested function not
1113 2008-09-18 Jan Hubicka <jh@suse.cz>
1115 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
1116 (end_subprog_body): Do not set DECL_INLINE.
1118 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
1121 * gnat_ugn.texi: Use proper format in direntry.
1123 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
1125 * gcc-interface/trans.c (gigi): Declare the name of the compilation
1126 unit as the first global name.
1128 2008-09-14 Jan Hubicka <jh@suse.cz>
1130 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
1132 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1134 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
1135 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
1136 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
1137 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
1138 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
1139 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
1140 gcc-interface/gigi.h, gcc-interface/trans.c,
1141 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
1142 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
1143 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
1144 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
1145 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
1146 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
1147 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
1148 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
1150 * gnathtml.pl: Fix typos.
1152 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
1154 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
1155 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
1156 layer. RTEMS binds to OS provided adapter routines so there are
1157 no modifications to s-osinte-rtems.adb.
1159 2008-09-09 Arnaud Charlet <charlet@adacore.com>
1160 Joel Sherrill <joel.sherrill@oarcorp.com>
1162 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
1164 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
1166 * s-interr-hwint.adb: New file.
1168 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
1169 needed by s-interr-hwint.adb.
1171 * s-osinte-vxworks-kernel.adb: New file.
1173 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
1175 * s-stchop-rtems.adb: Add file missed in early commit. Already
1176 referenced in gcc-interface/Makefile.in.
1178 2008-08-30 Thomas Quinot <quinot@adacore.com>
1180 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
1181 be built even without a separate libada directory.
1183 2008-08-22 Arnaud Charlet <charlet@adacore.com>
1185 * lib-xref.ads: Fix typo in subprogram reference definition.
1187 2008-08-22 Robert Dewar <dewar@adacore.com>
1189 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
1192 * g-trasym.adb: Ditto
1194 * s-utf_32.adb (Get_Category): Fix obvious typo
1196 * s-wwdcha.adb: Minor code reorganization
1199 2008-08-22 Robert Dewar <dewar@adacore.com>
1201 * checks.adb (Determine_Range): Deal with values that might be invalid
1203 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
1204 configuration switches.
1206 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
1208 * sem_prag.adb: Implement pragma Assume_No_Default_Values
1210 * snames.adb, snames.ads, snames.h:
1211 Add entries for pragma Assume_No_Invalid_Values
1213 * switch-c.adb: Add processing for -gnatB switch
1215 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
1217 2008-08-22 Javier Miranda <miranda@adacore.com>
1219 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
1220 init procedure all the expanded code associated with the spec of
1221 task types and protected types.
1223 2008-08-22 Gary Dismukes <dismukes@adacore.com>
1225 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
1226 component expression copies rather than directly setting Etype and
1227 Is_Static_Expression.
1229 2008-08-22 Gary Dismukes <dismukes@adacore.com>
1231 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
1232 private types to allow for types derived from a private type with
1233 preelaborable initialization, but return False for a private extension
1234 (unless it has the pragma).
1236 2008-08-22 Robert Dewar <dewar@adacore.com>
1238 * opt.ads: Minor code reorganization (put entries in alpha order)
1240 2008-08-22 Pascal Obry <obry@adacore.com>
1242 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
1245 2008-08-22 Geert Bosch <bosch@adacore.com>
1247 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
1248 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
1250 2008-08-22 Doug Rupp <rupp@adacore.com>
1252 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
1253 __gnat_set_features.
1256 (__gnat_set_features): New function.
1257 (__gnat_features_set): New tracking variable.
1258 (__gl_no_malloc_64): New feature global variable
1260 2008-08-22 Ed Schonberg <schonberg@adacore.com>
1262 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
1263 use_type_clause in an instance.
1265 2008-08-22 Bob Duff <duff@adacore.com>
1267 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
1269 2008-08-22 Robert Dewar <dewar@adacore.com>
1271 * exp_ch6.adb: Minor reformatting
1273 * exp_ch7.adb: Minor reformatting
1275 * exp_ch7.ads: Put routines in proper alpha order
1277 * exp_dist.adb: Minor reformatting
1279 2008-08-22 Vincent Celier <celier@adacore.com>
1281 * prj.ads: Minor comment update
1283 2008-08-22 Robert Dewar <dewar@adacore.com>
1285 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
1287 2008-08-22 Ed Schonberg <schonberg@adacore.com>
1290 (Base_Init_Proc): For a protected subtype, use the base type of the
1291 corresponding record to locate the propoer initialization procedure.
1293 2008-08-22 Robert Dewar <dewar@adacore.com>
1296 (In_Subrange_Of): New calling sequence
1297 (Determine_Range): Prepare for new processing using base type
1300 (Compile_Time_Compare): Use new calling sequence
1303 (Compile_Time_Compare): Use new calling sequence
1306 (Compile_Time_Compare): New calling sequence allows dealing with
1308 (In_Subrange_Of): Ditto
1311 (Compile_Time_Compare): New calling sequence allows dealing with
1313 (In_Subrange_Of): Ditto
1315 2008-08-22 Pascal Obry <obry@adacore.com>
1317 * adaint.c: Fix possible race condition on win32_wait().
1319 2008-08-22 Bob Duff <duff@adacore.com>
1321 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
1322 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
1323 exp_intr.adb, exp_ch3.adb: Rename:
1324 Exp_Ch7.Controlled_Type => Needs_Finalization
1325 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
1326 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
1327 Has_Controlled_Parts
1328 (Has_Some_Controlled_Component): Fix bug in array case.
1330 2008-08-22 Robert Dewar <dewar@adacore.com>
1332 * sem_ch8.adb: Minor reformatting
1334 2008-08-22 Kevin Pouget <pouget@adacore.com>
1336 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
1337 Shared_Var_Close procedure specifications from package spec to package body.
1339 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
1340 RE_Shared_Var_WOpen entries.
1342 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
1343 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
1345 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
1347 * init.c: adjust EH support code on Alpha/Tru64 as well.
1349 * raise-gcc.c: Add back a couple of comments.
1351 2008-08-22 Ed Schonberg <schonberg@adacore.com>
1353 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
1354 involved and the return type is class-wide, use the type of the expression
1355 for the generated access type. Suppress useless discriminant checks on the
1358 2008-08-22 Bob Duff <duff@adacore.com>
1360 * exp_ch7.adb: Minor comment fix
1362 * exp_ch6.ads: Minor comment fix
1364 2008-08-22 Thomas Quinot <quinot@adacore.com>
1366 * sem_ch8.adb: Minor reformatting
1367 Minor code reorganization (introduce subprogram to factor duplicated
1370 2008-08-22 Sergey Rybin <rybin@adacore.com>
1372 * gnat_ugn.texi: Change the description of gnatcheck default rule
1375 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
1377 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
1378 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
1379 do not adjust the PC anymore.
1380 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
1381 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
1383 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
1384 instead of _Unwind_GetIP.
1386 2008-08-22 Gary Dismukes <dismukes@adacore.com>
1388 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
1389 with a range is transformed into a positional aggregate, any copied
1390 component literals should be marked Is_Static_Expression.
1392 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
1393 not being known at at compile time when Configurable_Run_Time_Mode is
1396 2008-08-22 Robert Dewar <dewar@adacore.com>
1399 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
1400 Read or Input attribute.
1402 2008-08-22 Ed Schonberg <schonberg@adacore.com>
1404 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
1405 clauses in related units is redundant, if one of the units is a package
1406 instantiation, use its instance_spec to determine which unit is the
1407 ancestor of the other.
1409 2008-08-22 Javier Miranda <miranda@adacore.com>
1411 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
1412 attributes add missing support to handle designated types that come
1413 from the limited view.
1415 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
1417 2008-08-22 Sergey Rybin <rybin@adacore.com>
1419 * vms_data.ads: Add entry for new gnatcheck -mNNN option
1421 * gnat_ugn.texi: Add description for gnatcheck option '-m'
1423 2008-08-22 Sergey Rybin <rybin@adacore.com>
1425 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
1426 acoording to the latest changes in the metric rule interface
1428 2008-08-22 Vincent Celier <celier@adacore.com>
1430 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
1431 (Check): Check if the file names registered in the ALI file for the
1432 spec, the body and each of the subunits are the ones expected.
1434 2008-08-22 Robert Dewar <dewar@adacore.com>
1436 * g-catiio.adb: Code cleanup.
1438 2008-08-20 Vincent Celier <celier@adacore.com>
1440 * make.adb (Gnatmake): Remove extra space in version line
1443 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
1444 as the name may already have been entered in the table by the Project
1447 2008-08-20 Jose Ruiz <ruiz@adacore.com>
1449 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
1450 weak symbols so we use the version provided by MaRTE when available.
1452 2008-08-20 Emmanuel Briot <briot@adacore.com>
1454 * g-catiio.ads, g-catiio.adb:
1455 (Value): Avoid an unnecessary system call to Clock in most cases.
1456 This call is only needed when only the time is provided in the string,
1457 and ignored in all other cases. This is more efficient.
1459 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
1461 * raise-gcc.c: Fix formatting nits.
1463 2008-08-20 Robert Dewar <dewar@adacore.com>
1466 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
1467 non-existing component clause.
1469 * exp_ch5.adb: Minor reformatting
1471 * g-comlin.adb: Minor reformatting
1473 * make.adb: Minor reformatting
1475 * prj-proc.adb: Minor reformatting
1477 * stylesw.ads: Minor reformatting
1479 2008-08-20 Vincent Celier <celier@adacore.com>
1481 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
1482 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
1483 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
1484 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
1485 and a switch is not recognized by gnatmake.
1486 (Gnatmake): Implement new scheme for gnatmake switches and global
1487 compilation switches.
1488 (Switches_Of): Try successively Switches (<file name>),
1489 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
1491 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1493 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
1494 implement style check that overriding operations are explicitly marked
1497 * style.ads (Missing_Overriding): new procedure that provides interface
1500 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
1501 that the declaration or body of overriding operations carries an
1502 explicit overriding indicator.
1505 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
1506 explicit indicator should be present.
1508 * sem_ch6.adb (Verify_Overriding_Indicator,
1509 Check_Overriding_Indicator): If operation is overriding, check whether
1510 declaration and/or body of subprogram should be present
1512 2008-08-20 Vincent Celier <celier@adacore.com>
1514 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
1515 gprbuild when casing is MixedCase, whatever the casing of the letters
1518 2008-08-20 Gary Dismukes <dismukes@adacore.com>
1520 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
1521 creating dummy init proc.
1522 (Requires_Init_Proc): Return False in the case No_Default_Initialization
1523 is in force and the type does not have associated default
1524 initialization. Move test of Is_Public (with tests of restrictions
1525 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
1526 for default initialization.
1528 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
1530 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
1531 of any alias or prefix but having attached parameters (as \"-O2\").
1533 2008-08-20 Robert Dewar <dewar@adacore.com>
1535 * s-fileio.adb: Minor reformatting
1537 2008-08-20 Thomas Quinot <quinot@adacore.com>
1539 * exp_strm.adb (Build_Elementary_Input_Call,
1540 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
1541 selects the stream attribute routines for long float types.
1543 2008-08-20 Vincent Celier <celier@adacore.com>
1545 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
1547 * prj.ads (Array_Data): Add a component Location
1549 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1552 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
1553 argument for ASIS and navigation use.
1555 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1557 * einfo.ads: Add comment.
1559 2008-08-20 Bob Duff <duff@adacore.com>
1561 * sem_eval.ads: Minor comment fix.
1563 2008-08-20 Bob Duff <duff@adacore.com>
1565 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
1566 folding. We were folding things like "False and then ...", but not
1567 "X and then ..." where X is a constant whose value is known at compile
1570 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
1572 * exp_ch5.adb (Controlled_Type): New routine.
1573 (Expand_N_Extended_Return_Statement): When generating a move of the
1574 final list in extended return statements, check the type of the
1575 function and in the case of double expanded return statements, the type
1576 of the returned object.
1577 (Expand_Simple_Function_Return): Perform an interface conversion when
1578 the type of the returned object is an interface and the context is an
1579 extended return statement.
1581 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1583 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
1584 and the full view is visible, set flag on full view as well.
1586 2008-08-20 Thomas Quinot <quinot@adacore.com>
1588 * g-comlin.adb: Minor reformatting
1589 Minor code reorganization.
1591 * freeze.adb: Minor reformatting
1593 2008-08-20 Vincent Celier <celier@adacore.com>
1595 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
1596 source of another project.
1598 2008-08-20 Pascal Obry <obry@adacore.com>
1600 * s-os_lib.ads: Minor reformatting.
1602 2008-08-20 Arnaud Charlet <charlet@adacore.com>
1604 * gnatvsn.ads: Minor reformatting.
1606 2008-08-20 Arnaud Charlet <charlet@adacore.com>
1608 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
1609 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
1610 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
1611 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
1612 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
1613 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
1614 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
1615 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
1616 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
1617 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
1618 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
1619 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
1620 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
1621 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
1622 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
1623 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
1624 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
1625 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
1626 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
1627 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
1628 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
1629 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
1630 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
1631 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
1632 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
1633 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
1634 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
1635 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
1636 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
1637 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
1638 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
1639 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
1640 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
1641 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
1642 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
1643 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
1644 s-poosiz.adb, link.c: Fix copyright notice.
1646 2008-08-20 Arnaud Charlet <charlet@adacore.com>
1648 * g-comlin.ads: Update comments.
1650 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1652 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
1654 2008-08-20 Gary Dismukes <dismukes@adacore.com>
1657 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
1658 Make_Implicit_Exception_Handler when rewriting an exception handler with
1659 a choice parameter, and pass the handler's Sloc instead of that of the
1660 handled sequence of statements. Make_Implicit_Exception_Handler sets the
1661 Sloc to No_Location (unless debugging generated code), which we don't
1662 want for the case of a user handler.
1664 2008-08-20 Robert Dewar <dewar@adacore.com>
1666 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
1669 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
1670 now labeled as info msgs, not warnings.
1672 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
1674 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
1676 * a-textio.adb: Remove redundant test.
1678 * a-witeio.adb: Minor code reorganization
1679 Remove redundant test found working on another issue
1681 * a-ztexio.adb: Minor code reorganization
1682 Remove redundant test found working on another issue
1684 2008-08-20 Thomas Quinot <quinot@adacore.com>
1686 * s-fileio.adb (Open) Use C helper function to determine whether a
1687 given errno value corresponds to a "file not found" error.
1689 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
1691 2008-08-20 Jose Ruiz <ruiz@adacore.com>
1693 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
1694 to get access to the per-task errno variable.
1695 (__set_errno for MaRTE): Do not redefine this function here since it is
1696 already defined in MaRTE.
1698 2008-08-20 Tristan Gingold <gingold@adacore.com>
1700 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
1702 2008-08-20 Robert Dewar <dewar@adacore.com>
1704 * freeze.adb: Minor reformatting
1706 * g-comlin.adb: Minor reformatting
1708 * g-socket.adb: Minor reformatting
1710 * g-socthi-mingw.adb: Minor reformatting
1712 * g-stheme.adb: Minor reformatting
1714 2008-08-20 Ed Schonberg <schonberg@adacore.com>
1716 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
1717 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
1718 confusion between partial and full views of an ancestor of the context
1719 type when the parent is a private extension declared in a parent unit,
1720 and full views are available for the context type.
1722 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
1723 Robert Dewar <dewar@adacore.com>
1726 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
1728 Move comment in the right place.
1729 * g-comver.adb (Version): Look for a zero-termination in
1730 addition to a closing parenthesis.
1732 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
1734 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
1735 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
1736 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
1737 Is_Package_Or_Generic_Package instead of hand-crafted tests.
1739 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
1742 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
1745 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1747 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
1749 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1751 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
1752 for back-copy statements in lieu of that of the actual.
1754 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1757 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
1758 setjmp test consistently. Adjust for new behavior of flag_stack_check.
1759 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
1760 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
1762 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
1765 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
1766 * sem_attr.adb (Check_Type): The current instance of a protected
1767 object is not a type name.
1768 (Analyze_Access_Attribute): Accept instances of protected objects.
1769 (Analyze_Attribute, Attribute_Address clause): Ditto.
1770 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
1771 the prefix as being the current instance if needed.
1773 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1775 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
1776 Remove duplicate s-win32.o. Add s-winext.o.
1778 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1780 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
1781 with SOSC.SOCK__STREAM.
1782 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
1785 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
1787 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
1788 * gsocket.h, socket.c: Update to support RTEMS.
1789 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
1791 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
1792 Robert Dewar <dewar@adacore.com>
1794 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
1795 left argument even when right argument is 0.
1796 (Expand_N_Op_Mod): Ditto when right argument is 1.
1797 (Expand_N_Op_Multiply): Ditto when any argument is 0.
1798 (Expand_N_Op_Rem): Ditto when right argument is 1.
1800 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1802 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
1805 2008-08-08 Ed Schonberg <schonberg@adacore.com>
1807 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
1808 from Freeze_Entity. Used to generate cross-reference information for
1809 types declared in generic packages.
1811 2008-08-08 Thomas Quinot <quinot@adacore.com>
1813 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
1816 2008-08-08 Thomas Quinot <quinot@adacore.com>
1819 On Windows, include <errno.h> and redefine only selected errno values
1820 from their <winsock2.h> definitions.
1822 * s-osinte-freebsd.ads: Minor reformatting
1824 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
1826 * g-soccon.ads: New file.
1828 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
1829 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
1830 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
1831 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
1832 unit, to allow building software that depends on this internal unit
1833 with both older and newer compilers.
1835 2008-08-08 Robert Dewar <dewar@adacore.com>
1837 * s-strxdr.adb: Minor reformatting
1839 2008-08-08 Bob Duff <duff@adacore.com>
1841 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
1842 checking for integer operations (including division by zero)", which
1843 is wrong -- divide by zero is not part of overflow checking.
1844 Also added misc clarification about what check-suppression means.
1846 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
1848 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
1850 * g-comlin.adb (Add_Switch): Handle addition of switches at the
1851 begining of the command line.
1852 (Append, Add): Renaming of Append to Add as this now allows addition
1853 at the begining of the list.
1855 * g-comlin.ads (Add_Switch): Handle addition of switches at the
1856 begining of the command line.
1858 2008-08-08 Thomas Quinot <quinot@adacore.com>
1861 (Name): Document application scope (only legacy PC serial ports on
1864 2008-08-08 Thomas Quinot <quinot@adacore.com>
1866 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
1867 previous change, not needed after all.
1869 2008-08-08 Ed Schonberg <schonberg@adacore.com>
1871 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
1872 exclusion indicator is present
1874 2008-08-08 Robert Dewar <dewar@adacore.com>
1876 * g-comlin.adb: Minor code reorganization
1879 * g-comlin.ads: Minor reformatting
1881 * s-fileio.adb: Minor reformatting
1883 * sem_attr.adb: Minor code reorganization (use Nkind_In)
1886 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
1888 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
1889 with s-oscons-tmplt.i.
1891 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
1893 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
1895 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1897 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
1900 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
1901 of a formal parameter of an incomplete type. Improve error message for
1902 other improper uses of incomplete types.
1904 2008-08-06 Robert Dewar <dewar@adacore.com>
1906 * gnat_ugn.texi: Clarify -gnato documentation
1908 2008-08-06 Thomas Quinot <quinot@adacore.com>
1910 * gcc-interface/Makefile.in,
1911 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
1912 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
1913 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
1914 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
1915 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
1916 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
1917 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
1918 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
1919 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
1920 Remove GNAT.Sockets.Constants. This internal package is replaced by
1921 System.OS_Constants.
1923 2008-08-06 Thomas Quinot <quinot@adacore.com>
1925 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
1926 Remove obsolete targets referencing gen-soccon
1927 When generating s-oscons.ads, use a file name that includes the
1928 THREAD_KIND, to ensure that the (potentially different) version from a
1929 previous build with a different threads flavour does not get reused.
1931 2008-08-06 Thomas Quinot <quinot@adacore.com>
1933 * sem_res.adb: Minor reformatting
1935 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
1936 only when the operating system reports a non-existing file or directory
1937 (ENOENT), otherwise raise Name_Error.
1939 * exp_ch11.adb: Minor reformatting
1941 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1943 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
1944 incomplete, add the access_to_subprogram type to the list of private
1945 dependents only if the incomplete type will be completed in the current
1947 (Build_Discriminant_Constraints): If the type of the discriminant is
1948 access_to_variable, reject a constraint that is access_to_constant.
1950 2008-08-06 Thomas Quinot <quinot@adacore.com>
1952 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1953 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1954 g-sttsne-dummy.ads: New files.
1956 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1957 with pragma Unimplemented_Unit for sockets packages on Nucleus.
1959 2008-08-06 Pascal Obry <obry@adacore.com>
1961 * adaint.c: Another fix for ACL support on Windows.
1963 2008-08-06 Javier Miranda <miranda@adacore.com>
1965 * exp_disp (Expand_Interface_Actuals): Adds missing support for
1966 expansion of calls to subprograms using selected components.
1968 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1970 * sem_res.adb (Resolve_Call): Use base type to determine whether a
1971 dereference is needed because a subtype of an access_to_subprogram is
1972 simply an access-subtype
1974 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1976 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1977 parameters, always specify the expected separator.
1979 2008-08-06 Thomas Quinot <quinot@adacore.com>
1981 * xnmake.adb: Use new XUtil package for platform independent text
1984 2008-08-06 Vincent Celier <celier@adacore.com>
1986 * gnat_ugn.texi: Document compiler switch -gnateG
1988 2008-08-06 Quentin Ochem <ochem@adacore.com>
1990 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1991 in the case of an empty pattern size.
1992 (Compute_Result): Do not do any computation in the case of an empty
1994 (Report_Result): Fixed computation of the overflow guard.
1996 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1998 * g-awk.adb (Finalize): Do not use directly objects of the type in the
1999 finalization routine to prevent elaboration order anomalies in new
2000 finalization scheme.
2002 2008-08-06 Ed Schonberg <schonberg@adacore.com>
2004 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
2005 declaration for the same type.
2007 2008-08-06 Thomas Quinot <quinot@adacore.com>
2009 * sem.adb: Minor rewording (comment)
2011 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
2013 * g-comlin.adb (Define_Switch, Get_Switches): New.
2014 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
2015 ungrouping switches.
2016 (For_Each_Simple_Switch): Allow more control over parameters handling.
2017 This generic method now allows ungrouping of switches with parameters
2018 and switches with more than one letter after the prefix.
2019 (Set_Command_Line): Take care of switches that are prefixed with a
2020 switch handling parameters without delimiter (-gnatya and -gnaty3 for
2022 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
2023 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
2025 (Start, Alias_Switches, Group_Switches): Take care of parameters
2026 possibly present inside a group.
2028 * g-comlin.ads (Define_Switch): New method used to define a list of
2029 expected switches, that are necessary for correctly ungrouping switches
2030 with more that one character after the prefix.
2031 (Get_Switches): Method that builds a getopt string from the list of
2032 switches as set previously by Define_Switch.
2033 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
2034 status of the operation. Also allow the removal of switches with
2036 (Command_Line_Configuration_Record): Maintain a list of expected
2039 2008-08-06 Doug Rupp <rupp@adacore.com>
2041 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
2042 TARGET_MALLOC64 clear.
2044 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
2045 if TARGET_MALLOC64 clear.
2047 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
2048 (TARGET_MALLC64): New macro. Default to clear.
2050 2008-08-06 Doug Rupp <rupp@adacore.com>
2052 * gcc-interface/utils2.c (snames.h) Include
2053 (TARGET_ABI_OPEN_VMS): Initialize.
2054 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
2057 2008-08-06 Ed Schonberg <schonberg@adacore.com>
2059 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
2060 null exclusion in a discriminant declaration
2062 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
2063 indicators when type is not an access type.
2065 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
2066 indicators when type is not an access type.
2068 2008-08-06 Javier Miranda <miranda@adacore.com>
2070 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
2071 with the target interface before expanding the code of the interface
2074 2008-08-05 Ed Schonberg <schonberg@adacore.com>
2077 (Freeze_Entity): A deferred constant does not violate the restriction
2078 No_Default_Initialization,
2080 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
2081 can carry a null exclusion indicator, and on which an error may be
2082 posted if the indicator is redundant.
2084 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
2085 does not apply to a subtype mark that already excludes null.
2087 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
2088 exclusion does not apply to a subtype mark that already excludes null.
2090 2008-08-05 Thomas Quinot <quinot@adacore.com>
2092 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
2094 2008-08-05 Doug Rupp <rupp@adacore.com>
2096 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
2098 2008-08-05 Thomas Quinot <quinot@adacore.com>
2100 * gsocket.h: Make this file includable in a Nucleus environment, which
2101 does not support sockets.
2103 * socket.c: Remove Nucleus-specific hack.
2105 2008-08-05 Pascal Obry <obry@adacore.com>
2107 * adaint.c: Remove support for readable attribute on vxworks and nucleus
2109 2008-08-05 Ed Schonberg <schonberg@adacore.com>
2112 (Analyze_Attribute, case 'Result): handle properly the case where some
2113 operand of the expression in a post-condition generates a transient
2116 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
2117 right-hand side when it is an anonymous access_to_subprogram, to force
2118 static accessibility check when needed.
2120 2008-08-05 Sergey Rybin <rybin@adacore.com>
2122 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
2123 rule according to the change in the rule option.
2124 Add documentation for -gnatw.b/-gnatw.B
2126 2008-08-05 Robert Dewar <dewar@adacore.com>
2128 * ug_words: Add entries for -gnatw.b/-gnatw.B
2130 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
2132 2008-08-05 Vincent Celier <celier@adacore.com>
2134 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
2137 * a-ztdeio.adb: Ditto.
2139 2008-08-05 Pascal Obry <obry@adacore.com>
2141 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
2144 2008-08-05 Vincent Celier <celier@adacore.com>
2147 (Wide_String_To_String): Returns a String with the same 'First as its
2149 (Wide_Wide_String_To_String): Ditto
2152 (Wide_String_To_String): Document that the lowest index of the returned
2153 String is equal to S'First.
2155 2008-08-05 Thomas Quinot <quinot@adacore.com>
2157 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
2159 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
2162 2008-08-05 Robert Dewar <dewar@adacore.com>
2164 * opt.ads (Warn_On_Biased_Representation): New flag
2167 (Analyze_Attribute_Definition_Clause): Issue warning when biased
2168 representation is required.
2169 (Minimum_Size): Don't allow biasing if enum rep clause case
2172 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
2173 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
2175 * usage.adb: Add lines for -gnatw.b/B switches
2177 2008-08-05 Pascal Obry <obry@adacore.com>
2179 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
2181 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
2183 2008-08-05 Thomas Quinot <quinot@adacore.com>
2185 * socket.c: Minor reformatting.
2187 2008-08-05 Robert Dewar <dewar@adacore.com>
2189 * sem_ch3.adb: Minor reformatting
2191 * prj-nmsc.adb: Minor reformatting
2193 2008-08-05 Ed Schonberg <schonberg@adacore.com>
2195 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
2196 visibility check on the component type if the simple test fails.
2198 2008-08-05 Jose Ruiz <ruiz@adacore.com>
2200 * init.c (__gnat_install_handler for linux): If we are building the
2201 Xenomai run time then we need to do two additional things: avoid
2202 memory swapping and transform the Linux environment task into a native
2205 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
2206 time): Use interface to Xenomai native skin and avoid linux-specific
2207 way of setting CPU affinity.
2208 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
2210 2008-08-05 Bob Duff <duff@adacore.com>
2212 * checks.ads: Minor comment fix
2214 2008-08-05 Thomas Quinot <quinot@adacore.com>
2216 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
2217 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
2220 2008-08-05 Robert Dewar <dewar@adacore.com>
2222 * mlib.adb: Minor code reorganization
2225 * make.adb: Minor reformatting
2227 * prj-attr.ads: Minor reformatting
2229 * s-os_lib.adb: Minor reformatting
2231 * s-fileio.adb: Minor code reorganization
2234 * prj.ads: Minor reformatting
2236 2008-08-05 Bob Duff <duff@adacore.com>
2238 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
2239 unresolved initial value of "null", because it causes implicitly
2240 generated "=" operators to be ambiguous, and because this type should
2241 not be passed to gigi.
2243 2008-08-05 Vincent Celier <celier@adacore.com>
2245 * mlib.adb: Update comments.
2247 * make.adb (Switches_Of): Check for Switches (others), before checking
2248 for Default_Switches ("Ada").
2249 (Gnatmake): Use Builder'Switches (others) in preference to
2250 Builder'Default_Switches ("Ada") if there are several mains.
2253 (Add_Attribute): Add component Others_Allowed in Attribute_Record
2257 Add markers to indicates that attributes Switches allow others as index
2258 (Others_Allowed_For): New Boolean function, returning True for
2259 attributes with the mark.
2260 (Initialize): Recognize optional letter 'O' as the marker for
2261 associative array attributes where others is allowed as the index.
2264 (Others_Allowed_For): New Boolean function
2265 (Attribute_Record): New Boolean component Others_Allowed
2268 (Parse_Attribute_Declaration): For associative array attribute where
2269 others is allowed as the index, allow others as an index.
2272 (Process_Binder): Skip associative array attributes with index others
2273 (Process_Compiler): Ditto
2276 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
2277 index is All_Other_Names.
2280 (All_Other_Names): New constant
2283 (Process_Declarative_Items): Skip associative array attribute when index
2284 is reserved word "others".
2286 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
2288 * gen-oscons.c: Adapt for VMS where termios.h is not available.
2290 2008-08-05 Thomas Quinot <quinot@adacore.com>
2292 * a-rttiev.adb: Minor reformatting (comments)
2294 * gen-soccon.c: Rename to gen-oscons.c
2296 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
2297 GNAT.Sockets.Constants.
2298 Add new constants for GNAT.Serial_Communications and System.File_IO.
2300 2008-08-05 Javier Miranda <miranda@adacore.com>
2302 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
2303 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
2304 implementation of this routine has been simplified.
2306 2008-08-05 Pascal Obry <obry@adacore.com>
2308 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
2309 Set_Read_Only Win32 implementation.
2311 2008-08-05 Thomas Quinot <quinot@adacore.com>
2313 * exp_strm.adb: Minor reformatting (comments)
2315 * sem_ch12.adb: Minor reformatting.
2317 2008-08-05 Robert Dewar <dewar@adacore.com>
2319 * sem_ch3.adb: Minor reformatting
2321 * checks.adb: Minor reformatting
2323 2008-08-05 Thomas Quinot <quinot@adacore.com>
2325 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
2326 restriction on Prefix.
2328 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
2330 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
2331 methods needed to handle switch sections when building a command line.
2332 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
2333 Current_Section): New public methods or methods modified to handle
2334 building command lines with sections.
2335 (Set_Command_Line): Take into account sections when analysing a switch
2337 (Start): Sort the switches by sections before iterating the command line
2340 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
2341 Is_New_Section, Current_Section): New methods or methods modified to
2342 handle building command lines with sections.
2344 2008-08-05 Ed Schonberg <schonberg@adacore.com>
2346 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
2347 discriminants, indicate that the corresponding object declaration has
2348 no initialization, to prevent spurious warnings when the access type is
2351 2008-08-05 Ed Schonberg <schonberg@adacore.com>
2353 * sem_res.adb (Resolve_Call): If this is a call to the predefined
2354 Abort_Task, warn if the call appears within a protected operation.
2356 2008-08-04 Robert Dewar <dewar@adacore.com>
2358 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
2360 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2363 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
2364 anonymous access to protected subprogram that is the return type of the
2365 specification of a subprogram body.
2368 (Analyze_Subprogram_Body): if the return type is an anonymous access to
2369 subprogram, freeze it now to prevent access anomalies in the back-end.
2371 * exp_ch9.adb: Minor code cleanup.
2372 Make sure that new declarations are inserted into the tree before
2373 analysis (from code reading).
2375 2008-08-04 Robert Dewar <dewar@adacore.com>
2378 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
2381 2008-08-04 Thomas Quinot <quinot@adacore.com>
2383 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
2385 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
2387 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
2389 2008-08-04 Javier Miranda <miranda@adacore.com>
2391 * sem_prag.adb (Process_Convention): Add missing support for
2392 N_Private_Extension_Declaration nodes.
2394 2008-08-04 Robert Dewar <dewar@adacore.com>
2396 * exp_ch4.adb: Minor reformatting
2398 2008-08-04 Pascal Obry <obry@adacore.com>
2400 * adaint.h: Add missing prototype.
2402 * adaint.c: Refine support for Windows file attributes.
2404 2008-08-04 Robert Dewar <dewar@adacore.com>
2407 (Valid_Conversion): Catch case of designated types having different
2408 sizes, even though they statically match.
2410 2008-08-04 Javier Miranda <miranda@adacore.com>
2412 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
2413 added in previous patch to handle access to subprograms.
2415 2008-08-04 Robert Dewar <dewar@adacore.com>
2418 (Freeze_Entity): Only check No_Default_Initialization restriction for
2419 constructs that come from source
2421 2008-08-04 Thomas Quinot <quinot@adacore.com>
2423 * exp_ch6.adb: Minor comment fix.
2425 * sem_ch4.adb: Minor reformatting.
2427 2008-08-04 Robert Dewar <dewar@adacore.com>
2429 * sem_res.adb: (Large_Storage_Type): Improve previous change.
2431 2008-08-04 Pascal Obry <obry@adacore.com>
2433 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
2436 2008-08-04 Javier Miranda <miranda@adacore.com>
2438 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
2439 for N_Formal_Object_Declaration nodes. Adding kludge required by
2440 First_Formal to provide its functionality with access to functions.
2441 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
2442 for anonymous access types returned by functions.
2444 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
2445 conversion of null-excluding access types (required only once to force
2446 the generation of the required runtime check).
2448 * sem_type.adb (Covers): minor reformating
2450 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
2451 with internally generated nodes. Avoid generating the error inside init
2454 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
2455 (Resolve_Null): Generate the null-excluding check in case of assignment
2456 to a null-excluding object.
2457 (Valid_Conversion): Add missing support for anonymous access to
2460 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
2461 anonymous access types whose designated type is an itype. This case
2462 occurs with anonymous access to protected subprograms types.
2463 (Analyze_Return_Type): Add missing support for anonymous access to
2464 protected subprogram.
2466 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
2467 subprograms addition of missing check on matching convention. Required
2468 to properly handle access to protected subprogram types.
2470 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
2471 null excluding access types.
2473 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2475 * sem_ch12.adb: Add comments
2477 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
2478 access type and the allocator is not initialized, warn rather than
2481 2008-08-04 Robert Dewar <dewar@adacore.com>
2483 * exp_ch4.adb: Minor reformatting
2485 * exp_dist.adb: Minor reformatting
2487 * g-comlin.adb: Minor reformatting
2489 2008-08-04 Gary Dismukes <dismukes@adacore.com>
2491 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
2492 target to the type of the aggregate in the case where the target object
2495 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
2496 result type is class-wide and inherently limited, and the expression
2497 has a specific type, create a return object of the specific type, for
2498 more efficient handling of returns of build-in-place aggregates (avoids
2499 conversions of the class-wide return object to the specific type on
2500 component assignments).
2502 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
2503 about a type mismatch for a class-wide function with a return object
2504 having a specific type when the object declaration doesn't come from
2505 source. Such an object can result from the expansion of a simple return.
2507 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
2509 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
2511 * gcc-interface/Makefile.in: Use 64bit-specific system files when
2512 compiling for 64bit windows.
2514 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
2516 * g-comlin.adb (Group_Switches): Preserve the switch order when
2517 grouping and allow switch grouping of switches with more than one
2518 character extension (e.g. gnatw.x).
2519 (Args_From_Expanded): Remove this now obsolete method.
2521 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2523 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
2524 chain at once, to ensure that type is properly decorated for back-end,
2525 when allocator appears within a loop.
2527 2008-08-04 Kevin Pouget <pouget@adacore.com>
2529 * snames.h, snames.adb, snames.ads:
2530 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
2532 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
2533 Build_To_Any_Call and Build_TypeCode_Call procedures.
2535 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
2537 * rtsfind.ads: Add corresponding names.
2539 * tbuild.adb: Update prefix restrictions to allow '_' character.
2541 2008-08-04 Doug Rupp <rupp@adacore.com>
2543 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
2544 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
2545 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
2546 use it. Calculate pointer range overflow using 64bit types.
2548 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2550 * sem_ch3.adb (Access_Definition): A formal object declaration is a
2551 legal context for an anonymous access to subprogram.
2553 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
2554 indirect call, report success to the caller to include possible
2557 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
2559 of the extended return is an anonymous access_to_subprogram type.
2562 (Resolve_Call): Insert a dereference if the type of the subprogram is an
2563 access_to_subprogram and the context requires its return type, and a
2564 dereference has not been introduced previously.
2566 2008-08-04 Arnaud Charlet <charlet@adacore.com>
2568 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
2569 gnatcheck support in GPS.
2571 2008-08-04 Vincent Celier <celier@adacore.com>
2573 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
2576 2008-08-04 Vincent Celier <celier@adacore.com>
2578 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
2579 variable, but don't check the resulting value as it has no impact on
2583 (Generate_Processed_File): New Boolean flag, set to True in the compiler
2584 when switch -gnateG is used.
2587 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
2588 when the source is modified by the preprocessor and there is no
2589 preprocessing errors.
2591 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
2594 (Load_File): Output the result of preprocessing if the source text was
2597 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
2599 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
2601 * ug_words: Add VMS equivalent for -gnateG
2604 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
2606 2008-08-04 Doug Rupp <rupp@adacore.com>
2608 * gcc-interface/utils2.c:
2609 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
2610 in 32bit descriptor.
2612 2008-08-04 Robert Dewar <dewar@adacore.com>
2614 * par-ch10.adb: Minor reformatting
2616 * i-cobol.adb: Minor reformatting.
2618 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2620 * sem_ch3.adb (Access_Definition): Create an itype reference for an
2621 anonymous access return type of a regular function that is not a
2624 2008-08-04 Vincent Celier <celier@adacore.com>
2626 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
2628 * snames.adb: New standard name Global_Compilation_Switches
2630 * snames.ads: New standard name Global_Compilation_Switches
2632 * make.adb: Correct spelling error in comment
2634 2008-08-04 Arnaud Charlet <charlet@adacore.com>
2636 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
2639 2008-08-04 Thomas Quinot <quinot@adacore.com>
2641 * sem_ch10.adb: Minor comment fix.
2643 2008-08-04 Robert Dewar <dewar@adacore.com>
2645 * restrict.adb: Improved messages for restriction warnings
2647 * restrict.ads: Improved messages for restriction messages
2649 * s-rident.ads (Profile_Name): Add No_Profile
2651 2008-08-04 Robert Dewar <dewar@adacore.com>
2653 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
2655 2008-08-04 Robert Dewar <dewar@adacore.com>
2657 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
2659 2008-08-04 Vincent Celier <celier@adacore.com>
2662 (Copy_Package_Declarations): When inheriting package Naming from a
2663 project being extended, do not inherit source exception names.
2665 2008-08-04 Ed Schonberg <schonberg@adacore.com>
2667 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
2668 list of declaration to find previous subprogram, do not go to the
2669 original node of a generic unit.
2671 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
2673 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
2674 New case. Convert BOOLEAN_TYPE operation to the default integer type.
2676 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
2678 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
2679 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
2680 and adjust for above renaming.
2681 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
2682 gnu_expr_alt_type parameter. Convert the expression to it instead
2683 of changing its type in place.
2684 (build_function_stub): Adjust call to above function.
2686 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
2688 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
2689 code. Do not get full definition of deferred constants with address
2690 clause for a use. Do not ignore deferred constant definitions with
2691 address clause. Ignore constant definitions already marked with the
2693 <object>: Remove obsolete comment. For a deferred constant with
2694 address clause, get the initializer from the full view.
2695 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
2696 Rework and remove obsolete comment.
2697 <N_Object_Declaration>: For a deferred constant with address clause,
2698 mark the full view with the error node.
2699 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
2702 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
2704 * rtsfind.ads: Add block IO versions of stream routines for Strings.
2706 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
2707 sem_prag.adb, snames.adb, snames.ads, snames.h,
2708 par-prag.adb: Undo previous stream related changes.
2710 * s-rident.ads: Add new restriction No_Stream_Optimizations.
2712 * s-ststop.ads, s-ststop.adb: Comment reformatting.
2713 Define enumeration type to designate different IO mechanisms.
2714 Enchance generic package Stream_Ops_Internal to include an
2715 implementation of Input and Output.
2717 * exp_attr.adb (Find_Stream_Subprogram): If restriction
2718 No_Stream_Optimization is active, choose the default byte IO
2719 implementations of stream attributes for Strings.
2720 Otherwise use the corresponding block IO version.
2722 2008-08-01 Olivier Hainque <hainque@adacore.com>
2724 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
2725 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
2727 2008-08-01 Robert Dewar <dewar@adacore.com>
2729 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
2730 convert plain identifier into defining identifier.
2732 2008-08-01 Robert Dewar <dewar@adacore.com>
2734 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
2737 * lib-xref.adb: Add error defense.
2739 2008-08-01 Bob Duff <duff@adacore.com>
2741 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
2743 2008-08-01 Gary Dismukes <dismukes@adacore.com>
2745 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
2746 correct accessibility levels. In the "when others" case, retrieve the
2747 access level of the Etype of Prev rather than Prev_Orig, because the
2748 original exression has not always been analyzed.
2750 2008-08-01 Robert Dewar <dewar@adacore.com>
2752 * prj-nmsc.adb: Minor reformatting
2754 * sem_ch4.adb: Minor reformatting
2755 Minor code reorganization
2757 * prj.ads: Minor reformatting
2759 * s-os_lib.adb: Minor reformatting
2761 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
2764 * scans.ads: Minor reformatting.
2766 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
2767 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
2770 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2772 * sem_ch12.adb: Minor comment reformatting
2774 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
2777 2008-08-01 Robert Dewar <dewar@adacore.com>
2779 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
2782 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2784 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
2785 converted is a real literal and the target type has static bounds,
2786 perform the conversion exactly to prevent floating-point anomalies on
2789 2008-08-01 Vincent Celier <celier@adacore.com>
2791 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
2793 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
2795 * prj.adb (Object_Exist_For): Use Object_Generated, not
2796 Objects_Generated that is removed and was never modified anyway.
2799 (Path_Syntax_Kind): New enumeration type
2800 (Language_Config): New component Path_Syntax, defaulted to Host.
2801 Components PIC_Option and Objects_Generated removed, as they are not
2804 * snames.adb: New standard name Path_Syntax
2806 * snames.ads: New standard name Path_Syntax
2808 2008-08-01 Vincent Celier <celier@adacore.com>
2811 (Adalib_Path): New variable to store the path of the adalib directory
2812 when procedure Specify_Adalib_Dir is called.
2813 (Lib_Directory): If Adalib_Path is not null, return its value
2814 (Specify_Adalib_Dir): New procedure
2816 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
2818 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2821 (Check_Precondition_Postcondition): If not generating code, analyze the
2822 expression in a postcondition that appears in a subprogram body, so that
2823 it is properly decorated for ASIS use.
2825 2008-08-01 Gary Dismukes <dismukes@adacore.com>
2827 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
2828 Orig_Prev to Prev in the case where the actual is N_Function_Call or
2829 N_Identifier. This was interfering with other cases that are rewritten
2830 as N_Identifier, such as allocators, resulting in passing of the wrong
2831 accessibility level, and based on testing this code is apparently no
2832 longer needed at all.
2834 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2836 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
2837 procedure call whose prefix
2838 is a parameterless function call that returns an access_to_procedure.
2840 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2842 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
2843 for RTX. Adding a suffix that is incremented at each iteration.
2845 2008-08-01 Robert Dewar <dewar@adacore.com>
2847 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
2850 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
2852 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
2853 paths, which are authorized by Windows but can lead to errors when used
2856 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2858 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
2859 a pending instantiation for the body of a subprogram that is to be
2863 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
2865 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
2866 create a pending instance for its body, so that calls to the subprogram
2867 can be inlined by the back-end.
2869 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2871 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
2874 2008-08-01 Robert Dewar <dewar@adacore.com>
2876 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2878 2008-08-01 Doug Rupp <rupp@adacore.com>
2880 * gnat_rm.texi: Document new mechanism Short_Descriptor.
2882 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
2885 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2886 mechanism and Short_Descriptor mechanism values.
2888 * snames.adb (preset_names): Add short_descriptor entry.
2890 * snames.ads: Add Name_Short_Descriptor.
2892 * types.h: Add new By_Short_Descriptor mechanism values.
2894 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2895 mechanism and Short_Descriptor mechanism values.
2897 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
2899 (Descriptor_Codes): Modify range for new mechanism values.
2901 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
2904 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
2905 (gnat_to_gnu_param): Handle By_Short_Descriptor.
2907 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
2908 (build_vms_descriptor32): New prototype.
2909 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
2911 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
2912 argument in call fill_vms_descriptor.
2914 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
2915 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
2916 (build_vms_descriptor): Renamed from build_vms_descriptor64.
2917 (convert_vms_descriptor32): New function.
2918 (convert_vms_descriptor64): New function.
2919 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
2922 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
2925 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2927 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
2928 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
2931 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2933 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
2934 current directory so only fully qualified names are allowed.
2936 2008-08-01 Robert Dewar <dewar@adacore.com>
2939 Minor editing, remove uncomfortable use of semicolon
2941 * s-ststop.adb: Add some ??? comments
2943 * sem_ch10.adb: Minor reformatting
2946 Minor comment fixes, some pragmas were not properly
2947 categorized in the comments, documentation change only
2949 * xref_lib.adb: Minor reformatting
2951 * sinput.adb: Minor reformatting
2953 * gnatchop.adb: Minor reformatting
2955 * sem_util.ads: Minor reformatting.
2957 * opt.ads: Minor documentation fix
2959 * scng.adb: Minor reformatting
2961 * prj-part.adb: Update comments
2963 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2965 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2966 tagged synchronized type, use corresponding record type.
2968 2008-08-01 Doug Rupp <rupp@adacore.com>
2970 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2971 dummy transfer address for debugging.
2973 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2975 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2977 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
2979 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2980 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2982 2008-07-31 Pascal Obry <obry@adacore.com>
2984 * prj-nmsc.adb: Keep Object and Exec directory casing.
2986 2008-07-31 Jose Ruiz <ruiz@adacore.com>
2988 * system-rtx-rtss.ads
2989 Change the default stack size. It is important to set the commit part.
2992 (Initialize): Get the clock resolution.
2993 (RT_Resolution): Return the clock resolution that is indicated by the
2996 * s-parame-vxworks.adb
2997 Document that this body is used for RTX in RTSS (kernel) mode.
2999 * gcc-interface/Makefile.in
3000 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
3001 s-parame-vxworks.adb body in order to have reasonable stack sizes in
3002 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
3003 cannot ask for too big values.
3005 2008-07-31 Robert Dewar <dewar@adacore.com>
3007 * exp_aggr.adb: Minor reformatting
3009 * makeutl.adb: Minor reformatting
3011 * prj-env.adb: Minor reformatting
3013 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3015 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
3016 tagged type is completed by a concurrent type.
3018 2008-07-31 Gary Dismukes <dismukes@adacore.com>
3021 (Resolve_Record_Aggregate): Bypass error that a type without
3022 components must have a "null record" aggregate when compiling for Ada
3023 2005, since it's legal to give an aggregate of form (others => <>)
3026 2008-07-31 Javier Miranda <miranda@adacore.com>
3028 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
3029 handle synchronized types. Required to handle well the object.operation
3030 notation applied to synchronized types.
3032 2008-07-31 Quentin Ochem <ochem@adacore.com>
3034 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
3035 anymore - just used internally.
3036 Added handling of very small tasks - when the theoretical size is
3037 already full at the point of the call.
3038 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
3039 not need to be added to the result.
3041 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3043 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
3044 corresponding spec is a primitive wrapper. Update comment.
3046 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3048 * bindgen.adb Comment reformatting. Update the list of run-time globals.
3049 (Gen_Adainit_Ada): Add the declaration, import and value set for
3050 configuration flag Canonical_Streams.
3051 (Gen_Adainit_C): Add the declaration and initial value of external
3052 symbol __gl_canonical_streams.
3054 * init.c: Update the list of global values computed by the binder.
3056 * opt.ads: Add flag Canonical_Streams.
3058 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
3059 semantically handled pragmas.
3061 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
3062 (Analyze_Pragma): Add case for pragma Canonical_Streams.
3064 * snames.adb: Add character value for name Canonical_Streams.
3067 Add Name_Canonical_Streams to the list of configuration pragmas.
3068 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
3070 * snames.h: Add a definition for Pragma_Canonical_Streams.
3073 Add a flag and import to seize the value of external symbol
3074 __gl_canonical_streams. Update comment and initial value of constant
3077 * gnat_rm.texi: Add section of pragma Canonical_Streams.
3080 Add pragma Canonical_Streams to the list of configuration pragmas.
3082 2008-07-31 Ed Schonberg <schonberg@adacore.com>
3084 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
3085 has the form A.B.C and B is a unit renaming, analyze its compilation
3086 unit and add a with_clause on A.b to the context.
3088 2008-07-31 Vincent Celier <celier@adacore.com>
3090 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
3091 return the empty string, instead of raising Constraint_Error.
3093 2008-07-31 Gary Dismukes <dismukes@adacore.com>
3095 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
3097 * checks.adb (Apply_Accessibility_Check): Insert the check on
3101 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
3102 to new parameter Insert_Node on call to Apply_Accessibility_Check.
3103 Necessary to distinguish the insertion node because the dereferenced
3104 formal may come from a rename, but the check must be inserted in
3105 front of the attribute.
3108 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
3109 call to Apply_Accessibility_Check.
3110 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
3111 on call to Apply_Accessibility_Check.
3114 2008-07-31 Javier Miranda <miranda@adacore.com>
3116 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
3117 types when the candidate type is a synchronized type.
3119 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
3120 types, and complete management of synchronized types adding missing
3121 code to handle formal that is a synchronized type.
3123 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
3124 are not available and cause the compiler to blowup. Found compiling
3125 test with switch -gnatc
3127 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
3128 Has_Correct_Formal_Mode plus code cleanup.
3130 2008-07-31 Bob Duff <duff@adacore.com>
3132 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
3133 recognized as two end-of-lines, but it should be just one.
3135 2008-07-31 Thomas Quinot <quinot@adacore.com>
3137 * exp_ch9.adb: Minor reformatting
3139 * tbuild.ads: Fix several occurrences of incorrectly referring to
3140 Name_Find as Find_Name.
3142 2008-07-31 Ed Schonberg <schonberg@adacore.com>
3144 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
3145 and the context is an object declaration with non-static bounds, treat
3146 the aggregate as non-static.
3148 2008-07-31 Vincent Celier <celier@adacore.com>
3150 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
3151 Move back spec of Parse_Single_Project to body, as it is not called
3152 outside of package Prj.Part.
3153 (Project_Data): Remove components Linker_Name, Linker_Path and
3154 Minimum_Linker_Options as they are no longer set.
3155 Remove function There_Are_Ada_Sources from package Prj and move code
3156 in the only place it was used, in Prj.Env.Set_Ada_Paths.
3158 2008-07-31 Arnaud Charlet <charlet@adacore.com>
3160 * mlib-utl.ads: Fix typo.
3162 2008-07-31 Robert Dewar <dewar@adacore.com>
3164 * sem_ch12.adb: Minor reformatting
3166 2008-07-31 Sergey Rybin <rybin@adacore.com>
3168 * gnat_ugn.texi: Change the description of the
3169 Overly_Nested_Control_Structures: now the rule always requires a
3170 positive parameter for '+R' option
3172 2008-07-31 Thomas Quinot <quinot@adacore.com>
3174 * g-pehage.adb: Minor reformatting
3176 2008-07-31 Pascal Obry <obry@adacore.com>
3178 * s-finimp.ads: Minor reformatting.
3180 2008-07-31 Vincent Celier <celier@adacore.com>
3182 * s-regexp.ads: Minor comment fix
3184 2008-07-31 Arnaud Charlet <charlet@adacore.com>
3186 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
3187 so that we can compile this file successfully with -gnatc.
3189 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3191 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
3192 of the type when looking for stream subprograms for type String,
3193 Wide_String and Wide_Wide_String.
3195 * s-ststop.adb: Change the initialization expression of constant
3198 2008-07-31 Geert Bosch <bosch@adacore.com>
3201 New file implementing __gnat_mulv64 signed integer multiplication with
3204 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
3206 * gcc-interface/gigi.h:
3207 (standard_types): Add ADT_mulv64_decl
3208 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
3210 * gcc-interface/utils.c:
3211 (init_gigi_decls): Add initialization of mulv64_decl
3213 * gcc-interface/trans.c:
3214 (build_unary_op_trapv): New function
3215 (build_binary_op_trapv): New function
3216 (gnat_to_gnu): Use the above functions instead of
3217 build_{unary,binary}_op
3219 * gcc-interface/Makefile.in
3220 (LIBGNAT_SRCS): Add arit64.c
3221 (LIBGNAT_OBJS): Add arit64.o
3223 2008-07-31 Vincent Celier <celier@adacore.com>
3225 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
3226 Linker'Default_Switches are declared. Warn if they are declared.
3228 2008-07-31 Ed Schonberg <schonberg@adacore.com>
3230 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
3231 Insert_Actions to place the pointer declaration in the code, rather
3232 than Insert_Before_And_Analyze, so that insertions of temporaries are
3233 kept in the proper order when transient scopes are present.
3236 2008-07-31 Robert Dewar <dewar@adacore.com>
3238 * einfo.adb (Spec_PPC): Now defined for generic subprograms
3240 * einfo.ads (Spec_PPC): Now defined for generic subprograms
3242 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
3245 2008-07-31 Vincent Celier <celier@adacore.com>
3247 * s-os_lib.adb: Minor comment fix
3249 2008-07-31 Ed Schonberg <schonberg@adacore.com>
3251 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
3252 transfer pre/postconditions from generic copy to original tree, so that
3253 they will appear in each instance.
3254 (Process_PPCs): Do not transform postconditions into a procedure in a
3255 generic context, to prevent double expansion of check pragmas.
3257 * sem_attr.adb: In an instance, the prefix of the 'result attribute
3258 can be the renaming of the
3259 current instance, so check validity of the name accordingly.
3261 2008-07-31 Robert Dewar <dewar@adacore.com>
3263 * mlib-utl.ads: Minor reformatting
3265 2008-07-31 Ed Schonberg <schonberg@adacore.com>
3267 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
3268 from context. This attribute must be usable in Ada95 mode.
3269 The attribute can appear in the body of a function marked
3270 Inline_Always, but in this case the postocondition is not enforced.
3272 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
3273 of an inlined call pre- and postconditions are legal
3275 2008-07-31 Vincent Celier <celier@adacore.com>
3277 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
3278 were for gprmake only
3280 2008-07-31 Robert Dewar <dewar@adacore.com>
3282 * gnat_ugn.texi: Update -gnatN documentation.
3284 * gnat_rm.texi: Add note about pre/postcondition
3285 pragmas not checked in conjunction with front-end inlining.
3287 2008-07-31 Robert Dewar <dewar@adacore.com>
3289 * g-pehage.adb, g-pehage.ads: Minor reformatting
3291 2008-07-31 Arnaud Charlet <charlet@adacore.com>
3293 * mlib-utl.ads, prj-makr.ads: Add comments.
3295 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3297 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
3298 [WINDOWS]: Add s-winext.o.
3300 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
3303 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
3304 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
3305 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
3306 Set precision to 1 for subtype of BOOLEAN_TYPE.
3307 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
3308 (make_type_from_size): Deal with BOOLEAN_TYPE.
3309 * gcc-interface/misc.c (gnat_print_type): Likewise.
3310 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
3311 Set boolean_type_node as its translation in the table, as well
3312 as boolean_false_node for False and boolean_true_node for True.
3313 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
3314 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
3315 (create_param_decl): Deal with BOOLEAN_TYPE.
3316 (build_vms_descriptor): Likewise.
3317 (build_vms_descriptor64): Likewise.
3318 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
3320 2008-07-30 Robert Dewar <dewar@adacore.com>
3322 * exp_ch9.adb: Minor reformatting
3324 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
3325 if no primitive operation is found.
3327 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
3329 * sem_ch8.adb: Minor reformatting
3331 2008-07-30 Laurent Pautet <pautet@adacore.com>
3334 Remove a limitation on the length of the words handled by the minimal
3335 perfect hash function generator.
3338 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
3341 2008-07-30 Robert Dewar <dewar@adacore.com>
3343 * gnatlink.adb: Minor reformatting
3345 2008-07-30 Thomas Quinot <quinot@adacore.com>
3347 * rtsfind.adb (Check_RPC): Check version consistency even when not
3348 generating RCI stubs. Provide more detailed error message in case of
3351 2008-07-30 Ed Schonberg <schonberg@adacore.com>
3353 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
3354 as a actual in an instance, check for a missing attribute to prevent
3355 program_error on an illegal program.
3357 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
3358 error if primitive is not found, so that exception can be handled
3359 elsewhere on illegal programs.
3361 2008-07-30 Robert Dewar <dewar@adacore.com>
3363 * uintp.adb (UI_GCD): Fix potential overflow
3365 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
3367 * einfo.adb: Flag245 is now used.
3368 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
3369 check to include functions.
3370 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
3371 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
3373 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
3374 to the list of displayed flags.
3376 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
3377 Wrapped_Entity. These two flags are now present in functions.
3378 New flag Is_Private_Primitive.
3379 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
3382 (Build_Wrapper_Bodies): New subprogram.
3383 (Build_Wrapper_Body): The spec and body have been moved to in
3384 Build_Wrapper_ Bodies. Code cleanup.
3385 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
3386 Wrappers are now generated for primitives declared between the private
3387 and full view of a concurrent type that implements an interface.
3388 (Build_Wrapper_Specs): New subprogram.
3389 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
3390 creation mechanism with a call to Build_Wrapper_Bodies.
3391 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
3392 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
3393 (Expand_N_Task_Body): Replace the wrapper body creation
3394 mechanism with a call to Build_Wrapper_Bodies.
3395 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
3396 creation mechanism with a call to Build_Wrapper_Specs.
3397 (Is_Private_Primitive_Subprogram): New subprogram.
3398 (Overriding_Possible): Code cleanup.
3399 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
3401 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
3403 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
3404 (Process_Full_View): Build wrapper specs for all primitives
3405 that belong to a private view completed by a concurrent type
3406 implementing an interface.
3408 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
3410 concurrent type with a private view that implements an interface, try to
3411 find the proper spec.
3412 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
3413 primitive if the type of its first parameter is a non-generic tagged
3415 (Analyze_Subprogram_Specification): Code reformatting.
3416 (Disambiguate_Spec): New routine.
3417 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
3418 (Is_Private_Concurrent_Primitive): New routine.
3421 (Find_Corresponding_Spec): Add a formal to control the output of errors.
3423 2008-07-30 Doug Rupp <rupp@adacore.com>
3425 * gigi.h (build_vms_descriptor64): New function prototype.
3426 (fill_vms_descriptor): Modified function prototype.
3428 * utils.c (build_vms_descriptor64): New function.
3430 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
3432 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
3435 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
3436 64bit and 32bit descriptor and save the 64bit version as an alternate
3437 TREE_TYPE in the parameter.
3438 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
3441 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
3443 2008-07-30 Robert Dewar <dewar@adacore.com>
3445 * make.adb: Minor reformatting
3447 * mlib-utl.adb: Minor reformatting
3449 * osint.ads: Minor reformatting
3451 2008-07-30 Jose Ruiz <ruiz@adacore.com>
3454 (__gnat_file_exists): Do not use __gnat_stat for RTX.
3455 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
3456 avoid the use of this symbol from libgcc.a in RTX kernel mode.
3459 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
3460 the function RtPrintf for console output.
3462 * argv.c Do not use the environ variable for RTX.
3464 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
3465 been moved before the call to Osint.Add_Default_Search_Dirs in order
3466 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
3467 from the appropriate run time.
3470 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
3471 target is a RTSS module for RTX.
3473 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
3474 RTX_RTSS_Kernel_Module
3475 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
3477 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
3478 exception handling mechanism for Windows and RTX in Win32 mode, but
3479 not for RTX in kernel mode (RTSS).
3480 (LIBGNAT_SRCS): Remove ada.h
3482 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
3484 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
3485 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
3486 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
3487 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
3488 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
3489 ALL_ADA_CFLAGS): Remove.
3490 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
3491 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
3492 (GCC_CFLAGS): Remove X_CFLAGS.
3493 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
3494 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
3495 (ADA_CFLAGS): Substitute.
3497 2008-07-30 Laurent Guerby <laurent@guerby.net>
3500 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
3501 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
3502 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
3503 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
3504 by stamp-gnatlib2-rts.
3506 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3508 PR documentation/15479
3509 * gnat-style.texi: Remove AdaCore copyright statement and GPL
3510 statement for GNAT. Add @copying stanza, use it. Update to
3511 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
3512 title as Front-Cover Text.
3513 * gnat_rm.texi: Likewise.
3514 * gnat_ugn.texi: Likewise.
3516 2008-07-29 Jan Hubicka <jh@suse.cz>
3518 * trans.c (process_inlined_subprograms): Remove tree_really_inline
3521 2008-07-29 Arnaud Charlet <charlet@adacore.com>
3523 * gcc-interface: New directory.
3525 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
3526 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
3527 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
3528 to gcc-interface subdirectory.
3530 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3532 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
3534 2008-07-28 Jan Hubicka <jh@suse.cz>
3536 * misc.c (gnat_post_options): Do not set flag_no_inline.
3538 2008-07-28 Richard Guenther <rguenther@suse.de>
3540 Merge from gimple-tuples-branch.
3542 2008-07-22 Olivier Hainque <hainque@adacore.com>
3544 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
3545 this is called for an elab proc to be discarded if empty.
3546 * utils.c (end_subprog_body): Honor ELAB_P.
3547 (build_function_stub): Adjust call to end_subprog_body.
3548 * trans.c (Subprogram_Body_to_gnu): Likewise.
3549 (gigi): Reorganize processing of elab procs to prevent
3550 gimplifying twice, using the new end_subprog_body argument.
3552 2008-07-19 Richard Guenther <rguenther@suse.de>
3554 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
3555 (utils.o): Likewise.
3556 * trans.c: Include tree-iterator.h.
3557 (gnat_gimplify_expr): Adjust prototype. Fix typo.
3558 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
3559 (set_expr_location_from_node): Likewise.
3561 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
3563 * utils.c: Include tree-iterator.h.
3564 * gigi.h (gnat_gimplify_expr): Adjust prototype.
3566 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
3568 * trans.c: Include gimple.h instead of tree-gimple.h.
3571 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
3573 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
3575 2008-07-25 Jan Hubicka <jh@suse.cz>
3577 * utils.c (end_subprog_body): Remove inline trees check.
3578 * misc.c (gnat_post_options): Do not set flag_inline_trees.
3580 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3582 * raise-gcc.c: Move tsystem.h before tm.h.
3584 2008-07-20 Arnaud Charlet <charlet@adacore.com>
3586 * gnathtml.pl: New file.
3588 2008-07-19 Olivier Hainque <hainque@adacore.com>
3590 * targtyps.c (get_target_default_allocator_alignment): Use
3591 MALLOC_ABI_ALIGNMENT.
3593 2008-07-17 Olivier Hainque <hainque@adacore.com>
3595 * adaint.c (__MINGW32__ section): Include ctype.h and define
3596 a fallback ISALPHA if IN_RTS.
3597 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
3599 2008-07-17 Olivier Hainque <hainque@adacore.com>
3601 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
3602 argument, to apply to references in addition to definitions. Prevent
3603 setting TREE_STATIC on externals.
3604 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
3606 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3608 PR documentation/15479
3609 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
3610 Replace backets around optional parameters with @ovar
3611 where possible, use @r{[}, @r{]} otherwise.
3612 Replace some @r, @i, and @emph with @var where appropriate.
3614 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
3616 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
3618 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3620 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
3621 -Wc++-compat warnings.
3622 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
3623 __gnat_locate_exec_on_path): Likewise.
3624 * decl.c (annotate_value): Likewise.
3625 * misc.c (gnat_handle_option): Likewise.
3626 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
3627 post_error_ne_tree): Likewise.
3629 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
3631 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
3632 version of its type, attempt to first convert its elements.
3634 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
3636 * Makefile.in: Fix *86 kfreebsd target specific pairs.
3638 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
3640 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
3642 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
3644 * utils2.c (known_alignment): Derive the alignment from pointed-to
3645 types only if it is otherwise unknown.
3646 <INTEGER_CST>: Tidy.
3647 <MULT_EXPR>: Likewise.
3648 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
3651 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3654 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
3656 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3658 * gnat_rm.texi (Implementation Defined Characteristics)
3659 (Standard Library Routines): Use @smallexample for indented
3660 text. Drop Indentation outside examples.
3661 * gnat_ugn.texi: Likewise.
3663 2008-06-13 Olivier Hainque <hainque@adacore.com>
3665 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
3667 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
3668 realignment with force_align_arg_pointer attribute on foreign
3669 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
3671 2008-06-13 Olivier Hainque <hainque@adacore.com>
3673 * utils.c (rest_of_record_type_compilation): When computing
3674 encodings for the components of a variable size type, early
3675 strip conversions on the current position expression to make
3676 sure it's shape is visible. Use remove_conversions for this
3679 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3681 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
3682 constrained subtype of a discriminated type, discard the fields that
3683 are beyond its limits according to its size.
3685 2008-06-10 Olivier Hainque <hainque@adacore.com>
3687 * utils.c (create_subprog_decl): If this is for the 'main' entry
3688 point according to the asm name, redirect main_identifier_node.
3690 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
3692 * decl.c (components_to_record): Adjust the packedness for the
3693 qualified union as well.
3695 2008-06-09 Arnaud Charlet <charlet@adacore.com>
3697 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
3700 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
3702 * sem_res.adb (Large_Storage_Type): A type is large if it
3703 requires as many bits as Positive to store its values and its
3704 bounds are known at compile time.
3705 * sem_ch13.adb (Minimum_Size): Note that this function returns
3706 0 if the size is not known at compile time.
3708 2008-06-06 Nicolas Setton <setton@adacore.com>
3709 Olivier Hainque <hainque@adacore.com>
3711 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
3712 attribute, parallel descriptive type attached to another
3713 type for debug info generation purposes.
3714 * utils.c (add_parallel_type): New function, register
3715 parallel type to be attached to a type.
3716 (get_parallel_type): New function, fetch a registered
3717 parallel type, if any.
3718 (rest_of_record_type_compilation): Register the parallel
3719 type we make for variable size records.
3720 * gigi.h (add_parallel_type, get_parallel_type): Declare.
3721 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
3722 parallel debug types we make.
3723 * trans.c (extract_encoding, decode_name): New functions.
3724 (gigi): If the DWARF attribute extensions are available, setup
3726 * lang.opt: Register language specific processing request
3728 * misc.c (gnat_dwarf_extensions): New global variable. How much
3729 do we want of our DWARF extensions. 0 by default.
3730 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
3731 (gnat_post_options): Map gnat_dwarf_extensions to the
3732 commonuse_gnu_debug_info_extensions for later processing.
3734 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
3736 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
3738 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3740 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
3741 * gnat_ugn.texi (Style Checking)
3742 (Adding the Results of Compiler Checks to gnatcheck Output)
3743 (Example of Binder Output File): Fix typos.
3744 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
3745 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
3746 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
3747 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
3748 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
3749 sinfo.ads, utils.c: Fix typos in comments.
3750 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
3752 2008-05-29 Thomas Quinot <quinot@adacore.com>
3754 * sem_eval.adb: Minor reformatting
3756 2008-05-29 Ed Schonberg <schonberg@adacore.com>
3758 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
3759 is abstract, do not apply abstractness check on subprogram if this is
3760 a renaming declaration.
3762 2008-05-29 Arnaud Charlet <charlet@adacore.com>
3765 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
3766 allow recognition of program suffix in addition to prefix.
3768 * gnatchop.adb (Locate_Executable): Add support for prefix.
3770 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
3771 mlib-utl.adb: Adjust calls to Program_Name.
3773 2008-05-29 Robert Dewar <dewar@adacore.com>
3775 * sem_ch3.adb: Minor reformatting
3776 * sem_prag.adb: Minor reformatting
3777 * sem_res.adb: Minor reformatting
3778 * sinput-p.ads: Minor reformatting
3780 2008-05-29 Javier Miranda <miranda@adacore.com>
3783 (Abstract_Interface_List): Add missing support for full type-declaration
3784 associated with synchronized types.
3786 2008-05-29 Robert Dewar <dewar@adacore.com>
3788 * sem_eval.adb (Is_Same_Value): Take care of several more cases
3790 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3792 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
3793 access type, wrap the expression in a conversion to force an
3794 accessibility check.
3796 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
3797 accessibility checks even when expansion is disabled in order to
3798 generate messages in the presence of previous errors or in
3799 semantics-only mode.
3801 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
3803 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
3804 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
3806 2008-05-28 Vincent Celier <celier@adacore.com>
3809 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
3810 preprocessing expressions
3812 2008-05-28 Vincent Celier <celier@adacore.com>
3814 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
3817 * sinput-p.ads: Minor comment update and reformatting
3819 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3821 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
3822 type has a deeper level than any master only when it is the type of an
3825 2008-05-28 Javier Miranda <miranda@adacore.com>
3827 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
3829 2008-05-28 Javier Miranda <miranda@adacore.com>
3831 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
3832 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
3833 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
3834 Add code that was previously located in
3835 Find_Overridden_Synchronized_Primitive because it is only used here.
3837 2008-05-28 Sergey Rybin <rybin@adacore.com>
3839 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
3840 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
3842 2008-05-28 Robert Dewar <dewar@adacore.com>
3845 Add missing restrictions, and properly label all GNAT defined ones
3848 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
3849 Add entry for Ada.Task_Termination.Set_Specific_Handler
3850 Add entry for Ada.Task_Termination.Specific_Handler
3853 Add missing restrictions and properly mark all gnat defined ones
3856 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
3859 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
3861 * gnat_rm.texi: Add missing restrictions, and properly label all
3864 2008-05-28 Robert Dewar <dewar@adacore.com>
3867 (Check_Restriction): violation of restriction No_Finalization is
3868 treated as a serious error to stop expansion
3870 2008-05-28 Robert Dewar <dewar@adacore.com>
3872 * exp_util.adb: Minor reformatting
3873 * exp_util.ads: Minor reformatting.
3875 2008-05-28 Arnaud Charlet <charlet@adacore.com>
3877 * Make-lang.in: Remove gprmake.
3879 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
3881 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3883 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
3884 improper progenitor names, and avoid cascaded errors.
3886 2008-05-28 Robert Dewar <dewar@adacore.com>
3888 * gnat_rm.texi: Add note on Old giving warning when applied to constant
3890 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
3893 2008-05-28 Robert Dewar <dewar@adacore.com>
3895 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
3898 2008-05-28 Robert Dewar <dewar@adacore.com>
3901 (Expand_Simple_Function_Return): Copy unaligned result into temporary
3903 2008-05-28 Javier Miranda <miranda@adacore.com>
3905 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
3906 for user-defined predefined primitives.
3908 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
3909 (Find_Overridden_Synchronized_Primitive): Ditto.
3911 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
3913 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3915 * a-ststio.adb, s-direio.adb:
3916 Further code clean up of previous change.
3919 2008-05-27 Vincent Celier <celier@adacore.com>
3921 * prj-nmsc.adb: Minor reformatting
3923 2008-05-27 Bob Duff <duff@adacore.com>
3925 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
3926 untagged private type with a tagged full type, where the full type has
3927 a self reference, create the corresponding class-wide type early, in
3928 case the self reference is "access T'Class".
3930 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3932 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
3933 tasks and context is an object declaration. create master entity before
3936 2008-05-27 Robert Dewar <dewar@adacore.com>
3938 * mlib-prj.adb: Minor reformatting
3940 * prj-part.adb: Minor reformatting
3942 * prj.ads: Minor reformatting
3944 * exp_ch3.adb: Minor reformatting.
3946 * sem_ch3.ads: Minor reformatting
3948 * sem_eval.adb: Minor reformatting
3950 2008-05-27 Vincent Celier <celier@adacore.com>
3953 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3955 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3957 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3958 tasks, create an activation chain now, before the expansion into
3959 assignments and build-in-place calls that require the presence of an
3961 (Backend_Processing_Possible): If the component type is inherently
3962 limited, the aggregate must be expanded into individual built-in-place
3965 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3966 determine whether an allocation extra parameter must be built, to
3967 handle case of a private type whose full type is a discriminated type
3970 2008-05-27 Bob Duff <duff@adacore.com>
3973 Document the new behavior regarding trampolines.
3975 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3977 * a-direio.adb, a-sequio.adb: Replace address clause by
3978 unrestricted_access, simpler and compatible with .NET.
3980 2008-05-27 Vincent Celier <celier@adacore.com>
3983 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3984 a project file, so that symbolic links are not resolved.
3986 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3988 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3989 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3990 portable across GNAT targets, since this kind of address clause is not
3991 supported by VM back-ends (.NET/JGNAT).
3993 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3995 * bindgen.adb: Update comments.
3997 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3999 2008-05-27 Vincent Celier <celier@adacore.com>
4001 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
4002 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
4003 mlib-tgt.adb, prj-env.adb, prj-env.ads:
4004 (Path_Information): New record type
4005 Use component of type Path_Information when there are two paths, one in
4006 canonical format and one in display format.
4007 Update the project manager to these new components.
4009 2008-05-27 Robert Dewar <dewar@adacore.com>
4011 * makeutl.adb: Minor reformatting
4012 * prj-nmsc.adb: Minor reformatting
4013 * s-stausa.adb: Minor reformatting
4014 * s-stausa.ads: Minor reformatting
4015 * sem_ch6.adb: Minor reformatting
4017 2008-05-27 Thomas Quinot <quinot@adacore.com>
4019 * sem_res.adb: Minor comment fixes
4021 2008-05-27 Thomas Quinot <quinot@adacore.com>
4023 * makeutl.adb: Minor code reorganization
4025 * exp_aggr.adb: Add ??? comment
4028 * exp_ch6.adb: Minor reformatting
4030 2008-05-27 Quentin Ochem <ochem@adacore.com>
4032 * s-stausa.adb (Initialize): Updated result initialization, and
4033 initialization of environment stack.
4034 (Fill_Stack): Improved computation of the pattern zone, taking into
4035 account already filled at the calling point.
4036 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
4037 Measure and Overflow_Guard.
4038 (Report_Result): Fixed computation of the result using new fields of
4041 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
4042 params by more explicit Stack_Size / Max_Pattern_Size params.
4043 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
4044 Added Stack_Used_When_Filling field.
4045 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
4046 Min_Measure and Max_Measure fields.
4048 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
4050 2008-05-27 Vincent Celier <celier@adacore.com>
4053 (Check_File): Make sure that a unit that replaces the same unit in a
4054 project being extended is properly processed.
4056 2008-05-27 Ed Schonberg <schonberg@adacore.com>
4059 (Get_Discr_Value): Remove obsolete code that failed to find the value
4060 of a discriminant for an inherited task component appearing in a type
4063 2008-05-27 Thomas Quinot <quinot@adacore.com>
4065 (System.File_IO.{Close, Delete, Reset}):
4066 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
4068 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
4069 Pass File parameter by reference.
4071 2008-05-27 Vincent Celier <celier@adacore.com>
4074 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
4075 sources of the same project that have the same object file name.
4076 (Find_Explicit_Sources): Always remove a source exception that was not
4079 2008-05-27 Thomas Quinot <quinot@adacore.com>
4081 * sem_ch3.adb: Minor reformatting
4083 2008-05-27 Ed Schonberg <schonberg@adacore.com>
4086 (Is_Interface_Conformant): Handle properly a primitive operation that
4087 overrides an interface function with a controlling access result.
4088 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
4089 inherited and overriding operations, omit as well the conformance check
4090 on result types, to prevent spurious errors.
4092 2008-05-27 Vincent Celier <celier@adacore.com>
4094 * makeutl.ads, makeutl.adb:
4095 (Set_Location): New procedure
4096 (Get_Location): New function
4097 (Update_Main): New procedure
4099 2008-05-27 Vincent Celier <celier@adacore.com>
4102 (Check_Library): Allow standard project to be extended as a static
4104 (Get_Mains): Do not inherit attribute Main in an extending library
4107 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
4109 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
4110 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
4111 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
4112 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
4113 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
4114 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
4115 * system-mingw.ads (Always_Compatible_Rep): Likewise.
4116 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
4117 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
4118 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
4120 2008-05-27 Ed Schonberg <schonberg@adacore.com>
4122 * sem_attr.adb: add guard to previous patch.
4124 2008-05-27 Ed Schonberg <schonberg@adacore.com>
4126 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
4127 a synchronized tagged type, do not attempt to build dispatch table for
4128 full view. The table is built for the corresponding record type, which
4129 has its own declaration.
4131 2008-05-27 Gary Dismukes <dismukes@adacore.com>
4133 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
4134 to the known type entity E, rather than setting it to Any_Type. Fixes
4135 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
4136 for objects whose type had an illegal constraint.
4138 2008-05-27 Vincent Celier <celier@adacore.com>
4141 Add succinct documentation for attribute Excluded_Source_List_File
4143 2008-05-27 Vincent Celier <celier@adacore.com>
4145 * prj-attr.adb: Add new project level attribute Map_File_Option
4147 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
4149 * prj.ads: Minor reformatting and comment update
4150 (Project_Configuration): New component Map_File_Option
4152 * snames.adb: New standard name Map_File_Option
4154 * snames.ads: New standard name Map_File_Option
4156 2008-05-27 Vincent Celier <celier@adacore.com>
4158 * xsnames.adb: Remove unused variable Oname
4160 2008-05-27 Doug Rupp <rupp@adacore.com>
4163 (Expand_N_Function_Call): Fix comments. Minor reformatting.
4166 (Expand_Vax_Foreign_Return): Fix comments.
4168 2008-05-27 Thomas Quinot <quinot@adacore.com>
4170 * exp_dist.adb: Minor reformating
4172 2008-05-26 Gary Dismukes <dismukes@adacore.com>
4174 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
4175 No_Default_Initialization, which is now delayed until the freeze point
4176 of the object. Add a comment about deferral of the check.
4178 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
4179 on objects is moved here.
4181 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
4183 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
4184 (Compare_Array_S16): Adjust for above change.
4185 * s-casi32.adb (Uword): Likewise.
4186 (Compare_Array_S32): Likewise.
4187 * s-casi64.adb (Uword): Likewise.
4188 (Compare_Array_S64): Likewise.
4189 * s-caun16.adb (Uhalf): Likewise.
4190 (Compare_Array_U16): Likewise.
4191 * s-caun32.adb (Uword): Likewise.
4192 (Compare_Array_U32): Likewise.
4193 * s-caun64.adb (Uword): Likewise.
4194 (Compare_Array_U64): Likewise.
4196 2008-05-26 Robert Dewar <dewar@adacore.com>
4198 * exp_ch6.adb: Add ??? comment for previous change
4200 * exp_vfpt.adb: Minor reformatting
4202 * exp_vfpt.ads: Add ??? comment for last change
4204 * sem_attr.adb: Add some ??? comments for previous change
4206 * s-vaflop.ads: Add comments for previous change
4208 2008-05-26 Doug Rupp <rupp@adacore.com>
4210 * s-vaflop-vms-alpha.adb:
4211 Remove System.IO use clause, to prevent spurious ambiguities when
4212 package is access through rtsfind.
4214 2008-05-26 Sergey Rybin <rybin@adacore.com>
4216 * tree_io.ads (ASIS_Version_Number): Update because of the changes
4219 2008-05-26 Ed Schonberg <schonberg@adacore.com>
4222 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
4223 converted to S (A)'address only if A .. B is known to be a non-null
4226 2008-05-26 Doug Rupp <rupp@adacore.com>
4229 (Return_D, Return_F, Return_G): New functions.
4232 (Return_D, Return_F, Return_G): New functions.
4235 (Expand_Vax_Foreign_Return): New procedure
4238 (Expand_Vax_Foreign_Return): New procedure
4241 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
4242 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
4246 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
4248 * s-vaflop-vms-alpha.adb:
4249 (Return_D, Return_F, Return_G): New functions.
4251 2008-05-26 Gary Dismukes <dismukes@adacore.com>
4253 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
4254 init proc entity when there is actual default initialization associated
4255 with the component type, to avoid spurious errors on objects of scalar
4256 array types that are marked Is_Public when No_Default_Initialization
4259 2008-05-26 Thomas Quinot <quinot@adacore.com>
4261 * rtsfind.ads, rtsfind.adb:
4262 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
4263 (Check_RPC): Support per-PCS-kind API versioning.
4265 exp_dist.ads, exp_dist.adb:
4266 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
4267 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
4268 library function Get_RACW.
4269 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
4270 library function Get_Reference.
4271 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
4272 through an intermediate Any.
4273 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
4274 going through an intermediate Any.
4276 * sem_dist.adb: Minor reformatting.
4278 2008-05-26 Javier Miranda <miranda@adacore.com>
4280 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
4281 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
4282 (Is_Internal): Adding documentation on internal entities that have
4283 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
4285 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
4286 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
4287 Added assertion to force entities with this attribute to have
4288 attribute Is_Internal set to True.
4289 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
4291 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
4292 renamed as Derive_Progenitor_Subprograms. In addition, its code is
4293 a new implementation.
4294 (Add_Interface_Tag_Components): Remove special management of
4295 synchronized interfaces.
4296 (Analyze_Interface_Declaration): Minor reformating
4297 (Build_Derived_Record_Type): Minor reformating
4298 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
4299 predefined primitive inherited from interface type because the body of
4300 internally generated predefined primitives of tagged types are generated
4301 later by Freeze_Type
4302 (Derive_Subprogram): Avoid generating an internal name if the parent
4303 subprogram overrides an interface primitive.
4304 (Derive_Subprograms): New implementation that keeps separate the
4305 management of tagged types not implementing interfaces, from tagged
4306 types that implement interfaces.
4307 (Is_Progenitor): New implementation.
4308 (Process_Full_View): Add documentation
4309 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
4310 by call to Derive_Progenitor_Subprograms.
4312 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
4313 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
4314 Skip_Controlling_Formals.
4316 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
4317 (Check_Conventions): New implementation. Remove local subprogram
4318 Skip_Check. Remove formal Search_From of routine Check_Convention.
4319 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
4320 Skip_Controlling_Formals.
4321 (New_Overloaded_Entity): Enable addition of predefined dispatching
4325 (Find_Primitive_Covering_Interface): New subprogram.
4327 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
4328 the task body procedure as a primitive of the corresponding tagged
4330 (Check_Operation_From_Private_Type): Avoid adding twice an entity
4331 to the list of primitives.
4332 (Find_Primitive_Covering_Interface): New subprogram.
4333 (Override_Dispatching_Operation): Add documentation.
4335 * sem_type.adb (Covers): Minor reformatings
4337 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
4340 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
4341 (Implements_Interface): New subprogram.
4342 (Is_Parent): Removed.
4343 (Primitive_Names_Match): New subprogram.
4344 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
4345 (Ultimate_Alias): New subprogram.
4347 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
4349 Remove special management for synchronized types. Rename formal. Remove
4350 internal subprograms Interface_Present_In_Parent and Add_Interface.
4351 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
4352 on non-record types by code to return false in such case.
4353 (Implements_Interface): New subprogram.
4354 (Is_Parent): Removed. No special management is now required for
4355 synchronized types covering interfaces.
4356 (Primitive_Names_Match): New subprogram.
4357 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
4358 (Ultimate_Alias): New subprogram.
4360 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
4361 Add internal entities associated with secondary dispatch tables to
4362 the list of tagged type primitives that are not interfaces.
4363 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
4364 (Make_Predefined_Primitive_Specs): Code reorganization to improve
4365 the management of predefined equality operator. In addition, if
4366 the type has an equality function corresponding with a primitive
4367 defined in an interface type, the inherited equality is abstract
4368 as well, and no body can be created for it.
4370 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
4371 exp_util to exp_disp.
4372 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
4373 an entity corresponds with one of the predefined primitives required
4374 to implement interfaces.
4375 Update copyright notice.
4377 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
4378 final check on abstract subprograms all the primitives associated with
4379 interface primitives because they must be visible in the public and
4381 (Write_DT): Use Find_Dispatching_Type to locate the name of the
4382 interface type. This allows the use of this routine, for debugging
4383 purposes, when the tagged type is not fully decorated.
4384 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
4385 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
4386 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
4387 entity corresponds with one of the predefined primitives required to
4388 implement interfaces.
4390 * exp_util.adb (Find_Interface_ADT): New implementation
4391 (Find_Interface): Removed.
4393 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
4394 list of interfaces associated with nodes
4395 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
4397 2008-05-26 Thomas Quinot <quinot@adacore.com>
4399 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
4400 condition for assignment to temporary.
4402 2008-05-26 Ed Schonberg <schonberg@adacore.com>
4404 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
4405 checks on the upper bound if the index type is a modular type, to
4406 prevent wrap-around computations when size is close to upper bound of
4409 2008-05-26 Robert Dewar <dewar@adacore.com>
4411 * sem_ch3.adb: Minor reformatting
4413 2008-05-26 Ed Schonberg <schonberg@adacore.com>
4415 * sem_ch12.adb (Remove_Parent): Use specification of instance
4416 to retrieve generic parent,
4417 to handle properly the case where the instance is a child unit.
4418 Add guard to handle properly wrapper packages.
4421 2008-05-26 Thomas Quinot <quinot@adacore.com>
4423 * sinfo.ads: Minor reformatting
4425 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
4427 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
4428 Generate a tag check when the result subtype of a function, defined by
4429 an access definition, designates a specific tagged type.
4430 (Make_Tag_Check): New routine.
4432 2008-05-26 Arnaud Charlet <charlet@adacore.com>
4434 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
4436 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
4438 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
4439 (builtin_decl_for): Likewise.
4440 * trans.c (gigi): Likewise.
4441 * utils.c (def_builtin_1): Fix formatting.
4443 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
4445 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
4446 Create the statements which map a string name to protected or task
4449 * exp_ch9.adb: Add with and use clause for Stringt.
4450 Minor code reformatting.
4451 (Build_Entry_Names): New routine.
4452 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
4453 for flag Build_Entry_Names which controls the allocation of the data
4454 structure for the string names of entries.
4456 * exp_ch9.ads (Build_Entry_Names): New subprogram.
4458 * exp_util.adb (Entry_Names_OK): New function.
4460 * exp_util.ads (Entry_Names_OK): New function.
4462 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
4463 enumerations RE_Id and RE_Unit_Table.
4465 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
4466 (Free_Entry_Names_Array): New routine.
4468 * s-taskin.ads: Comment reformatting.
4469 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
4470 Add component Entry_Names to record Ada_Task_Control_Block.
4471 (Free_Entry_Names_Array): New routine.
4473 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
4474 dynamically allocate an array
4475 of string pointers. This structure holds string entry names.
4476 (Free_Entry_Names): New routine.
4477 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
4478 (Set_Entry_Names): New routine.
4481 (Create_Task): Add formal Build_Entry_Names. The flag is used to
4482 control the allocation of the data structure which stores entry names.
4483 (Set_Entry_Name): New routine.
4486 Add with and use clause for Ada.Unchecked_Conversion.
4487 (Finalize): Deallocate the entry names array.
4488 (Free_Entry_Names): New routine.
4489 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
4490 create an array of string pointers to hold the entry names.
4491 (Set_Entry_Name): New routine.
4494 Add field Entry_Names to record Protection_Entries.
4495 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
4496 (Set_Entry_Name): New routine.
4498 2008-05-26 Vincent Celier <celier@adacore.com>
4501 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
4504 (Project_Configuration): New component Shared_Lib_Driver
4506 2008-05-26 Ed Schonberg <schonberg@adacore.com>
4509 (Cleanup_Scopes): For a protected operation, transfer finalization list
4510 to protected body subprogram, to force cleanup actions when needed.
4512 2008-05-26 Robert Dewar <dewar@adacore.com>
4514 * sem_cat.adb: Minor reformatting
4516 * gnatname.adb: Minor reformatting
4518 * osint.ads: Minor reformatting
4520 * s-carun8.ads: Minor reformatting
4522 * g-heasor.ads: Minor comment fix (unit is now pure)
4524 2008-05-26 Robert Dewar <dewar@adacore.com>
4527 (Expand_Current_Value): Properly type generated integer literal
4529 2008-05-26 Sergey Rybin <rybin@adacore.com>
4531 * gnat_ugn.texi: Add description for the new gnatcheck rule -
4532 Separate_Numeric_Error_Handlers.
4534 2008-05-26 Pascal Obry <obry@adacore.com>
4536 * sem_aggr.adb: Minor reformatting.
4538 2008-05-26 Jose Ruiz <ruiz@adacore.com>
4541 (To_Target_Priority): Setting the time slice value to 0 or greater sets
4542 the scheduling policy to FIFO within priorities or round-robin
4544 Hence, the priority must be set in this case to the one selected by the
4547 2008-05-26 Ed Schonberg <schonberg@adacore.com>
4550 (Remove_Parent): If the enclosing scope is an instance whose generic
4551 parent is declared within some parent scope of the just completed
4552 instance, make full views of the entities in that parent visible, when
4555 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
4557 * mingw32.h (STD_MINGW): Set to true for target w64.
4559 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
4561 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
4562 instead of TREE_STATIC on the ADDR_EXPR.
4564 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
4566 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
4567 (Sloc_to_locus): Do not overwrite known GCC locations when translating
4568 GNAT standard locations.
4570 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
4572 * gigi.h (mark_visited): Declare.
4573 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
4574 only the topmost node of expressions.
4575 (elaborate_expression_1): Look deeper for read-only variables.
4576 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
4577 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
4578 (mark_visited_r): New function.
4580 2008-05-23 Vincent Celier <celier@adacore.com>
4582 * snames.adb: New standard name Excluded_Source_List_File.
4584 * snames.ads: New standard name Excluded_Source_List_File.
4586 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
4588 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
4589 Get excluded sources from
4590 file indicated by attribute Excluded_Source_List_File, when present and
4591 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
4593 2008-05-23 Robert Dewar <dewar@adacore.com>
4595 * exp_dist.adb: Minor reformatting
4597 2008-05-23 Ed Schonberg <schonberg@adacore.com>
4599 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
4600 slice, convert it to an indexed component, which is equivalent, more
4601 efficient, and usable even if the slice itself is not addressable.
4603 2008-05-23 Olivier Hainque <hainque@adacore.com>
4605 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
4606 convention also allows access to named compiler built-in subprograms
4607 such as the GCC __builtin family.
4609 2008-05-23 Vincent Celier <celier@adacore.com>
4611 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
4612 sep. If there are several possibilities, choose the one with the
4615 2008-05-23 Vincent Celier <celier@adacore.com>
4617 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
4618 back end switches when executable specified with --GCC= is same as
4619 default, even if there are additional options.
4622 Document when the back end switches from the ALI file are taken into
4623 account when gnatlink is invoked with --GCC=
4625 2008-05-23 Thomas Quinot <quinot@adacore.com>
4628 (copy_File): Do not open destination file if source file is unreadable.
4630 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
4632 * utils.c (handle_type_generic_attribute): Adjust to accept
4633 fixed arguments before an elipsis.
4635 2008-05-21 Thomas Quinot <quinot@adacore.com>
4637 * g-sothco.ads, g-sothco.adb: New files.
4639 2008-05-20 Thomas Quinot <quinot@adacore.com>
4641 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
4643 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
4644 Add missing "with" of Ada.Unchecked_Conversion
4646 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
4647 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
4648 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4649 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
4650 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
4651 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
4652 Move common code out of GNAT.Sockets.Thin implementations and into
4654 New constant SIZEOF_fd_set
4655 New flag Has_Sockaddr_Len
4656 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
4658 * g-stsifd-sockets.adb
4659 (Create): Remove call to Set_Length; use Set_Family to set the family
4660 and (on appropriate platforms) length fields in struct sockaddr.
4662 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
4663 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
4664 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
4665 Move common code out of GNAT.Sockets.Thin implementations and into
4668 * g-socket.ads, g-socket.adb:
4669 Move common code out of GNAT.Sockets.Thin implementations and into
4671 (Connect_Socket, Accept_Socket): Provide new versions of these two
4672 routines that operate with a user specified timeout.
4673 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
4674 this is now handled automatically by Set_Family on platforms that
4678 Move common code out of GNAT.Sockets.Thin implementations and into
4680 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
4681 this constant to 0 (not -1) because we use it to initialize an
4682 unsigned_char value.
4683 Align values for numeric constants only.
4684 Handle the case of systems that do not support AF_INET6.
4685 New constant SIZEOF_fd_set
4686 New flag Has_Sockaddr_Len
4687 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
4689 * gsocket.h: New flag Has_Sockaddr_Len
4690 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
4692 2008-05-20 Santiago Uruena <uruena@adacore.com>
4694 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
4696 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4698 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
4699 the underlying issue with malloc/free has been fixed. Remove associated
4702 Related to PR ada/24533
4704 2008-05-20 Robert Dewar <dewar@adacore.com>
4706 * ali.adb: Correct casing of ASCII.NUL
4708 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
4711 2008-05-20 Robert Dewar <dewar@adacore.com>
4712 Gary Dismukes <dismukes@adacore.com>
4714 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
4715 overflow if result converted to wider integer type.
4716 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
4717 discriminated types when discriminant checks are suppressed.
4719 2008-05-20 Vincent Celier <celier@adacore.com>
4721 * cstand.adb (Print_Standard): Issue the correct Size clause for type
4722 Wide_Wide_Character.
4724 2008-05-20 Tristan Gingold <gingold@adacore.com>
4726 * decl.c: Do not emit a variable for a object that has an address
4727 representation clause whose value is known at compile time.
4728 When a variable has an address clause whose value is known at compile
4729 time, refer to this variable by using directly the address instead of
4730 dereferencing a pointer.
4732 2008-05-20 Robert Dewar <dewar@adacore.com>
4735 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
4736 subtypes, always False for non-modular types.
4737 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
4738 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
4739 for Shared_Storage package.
4740 (Is_RACW_Stub_Type): New entity flag.
4743 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
4744 case where we have a modular type with a non-binary modules.
4745 Comments reformattings.
4747 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
4750 2008-05-20 Javier Miranda <miranda@adacore.com>
4753 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
4754 tests did not covered the case in which the type of the aggregate has
4755 no progenitors but some its parents has progenitors.
4757 2008-05-20 Gary Dismukes <dismukes@adacore.com>
4758 Hristian Kirtchev <kirtchev@adacore.com>
4761 (Expand_N_Object_Declaration): Correct the condition which triggers the
4762 generation of a call to Displace when initializing a class-wide object.
4763 (Build_Dcheck_Functions): Build discriminant-checking for null variants
4764 when Frontend_Layout_On_Target is true to ensure that they're available
4765 for calling when a record variant size function is built in Layout.
4767 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4769 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4770 procedure for a derived type retrieve the discriminant values from the
4771 parent using the corresponding discriminant.
4772 (Expand_N_Assignment_Statement): Skip generation of implicit
4773 if-statement associated with controlled types if we are
4774 compiling with restriction No_Finalization.
4776 2008-05-20 Vincent Celier <celier@adacore.com>
4778 * prj.adb (Hash (Project_Id)): New function
4779 (Project_Empty): Add new component Interfaces_Defined
4781 * prj.ads (Source_Data): New component Object_Linked
4782 (Language_Config): New components Object_Generated and Objects_Linked
4783 (Hash (Project_Id)): New function
4784 (Source_Data): New Boolean components In_Interfaces and
4785 Declared_In_Interfaces.
4786 (Project_Data): New Boolean component Interfaces_Defined
4789 New project level attribute Object_Generated and Objects_Linked
4790 Add new project level attribute Interfaces
4792 * prj-dect.adb: Use functions Present and No throughout
4793 (Parse_Variable_Declaration): If a string type is specified as a simple
4794 name and is not found in the current project, look for it also in the
4795 ancestors of the project.
4798 Replace procedure Make with procedures Initialize, Process and Finalize
4799 to implement H414-023: process different directories with different
4801 Use functions Present and No throughout
4804 Replace procedure Make with procedures Initialize, Process and Finalize
4807 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
4808 the language configuration.
4809 (Process_Project_Level_Array_Attributes): Process new attributes
4810 Object_Generated and Object_Linked.
4811 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
4812 False, to indicate that the erreor/warning is a continuation.
4813 (Check): Call Report_No_Sources with Contnuation = True after the first
4815 (Error_Msg): Process successively contnuation character and warning
4817 (Find_Explicit_Sources): Check that all declared sources have been found
4818 (Check_File): Indicate in hash table Source_Names when a declared source
4820 (Check_File): Set Other_Part when found
4821 (Find_Explicit_Sources): In multi language mode, check if all exceptions
4822 to the naming scheme have been found. For Ada, report an error if an
4823 exception has not been found. Otherwise, disregard the exception.
4824 (Check_Interfaces): New procedure
4825 (Add_Source): When Other_Part is defined, set mutual pointers in spec
4827 (Check): In multi-language mode, call Check_Interfaces
4828 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
4829 for an excluded source.
4830 (Remove_Source): A source replacing a source in the interfaces is also
4833 * prj-pars.adb: Use function Present
4835 * prj-part.adb: Use functions Present and No throughout
4836 (Parse_Single_Project): Set the parent project for child projects
4837 (Create_Virtual_Extending_Project): Register project with no qualifier
4838 (Parse_Single_Project): Allow an abstract project to be extend several
4839 times. Do not allow an abstract project to extend a non abstract
4842 * prj-pp.adb: Use functions Present and No throughout
4843 (Print): Take into account the full associative array attribute
4846 * prj-proc.adb: Use functions Present and No throughout
4847 (Expression): Call itself with the same From_Project_Node for the
4848 default value of an external reference.
4850 * prj-strt.adb: Use functions Present and No throughout
4851 (Parse_Variable_Reference): If a variable is specified as a simple name
4852 and is not found in the current project, look for it also in the
4853 ancestors of the project.
4855 * prj-tree.ads, prj-tree.adb (Present): New function
4857 Use functions Present and No throughout
4858 (Parent_Project_Of): New function
4859 (Set_Parent_Project_Of): New procedure
4861 * snames.ads, snames.adb:
4862 Add new standard names Object_Generated and Objects_Linked
4864 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4866 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
4867 and the derived type are of the same kind.
4868 (Expand_Call): Generate type conversions for actuals of
4869 record or array types when the parent and the derived types differ in
4870 size and/or packed status.
4872 2008-05-20 Javier Miranda <miranda@adacore.com>
4873 Ed Schonberg <schonberg@adacore.com>
4875 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
4876 generating dispatch tables of locally defined tagged types statically.
4877 Remove implicit if-statement that is no longer required.
4878 (Expand_Dispatching_Call): If this is a call to an instance of the
4879 generic dispatching constructor, the type of the first argument may be
4880 a subtype of Tag, so always use the base type to recognize this case.
4882 2008-05-20 Thomas Quinot <quinot@adacore.com>
4885 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
4886 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
4887 assigning NULL into the result, to avoid a spurious warning.
4888 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
4890 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
4892 (Build_From_Any_Function, Build_To_Any_Function,
4893 Build_TypeCode_Function): For a type that has user-specified stream
4894 attributes, use an opaque sequence of octets as the representation.
4896 2008-05-20 Kevin Pouget <pouget@adacore.com>
4898 * exp_smem.ads, exp_smem.adb: Construction of access and assign
4899 routines has been replaced by an instantiation of
4900 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
4901 shared variable declaration.
4902 Calls to access and assign routines have been replaced by calls to
4903 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
4904 instantiated package.
4906 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
4907 It identifies the new generic package added in s-shasto.
4909 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
4910 is instantiated for each shared passive variable. It provides
4911 supporting procedures called upon each read or write access by the
4915 For this runtime unit (always compiled in GNAT mode), we allow
4916 stream attributes references for limited types for the case where
4917 shared passive objects are implemented using stream attributes,
4918 which is the default in GNAT's persistent storage implementation.
4920 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4923 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
4924 convention from its base type, do not set the type to that of integer,
4925 because it may inherit a size clause.
4926 Warn on a size clause with a size different
4927 from that of Integer, if the type has convention C.
4929 2008-05-20 Vincent Celier <celier@adacore.com>
4932 (Scan_Args): Rewrite to take into account new switch --and to separate
4933 arguments into sections.
4934 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
4935 section, then Finalize.
4937 2008-05-20 Tristan Gingold <gingold@adacore.com>
4939 * init.c: Enable stack probing on ppc-linux.
4941 * tracebak.c: Add symbolic traceback for ppc-linux.
4943 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
4945 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4948 (common-tools): New rule, to avoid parallel build failure on gnat tools.
4949 Reenable parallel builds on this Makefile.
4951 * Make-lang.in: Update dependencies.
4953 2008-05-20 Robert Dewar <dewar@adacore.com>
4955 * opt.ads (Treat_Restrictions_As_Warnings): New switch
4957 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4958 Treat_Restrictions_As_Warnings.
4960 * switch-c.adb: Recognize new switch -gnatr
4962 * usage.adb: Add line for -gnatr
4964 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4967 (P_Access_Definition): Change the error message when parsing "access
4968 all" in Ada 95 mode. The message no longer forces the user to recompile
4969 in 05 mode only to discover that anonymous access types are not allowed
4972 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4975 (P_Protected): Update the error message on missing "-gnat05" switch when
4976 using interfaces in conjunction with protected types. Remove the
4977 incorrect error message associated with the presence of "private" after
4980 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4982 * sem_aggr.adb: Update comments.
4983 Improve previous change for PR ada/17985
4985 2008-05-20 Thomas Quinot <quinot@adacore.com>
4988 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4989 the visible part of the spec of a remote types unit.
4990 (Validate_Remote_Access_Object_Type_Declaration):
4991 New local subprogram Is_Valid_Remote_Object_Type, replaces
4992 Is_Recursively_Limited_Private.
4993 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4994 non-controlling formals (and the return type, even though this is not
4995 explicit in the standard) must support external streaming.
4996 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4997 as above for of RAS types and RCI subprograms. (The return type is not
4999 Update comments related to RACWs designating limited interfaces per
5000 ARG ruling on AI05-060.
5002 * sem_util.ads, sem_util.adb
5003 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
5004 Is_Remote_Call_Interface to identify RACW types in a stable and
5005 consistent way. We used to rely in this predicate on the privateness of
5006 the designated type and its ancestors, but depending on the currently
5007 visible private parts, this caused false negatives. We now uniformly
5008 rely on checks made at the point where the RACW type is declared.
5009 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
5011 2008-05-20 Javier Miranda <miranda@adacore.com>
5012 Ed Schonberg <schonberg@adacore.com>
5013 Hristian Kirtchev <kirtchev@adacore.com>
5016 (Analyze_Object_Declaration): Fix over-conservative condition
5017 restricting use of predefined assignment with tagged types that have
5019 (Analyze_Object_Declaration): Relax the check regarding deferred
5020 constants declared in scopes other than packages since they can be
5021 completed with pragma Import.
5022 Add missing escaping of all-caps word 'CPP' in error messages.
5023 (Build_Discriminated_Subtype): Do not inherit representation clauses
5024 from parent type if subtype already carries them, because they are
5025 inherited earlier during derivation and already include those that may
5026 come from a partial view.
5028 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
5029 Check the declarations of a subprogram body for proper deferred
5030 constant completion.
5032 * sem_ch7.ads, sem_ch7.adb
5033 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
5035 2008-05-20 Ed Schonberg <schonberg@adacore.com>
5036 Thomas Quinot <quinot@adacore.com>
5039 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
5040 F is a parameterless function that returns an array, and S is a subtype
5042 (Analyze_Call): Insert dereference when the prefix is a parameterless
5043 function that returns an access to subprogram and the call has
5045 Reject a non-overloaded call whose name resolves to denote
5046 a primitive operation of the stub type generated to support a remote
5047 access-to-class-wide type.
5049 2008-05-20 Ed Schonberg <schonberg@adacore.com>
5052 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
5053 when there is a use clause for the same entity in the context.
5054 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
5055 created for a stream attribute of an abstract type or interface type.
5057 2008-05-20 Thomas Quinot <quinot@adacore.com>
5059 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
5063 (Add_One_Interp): Ignore any interpretation that is a primitive
5064 operation of an RACW stub type (these primitives are only executed
5065 through dispatching, never through static calls).
5066 (Collect_Interps): When only one interpretation has been found, set N's
5067 Entity and Etype to that interpretation, otherwise Entity and Etype may
5068 still refer to an interpretation that was ignored by Add_One_Interp,
5069 in which case would end up with being marked as not overloaded but with
5070 an Entity attribute not pointing to its (unique) correct interpretation.
5072 2008-05-20 Ed Schonberg <schonberg@adacore.com>
5075 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
5076 denotes the whole array of its prefix.
5078 2008-05-20 Robert Dewar <dewar@adacore.com>
5080 * sem_res.adb (Resolve_Op_Not): Warn on double negation
5082 2008-05-20 Ed Schonberg <schonberg@adacore.com>
5085 (Print_Itype): Do not modify the sloc of the component type of a
5086 (packed) array itype, because it is an unrelated type whose source
5087 location is independent of the point of creation of the itype itself.
5089 2008-05-20 Thomas Quinot <quinot@adacore.com>
5091 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
5094 2008-05-20 Robert Dewar <dewar@adacore.com>
5095 Vincent Celier <celier@adacore.com>
5097 * vms_data.ads: Add entry for -gnatr
5098 Put GNAT SYNC section in proper alpha order
5099 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
5101 * gnat_ugn.texi: Add documentation for new gnatname switch --and
5102 Update the style checks section
5103 Add documentation of -gnatr
5104 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
5105 subsection the explanation how compiler checks should be disabled for
5107 Update the list of Ada 95 reserved words used by in the project language
5108 Add documentation for project qualifiers.
5109 Document that abstract projects may be extended by different projects in
5110 the same project tree.
5111 Add documentation for gnatmake switch -d
5113 * ug_words: Add -gnatyy VMS equivalence string.
5114 Add entry for -gnatr
5116 2008-05-20 Bob Duff <duff@adacore.com>
5119 (Set_Handler): Remove code from both of these that implements
5120 RM-D.15(15/2), because it causes a race condition and potential
5122 (Process_Queued_Events): Add comment explaining "exception when others
5123 => null". Add clarifying ".all", even though implicit .all is legal
5126 2008-05-20 Arnaud Charlet <charlet@adacore.com>
5128 * s-winext.ads: Replace representation clause by pragma Pack. Gives
5129 equivalent representation, but has the advantage of allowing
5130 compilation of this file under 64 bits platforms.
5132 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
5134 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
5137 Don't define dummy implementation of convert_addresses on ppc-linux.
5139 2008-05-20 Ed Schonberg <schonberg@adacore.com>
5142 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
5143 if expression is aggregate component.
5145 2008-05-20 Robert Dewar <dewar@adacore.com>
5147 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
5148 sem_ch12.adb: Update comments. Minor reformatting.
5152 * s-unstyp.ads: Fixed some typos in comments.
5154 2008-05-20 Arnaud Charlet <charlet@adacore.com>
5156 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
5159 * g-socthi-vxworks.ads: Update to latest socket changes.
5161 * a-caldel-vms.adb: Resync with a-caldel spec.
5163 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
5166 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
5168 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
5169 for dummy types pointed to by the converted pointer types.
5171 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
5173 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
5174 of records and unions.
5175 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
5177 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
5178 Robert Dewar <dewar@adacore.com>
5180 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
5181 restrictions to the prefix of 'Old.
5182 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
5183 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
5186 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
5190 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
5191 expression to an integral type with lower precision, use NOP_EXPR
5192 directly in a couple of special cases.
5194 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
5195 Ed Schonberg <schonberg@adacore.com>
5197 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
5198 constraint expressions.
5200 2008-05-12 Tomas Bily <tbily@suse.cz>
5202 * utils2.c (known_alignment, contains_save_expr_p)
5203 (gnat_mark_addressable): Use CASE_CONVERT.
5204 * decl.c (annotate_value): Likewise.
5205 * trans.c (maybe_stabilize_reference): Likewise.
5206 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
5207 * utils.c (rest_of_record_type_compilation): Likewise.
5208 * trans.c (protect_multiple_eval, Attribute_to_gnu)
5209 (protect_multiple_eval): Likewise.
5211 2008-05-08 Andreas Schwab <schwab@suse.de>
5213 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
5214 DECL_IS_PURE to DECL_PURE_P.
5216 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
5218 * decl.c (maybe_pad_type): Add ??? comment.
5220 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
5222 * decl.c (components_to_record): Zero the alignment of the qualified
5223 union built for the variant part upon creating it.
5225 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
5227 * decl.c (maybe_pad_type): Try to get a form of the type with integral
5228 mode even if the alignment is not a factor of the original size. But
5229 make sure to create the inner field with the original size. Reorder.
5230 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
5231 record as always addressable.
5232 * utils.c (convert): Deal specially with conversions between original
5233 and packable versions of a record type.
5234 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
5235 recognizing an assignment between padded objects.
5237 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
5239 * decl.c (make_packable_type): Resize the last component to its RM size
5240 only if it is of an aggregate type.
5241 * trans.c (call_to_gnu): Fix nit in comment.
5242 (gnat_to_gnu): Likewise.
5244 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
5246 * Makefile.in: Adapt sh4-linux target.
5248 2008-04-29 Ed Schonberg <schonberg@adacore.com>
5251 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
5252 tagged type by an untagged protected or task type.
5254 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
5255 Tristan Gingold <gingold@adacore.com>
5258 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
5259 of aliased objects with an unconstrained nominal subtype.
5260 Cap the promotion to the effective alignment of the word mode.
5262 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5264 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
5265 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
5266 Use '&&' instead of ';'.
5268 2008-04-24 Olivier Hainque <hainque@adacore.com>
5270 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
5271 doesn't require signed arithmetic anymore.
5273 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
5275 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
5276 (call_to_gnu): Don't set TREE_INVARIANT.
5277 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
5279 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
5281 * s-osinte-rtems.adb: Add sigalstack function.
5282 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
5283 function. Add Alternate_Stack and Alternate_Stack_Size.
5284 Add missing process_shared field to pthread_condattr_t
5285 and change ss_low_priority to int from timespec.
5287 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
5289 * i-forbla.adb: Link against -llapack and -lblas by default
5290 instead of the private -lgnalasup.
5292 2008-04-21 Olivier Hainque <hainque@adacore.com>
5294 Access to most C builtins from Ada
5295 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
5296 (handle_pure_attribute, handle_novops_attribute,
5297 handle_nonnull_attribute, handle_sentinel_attribute,
5298 handle_noreturn_attribute, handle_malloc_attribute,
5299 handle_type_generic_attribute): New attribute handlers, from C fe.
5300 (gnat_internal_attribute_table): Map the new handlers.
5301 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
5302 (init_gigi_decls): ... here.
5303 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
5304 Move to a section dedicated to builtins processing.
5305 (build_void_list_node, builtin_type_for_size): New functions.
5306 (def_fn_type, get_nonnull_operand): Likewise.
5307 (install_builtin_elementary_type, install_builtin_function_types,
5308 install_builtin_attributes): Likewise.
5309 (fake_attribute_handler): Fake handler for attributes we don't
5311 (def_builtin_1): New function, worker for DEF_BUILTIN.
5312 (install_builtin_functions): New function.
5313 (gnat_install_builtins): Move to the builtins processing section.
5314 Now calling the newly introduced installers.
5316 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
5318 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
5319 constant objects, but not exceptions.
5320 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
5322 * utils.c (create_var_decl_1): Likewise.
5323 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
5324 the type when copying to padded object and the source is a constructor.
5326 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5328 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
5329 alignment, reset it to zero if it would end up not being greater
5330 than that of the type.
5332 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5334 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
5335 the padded type has a variable size.
5337 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5339 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
5340 target pointer mechanism as soon as the size is not constant.
5342 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5344 * gigi.h (create_var_decl_1): Declare.
5345 (create_var_decl): Turn into a macro invoking create_var_decl_1.
5346 (create_true_var_decl): Likewise.
5347 * utils.c (create_var_decl_1): Make global and reorder parameters.
5348 (create_var_decl): Delete.
5349 (create_true_var_decl): Likewise.
5351 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
5353 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
5355 * fe.h (Debug_Flag_Dot_A): Delete.
5356 * debug.adb (-gnatd.a): Update documentation.
5358 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
5360 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
5361 "not null" parameter.
5363 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
5365 * g-socket.adb: Add a message "IPv6 not supported" to the
5366 Socket_Error exception.
5368 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
5371 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
5372 the type is known instead of the underlying type.
5374 2008-04-15 Ed Schonberg <schonberg@adacore.com>
5377 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
5378 procedure for a derived type retrieve the discriminant values from
5379 the parent using the corresponding discriminant.
5381 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
5382 Gary Dismukes <dismukes@adacore.com>
5385 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
5386 which is not an entity (and hence not a package).
5387 (End_Use_Package): Ditto.
5389 2008-04-15 Ed Schonberg <schonberg@adacore.com>
5392 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
5393 protected operation that matches the signature, not only an entry, a
5394 regular subprogram or a literal.
5396 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
5398 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
5399 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
5400 if a size or alignment is specified. Do not take into account
5401 alignment promotions for the computation of the object's size.
5402 <type>: Call maybe_pad_type only if a size or alignment is specified.
5403 (maybe_pad_type): Really reuse the RM_Size of the original type if
5405 * trans.c (Attribute_to_gnu): Fix a couple of nits.
5406 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
5407 statements. Use the padded view of the type when copying between
5408 padded objects of the same underlying type.
5410 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5412 * vms_data.ads: Fix typo in constant.
5413 * gen-soccon.c: Fix typo in error string.
5414 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
5416 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
5417 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
5418 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
5419 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
5420 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
5421 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
5422 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
5423 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
5424 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
5425 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
5426 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
5427 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
5428 sinfo.ads: Fix typos in comments.
5430 2008-04-14 Robert Dewar <dewar@adacore.com>
5432 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
5433 to every non-object and change error message.
5435 2008-04-14 Robert Dewar <dewar@adacore.com>
5437 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
5438 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
5441 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
5444 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
5445 apply pragma Linker_Section on type.
5447 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
5450 * sem_prag.adb (Error_Pragma_Ref): New.
5451 (Process_Convention): Specialized message for non-local
5452 subprogram renaming. Detect the problem in homonyms as well.
5454 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
5457 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
5458 * sem_ch12.adb (Instantiate_Object): Use it.
5459 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
5460 storage pool denotes a variable as per RM 13.11(15).
5462 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
5464 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
5465 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
5467 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
5470 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
5471 line endings even on non-Unix platforms.
5473 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
5476 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
5477 renaming information.
5479 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
5482 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
5485 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5487 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
5488 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
5489 snames.ads, sprint.adb, stand.ads, stringt.ads,
5490 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
5491 switch.ads, sysdep.c, table.adb, table.ads,
5492 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
5493 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
5494 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
5495 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
5496 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
5497 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
5500 * sem_ch10.adb, sem_ch10.ads,
5501 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
5502 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
5503 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
5504 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
5505 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
5506 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
5507 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
5508 sem_warn.ads: Fix comment typos.
5510 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
5511 s-soflin.ads, s-stalib.ads, s-stausa.adb,
5512 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
5513 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
5514 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
5515 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5516 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
5517 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
5518 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
5519 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
5520 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
5521 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
5522 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
5523 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
5524 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
5525 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
5526 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
5527 sem_cat.adb, sem_cat.ads: Fix comment typos.
5529 2008-04-12 Joel Sherrill <joel@oarcorp.com>
5532 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
5534 2008-04-12 Arnaud Charlet <charlet@adacore.com>
5536 * s-linux-hppa.ads: Fix syntax errors.
5538 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5540 * gnat_ugn.texi: Fix typos.
5541 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
5542 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
5543 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
5544 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
5545 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
5546 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
5547 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
5548 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
5549 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
5550 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
5551 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
5552 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
5553 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
5554 s-osinte-darwin.ads, s-osinte-freebsd.ads,
5555 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
5556 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
5557 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
5558 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
5559 s-parame-hpux.ads, s-parame-vms-alpha.ads,
5560 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
5561 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
5562 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
5563 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
5564 s-rident.ads: Fix comment typos.
5566 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
5569 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
5570 environment if generic instance is a top-level one.
5572 2008-04-09 Doug Rupp <rupp@adacore.com>
5574 * decl.c (validate_size): Set minimum size for fat pointers same as
5575 access types. Code clean ups.
5577 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
5578 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
5580 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
5582 * s-crtl.ads (malloc32) New function, alias for malloc
5583 (realloc32) New function, alias for realloc
5585 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
5587 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
5588 allocator size is 32 and default pointer size is 64.
5589 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
5590 lhs type if smaller, whatever the modes.
5592 * gigi.h (malloc32_decl): New macro definition
5594 * utils.c (init_gigi_decls): New malloc32_decl
5595 Various code clean ups.
5597 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
5598 Task_Address vice System.Address.
5600 * s-taspri-vms.ads: Import System.Aux_DEC
5601 (Task_Address): New subtype of System.Aux_DEC.Short_Address
5602 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
5604 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
5605 Task_Address vice System.Address.
5607 * s-inmaop-vms.adb: Import System.Task_Primitives
5608 (To_Address): Unchecked convert to Task_Address vice System.Address
5610 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
5612 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
5613 (To_Address) Unchecked convert to Task_Address vice System.Address
5615 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
5617 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
5619 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5621 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
5622 (fdesc_type_node): Define.
5623 (null_fdesc_node): Likewise.
5624 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
5625 uses descriptors for vtables and the type comes from a dispatch table,
5626 return the descriptor type.
5627 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
5628 uses descriptors for vtables and the type comes from a dispatch table,
5629 build a descriptor in the static case and copy the existing one in the
5631 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
5632 the type is a pointer-to-subprogram coming from a dispatch table,
5633 return the null descriptor.
5634 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
5635 vtables, the source type is the descriptor type and the target type
5636 is a pointer type, first build the pointer.
5637 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
5638 build the descriptor type and the null descriptor.
5640 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5642 * decl.c (prepend_attributes): Fix typo.
5643 * trans.c (Pragma_to_gnu): Likewise.
5644 * utils.c (gnat_genericize): Likewise.
5646 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5647 Richard Kenner <kenner@adacore.com>
5649 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
5650 * decl.c (gnat_to_gnu_entity): Adjust for above change.
5651 <E_Record_Type>: Try to get a better form of the component for
5652 packing, even if it has an integral mode.
5653 <E_Record_Subtype>: Likewise.
5654 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
5655 exception suppressing the final conversion between record types.
5657 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5659 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
5660 alignment for space, promote the alignment of non-scalar variables with
5661 no size and alignment.
5662 * gigi.h (gnat_types_compatible_p): Declare.
5663 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
5664 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
5665 * utils.c (gnat_types_compatible_p) : New predicate.
5666 (convert): Use it throughout to test for cases where a mere view
5667 conversion is sufficient.
5668 * utils2.c (build_binary_op): Minor tweaks.
5669 (build_unary_op): Likewise.
5671 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5673 * decl.c (adjust_packed): Expand comment.
5675 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5677 * s-tasuti.ads: Use Task_Address instead of System.Address.
5679 * makeutl.adb (Path_Or_File_Name): New function
5681 * nlists.ads, itypes.ads: Update comments.
5683 * s-crtl.ads (malloc32, realloc32): New functions.
5685 * s-auxdec.ads (Short_Address_Size): New constant.
5687 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
5689 * s-ststop.ads, s-ststop.adb: New file.
5691 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
5694 2008-04-08 Pascal Obry <obry@adacore.com>
5696 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
5697 (Stop_Bits_Number): New type.
5698 (Parity_Check): Likewise.
5699 (Set): Add parameter to set the number of stop bits and
5700 the parity. Parameter timeout is now a duration instead
5703 * g-sercom-linux.adb:
5704 Implement the stop bits and parity support for GNU/Linux.
5705 Fix handling of timeout, it must be given in tenth of seconds.
5707 * g-sercom-mingw.adb:
5708 Implement the stop bits and parity support for Windows.
5709 Use new s-win32.ads unit instead of declaring Win32 services
5710 directly into this body.
5711 Update handling of timeout as now a duration.
5713 * s-win32.ads, s-winext.ads: New files.
5715 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5716 Arnaud Charlet <charlet@adacore.com>
5718 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
5720 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
5721 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
5723 * s-osinte-lynxos-3.ads,
5724 (Alternate_Stack): Remove when not needed. Simplify declaration
5726 (Alternate_Stack_Size): New constant.
5728 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
5729 'Unrestricted_Access.
5731 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
5732 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
5733 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
5734 s-osinte-solaris.ads, s-osinte-vms.ads
5735 (SA_ONSTACK): New constant.
5736 (stack_t): New record type.
5737 (sigaltstack): New imported function.
5738 (Alternate_Stack): New imported variable.
5739 (Alternate_Stack_Size): New constant.
5741 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
5743 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
5744 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
5745 s-taspri-vms.ads (Task_Address): New subtype of System.Address
5746 (Task_Address_Size): New constant size of System.Address
5747 (Alternate_Stack_Size): New constant.
5749 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
5750 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
5751 Establish the alternate stack if the platform makes use of n alternate
5752 signal stack for stack overflows.
5753 (Create_Task): Take into account the alternate stack in the stack size.
5754 (Initialize): Save the address of the alternate stack into the ATCB for
5755 the environment task.
5756 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
5758 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
5760 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
5762 * s-intman-posix.adb:
5763 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
5764 alternate signal stack for stack overflows.
5766 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
5767 x86-64, adjust the saved value of the stack pointer if the signal was
5768 raised by a stack checking probe.
5769 (HP-UX section): Use global __gnat_alternate_stack as signal handler
5770 stack and only for SIGSEGV.
5771 (Linux section): Likewise on x86 and x86-64.
5773 (__gnat_map_signal): Now static.
5774 (__gnat_error_handler): Not static any more.
5775 (__gnat_adjust_context_for_raise): New function. Signal context
5776 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
5777 propagation circuitry.
5778 (__gnat_error_handler): Second argument of a sigaction handler is a
5779 pointer, not an int, and is unused.
5780 Adjust signal context before mapping to exception.
5781 Install signal handlers for LynxOS case.
5783 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
5784 (Task_Id): Set size to Task_Address_Size
5785 (To_Task_id): Unchecked convert from Task_Address vice System.Address
5786 (To_Address): Unchecked convert to Task_Address vice System.Address
5788 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
5789 address into the ATCB if the platform makes use of an alternate signal
5790 stack for stack overflows.
5791 (Free_Task): Add call to Finalize_Attributes_Link.
5792 Add argument Relative_Deadline to pass the value specified for
5793 the task. This is not yet used for any target.
5795 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
5796 the value specified for the task.
5798 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5800 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
5801 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
5802 s-vxwext-rtp.adb): New files.
5804 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
5805 Minor updates to accomodate changes above.
5807 2008-04-08 Pascal Obry <obry@adacore.com>
5809 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
5810 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
5811 Use new s-win32.ads unit instead of declaration
5812 from s-osinte-mingw.ads.
5814 * s-osinte-mingw.ads:
5815 Move all non tasking based interface to s-win32.ads.
5817 * s-osprim-mingw.adb:
5818 Remove duplicated declarations and use s-win32.ads
5821 2008-04-08 Vincent Celier <celier@adacore.com>
5822 Arnaud Charlet <charlet@adacore.com>
5824 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
5825 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
5826 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5827 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5828 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
5830 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
5831 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
5832 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
5833 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
5834 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
5835 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
5836 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
5837 mlib-tgt-specific-mingw.adb: New names.
5840 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
5842 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
5843 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
5844 Minor updates for VMS
5846 * gnatbl.c: Removed.
5848 2008-04-08 Thomas Quinot <quinot@adacore.com>
5850 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
5851 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
5852 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
5853 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
5854 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
5855 ASCII.NUL throughout.
5857 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5858 Matthew Heaney <heaney@adacore.com>
5860 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
5863 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
5864 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
5865 to convention for non-RM specs.
5866 Add descriptive header, and documented each operation
5867 document each operation
5869 2008-04-08 Robert Dewar <dewar@adacore.com>
5870 Bob Duff <duff@adacore.com>
5871 Gary Dismukes <dismukes@adacore.com>
5872 Ed Schonberg <schonberg@adacore.com>
5874 * alloc.ads: Add entries for Obsolescent_Warnings table
5876 * einfo.ads, einfo.adb: Minor reformatting.
5877 (Is_Discriminal): New subprogram.
5878 (Is_Prival): New subprogram.
5879 (Is_Protected_Component): New subprogram.
5880 (Is_Protected_Private): Removed.
5881 (Object_Ref, Set_Object_Ref): Removed.
5882 (Prival, Set_Prival): Change assertion.
5883 (Privals_Chain, Set_Privals_Chain): Removed.
5884 (Prival_Link, Set_Prival_Link): New subprogram.
5885 (Protected_Operation, Set_Protected_Operation): Removed.
5886 (Protection_Object, Set_Protection_Object): New subprogram.
5887 (Write_Field17_Name): Remove case for Object_Ref.
5888 (Write_Field20_Name): Add case for Prival_Link.
5889 (Write_Field22_Name): Remove case for Protected_Operation,
5891 Add case for Protection_Object.
5892 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
5894 (Overlays_Constant): New flag
5895 (Is_Constant_Object): New predicate
5896 (Is_Standard_Character_Type): New predicate
5897 (Optimize_Alignment_Space): New flag
5898 (Optimize_Alignment_Time): New flag
5899 (Has_Postconditions): New flag
5900 (Obsolescent_Warrning): Field removed
5901 (Spec_PPC_List): New field
5902 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
5903 subprograms to get and set the relative deadline associated to a task.
5905 * exp_attr.adb (May_Be_External_Call): Account for the case where the
5906 Access attribute is part of a named parameter association.
5907 (Expand_Access_To_Protected_Op): Test for the attribute occurring
5908 within an init proc and use that directly as the scope rather than
5909 traversing up to the protected operation's enclosing scope. Only apply
5910 assertion on Is_Open_Scopes in the case the scope traversal is done.
5911 For the init proc case use the address of the first formal (_init) as
5912 the protected object reference.
5913 Implement Invalid_Value attribute
5914 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
5915 contents of the dispatch table there is no need to duplicate the
5916 itypes associated with record types (i.e. the implicit full view
5918 Implement Enum_Val attribute
5919 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
5920 within _Postconditions procedure
5921 (Expand_N_Attribute_Reference, case Result): Implement new attribute
5923 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
5924 a return statement calls a function that is not available in
5925 configurable runtime.
5926 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
5927 (Expand_Non_Function_Return): Generate call to _Postconditions proc
5928 (Expand_Simple_Function_Return): Ditto
5930 * frontend.adb: Add call to Sem_Aux.Initialize
5932 * sem_aux.ads, sem_aux.adb: New file.
5934 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
5935 Add new Pragma_Relative_Deadline.
5936 Add support for pragmas Check and Check_Policy
5938 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
5939 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
5940 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
5941 missing check because they are not allowed in CPP tagged types.
5942 Add Sure parameter to Note_Possible_Modification calls
5943 Add implementation of Invalid_Value attribute
5944 Implement new attribute Has_Tagged_Values
5945 Implement Enum_Val attribute
5946 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
5947 generated attributes.
5948 (Analyze_Attribute, case Result): If prefix of the attribute is
5949 overloaded, it always resolves to the enclosing function.
5950 (Analyze_Attribute, case Result): Properly deal with analysis when
5951 Postconditions are not active.
5952 (Resolve_Attribute, case Result): Properly deal with appearence during
5953 preanalysis in spec.
5954 Add processing for attribute Result
5956 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5958 (Analyze_Subprogram_Body): Install private_with_clauses when the body
5960 (Check_Inline_Pragma): recognize an inline pragma that appears within
5961 the subprogram body to which it applies.
5962 (Analyze_Function_Return): Check that type of the expression of a return
5963 statement in a function with a class-wide result is not declared at a
5964 deeper level than the function.
5965 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5966 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5967 user- defined operators.
5968 (Install_Formals): Moved to spec to allow use from Sem_Prag for
5969 analysis of precondition/postcondition pragmas.
5970 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5971 Last_Formal, along with lots of comments on what this is about
5972 (Analyze_Subprogram_Body): Fix case where we move entities from the
5973 spec to the body when there are no body entities (now possible with
5974 precondition and postcondition pragmas).
5975 (Process_PPCs): New procedure
5976 (Analyze_Subprogram_Body): Add call to Process_PPCs
5978 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5980 (Pop_Scope): Restore Check_Policy_List on scope exit
5981 (Push_Scope): Save Check_Policy_List on scope entry
5982 Change name In_Default_Expression => In_Spec_Expression
5983 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5984 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5985 (Analyze_Object_Renaming): Allow 'Reference as object
5986 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5987 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5988 of restriction identifier.
5989 Add Sure parameter to Note_Possible_Modication calls
5991 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5992 Don't check for primitive operations when calling Rep_Item_Too_Late.
5993 (Process_Import_Or_Interface): Do not place flag on formal
5995 (Analyze_Pragma, case Export): If the entity is a deferred constant,
5996 propagate information to full view, which is the one elaborated by the
5998 (Make_Inline): the pragma is effective if it applies to an internally
5999 generated subprogram declaration for a body that carries the pragma.
6000 (Analyze_Pragma, case Optimize_Alignment): Set new flag
6001 Optimize_Alignment_Local.
6002 (Analyze_PPC_In_Decl_Part): New procedure
6003 (Get_Pragma_Arg): Moved to outer level
6004 (Check_Precondition_Postcondition): Change to allow new visibility
6005 rules for package spec
6006 (Analyze_Pragma, case Check_Policy): Change placement rules to be
6007 same as pragma Suppress/Unsuppress.
6008 Change name In_Default_Expression => In_Spec_Expression
6009 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
6010 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
6011 (Check_Precondition_Postcondition): Do proper visibility preanalysis
6012 for the case of these pragmas appearing in the spec.
6013 (Check_Enabled): New function
6014 (Initialize): New procedure
6015 (Tree_Read): New procedure
6016 (Tree_Write): New procedure
6017 (Check_Precondition_Postcondition): New procedure
6018 Implement pragmas Check and Check_Policy
6019 Merge Assert processing with Check
6021 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
6022 New warning flag -gnatw.e
6024 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
6025 returning whether a task (or main procedure) has a pragma
6027 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
6028 (or main procedure) has a pragma Relative_Deadline.
6029 Add Next_Pragma field to N_Pragma node
6030 (PPC_Enabled): New flag
6031 (Next_Pragma): Now used for Pre/Postcondition processing
6033 * snames.h, snames.ads, snames.adb: New standard name
6035 Add entry for 'Invalid_Value attribute
6036 Add entry for new attribute Has_Tagged_Values
6037 Add entry for Enum_Val attribute
6038 Add new standard names Aggregate, Configuration and Library.
6041 Add Pragma_Precondition
6042 Add Pragma_Postcondition
6043 Add Attribute_Result
6044 New standard name Archive_Builder_Append_Option
6045 (Preset_Names): Add _relative_deadline and relative_deadline definitions
6046 There was also a missing non_preemptive_within_priorities.
6047 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
6049 Add support for pragmas Check and Check_Policy
6051 * tree_gen.adb: Call Sem_Aux.Tree_Write
6053 * tree_in.adb: Call Sem_Aux.Tree_Read
6055 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
6058 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
6061 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
6062 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
6064 (Expand_Pragma_Check): New procedure
6066 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
6069 * sinfo.adb (PPC_Enabled): New flag
6071 2008-04-08 Robert Dewar <dewar@adacore.com>
6072 Gary Dismukes <dismukes@adacore.com>
6073 Javier Miranda <miranda@adacore.com>
6074 Ed Schonberg <schonberg@adacore.com>
6076 * fe.h: Remove global Optimize_Alignment flag, no longer used
6078 * layout.adb: Test Optimize_Alignment flags rather than global switch
6080 * lib.ads, lib.adb: New OA_Setting field in library record
6082 * lib-load.adb: New OA_Setting field in library record
6084 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
6085 units mentioned in limited_with_ clauses in the ali file, with an
6087 New Ox fields in U line
6089 * opt.adb: New flag Optimize_Alignment_Local
6090 (Check_Policy_List[_Config]): New flags
6092 * opt.ads (Invalid_Value_Used): New flag
6093 New switch Optimize_Alignment_Local
6094 (Warn_On_Parameter_Order): New flag
6095 (Check_Policy_List[_Config]): New flags
6097 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
6098 limited_with clauses.
6099 New data structures for Optimize_Alignment
6101 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
6103 (Check_Consistent_Optimize_Alignment): Rework for new structure
6104 (Check_Consistent_Restrictions): Fix incorrect error message
6106 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
6107 created class-wide type (to the Parent field of the specific type).
6108 (Install_Siblings): Handle properly private_with_clauses on subprogram
6109 bodies and on generic units.
6110 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
6111 illegal limited_with_clause that names a non-existent package.
6112 (Check_Body_Required): Determine whether a unit named a limited_with
6113 clause needs a body.
6114 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
6115 Capture Optimize_Alignment settings to set new OA_Setting field in
6117 (Build_Limited_Views): Include task and protected type declarations.
6119 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
6120 case of a possible constant redeclaration where the current object is
6121 an entry index constant.
6122 (Analyze_Object_Declaration): Generate an error in case of CPP
6123 class-wide object initialization.
6124 (Analyze_Object_Declaration): Add extra information on warnings for
6125 declaration of unconstrained objects.
6126 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
6127 conflicts with the setting of Stored_Constraint in the case where the
6128 access type entity has already been created as an E_Incomplete_Type due
6129 to a limited with clause.
6130 Use new Is_Standard_Character_Type predicate
6131 (Analyze_Object_Declaration): Apply access_constant check only after
6132 expression has been resolved, given that it may be overloaded with
6133 several access types.
6134 (Constant_Redeclaration): Additional legality checks for deferred
6135 constant declarations tha involve anonymous access types and/or null
6136 exclusion indicators.
6137 (Analyze_Type_Declaration): Set Optimize_Alignment flags
6138 (Analyze_Subtype_Declaration): Ditto
6139 (Analyze_Object_Declaration): Ditto
6140 (Analyze_Object_Declaration): Don't count tasks in generics
6141 Change name In_Default_Expression => In_Spec_Expression
6142 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
6143 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
6144 (Process_Discriminants): Additional check for illegal use of default
6145 expressions in access discriminant specifications in a type that is not
6147 (Check_Abstract_Overriding): If an inherited function dispaches on an
6148 access result, it must be overridden, even if the type is a null
6150 (Derive_Subprogram): The formals of the derived subprogram have the
6151 names and defaults of the parent subprogram, even if the type is
6152 obtained from the actual subprogram.
6153 (Derive_Subprogram): In the presence of interfaces, a formal of an
6154 inherited operation has the derived type not only if it descends from
6155 the type of the formal of the parent operation, but also if it
6156 implements it. This is relevant for the renamings created for the
6157 primitive operations of the actual for a formal derived type.
6158 (Is_Progenitor): New predicate, to determine whether the type of a
6159 formal in the parent operation must be replaced by the derived type.
6161 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
6162 predicate recursive to handle components that have a user-defined
6163 Initialize procedure. Handle controlled derived types whose ancestor
6164 has a user-defined Initialize procedured.
6165 (Note_Possible_Modification): Add Sure parameter, generate warning if
6166 sure modification of constant
6167 Use new Is_Standard_Character_Type predicate
6168 (Find_Parameter_Type): when determining whether a protected operation
6169 implements an interface operation, retrieve the type of the formal from
6170 the entity when the formal is an access parameter or an
6171 anonymous-access-to-subprogram.
6172 Move Copy_Parameter_List to sem_util, for use when building stubbed
6174 (Has_Access_Values): Tagged types now return False
6175 (Within_HSS_Or_If): New procedure
6176 (Set_Optimize_Alignment_Flags): New procedure
6177 Change name In_Default_Expression => In_Spec_Expression
6178 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
6179 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
6181 2008-04-08 Tristan Gingold <gingold@adacore.com>
6183 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
6185 2008-04-08 Tristan Gingold <gingold@adacore.com>
6189 * cuintp.c: Fix 16 bits issue for AVR.
6190 On AVR, integer is 16 bits, so it can't be used to do math with
6192 So use long_integer instead.
6194 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6196 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
6197 System.OS_Primitives.
6198 Change type of various constants, parameters and local variables from
6199 Time to representation type OS_Time.
6200 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
6201 Remove the declaration of constant Mili_F from several routines. New
6202 body for internal package Conversions_Operations.
6203 (Time_Of): Add default parameters for several formals.
6205 * a-caldel.adb: Minor reformatting
6207 * a-calend.ads, a-calend.adb: New body for internal package
6208 Conversions_Operations.
6209 (Time_Of): Add default parameters for several formals.
6211 * Makefile.rtl: Add a-ststop
6212 Add Ada.Calendar.Conversions to the list of runtime files.
6215 * a-calcon.adb, a-calcon.ads: New files.
6217 2008-04-08 Jose Ruiz <ruiz@adacore.com>
6218 Tristan Gingold <gingold@adacore.com>
6220 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
6221 (Install_Restricted_Handlers): New procedure
6222 which is a simplified version of Install_Handlers that does not store
6223 previously installed.
6225 * s-interr-vxworks.adb: Fix ACATS cxc3001
6226 On VxWorks interrupts can't be detached.
6227 (Install_Restricted_Handlers): New procedure.
6229 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
6232 2008-04-08 Olivier Hainque <hainque@adacore.com>
6234 * s-intman-vxworks.ads, s-intman-vxworks.adb
6235 (Map_And_Raise_Exception): Remove. Was an import of only part of the
6236 required services already implemented elsewhere.
6237 (Notify_Exception): Delete body, import __gnat_error_handler instead.
6238 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
6239 argument passed to the handler, which we need for ZCX propagation
6242 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6244 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
6246 * g-timsta.adb, g-timsta.ads: New files.
6248 2008-04-08 Robert Dewar <dewar@adacore.com>
6250 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
6251 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
6252 (Raise_Exception_Always): Fix documentation accordingly
6254 2008-04-08 Robert Dewar <dewar@adacore.com>
6256 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
6259 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
6262 2008-04-08 Javier Miranda <miranda@adacore.com>
6263 Robert Dewar <dewar@adacore.com>
6264 Ed Schonberg <schonberg@adacore.com>
6266 * a-tags.adb (Register_Interface_Offset): New subprogram.
6267 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
6268 (To_Predef_Prims_Table_Ptr): Removed.
6269 (Acc_Size): Removed.
6270 (To_Acc_Size): Removed.
6271 (Parent_Size): Modified to the call the subprogram returning the size of
6272 the parent by means of the new TSD component Size_Func.
6274 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
6275 (DT_Offset_To_Top_Offset): New constant value that is used to generate
6276 code referencing the Offset_To_Top component of the dispatch table's
6278 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
6279 use of 'address to initialize dispatch table slots.
6280 (Size_Func): New component of the TSD. Used by the run-time to call the
6281 size primitive of the tagged type.
6283 * checks.adb (Apply_Access_Check): Avoid check when accessing the
6284 Offset_To_Top component of a dispatch table.
6285 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
6286 deferred constant declaration. do not add a null expression, to prevent
6287 spurious errors when full declaration is analyzed.
6288 (Apply_Discriminant_Check): If both discriminant constraints share a
6289 node which is not static but has no side effects, do not generate a
6290 check for that discriminant.
6291 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
6292 subexpr, since the prefix of an attribute is a name.
6294 * checks.ads: Fix nit in comment.
6296 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
6297 and body of predefined primitives in case of CPP tagged type
6299 (Freeze_Type): Deal properly with no storage pool case
6300 (Make_Predefined_Primitive_Specs): Generate specification of abstract
6301 primitive Deep_Adjust if a nonlimited interface is derived from a
6303 (Build_Dcheck_Functions): Create discriminant-checking functions only
6304 for variants that have some component(s).
6305 (Build_Slice_Assignment): In expanded code for slice assignment, handle
6306 properly the case where the slice bounds extend to the last value of the
6307 underlying representation.
6308 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
6309 (Is_Variable_Size_Record): An array component has a static size if
6310 index bounds are enumeration literals.
6312 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
6313 an external tag has been specified for the type.
6314 (Building_Static_DT): Add missing support for private types.
6315 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
6316 to the entity associated with the parent of Typ. This is done to
6317 avoid wrong access when the parent is a private type.
6318 (Expand_Interface_Conversion): Improve error message when the
6319 configurable runtime has no support for dynamic interface conversion.
6320 (Expand_Interface_Thunk): Add missing support to interface types in
6321 configurable runtime.
6322 (Expand_Dispatching_Call): remove obsolete code.
6323 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
6324 ensure that all subtypes and aggregates associated with dispatch
6325 tables have the attribute Is_Dispatch_Table_Entity set to true.
6326 (Register_Primitive): Rename one variable to improve code reading.
6327 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
6328 of the pointer to the 'size primitive in the TSD.
6330 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
6331 (RE_Offset_To_Top_Ptr): New entity.
6332 (RE_Register_Interface_Offset): New entity.
6333 (RE_Set_Dynamic_Offset_To_Top): New entity.
6334 (RE_Set_Offset_To_Top): Removed entity.
6335 (RE_Prim_Ptr): New entity
6336 (RE_Size_Func): New entity
6337 (RE_Size_Ptr): New entity
6338 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
6339 (Ada_Dispatching_Child): Define this new subrange.
6340 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
6341 RE_Time_Span, and RE_Time_Span_Zero).
6342 (RE_Unit_Table): Add new required run-time calls
6344 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
6347 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
6348 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
6349 initializes the Offset_To_Top component of a dispatch table.
6350 (Build_Predef_Prims): Removed.
6351 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
6353 (Build_Set_Size_Function): New subprogram.
6355 * exp_ch13.adb: Do not generate storage variable for storage_size zero
6356 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
6358 2008-04-08 Robert Dewar <dewar@adacore.com>
6360 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
6361 computing Fore when Exp > 0
6363 2008-04-08 Robert Dewar <dewar@adacore.com>
6365 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
6367 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
6368 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
6370 * fmap.adb: Remove Big_String declarations (now in Types)
6371 (No_Mapping_File): New Boolean global variable
6372 (Initialize): When mapping file cannot be read, set No_Mapping_File to
6374 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
6375 tables were empty before adding entries, open the mapping file
6376 with Truncate = True, instead of delete/re-create.
6378 * fname-sf.adb: Remove Big_String declarations (now in Types)
6380 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
6381 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
6384 * table.ads: Add for Table_Ptr'Storage_Size use 0
6386 * types.ads: Add Big_String declarations
6387 Add Size_Clause of zero for big pointer types
6389 2008-04-08 Vincent Celier <celier@adacore.com>
6391 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
6392 (Usage): Add line for switch --subdirs=
6393 Add new switch -eL, to follow symbolic links when processing project
6396 * gnatcmd.adb: Process switches -eL and --subdirs=
6397 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
6398 Program_Name to get proper tool names when AAMP_On_Target is set.
6399 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
6400 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
6401 Osint.Program_Name).
6403 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
6404 (Usage): Add lines for switches -eL and --subdirs=
6406 * makeusg.adb: Add line for switch --subdirs=
6409 (Source_Data): New Boolean component Compiled, defaulted to True
6410 (Empty_File_Name: New global variable in private part, initialized in
6411 procedure Initialize.
6412 (Subdirs_Option): New constant string
6413 (Subdirs): New String_Ptr global variable
6414 (Language_Config): New component Include_Compatible_Languages
6415 (Project_Qualifier): New type for project qualifiers
6416 (Project_Data): New component Qualifier
6417 (Project_Configuration): New component Archive_Builder_Append_Option
6419 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
6420 another imported project indicate the name of this imported project.
6421 (Check_File): When a unit is in two project files, indicate the project
6422 names and the paths of the source files for each project.
6423 (Add_Source): Set Compiled to False if compiler driver is empty. Only
6424 set object, dependency and switches file names if Compiled is True.
6425 (Process_Compiler): Allow the empty string for value of attribute Driver
6426 (Get_Directories): When Subdirs is not null and Object_Dir is not
6427 specified, locate and create if necessary the actual object dir.
6428 (Locate_Directory): When Subdirs is not empty and Create is not the
6429 empty string, locate and create if necessary the actual directory
6430 as a subdirectory of directory Name.
6431 (Check_Library_Attributes.Check_Library): Allow a project where the only
6432 "sources" are header files of file based languages to be imported by
6433 library projects, in multi-language mode (gprbuild).
6434 (Check_Library_Attributes.Check_Library): In multi-language mode
6435 (gprbuild), allow a library project to import a project with no
6436 sources, even when this is not declared explicitly.
6437 (Check_If_Externally_Built): A virtual project extending an externally
6438 built project is also externally built.
6439 (Check_Library_Attributes): For a virtual project extending a library
6440 project, inherit the library directory.
6441 (Process_Project_Level_Array_Attributes): Process new attribute
6442 Inherit_Source_Path.
6443 For projects with specified qualifiers "standard", "library" or
6444 "abstract", check that the project conforms to the qualifier.
6445 (Process_Project_Level_Simple_Attributes): Process new attribute
6446 Archive_Builder_Append_Option.
6448 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
6449 (Normalize_Compiler_Switches): Only keep compiler switches that are
6450 passed to gnat1 by the gcc driver and that are stored in the ALI file
6452 Do not take into account switc -save-temps
6454 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
6455 gprmake is called with -eL.
6456 (Scan_Arg): Recognize switch -eL
6457 (Usage): Add line for switch -eL
6459 * prj.adb (Initialize): Initialize Empty_File_Name
6460 (Project_Empty): New component Qualifier
6462 * prj-attr.ads, prj-attr.adb: New project level attribute
6463 Inherit_Source_Path.
6464 New project level attribute Archive_Builder_Append_Option
6466 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
6468 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
6469 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
6470 upward compatibility.
6472 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
6473 each Trying ..." on different lines.
6474 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
6475 is "configuration" when not in configuration. Fail when in configuration
6476 when a specified qualifier is other than "configuration".
6478 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
6479 full associative array together.
6480 (Recursive_Process): Put the project qualifier in the project data
6482 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
6483 (Set_Project_Qualifier_Of): New procedure
6485 2008-04-08 Robert Dewar <dewar@adacore.com>
6487 * errout.ads: Update comments for new handling of info: messages
6489 * erroutc.adb (Matches): New procedure
6490 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
6491 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
6492 info messages as well as style messages.
6494 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
6496 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
6498 (Check_A_Call): Special "info: " warnings now have ? in the text
6499 (Elab_Warning): Use info message in static case
6501 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6503 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
6504 whether an array aggregate with static bounds and scalar components
6505 should be expanded into a static constant.
6507 2008-04-08 Gary Dismukes <dismukes@adacore.com>
6508 Ed Schonberg <schonberg@adacore.com>
6509 Robert Dewar <dewar@adacore.com>
6511 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
6512 Has_Stream_Attribute_ Definition when checking for available stream
6513 attributes on parameters of a limited type in Ada 2005. Necessary for
6514 proper recognition of visible stream attribute clauses.
6515 (Has_Stream_Attribute_Definition): If the type is derived from a
6516 private type, then use the derived type's underlying type for checking
6517 whether it has stream attributes.
6518 (Validate_Object_Declaration): The check for a user-defined Initialize
6519 procedure applies also to types with controlled components or a
6520 controlled ancestor.
6521 Reject an object declaration in a preelaborated unit if the type is a
6522 controlled type with an overriding Initialize procedure.
6523 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
6524 checking when the parent of a dereference is a selected component and
6525 the name has not been analyzed.
6527 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
6528 prefixes that are invalid explicit dereferences of remote
6529 access-to-class-wide values, first checking whether the selected
6530 component is a prefixed form of call to a tagged operation.
6531 (Analyze_Call): Remove code that issues an error for limited function
6532 calls in illegal contexts, as we now support all of the contexts that
6533 were forbidden here.
6534 Allow a function call that returns a task.and appears as the
6535 prefix of a selected component.
6536 (Analyze_Reference): Give error message if we try to make a 'Reference
6537 for an object that is atomic/aliased without its type having the
6538 corresponding attribute.
6539 (Analyze_Call): Remove condition checking for attributes to allow
6540 calls to functions with inherently limited results as prefixes of
6541 attributes. Remove related comment about Class attributes.
6542 (Analyze_Selected_Component): If the prefix is a remote type, check
6543 whether this is a prefixed call before reporting an error.
6544 (Complete_Object_Operation): If the controlling formal is an access to
6545 variable reject an actual that is a constant or an access to one.
6546 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
6547 primitive operations from base type.
6549 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
6551 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
6552 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
6553 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
6554 (Expand_N_Slice): Test for prefix that is a build-in-place function call
6555 and call Make_Build_In_Place_Call_In_Anonymous_Context.
6556 (Analyze_Call): Remove code that issues an error for limited function
6557 calls in illegal contexts, as we now support all of the contexts that
6558 were forbidden here.
6559 New calling sequence for Get_Simple_Init_Val
6560 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
6561 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
6563 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6564 Ed Schonberg <schonberg@adacore.com>
6565 Robert Dewar <dewar@adacore.com>
6567 * exp_ch2.adb: Minor reformatting.
6568 (Expand_Entry_Index_Parameter): Set the type of the identifier.
6569 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
6570 (Expand_Protected_Component): New routine.
6571 (Expand_Protected_Private): Removed.
6572 Add Sure parameter to Note_Possible_Modification calls
6574 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
6575 generated subprogram declaration must inherit the overriding indicator
6576 from the instantiation node.
6577 (Validate_Access_Type_Instance): If the designated type of the actual is
6578 a limited view, use the available view in all cases, not only if the
6579 type is an incomplete type.
6580 (Instantiate_Object): Actual is illegal if the formal is null-excluding
6581 and the actual subtype does not exclude null.
6582 (Process_Default): Handle properly abstract formal subprograms.
6583 (Check_Formal_Package_Instance): Handle properly defaulted formal
6584 subprograms in a partially parameterized formal package.
6585 Add Sure parameter to Note_Possible_Modification calls
6586 (Validate_Derived_Type_Instance): if the formal is non-limited, the
6587 actual cannot be limited.
6588 (Collect_Previous_Instances): Generate instance bodies for subprograms
6591 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
6593 Add Sure parameter to Note_Possible_Modification calls
6594 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
6595 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
6596 constant overlaid by variable and issue warning.
6597 Use new Is_Standard_Character_Type predicate
6598 (Analyze_Record_Representation_Clause): Check that the specified
6599 Last_Bit is not less than First_Bit - 1.
6600 (Analyze_Attribute_Definition_Clause, case Address): Check for
6601 self-referential address clause
6603 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
6604 detection mechanism when the lhs is a prival.
6605 (Analyze_Assignment): Call Check_Unprotected_Access to detect
6606 assignment of a pointer to protected data, to an object declared
6607 outside of the protected object.
6608 (Analyze_Loop_Statement): Check for unreachable code after loop
6609 Add Sure parameter to Note_Possible_Modication calls
6610 Protect analysis from previous syntax error such as a scope mismatch
6612 (Analyze_Assignment_Statement): The assignment is illegal if the
6613 left-hand is an interface.
6615 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
6616 violation of restriction No_Implicit_Conditionals
6617 Add Sure parameter to Note_Possible_Modication calls
6618 Use new Is_Standard_Character_Type predicate
6619 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
6620 call as operator. Fixes problems (e.g. validity checking) which
6621 come from the result looking as though it does not come from source).
6622 (Resolve_Call): Check case of name in named parameter if style checks
6624 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
6625 from the checking that such calls should not occur from an entry body.
6626 (Resolve_Call): If the return type of an Inline_Always function
6627 requires the secondary stack, create a transient scope for the call
6628 if the body of the function is not available for inlining.
6629 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
6630 that are actuals for in-out formals.
6631 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
6632 primitive operations from base type.
6633 (Analyze_Selected_Component): If the context is a call to a protected
6634 operation the parent may be an indexed component prior to expansion.
6635 (Resolve_Actuals): If an actual is of a protected subtype, use its
6636 base type to determine whether a conversion to the corresponding record
6638 (Resolve_Short_Circuit): Handle pragma Check
6640 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
6641 Use new Is_Standard_Character_Type predicate
6642 (Eval_Relational_Op): Catch more cases of string comparison
6644 2008-04-08 Robert Dewar <dewar@adacore.com>
6645 Gary Dismukes <dismukes@adacore.com>
6647 * s-rident.ads: Add No_Default_Initialization restriction
6650 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
6651 (Set_TSS): Handle No_Default_Initialization case
6653 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
6654 No_Default_Initialization
6655 (Expand_N_Subprogram_Body): Remove redundant initialization of out
6656 parameters when Normalize_Scalars is active.
6657 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
6658 Fix casing error in formal parameter name in call
6659 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
6660 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6661 dispatching call on VM targets.
6663 2008-04-08 Gary Dismukes <dismukes@adacore.com>
6664 Thomas Quinot <quinot@adacore.com>
6666 * exp_ch7.adb (Find_Final_List): Change the test for generating a
6667 selected component from an access type's Associated_Final_Chain to
6668 check for the presence of that field, rather than assuming it exists
6669 for all named access types.
6670 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
6671 procedure to call at the end of the generated cleanup procedure.
6672 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
6673 and an At_End_Proc already exists in the handled sequence of statements
6674 for which cleanup actions are being expanded, the original cleanup
6675 action must be preserved.
6677 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6678 Ed Schonberg <schonberg@adacore.com>
6679 Robert Dewar <dewar@adacore.com>
6680 Gary Dismukes <dismukes@adacore.com>
6682 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
6683 Build_Unprotected_Subprogram_Body): Generate debug info for
6684 declarations related to the handling of private data in task and
6686 (Debug_Private_Data_Declarations): New subprogram.
6687 (Install_Private_Data_Declarations): Remove all debug info flagging.
6688 This is now done by Debug_Private_Data_Declarations at the correct
6690 (Build_Simple_Entry_Call): If the task name is a function call, expand
6691 the prefix into an object declaration, and make the surrounding block a
6693 (Build_Master_Entity): An internal block is a master if it wraps a call.
6694 Code reformatting, update comments. Code clean up.
6695 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
6696 (Replicate_Entry_Formals): If the formal is an access parameter or
6697 anonymous access to subprogram, copy the original tree to create new
6698 entities for the formals of the subprogram.
6699 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
6700 for tasks to store the value passed using pragma Relative_Deadline.
6701 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
6702 run-time call to create a task.
6703 (Build_Wrapper_Spec): If the controlling argument of the interface
6704 operation is an access parameter with a non-null indicator, use the
6705 non-null indicator on the wrapper.
6707 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
6708 present, which it may not be in the case where the type entity is an
6709 incomplete view brought in by a limited with.
6710 (Analyze_Task_Type): Only retrieve the full view when present, which it
6711 may not be in the case where the type entity is an incomplete view brought
6712 in by a limited with.
6713 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
6714 private components of a protected type, to prevent the generation of freeze
6715 nodes for which there is no proper scope of elaboration.
6717 * exp_util.ads, exp_util.adb
6718 (Remove_Side_Effects): If the expression is a function call that returns a
6719 task, expand into a declaration to invoke the build_in_place machinery.
6720 (Find_Protection_Object): New routine.
6721 (Remove_Side_Effects): Also make a copy of the value
6722 for attributes whose result is of an elementary type.
6723 (Silly_Boolean_Array_Not_Test): New procedure
6724 (Silly_Boolean_Array_Xor_Test): New procedure
6725 (Is_Volatile_Reference): New function
6726 (Remove_Side_Effects): Use Is_Volatile_Reference
6727 (Possible_Bit_Aligned_Component): Handle slice case properly
6729 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
6730 case test to Exp_Util
6731 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
6733 2008-04-08 Thomas Quinot <quinot@adacore.com>
6735 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
6737 (Add_RACW_Features): When processing an RACW in another unit than the
6738 main unit, set Body_Decls to No_List to indicate that the bodies of
6739 the type's TSS must not be generated.
6740 (GARLIC_Support.Add_RACW_Read_Attribute,
6741 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
6742 Body_Decls is No_List.
6743 (PolyORB_Support.Add_RACW_Read_Attribute,
6744 PolyORB_Support.Add_RACW_Write_Attribute,
6745 PolyORB_Support.Add_RACW_From_Any,
6746 PolyORB_Support.Add_RACW_To_Any,
6747 PolyORB_Support.Add_RACW_TypeCode): Same.
6748 (Transmit_As_Unconstrained): New function.
6749 (Build_Ordered_Parameters_List): Use the above to order parameters.
6750 (GARLIC_Support.Build_General_Calling_Stubs):
6751 Use the above to determine which parameters to unmarshall using 'Input
6752 at the point where their temporary is declared (as opposed to later on
6754 (PolyORB_Support.Build_General_Calling_Stubs):
6755 Use the above to determine which parameters to unmarshall using From_Any
6756 at the point where their temporary is declared (as opposed to later on
6757 with an assignment).
6759 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6761 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
6762 an Input function for an access type, do not perform default
6763 initialization on the local variable that receives the value, to
6764 prevent spurious warnings when the type is null-excluding.
6766 2008-04-08 Robert Dewar <dewar@adacore.com>
6767 Ed Schonberg <schonberg@adacore.com>
6769 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
6771 (Size_Known): Generic formal scalar types have known at compile
6772 time size, so remove check.
6773 Fix casing error in formal parameter name in call
6774 (Freeze_Subprogram): If the subprogram is a user-defined operator,
6775 recheck its overriding indication.
6777 2008-04-08 Vincent Celier <celier@adacore.com>
6779 * gnat1drv.adb: Send all messages indicating an error to standard error
6781 2008-04-08 Robert Dewar <dewar@adacore.com>
6783 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
6784 (List_Applicable_Restrictions): Do not list existing restrictions
6786 2008-04-08 Thomas Quinot <quinot@adacore.com>
6788 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
6789 add a pointer to generic sockets literature
6790 do not mention that the given example is "typical" usage.
6791 Remove obsolete comment about multicast not being supported on Windows.
6792 (Connect_Socket): Make Server mode IN rather than IN OUT
6793 since this formal is never modified.
6795 2008-04-08 Robert Dewar <dewar@adacore.com>
6797 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
6798 the declaration for some different entity.
6799 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
6800 list is precent (following the parent subtype indication), display
6801 appropriate "and" keyword.
6803 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
6804 Remove unnecessary calls to Init_Size_Align and Init_Esize.
6805 Add notes on use of Parent field of an Itype
6807 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6808 Robert Dewar <dewar@adacore.com>
6809 Gary Dismukes <dismukes@adacore.com>
6811 * lib-xref.adb (Is_On_LHS): Remove dead code
6812 (Output_Overriden_Op): If the overridden operation is itself inherited,
6813 list the ancestor operation, which is the one whose body or absstract
6814 specification is actually being overridden. For source navigation
6817 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
6818 operation is primitive for the type.
6819 (Declare_Inherited_Private_Subprograms): If the new operation overrides
6820 an inherited private subprogram, set properly the Overridden_Operation
6821 attribute, for better cross-reference information.
6822 (Analyze_Package_Specification): Do late analysis of spec PPCs
6823 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
6824 properly the full view and underlying full views of a private type in a
6825 child unit, whose full view is derived from a private type in a parent
6826 unit, and whose own full view becomes visible in the child body.
6828 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
6829 primitive operation after the type has been frozen, add an explicit
6830 reference to the type and the operation, because other primitive
6831 references have been emitted already.
6832 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6833 dispatching call on VM targets.
6835 2008-04-08 Vincent Celier <celier@adacore.com>
6836 Thomas Quinot <quinot@adacore.com>
6838 * make.adb: (Gnatmake_Called): Remove, no longer necessary
6839 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
6840 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
6841 (Insert_Project_Sources): Take into account index in multi-unit source
6843 After building a library project, delete all temporary files.
6844 (Initialize): Reset current output after parsing project file.
6845 (Collect_Arguments_And_Compile): Never insert in the queue the sources
6846 of library projects that are externally built.
6847 Put file name in error and inform messages if -df is used
6848 (Display): If invoked with -d7, do not display path names, but only
6851 * makeutl.ads (Path_Or_File_Name): New function
6852 (Path_Or_File_Name): New function
6854 2008-04-08 Arnaud Charlet <charlet@adacore.com>
6856 * Make-lang.in: Disable warnings during first stage of bootstrap
6858 Update dependencies.
6860 2008-04-08 Vincent Celier <celier@adacore.com>
6862 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
6863 case to decide if ALI object file is included in library.
6864 (Build_Library): Never attempt to build a library if the project is
6867 2008-04-08 Thomas Quinot <quinot@adacore.com>
6869 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
6870 (No_List) is defined to return Empty.
6872 2008-04-08 Jose Ruiz <ruiz@adacore.com>
6874 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
6877 (Read_Default_Search_Dirs): Do not consider spaces as path separators
6878 because spaces may be part of legal paths.
6880 2008-04-08 Robert Dewar <dewar@adacore.com>
6882 * par-ch11.adb (P_Exception_Handler): Check indentation level for
6885 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6887 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
6888 in a type declaration, if this is not an interface declaration or
6889 private type extension.
6891 2008-04-08 Vincent Celier <celier@adacore.com>
6893 * prj-util.adb (Executable_Of): New String parameter Language. When
6894 Ada_Main is False and Language is not empty, attempt to remove the body
6895 suffix or the spec suffix of the language to get the base of the
6896 executable file name.
6897 (Put): New Boolean parameter Lower_Case, defauilted to False. When
6898 Lower_Case is True, put the value in lower case in the name list.
6899 (Executable_Of): If there is no executable suffix in the configuration,
6900 then do not modify Executable_Extension_On_Target.
6902 * prj-util.ads (Executable_Of): New String parameter Language,
6903 defaulted to the empty string.
6904 (Put): New Boolean parameter Lower_Case, defauilted to False
6906 2008-04-08 Robert Dewar <dewar@adacore.com>
6908 * scng.adb (Scan_Identifier): Handle case of identifier starting with
6909 wide character using UTF-8 encoding.
6911 2008-04-08 Javier Miranda <miranda@adacore.com>
6913 * sem.adb (Analyze): Consider case in which we analyze an empty node
6914 that was generated by a call to a runtime function that is not
6915 available under the configurable runtime.
6917 * sem.ads (Inside_Freezing_Actions): New flag.
6918 (Save_Check_Policy_List): New field in scope stack entry
6920 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6921 Robert Dewar <dewar@adacore.com>
6923 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
6924 the ancestor part of an extension aggregate for a limited type.
6925 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
6926 enumeration index bounds.
6927 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
6928 when array is too short.
6929 (Check_Expr_OK_In_Limited_Aggregate): Move function
6930 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
6932 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
6933 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
6934 component associations.
6935 (Check_Non_Limited_Type): Moved to outer level and renamed.
6936 (Resolve_Record_Aggregate): In an extension aggregate, an association
6937 with a box initialization can only designate a component of the
6938 extension, not a component inherited from the given ancestor
6940 * sem_case.adb: Use new Is_Standard_Character_Type predicate
6942 2008-04-08 Robert Dewar <dewar@adacore.com>
6944 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
6946 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
6947 Properly handle case where Aft > Scale and input number is less than
6950 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6952 * s-stoele.ads, s-soflin.ads: Move the location of
6953 Dummy_Communication_Block from System.Storage_Elements to
6956 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6957 emulate Communication_Block in certain scenarios.
6959 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6961 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6963 Add new subtype S_WWC, unchecked conversion routines From_WWC and
6965 (I_WWC, O_WWC): New routines for input and output of
6966 Wide_Wide_Character.
6968 2008-04-08 Robert Dewar <dewar@adacore.com>
6970 * stringt.adb (Write_String_Table_Entry): Handle wide characters
6973 2008-04-08 Robert Dewar <dewar@adacore.com>
6975 * styleg.adb (Check_Comment): Allow special char after -- in
6976 non-end-of-line case
6978 2008-04-08 Robert Dewar <dewar@adacore.com>
6980 * stylesw.adb: Implement -gnaty + - y options
6981 (Set_GNAT_Style_Check_Options): Includ I in style check string
6983 * stylesw.ads: Add comments for new style switch options
6985 2008-04-08 Sergey Rybin <rybin@adacore.com>
6987 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6988 to the set of the GNAT components needed by ASIS.
6990 2008-04-08 Bob Duff <duff@adacore.com>
6992 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6994 2008-04-08 Tristan Gingold <gingold@adacore.com>
6996 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6997 Improve error message generation.
6999 2008-04-08 Vincent Celier <celier@adacore.com>
7001 * a-direct.adb (Start_Search): Check for Name_Error before checking for
7002 Use_Error, as specified in the RM. Check if directory is open and raise
7003 Use_Error if it is not.
7005 2008-04-08 Vincent Celier <celier@adacore.com>
7006 Robert Dewar <dewar@adacore.com>
7008 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
7009 AAMP_On_Target is set.
7011 * vms_data.ads: Add NOxxx to style check switch list
7012 Add entry COMPONENTS for -gnatVe
7013 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
7015 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
7016 Add qualifiers for gnatmetric coupling options
7017 Add note that -gnata enables all checks
7018 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
7019 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
7020 New warning flag -gnatw.e
7022 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
7023 Add entry for -gnatyN (forgotten before)
7024 Line for new warning switch -gnatw.p
7025 New warning flag -gnatw.e
7027 * gnat_ugn.texi: Add documentation fpr project file switch -aP
7028 Document -gnaty - + y
7029 Replace occurences of "package specification" with "package spec"
7030 Define preprocessing symbols in documentation of gnatprep
7031 Clarify reason for distinguishing overflow checking
7032 Add documentation for project-aware tool switches -eL and --subdirs=
7033 Complete list of configuration pragmas
7034 Specify that, even when gnatmake switch -x is used, mains on the command
7035 line need to be sources of project files.
7036 Editing of gnatcheck/gnatmetric doc.
7037 Add documentation for -gnatw.p/-gnatw.P
7038 Add missing documentation for -fno-inline-functions.
7039 Add documentation for -gnatw.e
7041 * gnat_rm.texi: Add documentation for No_Default_Initialization
7042 Replace occurences of "package specification" with "package spec"
7043 Document use of * in Warnings Off string
7044 Update documentation of alignment/component clauses.
7045 Add documentation for Invalid_Value
7046 Document new consistency rule for Optimize_Alignment
7047 Add documentation for Precondition and Postcondition pragmas
7048 Add documentation for Check and Check_Policy pragmas
7049 Document new Enum_Val attribute
7050 Remove requirement for static string in pragma Assert
7051 Add documentation on GNAT.Time_Stamp
7053 * ug_words: add entry for -gnatVe
7054 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
7055 Add entry for -gnatw.e
7057 * debug.adb: Add missing documentation for d.a flag
7058 Document new -gnatd.a switch.
7059 Add documentation for new gnatmake debug switch -df
7061 2008-04-08 Thomas Quinot <quinot@adacore.com>
7063 * gen-soccon.c: Bump year in copyright notices.
7065 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
7067 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7069 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
7072 2008-04-08 Robert Dewar <dewar@adacore.com>
7073 Bob Duff <duff@adacore.com>
7075 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
7076 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
7078 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
7080 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
7082 * g-trasym.ads: Minor comment improvements
7084 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
7086 * a-sequio.ads, a-direio.ads: improve message for tagged type
7088 * a-strunb.ads: Minor reformatting
7090 * a-tifiio.adb: Minor reformatting
7092 * atree.adb (Fix_Parents): Use clearer names for formals
7093 Cleanup and simplify code
7094 Use named notation in calls
7096 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
7099 * uintp.adb: Used named notation for some confusing calls
7101 * bindusg.adb: Minor change in one line of output
7103 * cstand.adb: Minor reformatting of src representation of Standard
7105 * a-assert.ads: Add comment.
7107 * g-decstr.adb: Fix bad indentation
7109 * expander.ads, expander.adb: Code clean up.
7111 * sem_dist.ads: Minor comment improvement
7113 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
7114 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
7116 * i-cstrin.adb: Fix casing error in formal parameter name in call
7118 2008-04-08 Ed Schonberg <schonberg@adacore.com>
7120 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
7121 mentioned in limited_with_clauses to do create semantic dependencies
7122 even though they appear in the ali file.
7124 2008-04-08 Emmanuel Briot <briot@adacore.com>
7126 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
7128 (Get_Configuration): New subprogram.
7130 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
7131 These optional parameters help preserve the casing of the project's name
7132 when pretty-printing.
7134 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
7135 Arnaud Charlet <charlet@adacore.com>
7137 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
7138 then use __gnat_set_exit_status to report the returned status code.
7140 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
7141 messages on .NET, since some constructs of the language are not
7144 * gnatlink.adb (Gnatlink): In case the command line is too long for the
7145 .NET linker, gnatlink now concatenate all .il files and pass this to
7148 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
7149 Xavier Grave <grave@ipno.in2p3.fr>
7151 * Makefile.in: Add make ifeq define for mips/mipsel support.
7152 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
7153 system-linux-mips.ads: New files.
7155 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
7157 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
7158 detect systems using GNU libc.
7164 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
7166 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
7167 constant constant for sysconf call.
7168 (bit_field): New packed boolean type used by cpu_set_t.
7169 (cpu_set_t): New type corresponding to the C type with
7170 the same name. Note that on the Ada side we use a bit
7171 field array for the affinity mask. There is not need
7172 for the C macro for setting individual bit.
7173 (pthread_setaffinity_np): New imported routine.
7174 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
7177 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
7179 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
7181 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
7183 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
7184 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
7185 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
7186 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
7187 Return by Depressed Stack Pointer.
7189 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
7191 * decl.c (is_variable_size): Do not unconditionally return false
7192 on non-strict alignment platforms.
7194 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
7196 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
7197 used to process all the variants of the specified type.
7198 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
7199 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
7200 (rest_of_type_decl_compilation): Likewise.
7201 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
7203 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
7205 * gigi.h (insert_block): Kill.
7206 * utils.c (insert_block): Kill.
7208 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
7210 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
7211 type has self-referential size, get the size from the initializing
7212 expression directly if it is also a constant whose nominal type
7213 has self-referential size.
7215 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7218 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
7221 * env.c: Always include crt_externs.h if __APPLE__ is defined.
7222 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
7224 2008-04-01 Andreas Jaeger <aj@suse.de>
7226 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
7229 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7231 * g-table.adb, g-tasloc.adb, g-traceb.ads,
7232 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
7233 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
7234 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
7235 gnatlink.adb, gnatmem.adb, gprep.adb,
7236 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
7237 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
7238 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
7239 lib-xref.ads, lib.adb, link.c, live.ads,
7240 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
7241 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
7242 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
7243 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
7244 namet.adb, namet.h, nlists.adb, nlists.ads,
7245 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
7246 osint-c.ads, osint.adb, osint.ads, output.ads,
7247 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
7248 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
7249 par-endh.adb, par-labl.adb, par-prag.adb,
7250 par-sync.adb, par-tchk.adb, par-util.adb,
7251 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
7252 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
7253 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
7254 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
7256 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
7258 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
7259 size if it has overflowed.
7261 2008-03-31 Olivier Hainque <hainque@adacore.com>
7262 Eric Botcazou <ebotcazou@adacore.com>
7264 * utils2.c (find_common_type): Document assumption on t1/t2 vs
7265 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
7267 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7269 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
7270 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
7271 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
7272 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
7273 exp_tss.ads, exp_util.adb, exp_util.ads,
7274 exp_vfpt.adb, freeze.adb, freeze.ads,
7275 frontend.adb, g-alleve.adb, g-altcon.adb,
7276 g-altive.ads, g-alveop.ads, g-alvevi.ads,
7277 g-arrspl.adb, g-busorg.ads, g-calend.adb,
7278 g-calend.ads, g-casuti.ads, g-cgideb.adb,
7279 g-comlin.adb, g-comlin.ads, g-curexc.ads,
7280 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
7281 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
7282 g-dyntab.adb, g-encstr.ads, g-excact.ads,
7283 g-except.ads, g-expect.ads, g-heasor.adb,
7284 g-hesora.adb, g-hesorg.adb, g-htable.ads,
7285 g-locfil.ads, g-md5.adb, g-md5.ads,
7286 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
7287 g-pehage.adb, g-pehage.ads, g-regexp.adb,
7288 g-regexp.ads, g-regpat.adb, g-regpat.ads,
7289 g-soccon-aix.ads, g-soccon-darwin.ads,
7290 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
7291 g-soccon-hpux.ads, g-soccon-irix.ads,
7292 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
7293 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
7294 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
7295 g-soccon-solaris.ads, g-soccon-tru64.ads,
7296 g-soccon-vms.ads, g-soccon-vxworks.ads,
7297 g-soccon.ads, g-socket.adb, g-socket.ads,
7298 g-socthi-mingw.adb, g-socthi-vms.adb,
7299 g-socthi-vxworks.adb, g-soliop-mingw.ads,
7300 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
7301 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
7304 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
7306 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
7307 if the procedure is imported.
7309 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7311 * adaint.c: Fix warnings.
7313 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7315 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
7317 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7319 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
7320 Fix problem of status check for null file
7322 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7324 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
7325 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
7326 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
7327 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
7328 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
7331 2008-03-26 Thomas Quinot <quinot@adacore.com>
7334 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
7335 Get_Socket_Option): Add support for Receive_Packet_Info.
7337 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
7338 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
7339 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
7340 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
7341 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
7342 new constants SO_REUSEPORT and IP_PKTINFO
7344 2008-03-26 Robert Dewar <dewar@adacore.com>
7346 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
7347 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
7348 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
7349 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
7350 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
7351 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
7352 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
7353 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7354 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
7355 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
7356 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
7357 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
7358 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
7359 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
7360 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
7361 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
7362 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
7363 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
7364 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
7365 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
7366 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
7367 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
7368 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
7369 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
7370 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
7371 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
7372 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
7373 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
7374 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
7375 s-tasloc.adb: Minor reformatting.
7377 Remove "used for" sections from comments.
7379 2008-03-26 Robert Dewar <dewar@adacore.com>
7381 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7382 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7383 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7384 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7385 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7386 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7387 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7388 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7389 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7390 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7391 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7392 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7393 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7394 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7395 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7396 double spaced if it fits on one line and otherwise single spaced.
7398 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7400 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
7401 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
7402 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
7403 or task info if the thread could not be created.
7405 2008-03-26 Arnaud Charlet <charlet@adacore.com>
7407 * gnatvsn.ads (Library_Version): Bump to 4.4.
7408 (Current_Year): Bump to 2008.
7410 2008-03-26 Robert Dewar <dewar@adacore.com>
7412 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
7414 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
7416 * debug.adb: Add debug flags d.r and d.v
7417 Add debug flag .T (Optimize_Alignment (Time))
7418 Add debug flag .S (Optimize_Alignment (Space))
7420 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
7421 depending on setting of relevant debug flags.
7422 Replace use of Warnings_Off by Has_Warnings_Off
7423 (Freeze_Entity): In circuit for warning on suspicious convention
7424 actuals, do not give warning if subprogram has same entity as formal
7425 type, or if subprogram does not come from source.
7426 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
7427 if Optimize_Alignment set to Space.
7429 * frontend.adb: Add call to Sem_Warn.Initialize
7430 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
7431 Reset Optimize_Alignment mode from debug switches .S and .T
7433 * layout.adb (Layout_Composite_Object): Rewritten for
7434 Optimize_Aligment pragma.
7436 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
7439 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
7441 * par-prag.adb (N_Pragma): Chars field removed, use Chars
7442 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
7443 this change. Add entry for pragma Optimize_Alignment
7445 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
7446 (Pragma_Identifier (..
7447 instead, adjustments throughout to accomodate this change.
7448 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
7449 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
7450 Add implementation of pragma Optimize_Alignment
7452 2008-03-26 Vincent Celier <celier@adacore.com>
7454 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
7455 Improve memory usage to avoid use of stack.
7457 2008-03-26 Robert Dewar <dewar@adacore.com>
7459 * a-teioed.ads: Correct value of Default_Fill
7461 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
7463 2008-03-26 Robert Dewar <dewar@adacore.com>
7465 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
7466 with Current_Output (introduce Self).
7468 2008-03-26 Robert Dewar <dewar@adacore.com>
7470 * checks.adb (Ensure_Valid): Capture valid status if possible
7473 2008-03-26 Robert Dewar <dewar@adacore.com>
7475 * stand.ads: Deal with reordering of package standard declarations
7477 * cstand.adb: Put package Standard declarations in proper order
7479 2008-03-26 Robert Dewar <dewar@adacore.com>
7481 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
7482 (Pragma_Identifier (.. instead.
7483 (OK_To_Reorder_Components): New flag
7484 (Has_Entries): Code cleanup.
7485 (Warnings_Off_Used): New flag
7486 (Warnings_Off_Used_Unmodified): New flag
7487 (Warnings_Off_Used_Unreferenced): New flag
7488 (Has_Warnings_Off): New function
7489 (Has_Unmodified): New function
7490 (Has_Unreferenced): New function
7491 (Is_Trivial_Subprogram): New flag
7492 (Is_Static_Dispatch_Table_Entity): New attribute.
7493 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
7494 (more consistent with other similar names)
7495 (Access_Subprogram_Type): New classification function
7497 2008-03-26 Robert Dewar <dewar@adacore.com>
7499 * errout.ads: Document new !! insertion sequence
7501 * errout.adb (N_Pragma): Chars field removed, use Chars
7502 (Pragma_Identifier (.. instead.
7503 Replace use of Warnings_Off by Has_Warnings_Off
7504 (Error_Msg_Internal): Don't delete warning ending in !!
7506 2008-03-26 Robert Dewar <dewar@adacore.com>
7508 * par.adb (Check_No_Right_Paren): Removed no longer used
7510 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
7511 (Pragma_Identifier (.. instead.
7513 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
7515 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
7516 par-ch4.adb: Minor improvements in error recovery and messages.
7518 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
7521 * par-ch9.adb: Minor improvements in error recovery and messages
7522 (P_Protected): Better error recovery for "protected type x;"
7524 * par-util.adb: Minor improvements in error recovery and messages
7525 (Check_No_Right_Paren): Removed no longer used
7527 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7529 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
7530 that the prefix of an attribute is the type of the aggregate being
7533 2008-03-26 Javier Miranda <miranda@adacore.com>
7534 Robert Dewar <dewar@adacore.com>
7536 * exp_attr.adb (N_Pragma): Chars field removed.
7537 (Expand_N_Attribute_Reference): If the designated type associated with
7538 attribute 'Unrestricted_Access is a subprogram entity then replace it
7539 by an E_Subprogram_Type itype.
7540 Implement attribute Old
7542 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
7544 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
7546 New_Internal_Entity by call to Create_Itype to centralize calls
7547 building itypes, ad propagate the convention of the designated
7548 subprogram. In addition, disable the machinery cleaning constant
7549 indications from all entities in current scope when 'Unrestricted_Access
7550 corresponds with a node initializing a dispatch table slot.
7551 (Analyze_Attribute): Parameterless attributes returning a string or a
7552 type will not be called with improper arguments, so we can remove junk
7553 code that was dealing with this case.
7554 Implement attribute Old
7556 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
7557 Add entry for pragma Optimize_Alignment
7558 New standard names Sync and Synchronize
7560 2008-03-26 Robert Dewar <dewar@adacore.com>
7561 Arnaud Charlet <charlet@adacore.com>
7563 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
7565 (No_Exception_Propagation_Active): New function.
7566 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
7567 Update comments, and review all uses of No_Exception_Propagation, which
7568 are now correct and in sync with what gigi expects.
7570 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
7572 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
7573 Update comments, and review all uses of No_Exception_Propagation, which
7574 are now correct and in sync with what gigi expects.
7576 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7578 * sem_ch3.adb (Access_Definition): If the access type is the return
7579 result of a protected function, create an itype reference for it
7580 because usage will be in an inner scope from the point of declaration.
7581 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
7582 OK_To_Reorder_Components.
7583 (Make_Index): If an overloaded range includes a universal integer
7584 interpretation, resolve to Standard.Integer.
7585 (Analyze_Subtype_Indication): Copy Convention to subtype
7586 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
7587 limited an synchronized progenitors in type declaration and private
7588 extension declarations.
7590 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
7591 protected subprogram body, determine proper scope from subprogram
7594 2008-03-26 Robert Dewar <dewar@adacore.com>
7596 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
7599 2008-03-26 Gary Dismukes <dismukes@adacore.com>
7601 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
7602 of a heap allocator for a limited unconstrained function return when
7603 resstriction No_Allocators is active.
7604 (Analyze_Allocator): The restriction No_Allocators is now only checked
7605 on allocators that have Comes_From_Source set, as per RM-H.4(7).
7607 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
7608 of a heap allocator for a limited unconstrained function return when
7609 resstriction No_Allocators is active.
7610 (Analyze_Allocator): The restriction No_Allocators is now only checked
7611 on allocators that have Comes_From_Source set, as per RM-H.4(7).
7612 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
7613 operands are fixed-point types, the universal_fixed predefined operation
7614 is used, regardless of whether the operand type (s) have a primitive
7615 operation of the same name.
7617 2008-03-26 Javier Miranda <miranda@adacore.com>
7619 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
7620 Is_Static_Dispatch_Table
7621 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
7622 to Exchange_Declarations to exchange the private and full-view. Bug
7623 found working in this issue.
7624 (Expand_Dispatching_Call): Propagate the convention of the subprogram
7625 to the subprogram pointer type.
7626 (Make_Secondary_DT): Replace generation of Prim'Address by
7627 Address (Prim'Unrestricted_Access)
7628 (Make_DT): Replace generation of Prim'Address by
7629 Address (Prim'Unrestricted_Access)
7630 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
7631 simple call form for single entry.
7632 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
7633 tables of predefined primitives).
7634 (Make_Secondary_DT): Add support to handle access to dispatch tables of
7635 predefined primitives.
7636 (Make_Tags): Add entities to Access_Dispatch_Table associated with
7637 access to dispatch tables containing predefined primitives.
7639 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
7640 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
7642 (Register_Predefined_DT_Entry): Updated to handle the new contents
7643 of attribute Access_Disp_Table (pointers to dispatch tables containing
7644 predefined primitives).
7646 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
7648 (Find_Interface_ADT): Updated to skip the new contents of attribute
7649 Access_Dispatch_Table (pointers to dispatch tables containing predefined
7652 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
7654 (Set_Convention): Use new function Is_Access_Subprogram_Type
7655 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
7656 Access_Dispatch_Table (pointers to dispatch tables containing predefined
7659 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
7660 expanded code avoiding calls to Build_Predef_Prims.
7661 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
7662 call to Build_Get_Predefined_Prim_Op_Address.
7664 2008-03-26 Javier Miranda <miranda@adacore.com>
7666 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
7667 subprogram Corresponding_Runtime_Package to know the runtime package
7668 that will provide support to a given protected type.
7670 * exp_ch9.adb (Add_Private_Declarations,
7671 Build_Protected_Subprogram_Call,
7672 Build_Protected_Entry, Build_Simple_Entry_Call,
7673 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
7674 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
7675 cleanup using the new centralized subprogram Corresponding_Runtime
7676 Package to know the runtime package that provides support to
7677 a given protected type.
7679 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7681 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
7682 assignment is within the initialization procedure for a packed array,
7683 and Initialize_Scalars is enabled, compile right-hand side with checks
7684 off, because the value is purposely out of range.
7686 2008-03-26 Vincent Celier <celier@adacore.com>
7688 * gnatcmd.adb: Add processing for GNAT SYNC
7690 * vms_conv.ads: (Command_Type): Add command Sync
7692 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
7694 * vms_data.ads: Add entries for -gnatw.w
7695 Add qualifier for gnatstub --header-file option
7696 Add switches for GNAT SYNC
7698 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
7699 (Add_Package_Name): New procedure
7700 (Package_Name_List): New function
7701 (Initialize): Add known package names to the list
7702 (Register_New_Package): Add the new package name to the list
7704 2008-03-26 Robert Dewar <dewar@adacore.com>
7706 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
7707 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
7708 Raise_Exception by "raise with" construct.
7710 2008-03-26 Pascal Obry <obry@adacore.com>
7712 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
7713 supported platforms.
7715 * Makefile.rtl: Add g-sercom.o.
7717 * impunit.adb: Add g-sercom.adb.
7719 * s-crtl.ads (open): New routine.
7723 * s-osinte-mingw.ads (BYTE): New type.
7725 (OVERLAPPED): Likewise.
7726 (GENERIC_READ): New constant.
7727 (GENERIC_WRITE): Likewise.
7728 (OPEN_EXISTING): Likewise.
7729 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
7731 (CreateFile): New routine.
7732 (WriteFile): Likewise.
7733 (ReadFile): Likewise.
7734 (CloseHandle): Move next to the other file oriented routines.
7736 * g-sercom.ads: New unit.
7738 * g-sercom.adb: Default implementation, calls to this unit will raise
7739 a program error exception.
7741 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
7742 GNU/Linux implementations.
7744 2008-03-26 Robert Dewar <dewar@adacore.com>
7746 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
7748 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
7749 unchecked conversion for different conventions only for subprogram
7752 2008-03-26 Vincent Celier <celier@adacore.com>
7754 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
7755 to check if the specified object file is correct.
7757 2008-03-26 Thomas Quinot <quinot@adacore.com>
7759 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
7760 Comes_From_Source to exclude primitives from being checked. We want to
7761 exclude predefined primitives only, so use the appropriate specific
7762 predicate. Also, flag a formal parameter of an anonymous
7763 access-to-subprogram type as illegal for a primitive operation of a
7764 remote access to class-wide type.
7766 2008-03-26 Vincent Celier <celier@adacore.com>
7768 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
7769 known, check if it may be a missspelling of a known package name. In
7770 not verbose, not mode, issue warnings only if the package name is a
7771 possible misspelling.
7772 In verbose mode, always issue a warning for a not known package name,
7773 plus a warning if the name is a misspelling of a known package name.
7775 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
7776 limited withs or limited withs are parse during one call.
7777 (Parse_Single_Project): Post parse context clause in two passes: non
7778 limited withs before current project and limited withs after current
7781 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
7782 project with the name With_Name, even if it is only extended indirectly.
7783 (Recursive_Process): Process projects in order: first single withs, then
7784 current project, then limited withs.
7786 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
7787 project with the name With_Name, even if it is only extended indirectly.
7789 2008-03-26 Robert Dewar <dewar@adacore.com>
7791 * scn.adb (Initialize_Scanner): Format messages belong on standard error
7793 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7795 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
7796 a generic subprogram that is imported, do not attempt to compile
7799 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
7800 imported, do not generate a raise_program_error for the non-existent
7802 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
7803 perform minimal name resolution on the generic to avoid spurious
7805 (Find_Actual_Type): the designated type of the actual in a child unit
7806 may be declared in a parent unit without being an actual.
7808 2008-03-26 Robert Dewar <dewar@adacore.com>
7810 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
7811 * sinfo.ads, sinfo.adb (From_At_End): New flag
7813 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7815 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
7816 operations that have an interface parameter.
7817 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
7818 Don't treat No_Return call as raise.
7820 * sem_disp.adb (Check_Dispatching_Operations): apply check for
7821 non-primitive interface primitives to access parameters, not to all
7822 parameters of an access type.
7824 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7826 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
7827 declarations of a parent unit are made visible when compiling a child
7828 instance, the parent is not a hidden open scope, even though it may
7829 contain other pending instance.
7831 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
7832 hidden open scope for some child instance, it does affect the
7833 visibility status of other stach entries.
7834 (Analyze_Object_Renaming): Check that a class-wide object cannot be
7835 renamed as an object of a specific type.
7837 2008-03-26 Robert Dewar <dewar@adacore.com>
7839 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
7840 recursion and raise SE directly.
7841 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
7842 set for formal type for IN mode parameter.
7844 2008-03-26 Robert Dewar <dewar@adacore.com>
7846 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
7847 (Initialize): New procedure
7848 (Output_Warnings_Off_Warnings): New procedure
7849 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
7850 (Output_Non_Modifed_In_Out_Warnings): Ditto
7851 (Warn_On_Unreferenced_Entity): Ditto
7853 2008-03-26 Vincent Celier <celier@adacore.com>
7855 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
7858 2008-03-26 Matthew Heaney <heaney@adacore.com>
7860 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
7861 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
7862 Marked with clauses as private, and controlled operations as overriding
7864 2008-03-26 Robert Dewar <dewar@adacore.com>
7866 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
7868 2008-03-26 Robert Dewar <dewar@adacore.com>
7870 * back_end.adb, back_end.ads: Minor reformatting
7872 * bindgen.adb: Minor clarification of comments
7874 * fname.ads: Minor comment fixes
7876 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
7877 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
7879 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
7880 xsnames.adb: Remove warnings off pragma no longer needed
7882 * a-catizo.ads, a-calari.ads, a-calfor.adb,
7883 a-calfor.ads: Fix header.
7885 2008-03-26 Tristan Gingold <gingold@adacore.com>
7887 * init.c: Do not adjust pc for HPARITH on alpha/vms.
7889 2008-03-26 Robert Dewar <dewar@adacore.com>
7891 * lib-xref.adb: (OK_To_Set_Reference): New function
7892 (Generate_Reference): Don't set referenced from occurrence in Warnings,
7893 Unmodified, or Unreferenced pragma
7895 2008-03-26 Robert Dewar <dewar@adacore.com>
7897 * alloc.ads: Add entries for Warnings_Off_Pragmas table
7899 2008-03-26 GNAT Script <nobody@adacore.com>
7901 * Make-lang.in: Makefile automatically updated
7903 2008-03-26 Robert Dewar <dewar@adacore.com>
7905 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
7906 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
7907 removed, use Chars (Pragma_Identifier (.. instead, adjustments
7908 throughout to accomodate this change.
7910 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
7912 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
7913 Einfo.Set_Needs_Debug_Info)
7915 2008-03-26 Robert Dewar <dewar@adacore.com>
7917 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
7918 Add description for the new gnatstub option '--header-file'
7919 clarification of -gnatwz/-gnatwZ
7920 Add a "Irix-Specific Considerations" section to document the need to
7921 set LD_LIBRARY_PATH when using the default shared runtime library.
7922 Added documentation for both gcov and gprof.
7924 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
7925 messages that are not suppressed when clients are compiled.
7926 Add documentation of s-pooglo s-pooloc
7927 Document the new GNAT.Serial_Communications API.
7928 Add documentation for 'Old attribute
7929 Add description of pragma Optimize_Alignment
7931 * ug_words: Add entries for -gnatw.w -gnatw.W
7933 * usage.adb: Add line for -gnatw.w (warn on warnings off)
7935 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
7938 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7940 * decl.c (maybe_pad_type): Avoid padding an integral type when
7941 bumping its alignment is sufficient.
7943 2008-03-25 Arnaud Charlet <charlet@adacore.com>
7945 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
7946 Fix wrong formatting (lines too long)
7948 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7950 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7951 a-calend-vms.adb, a-calend.adb, a-calend.ads,
7952 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7953 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7954 a-cohama.ads, a-comlin.ads, a-coorse.adb,
7955 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7956 a-except-2005.ads, a-except.adb, a-except.ads,
7957 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7958 a-exextr.adb, a-filico.ads, a-finali.ads,
7959 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7960 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7961 a-sequio.ads, a-strbou.ads, a-strfix.adb,
7962 checks.adb, exp_ch3.adb, exp_ch4.adb,
7963 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7964 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7965 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7966 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7967 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7969 2008-03-24 Robert Dewar <dewar@adacore.com>
7971 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7972 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7973 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7974 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7975 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7976 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7977 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7978 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7979 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7980 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7981 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7982 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7983 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7984 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7985 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7986 double spaced if it fits on one line and otherwise single spaced.
7988 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7990 PR documentation/15479
7991 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7992 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7993 (doc/gnat_ugn.info): Renamed from ...
7994 (doc/gnat_ugn_unw.info): ... this.
7995 (doc/gnat_ugn.dvi): Renamed from ...
7996 (doc/gnat_ugn_unw.dvi): ... this.
7997 (doc/gnat_ugn.pdf): Renamed from ...
7998 (doc/gnat_ugn_unw.pdf): ... this.
7999 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
8001 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
8002 unconditionally to gnat_ugn.info. Fix cross references to the
8003 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
8004 and GNU make manuals to be proper texinfo links.
8005 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
8007 2008-03-21 Olivier Hainque <hainque@adacore.com>
8009 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
8010 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
8012 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
8014 * trans.c (addressable_p): Add notes on addressability issues.
8016 2008-03-21 Olivier Hainque <hainque@adacore.com>
8017 Ed Schonberg <schonberg@adacore.com>
8019 * trans.c (addressable_p): Accept COND_EXPR when both arms
8021 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
8022 (call_to_gnu): Do not use name reference in the error message
8023 for a misaligned by_reference_parameter. The actual may be a
8026 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
8028 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
8030 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8032 * gnat_rm.texi (Implementation Defined Characteristics)
8033 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
8035 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
8036 (Switches for gnatchop, Installing a library): Likewise.
8038 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
8040 * trans.c (emit_range_check): Do not emit the check if the base type
8041 of the expression is the type against which its range must be checked.
8043 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8045 * decl.c (maybe_pad_type): Use value_factor_p.
8047 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8049 * lang.opt (nostdlib): Move around.
8050 * misc.c (gnat_handle_option): Fix formatting.
8051 (gnat_dwarf_name): Move around.
8052 * trans.c (Case_Statement_to_gnu): Fix formatting.
8053 (gnat_to_gnu): Likewise.
8054 * utils.c (aggregate_type_contains_array_p): Likewise.
8055 (create_subprog_decl): Likewise.
8057 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8059 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
8060 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
8062 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8064 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
8065 BIGGEST_ALIGNMENT when capping the alignment of records with
8066 strict alignment and size clause.
8068 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8070 * lang-specs.h: Pass -gnatwa if -Wall is passed.
8071 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
8072 and -Wuninitialized.
8073 (gnat_post_options): Clear warn_unused_parameter.
8075 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8077 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
8078 aligned bit-fields, bumping the alignment of the record type if deemed
8080 (value_factor_p): Return false instead of 0.
8082 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8084 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
8085 for scalar types with small alignment.
8087 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8089 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
8090 from that of the front-end's end label.
8091 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
8092 from that of the loop label.
8094 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
8096 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
8097 comment for the packed array type case.
8098 * utils.c (build_template): Use a loop to strip padding or
8099 containing records for justified modular types.
8101 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
8103 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
8104 large alignments specified for types.
8105 (validate_alignment): Minor cleanup.
8107 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
8109 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
8110 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
8111 the component for packing, if possible, as well as if a component
8112 size clause is specified.
8113 <E_Record_Subtype>: For an array type used to implement a packed
8114 array, get the component type from the original array type.
8115 Try to get a smaller form of the component for packing, if possible,
8116 as well as if a component size clause is specified.
8117 (round_up_to_align): New function.
8118 (make_packable_type): Add in_record parameter.
8119 For a padding record, preserve the size. If not in_record and the
8120 size is too large for an integral mode, attempt to shrink the size
8121 by lowering the alignment.
8122 Ditch the padding bits of the last component.
8123 Compute sizes and mode manually, and propagate the RM size.
8124 Return a BLKmode record type if its size has shrunk.
8125 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
8126 Use Original_Array_Type to retrieve the type in case of an error.
8127 Adjust call to make_packable_type.
8128 (gnat_to_gnu_field): Likewise.
8129 (concat_id_with_name): Minor tweak.
8130 * trans.c (larger_record_type_p): New predicate.
8131 (call_to_gnu): Compute the nominal type of the object only if the
8132 parameter is by-reference. Do the conversion actual type -> nominal
8133 type if the nominal type is a larger record.
8134 (gnat_to_gnu): Do not require integral modes on the source type to
8135 avoid the conversion for types with identical names.
8136 (addressable_p): Add gnu_type parameter. If it is specified, do not
8137 return true if the expression is not addressable in gnu_type.
8138 Adjust recursive calls.
8139 * utils.c (finish_record_type): Remove dead code.
8141 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
8144 * decl.c (maybe_pad_type): Avoid padding an integral type when
8145 bumping its alignment is sufficient.
8147 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8149 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
8150 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
8152 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
8153 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
8154 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
8155 code output strings.
8156 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
8157 system-vms_64.ads: Fix typos in ada source code comments.
8158 * sinfo-cn.adb: Remove incomplete sentence.
8160 PR documentation/15479
8161 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
8163 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
8166 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
8168 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
8171 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
8172 that underlying type is present.
8174 2008-02-26 Tom Tromey <tromey@redhat.com>
8176 * misc.c (internal_error_function): Remove test of
8177 USE_MAPPED_LOCATION.
8178 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
8179 (Sloc_to_locus): Remove old location code.
8181 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8183 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
8184 `i.e.' by adding comma or `@:' as appropriate.
8185 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
8186 plain characters `C', use `@samp{C}'.
8187 * gnat_ugn.texi (File Naming Rules, About gnatkr)
8188 (Krunching Method): Likewise.
8190 * gnat_ugn.texi (Conventions): List environment variables and
8191 metasyntactic variables.
8192 (Compiling Programs): Fix notation of metasyntactic variables.
8193 Add @file where appropriate. Use @file for file extensions,
8195 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
8196 instead of @file, @env instead of @code.
8198 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8200 PR documentation/15479
8201 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
8202 and `...' with `@dots{}' or `@enddots{}'.
8204 PR documentation/15479
8205 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
8206 use @command instead of @code, @option instead of @samp or @code,
8207 @code instead of @var, @samp instead of @file.
8209 PR documentation/15479
8210 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
8211 in Makefile rules, by using `&&' rather than `;'.
8213 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8215 PR documentation/15479
8216 * gnat_ugn.texi: In non-code, avoid space before colon.
8217 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
8218 (Examples of gnatxref Usage): Use @command{vi} instead of
8220 (Character Set Control): Do not use @code for UTF-8.
8221 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
8223 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
8225 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
8227 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
8230 * env.c: Add __rtems__ to if defined.
8231 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
8232 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
8233 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
8234 pragma Convention as required.
8235 * gsocket.h: Make compile in and out of RTS.
8236 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
8237 Use g-soccon-rtems.ads.
8238 * g-soccon-rtems.ads, system-rtems.ads: New files.
8240 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8243 * Make-lang.in (gnat1): Add $(GMPLIBS).
8245 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
8247 * decl.c (components_to_record): Improve comment.
8249 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
8251 * decl.c (components_to_record): Do not reuse the empty union type
8252 if there is a representation clause on the record.
8253 * trans.c (addressable_p): Return true for INTEGER_CST.
8255 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
8257 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
8258 in pointer arithmetics.
8259 * utils2.c (build_allocator): Likewise.
8261 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
8263 * utils.c (build_function_stub): Properly build the call expression.
8265 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
8267 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
8268 before converting the expression to the type of the object.
8269 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
8270 Stabilize constructors for special wrapping types.
8272 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
8274 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
8275 when necessary. Merge some conditional statements. Update comments.
8276 Rename unchecked_convert_p local variable to suppress_type_conversion.
8277 Do not suppress conversions in the In case.
8278 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
8279 into account on non strict-alignment platforms.
8281 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
8283 * utils.c (aggregate_type_contains_array_p): New predicate.
8284 (create_field_decl): In a packed record, force byte alignment
8285 for fields without specified position that contain an array.
8287 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
8289 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
8291 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
8294 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
8296 (bit_field): New packed boolean type used by cpu_set_t.
8297 (cpu_set_t): New type corresponding to the C type with
8298 the same name. Note that on the Ada side we use a bit
8299 field array for the affinity mask. There is not need
8300 for the C macro for setting individual bit.
8301 (pthread_setaffinity_np): New imported routine.
8303 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
8306 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
8307 on OpenBSD as is done on other BSD systems.
8310 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
8311 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
8315 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
8319 * init.c (__gnat_error_handler, __gnat_install_handler,
8320 __gnat_init_float): Define for OpenBSD.
8322 * initialize.c (__gnat_initialize): Define for OpenBSD.
8324 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
8327 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
8328 instead of mktemp() or tmpnam() on NetBSD.
8330 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
8332 * trans.c (call_to_gnu): Make the temporary for non-addressable
8333 In parameters passed by reference.
8334 (addressable_p): Return true for STRING_CST and CALL_EXPR.
8336 2007-12-19 Robert Dewar <dewar@adacore.com>
8338 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
8339 Add pragma Warnings (Off) for unassigned IN OUT arguments
8341 * sem_warn.adb (Output_Reference): Suppress messages for internal names
8342 (Check_References): Extensive changes to tune up warnings
8343 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
8344 (Has_Pragma_Unmodifed_Check_Spec): New function
8345 (Check_References): Implement pragma Unmodified
8346 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
8348 * par-prag.adb: Dummy entry for pragma Unmodified
8350 * sem_prag.adb: Implement pragma Unmodified
8352 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
8353 (Proc_Next_Component_Or_Discriminant): Fix typo.
8356 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
8358 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
8359 because the former already takes care of discarding the result.
8360 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
8363 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
8365 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
8367 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
8368 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
8369 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
8370 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
8371 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
8372 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
8373 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
8374 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
8375 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8376 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
8377 (Dynamic_Trampolines_Used): Delete.
8379 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
8380 Turn on stack probing mechanism on LynxOS.
8382 2007-12-19 Bob Duff <duff@adacore.com>
8384 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
8385 the resulting tail recursion by hand. This prevents running out of
8386 memory on deeply nested concatenations, since Field2 is where the left
8387 operand of concatenations is stored.
8388 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
8389 clarify that it can only return OK or Abandon.
8391 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
8392 operand by iteration, in order to avoid running out of memory on
8393 deeply-nested concatenations. Use the Parent pointer to get back up the
8395 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
8396 Resolve_Op_Concat_Rest): New procedures split out of
8397 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
8400 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
8401 Traverse_Func, because the former already takes care of discarding the
8404 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
8405 because the former already takes care of discarding the result.
8406 (Remove_Warning_Messages): Use appropriate subtype for Status and
8409 2007-12-19 Ed Schonberg <schonberg@adacore.com>
8411 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
8412 discriminants forces expansion of the aggregate into assignments.
8413 (Init_Record_Controller): If the type of the aggregate is untagged and
8414 is not inherently limited, the record controller is not limited either.
8416 2007-12-19 Robert Dewar <dewar@adacore.com>
8418 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
8419 handling compile time known size of record or array (case of front end
8420 layout active, e.g. in GNAAMP).
8422 2007-12-19 Javier Miranda <miranda@adacore.com>
8424 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
8425 that forces the construction of static dispatch tables in case of
8428 2007-12-19 Robert Dewar <dewar@adacore.com>
8430 * exp_ch9.adb (Null_Statements): Moved to library level
8431 (Trivial_Accept_OK): New function
8432 (Expand_Accept_Declaration): Use Trivial_Accept_OK
8433 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
8435 2007-12-19 Robert Dewar <dewar@adacore.com>
8437 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
8438 in complex case where array is Volatile.
8440 2007-12-19 Ed Schonberg <schonberg@adacore.com>
8442 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
8443 properly the Ada2005 rules concerning when the current instance of a
8444 record type is aliased.
8446 2007-12-19 Ed Schonberg <schonberg@adacore.com>
8448 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
8450 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
8452 (P_Variant_Part): Cleaner patch for parenthesized discriminant
8454 2007-12-19 Vincent Celier <celier@adacore.com>
8456 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
8457 package is not known
8459 * prj-attr.ads (Unknown_Package): New constant
8460 Do not crash when an unknown package is in several projects
8462 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
8465 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
8466 existing package Language_Processing.
8468 2007-12-19 Ed Schonberg <schonberg@adacore.com>
8469 Gary Dismukes <dismukes@adacore.com>
8470 Samuel Tardieu <sam@rfc1149.net>
8472 PR ada/15803, ada/15805
8473 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
8474 illegal access subtypes when there is a constrained partial view.
8475 (Check_For_Premature_Usage): New procedure inside
8476 Access_Subprogram_Declaration for checking that an access-to-subprogram
8477 type doesn't reference its own name within any formal parameters or
8478 result type (including within nested anonymous access types).
8479 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
8480 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
8481 context is an access_to_variable, the expression cannot be an
8484 2007-12-19 Bob Duff <duff@adacore.com>
8486 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
8487 (Analyze_Concatenation): Use iteration instead of recursion in order
8488 to avoid running out of stack space for deeply nested concatenations.
8490 2007-12-19 Ed Schonberg <schonberg@adacore.com>
8491 Gary Dismukes <dismukes@adacore.com>
8493 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
8494 whose renamed entity is a subprogram that requires overriding.
8495 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
8496 issuing an error for premature usage and issue a message that says
8497 'type' rather than 'object'.
8499 2007-12-19 Gary Dismukes <dismukes@adacore.com>
8502 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
8503 presence of a statically tagged operand (Present (Static_Tag)) with
8504 test for Indeterm_Ancestor_Call when determining whether to propagate
8505 the static tag to tag-indeterminate operands (which forces dispatching
8507 (Check_Controlling_Formals): Ada2005, access parameters can have
8509 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
8510 not insert subprogram in list of primitive operations if already there.
8512 2007-12-19 Tristan Gingold <gingold@adacore.com>
8514 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
8517 2007-12-19 Thomas Quinot <quinot@adacore.com>
8519 Part of PR ada/33688
8520 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
8521 datagram info on Linux.
8523 2007-12-19 Vincent Celier <celier@adacore.com>
8525 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
8526 that the source path name is always found in the dependencies.
8528 2007-12-19 Robert Dewar <dewar@adacore.com>
8530 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
8531 Fix name of Wide_Wide_Latin_1/9 file names
8532 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
8533 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
8534 Add missing documentation for Ada.Command_Line.Response_File
8535 Update list of warning letters for Warnings pragma
8536 Add documentation for pragma Unmodified
8538 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
8540 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
8542 2007-12-17 Arnaud Charlet <charlet@adacore.com>
8544 * s-vxwork-alpha.ads: Removed, no longer used.
8546 2007-12-15 Jakub Jelinek <jakub@redhat.com>
8548 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
8550 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
8553 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
8554 mlib-tgt-specific.adb.
8556 2007-12-13 Bob Duff <duff@adacore.com>
8558 * trans.c (Attribute_to_gnu): Check for violations of the
8559 No_Implicit_Dynamic_Code restriction. This checking used to be done in
8560 the front end, but is moved here so we can make it more accurate.
8562 2007-12-13 Pascal Obry <obry@adacore.com>
8564 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
8565 version is provided for older GNU/Linux distribution not
8566 supporting thread affinity sets.
8568 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
8570 (bit_field): New packed boolean type used by cpu_set_t.
8571 (cpu_set_t): New type corresponding to the C type with
8572 the same name. Note that on the Ada side we use a bit
8573 field array for the affinity mask. There is not need
8574 for the C macro for setting individual bit.
8575 (pthread_setaffinity_np): New imported routine.
8577 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
8579 (Create_Task): Set the processor affinity mask if information
8582 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
8584 2007-12-13 Robert Dewar <dewar@adacore.com>
8586 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
8587 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
8588 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
8589 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
8590 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
8591 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
8592 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
8593 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
8594 for subprogram pointers.
8596 * g-ctrl_c.adb: New file.
8598 * g-ctrl_c.ads (Install_Handler): New body.
8600 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
8601 instead of obsolete function Is_Always_Inlined.
8602 (Freeze_Entity): check for tagged type in imported C subprogram
8603 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
8604 (Freeze_Entity): check for convention Ada subprogram pointer in
8605 imported C subprogram.
8606 (Freeze_Fixed_Point_Type): In the case of a base type where the low
8607 bound would be chopped off and go from negative to zero, force
8608 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
8609 bound) so that the size computation for the base type will take
8610 negative values into account.
8612 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
8613 Bob Duff <duff@adacore.com>
8614 Tristan Gingold <gingold@adacore.com>
8616 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
8617 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
8618 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
8619 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
8620 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
8621 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8622 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
8623 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
8624 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
8625 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
8626 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
8627 (Always_Compatible_Rep): New flag to control trampolines globally.
8628 (Dynamic_Trampolines_Used): New flag for implementing the
8629 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
8630 and not yet set correctly for some targets).
8632 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
8633 Simply indirectly call s-stchop when a task is created.
8636 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
8637 appears as an argument (entries A) in an ALI file.
8639 * fe.h (Stack_Check_Limits): Declare new target parameter.
8640 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
8642 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
8643 This variable is declared in C to be sure not subject to elaboration
8645 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
8648 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
8649 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
8651 * s-stchop.ads: Add comments.
8653 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
8654 limit method of stack checking.
8656 * s-stchop-limit.ads: New file.
8658 2007-12-13 Robert Dewar <dewar@adacore.com>
8660 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
8661 a-cihama.adb, g-awk.adb,
8662 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
8665 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
8667 * sem.adb: Update handling of assigned value/unreferenced warnings
8669 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
8671 * lib-xref.ads: Improve documentation for k xref type
8674 Update handling of assigned value/unreferenced warnings
8675 (Generate_Reference): Warning for reference to entity for which a
8676 pragma Unreferenced has been given should be unconditional.
8677 If the entity is a discriminal, mark the original
8678 discriminant as referenced.
8680 * sem_warn.ads, sem_warn.adb
8681 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
8682 no entities referenced in package
8683 (Check_One_Unit): Don't give message about no entities referenced in
8684 a package if a pragma Unreferenced has appeared.
8685 Handle new warning flag -gnatw.a/-gnatw.A
8686 Update handling of assigned value/unreferenced warnings
8688 * atree.h: Add flags up to Flag247
8689 (Flag231): New macro.
8691 2007-12-13 Jose Ruiz <ruiz@adacore.com>
8693 * adaint.h: (__gnat_plist_init): Not defined for RTX.
8695 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
8698 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
8699 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
8700 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
8701 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
8704 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
8706 * sysdep.c (winflush_function for RTX): Procedure that does nothing
8707 since we only have problems with Windows 95/98, which are not
8709 (__gnat_ttyname): Return the empty string on Nucleus, just as
8712 2007-12-13 Robert Dewar <dewar@adacore.com>
8714 * a-textio.adb, a-textio.ads:
8715 Extensive changes to private part for wide character encoding
8717 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
8718 (Look_Ahead): Fix mishandling of encoded sequences
8719 Move declaration of Wch_Con to private part (should not be visible)
8721 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
8722 UTF-8. Probably this is never used, but if it is, brackets is
8725 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
8726 setting wide character encoding for no main program case and when
8727 encoding is specified using -W?
8728 Initialize stack limit of environment task if stack limit method of
8729 stack checking is enabled.
8730 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
8731 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
8732 (Get_Main_Unit_Name): New function.
8733 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
8734 (Gen_Output_File): Set Bind_Main_Program to True for .NET
8736 * bindusg.adb: Add line for -Wx switch
8738 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
8740 Add new useful constant WC_Longest_Sequences
8742 * switch-b.adb: Clean up handling of -Wx switch
8743 For -gnatWx, set Wide_Character_Encoding_Method_Specified
8745 * switch-c.adb: -gnatg activates warning on assertion errors
8746 For -gnatWx, set Wide_Character_Encoding_Method_Specified
8748 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
8750 2007-12-13 Robert Dewar <dewar@adacore.com>
8751 Ed Schonberg <schonberg@adacore.com>
8753 * a-ngcoty.adb: New pragma Fast_Math
8755 * opt.adb: New pragma Fast_Math
8758 Add Implemented_By_Entry to the list of pragmas which do not require any
8760 (Favor_Top_Level): New pragma.
8761 New pragma Fast_Math
8763 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
8764 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8765 Expand_Allocator_Expression): Take into account VM_Target
8766 (Expand_Attribute, case 'Identity): Handle properly the case where
8767 the prefix is a task interface.
8768 New pragma Fast_Math
8770 * par.adb (Next_Token_Is): New function
8771 (P_Pragma): Add Skipping parameter
8772 (U_Left_Paren): New procedure
8773 (U_Right_Paren): New procedure
8774 New pragma Fast_Math
8776 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
8778 New pragma Fast_Math
8780 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
8781 Implemented_By_Entry.
8782 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
8783 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
8784 items, since it can apply to more than one overloadable entity. Set
8785 new flag Has_Pragma_Inline_Always for Inline_Always case.
8786 (Analyze_Pragma, case Complex_Representation): Improve error message.
8787 (Analyze_Pragma, case Assert): When assertions are disabled build the
8788 rewritten code with Sloc of expression rather than pragma, so new
8789 warning about failing is not deleted.
8790 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
8791 protected types and update error message to reflect that. Test whether
8792 the protected type is allowed for the pragma (an error is issued if the
8793 type has any entries, or components that do not have preelaborable
8795 New pragma Fast_Math
8796 (Analyze_Pragma, case No_Return): Handle generic instance
8798 * snames.h, snames.ads, snames.adb:
8799 Add new predefined name for interface primitive _Disp_Requeue.
8800 New pragma Fast_Math
8802 * a-tags.ads, a-tags.adb: New calling sequence for
8803 String_To_Wide_[Wide_]String
8804 (Secondary_Tag): New subprogram.
8806 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
8808 New calling sequence for String_To_Wide_[Wide_]String
8809 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
8810 the use of the secondary stack for image routines.
8812 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
8813 calling sequence for String_To_Wide_[Wide_]String
8815 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
8817 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
8818 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8820 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
8821 (P_Formal_Part): Use Skipping parameter in P_Pragma call
8822 to improve error recovery
8824 * par-util.adb (Next_Token_Is): New function
8825 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
8827 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
8828 semicolon if missing
8829 (P_Pragma): Implement new Skipping parameter
8830 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8831 Fix location of flag for unrecognized pragma message
8833 * par-tchk.adb (U_Left_Paren): New procedure
8834 (U_Right_Paren): New procedure
8836 2007-12-13 Geert Bosch <bosch@adacore.com>
8839 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
8840 the second or later Scaled_Divide would omit leading zeroes,
8841 resulting in too few digits produced and a Layout_Error as result.
8842 (Put): Initialize Pos.
8844 2007-12-13 Robert Dewar <dewar@adacore.com>
8846 atree.ads, atree.adb (Flag231..Flag247): New functions
8847 (Set_Flag231..Set_Flag247): New procedures
8848 (Basic_Set_Convention): Rename Set_Convention to be
8849 Basic_Set_Convention
8850 (Nkind_In): New functions
8851 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8853 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
8855 of obsolete function Is_Always_Inlined
8856 (Register_Predefined_DT_Entry): Initialize slots of the second
8857 secondary dispatch table.
8858 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8859 (Expand_N_Function_Call): Remove special provision for stack checking.
8861 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
8862 Include _Disp_Requeue in the list of predefined operations.
8863 (Find_Interface_ADT): Modified to fulfill the new specification.
8864 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8866 * par-ch4.adb, nlists.ads, nlists.adb:
8867 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8869 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
8870 Fix location of flag for unrecognized pragma message
8872 * sem_ch7.adb: Use Nkind_In
8874 2007-12-13 Vincent Celier <celier@adacore.com>
8877 Indicate what flags are used by the Project Manager, gprbuild and
8879 (Opt.Follow_Links_For_Dirs): New flag
8880 (Warn_On_Assertion_Failure): New flag
8881 (Wide_Character_Encoding_Method_Specified): New flag
8882 (Suppress_All_Inlining): New switch set by -fno-inline
8883 (Real_VMS_Target): New flag
8884 New pragma Fast_Math
8886 2007-12-13 Robert Dewar <dewar@adacore.com>
8888 * back_end.adb: Recognize -fno-inline
8890 2007-12-13 Robert Dewar <dewar@adacore.com>
8892 * checks.adb: Fix optimization problem with short-circuited form
8894 2007-12-13 Bob Duff <duff@adacore.com>
8896 * clean.adb (Usage): Add line for -aP
8897 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
8898 with a parameter "procedure Usage", instead of passing a pointer to a
8899 procedure. This is to eliminate trampolines (since the Usage procedure
8900 is often nested in a main procedure, and it would be inconvenient to
8903 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
8904 to be generic, with a parameter "procedure Callback (...)", instead of
8905 passing a pointer to a procedure. This is to eliminate trampolines
8906 (since the Callback procedure is usually nested).
8908 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
8909 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
8910 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
8912 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
8913 Use the generic Heap_Sort_G instead of Heap_Sort_A.
8915 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8917 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
8918 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
8919 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
8920 (Renamed_In_Spec): New flag
8921 (Has_Pragma_Inline_Always): New flag
8922 Add missing doc for pragma Obsolescent_Warning
8923 Add missing doc for 17 additional unused flags (230-247)
8924 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
8925 Alphabetize with clauses.
8926 Separate Is_Thunk and Has_Thunks flags
8927 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
8928 (Related_Interface): Renamed to Related_Type.
8929 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
8930 (Set_Is_Flag): Restrict the assertion.
8932 2007-12-13 Vincent Celier <celier@adacore.com>
8934 * errout.adb (Output_Source_Line): Do not keep a trailing space after
8935 the source line number if the source line is empty.
8937 2007-12-13 Geert Bosch <bosch@adacore.com>
8939 * eval_fat.adb (Decompose_Int): Handle argument of zero.
8940 (Compose): Remove special casing of zero.
8941 (Exponent): Likewise.
8942 (Fraction): Likewise.
8943 (Machine): Likewise.
8944 (Decompose): Update comment.
8946 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8948 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
8949 limited ancestor part, initialize controllers of enclosing record
8950 before expanding ancestor aggregate.
8951 (Gen_Assign): If a component of the aggregate is box-initialized, add
8952 code to call Initialize if the component is controlled, and explicit
8953 assignment of null if the component is an access type.
8955 Handle properly aggregates for limited types that appear in object
8956 declarations when the aggregate contains controlled values such as
8958 When expanding limited aggregates into individual components, do not
8959 call Adjust on controlled components that are limited.
8961 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8963 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8965 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8967 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8968 predefined primitive _Disp_Requeue.
8969 (Make_Predefined_Primitive_Specs): Create the spec for predefined
8970 primitive _Disp_Requeue.
8971 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8972 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8973 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8974 an interface type. In case of limited interfaces we now declare all the
8975 predefined primitives associated with synchronized interfaces as
8977 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8979 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8980 tagged type is an interface type and there is no user-defined equality
8982 Add also bodies of predefined primitives associated with synchronized
8984 (Freeze_Record_Type): Do not build bodies of predefined primitives of
8985 interface types because they are now defined abstract.
8986 Add missing documentation.
8987 (Expand_Record_Controller): Update occurrence of Related_Interface
8989 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8990 (Expand_N_Object_Declaration): Take into account VM_Target when handling
8991 class wide interface object declaration.
8992 (Expand_Previous_Access_Type): Do not create a duplicate master entity
8993 if the access type already has one.
8994 (Expand_N_Object_Declaration): Defend against attempt to validity check
8995 generic types. Noticed for -gnatVcf specified with previous errors.
8997 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8999 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
9000 Expand_Allocator_Expression): Take into account VM_Target
9002 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
9003 secondary stack when VM_Target /= No_VM
9005 2007-12-13 Javier Miranda <miranda@adacore.com>
9006 Ed Schonberg <schonberg@adacore.com>
9008 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
9009 Is_Complation_Unit by Is_Library_Level_Entity in the code
9010 that decides if the static dispatch tables need to be built.
9011 (Wrap_Transient_Declaration): Do not generate a finalization call if
9012 this is a renaming declaration and the renamed object is a component
9013 of a controlled type.
9015 2007-12-13 Gary Dismukes <dismukes@adacore.com>
9017 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
9018 In the case where the renamed subprogram is a dereference, call
9019 Force_Evaluation on the prefix.
9021 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9022 Ed Schonberg <schonberg@adacore.com>
9024 * exp_ch9.adb (Expand_N_Asynchronous_Select,
9025 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
9026 comment reformatting.
9027 (Set_Privals): Inherit aliased flag from formal. From code reading.
9028 (Build_Simple_Entry_Call): Out parameters of an access type are passed
9029 by copy and initialized from the actual. This includes entry parameters.
9030 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
9031 and Ada 2005 models of requeue.
9032 (Null_Statements): Still connsider do-end block null if it contains
9033 Unreferenced and Warnings pragmas.
9034 (Expand_N_Accept_Statement): Do not optimize away null do end if
9035 dispatching policy is other than defaulted.
9036 (Expand_N_Timed_Entry_Call): When the triggering statement is a
9037 dispatching call, manually analyze the delay statement.
9038 (Find_Parameter_Type): Move subprogram to Sem_Util.
9040 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9041 Javier Miranda <miranda@adacore.com>
9043 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
9044 _Disp_Requeue occupies dispatch table slot number 15. Move
9045 _Disp_Timed_Select to slot 16.
9046 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
9047 generate the spec and body of _Disp_Reqeueue.
9048 (Make_DT): Build and initialize the second dispatch table.
9049 Handle initialization of RC_Offset when the parent
9050 is a private type with variable size components.
9051 (Make_Secondary_DT): Complete documentation. Add support to
9052 initialize the second dispatch table.
9053 (Make_Tags): Generate the tag of the second dispatch table.
9054 (Register_Primitive): Add support to register primitives in the
9055 second dispatch table.
9057 2007-12-13 Pascal Obry <obry@adacore.com>
9059 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
9060 Windows. This signal is used by gnatmake to kill child processes for
9063 2007-12-13 Javier Miranda <miranda@adacore.com>
9065 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
9066 support for generic dispatching constructor calls in which we need to
9067 locate the tag of a secondary dispatch table associated with an
9068 interface type to properly dispatch the call.
9069 (Expand_N_Attribute_Reference [case Address],
9070 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
9071 handling of VM targets.
9073 2007-12-13 Robert Dewar <dewar@adacore.com>
9074 Ed Schonberg <schonberg@adacore.com>
9076 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
9079 * ug_words: Add entries for -gnatw.a -gnatw.A
9081 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
9082 literal is a subtype with non-static constraints, use the base type of
9083 the context as the base of the string subtype, to prevent type
9085 (Resolve_Actuals): If the actual is an entity name, generate a
9086 reference before the actual is resolved and expanded, to prevent
9087 spurious warnings on formals of enclosing protected operations.
9088 (Analyze_Overloaded_Selected_Component): If type of prefix if
9089 class-wide, use visible components of base type.
9090 (Resolve_Selected_Component): Ditto.
9091 (Resolve_Short_Circuit): Detect case of pragma Assert argument
9092 evaluating to False, and issue warning message.
9094 * usage.adb: Add lines for -gnatw.a and -gnatw.A
9096 2007-12-13 Emmanuel Briot <briot@adacore.com>
9098 * g-calend.ads (No_Time): New constant, to represent an uninitialized
9101 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
9103 (Month_Name_To_Number): New subprogram
9105 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
9106 letter to upper-case.
9108 2007-12-13 Robert Dewar <dewar@adacore.com>
9109 Ed Schonberg <schonberg@adacore.com>
9111 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
9113 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
9114 context is a limited view, use non-limited view when available. If the
9115 non-limited view is an unconstrained array, this enforces consistency
9116 requirements in 3.10.2 (27).
9117 (Layout_Type): For an access type whose designated type is a limited
9118 view, examine its declaration to determine if it is an unconstrained
9119 array, and size the access type accordingly.
9120 (Layout_Type): Do not force 32-bits for convention c subprogram
9121 pointers in -gnatdm mode, only if real vms target.
9123 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
9124 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
9125 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
9126 violations of the No_Implicit_Dynamic_Code restriction.
9127 (Resolve_Attribute, case 'Access): If designated type of context is a
9128 limited view, use non-limited view when available. If the non-limited
9129 view is an unconstrained array, this enforces consistency requirements
9131 (Layout_Type): For an access type whose designated type is a limited
9132 view, examine its declaration to determine if it is an unconstrained
9133 array, and size the access type accordingly.
9135 2007-12-13 Vincent Celier <celier@adacore.com>
9137 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
9138 object directory of main project does not exist.
9139 On VMS, correctly set then environment variable for the source
9142 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
9144 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
9145 set to True this procedure will create the value of type REG_EXPAND_SZ.
9146 It was only possible to create REG_SZ values before.
9148 2007-12-13 Robert Dewar <dewar@adacore.com>
9150 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
9151 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
9152 namet-sp.adb, namet-sp.ads: New files.
9154 * g-speche.adb: Use generic routine in g-spchge
9156 * s-wchcnv.ads, s-wchcnv.adb:
9157 Minor code cleanup (make formal type consistent with spec)
9159 * namet.adb: Update comments.
9161 * par-endh.adb (Evaluate_End_Entry): Use new
9162 Namet.Sp.Is_Bad_Spelling_Of function
9164 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
9166 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
9167 ancestor is an access type initialized with a box, set its type
9168 explicitly, for use in subsequent expansion.
9169 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
9172 2007-12-13 Robert Dewar <dewar@adacore.com>
9174 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
9177 2007-12-13 Robert Dewar <dewar@adacore.com>
9179 * inline.adb (Back_End_Cannot_Inline): Use new flag
9180 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
9182 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
9183 Has_Pragma_Inline_Always instead.
9184 of obsolete function Is_Always_Inlined
9185 (Build_Body_To_Inline): Same change
9186 (Cannot_Inline): Same change
9187 Do not give warning on exception raise in No_Return function
9189 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
9190 component has two inconsistent component clauses in the same record
9191 representation clause, favor the message that complains about
9192 duplication rather than inconsistency.
9194 (Record_Representation_Clause): Do not warn on missing component
9195 clauses for inherited components of a type extension.
9196 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
9197 an overloadable item if it is a pragma that can apply to multiple
9198 overloadable entities (e.g. Inline) because a pragma cannot be on
9199 more than one chain at a time.
9200 (Validate_Unchecked_Conversion): Add code to warn on unchecked
9201 conversion where one of the operands is Ada.Calendar.Time.
9202 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
9203 For now, ignore Component_Size clause on VM targets, as done for
9206 2007-12-13 Emmanuel Briot <briot@adacore.com>
9207 Vincent Celier <celier@adacore.com>
9209 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
9211 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
9213 (Hash): Move instantiation of System.HTable.Hash from spec to body
9214 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
9215 systems, since we do not need to recompute the Name_Id for the canonical
9217 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
9218 as a parameter. This parameter is in fact always "ada" in all calls, and
9219 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
9220 while loading a project with 40000 files
9222 * prj-attr.adb: Fix name of attribute Dependency_Driver
9223 Change the kind of indexing for attribute Root
9225 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
9226 variables already declared, in case constructions.
9228 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
9229 Current_Object_Path_File to No_Path.
9231 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
9232 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
9234 * prj-makr.adb: new parameter Current_Dir
9236 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
9237 Ada sources when language is not Ada.
9238 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
9239 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
9240 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
9241 (Locate_Directory): Always resolve links when computing Canonical_Path
9242 (Look_For_Sources): Make sure that Name_Buffer contains the file name
9243 in Source_Files before checking for the presence of a directory
9245 Optimize calls to Name_Find when on case sensitive systems.
9246 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
9248 (Prj.Nmsc.Check): new parameter Current_Dir
9249 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
9250 cannot be empty and the spec suffix cannot be the same as the body or
9252 (Get_Unit): When a file name can be of several unit kinds (spec, body or
9253 subunit), always consider the longest suffix.
9254 (Check_Configuration): Do not issue an error if there is no compiler
9255 for a language. Just issue a warning and ignore the sources for the
9257 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
9259 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
9260 (Unit_Exceptions): New hash table
9261 (Check_Naming_Schemes): Check if a file that could be a unit because of
9262 the naming scheme is not in fact a source because there is an exception
9264 (Look_For_Sources): Put the unit exceptions in hash table
9266 (Get_Unit_Exceptions): Give initial value No_Source to local variable
9267 Other_Part to avoid exception when code is compiled with validity
9269 (Get_Sources_From_File): Check that there is no directory information
9271 (Look_For_Sources): Check that there is no directory information in the
9272 list of file names in Source_Files.
9273 (Look_For_Sources): In multi-language mode, do not allow exception file
9274 names that are excluded.
9275 (Excluded_Sources_Htable): New hash table
9276 (Search_Directories.Check_File): New procedure to simplify
9278 (Search_Directories): Do not consider excluded sources
9279 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
9281 (Get_Exceptions): Set component Lang_Kind of Source_Data
9282 (Get_Unit_Exceptions): Ditto
9283 (Search_Directories): Ditto
9285 * prj-pars.adb: new parameter Current_Dir
9287 * prj-part.ads, prj-part.adb:
9288 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
9289 (Opt.Follow_Links_For_Dirs): New flag
9290 (Project_Path_Name_Of): Cache information returned by this routine as
9291 Locate_Regular_File is a costly routine. The code to output a log
9292 information and the effective call to Locate_Regular_File is now
9293 factorized into a routine (code clean-up).
9294 (Parse, Parse_Single_Project): new parameter Current_Dir
9295 When main project file cannot be found, indicate in the error
9296 message the project path that was used to do the search.
9298 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
9299 (Prj.Proc.Process*): new parameter Current_Dir
9301 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
9303 2007-12-13 Bob Duff <duff@adacore.com>
9305 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
9306 procedure to be called from the back end to check the
9307 No_Implicit_Dynamic_Code restriction.
9309 2007-12-13 Arnaud Charlet <charlet@adacore.com>
9311 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
9312 Fixes another case where RTE_Available_Call was ignored instead of being
9316 * rtsfind.ads: Add new entries.
9318 2007-12-13 Robert Dewar <dewar@adacore.com>
9320 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
9321 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
9323 * scn.adb: Implement BOM recognition
9325 2007-12-13 Thomas Quinot <quinot@adacore.com>
9326 Ed Schonberg <schonberg@adacore.com>
9328 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
9329 subprogram body that acts as its own spec may not have a non-private
9330 WITH clause on a private sibling.
9331 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
9332 child unit is a renaming, create an implicit with_clause on that
9333 parent, and not on the unit it renames, to prevent visibility errors
9334 in the current unit.
9336 2007-12-13 Ed Schonberg <schonberg@adacore.com>
9338 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
9339 renaming declaration, use the Slocs of the formal parameters from the
9340 declaration of the formal subprogram when creating the formal parameter
9341 entities in the renaming declaration.
9342 (Analyze_Formal_Type_Declaration): Change the placement of the error
9343 message concerning illegal known discriminants. It is now posted on the
9344 type rather than on the first discriminant. This change ensures early
9346 (Freeze_Subprogram_Body): If the generic subprogram is nested within
9347 the package body that contains the instance, do not generate an
9348 out-of-place freeze node for the enclosing package.
9349 (Collect_Previous_Instantiations): Ignore internal instantiations
9350 generated for formal packages.
9351 (Validate_Derived_Type_Instance): Add a check that when a formal
9352 derived type is Known_To_Have_Preelab_Init then the actual type must
9353 have preelaborable initialization, and issue an error when this
9354 condition is violated.
9356 2007-12-13 Robert Dewar <dewar@adacore.com>
9358 * s-imenne.adb, s-imenne.ads: New files.
9360 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
9361 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
9362 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
9363 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
9364 s-imgwch.ads: New calling sequence for Image routines to avoid sec
9367 2007-12-13 Javier Miranda <miranda@adacore.com>
9368 Ed Schonberg <schonberg@adacore.com>
9370 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
9371 generation of spurious error if parent is an interface type; caused
9372 because predefined primitive bodies will be generated later by
9374 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
9376 (Derive_Subprograms): Handle derivations of predefined primitives
9377 after all the user-defined primitives to ensure that they are
9378 found in proper order in instantiations.
9379 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
9380 of Related_Interface to Related_Type.
9381 (Record_Type_Declaration): Minor reordering of calls to decorate the
9382 Tag component because the entity must have set its Ekind attribute
9383 before setting its Is_Tag attribute.
9384 (Analyze_Subtype_Declaration): In the case of subtypes with
9385 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
9387 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9388 Ed Schonberg <schonberg@adacore.com>
9390 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
9391 statement to the list of contexts where a selected component with a
9392 concurrent tagged type prefix should yield a primitive operation.
9393 (Find_Primitive_Operation): Handle case of class-wide types.
9394 (Analyze_Overloaded_Selected_Component): If type of prefix is
9395 class-wide, use visible components of base type.
9396 (Resolve_Selected_Component): Ditto.
9397 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
9398 formal of a generic subprogram. find candidate interpretations by
9399 scanning the list of generic formal declarations.:
9400 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
9401 type from a limited_with_clause, and the full view is available, use it
9402 for subsequent semantic checks.
9403 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
9404 (Find_Primitive_Operation): New function.
9405 (Analyze_Overloaded_Selected_Component): insert explicit dereference
9406 only once if several interpretations of the prefix yield an access type.
9407 (Try_Object_Operation): Code and comment cleanup.
9408 (Analyze_Selected_Component): Reorder local variables. Minot comment and
9409 code reformatting. When the type of the prefix is tagged concurrent, a
9410 correct interpretation might be available in the primitive and
9411 class-wide operations of the type.
9413 2007-12-13 Robert Dewar <dewar@adacore.com>
9414 Ed Schonberg <schonberg@adacore.com>
9416 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
9417 renaming entry as subprogram using rename-as-body if subprogram spec
9419 (Use_One_Type): The clause is legal on an access type whose designated
9420 type has a limited view.
9421 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
9422 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
9423 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
9424 operation denoted by a selected component.
9425 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
9426 it can be an expression, possibly overloaded, that returns a task or
9429 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9430 Gary Dismukes <dismukes@adacore.com>
9432 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
9433 requeue statement is dispatching. Do not emit an error when the name is
9434 not an entry and the context is a dispatching select. Add code to
9435 perform subtype conformance between the formals of the current entry
9436 and those of the target interface primitive.
9437 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
9438 Timed_Entry_Call): Analyze the triggering statement as the first step of
9439 the processing. If this is a dispatching select, postpone the analysis
9440 of all select statements until the Expander transforms the select. This
9441 approach avoids generating duplicate identifiers after the Expander has
9442 replicated some of the select statements. In case the Expander is
9443 disabled, perform regular analysis.
9444 (Check_Triggering_Statement): New routine.
9445 (Analyze_Requeue): Exclude any interpretations that are not entries when
9446 checking overloaded names in a requeue. Also test type conformance for
9447 matching interpretations rather than requiring subtype conformance at
9448 that point to conform with the RM's resolution rule for requeues.
9450 2007-12-13 Ed Schonberg <schonberg@adacore.com>
9452 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
9453 inherited operation is a defaulted tag-indeterminate call, and there is
9454 a statically tagged actual, use the static tag as a controlling actual
9455 for the defaulted actual.
9457 2007-12-13 Geert Bosch <bosch@adacore.com>
9459 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
9460 context, so do not call Check_Non_Static_Context.
9462 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9464 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
9465 whether formal E is an entity which may have parameters.
9467 2007-12-13 Bob Duff <duff@adacore.com>
9468 Javier Miranda <miranda@adacore.com>
9469 Robert Dewar <dewar@adacore.com>
9471 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
9472 (Set_Convention): New procedure to set the Convention flag, and in
9473 addition make sure the Favor_Top_Level flag is kept in sync (all
9474 foreign-language conventions require Favor_Top_Level = True).
9475 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
9477 (Collect_Interfaces_Info): Minor update to handle the two secondary
9478 dispatch tables. Update occurrence of Related_Interface to Related_Type.
9479 (Generate_Parent_Ref): Add parameter to specify entity to check
9480 (Is_Preelaborable_Expression): Allow the name of a discriminant to
9481 initialize a component of a type with preelaborable initialization.
9482 This includes the case of a discriminal used in such a context.
9483 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
9484 latest Ada 2005 rules about renaming and 'Access of
9485 discriminant-dependent components.
9486 (Check_Nested_Access): Add handling when there are no enclosing
9487 subprograms (e.g. case of a package body).
9488 (Find_Parameter_Type): Factor routine from several other compiler files.
9489 Remove routine from Find_Overridden_Synchronized_Primitive.
9491 2007-12-13 Thomas Quinot <quinot@adacore.com>
9493 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
9494 an invalid access to an uninitialized slot in the
9495 Source_File_Index_Table.
9497 2007-12-13 Thomas Quinot <quinot@adacore.com>
9499 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
9501 2007-12-13 Bob Duff <duff@adacore.com>
9503 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
9504 access-to-subprogram types in this package.
9506 2007-12-13 Olivier Hainque <hainque@adacore.com>
9508 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
9509 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
9510 Stack_Overlay_Address and document that we are using an internal
9512 (Byte_Size, Unsigned_32_Size): Remove, now useless.
9513 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
9514 consistently throughout the various implementation pieces.
9516 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
9517 overlay we are using to fill the stack area with patterns.
9518 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
9519 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
9520 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
9522 2007-12-13 Robert Dewar <dewar@adacore.com>
9524 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
9526 2007-12-13 Arnaud Charlet <charlet@adacore.com>
9529 (Create_Task): Take into account tasks created by foreign threads.
9530 Code clean up: use constants instead of hard coded values.
9532 2007-12-13 Robert Dewar <dewar@adacore.com>
9534 * styleg.adb (Check_Comment): More liberal rules for comment placement
9536 2007-12-13 Olivier Hainque <hainque@adacore.com>
9538 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
9539 of Procedure Value instead of Frame Pointer as the invocation
9540 identifier associated with the instruction pointer in each traceback
9543 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
9544 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
9545 Pointer as the invocation identifier passed to tbk$symbolize.
9547 * s-traent-vms.ads, s-traent-vms.adb
9548 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
9549 Procedure Value instead of Frame Pointer as the invocation identifier
9550 passed to tbk$symbolize.
9552 2007-12-13 Robert Dewar <dewar@adacore.com>
9554 * tbuild.ads, tbuild.adb:
9555 Fix location of flag for unrecognized pragma message
9557 2007-12-13 Robert Dewar <dewar@adacore.com>
9559 * treepr.ads, treepr.adb: (pl): implement use of positive value
9562 2007-12-13 Robert Dewar <dewar@adacore.com>
9564 * xeinfo.adb: Remove warnings
9565 * xnmake.adb: Remove warnings
9566 * xsinfo.adb: Remove warnings
9567 * xtreeprs.adb: Remove warnings
9568 * xsnames.adb: Remove warnings
9570 * a-ngcoar.adb: Fix typo.
9571 * s-interr.adb: Minor reformatting
9572 * env.c: Minor reformatting.
9573 * g-bytswa.adb: Minor reformatting.
9574 * g-rannum.ads: Minor documentation improvements
9575 * s-tasinf-mingw.adb: Minor header fix
9576 * a-clrefi.adb: Minor reformatting
9577 * g-sttsne.ads: Minor documentation improvement
9578 * g-sttsne-locking.ads: Minor documentation improvement
9579 * g-soliop-solaris.ads: Minor documentation improvement
9580 * g-soliop-mingw.ads: Minor documentation improvement
9581 * g-soliop.ads: Minor documentation improvement
9582 * exp_aggr.ads: Minor reformatting
9583 * debug.adb: Add documentation for the gprbuild debug flags
9584 * exp_ch2.adb: Use Nkind_In to simplify code throughout
9585 * exp_pakd.adb: Minor reformatting
9587 * g-altive.ads, g-alleve.adb: Remove assertions.
9588 Add comment about minor differences between targets regarding
9589 floating-point operations.
9591 * g-thread.adb: Remove pragma unreferenced.
9592 * lib.ads: Minor reformatting
9593 * par-ch9.adb: Minor reformatting of error messages
9594 * sem_case.adb: Minor reformatting
9595 * s-fileio.adb: Minor reformattinng
9596 * s-vmexta.ads: Minor typo
9598 Take into account 'Success' value as per new GNAT warning.
9600 2007-12-13 Vincent Celier <celier@adacore.com>
9602 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
9605 2007-12-13 Robert Dewar <dewar@adacore.com>
9606 Bob Duff <duff@adacore.com>
9608 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
9609 Document that suffixes may be terminations of each others
9610 Add doc for -gnatw.a and -gnatw.A
9611 Document gnatbind -Wx switch
9612 Document BOM recognition
9613 Document pragma Implemented_By_Entry.
9616 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
9617 Add doc for pragma Unreferenced suppressing no entities referenced msg
9618 Add documentation of GNAT.Directory_Operations.Iteration
9619 Add documentation of GNAT.Random_Numbers
9620 Add documentation for pragma Shared.
9621 Correct documentation for Bit_Order
9622 Add documentation for the Pool_Address attribute.
9623 Fix and improve documentation of pragma machine_attribute.
9624 New pragma Fast_Math
9625 Document BOM recognition
9627 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
9628 Add /Wide_Character_Encoding for binder
9629 Add qualifier for the new gnatpp option --no-separate-loop-then
9631 2007-12-13 Matthew Heaney <heaney@adacore.com>
9633 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
9634 which generic formal operations are called for each operation.
9636 2007-12-13 Olivier Hainque <hainque@adacore.com>
9638 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
9639 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
9641 2007-12-13 Emmanuel Briot <briot@adacore.com>
9643 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
9644 Reference_Dir unless we actually need it.
9646 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
9647 Tristan Gingold <gingold@adacore.com>
9649 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
9652 a-calend-vms.adb: Remove pragma warning off and add pragma
9655 2007-12-13 Robert Dewar <dewar@adacore.com>
9657 * impunit.adb: Add entries for missing units
9659 * Makefile.rtl: Add new run-time units.
9661 * Make-lang.in: Update dependencies.
9663 2007-12-13 Bob Duff <duff@adacore.com>
9665 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
9666 types, set Can_Use_Internal_Rep appropriately, based on
9667 Always_Compatible_Rep_On_Target.
9669 2007-12-13 Gary Dismukes <dismukes@adacore.com>
9670 Arnaud Charlet <charlet@adacore.com>
9672 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
9673 it to the front end and setting the aamp_target environment variable
9674 to the switch's argument to ensure that gnaampbind and gnaamplink will
9675 take the specified library into account.
9676 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
9677 target, since the CIL compiler supports an "object" file (.il files).
9679 2007-12-13 Vincent Celier <celier@adacore.com>
9681 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
9682 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
9684 2007-12-13 Geert Bosch <bosch@adacore.com>
9686 * s-parame-vxworks.adb:
9687 Update comments to reflect usage of this package by Nucleus.
9689 2007-12-13 Arnaud Charlet <charlet@adacore.com>
9691 * i-vxwork.ads: Kill new warning on Convention C, since changing the
9692 spec would break code.
9694 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
9696 * system-vxworks-alpha.ads: Removed.
9698 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
9700 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
9702 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
9705 * sem_ch3.adb (Designates_T): New function.
9706 (Mentions_T): Factor reusable part of the logic into Designates_T.
9707 Consider non-access parameters and access and non-access result.
9708 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
9709 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
9711 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
9713 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
9716 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
9717 the new implementation of target-specific calls.
9719 2007-12-07 Olivier Hainque <hainque@adacore.com>
9721 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
9722 the designated full view, only follow a second level Full_View link
9723 for Non_Limited_Views of from_limited_with references.
9725 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
9728 * sem_ch6.adb (Process_Formals): Prevent an access type formal
9729 to be initialized with an access to constant object.
9731 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
9732 when an access to constant is used to initialize an access
9736 * a-direct.adb (Compose): Containing_Directory can be an empty string.
9738 2007-12-07 Olivier Hainque <hainque@adacore.com>
9741 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
9742 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
9743 this is from an alignment clause on the GNAT entity.
9744 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
9745 to distinguish the case where we set it from the type's alignment.
9746 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
9747 whether this alignment was set from an explicit alignment clause.
9749 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
9751 * decl.c (make_packable_type): Revert last change.
9752 (gnat_to_gnu_field): Avoid setting size and position multiple times.
9753 * utils.c (finish_record_type): Retrieve the real name of the type.
9755 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
9757 * trans.c (lvalue_required_p): Take base node directly instead
9758 of its parent. Rename second parameter to 'gnu_type'.
9759 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
9760 <N_Slice>: Likewise.
9761 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
9762 Adjust calls to lvalue_required_p.
9764 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
9767 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
9768 parameters of an entry call.
9770 2007-12-03 Robert Dewar <dewar@adacore.com>
9771 Samuel Tardieu <sam@rfc1149.net>
9774 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
9775 of variables declared in a library-level package.
9777 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
9779 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
9780 of Empty_String'Unchecked_Access.
9782 * Makefile.in: Add support for sh4-linux.
9784 * system-linux-sh4.ads: New file.
9786 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
9789 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
9790 and its argument must not be free()ed.
9792 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
9794 * decl.c (make_packable_type): Retrieve the real name of the type.
9795 (maybe_pad_type): Simplify similar code.
9797 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
9800 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
9801 than an identifier is used after "case" in a variant_part.
9804 * par-ch4.adb (Is_Parameterless_Attribute): New map.
9805 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
9806 attribute name or not depending on the new map.
9808 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
9809 returning a string or a type will not be called with improper
9812 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
9814 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
9817 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
9818 Signal an error when attribute argument is a fixed-point value of
9822 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
9823 a derived ordinary fixed point type.
9825 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
9826 RM_Size when a Small clause is found.
9828 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
9831 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
9832 Pass 'false' for the new allocate_struct_function parameter.
9833 * utils.c (build_function_stub): Likewise.
9835 2007-11-25 Richard Guenther <rguenther@suse.de>
9837 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
9838 (gnat_poplevel): Likewise.
9840 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
9842 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
9843 strict alignment, no alignment clause and a known static size, cap
9844 the type alignment to the greatest power of 2 factor of the size.
9845 (gnat_to_gnu_field): If the field has a component clause, is aliased
9846 or of a type with strict alignment, require that its size be equal to
9848 (validate_size): Use the type size as the minimum size for a type with
9851 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
9853 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
9854 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
9855 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
9856 Use 'Access instead of 'Unchecked_Access in second and third
9857 arguments of pthread_sigmask.
9859 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
9861 * decl.c (ceil_alignment): New function.
9862 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
9863 (make_packable_type): Likewise.
9865 2007-11-22 Olivier Hainque <hainque@adacore.com>
9867 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
9868 to fit in 80 columns.
9870 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
9872 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
9873 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
9875 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
9878 * misc.c (gnat_adjust_rli): Delete.
9879 (gnat_init): Do not initialize the translation code here.
9880 Do not call set_lang_adjust_rli.
9881 * trans.c (init_code_table): Make static.
9882 (gnat_init_stmt_group): Delete.
9883 (gigi): Initialize the translation code entirely here.
9884 Emit debug info for the common types here instead of...
9885 * utils.c (gnat_init_decl_processing): ...here.
9886 * gigi.h (init_code_table): Delete.
9887 (gnat_init_stmt_group): Likewise.
9889 2007-11-16 Olivier Hainque <hainque@adacore.com>
9891 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
9892 retrieving an allocator return value from a super-aligned address from
9894 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
9895 expect a super-aligned address for a fat or thin pointer.
9897 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
9899 * trans.c (call_to_gnu): Always set the source location on the call
9900 expression. If the function returns-by-target, also set it on the
9903 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
9905 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
9906 sections of non-supported Interix target.
9908 * s-osinte-interix.ads: Removed.
9910 * i-cstrin.ads (chars_ptr): Make it a C convention type.
9912 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
9914 * a-tasatt.adb: Add a comment at the beginning of the package
9915 explaining why in general 'Unchecked_Access must be used instead
9918 * sem_prag.adb (Process_Convention): Move the test for the
9919 entity on which the Convention pragma applies down to also
9920 forbid pragma Convention on enumeration literals reached
9923 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
9925 * a-tasatt.adb: Revert previous change for this file as it will
9926 generate an error when this package is instantiated from a
9929 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
9931 * a-tasatt.adb: Type Wrapper should be declared in comment instead
9932 of already declared type Node_Access.
9933 Use 'Access instead of 'Unchecked_Access when applicable. Local
9934 lifetime is the one of the package.
9935 (Set_Value): W is allocated on the heap.
9937 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9939 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
9941 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
9944 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
9946 (elaboration code): Timer_Queue lifetime is the one of the
9949 * tracebak.c (i386 alternative): Remove useless comparaison
9950 which is always false; LOWEST_ADDRESS is 0 and is never greater
9951 than an unsigned integer.
9953 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9954 embedded check for "Ada_Version >= Ada_05".
9956 2007-11-07 Olivier Hainque <hainque@adacore.com>
9958 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9959 craft and expand comment.
9961 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
9963 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9965 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
9967 * misc.c (gnat_handle_option): Replace call to abort with
9968 call to gcc_unreachable.
9969 (gnat_init): Likewise.
9970 (gnat_expand_expr): Likewise.
9971 (fp_prec_to_size): Likewise.
9972 (fp_size_to_prec): Likewise.
9974 2007-10-23 Richard Guenther <rguenther@suse.de>
9977 * tracebak.c: #undef abort after including system.h.
9979 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
9981 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9982 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9984 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9986 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
9988 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9989 Set the protection status of the guard page based on the value of On.
9991 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9993 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9994 (Exit_Task): Pass False to Hide_Yellow_Zone.
9996 2007-10-15 Robert Dewar <dewar@adacore.com>
9998 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9999 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
10000 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
10001 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
10002 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
10003 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
10004 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
10005 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
10006 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
10007 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
10008 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
10009 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
10010 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
10011 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
10012 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
10013 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
10014 Minor reformatting.
10015 Add Unreferenced and Warnings (Off) pragmas for cases of
10016 variables modified calls where they are IN OUT or OUT parameters and
10017 the resulting values are not subsequently referenced. In a few cases,
10018 we also remove redundant code found by the new warnings.
10020 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
10021 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
10022 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
10023 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
10024 warning controlled by -gnatw.o that warns on cases of out parameter
10025 values being ignored.
10027 2007-10-15 Geert Bosch <bosch@adacore.com>
10029 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
10031 * expect.c: Initial port to arm-mentor-nucleus.
10032 Use kill for __gnat_kill() on VMS.
10034 2007-10-15 Emmanuel Briot <briot@adacore.com>
10036 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
10038 (Xref_Record): Change type for Line, since in the case of a reference to
10039 a predefined entity (as happens for array index types), the line is set
10041 Add support for parsing multiple array index types info, or
10042 multiple inherited interfaces info. This information cannot be stored
10043 in Xref_Entity_Record, which only supports a single instance of Tref_*,
10044 and is therefore stored in the list of references instead. It has a
10045 special treatement later on in tools that use this information.
10047 2007-10-15 Tristan Gingold <gingold@adacore.com>
10049 * debug.adb: Document use of -gnatd.a and -gnatd.I
10051 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
10053 2007-10-15 Javier Miranda <miranda@adacore.com>
10055 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
10056 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
10057 care of access to class-wide interface types plus removal of bizarre
10058 conversion of tagged object to access type (reported by Gary
10059 Dismukes). After this patch there is no need to perform any
10060 additional management on these nodes in Expand_Interface_Actuals.
10062 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
10063 that handles use of 'Access and 'Unchecked_Access applied to
10064 actuals covering interface types. Such code is now
10065 centralized in Expand_N_Attribute_Reference.
10067 2007-10-15 Ed Schonberg <schonberg@adacore.com>
10069 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
10070 of tagged types whose ultimate ancestor is a CPP type.
10071 (Freeze_Array_Type): For a packed array type, generate an initialization
10072 procedure if the type is public, to handle properly a client that
10073 specifies Normalize_Scalars.
10075 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
10077 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
10078 inside a generic body, retrieve the full view of the entry family
10079 discrete subtype if available.
10081 2007-10-15 Thomas Quinot <quinot@adacore.com>
10083 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
10084 attempt to generate stubs for hidden primitive operations.
10086 2007-10-15 Vincent Celier <celier@adacore.com>
10088 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
10089 returning None, used when there is no platform specific body for
10092 2007-10-15 Bob Duff <duff@adacore.com>
10094 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
10095 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
10096 the generic Heap_Sort_G, in order to avoid trampolines.
10098 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
10099 Jose Ruiz <ruiz@adacore.com>
10101 * vx_stack_info.c: New file.
10103 * i-forbla-unimplemented.ads: New file.
10105 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
10106 for unsupported configurations; use it on VMS targets instead of the
10108 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
10109 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
10110 used by VxWorks targets to have access to task-specific data and be
10111 able to extract the stack boundaries for stack checking.
10112 Use system-vms-ia64.ads on ivms.
10114 * Make-lang.in: Update dependencies.
10116 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
10119 2007-10-15 Vincent Celier <celier@adacore.com>
10121 * snames.adb, snames.ads: Add new standard name runtime_library_dir
10123 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
10125 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
10127 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
10128 the source is unknown.
10130 * prj-ext.adb: Spelling error fix
10132 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
10133 95 reserved word in its name.
10134 (Process_Project_Level_Array_Attributes): Process new attribute
10135 Runtime_Library_Dir.
10137 * prj-part.adb (Parse_Single_Project): Do not check the name of the
10138 config project against the user project names.
10140 * prj-proc.adb (Expression): In multi-language mode, indexes that do
10141 not include a dot are always case insensitive.
10142 (Process_Declarative_Items): Ditto
10143 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
10146 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
10147 True, compare both indexes in lower case.
10149 2007-10-15 Robert Dewar <dewar@adacore.com>
10151 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
10153 2007-10-15 Gary Dismukes <dismukes@adacore.com>
10155 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
10156 association for an access component, add an association with null as
10157 the expression. Remove testing for array subtypes and the setting in
10158 that case of Ctyp to the array component type, which prevented proper
10159 inclusion of an association for null-initialized arrays. Collapse
10160 condition that tests for array subtypes into just a test of
10161 Is_Partially_Initialized_Type (which already covers arrays anyway).
10163 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
10165 * sem_ch12.adb: Minor code reformatting.
10166 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
10167 find the parent package which may have been hidden by local
10170 2007-10-15 Gary Dismukes <dismukes@adacore.com>
10172 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
10173 flag of derived concurrent types, taking into account the flag setting
10174 on the parent subtype and any new set of discriminants.
10176 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
10178 * sem_ch4.adb: Minor code and comment reformatting.
10179 (Analyze_Allocator): When the designated type of an unconstrained
10180 allocator is a record with unknown discriminants or an array with
10181 unknown range bounds, emit a detailed error message depending on the
10182 compilation mode and whether the designated type is limited.
10184 2007-10-15 Tristan Gingold <gingold@adacore.com>
10186 * system-vms-ia64.ads: New file.
10188 * system-vms_64.ads: Minor comment fix.
10190 2007-10-15 Ed Schonberg <schonberg@adacore.com>
10192 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
10193 body generated for a function with a controlling result that is a null
10194 extension, discard the generated body in favor of the current explicit
10197 2007-10-15 Ed Schonberg <schonberg@adacore.com>
10199 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
10200 examining its original form, to handle properly operator calls that
10201 have been rewritten.
10203 2007-10-15 Olivier Hainque <hainque@adacore.com>
10205 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
10206 instead of a procedure value in each traceback entry.
10208 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
10209 instead of procedure value to TBK$SYMBOLIZE.
10211 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
10213 (TB_Entry_For): Account for the PV/FP renaming.
10215 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
10217 (Null_TB_Entry): Account for change of component name.
10218 (PV_For): Rename as FP_For.
10220 2007-10-15 Tristan Gingold <gingold@adacore.com>
10222 * trans.c (gnat_to_gnu): Remove the padding structure more often.
10223 This optimize assignment to over-aligned record.
10225 2007-10-15 Emmanuel Briot <briot@adacore.com>
10227 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
10230 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
10231 type, for dispatching calls.
10233 2007-10-15 Vincent Celier <celier@adacore.com>
10234 Robert Dewar <dewar@adacore.com>
10236 * gnat_ugn.texi: Add documentation for switches --version and --help
10237 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
10238 gnatxref, gnatfind, gnatls, and gnatclean.
10240 Mention attribute Excluded_Source_Dirs
10241 Replace obsolescent attribute Locally_Removed_Files with attribute
10242 Excluded_Source_Files.
10243 Improve documentation of -u (gnatbind)
10244 Document how to do reliable stack checking for the environmental task
10247 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
10248 Document attribute Excluded_Source_Files and indicate that attribute
10249 Locally_Removed_Files is obsolescent.
10251 2007-10-15 Thomas Quinot <quinot@adacore.com>
10253 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
10256 Update documentation to note that OpenVMS 8.3 or later must be used
10257 to generate g-soccon-vms.ads.
10259 * atree.adb: Add ??? comment
10261 * exp_util.adb: Minor reformatting.
10262 Add ??? comment in Kill_Dead_Code.
10264 2007-10-15 Robert Dewar <dewar@adacore.com>
10266 * errout.ads: Comment clarification
10268 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
10269 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
10271 * lib.ads: Comment update
10273 * init.c: Minor reformatting.
10275 * sem_attr.adb: Minor formatting
10277 * osint-b.ads: Minor reformatting
10279 * sem_ch9.adb: Implement -gnatd.I switch
10281 * g-comlin.adb: (Start): Fix handling of empty command line.
10283 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
10284 even when -rules follows the -cargs section.
10286 2007-10-08 Ollie Wild <aaw@google.com>
10288 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
10290 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
10292 (gnat_eh_runtime_type): Removed.
10293 (gnat_return_tree): New function.
10295 2007-10-08 Ben Elliston <bje@au.ibm.com>
10299 2007-08-31 Ben Elliston <bje@au.ibm.com>
10301 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10302 when compiling for powerpc64-*-linux.
10303 * system-linux-ppc64.ads: New file.
10305 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
10307 Mapped location support
10308 * back_end.adb (Call_Back_End): Pass information about source
10309 files instead of units to gigi.
10310 * gigi.h (struct File_Info_Type): New.
10311 (gigi): Rename and change type of number_units parameter, change
10312 type of file_info_ptr parameter.
10313 * trans.c (number_files): New global variable.
10314 (gigi): Rename and change type of number_units parameter, change
10315 type of file_info_ptr parameter.
10316 If mapped location support is enabled, create the isomorphic mapping
10317 between source files and line maps.
10318 (Sloc_to_locus): If mapped location support is enabled, translate
10319 source location into mapped location.
10320 (annotate_with_node): Rename into set_expr_location_from_node.
10321 Call set_expr_location instead of annotate_with_locus.
10322 (Pragma_to_gnu): Adjust for above change.
10323 (Loop_Statement_to_gnu): Likewise.
10324 (call_to_gnu): Likewise.
10325 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
10326 (gnat_to_gnu): Likewise.
10327 (add_stmt_with_node): Likewise.
10328 (add_cleanup): Likewise.
10329 * utils.c (gnat_init_decl_processing): Do not set input_line.
10331 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
10333 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
10334 (Applicable_Use): Emit a warning when a package tries to use itself.
10335 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
10336 is already in use or the package where it is declared is in use or is
10337 declared in the current package.
10338 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
10340 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
10341 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
10342 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
10344 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
10346 * a-calend-vms.adb, a-calend.adb:
10347 Add a section on leap seconds control along with two entities used to
10348 enable and disable leap seconds support. The array Leap_Second_Times is
10349 now constant and contains hard time values pre-generated. Remove
10350 all elaboration code used to populate the table of leap seconds.
10353 Add entity Leap_Seconds_Support to the list of global run-time variables
10354 along with a comment on its usage and values.
10355 (Gen_Adainit_Ada): Add code to generate the declaration and import of
10356 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
10357 or one (enabled) depending on the presence of binder switch "-y".
10358 (Gen_Adainit_C): Add code to generate the declaration of external int
10359 __gl_leap_seconds_support. Set is value to zero (disabled) or one
10360 (enabled) depending on the presence of binder switch "-y".
10362 * init.c: Add __gl_leap_seconds_support to the list of global values
10363 computed by the binder.
10365 2007-09-26 Jerome Guitton <guitton@adacore.com>
10367 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
10368 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
10369 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
10370 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
10372 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
10374 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
10375 function which can be called by the debugger to interrupt the tasks of
10376 an Ada application asynchronously, as needed on VxWorks.
10377 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
10379 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
10380 renamed from Stop_All_Tasks. Update comments.
10381 (Stop_All_tasks): New function declaration.
10383 2007-09-26 Olivier Hainque <hainque@adacore.com>
10385 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
10386 #include <utime.h> and #define GCC_RESOURCE_H before
10387 #include <sys/wait.h>.
10388 Add more protections in __gnat_translate_vms.
10390 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
10391 #include <sys/wait.h>.
10393 2007-09-26 Thomas Quinot <quinot@adacore.com>
10394 Sergey Rybin <rybin@adacore.com>
10396 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
10398 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
10401 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
10403 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
10406 * sem_dist.ads: Minor comment fix
10408 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
10410 2007-09-26 Javier Miranda <miranda@adacore.com>
10411 Eric Botcazou <ebotcazou@adacore.com>
10414 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
10415 indirection added to the HT_Link component of the TSD. This is required
10416 to statically allocate the TSD.
10419 Minor reordering of the declarations in the private part. Required to
10420 add a level of indirection to the contents of the TSD component HT_Link.
10421 This is required to statically allocate the TSD.
10423 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
10424 Is_Statically_Allocated set from constant objects.
10425 Do not make exported constants created by the compiler volatile.
10426 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
10429 * trans.c (Identifier_to_gnu): For constants, unshare initializers
10430 before returning them.
10432 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
10433 public part of the package.
10434 (Make_DT): Move HT_Link component out of the TSD record. For this
10435 purpose Make_DT now declares a separate object that stores the
10436 HT_Link value, and initializes the TSD component with the address
10437 of this new object. The addition of this level of indirection is
10438 required to statically allocate the TSD because the TSD cannot
10439 have variable components.
10440 (Expand_Interface_Conversion): Improve the expanded code.
10441 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
10443 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
10444 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
10445 if we are building static dispatch tables then we must not generate
10446 extra code to register the primitive because the dispatch table will
10447 be built at the end of the library package; otherwise we notify that
10448 we cannot build the static dispatch table.
10450 2007-09-26 Robert Dewar <dewar@adacore.com>
10452 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
10455 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
10456 (Analyze_Record_Representation_Clause): Suppress junk warning for
10457 missing component clause.
10458 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
10459 tests for controlled type overlay to composites with controlled
10461 (Analyze_Record_Representation_Clause): Add reference for component name
10463 2007-09-26 Javier Miranda <miranda@adacore.com>
10464 Gary Dismukes <dismukes@adacore.com>
10466 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
10467 for thunks associated with interface types.
10469 * einfo.ads: Improve documentatation of Is_Internal
10470 (Is_Thunk): New attribute applicable to subprograms. True for thunks
10471 associated with interface types.
10472 Extensive comment fixes regarding flags that appear in all entities. The
10473 documentation is now consistent for all such flags (there were a number
10474 of errors in the documentation in this regard).
10476 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
10478 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
10479 of these procedures are passed a function call that already has
10480 build-in-place actuals (testing new flag
10481 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
10482 the case where processing continues.
10483 (Expand_Call): If the call is generated from a thunk body then we
10484 propagate the extra actuals associated with the accessibility
10485 level of the access type actuals.
10487 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
10488 of each extra formal of a protected operation to reference the
10489 corresponding extra formal of the subprogram denoted by the
10490 operation's Protected_Body_Subprogram.
10492 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
10493 N_Function_Call nodes.
10495 2007-09-26 Robert Dewar <dewar@adacore.com>
10497 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
10499 * debug.adb: Add d.s flag.
10501 2007-09-26 Gary Dismukes <dismukes@adacore.com>
10503 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
10504 debug variable so that it won't be initialized when pragma
10505 Initialize_Scalars is in effect.
10507 2007-09-26 Gary Dismukes <dismukes@adacore.com>
10509 * freeze.adb (Freeze_Entity): Remove check for preelaborable
10510 initialization of a full view. This is moved to
10511 Analyze_Package_Specification.
10513 * sem_ch7.adb (Analyze_Package_Specification): Add check for
10514 preelaborable initialization of a full view in entity loop.
10515 (Uninstall_Declarations): If entity is a use-visible compilation unit,
10516 its child units are use-visible only if they are visible child units.
10518 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
10519 whether an expression can be used within a type declaration that
10520 requires preelaborable init.
10521 (Check_Components): Replace inline code that does partial checking for
10522 preelaborable default expressions with call to
10523 Is_Preelaborable_Expression.
10524 (Has_Preelaborable_Initialization): In the case of a generic actual
10525 subtype, (that is, Is_Generic_Actual is True), return the result of
10526 applying Has_Preelaborable_Initialization to the generic actual's base
10529 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
10531 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
10532 call to Jan_1_Day _Of_Week to optimize its performance.
10533 (Is_Leap): Move the routine to the scope of Week_In_Year.
10534 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
10535 weekday on which January 1 falls of Year - 1 and Year + 1. This function
10536 avoids calling Time_Of and Split, thus making it more efficent.
10537 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
10539 * g-calend.ads (Week_In_Year): Change comment to reflect new
10542 2007-09-26 Emmanuel Briot <briot@adacore.com>
10544 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
10545 Command_Line): New types
10546 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
10547 support for defining how switches can be grouped on a command line (as
10548 is the case for -gnatw... for GNAT), and how simple switches can be
10549 used as aliases for more complex switches (-gnatwa is same as
10551 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
10552 (Start, Current_*): New subprograms
10553 Added support for parsing an array of strings in addition to the real
10555 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
10556 be moved from the body to the private part of the spec.
10557 (*): All subprograms now have an extra parameter with default value to
10558 specify which parser should be used. For backward compatibility, it
10559 defaults to parsing the command line of the application. They were also
10560 modified to properly handle cases where each of the argument does not
10561 start at index 1 (which is always true for Ada.Command_Line, but not
10562 when processing any Argument_List).
10563 (Free): New subprogram
10564 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
10565 Argument): New subprograms
10566 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
10567 special characters like ':', '=',... are now handled in a single place,
10568 which makes the code more extensible eventually.
10569 (Getopt, Full_Switch): When the switch was returned as part of the
10570 special character '*', make sure it is prepended by the switch character
10571 ('-' in general), so that the application knows whether "foo" or "-foo"
10572 was specified on the command line.
10574 2007-09-26 Florian Villoing <villoing@adacore.com>
10576 * g-dirope.adb (Remove_Dir): In case we are removing directories
10577 recursively, make sure that if an exception is raised during the
10578 processing, the current working directory is reset to its initial
10579 value before propagating the exception.
10581 2007-09-26 Vincent Celier <celier@adacore.com>
10583 * gnatbind.adb: If there are several ALI files specified and there is
10584 a main program to bind, the first ALI is expected to contain the main
10585 subprogram and the names of the binder generated files will be derived
10586 from the first ALI file name.
10587 (Gnatbind): Fix insertion character in invocation of Error_Msg
10589 2007-09-26 Vincent Celier <celier@adacore.com>
10591 * gnatcmd.adb (Check_Files): Do not include sources that have been
10592 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
10594 2007-09-26 Ed Schonberg <schonberg@adacore.com>
10596 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
10597 information about each of its index types, following the type
10598 reference for its component type.
10600 2007-09-26 Vincent Celier <celier@adacore.com>
10602 * make.adb: (Kill): New procedure (__gnat_kill imported)
10603 (Running_Compile, Outstanding_Compiles): Global variables that
10604 were previously local to procedure Compile_Sources.
10605 (Sigint_Intercepted): Send signal SIGINT to all outstanding
10606 compilation processes.
10608 (Gnatmake): If project files are used, create the mapping of all the
10609 sources, so that the correct paths will be found.
10611 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
10613 2007-09-26 Vincent Celier <celier@adacore.com>
10615 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
10617 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
10618 Replace components Compiler_Min_Options and Binder_Min_Options with
10619 Compiler_Required_Switches and Binder_Required_Switches in record
10621 Remove components Default_Language and Config in Project_Tree_Data,
10624 * prj-attr.adb: New attributes Required_Switches (<language>) in
10625 packages Compiler and Binder.
10627 * prj-nmsc.adb: Major rewrite of the processing of configuration
10628 attributes for gprbuild. No impact on GNAT tools.
10630 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
10631 process configuration attributes: this is done in Prj.Nmsc.Check.
10632 (Recursive_Process): Make a full copy of packages inherited from project
10633 being extended, instead of a shallow copy.
10634 (Process_Project_Tree_Phase_1): New procedure
10635 (Process_Project_Tree_Phase_1): New procedure
10636 (Process): Implementation now uses the two new procedures
10638 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
10639 from the project config, not the tree config that no longer exists.
10641 2007-09-26 Vincent Celier <celier@adacore.com>
10643 * Make-lang.in: Update dependencies..
10645 2007-09-26 Vincent Celier <celier@adacore.com>
10647 * osint.adb, osint.ads: Minor reformatting
10649 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
10651 2007-09-26 Gary Dismukes <dismukes@adacore.com>
10653 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
10654 message to cite use of <> in aggregate component associations rather
10655 than wrongly indicating use of limited aggregates.
10657 2007-09-26 Robert Dewar <dewar@adacore.com>
10659 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
10662 2007-09-26 Ed Schonberg <schonberg@adacore.com>
10664 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
10665 ancestor of the derived type, the operations are inherited from the
10666 primary dispatch table of the parent.
10667 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
10668 when the context is an explicit type conversion.
10670 2007-09-26 Ed Schonberg <schonberg@adacore.com>
10672 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
10673 rule for qualified expressions properly, to detect improper conversions
10674 and resolve some cases of overloading.
10676 2007-09-26 Ed Schonberg <schonberg@adacore.com>
10678 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
10679 proper kind of reference to the primitive operation, for better source
10681 (Valid_Conversion): A tagged conversion is legal if both operands are
10684 2007-09-26 Robert Dewar <dewar@adacore.com>
10686 * sem_warn.adb (Check_References): Catch more cases of unreferenced
10689 2007-09-26 Vincent Celier <celier@adacore.com>
10691 * snames.adb, snames.ads: Change Include_Option to Include_Switches
10693 2007-09-26 Robert Dewar <dewar@adacore.com>
10695 * s-wchstw.adb: provide messages for run time unit exceptions
10697 * a-witeio.adb: Minor reformatting
10699 * exp_ch13.adb: Minor reformatting
10701 2007-09-26 Sergey Rybin <rybin@adacore.com>
10703 * vms_data.ads: Revise gnatmetric qualifiers.
10704 Add qualified for the new gnatbind option '-y'
10706 * gnat_ugn.texi: Revise the gnatmetric section.
10707 Add entry for new gnatbind option '-y'.
10709 * gnat_rm.texi: Minor spelling correction.
10710 Document restriction on overlaying controlled types
10712 2007-09-26 Vincent Celier <celier@adacore.com>
10714 * makegpr.adb (Link_Executables): Do not fail when the root project has
10715 no sources, but is an extending project.
10717 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
10719 * trans.c: Fix misplaced #define.
10721 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
10723 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
10724 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
10726 2007-09-21 Olivier Hainque <hainque@adacore.com>
10728 * utils.c (type_for_nonaliased_component_p): Return false for
10729 all AGGREGATE_TYPEs.
10731 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
10733 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
10734 object covered by 13.3(19) volatile.
10736 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
10740 * utils.c (unchecked_convert): Use a subtype as the intermediate type
10741 in the special VIEW_CONVERT_EXPR case.
10743 2007-09-12 Robert Dewar <dewar@adacore.com>
10745 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
10747 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
10748 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
10749 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
10750 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
10751 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
10752 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
10753 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
10754 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
10755 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
10756 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
10757 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
10758 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
10759 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
10760 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
10761 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
10762 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
10763 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
10764 pragma Compiler_Unit and adds it to relevant library units.
10766 2007-09-12 Ed Schonberg <schonberg@adacore.com>
10768 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
10769 a box need not correspond to any component.
10771 2007-09-12 Robert Dewar <dewar@adacore.com>
10773 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
10774 the tasking version of the Ada run time when foreign threads are
10775 present and there are no explicit Ada tasks or tasking constructs.
10777 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
10779 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
10781 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
10782 the usage of switch -y.
10784 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
10785 when switch -y is present.
10787 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
10788 leap seconds in Ada.Calendar and its children.
10790 2007-09-12 Jose Ruiz <ruiz@adacore.com>
10792 * a-extiti.ads (Timer): The discriminant is a "not null access
10793 constant" in the Reference Manual.
10794 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
10796 2007-09-12 Robert Dewar <dewar@adacore.com>
10798 * a-swuwha.adb: Remove junk RM header
10800 2007-09-12 Vincent Celier <celier@adacore.com>
10802 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
10805 * g-bytswa.ads: Minor reformatting
10807 2007-09-12 Thomas Quinot <quinot@adacore.com>
10809 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
10810 Add new constant Thread_Blocking_IO, always True by default, set False
10811 on a per-runtime basis.
10812 (Need_Netdb_Buffer): New constant.
10814 2007-09-12 Arnaud Charlet <charlet@adacore.com>
10816 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
10817 Added renames for corresponding functions in System.Partition_Interface.
10819 2007-09-12 Doug Rupp <rupp@adacore.com>
10821 * Makefile.in: Remove VMS specific System.CRTL packages which are no
10824 * s-crtl-vms64.ads: Removed.
10826 2007-09-12 Olivier Hainque <hainque@adacore.com>
10828 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
10829 with discriminant constraints, generalize the code for BIT_FIELDs
10830 to PACKED fields of constant size and propagate DECL_PACKED.
10832 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
10834 * decl.c (array_type_has_nonaliased_component): New predicate.
10835 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
10836 set the TYPE_NONALIASED_COMPONENT flag on the type.
10837 <E_Array_Subtype>: Likewise.
10838 * gigi.h (type_for_nonaliased_component_p): Declare.
10839 * utils.c (type_for_nonaliased_component_p): New predicate.
10840 (create_field_decl): Invoke the above predicate to set the
10841 DECL_NONADDRESSABLE_P flag on the field.
10843 2007-09-11 Javier Miranda <miranda@adacore.com>
10845 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
10846 in library level record type entities if we are generating statically
10847 allocated dispatch tables.
10849 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
10850 importing/exporting the _tag declaration by new code
10851 importing/exporting the dispatch table wrapper. This change allows us
10852 to statically allocate of the TSD.
10853 (Make_DT.Export_DT): New procedure.
10854 (Build_Static_DT): New function.
10855 (Has_DT): New function.
10857 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
10858 True_Constant and Current_Value. Required to statically
10859 allocate the dispatch tables.
10860 (Check_Allocator): Make function iterative instead of recursive.
10861 Also return inner allocator node, when present, so that we do not have
10862 to look for that node again in the caller.
10864 2007-09-11 Jan Hubicka <jh@suse.cz>
10866 * misc.c (gnat_expand_body): Kill.
10867 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
10869 2007-09-10 Robert Dewar <dewar@adacore.com>
10871 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
10872 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10873 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10874 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
10875 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
10876 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
10877 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
10878 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
10879 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
10880 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
10881 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
10882 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
10883 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
10884 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
10885 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10886 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
10887 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
10888 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10889 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
10890 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
10891 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10892 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
10893 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
10894 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
10895 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
10896 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10897 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
10898 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
10899 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
10900 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
10901 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
10902 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
10903 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
10904 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
10905 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10906 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
10907 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10908 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
10909 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
10910 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
10911 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
10912 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10913 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10914 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
10915 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10916 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
10917 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
10918 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10919 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10920 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10921 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10922 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
10923 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
10924 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
10925 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10926 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
10927 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
10928 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10929 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
10930 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
10931 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10932 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10933 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
10934 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
10935 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
10936 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
10937 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10938 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
10939 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
10940 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
10941 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10942 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
10943 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
10944 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
10945 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
10946 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
10947 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
10948 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
10949 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10950 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10951 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10952 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10953 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10955 2007-09-10 Emmanuel Briot <briot@adacore.com>
10957 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10960 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
10962 * adaint.c (__gnat_translate_vms): new function.
10964 2007-09-10 Gary Dismukes <dismukes@adacore.com>
10965 Thomas Quinot <quinot@adacore.com>
10967 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10968 create an abstract subprogram in the case of 'Input. For 'Output we now
10969 create a real spec/body when the type is abstract, since it can
10970 potentially be called.
10971 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10972 body for 'Output when the type is abstract (only the creation of the
10973 body for 'Input is excluded when the type is abstract).
10974 (Stream_Operation_OK): Add an additional condition in the return
10975 statement, so that False will be returned for TTS_Stream_Input if the
10976 associated tagged type is an abstract extension. Add comments for
10978 (Expand_N_Object_Declaration): For the case of a shared passive
10979 variable, insert init proc call only after the shared variable
10980 procedures have been processed, because the IP call needs to undergo
10981 shared passive variable reference expansion, which requires these
10982 procedures to be available (and elaborated).
10984 2007-09-10 Vincent Celier <celier@adacore.com>
10986 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10987 parameter Runtime_Project.
10989 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10991 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10992 given a box association, the type of the component is discriminated,
10993 and the value of the discriminant is the discriminant of the enclosing
10994 type, retrieve its value from the aggregate itself, where it must have
10997 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10998 to remove other spurious ambiguities on arithmetic operations involving
10999 literals and addresses, on systems where Address is a visible integer
11000 type, when the operator is called in functional notation.
11001 (Try_Primitive_Operation): Within an instance, a call in prefixed form
11002 is legal when the types match, even if the operation is currently
11005 2007-09-10 Ed Schonberg <schonberg@adacore.com>
11007 * sem_ch12.adb (Build_Local_Package): A formal package with no
11008 associations is legal if all formals have defaults. It is not
11009 equivalent to a formal declared with a box.
11011 2007-09-10 Sergey Rybin <rybin@adacore.com>
11013 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
11015 2007-09-10 Sergey Rybin <rybin@adacore.com>
11017 * gnat_ugn.texi: Add description of the new '-lratio' option
11018 Update 7.3.1 section about availability of the feature.
11020 2007-09-10 Thomas Quinot <quinot@adacore.com>
11022 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
11025 2007-09-10 Olivier Hainque <hainque@adacore.com>
11027 * Makefile.in: (mips-irix section): Activate build of libgmem.
11029 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
11031 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
11034 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
11036 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
11037 a debug renaming declaration specially.
11039 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
11041 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
11042 which a constant renaming is treated as a normal object declaration.
11043 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
11044 the N_Indexed_Component case.
11045 <N_Indexed_Component>: Fall through to above case.
11046 <N_Object_Renaming_Declaration>: Return true for all composite types.
11048 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
11050 * decl.c (make_packable_type): If the new type has been given BLKmode,
11051 try again to get an integral mode for it.
11053 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
11055 Re-apply accidentally reverted change:
11057 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
11059 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
11060 get_action_description_for): Replace _Unwind_Word with _uleb128_t
11061 and _Unwind_SWord with _sleb128_t.
11063 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
11065 * trans.c (convert_with_check): Update call to real_2expN.
11067 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
11069 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
11070 * utils.c (end_subprog_body): Likewise.
11072 2007-09-03 Nick Clifton <nickc@redhat.com>
11074 * Make-lang.in: Change copyright header to refer to version 3 of
11075 the GNU General Public License and to point readers at the
11076 COPYING3 file and the FSF's license web page.
11077 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
11078 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
11079 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
11080 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
11083 2007-08-31 Vincent Celier <celier@adacore.com>
11087 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
11088 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
11089 (Check_Version_And_Help): New procedure in package Switch to process
11090 switches --version and --help.
11091 Use Check_Version_And_Help in GNAT tools
11094 (Compile_Sources): Make sure that sources that are "excluded" are not
11096 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
11097 project file is used.
11098 (Version_Switch): Remove, moved to Switch
11099 (Help_Switch): Remove, moved to Switch
11100 (Display_Version): Remove, moved to Switch
11102 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
11103 package Switch to process switches --version and --help.
11104 (Display_Version): New procedure
11106 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
11108 2007-08-31 Javier Miranda <miranda@adacore.com>
11110 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
11113 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
11115 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
11116 (Mark_Non_Null): If the node for which we just generated an access check
11117 is a reference to an *in* parameter and the reference appears in the
11118 declarative part of a subprogram body, mark the node as known non null.
11120 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
11122 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
11123 structure of E_Exception to reflect the new flag.
11124 (Is_Raised, Set_Is_Raised): New inlined routines.
11125 Update the usage of available flag to reflect the addition of Is_Raised.
11126 (Is_Raised, Set_Is_Raised): Bodies of new routines.
11127 (Write_Entity_Flags): Write the status of flag Is_Raised.
11128 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
11129 spurious ambiguities when integer literals appear in the context of an
11130 address type that is a visible integer type.
11132 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
11133 exceptions never being raised.
11134 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
11137 2007-08-31 Javier Miranda <miranda@adacore.com>
11139 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
11140 statement when compiling under restriction No_Exceptions_Proparation.
11142 2007-08-31 Ed Schonberg <schonberg@adacore.com>
11144 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
11145 initialization aggregate for the type, generate itype references for
11146 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
11148 2007-08-31 Gary Dismukes <dismukes@adacore.com>
11150 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
11151 library-level package renaming, pass the declaration associated with
11152 the renaming's special debug variable to Qualify_Entity_Names to ensure
11153 that its encoded name is properly qualified.
11155 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
11156 occurring in the list of entities to qualify, and do not attempt to
11157 traverse an entity list in that case. Variables associated with
11158 ` library-level package renamings can now occur in the table.
11160 * exp_dbug.ads: Revise documentation of the encoding for renaming
11163 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11165 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
11166 access type points to an unconstrained array.
11168 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
11170 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
11173 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
11174 simple redundant qualifications. The check is performed whenever the
11175 expression is a non-overloaded identifier.
11176 (Resolve_Type_Conversion): Enchance the redundant type conversion check
11177 to include loop parameters.
11178 (Valid_Conversion): Avoid generation of spurious error message.
11180 2007-08-31 Bob Duff <duff@adacore.com>
11182 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
11183 concatenations of string literals into a single literal, in order to
11184 avoid very deep recursion in the front end, which was causing stack
11187 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
11188 string, and the right operand is a string literal (the case of "" &
11189 "..."), optimize by avoiding copying the right operand -- just use the
11190 value of the right operand directly.
11192 * stringt.adb (Store_String_Chars): Optimize by growing the
11193 String_Chars table all at once, rather than appending characters one by
11195 (Write_String_Table_Entry): If the string to be printed is very long,
11196 just print the first few characters, followed by the length. Otherwise,
11197 doing "pn(n)" in the debugger can take an extremely long time.
11199 * sem_prag.adb (Process_Interface_Name): Replace loop doing
11200 Store_String_Char with Store_String_Chars.
11202 2007-08-31 Vincent Celier <celier@adacore.com>
11204 * prj-attr.adb: Add new attribute Excluded_Source_Files
11206 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
11207 Locally_Removed_Files.
11209 * snames.ads, snames.adb: New standard name Excluded_Source_Files
11211 2007-08-31 Ed Schonberg <schonberg@adacore.com>
11213 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
11214 clauses of subunits, ignore limited_with_clauses that are illegal and
11215 have not been fully analyzed.
11217 2007-08-31 Ed Schonberg <schonberg@adacore.com>
11219 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
11220 flag, for effiency. It is called when analyzing arithmetic operators
11221 and also for actuals in calls that are universal_integers. The flag is
11222 set for the predefined type address, and for any type or subtype
11225 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
11226 Universal_Integer, when the formal is a descendent of address and the
11227 call appears in user code.
11228 (Analyze_Selected_Component): if the prefix is a private extension, the
11229 tag component is visible.
11231 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
11234 2007-08-31 Robert Dewar <dewar@adacore.com>
11236 * s-fileio.adb (Open): Normalize file name to lower case in non-case
11237 sensitive file name systems to avoid unexpected mismatch in Vista.
11239 2007-08-31 Vincent Celier <celier@adacore.com>
11241 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
11243 2007-08-31 Vincent Celier <celier@adacore.com>
11245 * symbols-vms.adb (Initialize): Read symbol files with continuation
11247 (Finalize): If symbol is long, split the line
11249 2007-08-31 Vincent Celier <celier@adacore.com>
11251 * fmap.ads: Minor comment updates
11253 2007-08-31 GNAT Script <nobody@adacore.com>
11255 * Make-lang.in: Makefile automatically updated
11257 2007-08-31 Bob Duff <duff@adacore.com>
11259 * sinfo.ads: Minor comment fix.
11261 2007-08-31 Thomas Quinot <quinot@adacore.com>
11263 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
11264 with implementation.
11265 Documentation cleanup only.
11267 2007-08-31 Sergey Rybin <rybin@adacore.com>
11269 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
11270 gnatpp '--separate-stmt-name' option.
11271 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
11274 * gnat_ugn.texi: Add description for the new gnatpp
11275 '--separate-stmt-name' and '--use-on-new-line' options.
11277 2007-08-31 Ben Elliston <bje@au.ibm.com>
11279 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
11280 when compiling for powerpc64-*-linux.
11281 * system-linux-ppc64.ads: New file.
11283 2007-08-22 Krister Walfridsson <cato@df.lth.se>
11285 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
11288 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11290 * misc.c (gnat_type_max_size): Constify.
11292 2007-08-16 Gary Dismukes <dismukes@adacore.com>
11294 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
11295 associated with Standard_Debug_Renaming_Type, to be used as the type of
11296 the special variables whose names provide debugger encodings for
11297 renaming declarations.
11299 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
11300 (Set_Debug_Renaming_Link): Change to set Node25.
11301 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
11302 (Write_Field25_Name): Add case for E_Variable to output
11303 "Debug_Renaming_Link".
11304 (Write_Field23_Name): Correct the output string for "Limited_View".
11306 * exp_dbug.adb: Add with and use of Tbuild.
11307 (Debug_Renaming_Declaration): Replace creation of an enumeration type
11308 and literal with creation of a variable of type
11309 Standard_Debug_Renaming_Type whose name encodes both the renamed object
11310 and the entity of the renaming declaration.
11311 (Qualify_Entity_Name): Add the delayed qualification of the entity name
11312 part of the name of a variable that has a Debug_Renaming_Link.
11314 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
11315 special type to be associated with variables that provide debugger
11316 encodings for renaming declarations.
11318 2007-08-16 Gary Dismukes <dismukes@adacore.com>
11319 Ed Schonberg <schonberg@adacore.com>
11320 Javier Miranda <miranda@adacore.com>
11322 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
11323 ancestor part given by an aggregate to test for an unchecked conversion,
11324 since this can occur in some cases when the ancestor part is a function
11325 call, and we don't want to fall into the recursive call to this
11326 procedure in that case.
11328 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
11329 stream attributes on limited types to account for user-specified
11330 attributes as well as whether Input (resp. Output) becomes available
11331 due to Read (resp. Write) being available for the type. Change Boolean
11332 variable to the more accurate name
11333 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
11334 double-"not" predicate at beginning of return statement to more
11335 understandable form.
11337 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
11338 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
11339 in a block statement and use that as the first statement of the
11340 expanded return rather than incorrectly using the handled sequence as
11341 the first statement.
11343 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
11344 operation, generate an explicit freeze node for it rather than
11345 generating extra formals, to ensure that gigi has the proper order of
11346 elaboration for anonymous subtypes in the signature of the subprograms.
11347 (Build_In_Place_Formal): Move assertion to beginning of loop.
11348 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
11349 applied to a function call (occurs for some cases of 'Input).
11350 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
11351 applied to a function call (occurs for some cases of 'Input).
11353 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
11354 2005, generate an extended return statement enclosing the result object
11357 * freeze.adb (Freeze_Record_Type): Extend the current management of
11358 components that are access type with an allocator as default value: add
11359 missing support to the use of qualified expressions of the
11360 allocator (which also cause freezing of the designated type!)
11361 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
11362 dispatching operation, since extra formals may be needed by calls to
11363 build-in-place functions (such as stream 'Input).
11365 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
11366 formals for 'Constrained and accessibility level in the case of a
11367 predefined dispatching operation.
11369 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
11370 point, no need to find the parent node.
11372 2007-08-16 Javier Miranda <miranda@adacore.com>
11374 * exp_attr.adb (Attribute_Priority): Add missing support for entries
11375 and entry barriers.
11377 2007-08-16 Javier Miranda <miranda@adacore.com>
11379 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
11380 is not really required and can introduce regression with the debugger.
11381 The original problem is fixed with the patch written for checks.adb.
11383 2007-08-16 Thomas Quinot <quinot@adacore.com>
11385 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
11386 Range_Check on Allocated_Table.
11388 2007-08-16 Vincent Celier <celier@adacore.com>
11390 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
11391 Including_Non_Switch set to False.
11392 (Gnatmake): For the compiler, call Test_If_Relative_Path with
11393 Including_Non_Switch set to False.
11395 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
11396 parameter Including_Non_Switch, defaulted to True. When
11397 Including_Non_Switch is False, options that are not switches and
11398 appear as relative path are not converted to absolute paths.
11400 2007-08-16 Nicolas Roche <roche@adacore.com>
11402 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
11405 * Make-lang.in: Update dependencies
11407 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
11409 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
11410 currently inspected is a selected component, retrieve the entity of
11412 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
11413 from the immediate ancestor of Main_Unit_Entity.
11414 (Install_Limited_Withed_Unit): Do not install the limited view of
11415 package P if P is reachable through an ancestor chain from package C
11416 and C also has a with clause for P in its body.
11417 (Has_Limited_With_Clause): New routine.
11418 (Has_With_Clause): New routine.
11420 2007-08-16 Ed Schonberg <schonberg@adacore.com>
11422 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
11423 generic for an enclosing instance is a global reference, even though
11424 its scope is the enclosing instance.
11426 2007-08-16 Gary Dismukes <dismukes@adacore.com>
11427 Javier Miranda <miranda@adacore.com>
11429 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
11430 initialize a limited object.
11431 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
11433 Make sure Has_Complex_Representation is inherited by derived type.
11435 2007-08-16 Robert Dewar <dewar@adacore.com>
11437 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
11440 2007-08-16 Ed Schonberg <schonberg@adacore.com>
11442 * sem_disp.adb (Check_Dispatching_Operation): If the operation
11443 implements an operation inherited from a progenitor interface, verify
11444 that they are subtype-conformant.
11446 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
11447 Bob Duff <duff@adacore.com>
11448 Nicolas Setton <setton@adacore.com>
11450 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
11451 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
11452 the statement which is being resolved comes from a predefined library
11453 unit, all non-predefined library interpretations are skipped.
11454 (Resolve_Op_Concat): If string concatenation was folded in the parser,
11455 but the "&" is user defined, give an error, because the folding would
11458 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
11459 the parser has folded a long sequence of concatenations of string
11462 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
11463 and "JMP_BUF" variables as artificial.
11464 (N_String_Literal): Do not use alloca for very long string literals. Use
11465 xmalloc/free instead. Otherwise the stack might overflow.
11467 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
11470 2007-08-16 Vincent Celier <celier@adacore.com>
11472 * vms_conv.adb (Process_Argument): Ensure that project related options
11473 are not put in the -cargs section when using GNAT COMPILE.
11475 2007-08-16 Robert Dewar <dewar@adacore.com>
11477 * gnat_ugn.texi: Add note on preprocessing (output file not written)
11479 2007-08-16 Thomas Quinot <quinot@adacore.com>
11481 * a-tags.adb: Minor reformatting.
11483 2007-08-16 Bob Duff <duff@adacore.com>
11485 * sem_type.ads, sem_ch4.adb: Minor reformatting.
11487 2007-08-14 Thomas Quinot <quinot@adacore.com>
11489 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
11490 s-osinte-interix.ads, system-interix.ads: Removed.
11492 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11494 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
11495 calls to Check_Within_Time_Bounds.
11496 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
11497 (Difference): Account for possible rounding of the resulting difference
11499 2007-08-14 Robert Dewar <dewar@adacore.com>
11501 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
11502 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
11503 s-osinte-solaris.adb, s-osinte-solaris.ads,
11504 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
11506 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
11507 switch -gnatyS. Enable -gnatyS in GNAT style check mode
11509 2007-08-14 Robert Dewar <dewar@adacore.com>
11510 Ed Schonberg <schonberg@adacore.com>
11512 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
11513 Suppress unmodified in-out parameter warning in some cases
11514 This patch is a also fairly significant change to the way suppressible
11515 checks are handled.
11517 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
11518 needed for access to concurrent record types generated by the expander.
11519 (Generate_Range_Check): When generating a temporary to capture the
11520 value of a conversion that requires a range check, set the type of the
11521 temporary before rewriting the node, so that the type is always
11522 properly placed for back-end use.
11523 (Apply_Float_Conversion_Check): Handle case where the conversion is
11525 (Get_Discriminal): Code reformatting. Climb the scope stack looking
11526 for a protected type in order to examine its discriminants.
11528 2007-08-14 Robert Dewar <dewar@adacore.com>
11529 Gary Dismukes <dismukes@adacore.com>
11530 Ed Schonberg <schonberg@adacore.com>
11531 Thomas Quinot <quinot@adacore.com>
11533 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
11534 a-stwisu.adb, a-strsup.adb: Fix warnings for range
11535 tests optimized out.
11537 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
11538 (Get_Allocator_Final_List): For the case of an anonymous access type
11539 that has a specified Associated_Final_Chain, do not go up to the
11541 (Expand_N_Type_Conversion): Test for the case of renamings of access
11542 parameters when deciding whether to apply a run-time accessibility
11544 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
11545 aggregate code before allocator, and ahead of declaration for
11546 temporary, to prevent access before elaboration when the allocator is
11547 an actual for an access parameter.
11548 (Expand_N_Type_Conversion): On an access type conversion involving an
11549 access parameter, do not apply an accessibility check when the
11550 operand's original node was an attribute other than 'Access. We now
11551 create access conversions for the expansion of 'Unchecked_Access and
11552 'Unrestricted_Access in certain cases and clearly accessibility should
11553 not be checked for those.
11555 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
11556 includes a type conversion of a packed component that has been expanded,
11557 recover the original expression for the object, and use this expression
11558 in the post-call assignment statement, so that the assignment is made
11559 to the object and not to a back-end temporary.
11560 (Freeze_Subprogram): In case of primitives of tagged types not defined
11561 at the library level force generation of code to register the primitive
11562 in the dispatch table. In addition some code reorganization has been
11563 done to leave the implementation clear.
11564 (Expand_Call): When expanding an inherited implicit conversion,
11565 preserve the type of the inherited function after the intrinsic
11566 operation has been expanded.
11568 * exp_ch2.ads, exp_ch2.adb
11569 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
11570 of an entry formal appearing in an assignment statement does not assign
11572 (Expand_Current_Value): Instead of calling a routine to determine
11573 whether the prefix of an attribute reference should be optimized or
11574 not, prevent the optimization of such prefixes all together.
11576 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
11577 component whose prefix is known to be of an access type is an implicit
11578 dereference and does not assign to the prefix.
11580 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11581 Robert Dewar <dewar@adacore.com>
11583 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
11584 itype is visited, make an entry into table to link associated node and
11586 Add comments and correct harmless error in Build_NCT_Hash_Tables
11587 (Array_Aggr_Subtype): Associate each itype created for an index type to
11588 the corresponding range construct, and not to the aggregate itself. to
11589 maintain a one-to-one correspondence between itype and its associated
11590 node, to prevent errors when complex expression is copied.
11591 Fix mishandling of multiple levels of parens
11593 * sem_aggr.adb: Create a limited view of an incomplete type, to make
11594 treatment of limited views uniform for all visible declarations in a
11595 limited_withed package.
11596 (New_Copy_Tree): If hash table is being used and itype is visited,
11597 make an entry into table to link associated node and new itype.
11598 (Resolve_Record_Aggregate): Do not add an others box association for a
11599 discriminated record component that has only discriminants, when there
11600 is a box association for the component itself.
11602 * par-ch4.adb: Fix mishandling of multiple levels of parens
11604 2007-08-14 Robert Dewar <dewar@adacore.com>
11606 * comperr.adb: Fix problem with suppressing warning messages from gigi
11608 * erroutc.ads, erroutc.adb, errout.ads,
11609 errout.adb (Write_Eol): Remove trailing spaces before writing the line
11610 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11611 possible trailing spaces.
11612 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11613 Fix problem with suppressing warning messages from back end
11614 Improve handling of deleted warnings
11617 Fix problem with suppressing warning messages from back end
11618 Handle setting of Static_Dispatch_Tables flag.
11621 Fix problem with suppressing warning messages from back end
11623 * exp_intr.adb: Improve handling of deleted warnings
11625 2007-08-14 Robert Dewar <dewar@adacore.com>
11627 * debug.adb: Improve -gnatdI to cover all cases of serialization
11628 Add documentation of dZ, d.t
11630 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
11632 (Sprint_Node_Actual): Generate new output associated with implicit
11633 importation and implicit exportation of object declarations.
11635 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11636 Robert Dewar <dewar@adacore.com>
11637 Javier Miranda <miranda@adacore.com>
11638 Gary Dismukes <dismukes@adacore.com>
11640 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
11641 to make treatment of limited views uniform for all visible declarations
11642 in a limited_withed package.
11643 Improve warnings for in out parameters
11644 (Set_Related_Interaface/Related_Interface): Allow the use of this
11645 attribute with constants.
11646 (Write_Field26_Name): Handle attribute Related_Interface in constants.
11647 Warn on duplicate pragma Preelaborable_Initialialization
11649 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
11650 generation of a freezing node to ensure proper management of null
11651 excluding access types in the backend.
11652 (Create_Extra_Formals): Test base type of the formal when checking for
11653 the need to add an extra accessibility-level formal. Pass the entity E
11654 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
11655 originally being done in a couple of cases), to ensure that the
11656 Extra_Formals list gets set on the entity E when the first entity is
11658 (Conforming_Types): Add missing calls to Base_Type to the code that
11659 handles anonymous access types. This is required to handle the
11660 general case because Process_Formals builds internal subtype entities
11661 to handle null-excluding access types.
11662 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
11663 functions that need it, even when not marked Requires_Overriding.
11664 Improve warnings for in out parameters
11665 (Analyze_Function_Return): Warn for disallowed null return
11666 Warn on return from procedure with unset out parameter
11667 Ensure consistent use of # in error messages
11668 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
11669 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
11670 the implicit conversion of the expression done for anonymous access
11671 types. This is required to generate the code of the null excluding
11672 check (if required).
11674 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
11675 A formal parameter is never publicly referenceable outside of its body.
11676 (Check_References): For an unreferenced formal parameter in an accept
11677 statement, use the same warning circuitry as for subprogram formal
11679 (Warn_On_Unreferenced_Entity): New subprogram, taken from
11680 Output_Unreferenced_Messages, containing the part of that routine that
11681 is now reused for entry formals as described above.
11682 (Goto_Spec_Entity): New function
11683 (Check_References): Do not give IN OUT warning for dispatching operation
11684 Improve warnings for in out parameters
11685 (Test_Ref): Check that the entity is not undefinite before calling
11686 Scope_Within, in order to avoid infinite loops.
11687 Warn on return from procedure with unset out parameter
11688 Improved warnings for unused variables
11690 2007-08-14 Robert Dewar <dewar@adacore.com>
11691 Javier Miranda <miranda@adacore.com>
11692 Gary Dismukes <dismukes@adacore.com>
11694 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
11695 (Expand_N_Attribute_Reference): Further unify the handling of the
11696 three forms of access attributes, using common code now for all three
11697 cases. Add a test for the case of applying an access attribute to
11698 an explicit dereference when the context is an access-to-interface
11699 type. In that case we need to apply the conversion to the prefix
11700 of the explicit dereference rather than the prefix of the attribute.
11701 (Attribute_Version, UET_Address): Set entity as internal to ensure
11702 proper dg output of implicit importation.
11703 (Expand_Access_To_Type): Removed.
11704 (Expand_N_Attribute_Reference): Merge the code from the three cases
11705 of access attributes, since the processing is largely identical for
11706 these cases. The substantive fix here is to process the case of a
11707 type name prefix (current instance case) before handling the case
11708 of interface prefixes.
11710 2007-08-14 Thomas Quinot <quinot@adacore.com>
11711 Ed Schonberg <schonberg@adacore.com>
11712 Javier Miranda <miranda@adacore.com>
11713 Robert Dewar <dewar@adacore.com>
11715 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
11716 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
11717 type that is an anonymous access to controlled object, establish
11718 an associated finalization chain to avoid corrupting the global
11719 finalization list when a dynamically allocated object designated
11720 by such a component is deallocated.
11721 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
11722 functions that need it, even when not marked Requires_Overriding.
11723 (Initialize_Tag): Replace call to has_discriminants by call to
11724 Is_Variable_Size_Record in the circuitry that handles the
11725 initialization of secondary tags.
11726 (Is_Variable_Size_Record): New implementation.
11727 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
11728 Suppress_Initialization pragma for a derived type.
11729 (Is_Variable_Size_Record): New subprogram.
11730 (Build_Offset_To_Top_Functions): New implementation that simplifies the
11731 initial version of this routine and also fixes problems causing
11732 incomplete initialization of the table of interfaces.
11733 (Build_Init_Procedure): Improve the generation of code to initialize the
11734 the tag components of secondary dispatch tables.
11735 (Init_Secondary_Tags): New implementation that simplifies the previous
11736 version of this routine.
11737 (Make_DT): Add parameter to indicate when type has been frozen by an
11738 object declaration, for diagnostic purposes.
11739 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
11740 diagnose attemps to freeze a subprogram when some untagged type of its
11741 profile is a private type whose full view has not been analyzed yet.
11742 (Freeze_Array_Type): Generate init proc for packed array if either
11743 Initialize or Normalize_Scalars is set.
11744 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
11745 constructing the new profile, copy the null_exclusion indicator for each
11746 parameter, to ensure full conformance of the new body with the spec.
11748 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
11749 Create wrappers for constructor functions that need it, even when not
11750 marked Requires_Overriding.
11751 (Covers): Handle properly designated types of anonymous access types,
11752 whose non-limited views are themselves incomplete types.
11753 (Add_Entry): Use an entity to store the abstract operation which hides
11755 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
11756 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
11757 initialization aggregate.
11758 (Function_Interp_May_Be_Hidden): Rename to
11759 Function_Interp_Has_Abstract_Op.
11760 (Has_Compatible_Type): Remove machinery that skips interpretations if
11761 they are labeled as potentially hidden by an abstract operator.
11762 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
11763 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
11764 (Write_Overloads): Output the abstract operator if present.
11765 (Add_Entry): Before inserting a new entry into the interpretation table
11766 for a node, determine whether the entry will be disabled by an abstract
11768 (Binary_Op_Interp_May_Be_Hidden): New routine.
11769 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
11771 (Function_Interp_May_Be_Hidden): New routine.
11772 (Has_Compatible_Type): Do not consider interpretations hidden by
11773 abstract operators when trying to determine whether two types are
11775 (Has_Hidden_Interp): New routine.
11776 (Set_May_Be_Hidden_Interp): New routine.
11777 (Write_Overloads): Write the status of flag May_Be_Hidden.
11779 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11780 Javier Miranda <miranda@adacore.com>
11782 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
11783 types declared in the declarative part of a nested package body or in
11784 the proper body of a stub.
11785 (Set_All_DT_Position): Add missing check to avoid wrong assignation
11786 of the same dispatch table slot to renamed primitives.
11787 (Make_Select_Specific_Data_Table): Handle private types.
11788 (Tagged_Kind): Handle private types.
11789 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
11790 output of implicit importation and exportation.
11791 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
11792 first formal of the thunk is always associated with the controlling
11793 type. In addition perform the following code cleanup: remove formal
11794 Thunk_Alias which is no longer required, cleanup evaluation of the
11795 the controlling type, and update the documentation.
11796 Replace occurrence of Default_Prim_Op_Count by
11797 Max_Predef_Prims. Addition of compile-time check to verify
11798 that the value of Max_Predef_Prims is correct.
11799 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
11800 (Make_DT): Add parameter to indicate when type has been frozen by an
11801 object declaration, for diagnostic purposes.
11802 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
11803 construction of statically allocated dispatch tables.
11804 (Make_DT): In case of library-level tagged types export the declaration
11805 of the primary tag. Remove generation of tags (now done by Make_Tags).
11806 Additional modifications to handle non-static generation of dispatch
11807 tables. Take care of building tables for asynchronous interface types
11808 (Make_Tags): New subprogram that generates the entities associated with
11809 the primary and secondary tags of Typ and fills the contents of Access_
11810 Disp_Table. In case of library-level tagged types imports the forward
11811 declaration of the primary tag that will be declared later by Make_DT.
11812 (Expand_Interface_Conversion): In case of access types to interfaces
11813 replace an itype declaration by an explicit type declaration to avoid
11814 problems associated with the scope of such itype in transient blocks.
11816 2007-08-14 Robert Dewar <dewar@adacore.com>
11817 Ed Schonberg <schonberg@adacore.com>
11818 Javier Miranda <miranda@adacore.com>
11820 * exp_util.ads, exp_util.adb:
11821 This patch replaces a number of occurrences of explicit tests for N_Null
11822 with calls to Known_Null. This improves tracking of null values, since
11823 Known_Null also catches null constants, and variables currently known to
11824 be null, so we get better tracking.
11825 (Ensure_Defined): create an itype reference only in the scope of the
11827 (Side_Effect_Free): A selected component of an access type that
11828 denotes a component with a rep clause must be treated as not
11829 side-effect free, because if it is part of a linked structure its
11830 value may be affected by a renaming.
11831 (Expand_Subtype_From_Expr): For limited objects initialized with build
11832 in place function calls, do nothing; otherwise we prematurely introduce
11833 an N_Reference node in the expression initializing the object, which
11834 breaks the circuitry that detects and adds the additional arguments to
11835 the called function. Bug found working in the new patch for statically
11836 allocated dispatch tables.
11837 (Is_Library_Level_Tagged_Type): New subprogram.
11838 (Remove_Side_Effects): If the expression of an elementary type is an
11839 operator treat as a function call.
11840 (Make_Literal_Range): If the index type of the array is not integer, use
11841 attributes properly to compute the constraint on the resulting aggregate
11844 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
11845 class-wide type whose base type is an incomplete private type, leave
11846 class-wide type unfrozen so that freeze nodes can be generated
11847 properly at a later point.
11848 (Freeze_Entity, array case): Handle case of pragma Pack and component
11849 size attributre clause for same array.
11851 2007-08-14 Vincent Celier <celier@adacore.com>
11853 * prj.ads, prj.adb: Update Project Manager to new attribute names for
11855 Allow all valid declarations in configuration project files
11856 (Reset): Initialize all tables and hash tables in the project tree data
11857 Major update of the Project Manager and of the project aware tools,
11858 including gprmake, so that the same sources in the GNAT repository
11859 can be used by gprbuild.
11860 (Slash_Id): Change type to be Path_Name_Type
11861 (Slash): Return a Path_Name_Type instead of a File_Name_Type
11863 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
11865 Update Project Manager to new attribute names for ghprbuild
11866 Allow all valid declarations in configuration project files
11867 Major update of the Project Manager and of the project aware tools,
11868 including gprmake, so that the same sources in the GNAT repository
11869 can be used by gprbuild.
11872 Major update of the Project Manager and of the project aware tools,
11873 including gprmake, so that the same sources in the GNAT repository
11874 can be used by gprbuild.
11876 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11877 insensitive flag for attributes with optional index.
11878 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11879 array attribute, put the index in lower case.
11880 Update Project Manager to new attribute names for ghprbuild
11881 Allow all valid declarations in configuration project files
11882 Major update of the Project Manager and of the project aware tools,
11883 including gprmake, so that the same sources in the GNAT repository
11884 can be used by gprbuild.
11886 * prj-env.ads, prj-env.adb:
11887 Major update of the Project Manager and of the project aware tools,
11888 including gprmake, so that the same sources in the GNAT repository
11889 can be used by gprbuild.
11890 (Get_Reference): Change type of parameter Path to Path_Name_Type
11892 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
11893 removing '-' from the path to start with the first character of the
11895 Major update of the Project Manager and of the project aware tools,
11896 including gprmake, so that the same sources in the GNAT repository
11897 can be used by gprbuild.
11898 Major update of the Project Manager and of the project aware tools,
11899 including gprmake, so that the same sources in the GNAT repository
11900 can be used by gprbuild.
11902 * prj-nmsc.ads, prj-nmsc.adb:
11903 Update Project Manager to new attribute names for ghprbuild
11904 Allow all valid declarations in configuration project files
11905 (Search_Directories): Detect subunits that are specified with an
11906 attribute Body in package Naming. Do not replace a source/unit in the
11907 same project when the order of the source dirs are known. Detect
11908 duplicate sources/units in the same project when the order of the
11909 source dirs are not known.
11910 (Check_Ada_Name): Allow all identifiers that are not reserved words
11912 Major update of the Project Manager and of the project aware tools,
11913 including gprmake, so that the same sources in the GNAT repository
11914 can be used by gprbuild.
11915 (Look_For_Sources): If the list of sources is empty, set the object
11916 directory of non extending project to nil.
11917 Change type of path name variables to be Path_Name_Type
11918 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
11919 otherwise creating missing directories will fail.
11921 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
11922 prj-part.ads, prj-part.adb:
11923 Major update of the Project Manager and of the project aware tools,
11924 including gprmake, so that the same sources in the GNAT repository
11925 can be used by gprbuild.
11927 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11928 insensitive flag for attributes with optional index.
11929 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11930 array attribute, put the index in lower case.
11931 (Parse_Variable_Reference): Allow the current project name to be used in
11932 the prefix of an attribute reference.
11934 * prj-util.ads, prj-util.adb
11935 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
11936 defaulted to False. When True, always check against indexes in lower
11939 * snames.ads, snames.h, snames.adb:
11940 Update Project Manager to new attribute names for gprbuild
11941 Allow all valid declarations in configuration project files
11943 2007-08-14 Robert Dewar <dewar@adacore.com>
11944 Ed Schonberg <schonberg@adacore.com>
11946 * opt.ads: Warning for non-local exception propagation now off by
11948 New switch -gnatI to disable representation clauses
11949 Implement new pragma Implicit_Packing
11952 Warning for non-local exception propagation now off by default
11953 Add warning for unchecked conversion of pointers wi different
11955 New switch -gnatI to disable representation clauses
11957 * usage.adb: new switch -gnatyS
11959 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11960 note that aggregates of anonymous array types are not flagged.
11961 -gnatwc now includes membership tests optimized away
11962 -gnatw.x warnings are now off by default
11963 Added conditional compilation Appendix
11964 Add documentation of -gnatI
11965 Add documentation for new -gnatyS style check
11966 Update documentation about SAL and auto-init on Windows.
11969 Add documentation for pragma Check_Name and 'Enabled attribute
11970 Document that Eliminate on dispatching operation is ignored
11971 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11972 Document pragma Main
11973 Document pragma Implicit_Packing
11975 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11976 different conventions
11977 New switch -gnatI to disable representation clauses
11979 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11980 recognized, report the invalid characters including "-gnat" instead of
11981 just the first character in the switch.
11982 New switch -gnatI to disable representation clauses
11983 Set Warn_On_Object_Renames_Function true for -gnatg
11985 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11986 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11987 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11988 to switch -aP (add directory to project search dir).
11990 * par-prag.adb: Implement new pragma Implicit_Packing
11992 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11993 type as having a non-standard representation, to force expansion on
11994 conversion to related types.
11995 (Analyze_Pragma): Warn on misspelled pragma
11996 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11997 Ensure consistent use of # in error messages
11998 Implement pragma Implicit_Packing
12000 2007-08-14 Olivier Hainque <hainque@adacore.com>
12001 Eric Botcazou <ebotcazou@adacore.com>
12003 * targtyps.c (get_target_maximum_default_alignment): New function.
12005 that the compiler might choose by default for a type or object.
12006 (get_target_default_allocator_alignment): New function. Alignment known
12007 to be honored by the target default allocator.
12008 (get_target_maximum_allowed_alignment): New function. Maximum alignment
12009 we might accept for any type or object on the target.
12010 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
12012 * gigi.h (get_target_maximum_default_alignment): Declare new function.
12013 (get_target_default_allocator_alignment): Likewise.
12014 (get_target_maximum_allowed_alignment): Likewise.
12017 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
12018 result of a function call, first try to use a stabilized reference for
12019 a constant renaming too.
12020 (validate_alignment): Use target_maximum_allowed_alignment instead of
12021 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
12022 (gnat_to_gnu_entity): Use common nodes directly.
12023 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
12024 alignment and size for the object.
12025 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
12026 and N_Procedure_Call_Statement.
12027 (takes_address): Rename to lvalue_required_p, add third parameter
12028 'aliased' and adjust recursive calls.
12029 <N_Indexed_Component>: Update 'aliased' from the array type.
12030 <N_Selected_Component>: New case.
12031 <N_Object_Renaming_Declaration>: New Likewise.
12032 (Identifier_to_gnu): Adjust for above changes.
12033 (maybe_stabilize_reference) <CONST_DECL>: New case.
12035 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
12036 between type variants.
12037 (build_simple_component_ref): Likewise.
12038 (build_call_alloc_dealloc): Use target_default_allocator_alignment
12039 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
12040 aligning type circuitry for allocations from the default storage pool.
12041 (build_allocator): Likewise.
12042 (build_simple_component_ref): Manually fold the reference for a
12043 constructor if the record type contains a template.
12045 * utils.c (value_zerop): Delete.
12046 (gnat_init_decl_processing): Emit debug info for common types.
12047 (rest_of_record_type_compilation): If a union contains a field
12048 with a non-constant qualifier, treat it as variable-sized.
12049 (finish_record_type): Give the stub TYPE_DECL a name.
12050 (rest_of_record_type_compilation): Likewise.
12051 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
12052 types are equivalent array types.
12053 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
12054 even if the type is not passed by reference.
12055 (static_ctors, static_dtors): Delete.
12056 (end_subprog_body): Do not record constructors and destructors.
12057 (build_global_cdtor): Delete.
12058 (gnat_write_global_declarations): Do not call build_global_cdtor.
12060 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
12061 -fRTS=rtp is specified.
12062 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
12065 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
12066 of the personality function with SJLJ exceptions.
12068 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
12069 the name of the personality function with SJLJ exceptions.
12071 2007-08-14 Robert Dewar <dewar@adacore.com>
12072 Ed Schonberg <schonberg@adacore.com>
12074 * par.ads, par.adb: Improve handling of extra right parens.
12075 (Par): Remove flag From_Limited_With_Clause.
12077 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
12078 Improve handling of extra right parens.
12080 2007-08-14 Robert Dewar <dewar@adacore.com>
12082 * par-tchk.adb (TF_Semicolon): Improve error recovery
12084 2007-08-14 Robert Dewar <dewar@adacore.com>
12085 Ed Schonberg <schonberg@adacore.com>
12087 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
12088 enumeration type, mark all literals as referenced.
12089 (Eval_Attribute, case 'Image): If the argument is an enumeration
12090 literal and names are available, constant-fold but mark nevertheless as
12092 Clean up function names.
12093 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
12095 (Requires_Simple_Name_Prefix): Removed.
12097 2007-08-14 Robert Dewar <dewar@adacore.com>
12098 Ed Schonberg <schonberg@adacore.com>
12100 * sem_ch11.adb: Improved warnings for unused variables
12102 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
12103 is a synchronized interface, the derived type is limited.
12104 (Analyze_Object_Declaration): Mark the potential coextensions in the
12105 definition and expression of an object declaration node.
12106 (Build_Derived_Type): For the completion of a private type declaration
12107 with a derived type declaration, chain the parent type's representation
12108 items to the last representation item of the derived type (not the
12109 first one) if they are not present already.
12110 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
12111 object declaration of forward references to tags.
12112 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
12113 subprogram types can appear as access discriminants of synchronized
12115 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
12116 given in prefixed form as a selected component.
12117 (Process_Discriminants): If not all discriminants have defaults, place
12118 error message on a default that is present.
12119 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
12120 extend a synchronized tagged type.
12121 Improved warnings for unused variables
12122 (Is_Visible_Component): Fix a visibility hole on a component inherited
12123 by a private extension when parent is itself declared as a private
12124 extension, and the derivation is in a child unit.
12125 (Find_Hidden_Interface): Move spec from the package body.
12127 2007-08-14 Robert Dewar <dewar@adacore.com>
12128 Ed Schonberg <schonberg@adacore.com>
12130 * sem_ch5.adb: Improve warnings on redundant assignments
12132 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
12134 (Is_Synchronized_Tagged_Type): New subprogram that returns true
12135 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
12136 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
12137 is set to False. Improves handling of Known_[Not_]Null.
12138 (Wrong_Type): Special case address arithmetic attempt
12139 (Collect_Abstract_Interfaces): Add new formal to allow collecting
12140 abstract interfaces just using the partial view of private types.
12141 (Has_Abstract_Interfaces): Add new formal to allow checking types
12142 covering interfaces using the partial view of private types.
12143 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
12144 component still needs to be defined in this case, but is never
12145 initialized as VMs are using other dispatching mechanisms.
12146 (Abstract_Interface_List): For a protected type, use base type to get
12147 proper declaration.
12148 Improve warnings on redundant assignments
12149 (Is_Variable): Handle properly an implicit dereference of a prefixed
12151 (Build_Actual_Subtype): If this is an actual subtype for an
12152 unconstrained formal parameter, use the sloc of the body for the new
12153 declaration, to prevent anomalises in the debugger.
12155 2007-08-14 Robert Dewar <dewar@adacore.com>
12157 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
12158 dispatching operation
12160 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12161 Gary Dismukes <dismukes@adacore.com>
12164 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
12165 expanded aggregate code before allocator, and ahead of declaration for
12166 temporary, to prevent access before elaboration when the allocator is
12167 an actual for an access parameter.
12168 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
12169 the TSD and the table of interfaces.
12170 (Convert_To_Assignments): Augment the test for delaying aggregate
12171 expansion for limited return statements to include the case of extended
12172 returns, to prevent creation of an unwanted transient scope.
12173 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
12174 (Expand_Array_Aggregate): Handle aggregates associated with
12175 statically allocated dispatch tables.
12176 (Expand_Record_Aggregate): Handle aggregates associated with
12177 statically allocated dispatch tables.
12178 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
12179 of anonymous access type.
12181 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12183 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
12184 is a variable that renames a slice, use the variable itself in the
12185 expannsion when the renamed expression itself may be modified between
12186 the declaration of the renaming and the array assignment.
12188 2007-08-14 Jerome Guitton <guitton@adacore.com>
12190 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
12191 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
12192 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
12193 New functions; dummy implementations.
12195 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
12196 functions, used to implement the multi-tasks mode routines on VxWorks.
12198 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
12199 New functions, thin
12200 binding to the VxWorks routines which have changed between VxWorks 5
12202 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
12203 which are not callable from a RTP.
12205 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
12206 implemented for the multi-tasks mode on VxWorks 5 and 6.
12208 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
12210 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
12213 2007-08-14 Vincent Celier <celier@adacore.com>
12215 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
12216 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
12217 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
12218 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12219 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
12220 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
12221 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
12223 (Major_Id_Name): New function.
12224 mlib-tgt.ads/mlib.tgt.adb:
12225 (Library_Major_Minor_Id_Supported): New function, default returns True
12226 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
12227 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
12228 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
12229 Implementation of Library_Major_Minor_Id_Supported returns False
12231 (Clean_Library_Directory): If major/minor ids are supported, clean all
12233 Major update of the Project Manager and of the project aware tools,
12234 including gprmake, so that the same sources in the GNAT repository
12235 can be used by gprbuild.
12237 2007-08-14 Olivier Hainque <hainque@adacore.com>
12239 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
12240 (GCC_ZCX_Support): Switch to True.
12242 * s-intman-solaris.adb (Notify_Exception): Call
12243 Adjust_Context_For_Raise before raising, as expected for signal
12244 handlers in general.
12246 * s-intman-posix.adb (Notify_Exception): Remove declaration of
12247 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
12248 to other implementation bodies.
12250 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
12251 be visible by multiple implementation bodies.
12253 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
12254 only for conditions coming from hardware.
12255 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
12256 adjustments to signal context prior to exception raise from signal
12258 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
12260 Solaris section: (__gnat_adjust_context_for_raise): New function.
12261 Implementation of the machine context adjustments to perform prior to
12262 raise from a signal handler. Version for both sparc and x86.
12263 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
12264 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
12265 prior to raising as expected for any handler, before possible nested
12266 faults to make sure all the contexts in a chain have been adjusted by
12267 the time we propagate.
12269 2007-08-14 Pascal Obry <obry@adacore.com>
12271 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
12272 (SYSTEM_INFO): New record.
12273 (SetThreadIdealProcessor): New imported routine needed for supporting
12274 task_info pragma on Windows.
12276 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
12277 info can be applied to the current host.
12278 (Create_Task): Set the ideal processor if information is present.
12280 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
12281 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
12283 2007-08-14 Olivier Hainque <hainque@adacore.com>
12285 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
12286 stack size and initial stack pointer value for a given task.
12287 (Enter_Task): Get the stack attributes of the task we are entering and
12288 let the stack checking engine know about them.
12290 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
12291 Let the stack-checking engine know about the initial sp value and stack
12292 size associated with the current task.
12293 (Set_Stack_Info): If a stack base has been notified for the current
12294 task, honor it. Fallback to the previous less accurate method otherwise.
12296 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
12298 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12300 * sem_ch10.adb: Create a limited view of an incomplete type, to make
12301 treatment of limited views uniform for all visible declarations in a
12302 limited_withed package.
12303 Set flag indicating that a subprogram body for a child unit has a
12305 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
12306 separate declaration, remove the unit name from visibility after
12307 compilation, so that environment is clean for subsequent compilations.
12308 (Install_Limited_Context_Clauses): Do not install a
12309 limited_private_with_clause unless the current unit is a body or a
12310 private child unit.
12311 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
12312 in the same fashion.
12313 (Install_Limited_Withed_Unit): Do not install a limited with clause if
12314 it applies to the declaration of the current package body.
12315 (Remove_Private_With_Clauses): If there is a regular with_clause for
12316 the unit, delete Private_With_Clause from context, to prevent improper
12317 hiding when processing subsequent nested packages and instantiations.
12319 2007-08-14 Jose Ruiz <ruiz@adacore.com>
12321 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
12322 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
12323 representing absolute path names.
12324 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
12326 * cstreams.c (__gnat_full_name for VxWorks): Use
12327 __gnat_is_absolute_path to detect whether we need to add the current
12328 directory to normalize the path.
12330 2007-08-14 Javier Miranda <miranda@adacore.com>
12333 a-tags.adb (Displace): Associate a message with the raised CE
12335 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
12336 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
12337 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
12339 (Default_Prim_Op_Count): Removed.
12340 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
12341 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
12342 Remove pragma Inline_Always.
12344 * rtsfind.ads (Default_Prim_Op_Count): Removed
12345 (Max_Predef_Prims): New entity
12346 (RE_Expanded_Name): Removed
12347 (RE_HT_Link): Removed
12348 (RE_Iface_Tag): Remmoved
12349 (RE_Ifaces_Table): Removed
12350 (RE_Interfaces_Array): Removed
12351 (RE_Interface_Data_Element): Removed
12352 (RE_Nb_Ifaces): Removed
12353 (RE_RC_Offset): Removed
12354 (RE_Static_Offset_To_Top): Removed
12356 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
12358 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
12359 Prim_Op_Count by Max_Predef_Prims.
12361 2007-08-14 Thomas Quinot <quinot@adacore.com>
12362 Vincent Celier <celier@adacore.com>
12364 * binde.adb (Elab_All_Links): Remove unnecessary call to
12365 Generic_Separately_Compiled (if a unit satisfies this predicate, there
12366 won't be an associated Afile).
12367 (Elab_All_Links): Fail if a referenced unit cannot be found
12370 Fix comments in bindgen regarding consistency checks done in Bcheck:
12371 the checks are made across units within a partition, not across several
12373 Fix generation of C binder file for VxWorks.
12375 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
12376 Generic_May_Lack_ALI, more descriptive of the current use of the
12377 predicate, and update documentation.
12379 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
12380 reorganization and documentation update for the case of predefined
12381 library generics (for which we do not reference an Afile).
12383 2007-08-14 Robert Dewar <dewar@adacore.com>
12385 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
12386 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
12387 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
12388 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
12389 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
12390 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
12391 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
12392 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
12393 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
12394 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
12395 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
12396 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
12397 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
12398 g-altcon.adb: Minor reformatting
12400 ada-tree.h: Delete empty line.
12402 ali.ads: Minor reformatting
12403 Clarification of comments.
12404 Minor spelling correction
12406 * exp_dbug.adb: Add Warnings Off to suppress new warning
12408 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
12411 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
12414 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
12416 * a-textio.ads: Reorder the standard input/output/error declarations
12419 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
12421 * par-ch2.adb: Recognize RM specially in errout
12422 Change 'R'M to RM in all error messages
12424 * scng.adb: Recognize RM specially in errout
12426 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
12427 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
12429 * s-direio.adb: Add missing routine header box.
12431 * sem_attr.ads: Add ??? comments
12433 * sem_eval.adb: Recognize RM specially in errout
12434 Change 'R'M to RM in all error messages
12436 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
12438 * s-tasinf.ads: Fix minor comment typo.
12440 * a-cihama.adb: Minor comment addition
12442 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
12445 * s-tasinf-tru64.ads: Fix minor comment typo.
12447 * itypes.ads: Comment update.
12449 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
12452 * argv.c: Added protection against null gnat_argv and gnat_envp.
12454 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
12455 warning message when Tolerate_Consistency_Errors is True.
12457 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
12458 Any_Id, as this subprogram is only applicable to *type* entities (it
12459 sets RM_Size). Instead initialize just Esize and Alignment.
12461 2007-08-14 Bob Duff <duff@adacore.com>
12463 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
12464 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12465 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
12466 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
12467 a-coorse.ads (Next): Applied pragma Inline.
12468 Make all Containers packages Remote_Types (unless they are already
12470 (Previous): applied pragma Inline
12471 (Elements_Type): is now a record instead of an array
12473 2007-08-14 Thomas Quinot <quinot@adacore.com>
12475 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
12477 (Set_Item): When the new item is an element of the currently allocated
12478 table passed by reference, save a copy on the stack if we're going
12479 to reallocate. Also, in Table.Set_Item, make sure we test the proper
12480 variable to determine whether to call Set_Last.
12482 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
12483 symbols-vms.adb, symbols-processing-vms-alpha.adb,
12484 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
12485 some occurrences of the pattern
12487 T.Table (T.Last) := Value;
12488 with a cleaner call to
12491 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12492 Gary Dismukes <dismukes@adacore.com>
12493 Thomas Quinot <quinot@adacore.com>
12495 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
12496 derived type with interface progenitors use the analyzed formal as the
12497 parent of the actual, to create renamings for all the inherited
12498 operations in Derive_Subprograms.
12499 (Collect_Previous_Instances): new procedure within of
12500 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
12501 unit being loaded, to ensure that the generation of global symbols is
12502 consistent in different compilation modes.
12503 (Is_Tagged_Ancestor): New function testing the ancestor relation that
12504 takes progenitor types into account.
12505 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
12506 traversing over the primitives of the formal and actual types to locate
12507 any abstract subprograms of the actual type that correspond to a
12508 nonabstract subprogram of the formal type's ancestor type(s), and issue
12509 an error if such is found.
12510 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
12511 Instantiate_Package_Body, Instantiate_Subprogram_Body):
12512 Remove bogus guard around calls to Inherit_Context.
12513 (Reset_Entity): If the entity is the selector of a selected component
12514 that denotes a named number, propagate constant-folding to the generic
12515 template only if the named number is global to the generic unit.
12516 (Set_Instance_Env): Only reset the compilation switches when compiling
12517 a predefined or internal unit.
12519 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12521 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
12522 parameter to determine whether operation applies to the prefix.
12523 (Complete_Object_Operation): If actual has an access type and
12524 controlling formal is not an in_parameter, reject the actual if it is
12525 an access_to_constant type.
12526 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
12527 type, the candidate operations are found in the scope of declaration of
12528 the type, because the type has no primitive subprograms.
12529 (Analyze_Selected_Component): If prefix is class-wide, and root type is
12530 a private extension, only examine visible components before trying to
12531 analyze as a prefixed call.
12532 Change Entity_List to Type_To_Use, for better readability.
12533 (Has_Fixed_Op): Use base type when checking whether the type of an
12534 operator has a user-defined multiplication/division
12535 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
12536 user-defined operators are available for fixed-point types.
12538 2007-08-14 Thomas Quinot <quinot@adacore.com>
12539 Ed Schonberg <schonberg@adacore.com>
12541 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
12542 formal At_Any_Place indicating, when True, that we want to test for
12543 availability of the stream attribute at any place (as opposed to the
12544 current visibility context only).
12545 (Missing_Read_Write_Attributes): A stream attribute is missing for the
12546 purpose of enforcing E.2.2(8) only if it is not available at any place.
12547 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
12548 when checking the legality of an extension aggregate in a preelaborable
12549 package. Treat the literal null as a valid default expression in a
12550 component declaration for a type with preelaborable initialization.
12551 A limited interface is a legal progenitor for the designated type of a
12552 remote access to class-wide type.
12554 2007-08-14 Thomas Quinot <quinot@adacore.com>
12555 Ed Schonberg <schonberg@adacore.com>
12557 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
12558 reference): Use correct entity as denoted entity for the selector of
12559 the rewritten node.
12560 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
12561 setting the Referenced_As_LHS flag for entities that are implicitly
12563 (Find_Type): If the type is an internally generated incomplete type,
12564 mark the full view as referenced, to prevent spurious warnings.
12565 (Find_Selected_Component, Has_Components): Handle properly non-limited
12566 views that are themselves incomplete types.
12567 Handle interfaces visible through limited-with clauses.
12568 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
12569 subprogram generic actual for which we have generated a renaming.
12570 Warn when the renaming introduces a homonym of
12571 the renamed entity, and the renamed entity is directly visible.
12573 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12574 Hristian Kirtchev <kirtchev@adacore.com>
12576 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
12577 appear in the subtree to the current allocator if it is not a static
12579 (Resolve_Allocator): Perform cleanup if resolution has determined that
12580 the allocator is not a coextension.
12581 (Resolve): Skip an interpretation hidden by an abstract operator only
12582 when the type of the interpretation matches that of the context.
12583 (Resolve): When looping through all possible interpretations of a node,
12584 do not consider those that are hidden by abstract operators.
12585 (Resolve_Actuals): When verifying that an access to class-wide object
12586 is an actual for a controlling formal, ignore anonymous access to
12587 subprograms whose return type is an access to class_wide type.
12588 (Resolve_Slice): If the prefix of the slice is a selected component
12589 whose type depends on discriminants, build its actual subtype before
12590 applying range checks on the bounds of the slice.
12591 (Valid_Conversion): In an instance or inlined body, compare root types,
12592 to prevent anomalies between private and public views.
12593 (Resolve): Improve error message for ambiguous fixed multiplication
12594 expressions that involve universal_fixed multiplying operations.
12596 2007-08-14 Javier Miranda <miranda@adacore.com>
12597 Hristian Kirtchev <kirtchev@adacore.com>
12599 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
12600 location to allow the correct generation of errors in case of
12601 restrictions applied to the expanded code.
12602 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
12603 function if the condition does not reference them.
12604 (Expand_Entry_Body_Declarations): Mark the index constant as having a
12607 2007-08-14 Thomas Quinot <quinot@adacore.com>
12608 Pablo Oliveira <oliveira@adacore.com>
12610 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
12611 typecode parameters for a union (in a variant record), remove
12612 extraneous layer of Any wrapping for member label.
12613 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
12614 elabration statements, register the package with the name server
12615 at the beginning, not at the end, of the elaboration statements so
12616 that they can create remote access to subprogram values that designate
12617 remote subprograms from the package.
12619 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12621 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
12622 values to compute the number of seconds since the Unix Epoc in order to
12623 account for Daylight Savings Time. Perform special processing for dates
12624 that are earlier than the Unix Epoc to obtain a negative number.
12626 2007-08-14 Emmanuel Briot <briot@adacore.com>
12628 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
12631 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
12633 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
12634 binder-generated file is not in Ada.
12635 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
12636 recorded in the ALI file.
12637 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
12639 2007-08-14 Vincent Celier <celier@adacore.com>
12641 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
12642 (Output_Source): Do nothing if parameter is No_Sdep_Id
12644 * make.adb (Gnatmake): Do not rebuild an archive simply because a
12645 shared library it imports has a later time stamp.
12646 (Check): Resolve the symbolic links in the path name of the object
12648 Check that the ALI file is in the correct object directory
12649 Check if a file name does not correspond to the mapping of units
12651 (Display_Version): New procedure
12652 (Initialize): Process switches --version and --help
12653 Use type Path_Name_Type for path name
12655 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
12657 * impunit.adb: Re-organize System.Random_Numbers and
12658 GNAT.Random_Numbers and add to builds.
12660 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
12662 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
12664 * a-assert.ads, a-assert.adb: New files.
12666 2007-08-14 Gary Dismukes <dismukes@adacore.com>
12668 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
12669 if AAMP_On_Target is True, then the size of the type encompasses two
12670 addresses (a static link and a subprogram address), except in the case
12671 of library-level access types.
12673 2007-08-14 Vincent Celier <celier@adacore.com>
12675 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
12677 (Write_Eol_Keep_Blanks): New procedure to write a line, including
12678 possible trailing spaces.
12679 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
12681 2007-08-14 Javier Miranda <miranda@adacore.com>
12683 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
12684 null-excluding access types.
12686 2007-08-14 Javier Miranda <miranda@adacore.com>
12688 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
12689 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
12690 of private types add missing check on matching interfaces in the
12691 partial and full declarations.
12692 (Analyze_Protected_Type): Code cleanup.
12693 (Analyze_Task_Type): Code cleanup.
12695 2007-08-14 Javier Miranda <miranda@adacore.com>
12697 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
12698 generated interface thunk.
12700 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12702 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
12703 obsolescent warning on application of 'Class to an incomplete type.
12705 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
12706 prevent obsolescent warning on application of 'Class to an incomplete
12709 2007-08-14 Pascal Obry <obry@adacore.com>
12711 * s-fileio.adb (Is_Open): Add check for usability of the underlying
12714 2007-08-14 Cyrille Comar <comar@adacore.com>
12716 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
12717 since it is potentially used in cases implying double finalization of
12720 2007-08-14 Jose Ruiz <ruiz@adacore.com>
12722 * s-tasini.adb (Get_Stack_Info): Move this function to
12723 System.Soft_Links.Tasking because it is common to the full and the
12724 restricted run times.
12725 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
12726 in SSL.Tasking.Init_Tasking_Soft_Links.
12728 * s-solita.adb (Get_Stack_Info): Function moved from
12729 System.Tasking.Initialization because it is common to the full and the
12730 restricted run times.
12731 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
12733 2007-08-14 Arnaud Charlet <charlet@adacore.com>
12735 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
12736 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
12737 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
12740 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
12743 2007-08-14 Gary Dismukes <dismukes@adacore.com>
12745 * s-veboop.adb (SU): New named number initialized to
12746 System.Storage_Unit.
12747 (True_Val): The initialization expression is revised to use SU (=
12748 Storage_Unit) rather than assuming 8 for the component size of an
12749 unpacked Boolean array.
12751 2007-08-14 Tristan Gingold <gingold@adacore.com>
12753 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
12755 * tb-ivms.c: New file.
12757 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
12759 2007-08-14 Geert Bosch <bosch@adacore.com>
12761 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
12762 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
12763 Add required linker pragmas for automatically linking with the gnalasup
12764 linear algebra support library, and the systems math library.
12765 Rename cdot to cdotu and zdot to zdotu.
12766 Update header comment to describe purpose of package.
12768 2007-08-14 Thomas Quinot <quinot@adacore.com>
12770 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
12771 an explicitly specified Associated_Final_Chain, use that list.
12772 (Expand_N_Package_Body): Build dispatch tables of library level tagged
12774 (Expand_N_Package_Declaration): Build dispatch tables of library level
12775 tagged types. Minor code cleanup.
12777 2007-08-14 Vincent Celier <celier@adacore.com>
12779 * gnatchop.adb (Terminate_Program): Remove exception and use
12780 Types.Terminate_Program instead.
12782 * osint.ads, osint.adb (Current_Exit_Status): New global variable
12783 (Find_Program_Name): Added protection against empty name.
12784 (OS_Exit_Through_Exception): New procedure
12786 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
12787 (OS_Exit_Default): New procedure that contains the previous
12788 implementation of procedure OS_Exit.
12789 (Final_Value): Remove obsolete Interix stuff.
12791 2007-08-14 Thomas Quinot <quinot@adacore.com>
12793 * g-socket.ads: Reorganize example code so that it also works on
12796 2007-08-14 Tristan Gingold <gingold@adacore.com>
12798 * g-trasym.ads: AIX now supports symbolic backtraces.
12800 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12802 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
12803 units being loaded to detect circularities. A circularity may be
12804 present even if the current chain of pending units to load starts from
12805 a limited_with_clause.
12807 * lib-load.ads: Change profile of Load_Unit to use a with_clause
12808 rather than a boolean flag, in order to detect circularities in
12811 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
12812 than propagating the From_Limited_With flag, in order to handle
12813 properly circularities involving with_clauses.
12815 2007-08-14 Nicolas Setton <setton@adacore.com>
12817 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
12820 2007-08-14 Arnaud Charlet <charlet@adacore.com>
12822 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
12823 to build for libgnala.
12824 libgnat: Add rules to build libgnala.a
12825 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
12826 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
12827 Add s-osinte-vxworks-kernel.adb to the target pairs of the
12828 kernel run-time lib for VxWorks 6, which would provide a different
12829 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
12830 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
12831 running ZCX by default.
12832 Add g-sttsne-locking to LynxOS version.
12833 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
12834 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
12836 * system-darwin-x86.ads: New file.
12838 * Make-lang.in: Delete files before copying onto them, so if they are
12839 read-only, the copy won't fail.
12840 Update dependencies
12842 2007-08-14 Pascal Obry <obry@adacore.com>
12844 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
12847 2007-08-14 Vincent Celier <celier@adacore.com>
12849 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
12850 (Gcc): Initialize Gcc_Name at the first call
12852 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12854 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
12855 with_clauses of the enclosing unit when analyzing the package
12856 specification of a nested instance.
12858 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12860 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
12861 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
12862 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
12863 layout of N_Allocator.
12865 2007-08-14 Thomas Quinot <quinot@adacore.com>
12867 * rtsfind.adb (Check_RPC): Add PCS version check.
12869 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
12870 (Gnat_Free_Software): New function.
12872 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
12873 the PCS_Version value from s-parint, used to check that it is consistent
12874 with what exp_dist expects.
12876 * s-parint.ads (PCS_Version): New entity for checking consistency
12877 between exp_dist and PCS.
12879 * gen-soccon.c: (SO_REUSEPORT): New constant.
12881 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12883 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
12884 variable Sub_Second to Duration in order to accomodate a larger range
12885 of arithmetic operations.
12887 2007-08-14 Bob Duff <duff@adacore.com>
12889 * g-sttsne-locking.ads: Move comments from spec to body.
12890 * g-sttsne-locking.adb: Move comments from spec to body.
12891 * g-sttsne-vxworks.ads: Removed.
12892 * g-sttsne-vxworks.adb: Removed.
12894 2007-08-11 Ian Lance Taylor <iant@google.com>
12896 * misc.c (gnat_get_alias_set): Change return type to
12899 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12901 * decl.c, utils2.c: Fix whitespace in last change.
12903 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12905 * decl.c (compare_field_bitpos): Constify.
12906 * utils2.c (compare_elmt_bitpos): Likewise.
12908 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
12910 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
12911 anonymous access type.
12912 (pthread_sigmask): Now take an access sigset_t.
12914 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12916 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
12918 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
12920 PR tree-optimization/25737
12921 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
12923 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
12925 * trans.c (Attribute_to_gnu): When subtracting an
12926 offset from a pointer, use POINTER_PLUS_EXPR with
12927 NEGATE_EXPR instead of MINUS_EXPR.
12928 (gnat_to_gnu): Likewise.
12929 * utils.c (convert): When converting between
12930 thin pointers, use POINTER_PLUS_EXPR and sizetype
12932 * utils2.c (known_alignment): POINTER_PLUS_EXPR
12933 have the same semantics as PLUS_EXPR for alignment.
12934 (build_binary_op): Add support for the semantics of
12935 POINTER_PLUS_EXPR's operands.
12936 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12938 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
12940 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
12941 of get_signed_or_unsigned_type.
12942 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
12944 2007-06-11 Bob Duff <duff@adacore.com>
12945 Thomas Quinot <quinot@adacore.com>
12947 * g-stsifd-sockets.adb (Create): Work around strange behavior of
12948 'bind' on windows that causes 'connect' to fail intermittently, by
12949 retrying the 'bind'.
12950 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12952 2007-06-10 Duncan Sands <baldrick@free.fr>
12954 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12955 than to void, for the fields when making a new fat pointer type.
12956 (gnat_substitute_in_type): Now substitute_in_type.
12957 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
12958 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12959 * utils.c (update_pointer_to): Update fat pointers by updating the
12960 dummy node pointers used for the fields.
12962 2007-06-06 Thomas Quinot <quinot@adacore.com>
12963 Bob Duff <duff@adacore.com>
12965 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12966 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12967 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
12968 constant Thread_Blocking_IO, always True by default, set False
12969 on a per-runtime basis.
12970 (Need_Netdb_Buffer): New constant.
12972 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12973 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12976 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12977 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12978 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12979 child package Task_Safe_NetDB
12980 (Host_Error_Messages): Add stub body.
12981 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12983 * g-soccon-mingw.ads: Add Windows-specific constants.
12984 (Need_Netdb_Buffer): New constant.
12985 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12986 wrapper and import inet_addr(3) from the standard sockets library
12988 (In_Addr): Add alignment clause.
12989 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12991 2007-06-06 Robert Dewar <dewar@adacore.com>
12993 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12994 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12995 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12996 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12997 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12998 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12999 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
13000 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
13001 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
13002 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
13003 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
13004 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
13005 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
13006 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
13007 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
13008 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
13009 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
13010 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
13011 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
13012 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
13013 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
13014 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
13015 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
13016 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
13017 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
13018 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
13019 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
13020 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
13021 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
13022 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
13023 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
13024 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
13025 Unchecked_* by Ada.Unchecked_*
13027 2007-06-06 Robert Dewar <dewar@adacore.com>
13029 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
13030 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
13031 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
13032 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
13033 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
13034 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
13036 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
13037 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
13038 s-tasloc.adb, s-tasloc.ads: New files.
13040 2007-06-06 Bob Duff <duff@adacore.com>
13042 * g-expect-vms.adb:
13043 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
13044 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
13045 (Send_Signal, Close): Raise Invalid_Process if the process id is
13047 (Pattern_Matcher_Access): Is now a general access type to be able to
13048 use aliased string.
13050 2007-06-06 Thomas Quinot <quinot@adacore.com>
13051 Arnaud Charlet <charlet@adacore.com>
13053 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
13054 (SIGEMT is now used instead of SIGTERM on AIX).
13056 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
13057 (Time_Slice_Supported): Set to True.
13058 Use SIGEMT instead of SIGTERM as SIGADAABORT.
13060 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13062 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
13063 (Time, Time)): Use To_Relative_Time rather than manual calculation to
13064 express the bounds of Duration as Time. Raise Time_Error when the
13065 result is greater or equal to the higher bound of Duration (on the
13067 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
13068 Ada_High_And_Leaps.
13069 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
13070 Ada_High_And_Leaps.
13071 ("-" (Time, Time)): Reorder code.
13072 (All_Leap_Seconds): Removed.
13073 (Arithmetic_Operations.Add): Remove sign related kludge.
13074 (Arithmetic_Operations.Difference): Control the leaps seconds processing
13075 with flag Leap_Support.
13076 (Arithmetic_Operations.Subtract): Remove sign related kludge.
13077 (Check_Within_Time_Bounds): New procedure.
13078 (Clock): Control the leap seconds processing with flag Leap_Support.
13079 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
13080 (Formatting_Operations.Split): Control the leap seconds processing with
13082 (Formatting_Operations.Time_Of): Control the leaps seconds processing
13083 with flag Leap_Support. Adjust the year, month and day (if applicable)
13084 when the value of day seconds designates a new day.
13085 (Split): Use parameter associations for better readability. Integrate
13087 (Time_Of): Use parameter associations for better readability. Integrate
13090 * a-calfor.adb (Split): Use parameter associations for better
13091 readability. Integrate flag Is_Ada_05.
13092 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
13093 better readability. Integrate flag Is_Ada_05.
13095 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13097 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
13098 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
13099 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
13100 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
13101 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
13102 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
13103 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
13104 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
13105 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
13106 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
13107 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
13108 time when entering this routine to detect a backward clock setting
13109 (manual setting or DST adjustment), to avoid waiting for a longer delay
13111 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
13112 Remove handling of deferred priority change, and replace by setting the
13113 task priority directly, as required by AI-188.
13115 (Max_Task_Image_Length): New constant.
13116 Replace Warnings (Off) by Unreferenced pragma, cleaner.
13117 (Dynamic_Priority_Support): Removed, no longer needed.
13118 (Poll_Base_Priority_Change): Ditto.
13119 (Set_Ceiling): Add this procedure to change the ceiling priority
13120 associated to a lock. This is a dummy implementation because dynamic
13121 priority ceilings are not supported by the underlying system.
13123 * a-dynpri.adb (Set_Priority): Take into account case where Target is
13124 accepting a RV with its priority boosted.
13125 Remove handling of deferred priority change, and replace by setting the
13126 task priority directly, as required by AI-188.
13128 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
13130 Remove handling of deferred priority change, and replace by setting the
13131 task priority directly, as required by AI-188.
13132 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
13133 of Self_Id earlier.
13135 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
13136 (Poll_Base_Priority_Change): Removed.
13137 Code clean up: use SSL.Current_Target_Exception.
13139 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
13140 to run as this is a potentially dispatching point.
13141 (Call_Synchronous): Use Local_Defer_Abort.
13142 (Callable): Relax assertion.
13143 (Selective_Wait): Relax assertion in case abort is not allowed.
13144 Remove handling of deferred priority change, and replace by setting the
13145 task priority directly, as required by AI-188.
13147 * s-tasuti.adb (Make_Passive): Adjust assertions.
13148 Remove handling of deferred priority change, and replace by setting the
13149 task priority directly, as required by AI-188.
13151 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13153 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
13154 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
13155 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
13156 system-vxworks-mips.ads, system-vxworks-alpha.ads,
13157 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
13158 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
13159 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
13160 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
13161 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
13162 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
13163 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
13164 This patch changes the largest non-binary modulus from 2**31-1 to
13166 (Compiler_System_Version): Removed, no longer used.
13167 Clean up system files by removing flags only used on a single target.
13168 Also remove obsolete flags, only used during bootstrap from system.ads
13169 (Address): Add a pragma Preelaborable_Initialization.
13171 * system-aix.ads: Ditto.
13172 (GCC_ZCX_Support): Set to true.
13173 Update priority range on AIX and map Ada priorities to target
13174 priorities appropriately for different scheduling policies.
13176 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
13178 2007-06-06 Vincent Celier <celier@adacore.com>
13180 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
13181 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
13183 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
13184 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
13185 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
13186 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13187 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
13188 MLib.Tgt, containing the default versions of the exported subprograms.
13189 For each platform, create a specific version of the body of new child
13190 package MLib.Tgt.Specific that contains only the body of subprograms
13191 that are different from the default.
13192 (Archive_Builder_Append_Options): New function.
13194 2007-06-06 Matthew Gingell <gingell@adacore.com>
13196 * s-osinte-aix.adb: Map Ada priorities to target priorities
13197 appropriately for different scheduling policies.
13199 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13201 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
13203 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
13204 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
13206 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13208 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
13209 Noop on VMS, added for interface commonality.
13211 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
13212 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13213 Olivier Hainque <hainque@adacore.com>
13215 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
13216 renamed expression of a full renaming at toplevel.
13217 (gnat_to_gnu_entity, case object): If not defining, do not look inside
13218 the values the constant is initialized to if it is an N_Allocator.
13219 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
13220 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
13221 (make_aligning_type): Accept an extra ROOM argument for storage to be
13222 made available before the aligned field, and an extra BASE_ALIGN
13223 argument for callers to pass the alignment guaranteed to be honored for
13224 the whole aligning object. Avoid call to finish_record_type, which only
13225 interferes with the sizes we want to set.
13226 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
13227 make_aligning_type for super-aligned objects on stack.
13228 (components_to_record): Pass the adjusted size of the type when creating
13229 fields in the qualified union for the variant part.
13230 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
13231 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
13233 (maybe_pad_type): Set TYPE_USER_ALIGN.
13234 (make_aligning_type): Likewise.
13235 ALIGN argument is unsigned int.
13236 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
13237 (gnat_to_gnu_param): Likewise, for parameters.
13238 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
13239 if it is constant and stems from a function call.
13240 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
13241 of the record is specified. Adjust accordingly.
13242 (adjust_packed): New static function.
13243 (gnat_to_gnu_field): Use it to adjust the packedness setting.
13244 (components_to_record): Likewise.
13245 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
13246 side-effects if the object is deemed constant.
13247 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
13248 type instead of merely finalizing it. Tidy.
13249 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
13250 <E_Access_Type>: Likewise.
13251 (defer_debug_incomplete_list): Rename to defer_finalize_list.
13252 (defer_debug_level): Delete.
13253 (gnat_to_gnu_entity) <debug_deferred>: Likewise
13254 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
13256 <E_Record_Type>: Do not explicitly defer finalizing the type.
13257 Adjust for write_record_type_debug_info renaming.
13258 <E_Subprogram_Type>: Likewise.
13259 Finalize deferred types right after deferred incomplete types are
13261 (rest_of_type_decl_compilation): New global function.
13262 (components_to_record): Rename defer_debug parameter to do_not_finalize.
13263 (components_to_record): Propagate the packedness to the fields of the
13264 qualified union type if there is a variant part.
13265 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
13266 instead of inline code to adjust the XUT field offsets.
13267 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
13268 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
13269 and write the debug info if the type derives from a discriminated one.
13270 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
13271 <E_Array_Subtype>: Likewise.
13272 <E_String_Literal_Subtype>: Likewise.
13273 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
13274 an alignment clause.
13275 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
13276 before giving warning.
13277 (prepend_one_attribute_to): New function, helper to prepend an attribute
13278 to an attribute list.
13279 (gnat_to_gnu_entity) <E_Procedure>: Use it.
13280 (prepend_attributes): Likewise.
13281 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
13282 <E_Array_Type>: Declare the padding type for the element type, if any.
13283 <E_Array_Subtype>: Likewise.
13284 (defer_limited_with): New variable.
13285 (Gigi_Equivalent_Type): New function.
13286 (gnat_to_gnu_entity): Use it at start and use result throughout.
13287 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
13288 Gigi_Equivalent_Type, support Limited_With, allow two levels of
13289 indirection, precompute if unconstrained array to simplify logic, and
13290 use defer_limited_with to defer elaboration of some types from limited
13292 (finalize_from_with_types): New function.
13294 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13295 Eric Botcazou <ebotcazou@adacore.com>
13296 Tristan Gingold <gingold@adacore.com>
13297 Olivier Hainque <hainque@adacore.com>
13299 * trans.c (Identifier_to_gnu): Change test for deferred constant by
13300 adding guard that the entity is an E_Constant before testing presence
13301 of Full_view (and remove unnecessary test that entity is not a type).
13302 For a CONST_DECL used by reference, manually retrieve
13303 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
13304 (struct language_function): Move from utils.c to here.
13305 (struct parm_attr): New structure.
13306 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
13307 (f_parm_attr_cache): New macro.
13308 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
13309 expressions for the 'First, 'Last and 'Length attributes of the
13310 unconstrained array IN parameters.
13311 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
13312 Allocate the information structure for the function earlier, as well
13313 as the language-specific part.
13314 If the parameter attributes cache has been populated, evaluate the
13315 cached expressions on entry.
13316 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
13317 N_Procedure_Call_Statement and N_Indexed_Component.
13318 (Pragma_to_gnu): Translate inspection_point to an asm statement
13319 containaing a comment and a reference to the object (either its address
13320 for BLKmode or its value).
13321 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
13322 to go to DECL_INITIAL. Together with the size constraint relaxation
13323 in create_var_decl, enlarges the set of situations in which an
13324 identifier may be used as an initializer without implying elaboration
13326 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
13327 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
13329 (maybe_stabilize_reference): Remove lvalues_only parameter.
13330 (gnat_stabilize_reference): Adjust for above change.
13331 (gnat_to_gnu): Do not set location information on the result
13332 if it is a reference.
13333 (add_cleanup): Add gnat_node parameter and set the location of the
13335 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
13336 (Exception_Handler_to_gnu_zcx): Likewise.
13337 (gigi): Remove the cgraph node if the elaboration procedure is empty.
13338 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
13339 the former right after the latter.
13340 (start_stmt_group): Make global.
13341 (end_stmt_group): Likewise.
13342 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
13344 (gnu_program_error_label_stack): Likewise.
13345 (gigi): Initialize them.
13346 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
13347 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
13349 (push_exception_label_stack): New function.
13350 (takes_address): New function.
13352 * utils.c (struct language_function): Move to trans.c from here.
13353 (unchecked_convert): Do not wrap up integer constants in
13354 VIEW_CONVERT_EXPRs.
13355 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
13356 the latter for aggregate types, unexpected by later passes, and relax an
13357 arbitrary size constraint on the former.
13358 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
13359 to compare the sizes.
13360 (convert_vms_descriptor): When converting to a fat pointer type, be
13361 prepared for a S descriptor at runtime in spite of a SB specification.
13362 (shift_unc_components_for_thin_pointers): New function.
13363 (write_record_type_debug_info): For variable-sized fields, cap the
13364 alignment of the pointer to the computed alignment.
13365 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
13366 If REP_LEVEL is 2, do not compute the sizes.
13367 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
13368 (build_unc_object_type): Likewise.
13369 (declare_debug_type): New function.
13371 * ada-tree.def: USE_STMT: removed (not emitted anymore).
13373 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
13374 no statement is expandable anymore.
13375 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
13376 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
13377 when the user requested it explicitely.
13378 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
13380 (get_alias_set): Return alias set 0 for a type if
13381 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
13383 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
13384 (DECL_FUNCTION_STUB): New accessor macro.
13385 (SET_DECL_FUNCTION_STUB): New setter macro.
13387 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
13389 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
13392 2007-06-06 Jose Ruiz <ruiz@adacore.com>
13394 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
13395 Rename to Abort_Task_Interrupt to be able to keep the same interface
13396 as the rest of the targets.
13398 * s-osinte-vxworks.ads s-osinte-vxworks.adb
13399 (To_VxWorks_Priority): Remove explicit "in" mode indicator
13401 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
13404 2007-06-06 Robert Dewar <dewar@adacore.com>
13406 * a-chahan.ads: Remove obsolescent pragmas
13408 * a-chlat1.ads: Minor reformatting
13410 2007-06-06 Robert Dewar <dewar@adacore.com>
13412 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
13415 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
13418 * errout.ads (Finalize): Changed interface
13419 (Output_Messages): New procedure
13420 (Compilation_Errors): New Interface
13422 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
13423 Finalize/Output_Messages interface for Errout
13424 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
13427 2007-06-06 Thomas Quinot <quinot@adacore.com>
13428 Olivier Hainque <hainque@adacore.com>
13429 Robert Dewar <dewar@adacore.com>
13431 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
13433 (Raise_Current_Excep): Call Debug_Raise_Exception just before
13434 propagation starts, to let debuggers know about the event in a reliable
13436 (Local_Raise): Moved to System.Exceptions
13437 More convenient to have this as a separate unit
13439 * s-except.adb, s-except.ads: New files.
13441 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
13442 Debug_Unhandled_Exception in System.Exceptions where it belongs
13443 together with a couple of other debug helpers.
13444 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
13445 the former Unhandled_Exception.
13447 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
13448 (Warn_No_Exception_Propagation): New procedure
13449 (Warn_If_No_Propagation): Rewritten for new warning generation
13450 (Expand_Exception_Handlers): New warning generation
13451 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
13452 (Add_Exception_Label): Use Special_Exception_Package_Used for test
13453 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
13454 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
13455 even if restriction is set (makes life easier in Check_Returns)
13456 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
13457 checking exception identities.
13458 (Expand_Local_Exception_Handlers): Do not optimize when all others case
13459 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
13460 block for handler (used by Check_Returns)
13461 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
13462 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
13463 remove all exception handlers when optimizing local raise statements.
13464 (Find_Local_Handler): Use Get_Renamed_Entity
13465 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
13466 marked analyzed after expanding exception handlers, do not generate
13467 redundant cleanup actions, because they have been constructed already.
13469 2007-06-06 Thomas Quinot <quinot@adacore.com>
13471 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
13472 presence of this categorization pragma is mandated by the language.
13473 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
13476 2007-06-06 Vincent Celier <celier@adacore.com>
13477 Robert Dewar <dewar@adacore.com>
13479 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
13480 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
13481 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
13482 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
13483 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
13484 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
13485 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
13486 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
13487 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
13488 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
13489 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
13491 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
13492 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
13493 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
13494 Use variables of types File_Name_Type and Unit_Name_Type in error
13496 (Get_Name): Add parameter Ignore_Special, and set it reading file name
13497 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
13499 Define flags Flag217-Flag230 with associated subprograms
13500 (Flag_Word5): New record type.
13501 (Flag_Word5_Ptr): New access type.
13502 (To_Flag_Word5): New unchecked conversion.
13503 (To_Flag_Word5_Ptr): Likewise.
13504 (Flag216): New function.
13505 (Set_Flag216): New procedure.
13507 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13509 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
13512 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
13514 2007-06-06 Javier Miranda <miranda@adacore.com>
13516 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
13518 (Object_Specific_Data_Array): This is now internal to the package.
13519 (Object_Specific_Data): This is now internal to the package.
13520 (Select_Specific_Data_Element): This is now internal to the package.
13521 (Select_Specific_Data_Array): This is now internal to the package.
13522 (Select_Specific_Data): This is now internal to the package.
13523 (Offset_To_Top_Function_Ptr): This is now public.
13524 (To_Offset_To_Top_Function_Ptr): Removed.
13525 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
13526 local to subprogram Offset_To_Top.
13527 (Predefined_DT): Removed.
13528 (Typeinfo_Ptr): Removed.
13529 (OSD): This function is now internal to this package.
13530 (SSD): This function is now internal to this package.
13531 (DT): New function that displaces the pointer to the table of primitives
13532 to get access to the enclosing wrapper record.
13533 (IW_Membership): Code cleanup.
13534 (Offset_To_Top): Code cleanup.
13535 (Predefined_DT): Removed.
13536 (Register_Interface_Tag): Removed.
13537 (Set_Interface_Table): Removed.
13538 (Set_Offset_Index): Removed.
13539 (Set_Offset_To_Top): Code cleanup.
13540 (Set_OSD): Removed.
13541 (Set_Signature): Removed.
13542 (Set_SSD): Removed.
13543 (Set_Tagged_Kind): Removed.
13544 (Typeinfo_Ptr): Removed.
13546 (Displace): Add missing check on null actual.
13548 * exp_disp.ads, exp_disp.adb
13549 (Select_Expansion_Utilities): Removed.
13550 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
13551 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
13552 the interface requires a new parameter.
13553 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
13554 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
13555 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
13556 Done to remove package Select_Expansion_Utilities.
13557 (Make_DT): New implementation for statically allocated dispatch tables.
13558 (Make_Secondary_DT): Moved to the scope of Make_DT.
13559 (Register_Primitive): Code cleanup plus incoporate the use of the new
13560 function DT_Address_Attribute.
13561 (Expand_Interface_Thunk): The profile of this subprogram has been
13562 changed to return the Thunk_Id and the corresponding code.
13563 (Fill_DT_Entry): Removed. Its functionality is now provided by
13564 subprogram Register_Primitive.
13565 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
13566 subprogram Register_Primitive.
13567 (Register_Primitive): New subprogram that incorporates the previous
13568 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
13569 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
13570 was only required to call Make_DT_Access_Action, which is now removed.
13571 (Ada_Actions): Removed
13572 (Action_Is_Proc): Removed
13573 (Action_Nb_Arg): Removed
13574 Replace all the calls to Make_DT_Access_Action by direct calls to
13575 Make_Procedure_Call_Statement or Make_Function_Call.
13576 (Set_DTC_Entity_Value): New subprogram.
13577 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
13578 (Expand_Interface_Thunk): Add missing support for primitives that are
13579 functions with a controlling result (case in which there is no need
13580 to generate the thunk).
13582 * exp_atag.ads, exp_atag.adb
13583 (Build_DT): New subprogram that displaces the pointer to reference the
13584 base of the wrapper record.
13585 (Build_Typeinfo_Offset): Removed.
13586 (RTE_Tag_Node): Removed.
13587 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
13588 (Build_Get_RC_Offset): Removed.
13589 (Build_Inherit_Predefined_Prims): Removed.
13590 (Build_Inherit_TSD: Removed.
13591 (Build_New_TSD): Removed.
13592 (Build_Set_External_Tag): Removed.
13593 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
13594 (Build_Set_Prim_Op_Address): Add documentation.
13595 (Build_Set_TSD): Removed.
13597 * rtsfind.ads, rtsfind.adb
13598 (Load_Fail): If load fails and we are not in configurable run-time
13599 mode, then raise Unrecoverable_Error.
13600 (Text_IO_Kludge): Generate an error message if a run-time library is
13601 not available in a given run-time (ie. zfp run-time).
13602 (RTE_Record_Component): Add code to check that the component we search
13603 for is not found in two records in the given run-time package.
13604 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
13605 (RE_DT_Predef_Prims_Offset): New entity
13606 (RE_Static_Offset_To_Top): New entity
13607 (RE_HT_Link): New entity.
13608 (System_Address_Image): Addition of this run-time package.
13609 (RE_Address_Image): New entity.
13610 (RE_Abstract_Interface): Removed.
13611 (RE_Default_Prim_Op_Count): Removed.
13612 (RE_DT_Entry_Size): Removed.
13613 (RE_DT_Min_Prologue_Size): Removed.
13614 (RE_DT_Prologue_Size): Removed.
13615 (RE_Ifaces_Table_Ptr): Removed.
13616 (RE_Interface_Data_Ptr): Removed.
13617 (RE_Type_Specific_Data): Removed.
13618 (RE_Primary_DT): Removed.
13619 (RE_Register_Interface_Tag): Removed.
13620 (RE_Set_Offset_Index): Removed.
13621 (RE_Set_OSD): Removed.
13622 (RE_Set_SSD): Removed.
13623 (RE_Set_Signature): Removed.
13624 (RE_Set_Tagged_Kind): Removed.
13625 (RE_Address_Array): New entity.
13626 (RE_DT): New entity.
13627 (RE_Iface_Tag): New entity.
13628 (RE_Interfaces_Table): New entity.
13629 (RE_No_Dispatch_Table): New entity.
13630 (RE_NDT_Prims_Ptr): New entity.
13631 (RE_NDT_TSD): New entity.
13632 (RE_Num_Prims): New entity.
13633 (RE_Offset_To_Top_Function_Ptr): New entity.
13634 (RE_OSD_Table): New entity.
13635 (RE_OSD_Num_Prims): New entity.
13636 (RE_Predef_Prims): New entity
13637 (RE_Predef_Prims_Table_Ptr): New entity.
13638 (RE_Primary_DT): New entity.
13639 (RE_Signature): New entity.
13640 (RE_SSD): New entity.
13641 (RE_TSD): New entity.
13642 (RE_Type_Specific_Data): New entity.
13643 (RE_Tag_Kind): New entity.
13645 2007-06-06 Thomas Quinot <quinot@adacore.com>
13647 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
13648 C imported variable.
13649 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
13652 2007-06-06 Robert Dewar <dewar@adacore.com>
13654 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
13657 2007-06-06 Vincent Celier <celier@adacore.com>
13659 * a-tifiio.adb (Put, internal): For negative numbers, check that there
13660 is room for at least one digit and the minus sign.
13661 (Put.Put_Character): Never put a character outside of the range of
13664 2007-06-06 Olivier Hainque <hainque@adacore.com>
13665 Eric Botcazou <ebotcazou@adacore.com>
13667 * utils2.c (build_allocator): Provide the extra arguments to
13668 make_aligning_type for super-aligned objects allocated from the default
13669 pool. Leave enough room for a pointer before the aligning field, and
13670 store the system's allocator return value there.
13671 (build_call_alloc_dealloc): When releasing a super-aligned object,
13672 retrieve the system's allocator return value from where build_allocator
13673 has stored it, just ahead of the adjusted address we are passed.
13674 (build_call_raise): Handle properly the generation of line numbers when
13675 the node is marked No_Location.
13676 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
13677 by using DECL_UID on ties.
13678 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
13680 (build_call_raise): Handle converting exception into goto; support new
13682 (build_component_ref): Add new arg to build_call_raise.
13684 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13686 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
13687 "." in the case of nnn.xxx when nnn terminates with an underscore.
13688 Parse the remaining "#" or ":" in the case of nnn#.xxx#
13690 2007-06-06 Robert Dewar <dewar@adacore.com>
13692 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
13694 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13695 Vincent Celier <celier@adacore.com>
13696 Robert Dewar <dewar@adacore.com>
13698 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
13700 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
13701 ((destructor)) for adafinal, even when switch -a is used.
13702 Do not issue pragma Linker_Destructor for adafinal when switch -a is
13704 (Gen_Object_Files_Options): Add formatting of Linker Options, when
13705 Output_Linker_Option_List is set. Suppress this formatting when
13706 Zero_Formatting is set.
13707 Add case for CLI_Target.
13708 (System_Restrictions_Used): New flag, used to avoid generating with of
13709 System_Restrictions and initialization of the data unless there is
13710 some use of System.Restrictions in the partition.
13711 (Check_System_Restrictions_Used): New procedure
13713 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
13714 since we only with this unit in the binder file if it is used elsewhere
13717 2007-06-06 Vincent Celier <celier@adacore.com>
13719 * bindusg.adb: Add line for @<response file>
13720 Add lines for new switches -R and -Z
13722 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
13723 hierarchy in the list of files of the closure when -R is used
13724 (Gnatbind): Accept arguments starting with '@' to indicate response
13725 files and take the arguments from the response files.
13726 If List_Closure is set, display the referenced files
13728 2007-06-06 Javier Miranda <miranda@adacore.com>
13729 Robert Dewar <dewar@adacore.com>
13730 Ed Schonberg <schonberg@adacore.com>
13732 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
13733 which the address-clause is applied to in-mode actuals (allowed by
13735 (Apply_Discriminant_Check): Do not generate a check if the type is
13736 constrained by a current instance.
13737 (Activate_Division_Check): New procedure
13738 (Activate_Overflow_Check): New procedure
13739 (Activate_Range_Check): New procedure
13740 Call these new Activate procedures instead of setting flags directly
13741 (Apply_Array_Size_Check): Removed, no longer needed.
13742 Code clean up: remove obsolete code related to GCC 2.
13743 (Get_E_Length): Protect against bomb in case scope is standard
13744 (Selected_Range_Checks): If the node to be checked is a conversion to
13745 an unconstrained array type, and the expression is a slice, use the
13746 bounds of the slice to construct the required constraint checks.
13747 Improve NOT NULL error messages
13748 (Apply_Constraint_Check): If the context is a null-excluding access
13749 type, diagnose properly the literal null.
13751 2007-06-06 Pascal Obry <obry@adacore.com>
13753 * clean.adb (Clean_Archive): Use untouched casing for the archive name
13754 and the corresponding .deps file.
13755 (Clean_Interface_Copy_Directory): Use untouched casing for the library
13756 src directory. Minor code-clean-up. Use untouched casing for files
13757 read into the library src dir.
13758 (Clean_Library_Directory): Idem.
13759 (Parse_Cmd_Line): Accept new switch -aP
13761 2007-06-06 Javier Miranda <miranda@adacore.com>
13762 Ed Schonberg <schonberg@adacore.com>
13763 Robert Dewar <dewar@adacore.com>
13764 Eric Botcazou <ebotcazou@adacore.com>
13765 Arnaud Charlet <charlet@adacore.com>
13767 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
13768 applicable to types that have the With_Type flag set. Returns the
13769 non-limited view of the type, if available, otherwise the type itself.
13770 For class-wide types, there is no direct link in the tree, so we have
13771 to retrieve the class-wide type of the non-limited view of the Etype.
13772 New attributes Static_Initialization and Static_Elaboration_Desired.
13773 Remove the pragma Thread_Body, and the associated flag
13774 Is_Thread_Body in entities, and all related code.
13775 (Suppress_Value_Tracking_On_Call): New flag
13776 E_Exception has Esize and Alignment fields
13777 (Universal_Aliasing): New function.
13778 (Set_Universal_Aliasing): New procedure.
13779 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
13780 (Check_Nested_Access): New procedure.
13781 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13782 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13783 (Related_Interface): New attribute. Present in dispatch table pointer
13784 components of records. Set to point to the entity of the corresponding
13786 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
13787 (Original_Access_Type): Remove, not needed.
13788 (Root_Type): Handle properly subtypes of class-wide-types.
13791 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
13792 class-wide types visible through limited-with clauses.
13793 (Try_Primitive_Operation): When examining all primitive operations of a
13794 tagged type, do not consider subprograms labeled as hidden unless they
13795 belong to a private generic type with a tagged parent.
13796 (Try_Object_Operation): Extensive rewriting, to handle properly various
13797 overloading cases, when several ancestors may have class-wide operations
13798 that are possible candidates, and when the overloaded functions return
13799 array types and have defaulted parameters so that the call may be
13800 interpreted as an indexing.
13801 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
13802 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
13803 successive actuals before analyzing the call itself.
13804 (Try_Primitive_Operation): A primitive operation is compatible with the
13805 prefix if the prefix has a synchronized type and the type of the formal
13806 is its corresponding record, as can be the case when the primitive
13807 operation is declared outside of the body of the type.
13808 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
13809 perform homonym traversal, looking for class-wide operation matches
13810 (formerly done in statements of Try_Class_Wide_Operation). Matches on
13811 access parameters are now restricted to anonymous access types.
13812 (Mark_Allocator): An allocator with a discriminant association parent is
13814 (Try_One_Prefix_Interpretation): If the type of the object is
13815 incomplete, as can be happen when it is a limited view obtained through
13816 a limited_with_clause, the selected component is not part of a prefixed
13818 (Complete_Object_Operation): Diagnose properly an object that is not
13819 aliased when the corresponding controlling formal is an access
13821 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
13822 ambiguous calls in prefixed notation, where two primitives differ only
13823 in that the controlling argument of one is an access parameter.
13825 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
13826 whether a function that returns an unconstrained type can be inlined.
13827 (Process_Formals): Diagnose properly the illegal use of an incomplete
13828 type in the profile of an access_to_subprogram declaration.
13829 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
13830 operations are attached to the corresponding record.
13831 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
13832 When processing a primitive of a concurrent type which implements an
13833 interface change the type of all controlling formals to that of the
13834 corresponding record type.
13835 (Check_Synchronized_Overriding): Relax the conditional logic when trying
13836 to determine the tagged type to which a primitive belongs.
13837 (Check_Conventions): Capture condition to ignore a primitive operation
13838 (which is shared between the loop in Check_Conventions and the one in
13839 Check_Convention) in a new local function Skip_Check.
13840 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
13841 confusion with Check_Conventions' own Prim_Op local variable.
13842 (Create_Extra_Formals): Test for a tagged result type rather than a
13843 controlling result when determining whether to add a BIP_Alloc_Form
13844 formal and a BIP_Final_List formal to the function.
13845 (Check_Conformance); For parameters that are anonymous access types,
13846 subtype conformance requires that the not null and the constant
13847 indicators must match
13848 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
13849 to retrieve the appropriate type when processing a concurrent type
13850 declared within a generic. Minor comment reformatting. Change invocation
13851 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
13853 (Analyze_Subprogram_Body): If the return type of a function is an
13854 anonymous access to the limited view of a class-wide type, and the
13855 non-limited view of the type is available, update the type of the
13856 function so that code can be generated.
13857 (Process_Formals): In case of access-subtype itype whose designated
13858 type is also an itype (situation that happens now with access to
13859 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
13860 attribute to avoid backend problems.
13861 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
13862 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
13863 anonymous types' designated types are same before testing
13864 Subtypes_Statically_Match.
13865 (Create_Extra_Formals): Test for a named access parameter that is a
13866 controlling formal as an additional condition for adding an
13867 accessibility level formal. This can occur in the subp type created for
13868 dispatching calls in Expand_Dispatching_Call, and allows calling
13869 Create_Extra_Formals from that procedure rather than special-casing the
13870 extra formals there.
13871 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
13872 when the function has a controlling result.
13873 (Check_Returns): Add much more knowledge of the optimization of local
13874 raise statements to gotos, to retain proper warnings in this case.
13875 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
13876 nodes when looking for last statement.
13878 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
13879 class-wide types visible through limited with clauses.
13880 (Add_One_Interp): If the operands are anonymous access types, the
13881 predefined operator on universal_access is immediately visibles
13882 (Find_Unique_Type): Handle anonymous access to subprogram types just as
13883 other anonymous access types.
13884 (Disambiguate): Take into account CIL convention.
13885 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
13887 2007-06-06 Robert Dewar <dewar@adacore.com>
13889 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
13890 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
13891 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
13892 Fix lower bound of tables.
13895 * nlists.adb: Ditto.
13896 (Prev_Node, Next_Node): Change index type to Int so that it properly
13897 covers the range First_Node_Id - 1 up.
13899 2007-06-06 Javier Miranda <miranda@adacore.com>
13900 Ed Schonberg <schonberg@adacore.com>
13901 Bob Duff <duff@adacore.com>
13902 Hristian Kirtchev <kirtchev@adacore.com>
13904 * exp_aggr.ads, exp_aggr.adb:
13905 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
13906 in extension aggregates.
13907 (Flatten): Other conditions being met, an aggregate is static if the
13908 low bound given by component associations is different from the low
13909 bound of the base index type.
13910 (Packed_Array_Aggregate_Handled): If the component type is itself a
13911 packed array or record, the front-end must expand into assignments.
13912 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
13913 Init_Pr, instead of Ancestor_Is_Expression.
13914 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
13915 coextension chain root, either generate a list controller or use the
13916 already existing one.
13917 (Static_Array_Aggregate): New procedure to construct a positional
13918 aggregate that can be handled by the backend, when all bounds and
13919 components are compile-time known constants.
13920 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
13921 types covering interface types into assignments.
13922 (Replace_Type): move to Build_Record_Aggr_Code.
13923 (Expand_Record_Aggr_Code): if the target of the aggregate is an
13924 interface type, convert to the definite type of the aggregate itself,
13925 so that needed components are visible.
13926 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
13927 components and the context is an extended return statement do not
13928 create a transient block for it, to prevent premature finalization
13929 before the return is executed.
13930 (Gen_Assign): Do not generate a call to deep adjust routine if the
13931 component type is itself an array of controlled (sub)-components
13932 initialized with an inner aggregate.
13933 (Component_Check): New name for Static_Check. This name is now more
13934 appropriate, and documentation is added which was missing.
13935 (Component_Check): Add test for bit aligned component value
13936 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
13937 Tagged_Comps, name is more appropriate given added function below.
13938 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
13940 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13941 Javier Miranda <miranda@adacore.com>
13942 Robert Dewar <dewar@adacore.com>
13944 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
13945 Terminated: Add unchecked type conversion from System.Address to
13946 System.Tasking.Task_Id when calling the predefined primitive
13948 Disable new Ada 05 accessibility check for JVM.NET targets, which
13949 cannot be implemented in a practical way.
13950 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13951 the sources always references the tag of the actual object. Therefore,
13952 if 'Tag is applied in the sources to class-wide interface objects we
13953 generate code that displaces "this" to reference the base of the object.
13954 (Expand_N_Attribute_Reference, case Size): Return specified size if
13955 known to front end.
13956 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13957 has code that displaces the pointer of the object to manage interface
13958 types. However this code must not be executed when the prefix is a
13959 subprogram. This bug caused the wrong expansion of the internally
13960 generated assignment that fills the dispatch table when the primitive
13961 is a function returning a class-wide interface type.
13962 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13963 Set_Attribute_Name for Name_Unaligned_Valid.
13965 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13966 Gary Dismukes <dismukes@adacore.com>
13968 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13969 If the initialization is the equivalent aggregate of the initialization
13970 procedure of the type, do not remove it.
13971 (Expand_N_Attribute_Definition_Clause): Exclude access variables
13972 initialized to null from having their expression reset to empty and
13973 note this exception in the comment.
13975 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13976 Robert Dewar <dewar@adacore.com>
13977 Ed Schonberg <schonberg@adacore.com>
13978 Gary Dismukes <dismukes@adacore.com>
13980 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13981 Add "with" and "use" clauses for Sem_Attr.
13982 (Expand_Current_Value): Do not replace occurences of attribute
13983 references where the prefix must be a simple name.
13985 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13986 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13987 Attribute_Requires_Simple_Name_Prefix.
13988 (Name_Modifies_Prefix): Body of new function.
13989 (Requires_Simple_Name_Prefix): Body of new function.
13990 (Resolve_Attribute, case Access): Improve error message for case of
13991 mismatched conventions.
13992 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13994 (Analyze_Attribute, case 'Access): If the type of the prefix is a
13995 constrained subtype for a nominal unconstrained type, use its base type
13996 to check for conformance with the context.
13997 (Resolve_Attribute): Remove test of the access type being associated
13998 with a return statement from condition for performing accessibility
13999 checks on access attributes, since this case is now captured by
14000 Is_Local_Anonymous_Access.
14001 (Analyze_Access_Attribute): Set Address_Taken on entity
14002 (Analyze_Attribute, case Address): Set Address_Taken on entity
14003 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
14004 validating an access attribute whose prefix is a current instance.
14005 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
14006 applied to dispatching operations, if freezing is required then we set
14007 the attribute Has_Delayed_Freeze in the prefix's entity.
14008 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
14009 current scope if access of local subprogram taken
14010 (Analyze_Access_Attribute): Check legality of self-reference even if the
14011 expression comes from source, as when a single component association in
14012 an aggregate has a box association.
14013 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
14014 the prefix if it is a protected operation and the attribute is
14015 Unrestricted_Access.
14016 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
14017 reference to the base type of the context, to force a constraint check
14018 when the context is an access subtype with an explicit constraint.
14019 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
14020 node is rewritten as an interface conversion. leave unanalyzed after
14021 resolution, to ensure that type checking against the context will take
14024 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14025 Javier Miranda <miranda@adacore.com>
14026 Robert Dewar <dewar@adacore.com>
14028 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
14029 wrapper when the full view of the controlling type of an inherited
14030 function that dispatches on result implements interfaces.
14031 (Expand_N_Object_Declaration): In cases where the type of the
14032 declaration is anonymous access, create finalization list for it.
14033 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
14034 if the object has no explicit initialization, to match description of
14035 functionality of pragam Persistent_BSS.
14036 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
14037 new function to build static aggregates, to replace initialization call
14038 when static initialization is desired.
14039 (Freeze_Type): Generate a list controller for an access type whenever
14040 its designated type has controlled anonymous access discriminants.
14041 (Build_Equivalent_Aggregate): New procedure to compute a static
14042 aggregate to be used as default initialization for composite types,
14043 instead of a generating a call to the initialization procedure for the
14045 (Build_Initialization_Call): When available, replace a call to the
14046 initialization procedure with a copy of the equivalent static aggregate
14048 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
14049 declarations for objects of a class-wide interface type, rather than
14050 just identifiers, to prevent visibility problems.
14051 (Expand_N_Object_Declaration): When expanding the declaration for an
14052 object of a class-wide interface type, preserve the homonym chain of
14053 the original entity before exchanging it with that of the generated
14054 renaming declaration.
14055 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
14056 active, because there is no way to handle the exception.
14057 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
14058 to do a minimum decoration of the Access_Disp_Table list.
14059 (Expand_Record_Controller): Avoid the addition of the controller between
14060 the component containing the tag of a secondary dispatch table and its
14061 adjacent component that stores the offset to the base of the object.
14062 This latter component is only generated when the parent type has
14063 discriminants ---documented in Add_Interface_Tag_Components).
14064 (Apply_Array_Size_Check): Removed, no longer needed.
14065 (Expand_N_Full_Type_Declaration): If the type has anonymous access
14066 components, create a Master_Entity for it only if it contains tasks.
14067 (Build_Init_Procedure): Suppress the tag assignment compiling under
14069 (Freeze_Record_Type): Remove code associated with creation of dispatch
14071 (Init_Secondary_Tags): Update type of actuals when generating calls to
14072 Ada.Tags.Set_Offset_To_Top
14073 (Stream_Operation_OK): Disable use of streams compiling under no
14075 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
14076 if Has_Init_Expression set.
14077 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
14078 Register_Primitive, which provides the same functionality.
14079 (Requires_Init_Proc): Return false in case of interface types.
14080 (Add_Secondary_Tables): Use the new attribute Related_Interface to
14082 (Predefined_Primitive_Freeze): Do not assume that an internal entity
14083 is always associated with a predefined primitive because the internal
14084 entities associated with interface types are not predefined primitives.
14085 Therefore, the call to Is_Internal is replaced by a call to the
14086 function Is_Predefined_Dispatching_Operation.
14087 (Make_Eq_If): When generating the list of comparisons for the
14088 components of a given variant, omit the controller component that is
14089 present if the variant has controlled components.
14091 2007-06-06 Javier Miranda <miranda@adacore.com>
14092 Hristian Kirtchev <kirtchev@adacore.com>
14093 Bob Duff <duff@adacore.com>
14095 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
14096 handle the creation of finalization lists and calls for nested
14097 coextensions when the root of the chains is part of a return statement.
14098 (Inside_A_Return_Statement): New function inside Complete_Coextension_
14100 (Expand_Record_Equality): Skip components that are interface types.
14101 (Displace_Allocator_Pointer): Add missing support for interface subtypes
14102 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
14103 with Rewrite_Coextension. Change the condition for detecting coextension
14105 (Is_Local_Access_Discriminant): Removed.
14106 (Rewrite_Coextension): New routine which rewrites a static coextension
14107 as a temporary and uses its unrestricted access in the construction of
14109 (Complete_Coextension_Finalization): New routine. Generate finalization
14110 attachment calls to all delayed coextensions.
14111 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
14112 the allocator is not a coextension itself and has delayed coextensions.
14113 If the current allocator is controlled, but also a coextension, delay
14114 the generation of the finalization attachment call.
14115 Rename local variable "Node" to "Nod" in order to avoid confusion with
14117 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
14118 limited types that are not inherently limited. Such an allocator is
14119 illegal, but is generated by the expander for a return statement, to
14120 copy the result onto the secondary stack. This is the only case where a
14121 limited object can be copied. Generate code to displace the pointer
14122 to the object if the qualified expression is a class-wide interface
14123 object. Such displacement was missing and hence the copy of the object
14125 (Apply_Accessibility_Check): Handle allocated objects initialized in
14127 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
14128 and Expand_Allocator_Expression. Allocating class-wide interface objects
14129 this routine displaces the pointer to the allocated object to reference
14130 the component referencing the corresponding secondary dispatch table.
14131 Expand_Allocator_Expression): Add missing support to allocate class-wide
14132 interface objects initialized with a qualified expression.
14133 (Get_Allocator_Final_List): Test for an anonymous access type that is a
14134 function result type, and use the finalization list associated with the
14135 function scope in that case (such an anonymous type should not be
14136 treated like an access parameter's type).
14138 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14139 Gary Dismukes <dismukes@adacore.com>
14140 Javier Miranda <miranda@adacore.com>
14142 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
14143 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
14144 required exception handler.
14145 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
14146 properly the case of a function whose return type is a limited
14147 class-wide interface type. Modify the code of the accessibility
14148 check to handle class-wide interface objects. In this case we need to
14149 displace "this" to reference the primary dispatch table to get access
14150 to the TSD of the object (to evaluate its accessibility level).
14151 (Expand_N_Extended_Return_Statement): Test for a tagged result type
14152 rather than a controlling result as one of the conditions for
14153 generating tests of the implicit BIP_Alloc_Form formal. The
14154 initialization assignment is also handled according to whether the
14155 result is tagged instead of controlling.
14156 In the case where the init assignment is inserted in the "then" part of
14157 the allocation conditional, rewrite the target to be a dereference of
14158 the implicit BIP_Object_Access formal.
14159 If the returned value is unconstrained and created on the secondary
14160 stack, mark the enclosing block and function so that the secondary
14161 stack is not reclaimed on return.
14162 Treat returns from functions with controlling results similarly to
14163 returns from functions with unconstrained result subtypes.
14164 If the object returned is unconstrained, and an allocator must be
14165 created for it, analyze the allocator once the block for the extended
14166 return is installed, to ensure that finalizable components
14167 of the expression use the proper finalization list. Guard the call to
14168 Move_Final_List with a check that there is something to finalize.
14169 (Make_Tag_Ctrl_Assignment): Use "old" handling
14170 of controlled type assignment for virtual machines, since new code uses
14171 unsupported features (such as direct access to bytes in memory).
14173 2007-06-06 Gary Dismukes <dismukes@adacore.com>
14174 Ed Schonberg <schonberg@adacore.com>
14176 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
14177 accessibility actual, check for the case of an aliased object that has
14178 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
14179 we fall into processing for the attribute rather than the name of the
14181 (Expand_Inline_Call): If an actual is a literal, and the corresponding
14182 formal has its address taken in the body, create a temporary to capture
14183 value. If the return type is a limited interface, do not treat the
14184 return value as Controlled.
14185 (Is_In_Place_Function): If the return type is a limited interface,
14186 treat as returning in place. The actual returned object may not always
14187 be limited, but the caller has to assume that it is returned in place.
14188 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
14189 context of an allocator, use the correct finalization chain (that is,
14190 the chain belonging to the access type, rather than the chain belonging
14191 to the current scope).
14192 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
14193 result type rather than a controlling result as a precondition for
14194 adding an allocation form actual to a build-in-place call.
14195 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
14196 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
14197 primitive in the dispatch tables. This work is now done by Make_DT when
14198 the type is frozen.
14199 (Register_Predefined_DT_Entry): Removed.
14200 (Add_Return): If end label is not present, use sloc of last statement
14201 for generated return statement in procedure, for better gdb behavior
14203 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
14204 object address nodes to ensure proper processing by routines like
14206 (Expand_Call): Fix generation of validity check for parameter
14207 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
14208 the allocation form parameter if the result subtype is constrained,
14209 except when the function has a controlling result.
14210 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
14211 rather than Is_Controlled and Has_Controlled_Component, since we want to
14212 include class-wide result types in this treatment. Also test for a
14213 controlling result, since that also requires passing a finalization
14215 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
14216 even when the result subtype is constrained, to handle calls involving
14217 controlling results.
14218 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
14219 is now called even when the result subtype is constrained, to handle
14220 calls involving controlling results.
14221 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
14222 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
14223 now performs the test).
14224 (Make_Build_In_Place_Call_In_Object_Declaration):
14225 Add_Alloc_Form_Actual_* is now called even when the result subtype is
14226 constrained, to handle calls involving controlling results.
14227 (Add_Return): Accomodate rewritten pattern from local raise to goto
14228 transformation, so that we still recognize an transfer statement
14229 and do the right thing here in that case.
14230 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
14231 and end of subprogram code.
14232 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
14233 support for primitives that are functions (without formals) with a
14234 controlling result.
14235 (Inherited_From_Formal): If the actual subtype has not generic parent
14236 type, it is not an actual for a formal derived type, and there is no
14237 operation to inherit from the formal.
14239 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14240 Thomas Quinot <quinot@adacore.com>
14242 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
14243 inserted cleanup code appropriately for GDB use.
14244 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
14245 exception handler for Deep_Adjust or Deep_Finalize.
14246 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
14247 Raise_From_Controlled_Operation is available, use a call to that
14248 subprogram instead of a plain "raise Program_Error" node to raise
14249 Program_Error if an exception is propagated from an Adjust or Finalize
14251 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
14252 appears in the optional statement list of a triggering alternative, the
14253 scope actions can be inserted directly there, and not in the list that
14254 includes the asynchronous select itself.
14256 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14257 Robert Dewar <dewar@adacore.com>
14258 Hristian Kirtchev <kirtchev@adacore.com>
14260 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
14261 generated exception handler appropriately when debugging generated code.
14262 Deal properly with No_Exception_Propagation restriction mode.
14263 (Expand_N_Abort_Statement): Add an unchecked type conversion from
14264 System.Address to System.Tasking.Task_Id when processing the result of
14265 the predefined primitive _disp_get_task_id.
14266 (Expand_N_Asynchronous_Select): Clarify comment.
14267 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
14268 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
14269 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
14270 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
14271 privals and for generated call to Complete_Entry_Body, for better gdb
14273 (Copy_Result_Type): Utility to construct a parameter and result profile
14274 for protected functions whose return type is an anonymous access to
14276 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
14278 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
14279 point when the local-raise-to-goto transformation has taken place.
14281 2007-06-06 Javier Miranda <miranda@adacore.com>
14282 Nicolas Setton <setton@adacore.com>
14284 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
14285 functionality when the backend is generating code.
14286 Otherwise any serious error
14287 reported by the backend calling the frontend routine Error_Msg
14288 changes the Compilation_Mode to Check_Semantics, disables the
14289 functionality of this routine and causes the generation of
14290 spureous additional errors.
14292 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
14293 debugging information now generated by the compiler for fat-pointer
14295 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
14297 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
14299 2007-06-06 Thomas Quinot <quinot@adacore.com>
14301 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
14302 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14303 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14304 For a remote call to a function with a classwide return type, apply an
14305 E.4(18) check to the returned value.
14306 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
14307 stream attributes of the designated type of an RACW, as they are not
14308 dispatching primitive operations.
14310 2007-06-06 Geert Bosch <bosch@adacore.com>
14312 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
14314 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
14316 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
14317 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
14319 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
14321 2007-06-06 Javier Miranda <miranda@adacore.com>
14323 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
14324 attribute compiling package Ada.Tags under No_Run_Time_Mode.
14326 2007-06-06 Javier Miranda <miranda@adacore.com>
14328 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
14329 deallocation of class-wide interface objects.
14330 (Expand_Dispatching_Constructor_Call): Take into account that if the
14331 result of the dispatching constructor is an interface type, the
14332 function returns a class-wide interface type; otherwise the returned
14333 object would be actual. The frontend previously accepted returning
14334 interface types because Expand_Interface_Actuals silently performed
14335 the management of the returned type "as if" it were a class-wide
14337 (Expand_Dispatching_Constructor_Call): Replace call to
14338 Make_DT_Access_Action by direct call to Make_Function_Call.
14340 2007-06-06 Robert Dewar <dewar@adacore.com>
14341 Ed Schonberg <schonberg@adacore.com>
14343 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
14344 compute masking constant, since we now set Esize properly to the
14346 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
14347 to match the alignment.
14348 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
14349 packed arrays of 8 bits or less.
14351 * freeze.adb (Freeze_Entity): When freezing the formals of a
14352 subprogram, freeze the designated type of a parameter of an access type
14353 only if it is an access parameter.
14354 Increase size of C convention enumeration object
14355 (Freeze_Entity, array type case): Make sure Esize value is properly
14356 adjusted for the alignment if it is known.
14357 (Freeze_Entity, array type case): When checking bit packed arrays for
14358 the size being incorrect, check RM_Size, not Esize.
14359 (Freeze_Record_Type): Check for bad discriminated record convention
14360 (In_Exp_Body): Return true if the body is generated for a subprogram
14361 renaming, either an attribute renaming or a renaming as body.
14362 (Check_Itype): If the designated type of an anonymous access component
14363 is a non-protected subprogram type, indicate that it is frozen, to
14364 prevent out-of-scope freeze node at some subsequent call.
14365 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
14366 only if the subprogram is neither imported nor exported, as well as the
14367 NCA descriptor class if the subprogram is exported.
14369 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14370 Arnaud Charlet <charlet@adacore.com>
14371 Robert Dewar <dewar@adacore.com>
14372 Gary Dismukes <dismukes@adacore.com>
14374 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
14375 default initialization on an imported object, when there is no
14376 initialization call generated for it.
14377 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
14380 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
14381 Static_Elaboration_Desired.
14382 Remove pragma Thread_Body.
14383 Implement a new pragma No_Body
14384 Removes the Explicit_Overriding pragma
14385 Remove Optional_Overriding pragma
14386 (Prag): Deal with Universal_Aliasing.
14387 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14388 Pragma_CIL_Constructor): New names.
14390 * sem_cat.adb (Validate_Object_Declaration): An initialization that
14391 uses the equivalent aggregate of a type must be treated as an implicit
14393 (Get_Categorization): Check a unit for pragma Preelaborate only if it
14394 has none of the other categories.
14395 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
14396 to apply Import to an object renaming declaration.
14398 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
14399 from a C++ class should be declared as limited and that it will be
14400 considererd limited.
14401 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
14402 should be declared as limited and that it will be considererd limited.
14403 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
14404 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
14405 (Analyze_Pragma): Deal with Universal_Aliasing.
14406 (Sig_Flags): Likewise.
14407 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
14408 (Overflow_Checks_Unsuppressed): New flag.
14409 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
14410 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
14411 case of JVM or .NET targets, and compiling user code.
14412 Add debugging convenience routine rv
14414 2007-06-06 Robert Dewar <dewar@adacore.com>
14416 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
14417 are interface type.
14418 (Build_Elementary_Input_Call): For floating-point use right type in the
14419 absence of strange size or stream size clauses.
14420 (Build_Elementary_Write_Call): Same fix
14421 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
14422 set to value that does not match base type size.
14424 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14426 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
14427 object of a limited type can be initialized with a call to a function
14428 that returns in place. If the limited type has unknown discriminants,
14429 and the underlying type is a constrained composite type, build an actual
14430 subtype from the function call, as is done for private types.
14431 (Side_Effect_Free): An expression that is the renaming of an object or
14432 whose prefix is the renaming of a object, is not side-effect free
14433 because it may be assigned through the renaming and its value must be
14434 captured in a temporary.
14435 (Has_Controlled_Coextensions): New routine.
14436 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
14437 as is done for other limited types.
14438 (Non_Limited_Designated_Type): new predicate.
14439 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
14441 Remove all handling of with_type clauses.
14443 * par-ch10.adb: Remove all handling of with_type clauses.
14445 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
14446 checksum if the main source could not be parsed.
14447 (Loat_Unit): When processing a child unit, determine properly whether
14448 the parent unit is a renaming when the parent is itself a child unit.
14449 Remove handling of with_type clauses.
14451 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
14452 (Set_Is_Static_Coextension): New procedure.
14453 (Has_Local_Raise): New function
14454 (Set_Has_Local_Raise): New procedure
14455 (Renaming_Exception): New field
14456 (Has_Init_Expression): New flag
14457 (Delay_Finalize_Attach): Remove because flag is obsolete.
14458 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
14459 Remove all handling of with_type clauses.
14460 (Exception_Junk): Can now be set in N_Block_Statement
14462 2007-06-06 Vincent Celier <celier@adacore.com>
14463 Robert Dewar <dewar@adacore.com>
14465 * frontend.adb (Frontend): Return immediately if the main source could
14466 not be parsed, because of preprocessing errors.
14468 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
14469 (Gnat1drv): Exit with errors if the main source could not be parsed,
14470 because of preprocessing errors.
14471 (Check_Rep_Info): New procedure
14473 2007-06-06 Robert Dewar <dewar@adacore.com>
14475 * g-hesorg.ads, g-heasor.ads,
14476 g-busorg.ads, g-bubsor.ads: Update documentation
14477 GNAT.Heap/Bubble_Sort_G is now pure
14479 2007-06-06 Robert Dewar <dewar@adacore.com>
14481 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
14483 2007-06-06 Robert Dewar <dewar@adacore.com>
14484 Ed Schonberg <schonberg@adacore.com>
14486 * g-comlin.ads, g-comlin.adb:
14487 Add new warning for renaming of function return objects
14489 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
14490 (Tree_Read): Use size of object instead of type'object_size, since the
14491 latter is incorrect for packed array types.
14492 (Tree_Write): Same fix
14494 * opt.ads: Add new warning for renaming of function return objects
14495 (Generating_Code): New boolean variable used to indicate that the
14496 frontend as finished its work and has called the backend to process
14497 the tree and generate the object file.
14498 (GCC_Version): Is now private
14499 (Static_Dispatch_Tables): New constant declaration.
14500 (Overflow_Checks_Unsuppressed): New flag.
14501 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
14502 (List_Closure): New flag for gnatbind (-R)
14503 Zero_Formatting: New flag for gnatbind (-Z)
14504 (Special_Exception_Package_Used): New flag.
14505 (Warn_On_Unrepped_Components): New flag.
14507 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
14508 unit is a compilation unit, rather than relying on its scope, so that
14509 Standard can be renamed.
14510 (Analyze_Object_Renaming): Add new warning for renaming of function
14512 Also reject attempt to rename function return object in Ada 83 mode.
14513 (Attribute_Renaming): In case of tagged types, add the body of the
14514 generated function to the freezing actions of the type.
14515 (Find_Type): A protected type is visible right after the reserved word
14516 "is" is encountered in its type declaration. Set the entity and type
14517 rather than emitting an error message.
14518 (New_Scope): Properly propagate Discard_Names to inner scopes
14519 (Check_Nested_Access): New procedure.
14520 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
14521 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14523 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
14524 Add new warning for renaming of function return objects
14525 (Check_References): Suppress warnings for objects whose type or
14526 base type has Warnings suppressed.
14527 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
14528 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
14530 2007-06-06 Vincent Celier <celier@adacore.com>
14531 Emmanuel Briot <briot@adacore.com>
14532 Olivier Hainque <hainque@adacore.com>
14534 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
14535 absolute value of Header.Block_Size when displaying the freed physical
14537 (Allocate): Compute Storage_Address using Integer_Address, not
14538 Storage_Offset, because the range of Storage_Offset may not be large
14540 (Configure): New parameter Low_Level_Traces
14541 (Allocate, Deallocation, Free_Physically): Added low-level traces
14542 (Configure): new parameter Errors_To_Stdout.
14543 (Output_File): new subprogram
14544 (Deallocate, Dereference): Send error messages to the proper stream
14545 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
14546 documented. Previous code would send it to the current output file
14547 defined in GNAT.IO, which might not be stdout
14548 (Is_Valid): Adjust comment to mention that a positive reply means that
14549 Header_Of may be used to retrieve the allocation header associated with
14550 the subprogram Storage address argument. Return False early if this
14551 address argument is misaligned.
14553 2007-06-06 Vincent Celier <celier@adacore.com>
14555 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
14557 (ASIS_Main): New global variable
14558 (Get_Closure): New procedure
14559 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
14560 check, metric or pretty. Call Get_Closure in this case.
14561 (Check_Files): For GNAT LIST, check all sources of all projects when
14562 All_Projects is True.
14563 (GNATCmd): Accept -U for GNAT LIST
14565 2007-06-06 Vincent Celier <celier@adacore.com>
14567 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
14569 Correct error message when invocation of the linker fails
14570 Add explicit size clause for the C imported variables
14571 Object_List_File_Supported and Using_GNU_Linker to emphasize that
14572 we expect char size.
14573 Read target parameters earlier, since this is needed to set
14574 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
14577 2007-06-06 Vincent Celier <celier@adacore.com>
14580 Add 3 spaces before the default project directory when displaying
14581 the project search path.
14582 Add new command line switch '-l' to display license information.
14584 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
14586 * gmem.c: Add support for timestamps on memory operations.
14588 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
14589 operations (not used currently, just foundation for future
14590 enhancements). Add possibility to perform full dump of gmem.out file.
14591 (Print_Back_Traces): Declare accesses to root arrays constants since
14592 they aren't modified.
14593 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
14595 2007-06-06 Vincent Celier <celier@adacore.com>
14597 * gnatsym.adb: Update Copyright notice
14598 (Parse_Cmd_Line): Accept new switch -D
14599 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
14602 * prj.ads (Policy): New policy Direct
14603 (Yes_No_Unknown): New enumeration type
14604 (Project_Data): New component Libgnarl_Needed
14606 * prj-nmsc.adb (Check_For_Source): When recording a source file make
14607 use the untouched pathname casing.
14608 (Get_Directories): Ensure that the Display_Exec_Directory is using the
14609 proper casing on non case-sensitive platforms like Windows.
14610 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
14611 on all platforms, as it is not possible to know which one is allowed
14612 before processing the project files.
14613 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
14614 specified when symbol policy is Direct. Check that when there is a
14615 symbol file defined (either by default or with attribute
14616 Library_Symbol_File) it is not the same as the reference symbol file.
14617 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
14618 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
14619 extending projects.
14620 (Record_Ada_Source): Record a source that has been locally removed in an
14623 * symbols.ads (Policy): New policy Direct
14625 * symbols-vms.adb (Initialize): Take new policy Direct in case
14628 2007-06-06 Vincent Celier <celier@adacore.com>
14630 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
14631 Correct obvious bug (return Dir; instead of return Directory;).
14632 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
14634 2007-06-06 Thomas Quinot <quinot@adacore.com>
14636 * g-pehage.adb (Produce): Open output files in Binary mode, so that
14637 they have UNIX line endings (LF only) even on Windows, and thus pass
14638 all GNAT style checks.
14640 2007-06-06 Emmanuel Briot <briot@adacore.com>
14642 * g-regpat.adb (Quote): Fix improper quoting of '.'
14644 2007-06-06 Thomas Quinot <quinot@adacore.com>
14646 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
14647 default, set False on a per-runtime basis.
14648 (Need_Netdb_Buffer): New constant.
14650 * g-socket.ads, g-socket.adb: Import new package
14651 GNAT.Sockets.Thin.Task_Safe_NetDB.
14652 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
14653 binding to obtain proper message.
14654 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
14655 Replace various occurrences of Arry (Arry'First)'Address with the
14656 equivalent Arry'Address (GNAT always follows implementation advice from
14658 (Get_Host_By_Address, Get_Host_By_Name,
14659 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
14660 instead, rely on platform-specific task safe netdb operations provided
14663 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
14664 parameter Process_Blocking_IO.
14665 (Host_Error_Messages): Add stub body.
14666 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14667 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
14668 Safe_Getservbyport): Move functions into new child package
14670 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
14671 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
14672 (In_Addr): Add alignment clause.
14674 2007-06-06 Robert Dewar <dewar@adacore.com>
14676 * g-trasym.ads, g-traceb.ads: Update list of supported targets
14677 Add note about symbolic traceback
14679 2007-06-06 Pascal Obry <obry@adacore.com>
14681 * hostparm.ads (Normalized_CWD): Use the host directory separator
14682 instead of the hardcoded forward slash which is not the proper
14683 character on Windows for example.
14684 (Java_VM): Removed.
14686 2007-06-06 Vincent Celier <celier@adacore.com>
14687 Arnaud Charlet <charlet@adacore.com>
14689 * a-clrefi.adb, a-clrefi.ads: New files
14691 * impunit.adb: Add s-os_lib in the list of user visible units.
14692 (Non_Imp_File_Names_95): Add a-clrefi to this list
14693 Remove obsolete run-time entries.
14694 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
14695 "a-exetim" -- Ada.Execution_Time
14696 "a-extiti" -- Ada.Execution_Time.Timers
14698 * mlib-prj.ads, mlib-prj.adb
14699 (Build_Library): Use untouched object dir and library dir. At the
14700 same time makes sure that the checks are done using the canonical
14701 form. Removes hard-coded directory separator and use the proper host
14703 (Process_Project): Do not look in object directory to check if libgnarl
14704 is needed for a library, if there is no object directory.
14705 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
14707 (Build_Library): When invoking gnatbind, use a response file if the
14708 total size of the arguments is too large.
14710 * Makefile.rtl: (g-sttsne): New object file.
14711 Add entry for a-clrefi, s-utf_32, System.Exceptions
14713 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
14714 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
14715 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
14716 Change g-string to s-string, g-os_lib to s-os_lib
14717 Change all g-utf_32 references to s-utf_32
14719 2007-06-06 Tristan Gingold <gingold@adacore.com>
14720 Olivier Hainque <hainque@adacore.com>
14722 * init.c: Do not adjust IP of an imported VMS exception of ia64.
14723 LIB$STOP is called to raise an exception and the IP of the exception
14724 is the instruction right after the call.
14725 (__gnat_adjust_context_for_raise, AIX): Implement.
14726 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
14727 adjust_context_for_raise before Raise_From_Signal_Hanler.
14728 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
14729 siginfo is passed to the handler, necessary to let the zcx propagation
14730 engine unwind past it.
14732 2007-06-06 Olivier Hainque <hainque@adacore.com>
14734 * initialize.c (__gnat_initialize for vxworks): Update documentation
14735 on the ZCX support, using different sets of crtstuff objects than with
14738 2007-06-06 Robert Dewar <dewar@adacore.com>
14740 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
14742 (Layout_Type): Fix recomputation of size from alignment.
14744 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14745 Javier Miranda <miranda@adacore.com>
14747 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
14748 association in an instance.
14749 (Copy_Generic_Node): If the node is a string literal, no need to copy
14751 (Is_Generic_Formal): For a formal subprogram, the declaration is the
14752 grandparent of the entity.
14753 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
14754 to simplify handling of formal interfaces that derive from other formal
14756 (Instantiate_Subprogram_Body): The defining unit name of the body of
14757 the instance should be a defining identifier.
14758 (Install_Formal_Packages): make global to the package, for use in
14759 instantiations of child units.
14760 (Analyze_Package_Instantiation): Do not attempt to set information on an
14761 enclosing master of an entry when expansion is disabled.
14762 (Instantiate_Type): If the actual is a tagged synchronized type and the
14763 generic ancestor is an interface, create a generic actual for the
14764 corresponding record.
14765 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
14766 declaration, to ensure that the interface list is processed correctly.
14767 (Inline_Instance_Body): If enclosing scope is an instance body, remove
14768 its entities from visibiility as well.
14769 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
14770 given with a named association, analyze the expression only, not the
14771 discriminant association itself.
14772 (Reset_Entity): If the analysis of a selected component is transformed
14773 into an expanded name in the prefix of a call with parameters, do not
14774 transform the original node into an expanded name, to prevent visibility
14775 errors in the case of nested generics.
14776 (Check_Private_View): For an array type, check whether the index types
14777 may need exchanging.
14779 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14780 Vincent Celier <celier@adacore.com>
14782 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
14783 since both are separated.
14784 Add support for imported CIL packages.
14785 Add further special handling of "value_type" for CIL.
14786 Add special handling of pragma Import for CIL.
14788 * make.ads, make.adb: When switch -eS is used, direct all outputs to
14789 standard output instead of standard error, except errors.
14790 (Absolute_Path): Use untouched casing for the parent directory.
14791 (Add_Library_Search_Dir): Use the untouched directory name.
14792 (Add_Source_Search_Dir): Idem.
14793 (Change_To_Object_Directory): Update output to use proper casing.
14794 (Create_Binder_Mapping_File): Use the untouched filename to set
14796 (Gnatmake): Use untouched library and executable directory names.
14797 (Insert_Project_Sources): Use untouched filename for spec and body.
14798 (Is_In_Object_Directory): Use untouched object directory.
14799 (Mark_Directory): Idem.
14800 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
14801 contains the non-canonical filename in all cases.
14802 (Change_To_Object_Directory): In verbose mode, display the name of the
14803 object directory we're changing to.
14804 (Compile_Sources): Make sure, when a project file is used, to compile
14805 the body of the unit, when there is one, even when only the spec is
14806 recorded in an ALI file.
14807 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
14809 (Report_Compilation_Failed): New procedure
14810 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
14811 procedures moved from the spec to the body.
14812 (Extract_Failure): Removed, not used
14813 Replace explicit raises of exception Bind_Failed and Link_Failed with
14814 calls to Make_Failed with the proper message.
14815 Replace explicit raises of exception Compilation_Failed with calls to
14816 procedure Report_Compilation_Failed.
14817 (Initialize): Create mapping files unconditionally when using project
14820 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14821 Pragma_CIL_Constructor): New names.
14823 * targparm.ads, targparm.adb
14824 (Compiler_System_Version): Removed, no longer used.
14825 (Get_Target_Parameters): Relax checks on system.ads validity. Add
14826 handling of two new system flags: JVM and CLI.
14828 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14829 Arnaud Charlet <charlet@adacore.com>
14831 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
14832 time, use the default s-interr body that provides interrupt support
14834 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
14835 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
14836 g-soccon.ads, and s-taprop.adb for the marte run time.
14837 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
14838 timers are supported on marte.
14839 (EH_MECHANISM for marte): Do not use ZCX.
14840 (THREADSLIB for marte): Use -lmarte.
14841 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
14842 Add mlib-tgt-specific.o to gnatmake objects
14843 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
14844 longer of MLib.Tgt.
14845 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
14846 6, either kernel or rtp, use a specialized version of s-osinte.ads.
14848 2007-06-06 Pascal Obry <obry@adacore.com>
14850 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
14852 2007-06-06 Vincent Celier <celier@adacore.com>
14854 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
14855 separator, use instead the proper host directory separator.
14856 (Copy_ALI_Files): Make sure that an already existing ALI file in the
14857 ALI copy dir is writable, before doing the copy.
14859 * mlib-utl.ads, mlib-utl.adb:
14860 (Gcc): If length of command line is too long, put the list of object
14861 files in a response file, if this is supported by the platform.
14862 (Ar): If invocation of the archive builder is allowed to be done in
14863 chunks and building it in one shot would go above an OS dependent
14864 limit on the number of characters on the command line, build the archive
14867 2007-06-06 Vincent Celier <celier@adacore.com>
14869 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
14870 of specified object file is not equal to base name of source.
14872 2007-06-06 Javier Miranda <miranda@adacore.com>
14873 Hristian Kirtchev <kirtchev@adacore.com>
14874 Ed Schonberg <schonberg@adacore.com>
14876 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
14877 the full type declaration.
14878 (Analyze_Component_Declaration): Add local variable E to capture the
14879 initialization expression of the declaration. Replace the occurences of
14880 Expression (N) with E.
14881 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
14882 limited interface object with a function call.
14883 (Array_Type_Declaration): If the declaration lacks subtype marks for
14884 indices, create a simple index list to prevent cascaded errors.
14885 (Is_Null_Extension): Ignore internal components created for secondary
14886 tags when checking whether a record extension is a null extension.
14887 (Check_Abstract_Interfaces): Add missing support for interface subtypes
14888 and generic formals.
14889 (Derived_Type_Declaration): Add missing support for interface subtypes
14890 and generic formals.
14891 (Analyze_Object_Declaration): If an initialization expression is
14892 present, traverse its subtree and mark all allocators as static
14894 (Add_Interface_Tag_Component): When looking for components that may be
14895 secondary tags, ignore pragmas that can appear within a record
14897 (Check_Abstract_Overriding): an inherited function that dispatches on
14898 result does not need to be overriden if the controlling type is a null
14900 (Mentions_T): Handle properly a 'class attribute in an anonymous access
14901 component declaration, when the prefix is an expanded name.
14902 (Inherit_Component): If the derivation is for a private extension,
14903 inherited components remain visible and their ekind should not be set
14905 (Find_Type_Of_Object): In the case of an access definition, always set
14906 Is_Local_Anonymous_Access. We were previously not marking the anonymous
14907 access type of a return object as a local anonymous type.
14908 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
14909 range with character literal bounds.
14910 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
14911 (Access_Subprogram_Declaration): Indicate that the type declaration
14912 depends on an incomplete type only if the incomplete type is declared
14914 (Analyze_Subtype_Declaration): Handle properly subtypes of
14915 synchronized types that are tagged, and that may appear as generic
14917 (Access_Subprogram_Declaration): An anonymous access to subprogram can
14918 appear as an access discriminant in a private type declaration.
14919 (Add_Interface_Tag_Components): Complete decoration of the component
14920 containing the tag of a secondary dispatch table and the component
14921 containing the offset to the base of the object (this latter component
14922 is only generated when the parent type has discriminants --as documented
14924 (Inherit_Components): Use the new decoration of the tag components to
14925 improve the condition that avoids inheriting the components associated
14926 with secondary tags of the parent.
14927 (Build_Discriminanted_Subtype): Indicate to the backend that the
14928 size of record types associated with dispatch tables is known at
14930 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
14931 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
14932 to include task, protected, and synchronized interfaces as limited
14934 (Process_Discriminants): Remove the setting of
14935 Is_Local_Anonymous_Access on the type of (anonymous) access
14936 discriminants of nonlimited types.
14937 (Analyze_Interface_Type_Declaration): Complete the decoration of the
14938 class-wide entity it is is already present. This situation occurs if
14939 the limited-view has been previously built.
14940 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
14942 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
14945 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14947 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
14948 of the type that specify the position of interface tags when the type
14949 inherits discriminated array components from the parent type.
14950 If a component is initialized with a box, check for the presence of a
14951 default expression in its declaration before using its default
14952 initialization procedure.
14953 (Resolve_Record_Aggregate): If a component is box-initialized, and the
14954 component type has a discriminants, create a partial aggregate for it
14955 by copying the discriminants of the component subtype.
14956 Reject attempt to initialize a discriminant with a box.
14957 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14958 associated with dispatch tables is known at compile time.
14959 (Get_Value): If an association in a record aggregate has a box
14960 association, and the corresponding record component has a default
14961 expression, always copy the default expression, even when the
14962 association has a single choice, in order to create a proper
14963 association for the expanded aggregate.
14965 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14966 Robert Dewar <dewar@adacore.com>
14968 * par-ch12.adb (P_Generic_Associations): The source position of an
14969 Others association is that of the others keyword, not that of the token
14970 that follows the box.
14971 (P_Formal_Type_Definition): Handle formal access types that carry a
14972 not null indicator.
14974 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14975 multiple identifier are present, save Scan_State before scanning the
14976 colon, to ensure that separate trees are constructed for each
14978 (P_Identifier_Declarations): For object declaration, set new flag
14979 Has_Init_Expression if initialization expression present.
14980 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14981 Improve NOT NULL error messages
14983 2007-06-06 Robert Dewar <dewar@adacore.com>
14985 * par-ch4.adb: (P_Name): Recover from literal used as name
14987 2007-06-06 Vincent Celier <celier@adacore.com>
14989 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14990 defaulted to False.
14991 In the "not" case, recursive call with Complemented set to True.
14992 Do not allow "or" or "and" operators when Complemented is True.
14994 2007-06-06 Vincent Celier <celier@adacore.com>
14996 * prj.adb (Project_Empty): Gives default value for new component
14999 * prj-attr.ads: Minor reformatting
15001 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
15002 directory using the untouched casing.
15003 (For_All_Source_Dirs): Idem.
15005 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
15006 directories specified with switches -aP.
15007 (Add_Search_Project_Directory): New procedure
15008 (Initialize_Project_Path): Put the directories in table
15009 Search_Directories in the project search path.
15010 (Initialize_Project_Path): For VMS, transform into canonical form the
15013 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15015 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
15016 true if configurable run-time or No_Run_Time is set.
15017 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
15018 processing an unit which is not the one being compiled.
15020 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15022 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
15023 Replace UC by Ada.UC
15025 * s-bitops.adb: Get rid of System.Pure_Exceptions.
15026 Replace UC by Ada.UC
15028 2007-06-06 Robert Dewar <dewar@adacore.com>
15030 * scng.adb: (Check_End_Of_Line): Deal with very long lines
15032 2007-06-06 Robert Dewar <dewar@adacore.com>
15034 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
15035 Remove no longer used nodes.
15037 2007-06-06 Javier Miranda <miranda@adacore.com>
15038 Ed Schonberg <schonberg@adacore.com>
15039 Robert Dewar <dewar@adacore.com>
15041 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
15042 on obsolescent withed unit in case of limited-withed units.
15043 (Analyze_Compilation_Unit): Add guard to code that removed an
15044 instantiation from visibility, to prevent compiler aborts when
15045 instantiation is abandoned early on.
15046 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
15047 current unit being analyzed, and Distinguish local incomplete types
15048 from limited views of types declared elsewhere.
15049 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
15050 to state that the class-wide entity is shared by the limited-view
15052 (Analyze_With_Clause): Improve placement of flag for case of
15053 unimplemented unit.
15054 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
15055 manner similar to GNAT.Current_Exception. This is a violation of
15056 restriction (No_Exception_Propagation), and also inhibits the
15057 optimization of local raise to goto.
15058 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
15059 and if so set Most_Recent_Exception_Used flag in Opt, and also check
15060 for violation of restriction No_Exception_Propagation.
15062 2007-06-06 Javier Miranda <miranda@adacore.com>
15063 Hristian Kirtchev <kirtchev@adacore.com>
15064 Gary Dismukes <dismukes@adacore.com>
15066 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
15067 use of entity Exception_Occurrence if it is not available in the
15070 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
15071 concurrent types are declared within an Ada 2005 generic, build their
15072 corresponding record types since they are needed for overriding-related
15074 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
15075 protected type does not implement a task interface or a nonlimited
15077 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
15078 type does not implement a protected interface or a nonlimited interface.
15079 (Single_Task_Declaration, Single_Protected_Declaration): use original
15080 entity for variable declaration, to ensure that debugging information
15081 is correcty generated.
15082 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
15083 routines if the expander is not active.
15084 (Analyze_Task_Body): Mark all handlers to stop optimization of local
15085 raise, since special things happen for task exception handlers.
15087 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
15088 concurrent types declared within a generic.
15089 (Check_Dispatching_Operation): Do not emit warning about late interface
15090 operations in the context of an instance.
15091 (Check_Dispatching_Call): Remove restriction against calling a
15092 dispatching operation with a limited controlling result.
15093 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
15094 Register_Interface_DT_Entry by calls to Register_Primitive.
15095 (Check_Dispatching_Formals): Handle properly a function with a
15096 controlling access result.
15098 2007-06-06 Robert Dewar <dewar@adacore.com>
15099 Arnaud Charlet <charlet@adacore.com>
15101 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
15102 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
15103 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
15104 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
15105 message when using a VM, since this attribute is not supported.
15106 (Analyze_Record_Representation_Clause): Give unrepped component warnings
15108 * usage.adb: Add new warning for renaming of function return objects
15109 Indicate that -gnatwp and -gnatwP concern front-end inlining
15110 Add line for -gnatyg
15111 Add usage information for -gnatw.c/C
15113 2007-06-06 Robert Dewar <dewar@adacore.com>
15114 Ed Schonberg <schonberg@adacore.com>
15117 (Find_Var): Do not consider function call in test for infinite loop
15118 warning if warnings set off for function entity.
15119 (One_Bound): Do not create a temporary for a loop bound if it is a
15121 (Analyze_Assignment): Traverse the right hand side of an assignment and
15122 mark all allocators as static coextensions.
15123 (Analyze_Assignment): Exempt assignments involving a dispatching call
15124 to a function with a controlling access result from the check requiring
15125 the target to be class-wide.
15127 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15128 Ed Schonberg <schonberg@adacore.com>
15129 Robert Dewar <dewar@adacore.com>
15130 Javier Miranda <miranda@adacore.com>
15132 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
15133 chain of coextensions when an allocator serves as the root of such a
15135 (Propagate_Coextensions): Remove the test for the root being an
15137 (Resolve_Allocator): Add condition to ensure that all future decoration
15138 occurs on an allocator node. Add processing and cleanup for static
15140 (Valid_Conversion): If the operand type is the limited view of a
15141 class-wide type, use the non-limited view is available to determine
15142 legality of operation.
15143 (Ambiguous_Character): move to spec, for use elsewhere.
15144 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
15145 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
15146 character literals.
15147 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
15148 Do_Division_Check flag explicitly.
15149 (Resolve_Actuals): If the actual is of a synchronized type, and the
15150 formal is of the corresponding record type, this is a call to a
15151 primitive operation of the type, that is declared outside of the type;
15152 the actual must be unchecked-converted to the type of the actual
15153 (Resolve_Call): Kill all current values for any subprogram call if
15154 flag Suppress_Value_Tracking_On_Call is set.
15155 (Resolve_Type_Conversion): Generate error message the the operand
15156 or target of interface conversions come from a limited view.
15157 (Check_Infinite_Recursion): Ignore generated calls
15158 (Check_Allocator_Discrim_Accessibility): New procedure for checking
15159 that an expression that constrains an access discriminant in an
15160 allocator does not denote an object with a deeper level than the
15161 allocator's access type.
15162 (Resolve_Allocator): In the case of an allocator initialized by an
15163 aggregate of a discriminated type, check that associations for any
15164 access discriminants satisfy accessibility requirements by calling
15165 Check_Allocator_Discrim_Accessibility.
15166 (Resolve_Equality_Op): Handle comparisons of anonymous access to
15167 subprogram types in the same fashion as other anonymous access types.
15168 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
15169 message that is not a continuation message.
15170 (Resolve_Type_Conversion): Add missing support for conversion to
15172 (Resolve_Actuals): Introduce a transient scope around the call if an
15173 actual is a call to a function returning a limited type, because the
15174 resulting value must be finalized after the call.
15175 (Resolve_Actuals): If the call was given in prefix notations, check
15176 whether an implicit 'Access reference or implicit dereference must be
15177 added to make the actual conform to the controlling formal.
15179 2007-06-06 Robert Dewar <dewar@adacore.com>
15180 Javier Miranda <miranda@adacore.com>
15182 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
15183 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
15184 overriding of an inherited private subprogram now there is no need to
15185 inherit its dispatching slot and reduce the size of the dispatch table.
15186 Set_All_DT_Position now ensures that the same slot is now assigned to
15187 both entities. This is required to statically build the dispatch table.
15188 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
15189 of calling Set_All_DT_Position to re-evaluate the position of the
15190 entries in the dispatch table. Such reevaluation is not desired if
15191 the tagged type is already frozen.
15193 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15194 Gary Dismukes <dismukes@adacore.com>
15195 Robert Dewar <dewar@adacore.com>
15196 Javier Miranda <miranda@adacore.com>
15198 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
15199 reference acts as an lvalue when the attribute name modifies the prefix
15200 (Is_Coextension_Root): New routine.
15201 (Mark_Static_Coextensions): New routine.
15202 (Type_Access_Level): Revise code for checking the level of the
15203 anonymous access type of a return object.
15204 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
15205 (Matches_Prefixed_View_Profile): Remove the no longer necessary
15206 retrieval of the corresponding controlling record type.
15207 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
15208 concurrent types declared within a generic as well as class wide types.
15209 Emit a mode incompatibility error whenever a protected entry or routine
15210 override an interface routine whose first parameter is not of mode
15211 "out", "in out" or access to variable.
15212 (Overrides_Synchronized_Primitive): Rename to
15213 Find_Overridden_Synchronized_Primitive.
15214 (Collect_Interface_Components): New subprogram that collects all the
15215 components of a tagged record containing tags of secondary dispatch
15217 (Add_Global_Declaration): New procedure
15218 (Abstract_Interface_List): Handle properly the case of a subtype of a
15220 (Type_Access_Level): In the case of a type whose parent scope is a
15221 return statement, call Type_Access_Level recursively on the enclosing
15222 function's result type to determine the level of the return object's
15224 (Build_Elaboration_Entity): Build name of elaboration entity from the
15225 scope chain of the entity, rather than the unit name of the file name.
15226 (Check_Nested_Access): New procedure.
15227 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
15228 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
15229 (Get_Renamed_Entity): Utility routine for performing common operation
15230 of chasing the Renamed_Entity field of an entity.
15232 2007-06-06 Robert Dewar <dewar@adacore.com>
15234 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
15236 (Check_A_Call): Add check for entry call which was causing blowup
15238 2007-06-06 Olivier Hainque <hainque@adacore.com>
15240 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
15241 special code on ia64-vms to handle major incompatibilities between the
15242 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
15243 this routine with a very different set of arguments and expectations on
15246 2007-06-06 Thomas Quinot <quinot@adacore.com>
15248 * socket.c (__gnat_close_signalling_fd): New function.
15249 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
15250 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
15251 New supporting functions for task safe Netdb operations.
15253 2007-06-06 Thomas Quinot <quinot@adacore.com>
15254 Olivier Hainque <hainque@adacore.com>
15256 * a-except-2005.ads, a-except-2005.adb
15257 (Raise_From_Controlled_Operation): New procedure in
15258 (private part of) Ada.Exceptions (standard runtime version). Used to
15259 provide informational exception message when Program_Error is raised as
15260 a result of an Adjust or Finalize operation propagating an exception.
15261 (Rmsg_28): Fix description for E.4(18) check.
15262 (Raise_Current_Excep): Call Debug_Raise_Exception just before
15263 propagation starts, to let debuggers know about the event in a reliable
15265 Take the address of E and dereference to make sure it is homed on stack
15266 and prevent the stores from being deleted, necessary for proper
15267 debugger behavior on "break exception" hits.
15268 (Local_Raise): Moved to System.Exceptions
15270 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
15271 exception message from the current occurrence and raise Program_Error
15272 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
15274 2007-06-06 Jose Ruiz <ruiz@adacore.com>
15275 Arnaud Charlet <charlet@adacore.com>
15277 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
15280 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
15281 priority associated to a lock.
15283 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
15284 assertion to take into account case of no abort restriction.
15285 (Initialize_Protection_Entries): Add initialization for the field
15286 New_Ceiling associated to the protected object.
15287 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
15290 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
15291 since this function needs to be set consistently with Update_Exception.
15293 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
15294 since this function needs to be set consistently with Update_Exception.
15296 * s-taskin.ads: Update comments on
15297 Interrupt_Server_Blocked_On_Event_Flag.
15298 (Unbind_Handler): Fix handling of server_task wakeup
15299 (Server_Task): Set self's state so that Unbind_Handler can take
15300 appropriate actions.
15301 (Common_ATCB): Now use a constant from System.Parameters to determine
15302 the max size of the Task_Image field.
15304 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
15305 Initialize_Analyzer function.
15306 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
15307 take into account case of no abort restriction.
15308 ([Vulnerable_]Complete_Master): Modify assertion.
15310 * s-tataat.adb (Finalize): Use the nestable versions of
15311 Defer/Undefer_Abort.
15313 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
15315 * s-tpobop.ads: Update comments.
15317 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
15318 of locking the object manually, to avoid inconsistencies between
15319 Lock/Unlock_Entry assertions.
15321 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
15323 application and System.Parameters.No_Abort is True.
15324 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
15325 (Unbind_Handler): Fix handling of server_task wakeup
15326 (Server_Task): Set self's state so that Unbind_Handler can take
15327 appropriate actions.
15329 2007-06-06 Thomas Quinot <quinot@adacore.com>
15331 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
15332 declarations instead of an explicit null body, for conciseness.
15334 2007-06-06 Robert Dewar <dewar@adacore.com>
15336 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
15337 illegal aggregate and the type is still Any_Composite.
15338 (Subtypes_Statically_Match): Fix problem of empty discriminant list
15340 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15342 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
15343 to prevent subsequent expansion.
15345 2007-06-06 Robert Dewar <dewar@adacore.com>
15347 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
15349 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15350 Robert Dewar <dewar@adacore.com>
15352 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
15354 (Write_Itype): Handle case of string literal subtype, which
15355 comes up in this context.
15356 (Update_Itype): when debugging expanded code, update sloc of itypes
15357 associated with defining_identifiers and ranges, for gdb use.
15358 (Sprint_Node_Actual): Add static keyword to object or exception
15359 declaration output if Is_Statically_Allocated is True.
15360 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
15361 or task body, so that the tree carries the proper Sloc information for
15363 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
15365 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15367 * s-secsta.adb (Chunk): Ensure this object has a static size known at
15368 compile time, to avoid dynamic memory allocation
15369 (Elaboration code): Only use dynamic memory allocation when needed.
15371 2007-06-06 Quentin Ochem <ochem@adacore.com>
15373 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
15375 (Stack_Analyzer): Added field "Overflow_Guard"
15376 (Task_Result): Added field "Overflow_Guard".
15377 (Index_Str): New constant.
15378 (Task_Name_Str): New constant.
15379 (Actual_Size_Str): New constant.
15380 (Pattern_Array_Element_Size): New constant.
15381 (Get_Usage_Range): New subprogram.
15382 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
15383 Now align the output.
15385 (Initialize): Added value for Overflow_Guard.
15386 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
15387 Update the value of the overflow guard according to the actual
15388 beginning of the pattern array.
15389 (Initialize_Analyzer): Added parameter Overflow_Guard.
15390 Take this parameter into accound when computing the max size.
15391 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
15392 (Report_Result): Removed extra useless procedure.
15393 Updated call to Output_Result.
15394 Moved full computation of the Task_Result here.
15396 2007-06-06 Thomas Quinot <quinot@adacore.com>
15398 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
15399 Thread_Blocking_IO, always True by default, set False on a per-runtime
15401 Add Windows-specific constants
15402 Add new constant Need_Netdb_Buffer.
15403 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
15404 not, whether to use getXXXbyYYY_r.
15406 * gsocket.h: Add new constant Need_Netdb_Buffer.
15407 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
15408 not, whether to use getXXXbyYYY_r.
15410 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
15412 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
15413 than their first call.
15414 Add type Dummy_Communication_Block used in the generation of the pre-
15415 defined dispatching primitive _disp_asynchronous_select.
15416 (Storage_Element): Put Pragma Universal_Aliasing on it.
15418 2007-06-06 Vincent Celier <celier@adacore.com>
15420 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
15423 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
15424 letter if it is not followed by a '/' or a '\'.
15425 (Windows): New Boolean function
15427 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
15429 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
15431 (Containing_Directory): Raise Use_Error when the directory is a root
15433 (Extension): When returning the result, use a conversion to Result_Type,
15434 not a qualification.
15436 2007-06-06 Robert Dewar <dewar@adacore.com>
15438 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
15439 (Set_Style_Check_Options): Recognize new -gnatyg style switch
15441 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
15442 Warn_On_Non_Local_Exception to False, to turn off warnings for
15443 No_Exception_Propagation in ZFP runtime.
15444 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
15446 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
15448 2007-06-06 Vincent Celier <celier@adacore.com>
15450 * switch-b.adb (Scan_Binder_Switches): Add processing for new
15453 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
15454 (Scan_Make_Switches): Recognize new switch -aP
15456 2007-06-06 Matthew Gingell <gingell@adacore.com>
15457 Jose Ruiz <ruiz@adacore.com>
15459 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
15460 VxWorks task descriptor in the Ada run time, call a C subprogram
15461 (__gnat_get_stack_info) that extracts the required information.
15463 * sysdep.c: Back out temporary lynxos workaround.
15464 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
15465 time the stack information associated to the currently executing task.
15466 Only VxWorks systems require this function.
15468 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
15470 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
15471 add the stack bias if the offset is computed from a frame address.
15472 (__gnat_backtrace): Adjust for above change.
15474 2007-06-06 Thomas Quinot <quinot@adacore.com>
15476 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
15477 PE_Non_Transportable_Actual.
15478 (By_Descriptor_Last): New constant.
15479 (By_Copy_Return): Likewise.
15481 2007-06-06 Vincent Celier <celier@adacore.com>
15483 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
15486 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
15487 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
15488 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
15489 Add missing comment for /OPTIMIZE=SPACE
15490 Add entry for OPTIMIZE=SPACE
15491 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
15492 Add documentation for new qualifiers corresponding to -gnatw.c/.C
15494 2007-06-06 Vincent Celier <celier@adacore.com>
15495 Robert Dewar <dewar@adacore.com>
15497 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
15500 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
15501 Document gnatbind switch -a
15502 (case Constructions): Document that variables declarations are allowed
15503 for previously declared variables.
15504 Fix external lib project example
15505 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
15506 Indicate that "#if not X or Y then" is not allowed in input files to
15508 Document gnatw.x and gnatw.X warning flags
15509 Mention -Winline switch to activate warnings when back-end inlining is
15511 Add gnatcheck rule descriptions
15512 Describe how to use the GNAT driver to call a tool on a closure.
15513 Describe how to run project-wide checks or metrics.
15514 Document gnatbind's -R option
15515 Updated to account for Ada 2005 support
15517 * gnat_rm.texi (Case Construction): Allow variable declarations for
15518 previously declared variables.
15519 (Representation Clauses and Pragmas): Lift restriction on alignment
15520 clauses for record types.
15521 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
15522 Document No_Exception_Propagation restriction
15523 Document No_Body pragma
15524 Updated to account for Ada 2005 support; corrected some typos
15525 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
15527 * gnat-style.texi: Make it clear that we never use mode IN for
15528 procedures or functions
15530 * ug_words: Add entries for -gnatw.x and -gnatw.X
15531 Add entries for -gnatw.c/.C
15533 2007-06-06 Pascal Obry <obry@adacore.com>
15534 Vincent Celier <celier@adacore.com>
15536 * makegpr.adb (Add_Archive_Path): Use untouched object and library
15537 dirs and library name.
15538 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
15540 (Build_Library): Idem.
15541 (Compile_Individual_Sources): Idem.
15542 (Compile_Link_With_Gnatmake): Idem.
15543 (Compile_Sources): Idem.
15544 (Get_Imported_Directories): Idem.
15545 (Link_Executables): Idem. Same change for the executable dir.
15546 (Check_Compilation_Needed): C_Source_Path new variable containing
15547 the canonical form of Source_Path to check against the source names
15548 in the dependency file.
15549 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
15550 verbose mode, display the name of the object directory we're changing
15552 (Saved_Switches): New name of table X_Switches
15553 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
15554 (Usage): New line for switch -aP
15555 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
15556 testing if a directory should be added to the search path.
15558 2007-06-06 Javier Miranda <miranda@adacore.com>
15560 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
15561 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
15562 declaration after freezing point of all its associated tagged types;
15563 otherwise such types are frozen too early.
15565 2007-06-06 Robert Dewar <dewar@adacore.com>
15567 * a-reatim.adb: Documentation addition
15569 * g-cgideb.adb: Minor code reorganization
15571 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
15572 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
15573 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
15575 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
15576 function. Change name New_Scope to Push_Scope
15577 (Get_Debug_Flag_K): Remove unused obsolete function.
15579 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
15582 * makeusg.adb: Update Copyright notice
15583 Add line for switch -aP
15585 * makeusg.adb: Fix wording of some usage messages
15587 * s-assert.adb (Raise_Assert_Failure): Add call to
15588 Debug_Raise_Assert_Failure.
15590 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
15591 (2, Standard'Alignment) for compatibility with AAMP (where alignment
15592 is restricted to 1).
15594 * s-wchjis.adb: Remove use of System.Pure_Exceptions
15596 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
15597 node location to No_Location when we're not debugging the expanded
15600 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
15602 * misc.c (enumerate_modes): Consider log2_b to always be one.
15604 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
15606 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
15608 2007-05-02 Pascal Obry <obry@adacore.com>
15610 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
15611 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
15612 encoding support of Stream_IO.
15613 (Write_Unit): Idem.
15615 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
15616 filename and corresponding encoding to match the OS requirement.
15617 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
15618 routine will fail on specific devices like CON: AUX: ...
15620 PR ada/29856: Add missing braces
15622 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
15625 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
15627 2007-04-21 Jan Hubicka <jh@suse.cz>
15629 * misc.c (gnat_expand_body): Don't call target for destructors,
15630 avoid redundant check on syntax errors.
15632 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
15634 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
15635 instead of checking GIMPLE_STMT_P in chain_next.
15637 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
15640 * system-linux-alpha.ads: Disable constant condition warning for the
15641 Default_Bit_Order variable.
15642 * system-linux-s390.ads: Likewise.
15643 * system-linux-s390x.ads: Likewise.
15644 * system-linux-sparc.ads: Likewise.
15646 2007-04-06 Javier Miranda <miranda@adacore.com>
15647 Matt Heaney <heaney@adacore.com>
15648 Robert Dewar <dewar@adacore.com>
15650 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
15651 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
15652 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
15653 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
15654 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
15655 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
15656 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
15657 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
15658 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
15659 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
15660 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
15661 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
15662 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
15663 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
15664 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
15665 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
15666 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
15667 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
15668 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
15669 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
15670 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
15671 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
15672 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
15673 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
15674 s-taprop-tru64.adb, s-taprop-irix.adb,
15675 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
15676 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
15677 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
15678 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
15679 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
15680 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
15681 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
15682 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
15683 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
15684 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
15685 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
15686 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
15687 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
15688 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
15689 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
15690 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
15691 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
15692 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
15693 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
15694 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
15696 Update documentation.
15699 2007-04-06 Robert Dewar <dewar@adacore.com>
15701 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
15702 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
15703 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
15704 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
15705 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
15706 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
15707 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
15708 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
15709 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
15710 system-hpux-ia64.ads, targparm.adb,
15711 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
15713 * system.ads: Move Functions_Return_By_DSP to obsolete section,
15714 kept for bootstrap purposes only.
15716 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15718 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
15719 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
15720 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
15721 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
15723 2007-04-06 Robert Dewar <dewar@adacore.com>
15725 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
15726 (Local_Raise): New dummy procedure called when a raise is converted
15727 to a local goto. Used for debugger to detect that the exception
15730 * debug.adb: Document new d.g flag (expand local raise statements to
15731 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
15733 * exp_sel.adb: Use Make_Implicit_Exception_Handler
15735 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
15736 suppress warnings for unused handlers.
15737 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
15738 warnings for raise statements not handled locally.
15739 (Get_RT_Exception_Entity): New function
15740 (Get_Local_Call_Entity): New function
15741 (Find_Local_Handler): New function
15742 (Warn_If_No_Propagation): New procedure
15743 (Expand_At_End_Handler): Call Make_Implicit_Handler
15744 (Expand_Exception_Handlers): Major additions to deal with local handlers
15745 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
15746 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
15749 * exp_ch11.ads (Get_RT_Exception_Entity): New function
15750 (Get_Local_Call_Entity): New function
15752 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
15753 of restrictions that the binder will never suggest adding.
15755 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
15758 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
15759 be with'ed in the presence of pragma Restriction
15760 (No_Exception_Propagation).
15762 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
15764 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
15765 parameter, then the handler is not a suitable target for a local raise,
15766 and this is a violation of restriction No_Exception_Propagation.
15767 (Analyze_Handled_Statements): Analyze choice parameters in exception
15768 handlers before analyzing statement sequence (needed for proper
15769 detection of local raise statements).
15770 (Analyze_Raise_Statement): Reraise statement is a violation of the
15771 No_Exception_Propagation restriction.
15773 * s-rident.ads: Add new restriction No_Exception_Propagation
15775 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
15776 function, like Make_Exception_Handler but sets Local_Raise_Statements
15778 (Add_Unique_Serial_Number): Deal with case where this is called during
15779 processing of configuration pragmas.
15781 2007-04-06 Thomas Quinot <quinot@adacore.com>
15782 Pat Rogers <rogers@adacore.com>
15783 Pascal Obry <obry@adacore.com>
15785 * g-stsifd-sockets.adb: New file.
15787 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
15788 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
15789 g-socthi-vms.adb: Move signalling
15790 fd management to a nested package, so that they can conveniently be
15791 moved to a subunit that is shared across Windows, VMS, and VxWorks
15792 (Ada implementation) or completed with imported bodies from socket.c
15794 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
15796 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
15797 the signalling file descriptor.
15798 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
15799 signalling file descriptor.
15800 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
15801 instead of creating a pair of sockets for signalling here.
15803 * g-socthi.adb: Ditto.
15804 Set the runtime process to ignore SIGPIPEs on platforms that support
15805 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15807 * g-socthi-mingw.adb: Ditto.
15808 (WS_Version): Use Windows 2.2.
15809 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15811 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
15812 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15814 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
15815 added GNAT byte swapping facility
15816 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
15818 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
15820 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
15822 (__gnat_create_signalling_fds): New subprogram.
15823 Set the runtime process to ignore SIGPIPEs on platforms that support
15824 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15826 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
15827 Vincent Celier <celier@adacore.com>
15829 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
15830 New version of Ada.Calendar which supports the new upper bound of Ada
15831 time (2399-12-31 86_399.999999999).
15832 The following modifications have been made to the package:
15833 - New representation of time as count of nanoseconds since the start of
15834 Ada time (1901-1-1 0.0).
15835 - Target independent Split and Time_Of routines which service both
15836 Ada 95 and Ada 2005 code.
15837 - Target independent interface to the Ada 2005 children of Calendar.
15838 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
15839 - Handling of non-leap centenial years.
15840 - Updated clock function.
15841 - Updated arithmetic and comparison operators.
15843 * a-caldel.adb (To_Duration): Add call to target independent routine in
15844 Ada.Calendar to handle the conversion of time to duration.
15846 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
15848 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
15850 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
15851 targets do not have a natural time zone, GMT is used as a default.
15852 (__gnat_get_task_options): New.
15854 * a-direct.adb (Modification_Time): Add with and use clauses for
15855 Ada.Calendar and Ada.
15856 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
15857 since it is no longer needed.
15858 (Duration_To_Time): Removed.
15859 (OS_Time_To_Long_Integer): Removed.
15860 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
15861 Formatting Time_Of routines which automatically handle time zones,
15862 buffer periods and leap seconds.
15864 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
15865 target independent routines in Ada.Calendar.
15867 * a-calfor.ads, a-calfor.adb:
15868 Code cleanup and addition of validity checks in various routines.
15869 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
15872 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
15873 independent routine in Ada.Calendar.
15875 2007-04-06 Olivier Hainque <hainque@adacore.com>
15878 (convert_addresses): Adjust prototype and dummy definition to expect an
15879 extra file_name argument.
15881 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
15882 filling the now expected file_name argument with the appropriate
15884 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
15885 (tracebk): Array of void * instead of char *, corresponding to what
15886 convert_addresses expects.
15887 (exename): New static global, to hold the executable file name to be
15888 used in all convert_addresses invocations.
15889 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
15891 (__gnat_gmem_a2l_initialize): Resolve exename.
15892 (__gnat_convert_addresses): Use exename as the convert_addresses
15893 file_name argument.
15895 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
15896 "convert_addresses", now expecting a filename argument. Import the
15897 necessary entities to compute the filename to use and pass it to
15900 2007-04-06 Matt Gingell <gingell@adacore.com>
15902 * system-aix.ads: Back out previous change.
15903 (Functions_Return_By_DSP): Removed
15905 2007-04-06 Pascal Obry <obry@adacore.com>
15907 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
15908 or the monotonic used by Ada.Real_Time) to compute the sleep duration
15911 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15913 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
15914 function. Its value changes in different VxWorks versions, and it is
15915 now handled by the function __gnat_get_task_options.
15917 * s-taprop-vxworks.adb (Create_Task): Call the function
15918 __gnat_get_task_options to get the required options for creating a task.
15920 2007-04-06 Pascal Obry <obry@adacore.com>
15921 Thomas Quinot <quinot@adacore.com>
15923 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
15924 dealing with filename.
15925 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
15926 filename from a standard string to a wide-string depending on the
15928 (__gnat_freopen): Idem.
15929 (__gnat_current_time): New function (wrapper for time(3) standard C
15932 * g-os_lib.ads (Current_Time): New function. Returns the current
15933 system time as an OS_Time value.
15935 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
15936 (Monotonic_Clock): Same.
15938 2007-04-06 Quentin Ochem <ochem@adacore.com>
15940 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
15942 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
15944 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15946 * a-retide.adb: Add elaboration code to ensure that the tasking run
15947 time is initialized when using delay operations even when no task is
15950 2007-04-06 Javier Miranda <miranda@adacore.com>
15952 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15953 component Num_Prim_Ops.
15954 (Set_Num_Prim_Ops): Removed.
15955 Remove all the assertions because all the routines of this
15956 package are inline always.
15957 (Get_Offset_Index): Add support to primary dispatch tables.
15958 Move the documentation about the dispatch table to a-tags.ads
15959 (Set_External_Tag): Removed
15960 (Inherit_TSD): Removed.
15961 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15962 moved to a-tags.ads
15963 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15964 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15965 of the TSD field "Table" because this field has been renamed to
15967 (Inherit_CPP_DT): Removed.
15968 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15969 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15970 declarations have been moved to a-tags.ads
15971 (Check_Size): Removed.
15972 (Expanded_Name): Updated to get access to the new field of TSD
15973 containing the address of the expanded name.
15974 (Get_Access_Level/Set_Access_Level): Removed.
15975 (Get_Predefined_Prim_Op_Address): Removed.
15976 (Set_Predefined_Prim_Op_Address): Removed.
15977 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15978 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15979 (Set_Expanded_Name): Removed.
15980 (Inherit_DT): Removed.
15981 (Inherit_CPP_DT): Removed.
15982 (Set_RC_Offset): Removed.
15983 (Set_TSD): Removed.
15984 (Base_Address): New function that displaces "this" to point to the base
15985 of the object (that is, to point to the primary tag of the object).
15987 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15988 Javier Miranda <miranda@adacore.com>
15990 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15991 anonymous access component, do not create a master_id if type already
15992 has one, as may happen if the type is a subcomponent of a packed array
15994 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15995 Initialize_Tag): Remove code associated with the old CPP pragmas.
15996 CPP_Virtual and CPP_Vtable are no longer supported.
15997 (Build_Offset_To_Top_Internal): Add support for concurrent record types
15998 (Build_Offset_To_Top_Functions): Add support for concurrent record types
15999 (Freeze_Record_Type): Remove call to
16000 Init_Predefined_Interface_Primitives.
16001 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
16002 code required to initialize the tags of the secondary dispatch tables.
16003 This leaves the algoritm more clear.
16004 (Init_Secondary_Tags): Add support for concurrent record types
16005 (Make_Predefined_Primitive_Specs): Code cleanup.
16006 (Predefined_Primitive_Bodies): Code cleanup.
16007 (Build_Master_Renaming): New local subprogram.
16008 (Expand_N_Full_Type_Declaration): Build the master_id associated with
16009 anonymous access to task type components.
16010 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
16011 subtype indication are resolved during analysis, and must not be done
16013 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
16015 2007-04-06 Geert Bosch <bosch@adacore.com>
16016 Ed Schonberg <schonberg@adacore.com>
16017 Javier Miranda <miranda@adacore.com>
16018 Bob Duff <duff@adacore.com>
16020 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
16021 for conversion of a Float_Type'Truncation to integer.
16023 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
16024 check if a node is an attribute that can be handled directly by the
16026 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
16027 attributes that can be handled directly by the back end.
16028 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
16029 use new predicate Is_Access_Protected_Subprogram_Type.
16030 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
16031 and Unchecked_Union if it is generated as part of the default Output
16032 procedure for a type with default discriminants.
16033 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
16034 if we are compiling under restriction No_Dispatching_Calls.
16035 (Constrained): Use Underlying_Type, in case the type is private without
16036 discriminants, but the full type has discriminants.
16037 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
16038 call to Build_Get_Access_Level.
16039 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
16040 interface objects requires a call to the run-time subprogram that
16041 returns the base address of the object.
16042 (Valid_Conversion): Improve error message on illegal attempt to store
16043 an anonymous access to subprogram value into a record component.
16045 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
16047 (Simplify_Type_Conversion): New procedure that performs simplification
16048 of Int_Type (Float_Type'Truncation (X)).
16049 (Resolve_Type_Conversion): Call above procedure after resolving operand
16050 and before performing checks. This replaces the existing ineffective
16052 (Set_String_Literal_Subtype): When creating the internal static lower
16053 bound subtype for a string literal, use a newly created copy of the
16054 subtree representing the lower bound.
16055 (Resolve_Call): Exclude build-in-place function calls from transient
16056 scope treatment. Update comments to describe this exception.
16057 (Resolve_Equality_Op): In case of dispatching call check violation of
16058 restriction No_Dispatching_Calls.
16059 (Resolve_Call): If the call returns an array, the context imposes the
16060 component type of the array, and the function has one non-defaulted
16061 parameter, rewrite the call as the indexing of a call with a single
16062 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
16064 (Resolve_Actuals): If an actual is an allocator for an access parameter,
16065 the master of the created object is the innermost enclosing statement.
16066 (Remove_Conversions): For a binary operator, check if type of second
16067 formal is numeric, to check if an abstract interpretation is present
16068 in the case of exponentiation as well.
16070 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16071 Bob Duff <duff@adacore.com>
16073 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
16074 copying a parameter list in a call, set properly the First_Named_Formal
16075 and Next_Named_Formal fields in the new list and in the enclosing call.
16076 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
16077 names, to ease typing in the debugger. Improve comments.
16078 (Watch_Node): New variable, intended to be set in the debugger.
16079 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
16080 called when the watched node is created.
16081 (New_Node_Debugging_Output): Combined version of local procedures
16082 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
16083 with a parameter so that conditional breakpoints like "if Node = 12345"
16085 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
16086 Add Elist1 function
16088 2007-04-06 Thomas Quinot <quinot@adacore.com>
16089 Ed Schonberg <schonberg@adacore.com>
16090 Gary Dismukes <dismukes@adacore.com>
16092 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
16093 required for a conversion between two access-to-unconstrained-array
16095 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
16096 to discriminant constraints on discriminant objects. This rule must
16097 apply as well to discriminants of protected types in private components.
16098 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
16099 object of a null-excluding access type then don't require the
16100 the object declaration to have an expression and don't emit a
16103 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16104 Eric Botcazou <botcazou@adacore.com>
16106 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
16109 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
16110 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
16113 * fe.h (Compiler_Abort): Add third parameter.
16115 * misc.c (internal_error_function): Build third argument from current
16116 input location and pass it to Compiler_Abort.
16118 2007-04-06 Gary Dismukes <dismukes@adacore.com>
16120 * cstand.adb (Create_Standard): When the target's storage unit size is
16121 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
16124 2007-04-06 Nicolas Roche <roche@adacore.com>
16126 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
16127 absolute path can have the following form: device:/a/b. In this case
16128 '/' should be inserted between the path and the filename.
16130 2007-04-06 Olivier Hainque <hainque@adacore.com>
16131 Eric Botcazou <botcazou@adacore.com>
16133 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
16134 VAR_DECL to a CONST_DECL we make for a public constant when we know the
16135 corresponding definition has created the so made visible variable.
16136 Handle anonymous access to protected subprogram.
16137 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
16138 object with an address clause volatile. Re-enable original fix.
16139 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
16141 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
16142 associated with either the Equivalent or Root type, instead of the
16144 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
16145 subtree for every field of a global record type.
16146 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
16147 discriminants, invoke again variable_size on its newly computed sizes.
16149 2007-04-06 Robert Dewar <dewar@adacore.com>
16150 Thomas Quinot <quinot@adacore.com>
16151 Ed Schonberg <schonberg@adacore.com>
16152 Bob Duff <duff@adacore.com>
16154 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
16155 (Next_Component_Or_Discriminant): New function and procedure
16156 (First_Index, First_Literal, Master_Id,
16157 Set_First_Index, Set_First_Literal, Set_Master_Id):
16158 Add missing Ekind assertions.
16159 (Is_Access_Protected_Subprogram_Type): New predicate.
16160 (Has_RACW): New entity flag, set on package entities to indicate that
16161 the package contains the declaration of a remote accecss-to-classwide
16163 (E_Return_Statement): This node type has the Finalization_Chain_Entity
16164 attribute, in case the result type has controlled parts.
16165 (Requires_Overriding): Add this new flag, because "requires
16166 overriding" is subtly different from "is abstract" (see AI-228).
16167 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
16168 Is_Abstract_Type. Make sure these are called only when appropriate.
16169 (Has_Pragma_Unreferenced_Objects): New flag
16171 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
16172 class-wide, the tag of the right-hand side must be an exact match, not
16173 an ancestor of that of the object on left-hand side.
16174 (Move_Activation_Chain): New procedure to create the call to
16175 System.Tasking.Stages.Move_Activation_Chain.
16176 (Expand_N_Extended_Return_Statement): Generate code to call
16177 System.Finalization_Implementation.Move_Final_List at the end of a
16178 return statement if the function's result type has controlled parts.
16179 Move asserts to Build_In_Place_Formal.
16180 (Move_Final_List): New function to create the call statement.
16181 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
16182 tagged type, replace generation of call to the run-time subprogram
16183 CW_Membership by call to Build_CW_Membership.
16184 (Expand_N_Return_Statement): Replace generation of call to the run-time
16185 subprogram Get_Access_Level by call to Build_Get_Access_Level.
16186 (Expand_N_Simple_Function_Return): Replace generation of call to the
16187 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
16189 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
16190 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
16191 access to protected operations.
16192 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
16193 master and chain actual parameters to a build-in-place function call
16195 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
16197 (Make_Build_In_Place_Call_In_Allocator,
16198 Make_Build_In_Place_Call_In_Anonymous_Context,
16199 Make_Build_In_Place_Call_In_Assignment,
16200 Make_Build_In_Place_Call_In_Object_Declaration): Call
16201 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
16202 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
16203 stubbed procedure with a null body, replace the call with a null
16204 statement without using the full inlining machinery, for efficiency
16205 and to avoid invalid values in source file table entries.
16207 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
16208 renamings of calls to build-in-place functions.
16210 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
16211 provides the functionality of RTE_Available to record components.
16212 (RTU_Entity): The function Entity has been renamed to RTU_Entity
16213 to avoid undesired overloading.
16214 (Entity): New subprogram that returns the entity for the referened
16215 unit. If this unit has not been loaded, it returns Empty.
16216 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
16217 Remove no longer used entities.
16218 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
16219 (RE_Type_Specific_Data): New entity.
16220 (RE_Move_Any_Value): New entity.
16221 (RE_TA_A, RE_Get_Any_Type): New entities.
16222 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
16223 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
16224 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
16225 (Entity): New subprogram that returns the entity for the referened
16226 unit. If this unit has not been loaded, it returns Empty.
16227 (RTE): Addition of a new formal that extends the search to the scopes
16228 of the record types found in the chain of the package.
16230 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
16231 "abstract subprograms must be visible" message, whether or not the type
16232 is an interface; that is, remove the special case for interface types.
16233 (Analyze_Function_Return): Remove error message "return of task objects
16234 is not yet implemented" because this is now implemented.
16235 (Create_Extra_Formals): Add the extra master and activation chain
16236 formals in case the result type has tasks.
16237 Remove error message "return of limited controlled objects is not yet
16239 (Create_Extra_Formals): Add the extra caller's finalization list formal
16240 in case the result type has controlled parts.
16241 (Process_Formals): In case of access formal types there is no need
16242 to continue with the analysis of the formals if we already notified
16244 (Check_Overriding_Indicator): Add code to check overriding of predefined
16246 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
16247 flags for formals that do not require them,.
16248 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
16249 hidden entity is use visible or directly visible.
16250 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
16251 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
16252 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
16253 New_Overloaded_Entity): Split Is_Abstract flag into
16254 Is_Abstract_Subprogram and Is_Abstract_Type.
16256 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
16257 a return statement's finalization list to the caller's list, used for
16258 build-in-place functions with result type with controlled parts.
16259 Remove no longer used entities.
16261 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
16262 longer needed, because the full type is now limited, and therefore a
16263 pass-by-reference type.
16264 (Foreign_Task_Level): New constant.
16266 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
16267 move tasks from the activation chain belonging to a return statement to
16268 the one passed in by the caller, and update the master to the one
16269 passed in by the caller.
16270 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
16271 of unactivated tasks, so we don't kill the ones that are being returned
16272 by a build-in-place function.
16273 (Create_Task): Ignore AI-280 for foreign threads.
16275 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16276 Robert Dewar <dewar@adacore.com>
16277 Bob Duff <duff@adacore.com>
16278 Gary Dismukes <dismukes@adacore.com>
16280 * errout.adb (Unwind_Internal_Type): Use predicate
16281 Is_Access__Protected_Subprogram_Type.
16283 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
16284 (Freeze_Entity, packed array case): Do not override explicitly set
16285 alignment and size clauses.
16286 (Freeze_Entity): An entity declared in an outer scope can be frozen if
16287 the enclosing subprogram is a child unit body that acts as a spec.
16288 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
16289 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
16290 Remove all code for DSP option
16292 * layout.adb (Layout_Record_Type): Use First/
16293 Next_Component_Or_Discriminant
16294 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
16295 to handle properly the anonymous access case.
16297 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
16298 for all access attributes, because overload resolution should work the
16299 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
16300 causes the error message for the ambiguous "X'Access = Y'Access" and
16301 "X'Unrestricted_Access = Y'Access" and so forth to match.
16302 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
16303 now that anonymous access to protected operations have their own kind.
16304 (Resolve_Attribute): In case of dispatching call check the violation of
16305 restriction No_Dispatching_Calls.
16306 (Check_Array_Type): Check new -gnatyA array index style option
16308 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
16309 attempt to derive from a synchronized tagged type.
16310 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
16311 type, inherit the class-wide type already created, because it may
16312 already have been used in a self-referential anonymous access component.
16313 (Mentions_T): Recognize self-referential anonymous access components
16314 that use (a subtype of) the class-wide type of the enclosing type.
16315 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
16316 Derived_Type for Prev formal on call to
16317 Check_Anonymous_Access_Components rather than Empty.
16318 (Make_Incomplete_Type_Declaration): Add test for case where the type has
16319 a record extension in deciding whether to create a class-wide type,
16320 rather than just checking Tagged_Present.
16321 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
16322 to stand-alone object declarations as well as component declarations.
16323 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
16324 prevent accidental overwriting when enclosing package appears in
16325 a limited_with_clause.
16326 (Array_Type_Declaration): If the component type is an anonymous access,
16327 the associated_node for the itype is the type declaration itself.
16328 (Add_Interface_Tag_Components): Modified to support concurrent
16329 types with abstract interfaces.
16330 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
16331 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
16332 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
16333 to complete the decoration of synchronized interface types. Add also
16334 a call to Check_Abstract_Interfaces to verify the ARM rules.
16335 (Derive_Interface_Subprograms): Modified to support concurrent types
16336 with abstract interfaces.
16337 (Analyze_Subtype_Indication): Resolve the range with the given subtype
16338 mark, rather than delaying the full resolution depending on context.
16339 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
16340 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
16341 Array_Type_Declaration,Build_Derived_Record_Type,
16342 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
16343 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
16344 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
16345 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
16346 called only when appropriate.
16347 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
16349 (Analyze_Subtype_Declaration): For an access subtype declaration, create
16350 an itype reference for the anonymous designated subtype, to prevent
16351 scope anonmalies in gigi.
16352 (Build_Itype_Reference): New utility, to simplify construction of such
16355 2007-04-06 Vincent Celier <celier@adacore.com>
16357 * errutil.adb (Initialize): Initialize warnings table, if all warnings
16358 are suppressed, supply an initial dummy entry covering all possible
16361 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
16362 and start with only one, such as "-RTS=none".
16363 (Collect_Arguments): Do not check for sources outside of projects.
16364 Do not collect arguments if project is externally built.
16365 (Compile_Sources): Do nothing, not even check if the source is up to
16366 date, if its project is externally built.
16367 (Compile): When compiling a predefined source, add -gnatpg
16368 as the second switch, after -c.
16369 (Compile_Sources): Allow compilation of Annex J renames without -a
16370 (Is_In_Object_Directory): Check if the ALI file is in the object
16371 even if there is no project extension.
16372 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
16373 gnatbind if the ALI file effectively exists.
16374 (Initialize): Add the directory where gnatmake is invoked in front of
16375 the path if it is invoked from a bin directory, even without directory
16376 information, so that the correct GNAT tools will be used when spawned
16377 without directory information.
16379 * makeusg.adb: Change switch -S to -eS
16380 Add lines for new switches -we, -wn and -ws
16381 Add line for new switch -p
16383 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
16384 Treat_As_Error and there are warnings.
16386 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
16387 -gnatww Change gnatmake switch -S to -eS
16388 (Scan_Make_Switches): Code reorganisation. Process separately multi
16389 character switches and single character switches.
16390 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
16391 False when switch is not recognized by gnatmake.
16392 (Scan_Make_Switches): Set Setup_Projects True when -p or
16393 --create-missing-dirs is specified.
16395 * fname.adb (Is_Predefined_File_Name): Return True for annex J
16396 renamings Calendar, Machine_Code, Unchecked_Conversion and
16397 Unchecked_Deallocation only when Renamings_Included is True.
16399 * par.adb: Allow library units Calendar, Machine_Code,
16400 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
16401 when -gnatg is not specified.
16402 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16403 there is no need to generate always a record_definition_node in case
16404 of synchronized interface types.
16405 (SIS_Entry_Active): Initialize global variable to False
16406 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
16407 indicate cases where AI-447 says "not null" is legal.
16409 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
16411 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
16412 files with with several lines starting with the object fileb name.
16413 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
16415 (Initialize): Add the directory where gprmake is invoked in front of the
16416 path, if it is invoked from a bin directory or with directory
16417 information, so that the correct GNAT tools will be used when invoked
16419 (Check_Compilation_Needed): Process correctly backslashes on Windows.
16421 * vms_data.ads: Update switches/qualifiers
16423 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16424 Thomas Quinot <quinot@adacore.com>
16427 If the array component is a discriminated record, the array aggregate
16428 is non-static even if the component is given by an aggregate with
16430 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
16431 (Convert_Aggr_In_Allocator): If the allocator is for an access
16432 discriminant and the type is controlled. do not place on a finalization
16433 list at this point. The proper list will be determined from the
16435 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
16436 initialize record controller if needed, before the components, to ensure
16437 that they are properly finalized.
16438 (Build_Record_Aggr_Code): For the case of an array component that has a
16439 corresponding array aggregate in the record aggregate, perform sliding
16442 2007-04-06 Javier Miranda <miranda@adacore.com>
16443 Gary Dismukes <dismukes@adacore.com>
16444 Ed Schonberg <schonberg@adacore.com>
16446 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
16447 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
16449 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
16450 accessibility on class-wide allocators if the allocator occurs at the
16451 same scope level as the allocator's type. The check is guaranteed to
16452 succeed in that case, even when the expression originates from a
16453 parameter of the containing subprogram.
16454 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
16455 under No_Dispatching_Calls restriction. During the semantic analysis
16456 we already notified such violation.
16457 (Tagged_Membership): Constant folding. There is no need to check
16458 the tag at run-time if the type of the right operand is non
16459 class-wide abstract.
16460 Replace call to Is_Ancestor by call to Is_Parent
16461 to support concurrent types with interface types.
16462 (Expand_N_Allocator): Add an assertion associated with the generation
16464 (Expand_N_Slice): Do not enable range check to nodes associated
16465 with the frontend expansion of the dispatch table.
16466 (Is_Local_Access_Discriminant): Subsidiary function to
16467 Expand_N_Allocator.
16468 (Tagged_Membership): Replace generation of call to the run-time
16469 subprogram CW_Membership by call to Build_CW_Membership.
16470 (Expand_Allocator_Expression): Replace generation of call to the
16471 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
16473 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
16474 initialize most the TSD components by means of an aggregate.
16475 Modify the declaration of the object containing the TSD
16476 because we now expand code that has a higher level of abstraction.
16477 The TSD has a discriminant containing the Inheritance Depth Level,
16478 value that is used in the membership test but also to fix the size
16479 of the table of ancestors.
16480 (Expand_Interface_Conversion): Insert function body at the closest place
16481 to the conversion expression, to prevent access-before-elaboration
16482 errors in the backend.
16483 Code improved to reduce the size of the dispatch table if
16484 compiling under restriction No_Dispatching_Calls plus code cleanup.
16485 Code reorganization plus removal of calls to Set_Num_Prim_Ops
16486 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
16487 (Expand_Dispatching_Call): Minor code reorganization plus addition of
16488 code to return immediately if compiling under No_Dispatching_Calls
16490 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
16491 CPP_Virtual and CPP_Vtable are no longer supported.
16492 (Expand_Interface_Conversion): Add missing support for interface type
16494 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
16495 Is_Parent to support concurrent types with interfaces.
16496 (Init_Predefined_Interface_Primitives): Removed.
16497 (Make_Secondary_DT): Modified to support concurrent record types.
16498 (Set_All_DT_Position): Modified to support concurrent record types.
16499 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
16500 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
16501 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
16502 with CW_Membership.
16503 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
16504 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
16505 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
16506 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
16507 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
16508 (Expand_Dispatching_Call): Replace generation of call to the run-time
16509 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
16510 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
16512 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
16513 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
16514 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
16515 Build_Set_Prim_Op_Address.
16516 (Get_Remotely_Callable): Subprogram removed.
16517 (Init_Predefined_Interface_Primitives): Replace generation of call to
16518 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
16521 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
16522 First (Parameter_Associations ()) with the call to First_Actual that
16523 returns an actual parameter expression for both named and positional
16526 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
16527 check violation of restriction No_Dispatching_Calls.
16528 (Check_Controlling_Type): A formal of a tagged incomplete type is a
16529 controlling argument.
16531 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
16532 First/Next_Component_Or_Discriminant
16533 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
16534 (Find_Implemented_Interface): Removed. All the calls to this subprogram
16535 specify Any_Limited_Interface, and this functionality is already
16536 provided by the function Has_Abstract_Interfaces.
16537 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
16538 support concurrent types implementing interfaces.
16539 (Find_Implemented_Interface): Removed. All the calls to this subprogram
16540 specify kind Any_Limited_Interface, and this functionality is already
16541 provided by the function Has_Abstract_Interfaces.
16542 (Remove_Side_Effects): replace Controlled_Type by
16543 CW_Or_Controlled_Type whenever the issue is related to
16544 using or not the secondary stack.
16546 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
16547 P_Interface_Type_Definition to fulfill the new interface (the formal
16548 Is_Synchronized is no longer required).
16550 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
16551 Update dependencies.
16553 * exp_atag.ads, exp_atag.adb: New file
16555 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16556 Bob Duff <duff@adacore.com>
16557 Cyrille Comar <comar@adacore.com>
16559 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
16560 anonymous, use finalization list of enclosing dynamic scope.
16561 (Expand_N_Package_Declaration): For a library package declaration
16562 without a corresponding body, generate RACW subprogram bodies in the
16563 spec (just as we do for the task activation call).
16564 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
16565 Is_Abstract_Type. Make sure these are called only when appropriate.
16566 Remove all code for DSP option
16567 (CW_Or_Controlled_Type): new subprogram.
16569 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16570 Ed Schonberg <schonberg@adacore.com>
16571 Gary Dismukes <dismukes@adacore.com>
16573 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
16574 parameter. If it is set to true, return a result capped according to
16575 the global upper bound for the index of an entry family.
16576 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
16577 (Build_Find_Body_Index): Adjust for above change.
16578 (Entry_Index_Expression): Likewise.
16579 (Is_Potentially_Large_Family): New function extracted from...
16580 (Collect_Entry_Families): ...here. Call it to detect whether the family
16581 is potentially large.
16582 (Build_Entry_Count_Expression): If the family is potentially large, call
16583 Family_Size with 'Cap' set to true.
16584 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
16585 a protected version of an operation declared in the private part of
16586 a protected object, because they may be invoked through a callback.
16587 (Set_Privals): If the type of a private component is an anonymous access
16588 type, do not create a new itype for each protected body.
16589 If the body of a protected operation creates
16590 controlled types (including allocators for class-widetypes), the
16591 body of the corresponding protected subprogram must include a
16593 (Build_Activation_Chain_Entity): Build the chain entity for extended
16595 (Type_Conformant_Parameters): Use common predicate Conforming_Types
16596 to determine whether operation overrides an inherited primitive.
16597 (Build_Wrapper_Spec): Add code to examine the parents while looking
16598 for a possible overriding candidate.
16599 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
16600 hold an actual parameter value since its initialization is separated
16601 from the the declaration. Prevents errors on null-excluding access
16604 2007-04-06 Thomas Quinot <quinot@adacore.com>
16605 Pablo Oliveira <oliveira@adacore.com>
16607 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
16608 Do an Unchecked_Conversion to handle the passage from the Underlying
16609 Type to the Base Type when calling Build_To_Any_Call and
16610 Build_From_Any_Call.
16611 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
16612 E_Constant, depending upon Variable formal.
16613 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16614 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
16615 parameter that requires an extra constrained parameter, declare
16616 temporary for actual as a variable, not a constant.
16617 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
16618 the unit being compiled is the one that contains the stub type.
16619 Change primitive operation name for the RACW associated with a RAS
16620 from Call to _Call so it cannot clash with any legal identifier.
16621 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
16623 (Append_RACW_Bodies): New subprogram.
16624 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
16625 Add_Receiving_Stubs_To_Declarations functions.
16626 When expanding a package body, this list correspond to the
16627 statements in the HSS at the end of the pacakge.
16628 When expanding a package spec, this list correspond to the
16630 (Add_Receiving_Stubs_To_Declarations): Append the function
16631 registering the receiving stubs at the end of the 'Stmts' list.
16632 (RCI_Package_Locator): Pass the new Version generic formal when
16633 instantiating a RCI_Locator package.
16634 (Build_From_Any_Function): To compute the High bound for an
16635 unconstrained array actual, we add the Low bound with the length.
16636 Thus we must convert the low bound and the length to an appropriate
16637 type before doing the sum.
16638 (Build_Subprogram_Receiving_Stubs, PolyORB):
16639 * Retrieve the extra formals parameters at the
16640 end of the parameter stream.
16641 * Use Move_Any_Value to write back out parameters
16642 after executing the request as it is more efficient
16643 than Copy_Any_Value.
16644 * Build the any containing Extra Formals with the
16645 appropriate typecode.
16646 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
16647 empty Component_List.
16648 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
16649 the tree the declaration for an object that serves as actual parameter
16650 in server-side stubs.
16651 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16652 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
16653 Use Build_Actual_Object_Declaration to prepare the actuals.
16654 (Add_Parameter_To_NVList): Set the parameter mode to In for
16655 Extra Constrained Parameters.
16656 (Build_General_Calling_Stubs): Set the parameter type to boolean for
16657 Extra Constrained parameters.
16658 (Build_To_Any_Function, Build_From_Any_Function,
16659 Built_TypeCode_Function): When Typ is implicit, call the correct
16660 function with the first not implicit parent type.
16661 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
16662 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
16663 typecode from the Etype. Therefore we retrieve the correct typecode
16664 with a call to Get_Any_Type.
16665 (Copy_Specification): Do controlling formal type substitution based on
16666 Is_Controlling_Formal flag, instead of caller-provided object type.
16667 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
16668 a RACW primitive operation, we might get a subprogram declaration for an
16669 ancestor of the RACW designated type (not for the designated type
16670 itself), in the case where this operation is inherited. In this case we
16671 have no easy means of determining the original tagged type for which
16672 the primitive was declared, so instead we now rely on
16673 Copy_Specification to use the Is_Controlling_Formal flag to determine
16674 which formals require type substitution.
16676 2007-04-06 Robert Dewar <dewar@adacore.com>
16677 Ed Schonberg <schonberg@adacore.com>
16679 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
16680 GNAT.Current_Exception are not allowed if pragma Restrictions
16681 (No_Exception_Propagation) is set and in any case make the associated
16682 handler unsuitable as a target for a local raise statement.
16683 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
16684 run-time subprogram CW_Membership by call to Build_CW_Membership.
16685 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
16686 by a function call, a temporary must be created before expanding the
16687 Constructor_Call itself, to prevent out-of-order elaboration in the
16688 back-end when stack checking is enabled..
16690 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16692 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
16693 result are the bounds of the left operand, not the right.
16695 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16698 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
16699 discriminant defaults.
16700 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
16701 (Make_Component_List_Attributes): Ditto.
16703 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16704 Bob Duff <duff@adacore.com>
16706 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
16707 an association with a box as providing a value even though the
16708 initialization procedure for the type is not available.
16709 (Resolve_Record_Aggregate): Check that a choice of an association with a
16710 box corresponds to a component of the type.
16711 (Resolve_Record_Aggregate): Split Is_Abstract flag into
16712 Is_Abstract_Subprogram and Is_Abstract_Type.
16714 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
16717 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
16718 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
16719 called only when appropriate.
16721 2007-04-06 Olivier Hainque <hainque@adacore.com>
16723 * g-alleve.ads (Low Level Vector type definitions): Map each to the
16724 associated vector view instead of all to the unsigned char view.
16726 * g-altcon.adb (Generic_Conversions): New internal generic package,
16727 offering facilities for all the Vector/View conversion routines
16728 implemented by this unit.
16729 (To_View/To_Vector - all versions): Reimplemented in a systematic
16730 manner, using the internal Generic_Conversions facilities.
16732 2007-04-06 Pascal Obry <obry@adacore.com>
16734 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
16736 (Create): Free the source string before storing the new one.
16738 2007-04-06 Vincent Celier <celier@adacore.com>
16740 * g-debpoo.adb (Validity): New package with a complete new
16741 implementation of subprograms Is_Valid and Set_Valid.
16742 (Is_Valid): Move to local package Validity
16743 (Set_Valid): Move to local package Validity
16745 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16746 Pablo Oliveira <oliveira@adacore.com>
16748 * g-expect.adb (Get_Command_Output): When expanding the output buffer
16749 we must ensure that there is enough place for the new data we are going
16752 2007-04-06 Thomas Quinot <quinot@adacore.com>
16754 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
16757 2007-04-06 Jose Ruiz <ruiz@adacore.com>
16758 Vincent Celier <celier@adacore.com>
16760 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
16761 (Stack_String): Add this String that contains the name of the Stack
16762 package in the project file.
16763 (Packages_To_Check_By_Stack): Add this list that contains the packages
16764 to be checked by gnatstack, which are the naming and the stack packages.
16765 (Check_Files): If no .ci files were specified for gnatstack we add all
16766 the .ci files belonging to the projects, including binder generated
16768 (Non_VMS_Usage): Document that gnatstack accept project file switches.
16769 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
16770 Add gnatstack to the list of commands that use project file related
16771 switches, and get the single attribute Switches from the stack package
16772 in a project file when calling gnatstack. Parse the -U flag for
16773 processing files belonging to all projects in the project tree.
16774 Remove all processing for command Setup
16776 * prj-attr.adb: Add new package Stack with single attribute Switches
16778 * vms_conv.ads (Command_Type): Add command Stack.
16779 Move to body declarations that are only used in the body: types Item_Id,
16780 Translation_Type, Item_Ptr, Item and its subtypes.
16782 * vms_conv.adb: (Initialize): Add data for new command Stack.
16783 Add declarations moved from the spec: types Item_Id, Translation_Type,
16784 Item_Ptr, Item and its subtypes.
16785 (Cargs_Buffer): New table
16786 (Cargs): New Boolean global variable
16787 (Process_Buffer): New procedure to create arguments
16788 (Place): Put character in table Buffer or Cargs_Buffer depending on the
16790 (Process_Argument): Set Cargs when processing qualifiers for GNAT
16792 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
16793 empty, for table Cargs_Buffer.
16794 (Initialize): Remove component Setup in Command_List
16796 2007-04-06 Vincent Celier <celier@adacore.com>
16798 * gprep.adb (Process_Files.Process_One_File): Use full file name when
16799 issuing pragma Source_Reference.
16801 2007-04-06 Emmanuel Briot <briot@adacore.com>
16803 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
16804 [[:xdigit:]] character class.
16805 Also raise an exception when an invalid character class is used.
16807 2007-04-06 Pascal Obry <obry@adacore.com>
16809 * i-cstrea.ads: (fopen): Add encoding parameter.
16811 Change reference from a-sysdep.c to sysdep.c in comment.
16812 Update copyright notice.
16813 This set of patch add support for the encoding form parameter.
16815 * mingw32.h (S2WSU): New macro to convert from a string to a
16816 wide-string using the UTF-8 encoding. The S2WS macro supports now only
16817 standard 8bits encoding.
16818 (WS2SU): As above but converting from wide-sring to string.
16819 This is needed as it is necessary to have access to both versions in the
16820 runtime for the form parameter encoding support.
16821 This set of patch add support for the encoding form parameter.
16822 (S2WS): Improve implementation to handle cases where the filename is not
16823 UTF-8 encoded. In this case we default to using the current code page
16824 for the conversion.
16826 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
16827 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
16828 the constants defined in adaint.h.
16829 (fopen): Add encoding parameter.
16832 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
16833 encoding. This is needed for the Reset routine (freopen low level-call).
16835 * s-fileio.adb (Open): Decode encoding form parameter and set the
16836 corresponding encoding value into AFCB structure.
16837 (Reset): Pass the encoding value to freopen.
16838 (Close): Move the call to Lock_Task to the beginning of the procedure.
16840 2007-04-06 Geert Bosch <bosch@adacore.com>
16841 Robert Dewar <dewar@adacore.com>
16843 * i-fortra.ads: Add Double_Complex type.
16845 * impunit.adb: (Is_Known_Unit): New function
16846 Add Gnat.Byte_Swapping
16848 Add new Ada 2005 units
16849 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
16850 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
16851 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
16852 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
16854 * impunit.ads (Is_Known_Unit): New function
16856 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
16857 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
16858 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
16859 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
16860 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
16861 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
16864 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
16866 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
16868 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16869 Arnaud Charlet <charlet@adacore.com>
16871 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
16872 __gnat_adjust_context_for_raise.
16873 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
16874 implementation of floating point operations as native x86 targets.
16875 So the FPU should be initialized in the same way using finit. Fix
16876 floating point operations accuracy issues.
16877 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
16878 member in struct sigaction, so as to avoid warning for incompatible
16881 2007-04-06 Serguei Rybin <rybin@adacore.com>
16883 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
16884 switches from previously loaded tree
16886 2007-04-06 Thomas Quinot <quinot@adacore.com>
16888 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
16889 cases where a given dependency has a body or not.
16890 (Write_With_File_Names): New subprogram, common code for the two cases
16893 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16894 Javier Miranda <miranda@adacore.com>
16896 * lib-xref.ads, lib-xref.adb:
16897 Modify the loop that collects type references, to include interface
16898 types that the type implements. List each of these interfaces when
16899 building the entry for the type.
16900 (Generate_Definition): Initialize component Def and Typ of new entry
16901 in table Xrefs, to avoid to have these components unitialized.
16902 (Output_References): Split Is_Abstract flag into
16903 Is_Abstract_Subprogram and Is_Abstract_Type.
16904 (Generate_Reference): Add barrier to do not generate the warning
16905 associated with Ada 2005 entities with entities generated by the
16908 2007-04-06 Robert Dewar <dewar@adacore.com>
16909 Arnaud Charlet <charlet@adacore.com>
16910 Vincent Celier <celier@adacore.com>
16912 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
16913 Update 'Exception Handling Control' chapter which was outdated.
16914 Minor fix to documentation of -gnatwq
16915 Remove section "Adapting the Run Time to a New C++ Compiler" because
16916 it is now obsolete.
16917 Add passage on need of -nostart-files in some non-ada-main cases.
16918 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
16919 Update documentation about Interfacing with C++
16920 Add documentation for new gnatmake switch -p
16921 Add missing protocol part in URLs.
16923 Document pragma Compile_Time_Error
16924 Add documentation for Object_Size indicating that stand alone
16925 objects can have a larger size in some cases.
16926 Add node for GNAT.Byte_Swapping, GNAT.SHA1
16927 Update reference to the Ravenscar profile.
16928 Document pragma Unreferenced_Objects
16930 * gnat-style.texi: Fix typo
16932 2007-04-06 Vincent Celier <celier@adacore.com>
16934 * mlib.adb (Building_Library): Only output "building a library..." in
16937 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16938 files in verbose mode.
16940 * mlib-utl.adb (Ar): Only output the first object files when not in
16942 (Gcc): Do not display all the object files if not in verbose mode, only
16945 2007-04-06 Robert Dewar <dewar@adacore.com>
16947 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
16948 it no longer destroys the contents of Name_Buffer or Name_Len and
16949 non-standard and invalid names are handled better.
16950 (Get_Decoded_Name_String): Improve performance by using
16951 Name_Has_No_Encodings flag in the name table.
16952 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16953 Used for debugging printouts.
16955 2007-04-06 Robert Dewar <dewar@adacore.com>
16956 Javier Miranda <miranda@adacore.com>
16957 Bob Duff <duff@adacore.com>
16959 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16960 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16961 there is no need to generate always a record_definition_node in case
16962 of synchronized interface types.
16963 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16964 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16965 illegal in Ada 95, in cases where it is legal. Change the warnings to
16966 errors in other cases. Don't give the error unless the "not null"
16967 parses properly. Correct the source position at which the error occurs.
16968 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16969 P_Null_Exclusion, to suppress "not null" warnings.
16970 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16971 associated goto statements.
16973 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16976 * scans.ads (Type_Token_Location): New flag
16978 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16979 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16980 P_Null_Exclusion, to suppress "not null" warnings.
16982 2007-04-06 Robert Dewar <dewar@adacore.com>
16983 Javier Miranda <miranda@adacore.com>
16984 Bob Duff <duff@adacore.com>
16985 Vincent Celier <celier@adacore.com>
16987 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16988 (Extensions_Allowed): No longer sets Ada_Version
16989 Entry for pragma Unreferenced_Objects
16991 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16992 system.tasking if pragma priority used in a procedure
16993 (Analyze_Pragma, case Warning): Handle dot warning switches
16994 (Process_Compile_Time_Warning_Or_Error): New procedure
16995 (Analyze_Pragma): Add processing for Compile_Time_Error
16996 Add support for extra arguments External_Name and Link_Name.
16997 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16998 (Process_Import_Or_Interface): Add support for the use of pragma Import
17000 (Extensions_Allowed): No longer affects Ada_Version
17001 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
17002 Is_Abstract_Type. Make sure these are called only when appropriate.
17003 Add processing for pragma Unreferenced_Objects
17005 * snames.h, snames.ads, snames.adb: Add entry for pragma
17007 Add new standard name Minimum_Binder_Options for new gprmake
17008 Add new standard names for gprmake: Archive_Suffix,
17009 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
17010 Library_Support, Library_Version_Options,
17011 Shared_Library_Minimum_Options,
17012 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
17013 Change Name_Call to Name_uCall so that it cannot clash with a legal
17015 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
17016 Append C_Plus_Plus to convention identifiers as synonym for CPP
17017 Add new standard names Stack and Builder_Switches
17018 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
17019 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
17020 Run_Path_Option, Toolchain_Version.
17021 Entry for pragma Unreferenced_Objects
17023 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
17024 switches, without repetition of "eD". Make sure that last character of
17025 -gnatep= switch is not taken as -gnat switch character.
17026 Complete rewrite of circuit for handling saving compilation options
17027 Occasioned by need to support dot switchs for -gnatw, but cleans up
17029 -gnatX does not affect Ada_Version
17030 Include -gnatyA in -gnatg style switches
17032 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
17033 warnings on return objects.
17034 (Warn_On_Useless_Assignment): Exclude warnings on return objects
17035 (Set_Dot_Warning_Switch): New procedure
17036 (Check_References): Add missing case of test for
17037 Has_Pragma_Unreferenced_Objects
17038 (Output_Unreferenced_Messages): Implement effect of new pragma
17039 Unreferenced_Objects, remove special casing of limited controlled
17042 2007-04-06 Vincent Celier <celier@adacore.com>
17044 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
17045 the default project path, initially done during elaboration of the
17047 If the prefix returned by Sdefault is null, get the prefix from a call
17048 to Executable_Prefix_Path.
17049 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
17052 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
17053 canonical directory name to open the directory from which files are
17055 (Record_Other_Sources): Idem.
17056 (Locate_Directory): Add the possibility to create automatically missing
17057 directories when Setup_Projects is True.
17058 Call Locate_Directory so that the directory will be created when
17059 Setup_Projects is True, for object dir, library dir, library ALI dir,
17060 library source copy dir and exec dir.
17062 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
17065 2007-04-06 Robert Dewar <dewar@adacore.com>
17067 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
17068 Use First/Next_Component_Or_Discriminant
17069 (Analyze_Record_Representation_Clause):
17070 Use First/Next_Component_Or_Discriminant
17071 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
17072 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
17073 definition if type is unconstrained.
17074 (Adjust_Record_For_Reverse_Bit_Order): New procedure
17075 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
17076 Is_Abstract_Subprogram and Is_Abstract_Type.
17077 (Adjust_Record_For_Reverse_Bit_Order): New procedure
17079 * repinfo.adb (List_Record_Info): Use First/
17080 Next_Component_Or_Discriminant.
17082 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
17085 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
17086 Include -gnatyA in default switches
17088 * opt.ads: (Warn_On_Non_Local_Exception): New flag
17089 (Warn_On_Reverse_Bit_Order): New flag
17090 (Extensions_Allowed): Update the documentation.
17091 (Warn_On_Questionable_Missing_Parens): Now on by default
17093 * usage.adb: Add documentation of -gnatw.x/X switches
17094 Document new -gnatyA style switch
17095 -gnatq warnings are on by default
17097 2007-04-06 Ed Falis <falis@adacore.com>
17099 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
17100 full word is no longer compared twice.
17102 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17104 * sem_ch10.adb (Install_Limited_Context_Clauses.
17105 Expand_Limited_With_Clause): Use a new copy of selector name in the
17106 call to Make_With_Clause. This fixes the tree structure for ASIS
17107 purposes. Nothing is changed in the compiler behaviour.
17108 (Process_Body_Clauses): Handle properly use clauses whose prefix is
17109 a package renaming.
17110 (Install_Limited_With_Clauses): Do not install non-limited view when it
17111 is still incomplete.
17113 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17114 Gary Dismukes <dismukes@adacore.com>
17116 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
17117 when capturing size information, instead of base type, which for a
17118 formal array type will be the unconstrained type.
17119 (Analyze_Formal_Object_Declaration): Add check for illegal default
17120 expressions for a formal in object of a limited type.
17121 (Instantiate_Object): Ditto.
17122 (Check_Formal_Package_Instance): Skip entities that are formal objects,
17123 because they were defaulted in the formal package and no check applies
17125 (Check_Formal_Package_Instance): Extend conformance check to other
17126 discrete types beyond Integer.
17127 (Process_Default): Copy directly the unmatched formal. A generic copy
17128 has already been performed in Analyze_Formal_Package.
17129 (Analyze_Associations): If a formal subprogram has no match, check for
17130 partial parametrization before looking for a default, to prevent
17132 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
17133 not set the instantiation environment before analyzing the actuals.
17134 Fixes regression on 8515-003 with implementation of AI-133.
17135 Set_Instance_Env checks whether the generic unit is a predefined
17136 unit, in which case the instance must be analyzed with the latest Ada
17137 mode. This setting must take place after analysis of the actuals,
17138 because the actuals must be analyzed and frozen in the Ada mode extant
17139 outside of the current instantiation.
17140 (Save_Env, Restore_Env): Preserve and restore the configuration
17141 parameters so that predefined units can be compiled in the proper Ada
17143 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
17144 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
17145 and Is_Abstract_Type.
17146 (Analyze_Formal_Package): For better error recovery, Add exception
17147 handler to catch Instantion_Error, which can be raised in
17148 Analyze_Associations
17150 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17151 Bob Duff <duff@adacore.com>
17152 Gary Dismukes <dismukes@adacore.com>
17154 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
17155 prefix type is a discriminated subtype of the type of the formal.
17156 (Analyze_Allocator): Collect all coextensions regardless of the context.
17157 Whether they can be allocated statically is determined in exp_ch4.
17158 (Analyze_Selected_Component): If the prefix is a limited view and the
17159 non-limited view is available, use the non-limited one.
17160 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
17161 therefore illegal), suggest a qualified expression rather than a type
17162 conversion, because a type conversion would be illegal in this context.
17163 (Anayze_Allocator): Trace recursively all nested allocators so that all
17164 coextensions are on the corresponding list for the root. Do no mark
17165 coextensions if the root allocator is within a declaration for a stack-
17166 allocated object, because the access discriminants will be allocated on
17168 (Analyze_Call): Remove restriction on calls to limited functions for the
17169 cases of generic actuals for formal objects, defaults for formal objects
17170 and defaults for record components.
17171 (Analyze_Allocator): Before analysis, chain coextensions on the proper
17172 element list. Their expansion is delayed until the enclosing allocator
17173 is processed and its finalization list constructed.
17174 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
17175 for an operation with the given name among the primitive operations of
17176 the corresponding record type.
17177 (Analyze_Selected_Component): If the prefix is a task type that
17178 implements an interface, and there is no entry with the given name,
17179 check whether there is another primitive operation (e.g. a function)
17181 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
17182 properly the indexing of a function call written in prefix form, where
17183 the function returns an array type, and all parameters of the function
17184 except the first have defaults.
17185 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
17186 the original operands, rather than relocating them, for efficiency and
17187 to work properly when an operand is overloaded.
17188 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
17189 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
17190 (Analyze_Selected_Component): If the prefix is a private extension, only
17191 scan the visible components, not those of the full view.
17192 (Try_Primitive_Operation): If the operation is a procedure, collect all
17193 possible interpretations, as for a function, because in the presence of
17194 classwide parameters several primitive operations of the type can match
17195 the given arguments.
17197 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17198 Robert Dewar <dewar@adacore.com>
17200 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
17201 tag-indeterminate call to an abstract function, when the left-hand side
17203 (Analyze_Loop_Statement): Improve detection of infinite loops
17205 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17206 Thomas Quinot <quinot@adacore.com>
17208 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
17209 out of Analyze_Package_Declaration, because processing must be applied
17210 to package bodies as well, for deferred constants completed by pragmas.
17211 (Analyze_Package_Declaration): When the package declaration being
17212 analyzed does not require an explicit body, call Check_Completion.
17213 (May_Need_Implicit_Body): An implicit body is required when a package
17214 spec contains the declaration of a remote access-to-classwide type.
17215 (Analyze_Package_Body): If the package contains RACWs, append the
17216 pending subprogram bodies generated by exp_dist at the end of the body.
17217 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
17218 Is_Abstract_Subprogram and Is_Abstract_Type.
17219 (Preserve_Full_Attributes): The full entity list is not an attribute
17220 that must be preserved from full to partial view.
17222 * sem_dist.adb (Add_RAS_Dereference_TSS):
17223 Change primitive name to _Call so it cannot clash with any legal
17224 identifier, and be special-cased in Check_Completion.
17225 Mark the full view of the designated type for the RACW associated with
17226 a RAS as Comes_From_Source to get proper view switching when installing
17227 private declarations.
17228 Provite a placeholder nested package body along with the nested spec
17229 to have a place for Append_RACW_Bodies to generate the calling stubs
17230 and stream attributes.
17232 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17233 Robert Dewar <dewar@adacore.com>
17235 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
17236 that is a limited view, check the non-limited view if available.
17237 (Undefined): Refine error message for missing with of Text_IO
17238 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
17239 to distinguish real missing with cases.
17240 Fix format of all missing with messages
17241 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
17242 renaming as body when renamed entity is abstract.
17244 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17245 Javier Miranda <miranda@adacore.com>
17247 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
17248 predicate recursive, to handle complex expressions on literals whose
17249 spurious ambiguity comes from the abstract interpretation of some
17251 (Interface_Present_In_Ancestor): Add support to concurrent record
17253 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
17254 Is_Abstract_Subprogram and Is_Abstract_Type.
17256 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17257 Javier Miranda <miranda@adacore.com>
17259 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
17260 dereference of a local object R created as a reference to another
17261 object O, use the access level of O.
17262 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
17263 rather than local Same_Formal_Type, to check whether protected operation
17264 overrides an inherited one.
17265 (Same_Formal_Type): New predicate, used when matching signatures of
17266 overriding synchronized operations, to handle the case when a formal
17267 has a type that is a generic actual.
17268 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
17269 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
17270 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
17271 syntactic ambiguities involving indexing of function calls that return
17273 (Abstract_Interface_List): New subprogram that returns the list of
17274 abstract interfaces associated with a concurrent type or a
17275 concurrent record type.
17276 (Interface_Present_In_Parent): New subprogram used to check if a
17277 given type or some of its parents implement a given interface.
17278 (Collect_Abstract_Interfaces): Add support for concurrent types
17279 with interface types.
17280 (Has_Abstract_Interfaces): Add support for concurrent types with
17282 (Is_Parent): New subprogram that determines whether E1 is a parent
17283 of E2. For a concurrent type its parent is the first element of its
17284 list of interface types; for other types this function provides the
17285 same result than Is_Ancestor.
17286 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
17287 (Collect_Synchronized_Interfaces): Removed because the subprogram
17288 Collect_Abstract_Interfaces provides this functionality.
17289 (Collect_Abstract_Interfaces): Minor update to give support to
17290 concurrent types and thus avoid undesired code duplication.
17291 (Get_Subprogram_Entity): Handle entry calls.
17292 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
17294 (Enter_Name): Do not give -gnatwh hiding warning for record component
17295 entities, they never result in hiding.
17297 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17298 Robert Dewar <dewar@adacore.com>
17300 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
17301 to chain nested components that are allocators for access discriminants
17302 of the enclosing object.
17303 Add N_Push and N_Pop nodes
17304 New field Exception_Label added
17305 (Local_Raise_Statements): New field in N_Exception_Handler_Node
17306 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
17307 (Is_Coextension): New flag for allocators, to mark allocators that
17308 correspond to access discriminants of dynamically allocated objects.
17309 (N_Block_Statement): Document the fact that the corresponding entity
17310 can be an E_Return_Statement.
17311 (Is_Coextension): New flag for allocators.
17312 Remove all code for DSP option
17314 * sprint.ads, sprint.adb: Display basic information for class_wide
17315 subtypes. Add handling of N_Push and N_Pop nodes
17317 2007-04-06 Arnaud Charlet <charlet@adacore.com>
17319 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
17320 before propagating exception.
17322 2007-04-06 Olivier Hainque <hainque@adacore.com>
17324 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
17325 an address always within the call instruction from a return address.
17327 2007-04-06 Olivier Hainque <hainque@adacore.com>
17328 Eric Botcazou <botcazou@adacore.com>
17330 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
17331 expression with a COMPOUND_EXPR including the call instead of emitting
17332 the call directly here.
17333 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
17334 high bound is constant and the slice is empty. Tidy.
17335 (tree_transform, case N_Op_Not): Handle properly the case where the
17336 operation applies to a private type whose full view is a modular type.
17337 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
17338 Address_Clause, use the associated Expression as the GNAT tree
17339 representing the choice value to ensure the corresponding GCC tree is
17340 of the proper kind.
17341 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
17342 instead of just the operands, as the base GCC stabilize_reference does.
17343 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
17344 requested; otherwise fail.
17345 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
17347 2007-04-06 Thomas Quinot <quinot@adacore.com>
17349 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
17350 implementation of UI_Div.
17351 (UI_Div): Reimplement as a call to UI_Div_Rem.
17352 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
17353 remainder, avoiding the cost of a multiplication and a subtraction.
17354 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
17355 provides both quotient and remainder in a single computation.
17356 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
17357 functions for uint.
17358 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
17359 is undefined if the given n is not inversible.
17361 2007-04-06 Olivier Hainque <hainque@adacore.com>
17363 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
17364 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
17367 2007-04-06 Eric Botcazou <botcazou@adacore.com>
17368 Olivier Hainque <hainque@adacore.com>
17370 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
17371 when updating the contents of the old pointer to an unconstrained array.
17372 (end_subprog_body): Set error_gnat_node to Empty.
17373 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
17374 (unchecked_convert): For subtype to base type conversions, require that
17375 the source be a subtype if it is an integer type.
17376 (builtin_decls): New global, vector of available builtin functions.
17377 (gnat_pushdecl): Add global builtin function declaration nodes to the
17378 builtin_decls list.
17379 (gnat_install_builtins): Adjust comments.
17380 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
17381 calling gnat_pushdecl, so that it knows when it handed a builtin
17382 function declaration node.
17383 (builtin_decl_for): Search the builtin_decls list.
17385 2007-04-06 Eric Botcazou <botcazou@adacore.com>
17387 * s-stchop-vxworks.adb:
17388 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
17390 2007-04-06 Robert Dewar <dewar@adacore.com>
17391 Arnaud Charlet <charlet@adacore.com>
17393 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
17395 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
17397 Add mention of -Sev (set initialize_scalars option from environment
17398 variable at run time) in gnatbind usage message.
17400 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
17402 * fname-uf.ads: Minor comment fix
17404 * osint.ads: Change pragma Elaborate to Elaborate_All
17406 * par-load.adb: Add documentation.
17408 * sem_cat.ads, sem_cat.adb: Minor code reorganization
17410 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
17412 * s-secsta.ads: Extra comments
17414 * s-soflin.ads: Minor comment fixes
17416 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
17418 * s-wchcon.ads: Minor comment addition
17420 * treepr.adb: Minor change in message
17421 (Print_Name,Print_Node): Make these debug printouts more robust: print
17422 "no such..." instead of crashing on bad input.
17424 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
17426 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
17427 instead of gnat_signed_or_unsigned_type.
17428 * utils.c (gnat_signed_or_unsigned_type): Remove.
17429 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
17430 * gigi.h (gnat_signed_or_unsigned_type): Remove
17432 2007-03-09 Roger Sayle <roger@eyesopen.com>
17434 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
17435 fold with the result of buildN.
17436 * decl.c (gnat_to_gnu_entity): Likewise.
17437 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
17438 * utils.c (finish_record_type, merge_sizes, max_size, convert):
17440 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
17441 nonbinary_modular_operation, build_binary_op, build_unary_op,
17442 build_cond_expr): Likewise.
17444 * utils.c (convert): Use fold_build1 when casting values to void.
17445 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
17446 fold_convert instead of convert when appropriate.
17448 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
17450 * Make-lang.in: Add install-pdf target as copied from
17451 automake v1.10 rules.
17453 2007-02-28 Andreas Schwab <schwab@suse.de>
17455 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
17456 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
17457 (doc/gnat-style.info): Likewise.
17459 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
17461 * gnat-style.texi: Standardize title page.
17462 * gnat_rm.texi: Likewise.
17463 * gnat_ugn.texi: Likewise.
17465 2007-02-25 Mark Mitchell <mark@codesourcery.com>
17467 * decl.c (annotate_value): Adjust for refactoring of tree_map
17470 2007-02-24 Mark Mitchell <mark@codesourcery.com>
17472 * decl.c (annotate_value): Adjust for refactoring of tree_map
17475 2007-02-21 Ed Schonberg <schonberg@adacore.com>
17478 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
17479 untagged derived type, add hidden components to keep discriminant
17480 layout consistent, when a given discriminant of the derived type
17481 constraints several discriminants of the parent type.
17483 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
17484 Sandra Loosemore <sandra@codesourcery.com>
17486 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
17487 build the call expression.
17488 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
17489 * utils.c (max_size) <tcc_exceptional>: Delete.
17490 <tcc_vl_exp>: New case.
17491 <tcc_expression>: Delete CALL_EXPR subcase.
17492 (build_global_cdtor): Use build_call_nary instead of build3.
17493 * utils2.c (build_call_1_expr): Likewise.
17494 (build_call_2_expr): Likewise.
17495 (build_call_0_expr): Likewise.
17496 (build_call_alloc_dealloc): Likewise.
17498 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
17500 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
17501 get_action_description_for): Replace _Unwind_Word with _uleb128_t
17502 and _Unwind_SWord with _sleb128_t.
17504 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
17506 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
17507 * decl.c: Include gt-ada-decl.h.
17508 (annotate_value_cache): New.
17509 (annotate_value): Use it instead of TREE_COMPLEXITY.
17511 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
17513 * misc.c, utils2.c: Fix comment typos.
17515 2007-01-24 Roger Sayle <roger@eyesopen.com>
17517 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
17518 TREE_CONSTANT_OVERFLOW.
17519 (allocatable_size_p, annotate_value): Likewise.
17520 * trans.c (gnat_to_gnu): Likewise.
17521 * utils.c (unchecked_convert): Likewise.
17522 * utils2.c (build_simple_component_ref): Likewise.
17524 2007-01-23 Richard Guenther <rguenther@suse.de>
17527 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
17528 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
17529 (gnatboot3): Likewise.
17530 (GNATBIND): Do not define.
17531 * Makefile.in (GNATBIND): Do not define.
17533 2007-01-08 Richard Guenther <rguenther@suse.de>
17535 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
17536 * trans.c (gnat_to_gnu): Likewise.
17538 2006-12-07 Geoffrey Keating <geoffk@apple.com>
17540 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
17541 * adaint.c: Likewise.
17543 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
17545 Merge from gimple-tuples-branch:
17546 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
17548 * ada-tree.h (lang_tree_node): Handle gimple tuples.
17549 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
17550 GIMPLE_MODIFY_STMT.
17552 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
17554 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
17555 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
17558 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
17561 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
17562 if the initializer takes into account the padding.
17564 2006-11-11 Richard Guenther <rguenther@suse.de>
17566 * trans.c (maybe_stabilize_reference): Remove handling of
17567 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
17569 2006-11-05 Arnaud Charlet <charlet@adacore.com>
17572 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
17573 (To_Target_Priority): New function.
17575 2006-10-31 Robert Dewar <dewar@adacore.com>
17577 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
17578 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
17579 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
17580 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
17581 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
17582 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
17583 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
17584 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
17585 a-szbzha.adb: Minor reformatting. Fix header.
17587 * a-numaux-x86.adb: Add parentheses for use of unary minus
17588 * a-ngcefu.adb: Supply missing parentheses for unary minus
17589 * a-ngcoty.adb: Add parens for use of unary minus
17590 * a-ngelfu.adb: Add missing parens for unary minus
17591 * a-tifiio.adb: Add parentheses for uses of unary minus
17593 2006-10-31 Robert Dewar <dewar@adacore.com>
17594 Bob Duff <duff@adacore.com>
17595 Ed Schonberg <schonberg@adacore.com>
17597 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
17598 with multiplying operator.
17599 (Expected_Type_Is_Any_Real): New function to determine from the Parent
17600 pointer whether the context expects "any real type".
17601 (Resolve_Arithmetic_Op): Do not give an error on calls to the
17602 universal_fixed "*" and "/" operators when they are used in a context
17603 that expects any real type. Also set the type of the node to
17604 Universal_Real in this case, because downstream processing requires it
17605 (mainly static expression evaluation).
17606 Reword some continuation messages
17607 Add some \\ sequences to continuation messages
17608 (Resolve_Call): Refine infinite recursion case. The test has been
17609 sharpened to eliminate some false positives.
17610 Check for Current_Task usage now includes entry barrier, and is now a
17611 warning, not an error.
17612 (Resolve): If the call is ambiguous, indicate whether an interpretation
17613 is an inherited operation.
17614 (Check_Aggr): When resolving aggregates, skip associations with a box,
17615 which are priori correct, and will be replaced by an actual default
17616 expression in the course of expansion.
17617 (Resolve_Type_Conversion): Add missing support for conversion from
17618 a class-wide interface to a tagged type. Minor code cleanup.
17619 (Valid_Tagged_Converion): Add support for abstact interface type
17621 (Resolve_Selected_Component): Call Generate_Reference here rather than
17622 during analysis, and use May_Be_Lvalue to distinguish read/write.
17623 (Valid_Array_Conversion): New procedure, abstracted from
17624 Valid_Conversion, to incorporate accessibility checks for arrays of
17625 anonymous access types.
17626 (Valid_Conversion): For a conversion to a numeric type occurring in an
17627 instance or inlined body, no need to check that the operand type is
17628 numeric, since this has been checked during analysis of the template.
17629 Remove legacy test for scope name Unchecked_Conversion.
17631 * sem_res.ads: Minor reformatting
17633 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
17634 (PE_Current_Task_In_Entry_Body): New exception code
17635 (SE_Restriction_Violation): Removed, not used
17637 * a-except.ads: Update comments.
17639 * types.h, types.ads: Add definition for Validity_Check
17640 (PE_Current_Task_In_Entry_Body): New exception code
17641 (SE_Restriction_Violation): Removed, not used
17643 2006-10-31 Thomas Quinot <quinot@adacore.com>
17645 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
17648 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17649 Jose Ruiz <ruiz@adacore.com>
17651 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
17652 part of Ada.Calendar: all subprogram raise Unimplemented.
17653 (Split_W_Offset): Temp function body, raising Unimplemented
17655 * a-calend.ads, a-calend-vms.ads:
17656 Add imported variable Invalid_TZ_Offset used to designate targets unable
17657 to support time zones.
17658 (Unimplemented): Temporary function raised by the body of new
17660 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
17661 unit provides handling of leap seconds and is used by the new Ada 2005
17662 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
17663 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
17664 version returns an extra value which is the offset to UTC.
17666 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
17667 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
17668 (Split_W_Offset): New function body.
17669 (Time_Of): When a date is close to UNIX epoch, compute the time for
17670 that date plus one day (that amount is later substracted after
17671 executing mktime) so there are no problems with time zone adjustments.
17673 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
17675 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
17676 a-catizo.ads, a-catizo.adb: New files.
17678 * impunit.adb: Add new Ada 2005 entries
17680 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
17681 Rename all occurences of "__gnat_localtime_r" to
17682 "__gnat_localtime_tzoff".
17683 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
17684 zone data and calculate the GMT offset.
17685 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
17686 Use the field "tm_gmtoff" to extract the GMT offset.
17687 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
17688 the external variable "timezone" to calculate the GMT offset.
17690 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17691 Jose Ruiz <ruiz@adacore.com>
17693 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
17694 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
17695 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
17696 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
17697 System.Any_Priority to a POSIX priority on the target.
17699 * system-linux-ia64.ads:
17700 Extend range of Priority types on Linux to use the whole range made
17701 available by the system.
17703 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
17704 function maps from System.Any_Priority to a POSIX priority on the
17706 (PTHREAD_PRIO_PROTECT): Set real value.
17707 (PTHREAD_PRIO_INHERIT): Now a function.
17708 (SIGCPUFAIL): New signal.
17709 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
17710 are documented as reserved by the OS.
17712 * system-aix.ads: Use the full range of priorities provided by the
17715 * s-taprop-posix.adb: Call new function To_Target_Priority.
17716 (Set_Priority): Take into account Task_Dispatching_Policy and
17717 Priority_Specific_Dispatching pragmas when determining if Round Robin
17718 must be used for scheduling the task.
17720 * system-linux-x86_64.ads, system-linux-x86.ads,
17721 system-linux-ppc.ads: Extend range of Priority types on Linux to use
17722 the whole range made available by the system.
17724 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
17725 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
17726 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
17727 when deallocating the TCB in order to avoid potential references to
17729 (Set_Priority): Take into account Task_Dispatching_Policy and
17730 Priority_Specific_Dispatching pragmas when determining if Round Robin
17731 or FIFO within priorities must be used for scheduling the task.
17733 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
17734 the Thread field (to be used internally by the run-time system) and the
17735 kernel-level task id in the LWP field (to be used by the debugger).
17736 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
17737 instance, and propagate the current task options to the spawned task.
17738 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
17739 (Initialize): Set Round Robin dispatching when the corresponding pragma
17742 2006-10-31 Robert Dewar <dewar@adacore.com>
17744 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
17745 system-linux-hppa.ads, system-hpux-ia64.ads,
17746 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
17747 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
17748 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
17749 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
17750 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
17751 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
17752 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
17753 Default_Bit_Order) to kill constant condition warnings for references
17756 2006-10-31 Vincent Celier <celier@adacore.com>
17757 Eric Botcazou <ebotcazou@adacore.com>
17759 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
17760 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
17761 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
17762 Ext_To, when building the library file name
17764 * mlib-tgt-vxworks.adb: ditto.
17765 (Get_Target_Suffix): Add support for x86 targets.
17767 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
17769 * mlib-tgt-darwin.adb:
17770 Use Append_To, instead of Ext_To, when building the library file name
17771 (Flat_Namespace): New global variable.
17772 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
17773 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
17774 (Link_Shared_Libgcc): Delete.
17775 (Build_Dynamic_Library): Adjust for above changes.
17777 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
17779 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17781 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
17782 (Initialize): Add type conversions required by above change.
17784 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17786 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
17787 (getpid): New body for this function that uses the underlying taskIdSelf
17788 function for VxWorks 5 and VxWorks 6 in kernel mode.
17789 (unsigned_int): New type, modular to allow logical bit operations.
17790 (taskOptionsGet): New imported function.
17792 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
17793 field to be compliant with the type used by the corresponding operating
17796 2006-10-31 Pascal Obry <obry@adacore.com>
17797 Eric Botcazou <ebotcazou@adacore.com>
17798 Vincent Celier <celier@adacore.com>
17800 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
17801 ASCII version of the registry API. This is needed as the GNAT runtime
17802 is now UNICODE by default.
17804 (get_gcc_version): Do not hardcode the return value.
17805 (__gnat_file_time_name): On Windows properly set the default returned
17806 value to -1 which corresponds to Invalid_Time.
17807 (__gnat_fopen): New routine. A simple wrapper on all plateforms
17808 except on Windows where it does conversion for unicode support.
17809 (__gnat_freopen): Idem.
17810 (__gnat_locate_exec_on_path): If environment variable PATH does not
17811 exist, return a NULL pointer
17813 * adaint.h: (__gnat_fopen): Declare.
17814 (__gnat_freopen): Likewise.
17816 * mingw32.h (_tfreopen): Define this macro here for older MingW
17818 Activate the unicode support on platforms using a MingW runtime
17819 version 3.9 or newer.
17821 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
17822 This is needed for proper unicode support on Windows.
17825 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17826 Nicolas Setton <setton@adacore.com>
17827 Olivier Hainque <hainque@adacore.com>
17828 Gary Dismukes <dismukes@adacore.com>
17830 * gigi.h: (tree_code_for_record_type): Declare.
17831 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
17832 (get_global_renaming_pointers): Rename to
17833 invalidate_global_renaming_pointers.
17834 (static_ctors): Delete.
17835 (static_dtors): Likewise.
17836 (gnat_write_global_declarations): Declare.
17837 (create_var_decl): Adjust descriptive comment to indicate that the
17838 subprogram may return a CONST_DECL node.
17839 (create_true_var_decl): Declare new function, similar to
17840 create_var_decl but forcing the creation of a VAR_DECL node.
17841 (get_global_renaming_pointers): Declare.
17842 (add_global_renaming_pointer): Likewise.
17844 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
17846 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
17847 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
17849 (gnat_to_gnu_entity): Remove From_With_Type from computation for
17851 <E_Access_Type>: Use the Non_Limited_View as the full view of the
17852 designated type if the pointer comes from a limited_with clause. Make
17853 incomplete designated type if it is in the main unit and has a freeze
17855 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
17856 Underlying_Full_View similarly. Return earlier if the full view already
17857 has an associated tree.
17858 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
17859 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
17860 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
17861 reference type built for objects with an address clause.
17862 Use create_true_var_decl with const_flag set for
17863 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
17865 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
17866 for Character and Wide_Character types. This info is read by the
17867 dwarf-2 writer, and is needed to be able to use the command "ptype
17868 character" in the debugger.
17869 (gnat_to_gnu_entity): When generating a type representing
17870 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
17871 so that debug writers can distinguish it from ordinary integers.
17872 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
17873 addition to TREE_READONLY to assert the constantness of variables for
17874 elaboration purposes.
17875 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
17876 parameters to call new Einfo function First_Formal_With_Extras.
17877 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
17878 protected type with its corresponding discriminant, to obtain a usable
17880 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
17881 for a multiple elaboration of the "equivalent" type.
17882 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
17883 into record_global_renaming_pointer.
17884 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
17885 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
17886 <E_Array_Subtype>: Likewise.
17887 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
17888 incomplete subtypes and incomplete subtypes of incomplete types visible
17889 through a limited with clause.
17890 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
17891 the base index type for the maximum size of the array only if they are
17893 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
17894 expression into a SAVE_EXPR if stabilization failed.
17896 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
17897 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
17898 by lower level compilation passes.
17899 (gnat_genericize): New function, lowering a function body to GENERIC.
17900 Turn the type of RESULT_DECL into a real reference type if the decl
17901 has been marked DECL_BY_REFERENCE, and adjust references to the latter
17903 (gnat_genericize_r): New function. Tree walking callback for
17905 (convert_from_reference, is_byref_result): New functions. Helpers for
17907 (create_type_decl): Call gnat_pushdecl before calling
17908 rest_of_decl_compilation, to make sure that field TYPE_NAME of
17909 type_decl is properly set before calling the debug information writers.
17910 (write_record_type_debug_info): The heuristics which compute the
17911 alignment of a field in a variant record might not be accurate. Add a
17912 safety test to make sure no alignment is set to a smaller value than
17913 the alignment of the field type.
17914 (make_dummy_type): Use the Non_Limited_View as the underlying type if
17915 the type comes from a limited_with clause. Do not loop on the full view.
17916 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
17917 (dummy_node_table): New global variable, moved from decl.c.
17918 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
17919 (save_gnu_tree): Use above macros.
17920 (get_gnu_tree): Likewise.
17921 (present_gnu_tree): Likewise.
17922 (init_dummy_type): New function, moved from decl.c. Use above macros.
17923 (make_dummy_type): Likewise.
17924 (tree_code_for_record_type): New function extracted from make_dummy_type
17925 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
17926 (static_ctors): Change it to a vector, make static.
17927 (static_dtors): Likewise.
17928 (end_subprog_body): Adjust for above change.
17929 (build_global_cdtor): Moved from trans.c.
17930 (gnat_write_global_declarations): Emit global constructor and
17931 destructor, and call cgraph_optimize before emitting debug info for
17932 global declarations.
17933 (global_decls): New global variable.
17934 (gnat_pushdecl): Store the global declarations in global_decls, for
17936 (gnat_write_global_declarations): Emit debug information for global
17938 (create_var_decl_1): Former create_var_decl, with an extra argument to
17939 state whether the creation of a CONST_DECL is allowed.
17940 (create_var_decl): Behavior unchanged. Now a wrapper around
17941 create_var_decl_1 allowing CONST_DECL creation.
17942 (create_true_var_decl): New function, similar to create_var_decl but
17943 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
17944 (create_field_decl): Do not always mark the field as addressable
17945 if its type is an aggregate.
17946 (global_renaming_pointers): New static variable.
17947 (add_global_renaming_pointer): New function.
17948 (get_global_renaming_pointers): Likewise.
17950 * misc.c (gnat_dwarf_name): New function.
17951 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17952 (gnat_post_options): Add comment about structural alias analysis.
17953 (gnat_parse_file): Do not call cgraph_optimize here.
17954 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17956 * trans.c (process_freeze_entity): Don't abort if we already have a
17957 non dummy GCC tree for a Concurrent_Record_Type, as it might
17958 legitimately have been elaborated while processing the associated
17959 Concurrent_Type prior to this explicit freeze node.
17960 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17961 exception handler volatile if it is of variable size.
17962 (process_type): Remove bypass for types coming from a limited_with
17964 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17965 actual, convert the corresponding gnu_actual to the real destination
17966 type when necessary.
17967 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17968 originally TREE_READONLY but whose elaboration cannot be performed
17970 Part of fix for F504-021.
17971 (tree_transform, subprogram cases): Change loops on formal parameters to
17972 call new Einfo function First_Formal_With_Extras.
17973 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17974 stemming from type conversion for the lhs.
17975 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17976 number of bits per unit for components of records.
17977 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17978 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17979 with At_End_Proc after the SJLJ EH cleanup.
17980 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17982 (elaborate_all_entities): Do not retest type_annotate_only.
17983 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17984 result type of an abstract subprogram, which may be an itype associated
17985 with an anonymous access result (related to AI-318-02).
17986 (build_global_cdtor): Move to utils.c.
17987 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17988 this choice is not a null tree nor an integer constant.
17989 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17990 on the body of elaboration routines instead of mark_unvisited.
17991 (add_stmt): Do not mark the tree.
17992 (add_decl_expr): Tweak comment.
17993 (mark_unvisited): Delete.
17994 (unshare_save_expr): New static function.
17995 (call_to_gnu): Issue an error when making a temporary around a
17996 procedure call because of non-addressable actual parameter if the
17997 type of the formal is by_reference.
17998 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17999 after building the elaboration routine.
18001 2006-10-31 Bob Duff <duff@adacore.com>
18003 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
18004 as finalization-started, so we can raise Program_Error on 'new'.
18006 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
18007 collection has already started.
18009 * s-finimp.ads (Collection_Finalization_Started): Added new special
18010 flag value for indicating that a collection's finalization has started.
18012 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
18013 create a task whose master has already waited for dependent tasks.
18015 2006-10-31 Robert Dewar <dewar@adacore.com>
18017 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
18019 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
18020 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
18021 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
18022 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
18023 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
18024 a-except-2005.ads: Add pragma Preelaborable_Warning
18026 2006-10-31 Robert Dewar <dewar@adacore.com>
18027 Jose Ruiz <ruiz@adacore.com>
18029 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
18031 * ali.adb (Get_Name): Properly handle scanning of wide character names
18032 encoded with brackets notation.
18033 (Known_ALI_Lines): Add S lines to this list.
18034 (Scan_ALI): Acquire S (priority specific dispatching) lines.
18035 New flag Elaborate_All_Desirable in unit table
18037 * ali.ads (Priority_Specific_Dispatching): Add this range of
18038 identifiers to be used for Priority_Specific_Dispatching table entries.
18039 (ALIs_Record): Add First_Specific_Dispatching and
18040 Last_Specific_Dispatching that point to the first and last entries
18041 respectively in the priority specific dispatching table for this unit.
18042 (Specific_Dispatching): Add this table for storing each S (priority
18043 specific dispatching) line encountered in the input ALI file.
18044 New flag Elaborate_All_Desirable in unit table
18046 * bcheck.adb: (Check_Configuration_Consistency): Add call to
18047 Check_Consistent_Dispatching_Policy.
18048 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
18049 verifying that the use of Priority_Specific_Dispatching,
18050 Task_Dispatching_Policy, and Locking_Policy is consistent across the
18053 * bindgen.adb: (Public_Version_Warning): function removed.
18054 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
18055 required information from ALI files in order to initialize the table
18056 containing the specific dispatching policy.
18057 (Gen_Adainit_Ada): Generate the variables required for priority specific
18058 dispatching entries (__gl_priority_specific_dispatching and
18059 __gl_num_specific_dispatching).
18060 (Gen_Adainit_C): Generate the variables required for priority specific
18061 dispatching entries (__gl_priority_specific_dispatching and
18062 __gl_num_specific_dispatching).
18063 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
18065 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
18066 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
18068 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
18069 a call to gnat_set_globals.
18070 Generate a string containing settings from
18071 Priority_Specific_Dispatching pragma entries.
18072 (Gen_Object_Files_Options): Do not include the runtime libraries when
18073 pragma No_Run_Time is specified.
18075 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
18076 consistency with s-intman-posix.adb.
18077 (__gnat_error_handler, case FreeBSD): Account for the fact that the
18078 handler is installed with SA_SIGINFO.
18079 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
18080 FreeBSD ZCX support, copied from Linux version.
18081 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
18082 sigfillset, and sigemptyset so the routines defined by MaRTE.
18083 (__gl_priority_specific_dispatching): Add this variable that stores the
18084 string containing priority specific dispatching policies in the
18086 (__gl_num_specific_dispatching): Add this variable that indicates the
18087 highest priority for which a priority specific dispatching pragma
18089 (__gnat_get_specific_dispatching): Add this routine that returns the
18090 priority specific dispatching policy, as set by a
18091 Priority_Specific_Dispatching pragma appearing anywhere in the current
18092 partition. The input argument is the priority number, and the result
18093 is the upper case first character of the policy name.
18094 (__gnat_set_globals): Now a dummy function.
18095 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
18096 mechargs instead of sigargs, as the latter can be retrieved from the
18097 former and sigargs is not what we want on ia64.
18098 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
18100 (__gnat_adjust_context_for_raise, ia64-vms): New function.
18101 (tasking_error): Remove unused symbol.
18102 (_abort_signal): Move this symbol to the IRIX specific part since this
18103 is the only target that uses this definition.
18104 (Check_Abort_Status): Move this symbol to the IRIX specific part since
18105 this is the only target that uses this definition.
18106 (Lock_Task): Remove unused symbol.
18107 (Unlock_Task): Remove unused symbol.
18109 * lib-writ.adb (Write_ALI): Output new S lines for
18110 Priority_Specific_Dispatching pragmas.
18111 Implement new flag BD for elaborate body desirable
18113 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
18114 (Specific_Dispatching): Add this table for storing the entries
18115 corresponding to Priority_Specific_Dispatching pragmas.
18116 Document new BD flag for elaborate body desirable
18118 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
18121 2006-10-31 Javier Miranda <miranda@adacore.com>
18123 * a-tags.ads, a-tags.adb:
18124 (Predefined_DT): New function that improves readability of the code.
18125 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
18126 Inherit_DT): Use the new function Predefined_DT to improve code
18128 (Register_Interface_Tag): Update assertion.
18129 (Set_Interface_Table): Update assertion.
18130 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
18131 determining progenitor interfaces in Tags.
18132 (Inherit_CPP_DT): New subprogram.
18134 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
18135 analysis of the thunk code.
18136 (Expand_Interface_Conversion): Handle run-time conversion of
18137 access to class wide types.
18138 (Expand_Dispatching_Call): When generating the profile for the
18139 subprogram itype for a dispatching operation, properly terminate the
18140 formal parameters chaind list (set the Next_Entity of the last formal
18142 (Collect_All_Interfaces): Removed. This routine has been moved to
18143 sem_util and renamed as Collect_All_Abstract_Interfaces.
18144 (Set_All_DT_Position): Hidden entities associated with abstract
18145 interface primitives are not taken into account in the check for
18146 3.9.3(10); this check is done with the aliased entity.
18147 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
18148 interfacing with CPP by default.
18149 (Expand_Interface_Conversion): Add missing support for static conversion
18150 from an interface to a tagged type.
18151 (Collect_All_Interfaces): Add new out formal containing the list of
18152 abstract interface types to cleanup the subprogram Make_DT.
18153 (Make_DT): Update the code to generate the table of interfaces in case
18154 of abstract interface types.
18155 (Is_Predefined_Dispatching_Alias): New function that returns true if
18156 a primitive is not a predefined dispatching primitive but it is an
18157 alias of a predefined dispatching primitive.
18158 (Make_DT): If the ancestor of the type is a CPP_Class and we are
18159 compiling under full ABI compatibility mode we avoid the generation of
18160 calls to run-time services that fill the dispatch tables because under
18161 this mode we currently inherit the dispatch tables in the IP subprogram.
18162 (Write_DT): Emit an "is null" indication for a null procedure primitive.
18163 (Expand_Interface_Conversion): Use an address as the type of the formal
18164 of the internally built function that handles the case in which the
18165 target type is an access type.
18167 2006-10-31 Robert Dewar <dewar@adacore.com>
18169 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
18171 2006-10-31 Robert Dewar <dewar@adacore.com>
18173 * bindusg.ads, bindusg.adb:
18174 Change to package and rename procedure as Display, which
18175 now ensures that it only outputs usage information once.
18177 2006-10-31 Jose Ruiz <ruiz@adacore.com>
18179 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
18182 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
18185 2006-10-31 Robert Dewar <dewar@adacore.com>
18186 Ed Schonberg <schonberg@adacore.com>
18188 * treepr.adb: Use new subtype N_Membership_Test
18190 * checks.ads, checks.adb: Add definition for Validity_Check
18191 (Range_Or_Validity_Checks_Suppressed): New function
18192 (Ensure_Valid): Test Validity_Check suppressed
18193 (Insert_Valid_Check): Test Validity_Check suppressed
18194 (Insert_Valid_Check): Preserve Do_Range_Check flag
18195 (Validity_Check_Range): New procedure
18196 (Expr_Known_Valid): Result of membership test is always valid
18197 (Selected_Range_Checks): Range checks cannot be applied to discriminants
18198 by themselves. Disabling those checks must also be done for task types,
18199 where discriminants may be used for the bounds of entry families.
18200 (Apply_Address_Clause_Check): Remove side-effects if address expression
18201 is non-static and is not the name of a declared constant.
18202 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
18203 Code cleanup and new error messages.
18204 (Enable_Range_Check): Test for some cases of suppressed checks
18205 (Generate_Index_Checks): Suppress index checks if index checks are
18206 suppressed for array object or array type.
18207 (Apply_Selected_Length_Checks): Give warning for compile-time detected
18208 length check failure, even if checks are off.
18209 (Ensure_Valid): Do not generate a check on an indexed component whose
18210 prefix is a packed boolean array.
18211 * checks.adb: (Alignment_Checks_Suppressed): New function
18212 (Apply_Address_Clause_Check): New procedure, this is a completely
18213 rewritten replacement for Apply_Alignment_Check
18214 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
18215 we request a discriminal value only in case of discriminants.
18216 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
18217 assignments where the target subtype is unconstrained and the target
18218 object is a parameter or dereference (other aliased cases are known
18219 to be unconstrained).
18221 2006-10-31 Robert Dewar <dewar@adacore.com>
18223 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
18224 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
18225 vms_conv.adb: Fix bad table increment values (much too small)
18227 * table.adb (Realloc): Make sure we get at least some new elements
18228 Defends against silly small values for table increment
18230 2006-10-31 Robert Dewar <dewar@adacore.com>
18231 Ed Schonberg <schonberg@adacore.com>
18232 Bob Duff <duff@adacore.com>
18234 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
18235 entities. Move other fields around to make this possible
18236 (Is_Derived_Type): Add missing call to Is_Type.
18237 (Extra_Formals): New function for subprograms, entries, subprogram
18239 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
18240 (First_Formal_With_Extras): New function for subprogs, entries, subp
18242 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
18243 Add node information for E_Return_Statement.
18244 (Elaborate_Body_Desirable): New flag
18245 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
18246 to be Is_Inherently_Limited_Type, because return-by-reference has
18247 no meaning in Ada 2005.
18248 (E_Return_Statement): New entity kind.
18249 (Return_Applies_To): Field of E_Return_Statement.
18250 (Is_Return_Object): New flag in object entities.
18251 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
18252 (Must_Have_Preelab_Init): New flag
18253 (Known_To_Have_Preelab_Init): New flag
18254 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
18255 (Is_Visible_Formal): New flag on entities in formal packages.
18256 (Low_Bound_Known): New flag
18257 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
18259 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
18260 output when Id is an incomplete subtype.
18262 2006-10-31 Robert Dewar <dewar@adacore.com>
18264 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
18265 Avoid abbreviation Creat
18266 (Finalize): List all sources in extended mail source if -gnatl
18268 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
18269 (Finalize): Implement new -gnatl=xxx switch to output listing to file
18270 (Set_Specific_Warning_On): New procedure
18271 (Set_Specific_Warning_Off): New procedure
18272 Add implementation of new insertion \\
18273 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
18274 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
18276 (Error_Msg_Internal): Make sure that we set Last_Killed to
18277 True when a message from another package is suppressed.
18278 Implement insertion character ~ (insert string)
18279 (First_Node): Minor adjustments to get better placement.
18282 Implement new -gnatl=xxx switch to output listing to file
18285 Implement new -gnatl=xxx switch to output listing to file
18287 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
18288 (Commands_To_Stdout): New flag
18289 Implement new -gnatl=xxx switch to output listing to file
18290 New switch Dump_Source_Text
18291 (Warn_On_Deleted_Code): New warning flag for -gnatwt
18292 Define Error_Msg_Line_Length
18293 (Warn_On_Assumed_Low_Bound): New switch
18295 * osint.ads, osint.adb
18296 (Normalize_Directory_Name): Fix bug.
18297 Implement new -gnatl=xxx switch to output listing to file
18298 (Concat): Removed, replaced by real concatenation
18299 Make use of concatenation now allowed in compiler
18300 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
18301 we find the 'lib' or 'bin' directory even when the tool has been
18302 invoked with a relative path.
18303 (Executable_Name): New function taking string parameters.
18305 * osint-c.ads, osint-c.adb:
18306 Implement new -gnatl=xxx switch to output listing to file
18308 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
18311 Implement new -gnatl=xxx switch to output listing to file
18312 Recognize new -gnatL switch
18313 (no longer keep in old warning about old style usage)
18314 Use concatenation to simplify code
18315 Recognize -gnatjnn switch
18316 (Scan_Front_End_Switches): Clean up handling of -gnatW
18317 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
18319 2006-10-31 Robert Dewar <dewar@adacore.com>
18321 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
18322 (Set_Specific_Warning_Off): New procedure
18323 (Warning_Specifically_Suppressed): New function
18324 (Validate_Specific_Warnings): New procedure
18325 (Output_Msg_Text): Complete rewrite to support -gnatjnn
18327 * err_vars.ads: Implement insertion character ~ (insert string)
18329 2006-10-31 Bob Duff <duff@adacore.com>
18330 Ed Schonberg <schonberg@adacore.com>
18332 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
18333 the parent part is a build-in-place function call, generate assignments.
18334 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
18335 are build-in-place function calls.
18336 (Replace_Self_Reference): New subsidiary of
18337 Make_OK_Assignment_Statement, to replace an access attribute that is a
18338 self-reference into an access to the appropriate component of the
18339 target object. Generalizes previous mechanism to handle self-references
18340 nested at any level.
18341 (Is_Self_Referential_Init): Remove, not needed.
18342 (Is_Self_Referential_Init): New predicate to simplify handling of self
18343 referential components in record aggregates.
18344 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
18345 check for presence of entity before checking for self-reference.
18346 (Has_Default_Init_Comps): Return True if a component association is a
18347 self-reference to the enclosing type, which can only come from a
18348 default initialization.
18349 (Make_OK_Assignment_Statement): If the expression is of the form
18350 Typ'Acc, where Acc is an access attribute, the expression comes from a
18351 default initialized self-referential component.
18352 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
18353 that has been derived from several abstract interfaces we must also
18354 initialize the tags of the secondary dispatch tables.
18356 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18357 Thomas Quinot <quinot@adacore.com>
18358 Javier Miranda <miranda@adacore.com>
18359 Robert Dewar <dewar@adacore.com>
18362 (Expand_Access_To_Protected_Op): If the context indicates that an access
18363 to a local operation may be transfered outside of the object, create an
18364 access to the wrapper operation that must be used in an external call.
18365 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
18366 target, pass the Valid attribute applied to a floating-point prefix on
18367 to the back end without expansion.
18368 (Storage_Size): Use the new run-time function Storage_Size to retrieve
18369 the allocated storage when it is specified by a per-object expression.
18370 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
18371 Nothing to do here, the attribute has been rewritten during semantic
18373 (Expand_Attribute_Reference): Handle expansion of the new Priority
18375 (Find_Fat_Info): Handle case of universal real
18376 (Expand_Access_To_Protected_Op): Fix use of access to protected
18377 subprogram from inside the body of a protected entry.
18378 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
18379 'Access and 'Unrestricted_Access, to transform the attribute reference
18380 into a fat pointer.
18381 (Is_Constrained_Aliased_View): New predicate to help determine whether a
18382 subcomponent's enclosing variable is aliased with a constrained subtype.
18383 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
18384 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
18385 an aliased prefix must be known to be constrained in order to use True
18386 for the attribute value, and now it's possible for some aliased views
18387 to be unconstrained.
18389 2006-10-31 Robert Dewar <dewar@adacore.com>
18391 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
18392 (Expand_Entity_Reference): Correct error of not handling subprogram
18393 formals in current_value processing.
18395 2006-10-31 Javier Miranda <miranda@adacore.com>
18396 Robert Dewar <dewar@adacore.com>
18397 Ed Schonberg <schonberg@adacore.com>
18398 Gary Dismukes <dismukes@adacore.com>
18400 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
18401 register in the final list objects containing class-wide interfaces;
18402 otherwise we incorrectly register the tag of the interface in the final
18404 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
18405 generate the wrapper if the parent primitive is abstract. This is
18406 required to report the correct error message.
18407 (Expand_N_Subtype_Indication): Do validity checks on range
18408 (Clean_Task_Names): If an initialization procedure includes a call to
18409 initialize a task (sub)component, indicate that the procedure will use
18410 the secondary stack.
18411 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
18412 compatibility for interfacing with CPP by default.
18413 (Expand_N_Object_Declaration): Only build an Adjust call when the
18414 object's type is a nonlimited controlled type.
18415 * exp_ch3.adb: Add with and use of Exp_Ch6.
18416 (Expand_N_Object_Declaration): Check for object initialization that is a
18417 call to build-in-place function and apply Make_Build_In_Place_Call_In_
18418 Object_Declaration to the call.
18419 (Freeze_Type): When the designated type of an RACW was not frozen at the
18420 point where the RACW was declared, validate the primitive operations
18421 with respect to E.2.2(14) when it finally is frozen.
18422 (Build_Initialization_Call,Expand_Record_Controller): Rename
18423 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
18424 return-by-reference has no meaning in Ada 2005.
18425 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
18426 to register tag of the immediate ancestor interfaces in the
18427 run-time structure.
18428 (Init_Secondary_Tags): Moved to the specification to allow the
18429 initialization of extension aggregates with abstract interfaces.
18430 (Build_Master_Renaming): Make public, for use by function declarations
18431 whose return type is an anonymous access type.
18432 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
18433 Insert_List_Before_And_Analyze after the generation of the specs
18434 associated with null procedures.
18435 (Expand_Tagged_Root): Update documentation in its specification.
18436 (Init_Secondary_Tags): Update documentation.
18437 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
18438 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
18439 then generate code to inherit the contents of the dispatch table
18440 directly from the ancestor.
18441 (Expand_Record_Controller): Insert controller component after tags of
18442 implemented interfaces.
18443 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
18444 create null procedure overridings when null procedures are inherited
18446 (Make_Null_Procedure_Specs): New procedure to generate null procedure
18447 declarations for overriding null primitives inherited from interfaces.
18448 (Is_Null_Interface_Procedure): New function in
18449 Make_Null_Procedure_Specs.
18450 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
18451 immediate ancestor of a tagged type is an abstract interface type we
18452 must generate the specification of the predefined primitives associated
18453 with controlled types (because the dispatch table of the ancestor is
18454 null and hence these entries cannot be inherited). This is required to
18455 elaborate well the dispatch table.
18457 2006-10-31 Javier Miranda <miranda@adacore.com>
18458 Ed Schonberg <schonberg@adacore.com>
18459 Bob Duff <duff@adacore.com>
18460 Gary Dismukes <dismukes@adacore.com>
18461 Robert Dewar <dewar@adacore.com>
18463 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
18465 (Expand_N_In): Do validity checks on range
18466 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
18467 (Expand_N_Allocator): For "new T", if the object is constrained by
18468 discriminant defaults, allocate the right amount of memory, rather than
18469 the maximum for type T.
18470 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
18471 when the allocator is initialized by a build-in-place call, since the
18472 allocator is already rewritten as a reference to the function result,
18473 and this prevents an unwanted duplication of the function call.
18474 Add with and use of Exp_Ch6.
18475 (Expand_Allocator_Expresssion): Check for an allocator whose expression
18476 is a call to build-in-place function and apply
18477 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
18478 untagged designated types).
18479 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
18480 optimization if source or target is biased.
18481 (Expand_N_Allocator): Add comments for case of an allocator within a
18482 function that returns an anonymous access type designating tasks.
18483 (Expand_N_Allocator): apply discriminant checks for access
18484 discriminants of anonymous access types (AI-402, AI-416)
18486 2006-10-31 Bob Duff <duff@adacore.com>
18487 Robert Dewar <dewar@adacore.com>
18488 Gary Dismukes <dismukes@adacore.com>
18489 Ed Schonberg <schonberg@adacore.com>
18491 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
18493 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
18494 (Expand_N_Assignment_Statement): Call
18495 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
18496 build-in-place function call. Currently, this can happen only for
18497 assignments that come from aggregates.
18498 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18499 in order to alleviate the upward compatibility introduced by AI-318.
18500 (Expand_N_Extended_Return_Statement): Add support for handling the
18501 return object as a build-in-place result.
18502 (Expand_Non_Function_Return): Implement simple return statements nested
18503 within an extended return.
18504 (Enable_New_Return_Processing): Turn on the new processing of return
18506 (Expand_Non_Function_Return): For a return within an extended return,
18507 don't raise Program_Error, because Sem_Ch6 now gives a warning.
18508 (Expand_N_Extended_Return_Statement): Implement AI-318
18509 (Expand_Simple_Function_Return): Ditto.
18510 (Expand_N_If_Statement): Handle new -gnatwt warning
18511 (Expand_N_Case_Statement): Handle new -gnatwt warning
18512 (Expand_N_Assignment): Handle assignment to the Priority attribute of
18513 a protected object.
18514 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
18515 validity checking of assignments to elementary record components.
18516 (Expand_N_Return_Statement): return Class Wide types on the secondary
18517 stack independantly of their controlled status since with HIE runtimes,
18518 class wide types are not potentially controlled anymore.
18520 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
18523 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
18524 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
18525 it expects a block, procedure, or task. The return statement will get
18526 turned into a block, and Expand_Cleanup_Actions will happen then.
18528 2006-10-31 Robert Dewar <dewar@adacore.com>
18529 Ed Schonberg <schonberg@adacore.com>
18530 Bob Duff <duff@adacore.com>
18531 Gary Dismukes <dismukes@adacore.com>
18533 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
18535 (Expand_Inlined_Call): Tagged types are by-reference types, and
18536 therefore should be replaced by a renaming declaration in the expanded
18537 body, as is done for limited types.
18538 (Expand_Call): If this is a call to a function with dispatching access
18539 result, propagate tag from context.
18540 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
18542 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
18543 build-in-place when the right-hand side of an assignment is a
18544 build-in-place function call.
18545 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
18546 of the explicit dereference of the allocator to the result subtype of
18547 the build-in-place function. This is needed to satisfy type checking
18548 in cases where the caller's return object is created by an allocator for
18549 a class-wide access type and the type named in the allocator is a
18551 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
18552 conversion of the reference to the declared object to the result subtype
18553 of the build-in-place function. This is needed to satisfy type checking
18554 in cases where the declared object has a class-wide type. Also, in the
18555 class-wide case, change the type of the object entity to the specific
18556 result subtype of the function, to avoid passing a class-wide object
18557 without explicit initialization to the back end.
18558 (Register_Interface_DT_Entry): Moved outside the body of
18559 Freeze_Subprogram because this routine is now public; it is called from
18560 Check_Dispatching_Overriding to handle late overriding of abstract
18561 interface primitives.
18562 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
18563 adding an implicit access actual on a call to a build-in-place function.
18564 (Expand_Actuals): Test for an actual parameter that is a call to a
18565 build-in-place function and apply
18566 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
18567 (Is_Build_In_Place_Function): New function to determine whether an
18568 entity is a function whose calls should be handled as build-in-place.
18569 (Is_Build_In_Place_Function_Call): New function to determine whether an
18570 expression is a function call that should handled as build-in-place.
18571 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
18572 calls to build-in-place functions as the initialization of an allocator.
18573 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
18574 handling calls to build-in-place functions in contexts that do not
18575 involve init of a separate object (for example, actuals of subprogram
18577 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
18578 handling calls to build-in-place functions as the initialization of an
18579 object declaration.
18580 (Detect_Infinite_Recursion): Add explicit parameter Process to
18581 instantiation of Traverse_Body to avoid unreferenced warning.
18582 (Check_Overriding_Inherited_Interfaces): Removed.
18583 (Register_Interface_DT_Entry): Code cleanup.
18584 (Register_Predefined_DT_Entry): Code cleanup.
18585 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
18586 inlined statements if within a transient scope.
18587 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
18588 formal parameters with occurrences of actuals in inlined body, establish
18589 visibility on the proper view of the actual's subtype for the body's
18591 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
18592 compatibility mode and we have an imported CPP subprogram because
18593 for now we assume that imported CPP primitives correspond with
18594 objects whose constructor is in the CPP side (and therefore we
18595 don't need to generate code to register them in the dispatch table).
18596 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
18597 aligned selected component.
18598 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
18599 the actual of an in-mode parameter is a type conversion.
18600 (Expand_Actuals): If the call does not come from source and the actual
18601 is potentially misaligned, let gigi handle it rather than rejecting the
18602 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
18603 Class Wide types as returning by reference independantly of their
18604 controlled status since with HIE runtimes class wide types are not
18605 potentially controlled anymore.
18607 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18609 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
18610 references that are private components of the protected object.
18611 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
18612 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
18613 instantiation to deal with warnings.
18614 (Initialize_Protection): If expression for priority is non-static, use
18615 System_Priority as its expected type, in case the expression has not
18618 2006-10-31 Robert Dewar <dewar@adacore.com>
18620 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
18621 initialization of Homonym_Len.
18622 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
18623 names from fully qualified name. Fixes problem of duplicate
18624 external names differing only in the presence of such a block name.
18626 2006-10-31 Thomas Quinot <quinot@adacore.com>
18627 Pablo Oliveira <oliveira@adacore.com>
18629 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
18630 subprogram Ids, even if they are not yet assigned.
18631 (Build_Subprogram_Id): It is now this function that will take care of
18632 calling Assign_Subprogram_Ids if necessary.
18633 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
18634 should be done only once they are assigned.
18635 (Build_From_Any_Function, case of tagged types): Add missing call to
18637 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
18638 type for an RACW type.
18639 (Add_RACW_Features): When processing an RACW declaration for which the
18640 designated type is already frozen, enforce E.2.2(14) rules immediately.
18641 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
18642 special reordering of controlling formals.
18644 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
18645 associated stub type for an RACW type.
18647 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18649 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
18650 fixed-point operations in an integer context, i.e. as operands of a
18651 conversion to an integer type, indicate that result must be rounded.
18653 2006-10-31 Robert Dewar <dewar@adacore.com>
18655 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
18656 cases, pass the encoding method, since it is now required by the run
18659 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
18660 assumption that Str'First = 1.
18661 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
18662 it on to the Value_Wide_Wide_Character call.
18663 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
18664 properly handles a string of the form quote-encoded_wide_char-quote.
18666 * s-wchcnv.adb: Minor reformatting
18668 2006-10-31 Javier Miranda <miranda@adacore.com>
18670 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
18671 run-time membership test to ensure that the constructed object
18672 implements the target abstract interface.
18674 2006-10-31 Robert Dewar <dewar@adacore.com>
18676 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
18677 Machine_Attribute pragma internally to implement the user pragma.
18678 Add processing for pragma Interface so that it is now completely
18679 equivalent to pragma Import.
18681 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
18682 so that it can be applied to all entities, including record components
18683 and enumeration literals.
18684 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
18685 priority ranges are correct, verify compatibility against task
18686 dispatching and locking policies, and if everything is correct an entry
18687 is added to the table containing priority specific dispatching entries
18688 for this compilation unit.
18689 (Delay_Config_Pragma_Analyze): Delay processing
18690 Priority_Specific_Dispatching pragmas because when processing the
18691 pragma we need to access run-time data, such as the range of
18692 System.Any_Priority.
18693 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
18694 Allow pragma Unreferenced as a context item
18695 Add pragma Preelaborable_Initialization
18696 (Analyze_Pragma, case Interface): Interface is extended so that it is
18697 now syntactically and semantically equivalent to Import.
18698 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
18699 insertion characters.
18700 Add handling for Pragma_Wide_Character_Encoding
18701 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
18702 never supercedes a real restriction, and that a real restriction
18703 always supercedes a warning.
18704 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
18707 2006-10-31 Bob Duff <duff@adacore.com>
18708 Ed Schonberg <schonberg@adacore.com>
18709 Robert Dewar <dewar@adacore.com>
18711 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
18712 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
18713 Is_Inherently_Limited_Type, because return-by-reference has no meaning
18715 (Find_Node_To_Be_Wrapped): Use new method of determining the result
18716 type of the function containing a return statement, because the
18717 Return_Type field was removed. We now use the Return_Applies_To field.
18719 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
18720 (Build_Task_Image_Decl): If procedure is not called from an
18721 initialization procedure, indicate that function that builds task name
18722 uses the sec. stack. Otherwise the enclosing initialization procedure
18723 will carry the indication.
18724 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
18725 N_Object_Declaration instead.
18726 (Kill_Dead_Code): New interface to implement -gnatwt warning for
18727 conditional dead code killed, and change implementation accordingly.
18728 (Insert_Actions): Add N_Return_Object_Declaration case.
18729 Correct comment to mention N_Extension_Aggregate node.
18730 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
18731 attempts to save information for global variables which cannot be
18733 (Get_Current_Value_Condition): Handle conditions the other way round
18734 (constant on left). Also handle right operand of AND and AND THEN
18735 (Set_Current_Value_Condition): Corresponding changes
18736 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
18737 (Get_Current_Value_Condition): Handle simple boolean operands
18738 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
18739 (Get_Current_Value_Condition): If the variable reference is within an
18740 if-statement, does not appear in the list of then_statments, and does
18741 not come from source, treat it as being at unknown location.
18742 (Get_Current_Value_Condition): Enhance to allow while statements to be
18743 processed as well as if statements.
18744 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
18746 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
18747 of loop. This is safe now that we fixed Kill_Current_Values.
18748 (OK_To_Do_Constant_Replacement): Check whether current scope is
18749 Standard, before examining outer scopes.
18751 2006-10-31 Vincent Celier <celier@adacore.com>
18753 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
18754 When True, apply VMS treatment to children of packages A, G, I and S.
18757 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
18759 2006-10-31 Robert Dewar <dewar@adacore.com>
18760 Ed Schonberg <schonberg@adacore.com>
18762 * freeze.adb: Add handling of Last_Assignment field
18763 (Warn_Overlay): Supply missing continuation marks in error msgs
18764 (Freeze_Entity): Add check for Preelaborable_Initialization
18766 * g-comlin.adb: Add Warnings (Off) to prevent new warning
18768 * g-expect.adb: Add Warnings (Off) to prevent new warning
18770 * lib-xref.adb: Add handling of Last_Assignment field
18771 (Generate_Reference): Centralize handling of pragma Obsolescent here
18772 (Generate_Reference): Accept an implicit reference generated for a
18773 default in an instance.
18774 (Generate_Reference): Accept a reference for a node that is not in the
18775 main unit, if it is the generic body corresponding to an subprogram
18778 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
18780 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
18782 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
18784 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
18785 use clauses, to avoid messages on packages used to qualify, and also
18786 to avoid messages from obsolescent units.
18787 (Warn_On_Useless_Assignments): Don't generate messages for imported
18788 and exported variables.
18789 (Warn_On_Useless_Assignments): New procedure
18790 (Output_Obsolescent_Entity_Warnings): New procedure
18791 (Check_Code_Statement): New procedure
18793 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
18794 Change name Is_Ada_2005 to Is_Ada_2005_Only
18795 (Last_Assignment): New field for useless assignment warning
18797 2006-10-31 Olivier Hainque <hainque@adacore.com>
18799 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
18800 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
18802 2006-10-31 Bob Duff <duff@adacore.com>
18803 Robert Dewar <dewar@adacore.com>
18804 Ed Schonberg <schonberg@adacore.com>
18806 * g-awk.adb (Default_Session, Current_Session): Compile this file in
18807 Ada 95 mode, because it violates the new rules for AI-318.
18809 * g-awk.ads: Use overloaded subprograms in every case where we used to
18810 have a default of Current_Session. This makes the code closer to be
18811 correct for both Ada 95 and 2005.
18813 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
18814 code, relying on the fact that the compiler generates a warning
18815 instead of an error in -gnatg mode.
18817 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
18818 E_Return_Statement entity kind.
18819 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
18821 * par.adb (P_Interface_Type_Definition): Addition of one formal to
18822 report an error if the reserved word abstract has been previously found.
18823 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
18825 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
18826 parenthesized range attribute usage
18827 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
18829 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
18830 in the syntax for extended_return_statement. This is not in the latest
18831 RM, but the ARG is expected to issue an AI allowing this.
18832 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
18833 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
18834 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
18835 P_Return_Statement): Parse the new syntax for extended_return_statement.
18837 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
18838 Output_End_Missing): Add error-recovery code for the new
18839 extended_return_statement syntax; that is, the new E_Return entry on
18842 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
18843 limited to nonlimited, because otherwise we violate the new Ada 2005
18844 rules about returning limited types in function Create_AST_Handler in
18847 * sem.adb (Analyze): Add cases for new node kinds
18848 N_Extended_Return_Statement and N_Return_Object_Declaration.
18850 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
18851 type is in the same category as type of context before applying check,
18852 to prevent anomalies in instantiations.
18853 (Resolve_Aggregate): Remove test for limited components in aggregates.
18854 It's unnecessary in Ada 95, because if it has limited components, then
18855 it must be limited. It's wrong in Ada 2005, because limited aggregates
18857 (Resolve_Record_Aggregate): Move check for limited types later, because
18858 OK_For_Limited_Init requires its argument to have been resolved.
18859 (Get_Value): When copying the component default expression for a
18860 defaulted association in an aggregate, use the sloc of the aggregate
18861 and not that of the original expression, to prevent spurious
18862 elaboration errors, when the expression includes function calls.
18863 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
18864 were missing. We also didn't handle qualified expressions. Now also
18865 allow function calls. Use new common routine OK_For_Limited_Init.
18866 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
18867 with space can upper case letter).
18869 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
18870 Has_Static_Discriminants flag
18871 (Record_Type_Declaration): Diagnose an attempt to declare an interface
18872 type with discriminants.
18873 (Process_Range_Expr_In_Decl): Do validity checks on range
18874 (Build_Discriminant_Constraints): Use updated form of
18875 Denotes_Discriminant.
18876 (Process_Subtype): If the subtype is a private subtype whose full view
18877 is a concurrent subtype, introduce an itype reference to prevent scope
18879 (Build_Derived_Record_Type, Collect_Interface_Primitives,
18880 Record_Type_Declaration): The functionality of the subprograms
18881 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
18882 is now performed by a single routine.
18883 (Build_Derived_Record_Type): If the type definition includes an explicit
18884 indication of limitedness, then the type must be marked as limited here
18885 to ensure that any access discriminants will not be treated as having
18886 a local anonymous access type.
18887 (Check_Abstract_Overriding): Issue a detailed error message when an
18888 abstract subprogram was not overridden due to incorrect mode of its
18890 (Analyze_Private_Extension_Declaration): Add support for the analysis of
18891 synchronized private extension declarations. Verify that the ancestor is
18892 a limited or synchronized interface or in the generic case, the ancestor
18893 is a tagged limited type or synchronized interface and all progenitors
18894 are either limited or synchronized interfaces.
18895 Derived_Type_Declaration): Check for presence of private extension when
18896 dealing with synchronized formal derived types.
18897 Process_Full_View): Enchance the check done on the usage of "limited" by
18898 testing whether the private view is synchronized.
18899 Verify that a synchronized private view is completed by a protected or
18901 (OK_For_Limited_Init_In_05): New function.
18902 (Analyze_Object_Declaration): Move check for limited types later,
18903 because OK_For_Limited_Init requires its argument to have been resolved.
18904 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18905 in order to alleviate the upward compatibility introduced by AI-318.
18906 (Constrain_Corresponding_Record): If the constraint is for a component
18907 subtype, mark the itype as frozen, to avoid out-of-scope references to
18908 discriminants in the back-end.
18909 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
18910 this subprogram against wrong sources.
18911 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
18912 discriminant of limited type completed with a protected type, when the
18913 discriminant is used to constrain a private component of the type, and
18914 expansion is disabled.
18915 (Find_Type_Of_Object): Do not treat a return subtype that is an
18916 anonymous subtype as a local_anonymous_type, because its accessibility
18917 level is the return type of the enclosing function.
18918 (Check_Initialization): In -gnatg mode, turn the error "cannot
18919 initialize entities of limited type" into a warning.
18920 (OK_For_Limited_Init): Return true for generated nodes, since it
18921 sometimes violates the legality rules.
18922 (Make_Incomplete_Declaration): If the type for which an incomplete
18923 declaration is created happens to be the currently visible entity,
18924 preserve the homonym chain when removing it from visibility.
18925 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
18926 inherited subprograms.
18927 (Access_Definition): If this is an access to function that is the return
18928 type of an access_to_function definition, context is a type declaration
18929 and the scope of the anonymous type is the current one.
18930 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
18931 incomplete subtype to the set of private dependents of the original
18933 (Constrain_Discriminated_Type): Emit an error message whenever an
18934 incomplete subtype is being constrained.
18935 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
18936 corresponding subtype of the full view of the original incomplete type.
18937 (Check_Incomplete): Properly detect invalid usage of incomplete types
18940 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18942 * g-catiio.ads, g-catiio.adb (Value): New function.
18943 Given an input String, try and parse a valid Time value.
18945 2006-10-31 Vincent Celier <celier@adacore.com>
18947 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
18948 Integer_Address arithmetic, as in Set_Valid.
18950 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18951 Robert Dewar <dewar@adacore.com>
18953 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18954 handling executable extension manually and duplicating code.
18956 * make.adb: Implement new -S switch
18957 (Gnatmake): Use new function Osint.Executable_Name instead
18958 of handling executable extension manually.
18960 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18961 is specified, the executable name ends with this suffix.
18962 Take advantage of Osint.Executable_Name instead of duplicating code.
18964 * switch-m.adb: Recognize new gnatmake -S switch
18966 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18968 (Get_Target_Parameters): Set Executable_Extension_On_Target if
18971 * makeusg.adb: Add line for gnatmake -S switch
18973 2006-10-31 Vincent Celier <celier@adacore.com>
18975 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18976 call it with -static-libgcc, as there are some platforms, such as
18977 Darwin, where one of these two switches is compulsory to link.
18979 2006-10-31 Vincent Celier <celier@adacore.com>
18981 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18982 instead of ADA_PROJECT_PATH, for the project path.
18983 (Gnatls): When displaying the project path directories, use host dir
18986 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18987 names in the project path, as absolute paths may correspond to
18988 multi-valued VMS logical names.
18990 2006-10-31 Vincent Celier <celier@adacore.com>
18992 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18993 absolute path name.
18994 (Locate_Regular_File): Ditto
18995 (Change_Dir): Remove, no longer used
18996 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18997 on Windows. Get it calling Get_Current_Dir.
18998 (OpenVMS): Remove imported boolean, no longer needed.
18999 (Normalize_Pathname)[VMS]: Do not resolve directory names.
19000 (Pid_To_Integer): New function to convert a Process_Id to Integer
19002 2006-10-31 Thomas Quinot <quinot@adacore.com>
19004 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
19005 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
19007 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
19010 2006-10-31 Robert Dewar <dewar@adacore.com>
19012 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
19013 initial letter o as a zero.
19015 2006-10-31 Robert Dewar <dewar@adacore.com>
19017 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
19019 2006-10-31 Robert Dewar <dewar@adacore.com>
19021 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
19023 (Layout_Variant_Record): Retrieve the discriminants from the entity
19024 rather than from the type definition, because in the case of a full
19025 type for a private type we need to take the discriminants from the
19027 (Layout_Component_List): When applying the Max operator to variants with
19028 a nonstatic size, check whether either operand is static and scale that
19029 operand from bits to storage units before applying Max.
19030 (Layout_Type): In VMS, if a C-convention access type has no explicit
19031 size clause (and does not inherit one in the case of a derived type),
19032 then the size is reset to 32 from 64.
19034 2006-10-31 Vincent Celier <celier@adacore.com>
19036 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
19037 its file has already been loaded, according to the unit being loaded,
19038 not to the current value of Multiple_Unit_Index.
19040 2006-10-31 Thomas Quinot <quinot@adacore.com>
19041 Eric Botcazou <ebotcazou@adacore.com>
19042 Arnaud Charlet <charlet@adacore.com>
19044 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
19045 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
19047 (a-except.o): Pass it to the compiler.
19048 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
19049 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
19050 a-calend-mingw.adb version.
19052 * Makefile.rtl: Added s-dsaser.
19053 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
19054 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
19055 Ada.Dispatching.Round_Robin.
19056 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
19058 * Make-lang.in: Remove all references to gt-ada-decl.h.
19059 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
19061 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
19062 Update dependencies.
19064 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
19066 2006-10-31 Vincent Celier <celier@adacore.com>
19068 * mlib-utl.adb (Initialized): Remove, no longer used
19069 (Initialize): Remove, no longer used
19070 (Ar): If Ar_Exec is null, get the location of the archive builder and,
19071 if there is one, the archive indexer. Fail if the archive builder cannot
19073 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
19076 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19078 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
19079 Process_Body_Clauses): If the context of a body includes a use clause
19080 for P.Q then a with_clause for P in the same body is not redundant,
19081 even if the spec also has a with_clause on P.
19082 Add missing continuation mark to error msg
19083 (Build_Limited_Views): A limited view of a type is tagged if its
19084 declaration includes a record extension.
19085 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
19086 node, even if the subunit has errors. This avoids malfunction by
19087 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
19088 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
19089 generation of obsolescent messages for with statements (cannot do
19090 this too early, or we cannot implement avoiding the messages in the
19091 case of obsolescent units withing obsolescent units).
19092 (Install_Siblings): If the with_clause is on a remote descendant of
19093 an ancestor of the current compilation unit, find whether there is
19094 a sibling child unit that is immediately visible.
19095 (Remove_Private_With_Clauses): New procedure, invoked after completing
19096 the analysis of the private part of a nested package, to remove from
19097 visibility the private with_clauses of the enclosing package
19099 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
19100 now centralized in Generate_Reference.
19101 (Install_Limited_Context_Clauses): Remove superfluous error
19102 message associated with unlimited view visible through use
19103 and renamings. In addition, at the point in which the error
19104 is reported, we add the backslash to the text of the error
19105 to ensure that it is reported as a single error message.
19106 Use new // insertion for some continuation messages
19107 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
19108 to create implicit with_clause for parent unit mentioned in original
19109 limited_with_clause.
19110 (Install_Limited_With_Unit): Set entity of parent identifiers if the
19111 unit is a child unit. For ASIS queries.
19112 (Analyze_Subunit): If the subunit appears within a child unit, make all
19113 ancestor child units directly visible again.
19115 2006-10-31 Robert Dewar <dewar@adacore.com>
19117 * par-ch10.adb (P_Context_Clause): Minor error message fix
19119 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19120 Javier Miranda <miranda@adacore.com>
19122 * par-ch12.adb: Grammar update and cleanup.
19123 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
19124 support for synchronized derived type definitions.
19125 Add the new actual Abstract_Present to every call to
19126 P_Interface_Type_Definition.
19127 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
19128 a formal object declaration with an access definition or a subtype mark
19129 with a null exclusion.
19130 (P_Generic_Association): Handle association with box, and others_choice
19131 with box, to support Ada 2005 partially parametrized formal packages.
19133 2006-10-31 Robert Dewar <dewar@adacore.com>
19134 Javier Miranda <miranda@adacore.com>
19136 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
19137 (P_Type_Declaration): Remove barrier against the reserved word "limited"
19138 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
19139 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
19140 private extensions.
19141 (P_Type_Declaration): Add the new actual Abstract_Present to every call
19142 to P_Interface_Type_Definition.
19143 (P_Interface_Type_Definition): Addition of one formal to report an error
19144 if the reserved word abstract has been previously found.
19145 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
19146 object renaming declaration with an access definition or subtype mark
19147 with a possible null exclusion.
19149 * par-ch9.adb: Minor error msg fix
19151 * par-load.adb: Add missing continuation mark to error msg
19153 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
19155 2006-10-31 Vincent Celier <celier@adacore.com>
19157 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
19158 unknown attribute in unknown package or in package that does not need
19160 (Parse_Package_Declaration): Do not issue warning for unknown package in
19163 2006-10-31 Vincent Celier <celier@adacore.com>
19165 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
19166 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
19169 2006-10-31 Vincent Celier <celier@adacore.com>
19171 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
19172 on VMS, change "__" to '.' before checking the name.
19173 (Record_Ada_Source): Always add the source file name in the list of
19174 of sources, even if it is not the first time, as it is for another
19176 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
19177 dot, instead of replacing only the first '_'.
19179 * prj-part.adb (Parse): Convert project file path to canonical form
19181 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
19182 extended, the project id of the project extending it is recorded in its
19183 data, even when it has already been processed as an imported project.
19185 2006-10-31 Robert Dewar <dewar@adacore.com>
19187 * repinfo.adb (List_Entities): Don't list entities from renaming
19190 2006-10-31 Arnaud Charlet <charlet@adacore.com>
19191 Robert Dewar <dewar@adacore.com>
19193 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
19194 only a restriction warning is active for the given restriction. This is
19195 desirable because we do not want to modify code in the case where only
19197 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
19198 causes overriding of real restrictions.
19199 Take advantage of new No_Restrictions constant.
19201 * raise.h: (__gnat_set_globals): Change profile.
19203 2006-10-31 Arnaud Charlet <charlet@adacore.com>
19205 * rtsfind.adb: Remove s-polint from comment as it exists no more.
19208 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
19209 Move all the entities in obsolete package System.PolyORB_Interface to
19210 System.Partition_Interface.
19211 (RE_Storage_Size): New function in System.Tasking.
19212 (RE_Get_Ceiling): New entity.
19213 (RE_Set_Ceiling): New entity.
19214 (RO_PE_Get_Ceiling): New entity.
19215 (RO_RE_Set_Ceiling): New entity.
19216 (Inherit_CPP_DT): New entity
19218 2006-10-31 Robert Dewar <dewar@adacore.com>
19220 * scng.adb (Scan, case of numeric literal): Better msg for identifier
19221 starting with a digit.
19223 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19224 Thomas Quinot <quinot@adacore.com>
19225 Javier Miranda <miranda@adacore.com>
19226 Gary Dismukes <dismukes@adacore.com>
19228 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
19229 properly an attempt to apply Unchecked_Access to a protected operation.
19230 (OK_Self_Reference): New subprogram to check the legality of an access
19231 attribute whose prefix is the type of an enclosing aggregate.
19232 Generalizes previous mechanism to handle attribute references nested
19233 arbitrarily deep within the aggregate.
19234 (Analyze_Access_Attribute): An access attribute whose prefix is a type
19235 can appear in an aggregate if this is a default-initialized aggregate
19236 for a self-referential type.
19237 (Resolve_Attribute, case Access): Ditto.
19238 Add support for new implementation defined attribute Stub_Type.
19239 (Eval_Attribute, case Attribute_Stub_Type): New case.
19240 (Analyze_Attribute, case Attribute_Stub_Type): New case.
19241 (Stream_Attribute_Available): Implement using new subprogram from
19242 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
19243 Has_Specified_Stream_Attribute flag.
19244 Disallow Storage_Size and Storage_Pool for access to subprogram
19245 (Resolve_Attribute, case 'Access et al): Take into account anonymous
19246 access types of return subtypes in extended return statements. Remove
19247 accessibility checks on anonymous access types when Unchecked_Access is
19249 (Analyze_Attribute): Add support for the use of 'Class to convert
19250 a class-wide interface to a tagged type.
19251 Add support for the attribute Priority.
19252 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
19253 whether the designated type is discriminated with a constrained partial
19254 view and require static matching in that case.
19255 Add local variable Des_Btyp. The Designated_Type
19256 of an access to incomplete subtype is either its non-limited view if
19257 coming from a limited with or its etype if regular incomplete subtype.
19259 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
19260 Fix predicate to identify and allow cases of (expander-generated)
19261 references to tag of designated object of a RACW.
19262 (Validate_Static_Object_Name): In Ada 2005, a formal object is
19263 non-static, and therefore cannot appear as a primary in a preelaborable
19265 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
19266 Has_Read_Write_Attributes.
19267 (Has_Read_Write_Attributes): Reimplement in termes of
19268 Has_Stream_Attribute_Definition.
19269 (Missing_Read_Write_Attributes): When checking component types in a
19270 record, unconditionally call Missing_Read_Write_Attributes recursively
19271 (remove guard checking for Is_Record_Type / Is_Access_Type).
19273 2006-10-31 Robert Dewar <dewar@adacore.com>
19275 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
19276 useless assignments here and conditionalize it on absence of exception
19278 (Analyze_Exception_Handlers): Small code reorganization of error
19279 detection code, for new handling of formal packages.
19281 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19282 Hristian Kirtchev <kirtchev@adacore.com>
19284 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
19285 that has been constant-folded, preserve information of original tree,
19287 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
19288 generated private extension declaration if the formal derived type is
19289 synchronized. Carry synchronized present over to the generated private
19291 (Validate_Derived_Type_Instance): Ensure that the actual of a
19292 synchronized formal derived type is a synchronized tagged type.
19293 (Instantiate_Formal_Package): When creating the instantiation used to
19294 validate the actual package of a formal declared without a box, check
19295 whether the formal itself depends on a prior actual.
19296 (Instantiate_Formal_Subprogram): Create new entities for the defining
19297 identifiers of the formals in the renaming declaration, for ASIS use.
19298 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
19299 a renaming declaration or a subtype declaration for an actual in an
19300 instance, capture location information of declaration in generic, for
19302 (Instantiate_Formal_Package): Add comments on needed additional tests.
19303 AI-317 (partial parametrization) is fully implemented.
19304 (Validate_Private_Type_Instance): Add check for actual which
19305 must have preelaborable initialization
19306 Use new // insertion for some continuation messages
19307 (Analyze_Formal_Object_Declaration): Change usage of Expression to
19308 Default_Expression. Add type retrieval when the declaration has an
19309 access definition. Update premature usage of incomplete type check.
19310 (Check_Access_Definition): New subsidiary routine. Check whether the
19311 current compilation version is Ada 05 and the supplied node has an
19313 (Instantiate object): Alphabetize local variables. Handle the creation
19314 of new renaming declarations with respect to the kind of definition
19315 used - either an access definition or a subtype mark. Guard against
19316 unnecessary error message in the context of anonymous access types after
19317 they have been resolved. Add check for required null exclusion in a
19318 formal object declaration.
19319 (Switch_View): A private subtype of a non-private type needs to be
19320 switched (the base type can have been switched without its private
19321 dependents because of the last branch of Check_Private_View.
19322 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
19324 (Instantiate_Type): Emit an error message whenever a class-wide type of
19325 a tagged incomplete type is used as a generic actual.
19326 (Find_Actual_Type): Extend routine to handle a component type in a child
19327 unit that is imported from a formal package in a parent.
19328 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
19329 agree on constrainedness, rather than checking against ultimate ancestor
19330 (Instantiate_Subprogram_Body): Create a cross-reference link to the
19331 generic body, for navigation purposes.
19333 2006-10-31 Robert Dewar <dewar@adacore.com>
19334 Thomas Quinot <quinot@adacore.com>
19336 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
19338 (New_Stream_Subprogram): When processing an attribute definition clause
19339 for a stream-oriented subprogram, record an entity node occurring at
19340 the point of clause to use for checking the visibility of the clause,
19341 as defined by 8.3(23) as amended by AI-195.
19342 (New_Stream_Subprogram): New procedure, factoring behaviour from both
19343 New_Stream_Function and New_Stream_Procedure.
19344 (New_Stream_Function, New_Stream_Procedure): Removed.
19345 (Analyze_Attribute_Definition_Clause, case Address): Check new
19346 Alignment_Check check
19348 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19349 Javier Miranda <miranda@adacore.com>
19350 Robert Dewar <dewar@adacore.com>
19352 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
19353 generate the same errors compiling under -gnatc.
19354 (Try_Object_Operation): If no candidate interpretation succeeds, but
19355 there is at least one primitive operation with the right name, report
19356 error in call rather than on a malformed selected component.
19357 (Analyze_Selected_Component): If the prefix is an incomplete type from
19358 a limited view, and the full view is available, use the full view to
19359 determine whether this is a prefixed call to a primitive operation.
19360 (Operator_Check): Verify that a candidate interpretation is a binary
19361 operation before checking the type of its second formal.
19362 (Analyze_Call): Add additional warnings for function call contexts not
19364 (Analyze_Allocator): Move the check for "initialization not allowed for
19365 limited types" after analyzing the expression. This is necessary,
19366 because OK_For_Limited_Init looks at the structure of the expression.
19367 Before analysis, we don't necessarily know what sort of expression it
19368 is. For example, we don't know whether F(X) is a function call or an
19369 indexed component; the former is legal in Ada 2005; the latter is not.
19370 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
19371 were missing. We also didn't handle qualified expressions. Now also
19372 allow function calls. Use new common routine OK_For_Limited_Init.
19373 (Analyze_Type_Conversion): Do not perform some legality checks in an
19374 instance, because the error message will be redundant or spurious.
19375 (Analyze_Overloaded_Selected_Component): Do not do style check when
19376 setting an entity, since we do not know it is the right entity yet.
19377 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
19378 (Analyze_Overloaded_Selected_Component): Same change
19379 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
19380 since regular incomplete subtypes are transformed into corresponding
19381 subtypes of their full views.
19382 (Complete_Object_Operation): Treat name of transformed subprogram call
19383 as coming from source, for browsing purposes.
19384 (Try_Primitive_Operation): If formal is an access parameter, compare
19385 with base type of object to determine whether it is a primitive
19387 (Operator_Check): If no interpretation of the operator matches, check
19388 whether a use clause on any candidate might make the operation legal.
19389 (Try_Class_Wide_Operation): Check whether the first parameter is an
19390 access type whose designated type is class-wide.
19392 2006-10-31 Robert Dewar <dewar@adacore.com>
19393 Ed Schonberg <schonberg@adacore.com>
19394 Gary Dismukes <dismukes@adacore.com>
19396 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
19397 warn on infinite loops.
19398 Add \\ to some continuation messages
19399 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
19400 (Process_Bounds): If the bounds are integer literals that result from
19401 constant-folding, and they carry a user-defined type, preserve that type
19402 rather than treating this as an integer range.
19403 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
19404 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
19405 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
19406 left hand side of assignment.
19407 (Analyze_Assignment): Add suport to manage assigments to the attribute
19408 priority of a protected object.
19409 (Check_Possible_Current_Value_Condition): Allow fully qualified names
19410 not just identifiers.
19411 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
19412 or AND THEN for possible tracking.
19413 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
19414 case of while loops so we can track values in the loop body.
19416 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19417 Hristian Kirtchev <kirtchev@adacore.com>
19418 Bob Duff <duff@adacore.com>
19420 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
19421 procedure cannot be a protected operation (it is a basic_declaration,
19422 not a subprogram_declaration).
19423 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
19424 Subp. Add logic for entry processing.
19425 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
19426 Determine whether an entry or subprogram of a protected or task type
19427 override an inherited primitive of an implemented interface.
19428 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
19429 Update the actual used in calls to Check_Overriding_Indicator.
19430 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
19431 generate the proper reference to the parent unit, for cross-reference.
19432 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
19434 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
19435 (Add_Extra_Formal): Revise procedure to allow passing in associated
19436 entity, scope, and name suffix, and handle setting of the new
19437 Extra_Formals field.
19438 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
19439 pass new parameters. Add support for adding the new extra access formal
19440 for functions whose calls are treated as build-in-place.
19441 (Analyze_A_Return_Statement): Correct casing in error message.
19442 Move Pop_Scope to after Analyze_Function_Return, because an extended
19443 return statement really is a full-fledged scope. Otherwise, visibility
19444 doesn't work right. Correct use of "\" for continuation messages.
19445 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
19446 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
19447 the node doesn't get properly marked as analyzed.
19448 (Analyze_Subprogram_Body): If subprogram is a function that returns
19449 an anonymous access type that denotes a task, build a Master Entity
19451 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
19452 proper usage of null exclusion in a result definition.
19453 (Process_Formals): Code cleanup and new error message.
19454 (Process_Formals): Detect incorrect application of null exclusion to
19456 (Conforming_Types): Handle conformance between [sub]types and itypes
19457 generated for entities that have null exclusions applied to them.
19458 (Maybe_Primitive_Operation): Add an additional type retrieval when the
19459 base type is an access subtype. This case arrises with null exclusions.
19460 (New_Overloaded_Entity): Do not remove the overriden entity from the
19461 homonym chain if it corresponds with an abstract interface primitive.
19462 (Process_Formals): Replace membership test agains Incomplete_Kind with a
19463 call to the synthesized predicate Is_Incomplete_Type.
19464 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
19466 (Analyze_Subprogram_Declaration): Check that abstract interface
19467 primitives are abstract or null.
19468 (Analyze_Subprogram_Specification): Remove previous check for abstract
19469 interfaces because it was not complete.
19470 (Has_Interface_Formals): Removed.
19472 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19473 Javier Miranda <miranda@adacore.com>
19475 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
19476 of Analyze_Package_Body, to create Itype references for anonymous
19477 access types created in the package declaration, whose designated types
19478 may have only a limited view.
19479 (Analyze_Package_Specification): For the private part of a nested
19480 package, install private_with_clauses of enclosing compilation unit if
19481 we are in its visible part.
19482 (Declare_Inherited_Private_Subprograms): Complete barrier
19483 to ensure that the primitive operation has an alias to some parent
19484 primitive. This is now required because, after the changes done for the
19485 implementation of abstract interfaces, the contents of the list of
19486 primitives has entities whose alias attribute references entities of
19487 such list of primitives.
19488 (Analyze_Package_Specification): Simplify code that handles parent units
19489 of instances and formal packages.
19490 (Uninstall_Declarations): Check the convention consistency among
19491 primitive overriding operations of a tagged record type.
19493 2006-10-31 Robert Dewar <dewar@adacore.com>
19494 Hristian Kirtchev <kirtchev@adacore.com>
19495 Javier Miranda <miranda@adacore.com>
19496 Ed Schonberg <schonberg@adacore.com>
19498 * sem_ch8.adb: Minor error msg rewording
19499 (Undefined): When checking for misspellings, invert arguments (to get
19500 expected and found set right)
19501 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
19502 (Analyze_Generic_Renaming): Same fix
19503 (Use_One_Package): Do not take into account the internal entities of
19504 abstract interfaces during the analysis of entities that are marked
19505 as potentially use-visible.
19506 (Find_Type): Handle the case of an attribute reference for
19507 implementation defined attribute Stub_Type (simply let the analysis of
19508 the attribute reference rewrite it).
19509 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
19510 type that appears in a Use_Type clause.
19511 (Analyze_Object_Renaming): Add support for renaming of the Priority
19513 (Find_Type): In Ada 2005, a task type can be used within its own body,
19514 when it appears in an access definition.
19515 (Analyze_Object_Renaming): Remove warning on null_exclusion.
19516 (Analyze_Object_Renaming): Introduce checks for required null exclusion
19517 in a formal object declaration or in a subtype declaration.
19518 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
19519 (Check_Null_Exclusion): New local routine to
19520 Analyze_Subprogram_Renaming. Check whether the formals and return
19521 profile of a renamed subprogram have required null exclusions when
19522 their counterparts of the renaming already impose them.
19523 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
19524 Determine whether an entity is inside a generic scope.
19525 (In_Open_Scope): First pass of documentation update.
19526 (Find_Expanded_Name): Add support for shadow entities associated with
19527 limited withed packages. This is required to handle nested packages.
19528 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
19529 that makes a renaming of a limited withed package illegal.
19531 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19532 Ed Schonberg <schonberg@adacore.com>
19534 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
19535 Check_Overriding_Indicator.
19536 (Analyze_Task_Definition): Ditto.
19537 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
19538 (Check_Overriding_Indicator): To find overridden interface operation,
19539 examine only homonyms that have an explicit subprogram declaration, not
19540 inherited operations created by an unrelated type derivation.
19541 (Check_Overriding_Indicator): When checking for the presence of "null"
19542 in a procedure, ensure that the queried node is a procedure
19544 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
19545 type when the formal is an access to variable.
19546 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
19547 (Analyze_Task_Type): Same addition
19548 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
19549 provide navigation capabilities for entries.
19551 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19552 Ed Schonberg <schonberg@adacore.com>
19553 Javier Miranda <miranda@adacore.com>
19554 Gary Dismukes <dismukes@adacore.com>
19556 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
19557 inherited from an interface ancestor by another interface in the
19558 context of an instance as 'late'.
19559 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
19560 of a call to a function that dispatches on access result.
19561 (Check_Dispatching_Operation): In case of late overriding of a primitive
19562 that covers abstract interface subprograms we register it in all the
19563 secondary dispatch tables associated with abstract interfaces.
19564 (Check_Dispatching_Call): Add check that a dispatching call is not made
19565 to a function with a controlling result of a limited type. This is a
19566 current implementation restriction.
19567 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
19568 (Check_Dispatching_Operation): Do no emit a warning if the controlling
19569 argument is an interface type that is a generic formal.
19570 (Is_Interface_Subprogram): Removed.
19571 (Check_Dispatching_Operation): If the subprogram is not a dispatching
19572 operation, check the formals to handle the case in which it is
19573 associated with an abstract interface type.
19575 2006-10-31 Robert Dewar <dewar@adacore.com>
19576 Ed Schonberg <schonberg@adacore.com>
19578 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
19579 Add new calls to this procedure during traversal
19580 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
19581 another unit if expansion is disabled.
19583 2006-10-31 Robert Dewar <dewar@adacore.com>
19585 * sem_eval.adb (Compile_Time_Compare): Make use of information from
19586 Current_Value in the conditional case, to evaluate additional
19587 comparisons at compile time.
19589 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19590 Hristian Kirtchev <kirtchev@adacore.com>
19591 Javier Miranda <miranda@adacore.com>
19593 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
19594 subprogram type to provide better diagnostics in case of ambiguity.
19595 (Covers): Handle coverage of formal and actual anonymous access types in
19596 the context of generic instantiation.
19597 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
19598 abstract interface types; this is required to handle concurrent types
19599 with discriminants and abstract interface types.
19600 (Covers): Include type coverage of both regular incomplete subtypes and
19601 incomplete subtypes of incomplete type visibles through a limited with
19604 2006-10-31 Robert Dewar <dewar@adacore.com>
19605 Hristian Kirtchev <kirtchev@adacore.com>
19606 Ed Schonberg <schonberg@adacore.com>
19608 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
19609 messages for entities in packages which are not used.
19610 (Collect_Synchronized_Interfaces): New procedure.
19611 (Overrides_Synchronized_Primitive): New function.
19612 (Denotes_Discriminant): Extend predicate to apply to task types.
19613 Add missing continuation marks in error msgs
19614 (Unqualify): New function for removing zero or more levels of
19615 qualification from an expression. There are numerous places where this
19616 ought to be used, but we currently only deal properly with zero or one
19618 (In_Instance); The analysis of the actuals in the instantiation of a
19619 child unit is not within an instantiation, even though the parent
19620 instance is on the scope stack.
19621 (Safe_To_Capture_Value): Exclude the case of variables that are
19623 (Check_Obsolescent): Removed
19624 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
19625 is an aliased view, even when rewritten as a reference to the target
19626 object in an assignment.
19627 (Get_Subprogram_Entity): New function
19628 (Known_To_Be_Assigned): New function
19629 (Type_Access_Level): Compute properly the access level of a return
19630 subtype that is an anonymous access type.
19631 (Explain_Limited_Type): Correct use of "\" for continuation messages.
19632 (Is_Transfer): The new extended_return_statement causes a transfer of
19634 (Has_Preelaborable_Initialization): New function
19635 (Has_Null_Exclusion): New function. Given a node N, determine whether it
19636 has a null exclusion depending on its Nkind.
19637 Change Is_Lvalue to May_Be_Lvalue
19638 (May_Be_Lvalue): Extensive additional code to deal with subprogram
19639 arguments (IN parameters are not Lvalues, IN OUT parameters are).
19640 (Safe_To_Capture_Value): Extend functionality so it can be used for
19641 the current value condition case.
19642 (Has_Compatible_Alignment): New function
19643 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
19644 objects to handle the Ada 2005 case, where aliasedness no longer implies
19645 that the object is constrained. In particular, for dereferenced names,
19646 the designated object must be assumed to be unconstrained.
19647 (Kill_Current_Values): Properly deal with the case where we encounter
19648 a loop in the scope chain.
19649 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
19651 (Compile_Time_Constraint_Error): Improve error message in error case
19653 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
19654 associated with entities of abstract interface primitives.
19655 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
19657 2006-10-31 Robert Dewar <dewar@adacore.com>
19659 * s-osinte-tru64.adb:
19660 Mark Asm statements Volatile to prevent warnings (seems a
19661 reasonable change anyway)
19664 * s-mastop-irix.adb: Add Volatile to Asm statements
19665 Suppresses warning, and seems appropriate in any case
19667 * s-osinte-vms.adb: Add Volatile to Asm statement
19669 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
19671 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
19673 Add call to Check_Code_Statement
19675 2006-10-31 Robert Dewar <dewar@adacore.com>
19676 Ed Schonberg <schonberg@adacore.com>
19677 Bob Duff <duff@adacore.com>
19679 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
19680 Synchronized_Present): Add Formal_Derived_Type_Definition and
19681 Private_Extension_Declaration to the list of assertions.
19682 (Is_Entry_Barrier_Function): New flag
19683 (Has_Self_Reference): New flag on aggregates, to indicate that they
19684 contain a reference to the enclosing type, inserted through a default
19686 (Next_Rep_Item): Move from Node4 to Node5.
19687 (Entity): Add this field for N_Attribute_Definition_Clause.
19688 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
19689 (N_Return_Object_Declaration): Remove this node kind. We now use
19690 N_Object_Declaration instead.
19691 (Actual_Designated_Subtype): Move to a different place to make room in
19692 N_Extended_Return_Statement.
19693 (Procedure_To_Call): Move to a different place to make room in
19694 N_Extended_Return_Statement.
19695 (Return_Type): Removed this field to make room in return statements
19697 (Return_Statement_Entity): New field in return statements, in part to
19698 replace Return_Type, and in part to support the fact that return
19699 statements are now pushed on the scope stack during semantic analysis.
19700 (Return_Object_Declarations): New field to support extended return
19702 (N_Extended_Return_Statement): New node for extended_return_statement
19704 (N_Return_Object_Declaration): New node for part of
19705 extended_return_statement nonterminal. Needed because all the necessary
19706 fields won't fit in N_Extended_Return_Statement.
19707 Generic_associations now carry the Box_Present flag, to indicate a
19708 default for an actual in a partially parametrized formal package.
19710 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
19711 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
19712 and for the new predefined dispatching policies: EDF_Across_Priorities,
19713 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
19714 Introduce new name Stub_Type for implementation defined attribute.
19715 Add pragma Preelaborable_Initialization
19716 Add entry for Priority attribute.
19717 Add Pragma_Wide_Character_Encoding
19718 (Get_Convention_Name): Given a convention id, this function returns the
19719 corresponding name id from the names table.
19721 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19722 Robert Dewar <dewar@adacore.com>
19723 Bob Duff <duff@adacore.com>
19725 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
19726 print null exclusion twice in the case of an access definition,
19727 Implement new -gnatL switch
19728 Remove N_Return_Object_Declaration. We now use
19729 N_Object_Declaration instead. Implement the case for
19730 N_Extended_Return_Statement. Alphabetize the cases.
19731 Add cases for new nodes N_Extended_Return_Statement and
19732 N_Return_Object_Declaration. The code is not yet written.
19733 Update the output for N_Formal_Object_Declaration
19734 and N_Object_Renaming_Declaration.
19735 (Write_Itype): Account for the case of a modular integer subtype whose
19736 base type is private.
19738 2006-10-31 Arnaud Charlet <charlet@adacore.com>
19740 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
19741 Remove elaboration code, now done in the binder.
19743 * s-rident.ads: Make this unit Preelaborate.
19744 (No_Restrictions): New constant used to clean up code and follow
19745 preelaborate constraints.
19748 Add System.Restrictions dependence, referenced directly from the
19749 binder generated file.
19751 2006-10-31 Gary Dismukes <dismukes@adacore.com>
19753 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
19754 True when AAMP extended floating-point is in use (48-bit). Change type
19755 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
19756 the two byte array types on AFloat. Change type of IV_Ilf overlay
19757 variable from Byte8 to ByteLF. Add appropriate initializations of
19758 floating-point overlays for AAMP cases.
19760 2006-10-31 Javier Miranda <miranda@adacore.com>
19762 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
19763 (Get_Ceiling): New subprogram that returns
19764 the ceiling priority of the protected object.
19765 (Set_Ceiling): New subprogram that sets the new ceiling priority of
19766 the protected object.
19768 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
19770 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
19772 2006-10-31 Jose Ruiz <ruiz@adacore.com>
19774 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
19775 requeuing to the same protected object to give higher priority tasks
19776 the opportunity to execute.
19778 2006-10-31 Robert Dewar <dewar@adacore.com>
19780 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
19781 add more precise check for the character sequence that follows '[' to
19782 avoid possible confusion in case if '[' is the last character of a
19784 (Scan_Wide): Always allow brackets encoding
19786 2006-10-31 Olivier Hainque <hainque@adacore.com>
19788 * s-stchop.ads: make this unit preelaborate. This is desirable in
19789 general and made mandatory by the use of this unit by s-taprop which
19790 is itself preelaborate.
19792 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
19793 Td_Events component.
19795 2006-10-31 Vincent Celier <celier@adacore.com>
19797 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
19800 2006-10-31 Vincent Celier <celier@adacore.com>
19802 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
19804 2006-10-31 Vincent Celier <celier@adacore.com>
19806 * makegpr.adb (Check_Compilation_Needed): Take into account path names
19808 (Check_Compilation_Needed): When checking a C or C++ source, do not
19809 resolve symbolic links.
19810 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
19811 When not in verbose mode and Ellipse is True, display "..." for the
19812 first argument with Display set to False.
19813 (Build_Global_Archive): Always set Display True for the first object
19814 file. Call Display_Command with Ellipse set to True.
19816 2006-10-31 Matt Heaney <heaney@adacore.com>
19818 * a-crbtgo.ads: Commented each subprogram
19820 * a-crbtgo.adb: Added reference to book from which algorithms were
19823 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
19824 indicate which child.
19825 (Generic_Conditional_Insert): changed parameter name from "Success" to
19827 (Generic_Unconditional_Insert_With_Hint): improved algorithm
19829 * a-coorse.adb (Replace_Element): changed parameter name in call to
19830 conditional insert operation.
19832 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
19834 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
19837 * a-ciorse.adb (Replace_Element): changed parameter name in call to
19838 conditional insert operation.
19840 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
19843 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
19844 instead of mode inout.
19846 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
19848 (Generic_Read): preserve existing buckets array if possible
19849 (Generic_Write): don't send buckets array length anymore
19851 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
19852 instead of mode inout.
19854 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
19855 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19857 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
19858 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19859 (Replace_Element): local operation is now an instantiation
19861 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
19862 check current length.
19863 (Generic_Replace_Element): new operation
19865 2006-10-31 Doug Rupp <rupp@adacore.com>
19867 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
19868 Call TBK$SYMBOLIZE without omitting parameters.
19870 2006-10-31 Vincent Celier <celier@adacore.com>
19872 * symbols-processing-vms-ia64.adb,
19873 symbols-processing-vms-alpha.adb (Process): Do not include symbols
19874 that come from generic instantiations in bodies.
19876 2006-10-31 Pat Rogers <rogers@adacore.com>
19878 * a-rttiev.ads, a-rttiev.adb:
19879 This is a significant redesign primarily for the sake of automatic
19880 timer task termination but also to fix a design flaw.
19881 Therefore we are now using an RTS lock, instead of a protected
19882 object, to provide mutual exclusion to the queue of pending events
19883 and the type Timing_Event is no longer a protected type.
19885 2006-10-31 Robert Dewar <dewar@adacore.com>
19886 Cyrille Comar <comar@adacore.com>
19887 Ben Brosgol <brosgol@adacore.com>
19889 * debug.adb: Update flags documentation
19891 * gnat_ugn.texi: Add documentation for new -gnatwq switch
19892 Clean up documentation for several other warning switches
19893 Clarify how task stack size can be specified with various
19894 versions of Windows.
19895 Add note that -gnatVo includes ranges including loops
19896 Add documentation for -gnatL switch
19897 Add note on elaboration warning for initializing variables
19898 Add documentation for new -gnatwt warning switch
19899 Document new form of pragma Warnings (On|Off, string)
19900 Add comment on use of pragma Warnings to control warnings
19901 Add documentation for -gnatjnn switch
19902 Modify section on interfacing with C for VMS 64-bit.
19903 Add doc for -gnatVe/E
19904 Add documentation of new warning flags -gnatww/-gnatwW
19905 Add warnings about address clause overlays to list of warnings
19906 (Exception Handling Control): Document that the option --RTS must be
19907 used consistently for gcc and gnatbind.
19908 Clarify that inlining is not always possible
19909 Update documentation on pragma Unchecked_Union.
19912 Add documentation for new extended version of pragma Obsolescent
19913 Add documentation for implementation defined attribute 'Stub_Type.
19914 Add note on use of Volatile in asm statements
19915 Add documentation on use of pragma Unreferenced in context clause
19916 Document new form of pragma Warnings (On|Off, pattern)
19917 Document pragma Wide_Character_Encoding
19918 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
19919 enforced if code generation is active.
19920 Add section on pragma Suppress to document GNAT specific check
19922 Clarify difference between No_Dispatching_Calls & No_Dispatch.
19923 Add documentation for pragma Restrictions (No_Elaboration_Code)
19926 Add comments on layout of subprogram local variables in the
19927 presence of nested subprograms.
19929 * ug_words: Resync.
19931 * elists.ads: Minor reformatting
19932 Node returns Node_Or_Entity_Id (doc change only)
19934 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
19936 * g-arrspl.ads (Create): Update comments.
19938 * sem.ads: Add details on the handling of the scope stack.
19940 * usage.adb: Update documentation.
19942 * validsw.ads, validsw.adb:
19943 Add definition of Validity_Check_Components and implement -gnatVe/E
19945 * vms_data.ads: Add missing VMS qualifiers.
19947 * s-addope.ads: Add documentation on overflow and divide by zero
19949 2006-10-31 Robert Dewar <dewar@adacore.com>
19950 Thomas Quinot <quinot@adacore.com>
19951 Arnaud Charlet <charlet@adacore.com>
19953 * fmap.adb: Put routines in alpha order
19955 * g-boumai.ads: Remove redundant 'in' keywords
19957 * g-cgi.adb: Minor reformatting
19959 * g-cgi.ads: Remove redundant 'in' keywords
19961 * get_targ.adb: Put routines in alpha order
19963 * prj-attr.ads: Minor reformatting
19965 * s-atacco.ads: Minor reformatting
19967 * scn.adb: Put routines in alpha order
19969 * sinput-l.adb: Minor comment fix
19971 * sinput-p.adb: Minor comment fix
19973 * s-maccod.ads: Minor reformatting
19975 * s-memory.adb: Minor reformatting
19977 * s-htable.adb: Fix typo in comment.
19979 * s-secsta.adb: Minor comment update.
19981 * s-soflin.adb: Minor reformatting
19984 Add comment about odd qualification in Storage_Offset declaration
19987 Remove unnecessary 'in' keywords for formal parameters.
19989 * treeprs.adt: Minor reformatting
19991 * urealp.adb: Put routines in alpha order
19993 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19996 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19998 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
20000 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
20001 workaround as on other platforms.
20003 * g-eacodu-vms.adb: Remove redundant 'in' keywords
20004 * g-expect-vms.adb: Remove redundant 'in' keywords
20006 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
20007 clear error message if the list-of-files file cannot be opened.
20009 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
20010 equality operator is always visible.
20012 * lang.opt: Woverlength-strings: New option.
20015 Update copyright, since nmake.ads and nmake.adb have changed.
20017 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
20018 (Binder_Output_Time_Stamps_Set): removed.
20019 (Old_Binder_Output_Time_Stamp): idem.
20020 (New_Binder_Output_Time_Stamp): idem.
20021 (Recording_Time_From_Last_Bind): idem.
20022 (Recording_Time_From_Last_Bind): Make constant.
20024 * output.ads, output.adb (Write_Str): Allow LF characters
20025 (Write_Spaces): New procedure
20027 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
20029 * inline.adb: Minor reformatting
20031 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
20033 * s-mastop-vms.adb: Remove redundant 'in' keywords
20035 * s-osprim-vms.adb: Remove redundant 'in' keywords
20037 * s-trafor-default.adb: Remove redundant 'in' keywords
20039 * 9drpc.adb: Remove redundant 'in' keywords
20041 * s-osinte-mingw.ads: Minor reformatting
20043 * s-inmaop-posix.adb: Minor reformatting
20045 * a-direio.ads: Remove quotes from Compile_Time_Warning message
20047 * a-exexda.adb: Minor code reorganization
20049 * a-filico.adb: Minor reformatting
20051 * a-finali.adb: Minor reformatting
20053 * a-nudira.ads: Remove quote from Compile_Time_Warning message
20055 * a-numeri.ads: Minor reformatting
20057 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
20059 * exp_pakd.ads: Fix obsolete comment
20061 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
20062 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
20063 Probably not a bug, but certainly neater and more efficient.
20065 * a-tienio.adb: Minor reformatting
20067 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
20068 Avoid assuming low bound of string is 1.
20070 * gnatbind.adb: Change Bindusg to package and rename procedure as
20071 Display, which now ensures that it only outputs usage information once.
20072 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
20074 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
20077 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
20079 (Match): Add pragma Assert to ensure that Matches'First is zero
20081 * g-regpat.ads (Match): Document that Matches lower bound must be zero
20083 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
20084 documented preconditions (also kills warnings about bad indexes).
20086 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
20088 (Build_Import_Library): Ditto;
20090 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
20092 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
20094 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
20095 lower bound of choice table is 1.
20097 * sem_case.ads (Analyze_Choices): Document that lower bound of
20100 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
20103 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
20104 and add appropriate Assert pragma to suppress warnings.
20106 * atree.h, atree.ads, atree.adb
20107 Change Elist24 to Elist25
20108 Add definitions of Field28 and Node28
20109 (Traverse_Field): Use new syntactic parent table in sinfo.
20111 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
20113 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
20115 * exp_tss.adb: Put routines in alpha order
20117 * fe.h: Remove redundant declarations.
20119 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
20121 * utils.c (builtin_function): Rename to gnat_builtin_function.
20122 Move common code to add_builtin_function.
20123 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
20124 gnat_builtin_function.
20125 * gigi.h (builtin_function): Rename to gnat_builtin_function.
20126 Change the signature.
20128 2006-10-16 Brooks Moses <bmoses@stanford.edu>
20130 * Makefile.in: Add TEXI2PDF definition.
20131 * Make-lang.in: Add "ada.pdf" target.
20133 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
20135 * decl.c, utils.c: Fix comment typos.
20136 * utils.c: Fix a typo.
20138 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
20140 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
20141 on "pure" Ada subprograms if SJLJ exceptions are used.
20142 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
20143 on the declaration node of JMPBUF_SAVE.
20144 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
20145 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
20146 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
20148 2006-08-20 Laurent Guerby <laurent@guerby.net>
20151 g-socket.adb (Bind_Socket): Call Set_Address.
20153 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
20156 * decl.c (same_discriminant_p): New static function.
20157 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
20158 subtype and we have discriminants, fix up the COMPONENT_REFs
20159 for the discriminants to make them reference the corresponding
20160 fields of the parent subtype after it has been built.
20162 2006-09-15 Roger Sayle <roger@eyesopen.com>
20165 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
20166 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
20168 2006-09-13 Olivier Hainque <hainque@adacore.com>
20171 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
20172 of a SAVE_EXPR, just make the operand addressable/not-readonly and
20173 let the common gimplifier code make and propagate a temporary copy.
20174 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
20175 out/in-out actuals and defer setting the addressable/readonly bits
20178 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
20181 * decl.c (components_to_record): Defer emitting debug info for the
20182 record type associated with the variant until after we are sure to
20185 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
20188 * gigi.h (gnat_internal_attribute_table): Declare.
20189 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
20190 * utils.c (gnat_internal_attribute_table): New global variable.
20191 (builtin_function): Always call decl_attributes on the builtin.
20192 (handle_const_attribute): New static function.
20193 (handle_nothrow_attribute): Likewise.
20195 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
20197 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
20199 2006-06-23 Olivier Hainque <hainque@adacore.com>
20201 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
20202 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
20204 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
20205 Eric Botcazou <ebotcazou@adacore.com>
20208 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
20209 check-gnat into check-acats.
20211 2006-06-17 Karl Berry <karl@gnu.org>
20213 * gnat-style.texi (@dircategory): Use "Software development"
20214 instead of "Programming", following the Free Software Directory.
20216 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20219 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
20221 2006-06-06 Laurent Guerby <laurent@guerby.net>
20224 mlib-utl.adb: Use Program_Name.
20226 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
20228 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
20229 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
20230 trans.c, utils.c: Fix comment typos. Follow spelling
20232 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
20235 2006-05-19 Nicolas Setton <setton@adacore.com>
20237 * misc.c (gnat_dwarf_name): New function.
20238 (LANG_HOOKS_DWARF_NAME): Define to it.
20240 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
20242 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
20243 (ada/misc.o): Likewise.
20244 (ada/utils.o): Likewise.
20246 2006-04-08 Aurelien Jarno <aurel32@debian.org>
20248 * Makefile.in: Add Ada support for GNU/kFreeBSD.
20249 * s-osinte-kfreebsd-gnu.ads: New file.
20251 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
20253 * Make-lang.in: Rename docdir to gcc_docdir.
20255 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
20257 * gigi.h (get_ada_base_type): Delete.
20258 * utils2.c (get_ada_base_type): Likewise.
20259 * trans.c (convert_with_check): Operate in the real base type.
20261 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20263 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
20265 2006-03-02 Richard Sandiford <richard@codesourcery.com>
20267 * utils.c (create_var_decl): Use have_global_bss_p when deciding
20268 whether to make the decl common.
20270 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
20272 * Make-lang.in (Ada): Remove.
20273 (.PHONY): Remove Ada
20275 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20277 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
20278 aggregate, check the interpretations of the other operand to find one
20279 that may be a boolean array.
20281 (Analyze_Selected_Component): Fix flow-of-control typo in case where
20282 the prefix is a private extension.
20284 2006-02-17 Eric Botcazou <botcazou@adacore.com>
20287 * utils2.c (find_common_type): If both input types are BLKmode and
20288 have the same constant size, keep using the first one.
20290 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
20292 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
20294 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
20296 2006-02-17 Jose Ruiz <ruiz@adacore.com>
20298 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
20299 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
20300 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
20301 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
20302 Abort_Defer/Undefer pairs to avoid the possibility of a task being
20303 aborted while owning a lock.
20305 2006-02-17 Javier Miranda <miranda@adacore.com>
20306 Robert Dewar <dewar@adacore.com>
20308 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
20309 through an access to class-wide interface we force the displacement of
20310 the pointer to the allocated object to reference the corresponding
20311 secondary dispatch table.
20312 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
20313 if Long_Shifts are supported on the target, even if 64 bit divides
20314 are not supported (configurable run time mode).
20315 (Expand_N_Type_Conversion): Do validity check if validity checks on
20316 operands are enabled.
20317 (Expand_N_Qualified_Expression): Do validity check if validity checks
20318 on operands are enabled.
20320 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20322 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
20323 must be materialized when the renamed expression is an explicit
20326 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20328 * freeze.adb (Statically_Discriminated_Components): Return false if
20329 the bounds of the type of the discriminant are not static expressions.
20331 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
20332 the bounds of the discriminant type are not static.
20334 2006-02-17 Robert Dewar <dewar@adacore.com>
20336 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
20337 then we close To if it is valid.
20339 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
20341 * init.c (facility_resignal_table): new array
20342 (__gnat_default_resignal_p): enhance default predicate to resignal if
20343 VMS condition has one of the predefined facility codes.
20345 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
20347 * Makefile.in: Use VMS64 specialized versions of several units in
20348 Interfaces.C hierarchy to be compatible with HP C default size choices.
20349 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
20351 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20353 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
20354 instantiation, the corresponding entity is the related_instance of the
20355 wrapper package created for the instance.
20357 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20359 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
20360 the current instance is nested within another instance in a child unit.
20362 2006-02-17 Javier Miranda <miranda@adacore.com>
20363 Ed Schonberg <schonberg@adacore.com>
20365 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
20366 type we cannot inherit the primitive operations; we inherit the
20367 Corresponding_Record_Type (which has the list of primitive operations).
20368 (Check_Anonymous_Access_Types): When creating anonymous access types for
20369 access components, use Rewrite in order to preserve the tree structure,
20371 (Analyze_Object_Declaration): For limited types with access
20372 discriminants with defaults initialized by an aggregate, obtain
20373 subtype from aggregate as for other mutable types.
20374 (Derived_Type_Declaration): If the derived type is a limited interface,
20375 set the corresponding flag (Is_Limited_Record is not sufficient).
20377 2006-02-17 Ed Schonberg <schonberg@adacore.com>
20379 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
20380 to inline a function that returns an unconstrained type, the return
20381 expression must be the first variable declared in the body of the
20384 2006-02-17 Javier Miranda <miranda@adacore.com>
20386 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
20387 abstract interface type, the static analysis is not enough to know if
20388 the interface is implemented or not by the source tagged type. Hence
20389 we must pass the work to the expander to generate the required code to
20390 evaluate the conversion at run-time.
20391 (Resolve_Equality_Op): Do not apply previous
20392 transformation if expansion is disasbled, to prevent anomalies when
20393 locating global references in a generic unit.
20395 2006-02-17 Vincent Celier <celier@adacore.com>
20397 * snames.ads, snames.adb: New standard names for new project attributes:
20398 archive_builder, archive_indexer, compiler_pic_option,
20399 config_body_file_name, config_body_file_name_pattern,
20400 config_file_switches, config_file_unique, config_spec_file_name,
20401 config_spec_file_name_pattern, default_builder_switches,
20402 default_global_compiler_switches, default_language,
20403 dependency_file_kind, global_compiler_switches, include_path,
20404 include_path_file, language_kind, linker_executable_option,
20405 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
20406 roots, runtime_project.
20408 2006-02-17 Matthew Heaney <heaney@adacore.com>
20410 * a-convec.ads, a-convec.adb:
20411 (operator "&"): handle potential overflow for large index types
20412 (Insert): removed Contraint_Error when using large index types
20413 (Insert_Space): removed Constraint_Error for large index types
20414 (Length): moved constraint check from Length to Insert
20416 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
20417 as not null access.
20418 Explicit raise statements now include an exception message.
20419 (operator "&"): handle potential overflow for large index types
20420 (Insert): removed Contraint_Error when using large index types
20421 (Insert_Space): removed Constraint_Error for large index types
20422 (Length): moved constraint check from Length to Insert
20424 2006-02-17 Robert Dewar <dewar@adacore.com>
20426 * s-wchcnv.adb: Document handling of [ on output (we do not change
20427 this to ["5B"] and the new comments say why not.
20430 Add note for -gnatVo that this now includes the cases of type
20431 conversions and qualified expressions.
20432 Add comments on handling of brackets encoding for Text_IO
20434 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
20435 Thomas Quinot <quinot@adacore.com>
20436 Robert Dewar <dewar@adacore.com>
20437 Javier Miranda <miranda@adacore.com>
20439 * expander.adb: Fix typo in comment
20441 * exp_pakd.adb: Fix typo
20442 Minor comment reformatting.
20444 * g-dyntab.adb: Minor reformatting
20446 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
20447 aliased subprograms to look for the abstract interface subprogram.
20449 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
20451 * env.c (__gnat_setenv): Use size_t.
20452 (__gnat_unsetenv): Likewise.
20453 (__gnat_clearenv): Likewise.
20455 2006-02-16 Arnaud Charlet <charlet@adacore.com>
20457 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
20459 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20461 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
20462 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
20463 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
20464 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
20465 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
20466 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
20467 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
20468 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
20469 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
20472 2006-02-13 Jose Ruiz <ruiz@adacore.com>
20474 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
20475 protection against race conditions is not needed.
20476 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
20478 (Set_Specific_Handler): Add mutual exclusive access to the specific
20480 (Specific_Handler): Add mutual exclusive access for retrieving the
20483 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
20486 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
20487 Fall_Back_Handler and Specific_Handler.
20489 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
20490 termination handlers.
20491 Set two different owerflow depending on the maximal stack size.
20493 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
20494 protection against race conditions is not needed when executing the
20495 task termination handler.
20497 2006-02-13 Robert Dewar <dewar@adacore.com>
20499 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
20500 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
20501 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20502 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
20503 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
20504 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
20505 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
20506 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
20507 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
20508 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
20509 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
20510 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
20511 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
20512 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
20513 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
20514 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
20515 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
20516 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
20517 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
20518 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
20519 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
20520 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
20521 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
20522 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
20523 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
20524 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
20525 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
20526 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
20527 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
20528 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
20529 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
20530 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
20531 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
20532 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
20535 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20537 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
20538 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
20539 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
20540 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
20541 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
20542 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
20543 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
20544 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
20545 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
20547 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20549 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
20550 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
20551 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
20552 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
20553 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
20554 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
20555 replaced by anonymous access type.
20556 (pthread_sigmask): Now take an access sigset_t
20558 * s-osinte-hpux.ads: Ditto.
20559 (pthread_mutex_t, pthread_cond_t): Update definitions to support
20560 properly 32 and 64 bit ABIs.
20562 2006-02-13 Pascal Obry <obry@adacore.com>
20564 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
20565 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
20566 s-taprop-linux.adb, s-taprop-solaris.adb,
20567 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
20568 adjustement is already done when calling this routine.
20570 2006-02-13 Pascal Obry <obry@adacore.com>
20572 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
20573 table to take advantage of the 16 priority levels available on Windows
20574 2000 and XP. On NT4 there are only 7 priority levels, this is properly
20575 supported by this new mapping.
20577 2006-02-13 Nicolas Setton <setton@adacore.com>
20579 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
20580 (get_encoding): New subprogram. Extracts the encodings from an encoded
20583 2006-02-13 Pascal Obry <obry@adacore.com>
20584 Nicolas Roche <roche@adacore.com>
20585 Arnaud Charlet <charlet@adacore.com>
20587 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
20589 (__gnat_try_lock): Add unicode support by using a specific section on
20591 (__gnat_get_current_dir): Idem.
20592 (__gnat_open_read): Idem.
20593 (__gnat_open_rw): Idem.
20594 (__gnat_open_create): Idem.
20595 (__gnat_create_output_file): Idem.
20596 (__gnat_open_append): Idem.
20597 (__gnat_open_new): Idem.
20598 (__gnat_file_time_name): Idem.
20599 (__gnat_set_file_time_name): Idem.
20600 (__gnat_stat): Idem.
20601 (win32_no_block_spawn): Idem.
20602 (__gnat_locate_exec_on_path): Idem.
20603 (__gnat_opendir): New routine.
20604 (__gnat_closedir): Idem.
20605 (__gnat_readdir): Add new parameter length (pointer to int). Update
20606 implementation to use it and add specific Win32 code for Unicode
20608 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
20609 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
20610 (convert_addresses): Do not define this dummy routine on VMS.
20612 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
20613 runtime Unicode support will be activated.
20614 (S2WS): String to Wide-String conversion. This version just copy a
20615 string in non Unicode version.
20616 (WS2S): Wide-String to String conversion. This version just copy a
20617 string in non Unicode version.
20619 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
20620 (Open): Now import __gnat_opendir from adaint.c.
20621 (Read): Change the implementation to support unicode characters. It is
20622 not possible to use strlen() on Windows as this version supports only
20623 standard ASCII characters. So the length of the directory entry is now
20624 returned from the imported __gnat_readdir routine.
20625 Update copyright notice.
20627 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
20628 (opendir): Moved to adaint.c.
20630 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
20631 (Get_Directory): Fix wrong indexing.
20632 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
20633 __gnat_getenv from env.c
20634 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
20637 * env.h, env.c: New file.
20639 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
20640 adaint.c by __gnat_getenv from env.c
20642 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
20643 adaint.c by __gnat_getenv from env.c
20645 * Make-lang.in: Add env.o in the list of C object needed by gnat1
20647 Update dependencies.
20649 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20650 Olivier Hainque <hainque@adacore.com>
20651 Eric Botcazou <ebotcazou@adacore.com>
20653 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
20655 * gigi.h (value_factor_p): Add prototype and description, now public.
20657 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
20658 promotion for field with rep clause if the associated size was proven
20660 Expand comments describing attempts to use a packable type.
20661 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
20662 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
20663 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
20664 necessary since these are not different types and pointers may
20665 actually designate any subtype in this hierarchy.
20666 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
20667 discriminants but put them into record only if not Unchecked_Union;
20668 pass flag to components_to_record showing Unchecked_Union.
20669 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
20670 components before variants; don't set TYPE_UNCHECKED_UNION_P.
20671 (components_to_record): New argument UNCHECKED_UNION.
20672 Remove special case code for Unchecked_Union and instead use main code
20673 with small changes.
20676 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
20677 variable with the expression being built, only its inner field.
20679 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
20680 emit_sequence_entry_statements.
20681 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
20682 (establish_gnat_vms_condition_handler): Move before
20683 Subprogram_Body_to_gnu.
20684 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
20685 for a subprogram if it has a foreign convention or is exported.
20686 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
20687 substituted for a CONST_DECL.
20688 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
20689 Etype to assoc_to_constructor.
20690 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
20691 discriminants of Unchecked_Union.
20692 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
20693 don't need cluttering preprocessor directives.
20694 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
20695 condition handler as current in the compiled function.
20696 (body_with_handlers_p): New function. Tell whether a given sequence of
20697 statements node is attached to a package or subprogram body and involves
20698 exception handlers possibly nested within inner block statements.
20699 (emit_sequence_entry_statements): New function, to emit special
20700 statements on entry of sequences when necessary. Establish GNAT
20701 condition handler in the proper cases for VMS.
20702 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
20703 emit_sequence_entry_statements.
20705 * utils2.c (find_common_type): If both input types are BLKmode and
20706 have a constant size, use the smaller one.
20707 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
20710 * utils.c (value_factor_p): Make public, to allow uses from other gigi
20712 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
20713 (convert, case UNION_TYPE): Remove special treatment for unchecked
20717 (update_pointer_to): Update variants of pointer types to unconstrained
20718 arrays by attaching the list of fields of the main variant.
20720 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20721 Robert Dewar <dewar@adacore.com>
20723 * a-exexpr.adb, a-exexpr-gcc.adb
20724 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
20725 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
20726 Remove code unused for exception propagation for the compiler itself
20727 from a-except.adb and update to still share separate packages.
20729 * a-except.ads, a-except.adb: Ditto.
20730 Add comments that this version is now used only by the compiler and
20731 other basic tools. The full version that includes the Ada 2005 stuff
20732 is in separate files a-except-2005.ads/adb. The reason is that we do
20733 not want to cause bootstrap problems with compilers not recognizing
20735 Add exception reason code PE_Implicit_Return
20736 Add new exception reason code (Null Exception_Id)
20738 * a-except-2005.adb, a-except-2005.ads: New files.
20740 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
20742 * s-wchcon.adb: New file.
20744 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
20745 (traceback.o deps): Likewise.
20746 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
20747 Activate build of GMEM instrumentation library on VMS targets.
20748 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
20749 Use a-except-2005.ads/adb for all run-time library builds unless
20750 specified otherwise.
20751 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
20752 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
20753 Use s-parame.adb on all native platforms.
20754 Use s-parame-vxworks.adb on all vxworks platforms.
20755 Add env.c env.h in LIBGNAT_SRCS
20756 Add env.o in LIBGNAT_OBJS
20757 (GNATMAKE_OBJS): Remove ctrl_c.o object.
20758 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
20759 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20760 supports VxWorks 6 RTPs.
20761 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
20762 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20764 * types.h, types.ads (Terminate_Program): New exception
20765 Add comment on modifying multiple versions of a-except.adb when the
20766 table of exception reasons is modified.
20767 Add exception reason code PE_Implicit_Return
20768 Add new exception reason code (Null Exception_Id)
20770 * clean.adb (Initialize): Get the target parameters before checking
20771 if target is OpenVMS. Move the OpenVMS specific code here from package
20772 body elaboration code.
20774 2006-02-13 Thomas Quinot <quinot@adacore.com>
20775 Vincent Celier <celier@adacore.com>
20776 Robert Dewar <dewar@adacore.com>
20778 * ali-util.adb (Get_File_Checksum): Update to account for change in
20779 profile of Initialize_Scanner.
20781 * gprep.adb (Gnatprep): Update to account for change in profile of
20782 Initialize_Scanner.
20783 (Process_One_File): Same.
20785 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
20786 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
20787 that behaviour using the new Unit information recorded in the source
20788 files table, rather than going through all units every time.
20789 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
20790 (Get_Source_Unit): Same.
20792 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
20793 change in profile of Initialize_Scanner.
20794 (Prepare_To_Preprocess): Same.
20796 * lib.ads: Fix typo in comment (templace -> template).
20798 * prj-part.adb (Parse_Single_Project): Update to account for change in
20799 profile of Initialize_Scanner.
20801 * scn.adb (Initialize_Scanner): Account for change in profile of
20802 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
20803 Also record the association of the given Source_File_Index to the
20804 corresponding Unit_Number_Type.
20806 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
20808 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
20809 Remove Unit formal for generic scanner: this formal
20810 is only relevant to Scn (the scanner instance used to parse Ada source
20811 files), not to other instances. Update comment accordingly.
20812 (Scan): Use new function Snames.Is_Keyword_Name.
20814 * sinfo-cn.adb: Fix typo in comment.
20816 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
20819 * sinput.ads (Source_File_Record): New component Unit, used to capture
20820 the unit identifier (if any) associated to a source file.
20822 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
20823 Unit in Source_File_Record.
20825 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
20826 in profile of Initialize_Scanner.
20828 * scans.adb (Initialize_Ada_Keywords): New procedure
20830 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
20831 Ada keywords in the Namet table, without the need to call
20832 Initialize_Scanner.
20834 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
20835 (Is_Keyword_Name): New function
20837 * snames.ads: Add subtype Configuration_Pragma_Names
20838 Add pragma Ada_2005 (synonym for Ada_05)
20839 (Is_Keyword_Name): New function
20841 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
20843 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20845 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
20848 * a-stwima.adb (To_Set): Add extra check when N = 0.
20850 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
20852 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20854 * s-parame-mingw.adb, s-parame-linux.adb,
20855 s-parame-solaris.adb: Removed, replaced by s-parame.adb
20857 * s-parame-vxworks.ads: Fix typo.
20859 * s-parame-vxworks.adb: New file.
20861 * s-parame.adb: Version now used by all native platforms.
20862 (Default_Stack_Size): Use 2 megs for default stack size and use
20863 __gl_default_stack_size when available.
20864 (Minimum_Stack_Size): Use 12K.
20866 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
20867 (Create_Task): Refine implementation taking advantage of the XP stack
20868 size support. On XP, we now create the thread using the flag
20869 STACK_SIZE_PARAM_IS_A_RESERVATION.
20871 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
20873 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
20874 XP and 0 on older Windows versions.
20876 * interfac-vms.ads: Removed, no longer used.
20878 2006-02-13 Matthew Heaney <heaney@adacore.com>
20880 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
20881 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
20882 a-cohase.adb: All explicit raise statements now include an exception
20885 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
20886 (Update_Element_Preserving_Key): renamed op to just Update_Element.
20887 Explicit raise statements now include an exception message
20889 * a-cihase.ads, a-cohase.ads: Removed comment.
20891 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
20892 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
20893 a-szbzha.adb, a-szfzha.ads: New files.
20895 2006-02-13 Matthew Heaney <heaney@adacore.com>
20897 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
20900 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20902 * lang.opt: Wvariadic-macros: New option.
20903 Wold-style-definition: Likewise.
20904 Wmissing-format-attribute: Likewise.
20906 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
20907 -Wold-style-definition and -Wmissing-format-attribute.
20909 2006-02-13 Robert Dewar <dewar@adacore.com>
20911 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
20913 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
20915 2006-02-13 Nicolas Roche <roche@adacore.com>
20917 * a-envvar.adb, a-envvar.ads: New files.
20919 2006-02-13 Douglas Rupp <rupp@adacore.com>
20921 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
20923 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
20925 2006-02-13 Pat Rogers <rogers@adacore.com>
20927 * a-rttiev.adb, a-rttiev.ads: New files.
20929 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20931 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
20932 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
20934 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
20936 2006-02-13 Robert Dewar <dewar@adacore.com>
20938 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
20939 sem_case.adb: Minor code reorganization (not Present should be No)
20941 2006-02-13 Geert Bosch <bosch@adacore.com>
20942 Gary Dismukes <dismukes@adacore.com>
20944 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
20945 0, since the lower bound of the actual string may be greater than one.
20948 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
20949 layout is requested.
20951 2006-02-13 Vincent Celier <celier@adacore.com>
20953 * back_end.adb (Scan_Compiler_Arguments): Check if
20954 Search_Directory_Present is True and, if it is, add the argument in
20955 the source search directory path.
20957 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20958 Search_Directory_Present to True.
20960 2006-02-13 Joel Brobecker <brobecke@adacore.com>
20962 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20963 volatile, to tell the compiler to preserve this variable at any level
20965 (Gen_Versions_Ada): Temporarily work around codegen bug.
20967 2006-02-13 Vincent Celier <celier@adacore.com>
20969 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20970 gcc to link with option -shared-libgcc.
20971 (Gnatlink): Remove duplicate switches -shared-libgcc
20973 2006-02-13 Robert Dewar <dewar@adacore.com>
20975 * gnatvsn.ads (Current_Year): New constant, used to easily update
20976 copyright on all GNAT tools.
20978 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20981 2006-02-13 Robert Dewar <dewar@adacore.com>
20983 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20984 after hyphen (small aesthetic change useful for a range of numbers
20986 Suppress range checks for a couple of assignments which otherwise
20987 cause validity checks with validity checking turned on.
20989 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20990 Improvement in error message for object.
20991 (Rep_Item_Too_Late): Remove '!' in warning message.
20993 2006-02-13 Robert Dewar <dewar@adacore.com>
20994 Eric Botcazou <ebotcazou@adacore.com>
20996 * err_vars.ads: Suppress range checks for a couple of assignments
20997 which otherwise cause validity checks with validity checking turned on.
21000 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
21001 Make message unconditional if it is a warning.
21002 (Error_Msg_NEL): Always output warning messages.
21003 Suppress range checks for a couple of assignments which otherwise
21004 cause validity checks with validity checking turned on.
21006 * errout.ads (Message Insertion Characters): Document that '!' is
21007 implied by '?' in error messages.
21009 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
21010 (Gnat1drv): Use a goto to end of main subprogram instead of
21011 Exit_Program (E_Success) so that finalization can occur normally.
21013 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
21015 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
21018 2006-02-13 Vincent Celier <celier@adacore.com>
21020 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
21021 Unchecked_Conversion functions.
21022 (Modification_Time): Use direct conversion of OS_Time to Calendar time
21023 when OpenVMS returns False.
21025 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
21026 a-dirval.adb (OpenVMS): New Boolean function
21028 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21029 Thomas Quinot <quinot@adacore.com>
21031 * checks.adb (Build_Discriminant_Checks): If the expression being
21032 checks is an aggregate retrieve the values of its discriminants to
21033 generate the check, rather than creating a temporary and a reference
21035 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
21036 (Install_Null_Excluding_Check): Ditto
21037 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
21038 not for the renamed object, so that the actual itype is attached in the
21041 2006-02-13 Robert Dewar <dewar@adacore.com>
21042 Vincent Celier <celier@adacore.com>
21044 * debug.adb: Eliminate numeric switches for binder/gnatmake
21046 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
21047 switches for the compiler.
21048 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
21049 (Scan_Make_Switches): When failing with an illegal switch, output an
21050 error message with the full switch.
21051 Eliminate numeric switches for binder/gnatmake
21053 * switch.ads, switch.adb (Bad_Switch): New procedure
21055 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
21056 Remove 0-9 as debug flag character possibilities
21057 -d is now controlling the primary stack size when its value is a
21058 positive. Also add checks against invalid values, and support for kb,
21059 mb. Ditto for -D switch.
21061 2006-02-13 Robert Dewar <dewar@adacore.com>
21062 Serguei Rybin <rybin@adacore.com>
21064 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
21065 save/restore routines.
21066 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21067 were not always properly handled previously.
21068 Since we are changing the tree format anyway, also get rid of the
21069 junk obsolete Immediate_Errors flag.
21070 (Tree_Read): Change the way of reading Tree_Version_String - now we
21071 read the version string from the tree even if its length is not the
21072 same as the length of the version string computed from Gnatvsn.
21073 (Search_Directory_Present): New Boolean flag for the compiler.
21074 Define Tree_Version_String as a dynamic string.
21075 (Default_Stack_Size): new variable, used to handle switch -d.
21078 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
21079 only for main unit.
21080 Add pragma Ada_2005 (synonym for Ada_05)
21081 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21082 were not always properly handled previously.
21084 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
21085 explicit Ada_95 to Ada_2005.
21087 2006-02-13 Javier Miranda <miranda@adacore.com>
21088 Robert Dewar <dewar@adacore.com>
21089 Ed Schonberg <schonberg@adacore.com>
21091 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
21092 against errors in the source program: a private types for which the
21093 corresponding full type declaration is missing and pragma CPP_Virtual
21095 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
21096 (Is_Known_Null): New flag
21097 (Has_Pragma_Pure): New flag
21098 (No_Return): Present in all entities, set only for procedures
21099 (Is_Limited_Type): A type whose ancestor is an interface is limited if
21100 explicitly declared limited.
21101 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
21102 entities. Only used for component marked Is_Tag. If present it stores
21103 the Offset_To_Top function used to provide this value in tagged types
21104 whose ancestor has discriminants.
21106 * exp_ch2.adb: Update status of new Is_Known_Null flag
21108 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
21110 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
21111 the categorization sense if Is_Pure was set by pragma Pure_Function.
21113 2006-02-13 Quentin Ochem <ochem@adacore.com>
21114 Olivier Hainque <hainque@adacore.com>
21116 * bindusg.adb: Updated documentation for -d and -D switches.
21118 * raise.h (__gnat_set_globals): added new parameter for
21119 Default_Stack_Size.
21121 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
21122 (__gnat_handle_vms_condition): Adjust context before raise.
21123 (__gnat_install_handler): Restore the global vector setup for GCC
21124 versions before 3.4, as the frame based circtuitry is not available
21126 (__gnat_set_globals): added a parameter default_stack_size
21127 (__gl_default_stack_size): new variable.
21129 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21131 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
21132 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
21133 does not exist in the Ada RM.
21134 (Compatible_Int_Bounds): Determine whether two integer range bounds
21135 are of equal length and have the same start and end values.
21136 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
21137 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
21138 aggregate when it is part of an object declaration.
21139 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
21140 constrains discriminants of its parent, add explicitly the discriminant
21141 constraints of the ancestor by retrieving them from the
21142 stored_constraint of the parent.
21144 2006-02-13 Robert Dewar <dewar@adacore.com>
21146 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
21147 attribute Mechanism_Code is applied to renamed subprogram, modify
21148 prefix to point to base subprogram.
21149 Max/Min attributes now violate Restriction No_Implicit_Conditionals
21151 * sinfo.ads: Document that Mechanism_Code cannot be applied to
21152 renamed subprograms so that the front-end must replace the prefix
21155 2006-02-13 Javier Miranda <miranda@adacore.com>
21156 Gary Dismukes <dismukes@adacore.com>
21158 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
21159 availability of RE_Interface_Tag.
21160 (Build_Initialization_Call): Fix wrong access to the discriminant value.
21161 (Freeze_Record_Type): Do not generate the tables associated with
21162 timed and conditional dispatching calls through synchronized
21163 interfaces if compiling under No_Dispatching_Calls restriction.
21164 When compiling for Ada 2005, for a nonabstract
21165 type with a null extension, call Make_Controlling_Function_Wrappers
21166 and insert the wrapper function declarations and bodies (the latter
21167 being appended as freeze actions).
21168 (Predefined_Primitive_Bodies): Do not generate the bodies of the
21169 predefined primitives associated with timed and conditional
21170 dispatching calls through synchronized interfaces if we are
21171 compiling under No_Dispatching_Calls.
21172 (Build_Init_Procedure): Use RTE_Available to check if a run-time
21173 service is available before generating a call.
21174 (Make_Controlling_Function_Wrappers): New procedure.
21175 (Expand_N_Full_Type_Declaration): Create a class-wide master for
21176 access-to-limited-interfaces because they can be used to reference
21177 tasks that implement such limited interface.
21178 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
21179 procedure spec and body of the Offset_To_Top function that is generated
21180 when the parent of a type with discriminants has secondary dispatch
21182 (Init_Secondary_Tags): Handle the case in which the parent of the type
21183 containing secondary dispatch tables has discriminants to generate the
21184 correct arguments to call Set_Offset_To_Top.
21185 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
21187 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
21188 Add Wide_[Wide_]Expanded_Name.
21189 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
21190 the same functionality of Get_Prim_Op_Address but applied to predefined
21191 primitive operations because the pointers to the predefined primitives
21192 are now saved in a separate table.
21193 (Parent_Size): Modified to get access to the separate table of primitive
21194 operations or the parent type.
21195 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
21196 functionality of Set_Prim_Op_Address but applied to predefined primitive
21198 (Set_Signature): New subprogram used to store the signature of a DT.
21199 (Displace): If the Offset_To_Top value is not static then call the
21200 function generated by the expander to get such value; otherwise use
21201 the value stored in the table of interfaces.
21202 (Offset_To_Top): The type of the actual has been changed to Address to
21203 give the correct support to tagged types with discriminants. In this
21204 case this value is stored just immediately after the tag field.
21205 (Set_Offset_To_Top): Two new formals have been added to indicate if the
21206 offset_to_top value is static and hence pass this value to the run-time
21207 to store it in the table of interfaces, or else if this value is dynamic
21208 and then pass to the run-time the address of a function that is
21209 generated by the expander to provide this value for each object of the
21212 * rtsfind.ads (Default_Prin_Op_Count): Removed.
21213 (Default_Prim_Op_Count): New entity
21214 (Get_Predefined_Prim_Op_Address): New entity
21215 (Set_Predefined_Prim_Op_Address): New entity
21216 (RE_Set_Signature): New entity
21218 2006-02-13 Thomas Quinot <quinot@adacore.com>
21219 Ed Schonberg <schonberg@adacore.com>
21221 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
21222 Make_Adjust_Call done for a newly-allocated object.
21224 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
21225 in a subprogram are wrapped in a cleanup block, indicate that the
21226 subprogram contains an inner block with an exception handler.
21227 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
21228 Adjust call is for a newly-allocated object. In that case we must not
21229 assume that the finalization list chain pointers are correct (since they
21230 come from a bit-for-bit copy of the original object's pointers) so if
21231 the attach level would otherwise be zero (no change), we set it to 4
21232 instead to cause the pointers to be reset to null.
21234 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
21235 reset chain pointers to null.
21237 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21239 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
21240 string, and the context requires a loop for the assignment (e.g.
21241 because the left-hand side is packed), generate a unique name for the
21242 temporary that holds the string, to prevent spurious name clashes.
21244 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21245 Javier Miranda <miranda@adacore.com>
21246 Robert Dewar <dewar@adacore.com>
21247 Gary Dismukes <dismukes@adacore.com>
21249 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
21250 return unconstrained arrays.
21252 (Expand_Call): An indirect call through an access parameter of a
21253 protected operation is not a protected call.
21254 Add circuit to raise CE in Ada 2005 mode following call
21255 to Raise_Exception.
21256 (Register_DT_Entry): Do nothing if
21257 the run-time does not give support to abstract interfaces.
21258 (Freeze_Subprogram): In case of dispatching operations, do not generate
21259 code to register the operation in the dispatch table if the source
21260 is compiled with No_Dispatching_Calls.
21261 (Register_Predefined_DT_Entry): Generate code that calls the new
21262 run-time subprogram Set_Predefined_Prim_Op_Address instead of
21263 Set_Prim_Op_Address.
21265 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
21266 on array assignments if the right-hand side is a function call that has
21267 been inlined. Check is performed on the assignment in the block.
21268 (Process_Bounds): If bounds and range are overloaded, apply preference
21269 rule for root operations to disambiguate, and diagnose true ambiguity.
21270 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
21271 a tag-indeterminate right-hand side even when Expander_Active is True.
21272 Needed to ensure that dispatching calls to T'Input are allowed and
21273 get the tag of the target class-wide object.
21275 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
21276 an inherited primitive operation that already overrides several
21277 abstract interface primitives. For transitivity, the new entity must
21278 also override all the abstract interface primitives covered by the
21279 inherited overriden primitive.
21280 Emit warning if new entity differs from homograph in same scope only in
21281 that one has an access parameter and the other one has a parameter of
21282 a general access type with the same designated type, at the same
21283 position in the signature.
21284 (Make_Inequality_Operator): Use source locations of parameters and
21285 subtype marks from corresponding equality operator when creating the
21286 tree structure for the implicit declaration of "/=". This does not
21287 change anything in behaviour except that the decoration of the
21288 components of the subtree created for "/=" allows ASIS to get the
21289 string images of the corresponding identifiers.
21290 (Analyze_Return_Statement): Remove '!' in warning message.
21291 (Check_Statement_Sequence): Likewise.
21292 (Analyze_Subprogram_Body): For an access parameter whose designated type
21293 is an incomplete type imported through a limited_with clause, use the
21294 type of the corresponding formal in the body.
21295 (Check_Returns): Implicit return in No_Return procedure now raises
21296 Program_Error with a compile time warning, instead of beging illegal.
21297 (Has_Single_Return): Function returning unconstrained type cannot be
21298 inlined if expression in unique return statement is not an identifier.
21299 (Build_Body_To_Inline): It is possible to inline a function call that
21300 returns an unconstrained type if all return statements in the function
21301 return the same local variable. Subsidiary procedure Has_Single_Return
21302 verifies that the body conforms to this restriction.
21304 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
21305 same type, and one of them is of an anonymous access type, convert
21306 the other operand to it, so that this is a valid binary operation for
21308 (Resolve_Type_Conversion): Handle subtypes of protected types and
21309 task types when accessing to the corresponding record type.
21310 (Resolve_Allocator): Add '\' in 2-line warning message.
21311 Remove '!' in warning message.
21312 (Resolve_Call): Add '\' in 2-line warning message.
21313 (Valid_Conversion): Likewise.
21314 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
21315 resulting type may be an access type with an implicit dereference.
21316 Obtain the proper component from the designated type.
21317 (Make_Call_Into_Operator): Handle properly a call to predefined equality
21318 given by an expanded name with prefix Standard, when the operands are
21319 of an anonymous access type.
21320 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
21321 Explicit_Dereference and Resolve_Selected_Component, to verify that the
21322 prefix of the expression is not of an incomplete type. Allows full
21323 diagnoses of all semantic errors.
21324 (Resolve_Actuals): If the actual is an allocator whose directly
21325 designated type is a class-wide interface we build an anonymous
21326 access type to use it as the type of the allocator. Later, when
21327 the subprogram call is expanded, if the interface has a secondary
21328 dispatch table the expander will add a type conversion to force
21329 the displacement of the pointer.
21330 (Resolve_Call): If a function that returns an unconstrained type is
21331 marked Inlined_Always and inlined, the call will be inlined and does
21332 not require the creation of a transient scope.
21333 (Check_Direct_Boolean_Op): Removed
21334 (Resolve_Comparison_Op): Remove call to above
21335 (Resolve_Equality_Op): Remove call to above
21336 (Resolve_Logical_Op): Inline above, since this is only call.
21337 (Valid_Conversion): Handle properly conversions between arrays of
21338 convertible anonymous access types.
21341 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
21342 the literal in an unchecked conversion, because GCC 4.x needs a static
21343 value for a string bound.
21345 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21346 Hristian Kirtchev <kirtchev@adacore.com>
21348 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
21349 components of the corresponding record, take into account component
21350 definitions that are access definitions.
21351 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
21352 procedure is not considered a dispatching call and will be expanded
21355 2006-02-13 Javier Miranda <miranda@adacore.com>
21357 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
21358 controlling argument of the dispatching call is an abstract interface
21359 class-wide type then we use it directly.
21360 Check No_Dispatching_Calls restriction.
21361 (Default_Prim_Op_Position): Remove the code that looks for the last
21362 entity in the list of aliased subprograms. This code was wrong in
21364 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
21365 when the source is compiled with the No_Dispatching_Calls restriction.
21366 (Init_Predefined_Interface_Primitives): No need to inherit primitives
21367 if we are compiling with restriction No_Dispatching_Calls.
21368 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
21369 subprograms if we are compiling under No_Dispatching_Calls restriction.
21370 (Make_DT): Generate a dispatch table with a single dummy entry if
21371 we are compiling with the No_Dispatching_Calls restriction. In
21372 addition, in this case we don't generate code that calls to the
21373 following run-time subprograms: Set_Type_Kind, Inherit_DT.
21374 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
21375 of this subprogram if compiling with the No_Dispatching_Calls
21377 (Expand_Type_Conversion): Instead of using the actual parameter,
21378 the argument passed as parameter to the conversion function was
21379 erroneously referenced by the expander.
21380 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
21381 Set_Predefined_Primitive_Op_Address and Set_Signature.
21382 (Expand_Dispatching_Call): Generate call to
21383 Get_Predefined_Prim_Op_Address for predefined primitives.
21384 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
21385 predefined primitives.
21386 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
21387 primitives we reserve one dummy entry to ensure that the tag does not
21388 point to some memory that is associated with some other object. In
21389 addition, remove all the old code that generated the assignments
21390 associated with the signature of the dispatch table and replace them
21391 by a call to the new subprogram Set_Signature.
21392 (Set_All_DT_Position): Change the algorithm because now we have a
21393 separate dispatch table associated with predefined primitive operations.
21394 (Expand_Interface_Conversion): In case of non-static offset_to_top
21395 add explicit dereference to get access to the object after the call
21396 to displace the pointer to the object.
21397 (Expand_Interface_Thunk): Modify the generation of the actual used
21398 in the calls to the run-time function Offset_To_Top to fulfil its
21400 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
21402 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21404 * exp_dist.adb (Copy_Specification): For access parameters, copy
21405 Null_Exclusion flag, which will have been set for stream subprograms
21408 2006-02-13 Pascal Obry <obry@adacore.com>
21410 * expect.c (__gnat_expect_portable_execvp): New implementation. The
21411 previous implementation was using the C runtime spawnve routine but
21412 the corresponding wait was using directly the Win32 API. This was
21413 causing some times a lock when waiting for an event using
21414 WaitForSingleObject in __gnat_waitpid. This new implementation uses
21415 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
21416 API fixes this problem.
21418 2006-02-13 Robert Dewar <dewar@adacore.com>
21420 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
21423 2006-02-13 Thomas Quinot <quinot@adacore.com>
21425 * exp_pakd.ads: Fix typos in comments.
21427 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
21428 array reference that is an explicit dereference, mark the converted
21429 (packed) array reference as analyzed to prevent a forthcoming
21430 reanalysis from resetting its type to the original (non-packed) array
21433 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21434 Javier Miranda <miranda@adacore.com>
21435 Eric Botcazou <ebotcazou@adacore.com>
21437 * exp_util.ads, exp_util.adb (Find_Prim_Op,
21438 Is_Predefined_Primitive_Operation): When
21439 searching for the predefined equality operator, verify that operands
21440 have the same type.
21441 (Is_Predefined_Dispatching_Operation): Remove the code that looks
21442 for the last entity in the list of aliased subprograms. This code
21443 was wrong in case of renamings.
21444 (Set_Renamed_Subprogram): New procedure
21445 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
21446 Exp_Type constant computed when entering this subprogram.
21447 (Known_Null): New function
21448 (OK_To_Do_Constant_Replacement): New function
21449 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
21450 (Side_Effect_Free): An attribute reference 'Input is not free of
21451 side effect, unlike other attributes that are functions. (from code
21453 (Remove_Side_Effects): Expressions that involve packed arrays or records
21454 are copied at the point of reference, and therefore must be marked as
21455 renamings of objects.
21456 (Is_Predefined_Dispatching_Operation): Return false if the operation is
21457 not a dispatching operation.
21460 (Remove_Side_Effects): Lift enclosing type conversion nodes for
21461 elementary types in all cases.
21463 2006-02-13 Javier Miranda <miranda@adacore.com>
21465 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
21466 task types when accessing to the corresponding record type.
21467 Remove '!' in warning message.
21469 2006-02-13 Olivier Hainque <hainque@adacore.com>
21471 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
21472 to avoid useless and space inefficient overalignments on targets where
21473 Max_Alignment is larger than 16.
21475 2006-02-13 Pascal Obry <obry@adacore.com>
21477 * g-catiio.adb (Sec_Number): New type used to compute the number of
21478 seconds since 1-1-1970.
21479 (Image) [Natural]: The parameter was an Integer, as we can't deal with
21480 negative numbers (years, months...) it is better to have a Natural here.
21482 (Image) [Number]: Change parameter from Long_Integer to Number.
21483 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
21484 overflow for dates past year 2038.
21486 2006-02-13 Matthew Heaney <heaney@adacore.com>
21488 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
21491 2006-02-13 Arnaud Charlet <charlet@adacore.com>
21493 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
21495 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
21496 finalization can occur normally.
21498 2006-02-13 Vincent Celier <celier@adacore.com>
21500 * gnatcmd.adb (Rules_Switches): New table
21501 (Add_To_Rules_Switches): New procedure
21502 (GNATCmd): For command CHECK, put all options following "-rules" in the
21503 Rules_Switches table. Append these -rules switches after the -cargs
21506 2006-02-13 Robert Dewar <dewar@adacore.com>
21508 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
21509 These two cases were generating incorrect output, and if this unit
21510 was built with checks on, generated a discriminant mismatch constraint
21513 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21514 Robert Dewar <dewar@adacore.com>
21516 * lib-xref.adb (Get_Type_Reference): For a private type whose full
21517 view is an array type, indicate the component type as well, for
21518 navigation purposes.
21519 (Generate_Reference): Don't consider array ref on LHS to be a case
21520 of violating pragma Unreferenced.
21521 Do not give Ada 2005 warning except on real reference.
21523 2006-02-13 Vincent Celier <celier@adacore.com>
21525 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
21526 main source, add switch -mdebug-main=_ada_ so that the executable can
21527 be debugged by the standard VMS debugger.
21528 (Gnatmake): Set No_Main_Subprogram to True when there is no main
21529 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
21530 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
21531 of the last source, as the binding and linking phases are never
21533 Set all executable obsolete when rebuilding a library.
21535 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
21538 2006-02-13 Javier Miranda <miranda@adacore.com>
21541 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
21542 code to improve the error message reported when the program has
21543 declarations of abstract interface types and it is not compiled with
21544 the -gnat05 switch.
21545 (P_Access_Definition): Reorganize the code to improve the error
21546 message reported when the new Ada 2005 syntax for anonymous
21547 access types is used and the program is not compiled with the
21550 2006-02-13 Robert Dewar <dewar@adacore.com>
21552 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
21553 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
21556 2006-02-13 Javier Miranda <miranda@adacore.com>
21558 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
21559 against source containing syntax errors.
21561 2006-02-13 Vincent Celier <celier@adacore.com>
21563 * prj.adb (Reset): Initialize the first element of table Namings with
21564 the standard naming data.
21566 2006-02-13 Vincent Celier <celier@adacore.com>
21568 * prj.ads (Error_Warning): New enumeration type
21570 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
21571 unknown, use the location of the project to report the error.
21572 (When_No_Sources): New global variable
21573 (Report_No_Ada_Sources): New procedure
21574 (Check): New parameter When_No_Sources. Set value of global variable
21576 (Find_Sources): Call Report_No_Ada_Sources when appropriate
21577 (Get_Sources_From_File): Ditto
21578 (Warn_If_Not_Sources): Better warning messages indicating the unit name
21581 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
21582 Call Prj.Proc.Process with parameter When_No_Sources.
21584 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
21585 Call Recursive_Check with parameter When_No_Sources.
21586 (Recursive_Check): New parameter When_No_Sources. Call itself and
21587 Prj.Nmsc.Check with parameter When_No_Sources.
21588 (Process): New parameter When_No_Sources. Call Check with parameter
21590 (Copy_Package_Declarations): New procedure to copy renamed parameters
21591 and setting the location of the declared attributes to the location
21592 of the renamed package.
21593 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
21596 2006-02-13 Vincent Celier <celier@adacore.com>
21598 * prj-makr.adb (Make): Preserve the comments from the original project
21600 When removing nodes (attributes Source_Dirs, Source_Files,
21601 Source_List_File and package Naming), save the comments and attach the
21602 saved comments to the newly created nodes.
21603 Do not add a with clause for the naming package if one already exists.
21605 2006-02-13 Javier Miranda <miranda@adacore.com>
21606 Gary Dismukes <dismukes@adacore.com>
21607 Robert Dewar <dewar@adacore.com>
21609 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
21611 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
21612 aliased entities to look for the overriden abstract interface
21614 (Is_Interface_Subprogram): Complete documentation.
21615 (Check_Dispatching_Operation): Do not generate code to register the
21616 operation in the dispatch table if the source is compiled with
21617 restriction No_Dispatching_Calls.
21618 (Override_Dispatching_Operation): Check for illegal attempt to override
21619 No_Return procedure with procedure that is not No_Return
21620 (Check_Dispatching_Call): Suppress the check for an abstract operation
21621 when the original node of an actual is a tag-indeterminate attribute
21622 call, since the attribute, which must be 'Input, can never be abstract.
21623 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
21624 call to the Input attribute (even when rewritten).
21625 (Propagate_Tag): Augment comment to indicate the possibility of a call
21626 to an Input attribute.
21628 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
21629 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
21631 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
21632 No_Wide_Characters is no longer partition-wide
21633 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
21636 2006-02-13 Douglas Rupp <rupp@adacore.com>
21638 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
21640 2006-02-13 Javier Miranda <miranda@adacore.com>
21642 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
21643 handles default-initialized components to keep separate the management
21644 of this feature but also avoid the unrequired resolution and
21645 expansion of components that do not have partially initialized
21647 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
21648 (Check_Bounds): Likewise.
21649 (Check_Length): Likewise.
21651 2006-02-13 Javier Miranda <miranda@adacore.com>
21652 Ed Schonberg <schonberg@adacore.com>
21654 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
21655 abstract interface type call analyze_and_resolve to expand the type
21656 conversion into the corresponding displacement of the
21657 reference to the base of the object.
21658 (Eval_Attribute, case Width): For systems where IEEE extended precision
21659 is supported, the maximum exponent occupies 4 decimal digits.
21660 (Accessibility_Message): Add '\' in 2-line warning message.
21661 (Resolve_Attribute): Likewise.
21662 (case Attribute_Access): Significantly revise checks
21663 for illegal access-to-subprogram Access attributes to properly enforce
21664 the rules of 3.10.2(32/2).
21665 Diagnose use of current instance with an illegal attribute.
21667 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
21669 (Enclosing_Generic_Unit): New function to return a node's innermost
21670 enclosing generic declaration node.
21671 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
21672 (Type_Access_Level): The accessibility level of anonymous acccess types
21673 associated with discriminants is that of the current instance of the
21674 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
21675 (Compile_Time_Constraint_Error): Handle case of conditional expression.
21676 (Kill_Current_Values_For_Entity): New function
21677 (Enter_Name): Change formal type to Entity_Id
21679 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
21680 Ed Schonberg <schonberg@adacore.com>
21681 Gary Dismukes <dismukes@adacore.com>
21683 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
21684 Analyze_Compilation_Unit.
21685 Detect and warn on redundant with clauses detected in a package spec
21686 and/or body when -gnatwr is used.
21687 (Analyze_Context): Analyze config pragmas before other items
21688 (Install_Context_Items): Don't analyze config pragmas here
21689 (Install_Limited_Withed_Unit): Set limited entity of package in
21690 with_clause so that cross-reference information or warning messages on
21691 unused packages can be properly generated
21692 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
21693 has Error_Posted set. Prevent infinite loops in illegal programs.
21694 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
21695 to the point of the error test requiring the current unit to be private.
21696 This ensures that private with clauses are not exempted from the basic
21697 checking for being a descendant of the same library unit parent as a
21698 withed private descendant unit.
21699 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
21700 handle private with clauses properly, as well as to account for cases
21701 where the withed unit is a public descendant of a private ancestor
21702 (in which case the current unit must be a descendant of the private
21703 ancestor's parent). The spec comments were updated accordingly. Also,
21704 the old error message in this subprogram was replaced with error
21705 messages that mirror the errors tested and reported by
21706 Check_Private_Child_Unit.
21707 Parameter and variable names improved for readability.
21708 (Install_Limited_Context_Clauses): Remove test for a withed unit being
21709 private as the precondition for calling
21710 Check_Private_Limited_Withed_Unit since that subprogram has been
21711 revised to test public units as well as private units.
21713 2006-02-13 Thomas Quinot <quinot@adacore.com>
21714 Robert Dewar <dewar@adacore.com>
21715 Ed Schonberg <schonberg@adacore.com>
21716 Javier Miranda <miranda@adacore.com>
21718 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
21719 that Scope_Stack.First = 1.
21720 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21721 were not always properly handled previously.
21722 (Formal_Entity): Complete rewrite, to handle properly some complex case
21723 with multiple levels of parametrization by formal packages.
21724 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
21725 to the corresponding derived type declaration for proper semantics.
21727 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
21728 (Check_Component): Enforce restriction on components of
21729 unchecked_unions: a component in a variant cannot contain tasks or
21731 (Unchecked_Union): Allow nested variants and multiple discriminants, to
21733 Add pragma Ada_2005 (synonym for Ada_05)
21734 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21735 were not always properly handled previously.
21736 Document that pragma Propagate_Exceptions has no effect
21737 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
21738 (Set_Convention_From_Pragma): Check that if a convention is
21739 specified for a dispatching operation, then it must be
21740 consistent with the existing convention for the operation.
21741 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
21742 longer required to specify an vtable-ptr component in the record. For
21743 compatibility reasons we leave the support for the previous definition.
21744 (Analyze_Pragma, case No_Return): Allow multiple arguments
21746 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
21747 non-overrideen inherited operation with a controlling result as
21748 illegal only its implicit declaration comes from the derived type
21749 declaration of its result's type.
21750 (Check_Possible_Deferred_Completion): Relocate the object definition
21751 node of the subtype indication of a deferred constant completion rather
21752 than directly analyzing it. The analysis of the generated subtype will
21753 correctly decorate the GNAT tree.
21754 (Record_Type_Declaration): Check whether this is a declaration for a
21755 limited derived record before analyzing components.
21756 (Analyze_Component_Declaration): Diagnose record types not explicitly
21757 declared limited when a component has a limited type.
21758 (Build_Derived_Record_Type): Code reorganization to check if some of
21759 the inherited subprograms of a tagged type cover interface primitives.
21760 This check was missing in case of a full-type associated with a private
21762 (Constant_Redeclaration): Check that the subtypes of the partial and the
21763 full view of a constrained deferred constant statically match.
21764 (Mentions_T): A reference to the current type in an anonymous access
21765 component declaration must be an entity name.
21766 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
21767 class_wide type to refer to full type, not to the incomplete one.
21768 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
21769 available. Required to give support to the certified run-time.
21770 (Analyze_Component_Declaration): In case of anonymous access components
21771 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
21772 (Process_Discriminants): For an access discriminant, use the
21773 discriminant specification as the associated_node_for_itype, to
21774 simplify accessibility checks.
21776 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21777 Javier Miranda <miranda@adacore.com>
21779 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
21780 abstract interpretations on an operator, remove interpretations that
21781 yield Address or a type derived from it, if one of the operands is an
21783 (Try_Object_Operation.Try_Primitive_Operation,
21784 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
21785 location when creating the new reference to a primitive or class-wide
21786 operation as a part of rewriting a subprogram call.
21787 (Try_Primitive_Operations): If context requires a function, collect all
21788 interpretations after the first match, because there may be primitive
21789 operations of the same type with the same profile and different return
21790 types. From code reading.
21791 (Try_Primitive_Operation): Use the node kind to choose the proper
21792 operation when a function and a procedure have the same parameter
21794 (Complete_Object_Operation): If formal is an access parameter and prefix
21795 is an object, rewrite as an Access reference, to match signature of
21796 primitive operation.
21797 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
21798 by an expanded name with prefix Standard, when the operands are of an
21799 anonymous access type.
21800 (Remove_Abstract_Operations): If the operation is abstract because it is
21801 inherited by a user-defined type derived from Address, remove it as
21802 well from the set of candidate interpretations of an overloaded node.
21803 (Analyze_Membership_Op): Membership test not applicable to cpp-class
21806 2006-02-13 Bob Duff <duff@adacore.com>
21808 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
21809 redundant use clauses.
21810 In particular, if the scope of two use clauses overlaps, but one is not
21811 entirely included in the other, we should not warn. This can happen
21812 with nested packages.
21813 (Analyze_Subprogram_Renaming): Protect the compiler against previously
21814 reported errors. The bug was reported when the compiler was built
21815 with assertions enabled.
21816 (Find_Type): If the node is a 'Class reference and the prefix is a
21817 synchronized type without a corresponding record, return the type
21820 2006-02-13 Javier Miranda <miranda@adacore.com>
21822 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
21823 if this is the full-declaration associated with a private declaration
21824 that implement interfaces, then the private type declaration must be
21826 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
21827 as aliased. The use of the 'access attribute is not available for such
21828 object (for this purpose the object should be explicitly marked as
21829 aliased, but being an anonymous type this is not possible).
21831 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21832 Robert Dewar <dewar@adacore.com>
21834 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
21835 compilation unit is an elaboration scope.
21836 (Add_Task_Proc): Add '\' in 2-line warning message.
21837 (Activate_All_Desirable): Deal with case of unit with'ed by parent
21839 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21840 Javier Miranda <miranda@adacore.com>
21842 * sem_type.adb (Write_Overloads): Improve display of candidate
21844 (Add_One_Interp): Do not add to the list of interpretations aliased
21845 entities corresponding with an abstract interface type that is an
21846 immediate ancestor of a tagged type; otherwise we have a dummy
21847 conflict between this entity and the aliased entity.
21848 (Disambiguate): The predefined equality on universal_access is not
21849 usable if there is a user-defined equality with the proper signature,
21850 declared in the same declarative part as the designated type.
21851 (Find_Unique_Type): The universal_access equality operator defined under
21852 AI-230 does not cover pool specific access types.
21853 (Covers): If one of the types is a generic actual subtype, check whether
21854 it matches the partial view of the other type.
21856 2006-02-13 Thomas Quinot <quinot@adacore.com>
21858 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
21859 line. This is necessary to allow In_Extended_Main_Unit to provide
21860 correct results for itypes while writing out expanded source.
21861 (Close_File): No need to update the source_index_table here since it's
21862 now done for each line.
21864 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21865 Robert Dewar <dewar@adacore.com>
21867 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
21868 preserve the source unit where the itype is declared, and prevent a
21870 (Note_Implicit_Run_Time_Call): New procedure
21871 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
21874 * sprint.ads: Document use of $ for implicit run time routine call
21876 2006-02-13 Quentin Ochem <ochem@adacore.com>
21878 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
21881 2006-02-13 Bob Duff <duff@adacore.com>
21883 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
21884 Scan_Unsigned, so we do not scan leading blanks and sign twice.
21885 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21886 raise Constraint_Error.
21888 * s-vallli.adb (Scan_Long_Long_Integer): Call
21889 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
21890 do not scan leading blanks and sign twice.
21891 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21892 raise Constraint_Error.
21894 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
21895 Scan_Long_Long_Unsigned): Split out most of the processing from
21896 Scan_Long_Long_Unsigned out into
21897 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
21898 This prevents scanning leading blanks and sign twice.
21899 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
21902 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
21903 out most of the processing from Scan_Unsigned out into
21904 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
21905 This prevents scanning leading blanks and sign twice.
21907 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
21908 use with Modular'Value attribute.
21909 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
21912 2006-02-13 Robert Dewar <dewar@adacore.com>
21914 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
21916 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
21918 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
21919 (PPC VxWorks): Likewise.
21920 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
21921 (forced_callee): Make non-inlinable and non-pure.
21922 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
21924 2006-02-13 Arnaud Charlet <charlet@adacore.com>
21925 Ben Brosgol <brosgol@adacore.com>
21926 Robert Dewar <dewar@adacore.com>
21928 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
21930 Document that gnatbind -M option is for cross environments only.
21931 Added description of using gnatmem to trace gnat rtl allocs and deallocs
21932 Add note on use of $ to label implicit run time calls
21933 Add documentation for -gnatyI (check mode IN)
21934 Updated chapter on compatibility with HP Ada
21935 VMS-oriented edits.
21936 Ran spell and corrected errors
21937 Add documentation for gnatbind -d and rework documentation of -D
21939 Add subprogram/data elimination section.
21940 Minor editing of annex A.
21941 Add section for gnatcheck.
21942 Add documentation for restriction No_Dispatching_Calls
21943 Add documentation for pragma Ada_2005
21944 Remove mention of obsolete pragma Propagate_Exceptions
21945 Document that pragma Unreferenced can appear after DO in ACCEPT
21946 Clarify Pure_Function for library level units
21947 Mention Max/Min in connection with No_Implicit_Conditionals
21948 No_Wide_Characters restriction is no longer partition-wide
21949 Add a nice example for Universal_Literal_String attribute
21950 Document that pragma No_Return can take multiple arguments
21952 * ug_words: Added entry for gnatcheck
21954 * g-ctrl_c.ads (Install_Handler): Enhance comments
21956 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21958 * g-trasym.ads: Add documentation on how to do off line symbolic
21959 traceback computation.
21961 * s-fatgen.adb: Add comments for Unaligned_Valid
21963 * stand.ads: Fix typo in comment
21965 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21967 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21969 2006-02-06 Roger Sayle <roger@eyesopen.com>
21971 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21973 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21976 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21977 implementation that calls __main.
21979 2006-01-25 Peter O'Gorman <peter@pogma.com>
21982 * Makefile.in (GCC_LINK): Remove quotes.
21983 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21986 (powerpc-darwin): Pass -shared-libgcc when building shared library.
21988 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21991 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21993 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21995 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21997 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21999 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
22002 2005-12-12 Arnaud Charlet <charlet@adacore.com>
22004 * Make-lang.in: Update dependencies
22006 2005-12-12 Arnaud Charlet <charlet@adacore.com>
22008 * Make-lang.in: Add rule for ada/exp_sel.o
22010 2005-12-12 Arnaud Charlet <charlet@adacore.com>
22012 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
22014 2005-12-09 Arnaud Charlet <charlet@adacore.com>
22016 * gnatvsn.ads (Library_Version): Bump to version 4.2
22017 (ASIS_Version_Number): Bumped.
22019 2005-12-09 Doug Rupp <rupp@adacore.com>
22021 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
22022 Ada bind file prefix on VMS from b$ to b__.
22023 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
22026 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
22027 Targparm.OpenVMS_On_Target.
22028 (Object_Suffix): Initialize with target object suffix.
22029 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
22031 * butil.adb: Change some Hostparm.OpenVMS checks to
22032 Targparm.OpenVMS_On_Target.
22034 * clean.adb: Change some Hostparm.OpenVMS checks to
22035 Targparm.OpenVMS_On_Target.
22036 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
22037 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
22038 Ada bind file prefix on VMS from b$ to b__.
22040 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
22041 --GCC so that Get_Target_Parameters can find system.ads.
22042 (Gnatlink): Call Get_Target_Parameters in mainline.
22043 Initialize standard packages for Targparm.
22044 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
22045 (Process_Args): Also Check for object files with target object
22047 (Make_Binder_File_Names): Create with target object extension.
22048 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
22051 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
22052 Targparm.OpenVMS_On_Target.
22053 ({declaration},Build_Library,Check_Library): Change Ada bind file
22054 prefix on VMS from b$ to b__.
22056 * osint-b.adb: Change some Hostparm.OpenVMS checks to
22057 Targparm.OpenVMS_On_Target.
22058 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
22061 * targext.c: New file.
22063 * Makefile.in: add support for vxworks653 builds
22064 (../../vxaddr2line): gnatlink with targext.o.
22065 (TOOLS_LIBS): Move targext.o to precede libgnat.
22066 (init.o, initialize.o): Minor clean up in dependencies.
22067 (GNATLINK_OBJS): Add targparm.o, snames.o
22068 Add rules fo building targext.o and linking it explicitly with all
22070 Also add targext.o to gnatlib.
22072 * Make-lang.in: Add rules for building targext.o and linking it in
22073 with gnat1 and gnatbind.
22074 Add entry for exp_sel.o.
22076 * osint.adb Change some Hostparm.OpenVMS checks to
22077 Targparm.OpenVMS_On_Target.
22078 (Object_File_Name): Use target object suffix.
22080 * osint.ads (Object_Suffix): Remove, no longer used.
22081 (Target_Object_Suffix): Initialize with target object suffix.
22083 * rident.ads: Add special exception to license.
22085 * targparm.adb (Get_Target_Parameters): Set the value of
22086 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
22088 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
22090 * targparm.ads: Add special exception to license.
22092 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
22094 (Copy_File): Make sure from file is closed if error on to file
22095 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
22097 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
22098 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
22100 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
22101 target object suffix.
22103 2005-12-09 Jose Ruiz <ruiz@adacore.com>
22104 Quentin Ochem <ochem@adacore.com>
22105 Florian Villoing <villoing@adacore.com>
22107 * a-taster.ads, a-taster.adb: New files.
22109 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
22110 link to the version that does nothing. This way the task termination
22111 routine is not executed twice for the environment task when finishing
22112 because of an unhandled exception.
22114 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
22115 handler because of an unhandled exception.
22117 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
22118 System.Tasking.Utilities instead of that in System.Tasking.Stages.
22120 * s-finimp.adb (initialization code): Modify the soft link for the
22121 finalization of the global list instead of Adafinal.
22123 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
22124 non-tasking version of the soft link for task termination. We do
22125 nothing since if we are using the non-tasking version it
22126 means that the task termination functionality is not used.
22127 (Null_Finalize_Global_List): Add this null version for the procedure
22128 in charge of finalizing the global list for controlled objects.
22129 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
22130 instead for handling run-time termination in a more flexible way.
22131 (Adafinal_NT): This new procedure will take care of finalizing the
22132 global list for controlled objects if needed, but no tasking
22135 * s-tarest.adb (Task_Lock): Do not try to lock again the
22136 Global_Task_Lock if we already own it. Otherwise, we get blocked in
22137 some run-time operations.
22138 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
22139 until all nested locks have been released.
22140 (Task_Wrapper): Call the fall-back task termination handler. It
22141 applies to all tasks but the environment task.
22142 (Finalize_Global_Tasks): Add the call for the task termination
22143 procedure for the environment task.
22144 (Task_Wrapper): suppress warnings around declaration of
22145 Secondary_Stack_Address.
22147 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
22148 moved to the Common_ATCB record.
22149 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
22150 Common_ATCB record.
22151 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
22152 Common_ATCB record.
22154 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
22155 Fall_Back_Handler, and Specific_Handler.
22157 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
22158 defined in Ada.Task_Termination, to avoid circular dependencies.
22159 (Termination_Handler): Redefine this type here, alredy defined in
22160 Ada.Task_Termination, for avoiding circular dependencies.
22161 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
22162 for storing task termination handlers. In addition,
22163 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
22164 Common_ATCB because it is used by both the regular and the restricted
22166 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
22167 Common_ATCB because it is used by both the regular and the restricted
22169 (Common_ATCB): Added a dynamic task analyzer field.
22171 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
22172 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
22173 (Task_Wrapper): Call the task termination handler. It applies to all
22174 tasks but the environment task.
22175 (Finalize_Global_Tasks): Call the task termination procedure for the
22176 environment task. The call to Finalize_Global_List is now performed
22177 using the soft links mechanism.
22178 (Task_Wrapper): added dynamic stack analysis.
22180 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
22181 potentially blocking operations has been moved from
22182 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
22183 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
22184 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
22185 this run-time check.
22187 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
22188 of task termination procedure.
22189 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
22190 link for the task termination procedure.
22192 * bindusg.adb: (Bindusg): Added documentation for -u option.
22194 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
22195 (Get_Main_C): Add handling of dynamic stack analysis.
22196 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
22198 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
22199 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
22200 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
22202 * opt.ads: Added flags used by dynamic stack measurement.
22203 (Max_Line_Length): Remove (not used anymore)
22205 * s-io.ads, s-io.adb (Standard_Error): new subprogram
22206 (Standart_Output): new subprogram
22207 (Set_Output): new subprogram
22208 (Put): now uses the value of Current_Out to know if the output has to be
22209 send to stderr or stdout.
22211 * s-stausa.ads: Complete implementation.
22213 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
22215 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
22216 list of Ada 05 files.
22217 (GNAT Library Units): Add AltiVec files.
22219 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
22220 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
22221 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
22223 2005-12-09 Nicolas Setton <setton@adacore.com>
22225 * adaint.c (__gnat_locate_regular_file): Return immediately if
22226 file_name is empty.
22228 2005-12-09 Javier Miranda <miranda@adacore.com>
22229 Hristian Kirtchev <kirtchev@adacore.com>
22231 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
22232 to the specification because the frontend generates code that uses this
22234 (Set_Interface_Table): Add missing assertion.
22235 Update documentation describing the run-time structure.
22236 (Displace): New subprogram that displaces the pointer to the object
22237 to reference one of its secondary dispatch tables.
22238 (IW_Membership): Modified to use the new table of interfaces.
22239 (Inherit_TSD): Modified to use the new table of interfaces.
22240 (Register_Interface_Tag): Use the additional formal to fill the
22241 contents of the new table of interfaces.
22242 (Set_Interface_Table): New subprogram that stores in the TSD the
22243 pointer to the table of interfaces.
22244 (Set_Offset_To_Top): Use the additional formal to save copy of
22245 the offset value in the table of interfaces.
22246 Update structure of GNAT Primary and Secondary dispatch table diagram.
22247 Add comment section on GNAT dispatch table prologue.
22248 (Offset_To_Signature): Update the constant value of the Signature field.
22249 (Dispatch_Table): Update comment on hidden fields in the prologue.
22250 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
22251 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
22252 the type of formal parameter T to Tag, introduce additional assertions.
22253 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
22255 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
22257 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
22258 in all the calls to Expand_Interface_Thunk. Instead of referencing the
22259 record component containing the tag of the secondary dispatch table we
22260 have to use the Offset_To_Top run-time function to get this information;
22261 otherwise if the pointer to the base of the object has been displace
22262 we get a wrong value if we use the 'position attribute.
22264 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
22265 all the calls to Expand_Interface_Thunk.
22266 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
22267 interfaces; hence the call to Set_Interface_Table was clearly wrong.
22268 (Collect_All_Interfaces): Modify the internal subprogram Collect to
22269 ensure that the interfaces implemented by the ancestors are placed
22270 at the header of the generated list.
22271 (Expand_Interface_Conversion): Handle the case in which the displacement
22272 associated with the interface conversion is not statically known. In
22273 this case we generate a call to the new run-time subprogram Displace.
22274 (Make_DT): Generate and fill the new table of interfaces.
22275 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
22276 Get_Tagged_Kind and Set_Tagged_Kind.
22277 (Tagged_Kind): New function that determines the tagged kind of a type
22278 with respect to limitedness and concurrency and returns a reference to
22280 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
22281 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
22282 primary dispatch table for a type.
22283 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
22284 secondary dispatch table respectively of a tagged type.
22286 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
22287 (Expand_Interface_Conversion): New subprogram to indicate if the
22288 displacement of the type conversion is statically known.
22289 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
22291 * rtsfind.ads (RE_Offset_To_Top): New entity
22292 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
22293 accessible to users.
22294 (Re_Displace): New entity
22295 (RE_Interface_Data): New entity
22296 (RE_Set_Interface_Data): New_Entity
22297 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
22298 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
22299 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
22300 RE_TK_Tagged, RE_TK_Task.
22302 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
22303 Init_Secondary_Tags_Internal to allow its use with interface types and
22304 also to generate the code for the new additional actual required
22305 by Set_Offset_To_Top.
22306 (Build_Init_Statements): In case of components associated with abstract
22307 interface types there is no need to generate a call to its IP.
22308 (Freeze_Record_Type): Generate Select Specific Data tables only for
22310 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
22311 the bodies and specifications of the predefined primitive operations
22312 dealing with dispatching selects and abort, 'Callable, 'Terminated only
22313 for concurrent types.
22315 * exp_sel.ads, exp_sel.adb: New files.
22317 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
22318 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
22319 properly protected objects and attach handler in the case of the
22320 restricted profile.
22321 Move embeded package Select_Expansion_Utilities into a separate external
22323 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
22324 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
22325 (Build_K, Build_S_Assignment): New subprograms, part of the select
22326 expansion utilities.
22327 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
22328 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
22329 where the trigger is a dispatching procedure of a limited tagged type.
22331 2005-12-09 Olivier Hainque <hainque@adacore.com>
22333 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
22334 pointer initialization values. Make a SAVE_EXPR instead. Add comments
22335 about the use and expansion of SAVE_EXPRs in the various possible
22336 renaming handling cases.
22337 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
22338 abusing DECL_FCONTEXT.
22340 2005-12-09 Matthew Heaney <heaney@adacore.com>
22342 * a-convec.adb (Merge): Added assertions to check whether vector params
22345 * a-coinve.adb (Merge): Added assertions to check whether vector params
22348 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
22350 (Cursor'Read): raises PE
22352 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
22353 to its default value.
22355 * a-cihama.adb: Manually check whether cursor's key and elem are
22358 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
22359 (Merge): Assert that target and source lists are in order
22360 (Swap): Declare non-const temporaries, to pass to Splice
22362 * a-cdlili.ads: (Splice): Changed param name and param mode
22364 * a-cdlili.adb: (Splice): Changed param name and param mode
22365 (Merge): Assert that target and source lists are in order
22366 (Swap): Declare non-const temporaries, to pass to Splice
22368 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
22369 (Write): declare Stream param as not null
22371 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
22372 an exception message.
22374 2005-12-09 Thomas Quinot <quinot@adacore.com>
22375 Robert Dewar <dewar@adacore.com>
22377 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
22378 which is the absolute maximum length we can support.
22380 * frontend.adb: For the processing of configuration pragma files,
22381 remove references to Opt.Max_Line_Length, which is not checked anymore.
22383 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
22386 * scn.adb, scng.adb:
22387 Always check line length against the absolute supported maximum,
22388 Hostparm.Max_Line_Length.
22390 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
22391 value for the maximum line length is Max_Line_Length (not
22392 Column_Number'Last).
22393 Minor error msg update
22394 (Set_Style_Check_Options): New interface returning error msg
22395 Minor code reorganization (processing for 'M' was out of alpha order)
22397 * switch-c.adb: New interface for Set_Style_Check_Options
22399 * stylesw.ads (Set_Style_Check_Options): New interface returning error
22402 2005-12-09 Javier Miranda <miranda@adacore.com>
22404 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
22405 with IP subprogram were only supported if there were limited types.
22407 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
22408 records with IP subprogram were only supported if there were limited
22411 2005-12-09 Olivier Hainque <hainque@adacore.com>
22412 Eric Botcazou <ebotcazou@adacore.com>
22414 * trans.c (tree_transform, emit_check): Adjust calls to
22415 build_call_raise, passing the now expected GNAT_NODE argument.
22417 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
22418 source line information than what the current global locus indicates
22421 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
22422 field has overflowed.
22423 (build_call_raise): Add a GNAT_NODE argument to convey better source
22424 line information than what the current global locus indicates when
22426 (build_component_ref): Adjust call to build_call_raise.
22428 2005-12-09 Pascal Obry <obry@adacore.com>
22430 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
22431 the iterator is quitting iteration on parent directory.
22433 2005-12-09 Javier Miranda <miranda@adacore.com>
22435 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
22436 and the assignment to a class-wide object, before the assignment we
22437 generate a run-time check to ensure that the tag of the Target is
22438 covered by the tag of the source.
22440 2005-12-09 Robert Dewar <dewar@adacore.com>
22442 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
22443 parameter in call to Image_Wide_Character.
22445 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
22446 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
22447 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
22448 annoying FFFE/FFFF inconsistency.
22450 2005-12-09 Robert Dewar <dewar@adacore.com>
22451 Javier Miranda <miranda@adacore.com>
22452 Ed Schonberg <schonberg@adacore.com>
22454 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
22455 of type conversion.
22456 (Find_Interface): New subprogram that given a tagged type and one of its
22457 component associated with the secondary table of an abstract interface
22458 type, return the entity associated with such abstract interface type.
22459 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
22460 base type to create anonymous subtype, because entity may be a locally
22461 declared subtype or generic actual.
22462 (Find_Interface): New subprogram that given a tagged type and one of its
22463 component associated with the secondary table of an abstract interface
22464 type, return the entity associated with such abstract interface type.
22466 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
22467 conversion cannot be handled at compile time. In this case we pass this
22468 information to the expander to generate the appropriate code.
22470 2005-12-09 Robert Dewar <dewar@adacore.com>
22471 Ed Schonberg <schonberg@adacore.com>
22472 Gary Dismukes <dismukes@adacore.com>
22473 Javier Miranda <miranda@adacore.com>
22474 Hristian Kirtchev <kirtchev@adacore.com>
22476 * einfo.adb (Itype_Printed): New flag
22477 (Is_Limited_Type): Derived types do not inherit limitedness from
22478 interface progenitors.
22479 (Is_Return_By_Reference_Type): Predicate does not apply to limited
22482 * einfo.ads (Itype_Printed): New flag
22483 Move Is_Wrapper_Package to proper section
22484 Add missing Inline for Is_Volatile
22486 * output.ads, output.adb (Write_Erase_Char): New procedure
22487 (Save/Restore_Output_Buffer): New procedures
22488 (Save/Restore_Output_Buffer): New procedures
22490 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
22491 Add missing support for anonymous access type
22492 (Write_Id): Insert calls to Write_Itype
22493 (Write_Itype): New procedure to output itypes
22495 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
22496 use of "limited" in declaration.
22498 * sinfo.ads, sinfo.adb:
22499 Formal derived types can carry an explicit "limited" indication.
22501 * sem_ch3.adb: Add with and use of Targparm.
22502 (Create_Component): If Frontend_Layout_On_Target is True and the
22503 copied component does not have a known static Esize, then reset
22504 the size and positional fields of the new component.
22505 (Analyze_Component_Declaration): A limited component is
22506 legal within a protected type that implements an interface.
22507 (Collect_Interfaces): Do not add to the list the interfaces that
22508 are implemented by the ancestors.
22509 (Derived_Type_Declaration): If the parent of the full-view is an
22510 interface perform a transformation of the tree to ensure that it has
22511 the same parent than the partial-view. This simplifies the job of the
22512 expander in order to generate the correct object layout, and it is
22513 needed because the list of interfaces of the full-view can be given in
22515 (Process_Full_View): The parent of the full-view does not need to be
22516 a descendant of the parent of the partial view if both parents are
22518 (Analyze_Private_Extension_Declaration): If declaration has an explicit
22519 "limited" the parent must be a limited type.
22520 (Build_Derived_Record_Type): A derived type that is explicitly limited
22521 must have limited ancestor and progenitors.
22522 (Build_Derived_Type): Ditto.
22523 (Process_Full_View): Verify that explicit uses of "limited" in partial
22524 and full declarations are consistent.
22525 (Find_Ancestor_Interface): Remove function.
22526 (Collect_Implemented_Interfaces): New procedure used to gather all
22527 implemented interfaces by a type.
22528 (Contain_Interface): New function used to check whether an interface is
22530 (Find_Hidden_Interface): New function used to determine whether two
22531 lists of interfaces constitute a set equality. If not, the first
22532 differing interface is returned.
22533 (Process_Full_View): Improve the check for the "no hidden interface"
22534 rule as defined by AI-396.
22536 2005-12-09 Robert Dewar <dewar@adacore.com>
22538 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
22539 types, not on record subtypes.
22540 (Freeze_Entity): Code cleanup. Add barrier to the loop
22541 that generates the references for primitive operations. This allows to
22542 remove an unnecessary exception handler.
22543 Code reformatting and comment clean ups.
22545 2005-12-09 Vincent Celier <celier@adacore.com>
22547 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
22548 If GNAT CHECK is called with a project file, but with no
22549 source on the command line, call gnatcheck with all the compilable
22550 sources of the project.
22551 Take into account the new command Check, for gnatcheck. Treat as for
22552 other ASIS tools: take into account project, specific package Check and
22554 For ASIS tools, add the switches in package Compiler for
22555 the invocation of the compiler.
22557 * prj-attr.adb: Add package Check and its attributes
22559 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
22561 * vms_conv.adb (Initialize): Change Params of command Check to
22563 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
22564 Add data for new command Check
22566 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
22568 Add qualifiers for Check command options
22569 (Command_Type): New command Check
22571 2005-12-09 Thomas Quinot <quinot@adacore.com>
22573 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
22574 command line switch overruns the output buffer.
22576 2005-12-09 Robert Dewar <dewar@adacore.com>
22578 * sem_prag.adb: Processing for new pragma Complete_Representation
22579 (Analyze_Pragma, case Debug): Implement two argument form.
22581 * par-prag.adb: Entry for new pragma Complete_Representation
22582 (Prag, case Debug): Recognize two argument form of pragma Debug
22583 New interface for Set_Style_Check_Options.
22585 * sem_ch13.adb: Implement new pragma Complete_Representation.
22587 * snames.adb, snames.ads, snames.h: Entry for new pragma
22588 Complete_Representation.
22590 2005-12-09 Gary Dismukes <dismukes@adacore.com>
22592 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
22593 available user-specified stream attributes on limited parameters to
22594 also test the type directly rather than only its underlying type (for
22595 Ada 95) and, in the case of Ada 2005, to check that the user-specified
22596 attributes are visible at the point of the subprogram declaration.
22597 For Ada 2005, the error message is modified to indicate that the
22598 type's stream attributes must be visible (again, only for -gnat05).
22600 2005-12-09 Ed Schonberg <schonberg@adacore.com>
22602 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
22603 anonymous access types.
22605 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
22606 matching of anonymous access types and anonymous access to subprogram
22607 types. 'R'M 4.9.1 (2/2).
22609 2005-12-09 Ed Schonberg <schonberg@adacore.com>
22611 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
22612 rule prematurely when operands are universal, remaining ambiguities
22613 will be removed during resolution.
22616 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
22617 that are Ada 2005 functions.
22618 (Has_Abstract_Interpretation): Subsidiary to
22619 Remove_Conversions, to remove ambiguities caused by abstract operations
22620 on numeric types when operands are universal.
22622 2005-12-09 Robert Dewar <dewar@adacore.com>
22624 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
22625 for case where spec is categorized.
22627 2005-12-09 Javier Miranda <miranda@adacore.com>
22629 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
22630 types use the corresponding record type. This was not needed before
22631 the implementation of Ada 2005 synchronized types because
22632 concurrent types were never tagged types in Ada 95.
22634 2005-12-09 Ed Schonberg <schonberg@adacore.com>
22636 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
22637 first subtype of the type of the expression to verify that it is a
22640 2005-12-09 Robert Dewar <dewar@adacore.com>
22642 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
22645 2005-12-09 Quentin Ochem <ochem@adacore.com>
22646 Robert Dewar <dewar@adacore.com>
22647 Ed Falis <falis@adacore.com>
22648 Florian Villoing <villoing@adacore.com>
22649 Thomas Quinot <quinot@adacore.com>
22650 Arnaud Charlet <charlet@adacore.com>
22652 * gnat_ugn.texi: Created section "Stack Related Tools"
22653 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
22654 "Stack Related Tools"
22655 Added subsection "Static Stack Usage Analysis"
22656 Added subsection "Dynamic Stack Usage Analysis"
22657 Include documentation of itypes in sprint listing (-gnatG)
22658 Documented gnatbind -D switch (default sec stack size for fixed sec
22660 Added Interrupt_State and Persistent_BSS to list of configuration
22662 Add missing doc for maximum value of nnn in -gnatyMnnn
22664 * gnat_rm.texi: Document the AltiVec binding.
22665 Add documentation for pragma Complete_Representation
22666 Shortened an overly long line (> 79 chars)
22667 Clarify documentation of unchecked conversion in implementation
22669 Document two argument form of pragma Debug
22671 * types.ads (Column_Number): Update documentation.
22673 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
22674 library level Finalize_Storage_Only objects (these are not attached to
22675 any finalization list).
22677 * system-mingw.ads: (Underlying_Priorities): Update comment.
22679 2005-12-09 Robert Dewar <dewar@adacore.com>
22681 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
22682 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
22683 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
22684 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
22685 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
22686 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
22687 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
22688 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
22691 2005-12-09 Robert Dewar <dewar@adacore.com>
22693 * s-vaflop-vms-alpha.adb: (Ne_F): New function
22694 (Ne_G): New function
22696 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
22697 for tag assignment.
22698 (Rewrite_Comparison): Handle case where operation is not a comparison
22699 and ignore, and also handle type conversion case.
22701 2005-12-09 Thomas Quinot <quinot@adacore.com>
22703 * exp_aggr.ads: Fix typo in comment.
22704 ???-mark Convert_Aggr_In_Assignment as needing documentation.
22706 2005-12-09 Gary Dismukes <dismukes@adacore.com>
22708 * layout.adb: Replace various uses of byte by storage unit throughout.
22709 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
22710 static size, convert to storage units before returning, to conform to
22713 2005-12-09 Matthew Gingell <gingell@adacore.com>
22715 * g-exctra.ads: Fix typo in comment.
22717 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22719 * utils.c: Minor reformatting.
22721 2005-12-09 Robert Dewar <dewar@adacore.com>
22724 Further comment fixes to make the status of the default file clear
22726 * s-bitops.adb: Clarify comment for Bits_Array
22728 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22730 * Make-lang.in (ada.install-normal): Remove.
22732 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22734 * Make-lang.in: Remove all dependencies on s-gtype.
22736 2005-12-05 Richard Guenther <rguenther@suse.de>
22738 * utils.c (convert): Use fold_convert where appropriate.
22740 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
22742 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
22745 2005-12-02 Richard Guenther <rguenther@suse.de>
22747 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
22749 2005-12-01 Roger Sayle <roger@eyesopen.com>
22751 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
22754 2005-11-23 Laurent Guerby <laurent@guerby.net>
22756 * mlib-prj.adb (Build_Library): Initialize Delete.
22758 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
22760 * socket.c: Add extern int h_errno for rtems since networking header
22761 files are not available at this point in a tool bootstrap. Newlib
22762 only has basic C library header files.
22764 2005-11-19 Richard Guenther <rguenther@suse.de>
22765 Roger Sayle <roger@eyesopen.com>
22768 * misc.c (internal_error_function): Don't use vsprintf to format
22769 the error message text, instead use pp_format_text and the new
22770 pretty printer APIs. This allows handling of %qs, %w, etc.
22772 2005-11-18 Laurent Guerby <laurent@guerby.net>
22775 * Makefile.in: Use s-auxdec-empty for RTEMS.
22777 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22780 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
22781 a temporary if taking the address of something that is neither
22782 reference, declaration, or constant, since the gimplifier
22783 can't handle that case.
22785 2005-11-17 Laurent Guerby <laurent@guerby.net>
22788 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
22790 2005-11-16 Richard Guenther <rguenther@suse.de>
22792 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
22794 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
22797 * raise-gcc.c: Add missing stdarg.h include.
22799 2005-11-16 Richard Guenther <rguenther@suse.de>
22801 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
22802 (ada/misc.o): Likewise.
22804 2005-11-14 Thomas Quinot <quinot@adacore.com>
22806 * g-soccon.ads: Minor reformatting. Update comments.
22808 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
22809 gain visibility on the declaration of struct timeval.
22811 * g-soccon-freebsd.ads,
22812 g-soccon-darwin.ads,
22813 g-soccon-tru64.ads,
22817 g-soccon-solaris.ads,
22819 g-soccon-mingw.ads,
22820 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
22822 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
22823 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
22824 g-soccon-linux-x86.ads: New files.
22826 * g-socthi-mingw.adb:
22827 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
22829 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
22830 (time_t, suseconds_t): New types constructed to match the tv_sec
22831 and tv_usec fields of C struct timeval.
22832 (Timeval): Construct structure in terms of the new types.
22833 (Host_Errno): New function (imported from socket.c), returns last hosts
22836 * g-socthi-vxworks.adb: Add error handling circuitry.
22838 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
22839 components of struct timeval.
22840 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
22841 (Check_Selector): In error conditions, clear internal socket sets to
22842 avoid a memory leak.
22843 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
22844 Send_Timeout, Receive_Timeout.
22846 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
22847 the tv_sec and tv_usec fields of C struct timeval.
22848 (Timeval): Construct structure in terms of the new types.
22849 (Host_Errno): New function (imported from socket.c), returns last hosts
22852 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
22853 hosts database last error code.
22855 * gen-soccon.c: Complete value expansion should not be performed on
22856 TARGET, as it has the form of a math expression, and some components
22857 may be platform-defined macros.
22858 For VxWorks, generate the OK and ERROR values.
22859 New constants giving the sizes of the components of C struct timeval.
22861 2005-11-14 Robert Dewar <dewar@adacore.com>
22862 Ed Schonberg <schonberg@adacore.com>
22865 * types.ads: Include All_Checks in Suppress_Array
22867 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
22868 not(a=b), since we no longer do this rewriting, and hence it is not
22870 (Elaboration_Checks_Suppressed): Add special casing to
22871 deal with different cases of static and dynamic elaboration checks (all
22872 checks does not count in the first case, but does in the second).
22873 (Expr_Known_Valid): Do not assume that the result of any arbitrary
22874 function call is valid, since this is not the case.
22875 (Ensure_Valid): Do not apply validity check to a real literal
22876 in a universal or fixed context
22878 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
22879 elementary types using the operator in standard. It is cleaner not to
22880 modify the programmers intent, especially in the case of floating-point.
22881 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
22882 it did not matter because we always rewrote a/=b to not(a=b).
22883 (Expand_Allocator_Expression): For an allocator expression whose nominal
22884 subtype is an unconstrained packed type, convert the expression to its
22885 actual constrained subtype.
22886 Implement warning for <= or >= where < or > not possible
22887 Fix to Vax_Float tests (too early in many routines, causing premature
22888 Vax_Float expansions.
22890 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
22891 to be used with packages and generic packages as well as with
22893 (Suppress): Set All_Checks, but not Elaboration_Check, for case
22894 of pragma Suppress (All_Checks)
22895 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
22896 a string literal for precise control over warnings.
22897 Avoid raise of pragma in case of unrecognized pragma and just return
22900 * sem_prag.ads: Minor reformatting
22902 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
22903 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22904 Switch. Do not handle any exception.
22905 Include -gnatwx as part of -gnatg (warn on redundant parens)
22906 Allow optional = after -gnatm
22907 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
22908 longer sets Elaboration_Checks.
22909 Code to set warning mode moved to Sem_Warn
22910 so that it can be shared by pragma processing.
22912 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
22915 * s-taprop-solaris.adb:
22916 Change some <= to =, to avoid new warning
22918 * a-exexda.adb, prj-proc.adb:
22919 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
22920 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
22922 2005-11-14 Robert Dewar <dewar@adacore.com>
22924 * exp_vfpt.adb: Handle /= case
22925 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
22926 so that we do not get duplicate scaling for fixed point conversions.
22928 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
22930 2005-11-14 Matthew Gingell <gingell@adacore.com>
22932 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
22933 Increase default priority on Lynx from 15 to 17, and meet the Ada
22934 requirement that Default_Priority be ((Priority'First +
22935 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
22937 2005-11-14 Vincent Celier <celier@adacore.com>
22939 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22940 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22941 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
22942 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
22943 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
22944 mlib-tgt-lynxos.adb (DLL_Prefix): New function
22946 2005-11-14 Doug Rupp <rupp@adacore.com>
22948 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
22951 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22953 * s-traces-default.adb, s-trafor-default.ads,
22954 s-tratas-default.adb: Fix compilation errors.
22956 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22958 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22959 raising the exception so the memory used is freed.
22961 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22963 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22964 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22965 (convert_address): Update comments and list of platforms using this.
22967 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22970 2005-11-14 Pascal Obry <obry@adacore.com>
22971 Vincent Celier <celier@adacore.com>
22973 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22976 * memroot.adb: Remove redundant with/use clause on
22977 System.Storage_Elements.
22979 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22981 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22982 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22983 related code to a-exexpr.adb
22984 (Save_Occurrence_And_Private): Move GCC EH related code to
22986 (Raise_Current_Excep): Add new variable Id with pragma
22987 volatile, to ensure that the variable lives on stack.
22989 * a-exexpr-gcc.adb, raise-gcc.c: New file.
22991 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22993 Move GCC EH related code to a-exexpr-gcc.adb
22995 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22997 Split the Linux version of g-soccon into separate variants for 32 and 64
22999 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
23000 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
23001 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
23002 of host variable $(RANLIB_FLAGS).
23003 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
23004 Code clean up: remove unused/obsolete targets.
23005 (EH_MECHANISM): New variable introduced to differenciate between the
23006 two EH mechanisms statically.
23007 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
23008 (LIBGNAT_OBJS): Add raise-gcc.o
23009 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
23010 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
23011 supports VxWorks 6 RTPs.
23012 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
23013 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
23015 * raise.c: Move all GCC EH-related routines to raise-gcc.c
23017 2005-11-14 Jose Ruiz <ruiz@adacore.com>
23019 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
23020 deferral level, when abort is not allowed, to a later stage (the
23022 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
23023 it will not get changed by the generated code. It was previously done
23026 2005-11-14 Thomas Quinot <quinot@adacore.com>
23027 Olivier Hainque <hainque@adacore.com>
23028 Eric Botcazou <ebotcazou@adacore.com>
23031 Factor common code to build a storage type for an unconstrained object
23032 from a fat or thin pointer type and a constrained object type.
23033 (annotate_value): Handle BIT_AND_EXPR.
23034 (annotate_rep): Don't restrict the back annotation of inherited
23035 components to the type_annotate_only case.
23036 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
23037 we are not defining the type.
23038 <E_Record_Type>: Likewise.
23039 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
23040 to get advantage of the new maybe_stabilize_reference interface, to
23041 ensure that what we reference is indeed stabilized instead of relying
23042 on assumptions on what the stabilizer does.
23043 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
23044 type imported through a limited_with clause, use its non-limited view.
23045 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
23047 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
23048 of #if sections + explicit comparisons of convention identifiers.
23049 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
23050 before early-returning for certain types when code generation is
23052 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
23053 nullification of gnu_expr we do for objects with address clause and
23054 that we are not defining.
23055 (elaborate_expression_1): Do not create constants when creating
23056 variables needed by the debug info: the dwarf2 writer considers that
23057 CONST_DECLs is used only to represent enumeration constants, and emits
23059 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
23060 object with an address clause into an indirect reference, drop the
23061 initializing expression.
23063 (STACK_CHECK_BUILTIN): Delete.
23064 (STACK_CHECK_PROBE_INTERVAL): Likewise.
23065 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
23066 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
23067 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
23068 corresponding to the renamed object as ignored for debugging purposes.
23070 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
23071 related): For a prefix that is a dereference of a fat or thin pointer,
23072 if there is an actual subtype provided by the front-end, use that
23073 subtype to build an actual type with bounds template.
23074 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
23075 is provided by the front-end, use that subtype to compute the size of
23076 the deallocated object.
23077 (gnat_to_gnu): When adding a statement into an elaboration procedure,
23078 check for a potential violation of a No_Elaboration_Code restriction.
23079 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
23080 with extra arguments to control whether to recurse through non-values
23081 and to let the caller know if the stabilization has succeeded.
23082 (gnat_stabilize_reference): Now a simple wrapper around
23083 maybe_stabilize, for common uses without restriction on lvalues and
23084 without need to check for the success indication.
23085 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
23086 pass false instead of 0 as the FORCE argument which is a bool.
23087 (Identifier_to_gnu): Remove checks ensuring that an renamed object
23088 attached to a renaming pointer has been properly stabilized, as no such
23089 object is attached otherwise.
23090 (call_to_gnu): Invoke create_var_decl to create the temporary when the
23091 function uses the "target pointer" return mechanism.
23092 Reinstate conversion of the actual to the type of the formal
23093 parameter before any other specific treatment based on the passing
23094 mechanism. This turns out to be necessary in order for PLACEHOLDER
23095 substitution to work properly when the latter type is unconstrained.
23097 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
23099 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
23100 with extra arguments to control whether to recurse through non-values
23101 and to let the caller know if the stabilization has succeeded.
23103 * utils2.c (gnat_build_constructor): Only sort the fields for possible
23104 static output of record constructor if all the components are constant.
23105 (gnat_build_constructor): For a record type, sort the list of field
23106 initializers in increasing bit position order.
23107 Factor common code to build a storage type for an unconstrained object
23108 from a fat or thin pointer type and a constrained object type.
23109 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
23110 types variants, and process special cases of VIEW_CONVERT expressions
23111 as their NOP_EXPR counterpart to ensure we get to the
23112 CORRESPONDING_VARs associated with CONST_DECls.
23113 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
23114 on the right-hand side.
23116 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
23118 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
23119 are converting back to its original type.
23120 (convert) <JM input>: Fallthrough regular conversion code instead of
23121 extracting the object if converting to a type variant.
23122 (create_var_decl): When a variable has an initializer requiring code
23123 generation and we are at the top level, check for a potential violation
23124 of a No_Elaboration_Code restriction.
23125 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
23126 SIZE and SIZE_UNIT which we need for later back-annotations.
23127 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
23128 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
23129 is an unchecked union.
23130 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
23131 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
23132 main variant, just replace the VIEW_CONVERT_EXPR.
23133 <UNION_TYPE>: Revert 2005-03-02 change.
23135 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
23137 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
23139 2005-11-14 Matthew Heaney <heaney@adacore.com>
23141 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
23142 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
23143 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
23144 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
23145 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
23146 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
23147 Compiles against the spec for ordered maps described in sections
23148 A.18.6 of the most recent (August 2005) AI-302 draft.
23150 2005-11-14 Olivier Hainque <hainque@adacore.com>
23152 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
23153 to ensure bias adjustments take place when need be and to prevent
23154 occurrences of intermediate overflows.
23156 2005-11-14 Matthew Gingell <gingell@adacore.com>
23157 Olivier Hainque <hainque@adacore.com>
23159 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
23162 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
23163 tracebacks on ia64 HP-UX and provide explanatory comment.
23164 Enable backtraces on ia64 GNU/Linux.
23165 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
23166 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
23168 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
23169 Javier Miranda <miranda@adacore.com>
23171 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
23172 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
23173 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
23174 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
23176 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
23177 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
23180 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
23181 subprogram that generates the external name associated with a
23182 secondary dispatch table.
23183 (Get_Secondary_DT_External_Name): New subprogram that generates the
23184 external name associated with a secondary dispatch table.
23186 2005-11-14 Emmanuel Briot <briot@adacore.com>
23188 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
23189 line in the ALI file to include both an instantiation reference, and a
23192 2005-11-14 Vincent Celier <celier@adacore.com>
23194 * clean.adb (Check_Project): Look for Ada code in extending project,
23195 even if Ada is not specified as a language.
23196 Use new function DLL_Prefix for DLL_Name
23197 (Clean_Interface_Copy_Directory): New procedure
23198 (Clean_Library_Directory): New procedure
23199 (Clean_Directory): Remove procedure, no longer used
23200 (Clean_Project): Do not delete any file in an externally built project
23202 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
23203 directory of an extending project, even when there are no Ada source
23205 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
23206 (Set_Ada_Paths.Add.Recursive_Add): Ditto
23208 * mlib-prj.adb (Check_Library): For all library projects, get the
23209 library file timestamp.
23210 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
23211 (Build_Library): Use new function DLL_Prefix for the DLL_Name
23212 (Clean): Remove procedure, no longer used
23213 (Ultimate_Extension_Of): New function
23214 (Build_Library): When cleaning the library directory, only remove an
23215 existing library file and any ALI file of a source of the project.
23216 When cleaning the interface copy directory, remove any source that
23217 could be a source of the project.
23219 * prj.ads, prj.adb (Project_Empty): Add values of new components
23220 Library_TS and All_Imported_Projects.
23221 (Project_Empty): Add values for new components of Project_Data:
23222 Library_ALI_Dir and Display_Library_ALI_Dir
23224 * prj-attr.adb: New project level attribute name Library_ALI_Dir
23226 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
23227 attribute Library_ALI_Dir.
23228 (Check_Library_Attributes): The library directory cannot be the same as
23229 any source directory of the project tree.
23230 (Check_Stand_Alone_Library): The interface copy directory cannot be
23231 the same as any source directory of the project tree.
23233 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
23234 all temporary files.
23236 2005-11-14 Robert Dewar <dewar@adacore.com>
23237 Ed Schonberg <schonberg@adacore.com>
23239 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
23240 (Check_Elab_Call): A call within a protected body is never an
23241 elaboration call, and does not require checking.
23242 (Same_Elaboration_Scope): Take into account protected types for both
23244 (Activate_Elaborate_All_Desirable): New procedure
23246 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
23249 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
23250 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
23252 * lib-writ.ads, lib-writ.adb:
23253 Implement new AD/ED for Elaborate_All/Elaborate desirable
23254 Use new Elaborate_All_Desirable flag in N_With_Clause node
23256 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
23257 N_Free_Statement nodes.
23258 Define new class N_Subprogram_Instantiation
23259 Add Elaborate_Desirable flag to N_With_Clause node
23260 Add N_Delay_Statement (covering two kinds of delay)
23262 * debug.adb: Introduce d.f flag for compiler
23263 Add -da switch for binder
23265 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23266 Cyrille Comar <comar@adacore.com>
23268 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
23269 for task component, in the case of a limited aggregate. The enclosed
23270 object declaration will create it earlier. Otherwise, in the case of a
23271 nested aggregate, the object may appear in the wrong scope.
23272 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
23273 (Gen_Assign): If the component being assigned is an array type and the
23274 expression is itself an aggregate, wrap the assignment in a block to
23275 force finalization actions on the temporary created for each row of the
23277 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
23278 structures are initialized after all discriminants are set so that
23279 they can be accessed even when their offset is dynamic.
23281 2005-11-14 Robert Dewar <dewar@adacore.com>
23282 Hristian Kirtchev <kirtchev@adacore.com>
23284 * sem_attr.adb: Implement Machine_Rounding attribute
23285 (Analyze_Access_Attribute): The access attribute may appear within an
23286 aggregate that has been expanded into a loop.
23287 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
23288 'Terminated whenever the prefix is of a task interface class-wide type.
23289 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
23290 the prefix is of a task interface class-wide type.
23292 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
23295 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
23296 Remove pragma Inline for [Unaligned_]Valid.
23297 Add comments that Valid routines do not work for Vax_Float
23299 * exp_attr.adb: Implement Machine_Rounding attribute
23301 * snames.h: Add entry for Machine_Rounding attribute
23303 2005-11-14 Javier Miranda <miranda@adacore.com>
23304 Robert Dewar <dewar@adacore.com>
23305 Hristian Kirtchev <kirtchev@adacore.com>
23307 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
23308 and related): For a prefix that is an explicit dereference of an
23309 access to unconstrained packed array type, annotate the dereference
23310 with an actual subtype so GIGI can make a correct size computation.
23311 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
23312 'Unrestricted_Access, if the designated type is an interface we
23313 add a type conversion to force the displacement of the pointer
23314 to the secondary dispatch table.
23315 Use Universal_Real instead of Long_Long_Float when we need a high
23316 precision float type for the generated code (prevents gratuitous
23317 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
23318 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
23319 'Terminated for task interface class-wide objects. Generate a call to
23320 the predefined dispatching routine used to retrieve the _task_id from
23321 a task corresponding record.
23322 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
23324 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
23325 (Check_Dispatching_Operation): Protect the frontend againts
23326 previously detected errors.
23328 * Makefile.rtl: Add new instantiations of system.fat_gen
23330 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
23331 Change name of instantiated package for better consistency
23332 with newly added system.fat_gen instantiations.
23334 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
23335 s-fvagfl.ads: New files.
23337 2005-11-14 Cyrille Comar <comar@adacore.com>
23338 Thomas Quinot <quinot@adacore.com>
23340 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
23341 assignment of a value of a tagged type that has been rewritten to a
23342 block statement, it is known by construction that no checks are
23343 necessary for the statements within the block: analyze it with checks
23345 (Expand_N_If_Statement): When killing a dead then-branch in an
23346 if-statement that has elsif_parts, recompute the Current_Value node
23347 for any entity whose value is known from the condition of the first
23349 (Expand_N_Return_Statement): When returning a mutable record, convert
23350 the return value into its actual subtype in order to help the backend
23351 to return the actual size instead of the maximum. This is another
23352 aftermath of not returning mutable records on the sec-stack anymore.
23354 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
23355 handling of error msg for suspicious reverse range iteration.
23356 (Check_Possible_Current_Value_Condition): Move declaration from body to
23357 spec, to allow this subprogram to be called from exp_ch5.
23359 2005-11-14 Thomas Quinot <quinot@adacore.com>
23361 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
23362 generate a set of nested array aggregates instead of a single flat
23363 aggregate for multi-dimensional arrays.
23365 2005-11-14 Pascal Obry <obry@adacore.com>
23367 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
23368 by spawnve is a process handle, no need to convert. Add a parameter
23369 close to control wether the process handle must be closed.
23370 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
23371 a process handle, not need to convert.
23372 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
23374 * g-expect.adb: (Kill): Document the new close parameter.
23375 (Close): Do not release the process handle in the kill there as
23376 waitpid() is using it.
23377 (Send_Signal): Release the process handle.
23379 2005-11-14 Robert Dewar <dewar@adacore.com>
23381 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
23382 need a high precision float type for the generated code (prevents
23383 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
23386 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
23387 need a high precision float type for the generated code (prevents
23388 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
23390 (Expand_Width_Attribute): In configurable run-time, the attribute is not
23391 allowed on non-static enumeration subtypes. Force a load error to emit
23392 the correct diagnostic.
23394 2005-11-14 Thomas Quinot <quinot@adacore.com>
23395 Robert Dewar <dewar@adacore.com>
23396 Ed Schonberg <schonberg@adacore.com>
23398 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
23399 subtype to compute the size of the designated object at run-time,
23400 create such a subtype and store it in the Actual_Designated_Subtype
23401 attribute of the N_Free_Statement.
23402 Generate itype for classwide designated object in both cases of
23403 user-specified storage pool: specific and class-wide, not only in the
23405 Raise CE when trying to set a not null access type object to null.
23406 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
23407 an explicit loop, because freeze nodes make its position variable.
23409 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
23412 2005-11-14 Javier Miranda <miranda@adacore.com>
23414 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
23415 Build_Stream_Procedure): Add the null-excluding attribute to the first
23417 This has no semantic meaning under Ada95 mode but it is a
23418 requirement under Ada05 mode.
23420 * par-ch3.adb (P_Access_Definition): Addition of warning message if
23421 the null exclusion is used under Ada95 mode
23422 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
23423 (P_Access_Definition): Remove assertion that forbids the use of
23424 the null-exclusion feature in Ada95.
23426 2005-11-14 Robert Dewar <dewar@adacore.com>
23428 * impunit.adb: Exclude container helper units not intended for use by
23431 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23433 * freeze.adb (Freeze_Entity): For an access formal that is an access
23434 to subprogram, freeze the anonymous subprogram type at the same time,
23435 to prevent later freezing in the wrong scope, such as the enclosing
23437 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
23438 subprogram whenever available.
23440 2005-11-14 Arnaud Charlet <charlet@adacore.com>
23443 * gnatvsn.ads (Library_Version): Bump to 4.1
23445 2005-11-14 Robert Dewar <dewar@adacore.com>
23447 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
23448 Storage_Offset to avoid wrap around causing invalid results.
23450 2005-11-14 Pascal Obry <obry@adacore.com>
23452 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
23454 (Scan_Bind_Arg): Fail with an error message if -M option is used
23455 on a native compiler.
23457 2005-11-14 Robert Dewar <dewar@adacore.com>
23458 Vincent Celier <celier@adacore.com>
23460 * gprep.adb: Implement -C switch to scan comments
23462 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
23464 * scans.ads: Comment updates (including new use of Tok_Comment in
23467 * opt.ads: Add documentation for flags that are used by gprmake,
23468 currently and in the next version of gprmake.
23469 (Verbosity_Level): New variable
23470 Add Replace_In_Comments switch
23472 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
23474 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
23476 2005-11-14 Arnaud Charlet <charlet@adacore.com>
23478 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
23479 message, friendlier.
23481 2005-11-14 Robert Dewar <dewar@adacore.com>
23483 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
23485 2005-11-14 Doug Rupp <rupp@adacore.com>
23487 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
23489 2005-11-14 Robert Dewar <dewar@adacore.com>
23491 * interfac.ads: Change declarations of IEEE float types so that we no
23492 longer need a separate version of this package for VMS.
23494 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23496 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
23497 internal entity created for the declaration of a child subprogram body
23498 with no spec as coming from source, to generate proper cross-reference
23501 2005-11-14 Vincent Celier <celier@adacore.com>
23503 * make.adb (Compile_Sources): Change verbose message to minimum
23504 verbosity level High for "is in an Ada library", "is a read-only
23505 library" and "is an internal library",
23506 (Create_Binder_Mapping_File): Path name of ALI file for library project
23507 must include the library directory, not the object directory.
23508 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
23509 for new switches -vl, -vm and -vh.
23510 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
23511 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
23512 (Compile_Sources): Do not attempt to compile if an ALI file is missing
23513 in a project that is externally built.
23514 (Compute_All_Imported_Projects): New procedure
23515 (Gnatmake): Check if importing libraries should be regenerated because
23516 at least an imported library is more recent.
23517 (Initialize): For each project compute the list of the projects it
23518 imports directly or indirectly.
23519 (Add_Library_Search_Dir): New procedure, used in place of
23520 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
23521 put in the search paths.
23522 (Add_Source_Search_Dir): New procedure, used in place of
23523 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
23524 put in the search paths.
23525 (Mark_Directory): Resolve the absolute path the directory before marking
23528 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
23529 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
23530 Switch. Do not handle any exception.
23531 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
23532 so that the switch is recognized as valid.
23533 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
23535 2005-11-14 GNAT Script <nobody@adacore.com>
23537 * Make-lang.in: Makefile automatically updated
23539 2005-11-14 Pascal Obry <obry@adacore.com>
23541 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
23543 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
23544 In both cases the last argument was dropped.
23546 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
23548 * namet.h: (Column_Numbe): New type.
23549 (Get_Column_Number): Define to sinput__get_column_number.
23550 (Instantiation): Define to sinput__instantiation.
23551 (Get_Column_Number): Declare.
23552 (Instantiation): Likewise.
23554 2005-11-14 Robert Dewar <dewar@adacore.com>
23556 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
23557 syntax, which could cause compiler hangs.
23559 2005-11-14 Vincent Celier <celier@adacore.com>
23561 * prj-ext.adb: Take into account new environment variable
23562 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
23564 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
23565 normalize its path name, making it absolute and resolving symbolic
23566 links, and replace the original if resolved path is different.
23568 2005-11-14 Vincent Celier <celier@adacore.com>
23570 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
23571 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
23573 2005-11-14 Emmanuel Briot <briot@adacore.com>
23575 * prj-pp.adb (Print): Do not output the with statement if the
23576 associated name is empty, which happens for virtual extending projects.
23577 (Print): Preserve the "extends all" attribute when printing the project.
23579 * prj-tree.ads (String_Value_Of): Add comment about returned value for
23580 a virtual extending project.
23582 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23584 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
23585 rhs of an assignment even if the type is unconstrained, when the
23586 context is non-expanding.
23587 In an inlined body, if the context type is private,
23588 resolve with its full view, which must be a composite type.
23590 2005-11-14 Robert Dewar <dewar@adacore.com>
23591 Ed Schonberg <schonberg@adacore.com>
23593 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
23594 Do not give obsolescent warning on with of subprogram (since we
23596 (Analyze_With_Clause): Add test for obsolescent package
23597 (Install_Context_Clauses): If the unit is the body of a child unit, do
23598 not install twice the private declarations of the parents, to prevent
23599 circular lists of Use_Clauses in a parent.
23600 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
23601 compiling body of child unit.
23602 Use new class N_Subprogram_Instantiation
23603 (Expand_With_Clause): If this is a private with_clause for a child unit,
23604 appearing in the context of a package declaration, then the implicit
23605 with_clauses generated for parent units are private as well.
23606 (License_Check): Do not generate message if with'ed unit is internal
23608 2005-11-14 Gary Dismukes <dismukes@adacore.com>
23609 Ed Schonberg <schonberg@adacore.com>
23610 Thomas Quinot <quinot@adacore.com>
23612 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
23613 names are internal, because they will not have a corresponding partner
23614 in the actual package.
23615 (Analyze_Formal_Package): Move the setting of the formal package spec's
23616 Generic_Parent field so that it occurs prior to analyzing the package,
23617 to allow proper operation of Install_Parent_Private_Declarations.
23618 (Analyze_Package_Instantiation): Set the instantiated package entity's
23619 Package_Instantiation field.
23620 (Get_Package_Instantiation_Node): Move declaration to package spec.
23621 Retrieve the N_Package_Instantiation node when the Package_Instantiation
23623 (Check_Generic_Child_Unit): Within an inlined call, the only possible
23624 instantiation is Unchecked_Conversion, for which no parents are needed.
23625 (Inline_Instance_Body): Deinstall and record the use_clauses for all
23626 parent scopes of a scope being removed prior to inlining an instance
23628 (Analyze_Package_Instantiation): Do not perform front-end inlining when
23629 the current context is itself an instance within a non-instance child
23630 unit, to prevent scope stack errors.
23631 (Save_References): If the node is an aggregate that is an actual in a
23632 call, rewrite as a qualified expression to preserve some type
23633 information, to resolve possible ambiguities in the instance.
23634 (Instance_Parent_Unit): New global variable to record the ultimate
23635 parent unit associated with a generic child unit instance (associated
23636 with the existing Parent_Unit_Visible flag).
23637 (type Instance_Env): New component Instance_Parent_Unit for stacking
23638 parents recorded in the global Instance_Parent_Unit.
23639 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
23641 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
23642 it's not a top-level unit, and only do this if Instance_Parent_Unit is
23643 not already set. Replace test of Is_Child_Unit with test of parent's
23644 scope against package Standard. Add comments and a ??? comment.
23645 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
23646 on a child instance parent to test that the parent equals
23647 Instance_Parent rather than simply checking that the unit is not a
23649 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
23650 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
23651 a formal interface are ancestors of the corresponding actual.
23652 (Validate_Formal_Interface_Type): Additional legality checks.
23653 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
23654 interface types with ancestors.
23655 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
23656 to diagnose attempts to use generic within its own declaration.
23658 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23659 Javier Miranda <miranda@adacore.com>
23661 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
23663 (Build_Private_Derived_Type): The entity of the created full view of the
23664 derived type does not come from source. If after installing the private
23665 declarations of the parent scope the parent is still private, use its
23666 full view to construct the full declaration of the derived type.
23667 (Build_Derived_Record_Type): Relax the condition that controls the
23668 execution of the check that verifies that the partial view and
23669 the full view agree in the set of implemented interfaces. In
23670 addition, this test now only takes into account the progenitors.
23671 (Derive_Interface_Subprograms): No need to derive subprograms
23672 of ancestors that are interfaces.
23673 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
23675 Change name Is_Package to Is_Package_Or_Generic_Package
23676 (Complete_Subprograms_Derivation): Handle the case in which the full
23677 view is a transitive derivation of the ancestor of the partial view.
23678 (Process_Full_View): Rename local subprogram Find_Interface_In_
23679 Descendant to Find_Ancestor_Interface to leave the code more clear.
23680 Remove wrong code that avoids the generation of an error message
23681 when the immediate ancestor of the partial view is an interface.
23682 In addition some minor reorganization of the code has been done to
23683 leave it more clear.
23684 (Analyze_Type_Declaration): If type has previous incomplete tagged
23685 partial view, inherit properly its primitive operations.
23686 (Collect_Interfaces): Make public, for analysis of formal
23688 (Analyze_Interface_Declaration): New procedure for use for regular and
23689 formal interface declarations.
23690 (Build_Derived_Record_Type): Add support for private types to the code
23691 that checks if a tagged type implements abstract interfaces.
23692 (Check_Aliased_Component_Type): The test applies in the spec of an
23694 (Access_Type_Declaration): Clean up declaration of malformed type
23695 declared as an access to its own classwide type, to prevent cascaded
23697 (Collect_Interfaces): For private extensions and for derived task types
23698 and derived protected types, the parent may be an interface that must
23699 be included in the interface list.
23700 (Access_Definition): If the designated type is an interface that may
23701 contain tasks, create Master_Id for it before analyzing the expression
23702 of the declaration, which may be an allocator.
23703 (Record_Type_Declaration): Set properly the interface kind, for use
23704 in allocators, the creation of master id's for task interfaces, etc.
23706 2005-11-14 Javier Miranda <miranda@adacore.com>
23707 Ed Schonberg <schonberg@adacore.com>
23709 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
23710 omitted in case of stream attribute subprograms.
23711 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
23712 appear immediately after a subprogram body, when there is no previous
23713 subprogram declaration.
23714 Change name Is_Package to Is_Package_Or_Generic_Package
23715 (Process_Formals): A non null qualifier on a non null named access
23716 type is not an error, and is a warning only if Redundant_Constructs
23719 2005-11-14 Gary Dismukes <dismukes@adacore.com>
23720 Ed Schonberg <schonberg@adacore.com>
23722 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
23723 nested within Analyze_Package_Specification to install the private
23724 declarations and use clauses within each of the parent units of a
23725 package instance of a generic child package.
23726 (Analyze_Package_Specification): When entering a private part of a
23727 package associated with a generic instance or formal package, the
23728 private declarations of the parent must be installed (by calling new
23729 procedure Install_Parent_Private_Declarations).
23730 Change name Is_Package to Is_Package_Or_Generic_Package
23731 (Preserve_Full_Attributes): For a synchronized type, the corresponding
23732 record is absent in a generic context, which does not indicate a
23735 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23737 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
23738 not try to rewrite a renamed stream attribute, because the operations
23739 on the type may not have been generated.
23740 Handle properly a renaming_as_body generated for a stream operation
23741 whose default is abstract because the object type itself is abstract.
23742 (Find_Type): If the type is incomplete and appears as the prefix of a
23743 'Class reference, it is tagged, and its list of primitive operations
23744 must be initialized properly.
23745 (Chain_Use_Clauses): When chaining the use clauses that appear in the
23746 private declaration of a parent unit, prior to compiling the private
23747 part of a child unit, find on the scope stack the proper parent entity
23748 on which to link the use clause.
23749 (Note_Redundant_Use): Emit a warning when a redundant use clause is
23751 (Analyze_Object_Renaming): An attribute reference is not a legal object
23752 if it is not a function call.
23754 2005-11-14 Robert Dewar <dewar@adacore.com>
23755 Ed Schonberg <schonberg@adacore.com>
23757 * sem_eval.adb: Implement d.f flag
23758 (Subtype_Statically_Match): A generic actual type has unknown
23759 discriminants when the corresponding actual has a similar partial view.
23760 If the routine is called to validate the signature of an inherited
23761 operation in a child instance, the generic actual matches the full view,
23763 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
23764 Ed Schonberg <schonberg@adacore.com>
23765 Robert Dewar <dewar@adacore.com>
23766 Thomas Quinot <quinot@adacore.com>
23768 * sem_res.adb (Resolve_Call): Provide a better error message whenever
23769 a procedure call is used as a select statement trigger and is not an
23770 entry renaming or a primitive of a limited interface.
23771 (Valid_Conversion): If the operand has a single interpretation do not
23772 remove address operations.
23773 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
23774 statement to inhibit warning.
23775 (Resolve_Unary_Op): Do not produce a warning when
23776 processing an expression of the form -(A mod B)
23777 Use Universal_Real instead of Long_Long_Float when we need a high
23778 precision float type for the generated code (prevents gratuitous
23779 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
23780 (Resolve_Concatenation_Arg): Improve error message when argument is an
23781 ambiguous call to a function that returns an array.
23782 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
23783 there is an implicit operator in the given scope if we are within an
23784 instance: legality check has been performed on the generic.
23785 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
23786 after resolving operand, to avoid false warnings on overloaded calls.
23788 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23789 Javier Miranda <miranda@adacore.com>
23792 * sem_type.adb (Covers): In an inlined body, a composite type matches
23793 a private type whose full view is a composite type.
23794 (Interface_Present_In_Ancestor): Protect the frontend against
23795 previously detected errors to ensure that its compilation
23796 with assertions enabled gives the same output that its
23797 compilation without assertions.
23798 (Interface_Present_In_Ancestor): Add support for private types.
23799 Change name In_Actual to In_Generic_Actual (clean up)
23800 (Disambiguate): New predicate In_Actual, to recognize expressions that
23801 appear in the renaming declaration generated for generic actuals, and
23802 which must be resolved in the outer context.
23804 2005-11-14 Robert Dewar <dewar@adacore.com>
23805 Thomas Quinot <quinot@adacore.com>
23806 Hristian Kirtchev <kirtchev@adacore.com>
23807 Ed Schonberg <schonberg@adacore.com>
23809 * sem_util.ads, sem_util.adb: Change name Is_Package to
23810 Is_Package_Or_Generic_Package.
23811 (Check_Obsolescent): New procedure.
23812 (Set_Is_Public): Remove obsolete junk test.
23813 (Set_Public_Status): Do not set Is_Public on an object whose declaration
23814 occurs within a handled_sequence_of_statemets.
23815 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
23816 for a parameterless procedure.
23817 (Enter_Name): Recognize renaming declarations created for private
23818 component of a protected type within protected operations, so that
23819 the source name of the component can be used in the debugger.
23821 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23822 Robert Dewar <dewar@adacore.com>
23824 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
23825 of a generic subprogram are not visible outside the body.
23826 (Set_Warning_Switch): New procedure (code to set warning mode moved
23827 here from Switch.C so that it can be shared by pragma processing.
23828 (Check_References): Special case warning for non-modified non-imported
23830 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
23831 form with a string literal argument
23833 2005-11-14 Javier Miranda <miranda@adacore.com>
23835 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
23837 (Write): Addition of "not null" to the anonymous access.
23838 (Read): Addition of "not null" to the anonymous access.
23839 (Write): Addition of "not null" to the anonymous access.
23841 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
23842 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
23843 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
23844 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
23845 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
23846 "not null" to the anonymous access.
23848 2005-11-14 Robert Dewar <dewar@adacore.com>
23850 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
23853 2005-11-14 Vincent Celier <celier@adacore.com>
23855 * switch.adb (Bad_Switch): New procedure
23856 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
23857 message when in error.
23859 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
23860 Too_Many_Output_Files): Remove declarations, no longer used.
23861 (Scan_Nat): New parameter Switch
23863 (Bad_Switch): New procedure
23865 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
23866 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
23867 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
23868 to Osint.Fail. Do not handle any exception.
23870 2005-11-14 Vincent Celier <celier@adacore.com>
23872 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
23873 designates a non existent directory.
23875 2005-11-14 Robert Dewar <dewar@adacore.com>
23877 * xgnatugn.adb: Replace invalid membership test by 'Valid
23879 2005-11-14 Vincent Celier <celier@adacore.com>
23881 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
23882 there is no object directory.
23884 2005-11-14 Robert Dewar <dewar@adacore.com>
23886 * usage.adb: Minor adjustment to output format, use nn instead of nnn
23887 (so that -gnateInnn does not run into next column)
23889 2005-11-14 Ed Falis <falis@adacore.com>
23891 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
23894 2005-11-14 Cyrille Comar <comar@adacore.com>
23896 * s-chepoo.ads: Add comments on Dereference.
23897 Remove unnecessary inherited abstract primitives.
23900 2005-11-14 Robert Dewar <dewar@adacore.com>
23902 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
23903 node parameter, not needed, since it is available as Declaration_Node.
23905 2005-11-14 Geert Bosch <bosch@adacore.com>
23907 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
23908 grammatically correct.
23910 2005-11-14 Vincent Celier <celier@adacore.com>
23912 * s-fileio.ads: Correct spelling error in comment
23914 2005-11-14 Cyrille Comar <comar@adacore.com>
23915 Robert Dewar <dewar@adacore.com>
23916 Vincent Celier <celier@adacore.com>
23917 Ben Brosgol <brosgol@adacore.com>
23918 Jose Ruiz <ruiz@adacore.com>
23919 Pascal Obry <obry@adacore.com>
23922 Document that -fstack-check is needed for strict compliance with the
23923 Ada 95 Reference Manual.
23924 Correct reference to VAX systems to meet HP guidelines
23925 Add documentation for new gnatmake switches -vl, -vm and -vh
23926 Replace DEC Ada by HP Ada
23927 Replace DIGITAL by HP
23928 Remove empty section on tools in compatibility section
23929 Clarify the Windows convention semantics.
23930 Document the Win32 calling convention.
23931 The Stdcall, Win32 and DLL convention are synonyms.
23932 Add a note in -gnatR description about zero size record components
23933 Note on new >= and <= warnings for -gnatwc
23934 Document that equal sign after -gnatm is optional.
23935 Note that strip is working fine on DLL built with a Library
23936 Project. The restriction apply only to DLL built with gnatdll.
23937 Update section about the way to debug a DLL.
23938 Update information about the DLL convention.
23939 Document -C switch for gnatprep
23940 Document new attribute Library_ALI_Dir
23941 Update elaboration doc to include implicit Elaborate pragmas now
23942 generated for subprogram instantiations.
23943 Document limitation on executable names that include spaces for --GCC,
23944 --GNATBIND, and --GNATLINK switches.
23945 Document that -w causes -gnatws to be added at start of gcc switches
23947 * gnat_rm.texi: Document that -mieee is needed for generating infinite
23948 and NaN values in case of overflow on machines that are not fully
23949 compliant with the IEEE floating-point standard.
23950 Create a section describing the set of compiler options needed for
23951 strict compliance with the Ada 95 Reference Manual.
23952 Add documentation for pragma Obsolescent applied to a package
23953 Clarify potential issues of mixed language programs related to the
23954 I/O buffering enabling in the elaboration of the GNAT runtime.
23955 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23956 This documentation only patch adds extra documentsion for pragma
23957 Restrictions (No_Elaboration_Code), explaining why it is not possible
23958 to document this restriction in terms of allowed source constructs.
23959 Document string literal form of pragma Warnings
23960 Document new attribute Library_ALI_Dir
23961 Add documentation on stable attributes in project files that was missing
23963 * gnat-style.texi: Indicate that paragraphs within a single comment
23964 should be separated by empty comment lines
23966 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23969 * bindusg.adb: Minor cleanup, put -m before -M for consistency
23971 2005-11-14 Robert Dewar <dewar@adacore.com>
23973 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23974 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23975 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23976 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23977 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23978 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23979 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23980 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23981 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23982 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23983 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23984 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23985 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23986 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23987 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23988 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23989 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23990 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23991 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23992 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23993 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23994 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23995 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23996 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23997 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23998 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23999 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
24000 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
24001 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
24002 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
24003 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
24004 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
24005 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
24006 system-interix.ads, system-solaris-sparc.ads,
24007 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
24008 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
24009 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
24010 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
24011 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
24012 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
24013 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
24014 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
24015 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
24016 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
24017 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
24018 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
24019 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
24020 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
24021 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
24022 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
24023 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
24024 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
24025 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
24026 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
24027 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
24028 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
24029 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
24030 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
24031 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
24032 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24033 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
24034 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
24035 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
24036 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
24037 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
24038 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
24039 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24040 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
24041 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
24042 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
24043 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
24044 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
24045 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
24046 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
24047 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
24048 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
24049 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
24050 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
24051 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
24052 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
24053 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
24054 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
24055 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
24056 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
24057 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
24058 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
24059 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
24060 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
24061 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
24062 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
24063 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
24064 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
24065 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
24066 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
24067 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
24068 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
24069 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
24070 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
24071 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
24072 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
24073 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
24074 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
24075 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
24076 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
24077 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
24078 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
24079 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
24080 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
24081 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
24082 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
24083 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
24084 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
24085 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
24086 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
24087 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
24088 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
24089 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
24090 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
24091 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
24092 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
24093 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
24094 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
24095 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
24096 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
24097 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
24098 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
24099 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
24100 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
24101 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
24102 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
24103 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
24104 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
24105 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
24106 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
24107 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
24108 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
24109 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
24110 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
24111 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
24112 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
24113 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
24114 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
24115 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
24116 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
24117 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
24118 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
24119 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
24120 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
24121 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
24122 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
24123 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
24124 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
24125 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
24126 a-numaux-darwin.ads, a-numaux-darwin.adb,
24127 a-swuwha.ads, a-stunha.ads: Minor reformatting
24129 2005-11-14 Robert Dewar <dewar@adacore.com>
24132 * osint-m.adb: Add pragma Elaborate_All for Osint
24134 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
24137 * trans.c (call_to_gnu): Restore statement lost in translation.
24139 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
24141 * init.c: Use the Linux-specific section for the IA-64/Linux target.
24142 (__gnat_adjust_context_for_raise): Add conditional code so that the
24143 IA-64 is also supported.
24145 2005-11-03 James E Wilson <wilson@specifix.com>
24148 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
24149 TREE_OVERFLOW check.
24151 2005-09-21 Olivier Hainque <hainque@adacore.com>
24154 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
24155 as we create them to store a size in bits.
24157 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
24165 * utils2.c (build_return_expr): New helper function.
24166 * gigi.h (build_return_expr): Declare it.
24167 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
24168 of manually building the RETURN_EXPR tree.
24169 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
24170 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
24171 build_binary_op for the "target pointer" case. Use build_return_expr
24172 instead of manually building the RETURN_EXPR tree.
24174 2005-09-16 Laurent Guerby <laurent@guerby.net>
24177 * s-tpinop.ads: Make this unit Preelaborate.
24179 2005-09-16 Andreas Jaeger <aj@suse.de>
24181 * socket.c: Add string.h for memcpy.
24183 2005-09-05 Arnaud Charlet <charlet@adacore.com>
24185 * dec-io.ads, dec-io.adb: Removed, no longer used.
24187 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24189 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
24191 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
24192 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
24193 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
24194 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
24195 dependent units are Preelaborate.
24196 (Initialize): Call Interrupt_Managemeent.Initialize and
24197 OS_Primitives.Initialize to ensure proper initialization of this unit.
24198 Remove use of System.Soft_Links
24199 Make this unit Preelaborate.
24201 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
24202 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
24203 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
24204 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
24205 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
24206 s-tratas.ads, s-tasinf.ads: Minor reformatting.
24207 Add pragma Preelaborate, since these packages are suitable for this
24211 * s-traent-vms.ads, s-intman-dummy.adb,
24212 s-taprop-dummy.adb: Make this unit Preelaborate.
24214 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
24215 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
24216 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
24217 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
24218 s-intman-solaris.adb, s-intman-irix-athread.adb,
24219 s-intman-irix.adb: Mark this unit Preelaborate.
24220 (Initialize): New procedure.
24223 * s-taspri-linux.ads: Removed.
24225 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
24226 as done by other implementations (e.g. posix).
24228 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
24229 responsible for deferring abort.
24230 Mark this unit Preelaborate.
24232 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
24233 proper initialization of the tasking run-time.
24235 * s-tasdeb.ads: Mark this unit Preelaborate.
24236 (Known_Tasks): Add explicit default value to avoid elaboration code.
24238 * s-inmaop-vms.adb (Elaboration code): Add call to
24239 Interrupt_Management.Initialize since the elaboration code depends on
24240 proper initialization of this package.
24242 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
24243 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
24244 s-osprim-posix.adb: Make this unit Preelaborate.
24246 * a-calend.adb: Add call to OS_Primitives.Initialize
24248 * a-elchha.adb: Update use of Except.Id.Full_Name.
24249 Minor reformatting.
24250 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
24252 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
24253 Move with clauses outside Warnings Off now that dependent units are
24255 Use raise xxx with "..."; Ada 2005 form.
24257 * a-taside.ads, a-taside.adb:
24258 Remove some dependencies, to make it easier to make this unit truly
24260 Rewrite some code to be conformant with Preelaborate rules.
24262 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
24263 marked Preelaborate in the future.
24265 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
24266 these units Preelaborate.
24268 * s-exctab.adb: Update use of Except.Id.Full_Name.
24270 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
24271 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
24272 Set_Exc_Stack_Addr): Removed, no longer used.
24273 Remove reference to *Machine_State_Addr*, no longer needed.
24275 * s-stalib.ads: Mark this unit as Preelaborate[_05].
24276 (Exception_Data): Full_Name is now a System.Address so that this unit
24277 can be made Preelaborate.
24278 Clean up/simplify code thanks to Full_Name being a System.Address.
24279 Remove obsolete pragma Suppress (All_Checks), no longer needed.
24281 * s-taskin.ads, s-taskin.adb:
24282 Move with clauses outside Warnings Off now that dependent units are
24284 Make this unit Preelaborate.
24285 (Initialize): New proceduure, replace elaboration code and makes the
24286 set up of the tasking run-time cleaner.
24287 (Detect_Blocking): Now a function instead of a deferred boolean, to
24288 obey Preelaborate rules.
24290 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
24291 soft links, no longer used.
24293 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
24294 packages are suitable for this categorization.
24296 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
24297 since we compile run-time sources in Ada 2005 mode.
24298 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
24299 avoid having s-taprop*.adb depend on s-soflin and to avoid code
24301 Remove reference to *Machine_State_Addr*, no longer needed.
24303 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24305 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
24306 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
24307 Remove reference to System.Exceptions.
24309 * s-mastop-x86.adb: Removed, no longer used.
24311 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
24313 * a-excach.adb: Minor reformatting.
24315 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
24316 instead fix new warnings that were hidden by this change.
24317 (AAA, ZZZ): Removed, replaced by...
24318 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
24319 are used instead of constants, to help make Ada.Exception truly
24321 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
24322 Raise_Storage_Error): File is now a System.Address, to simplify code.
24323 (Elab code): Removed, no longer used.
24324 (Null_Occurrence): Remove Warnings Off and make this construct
24326 Remove code related to front-end zero cost exception handling, since
24327 it is no longer used.
24328 Remove -gnatL/-gnatZ switches.
24330 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
24331 Update use of Except.Msg.
24333 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
24334 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
24335 to front-end zero cost exception handling, since it is no longer used.
24336 Remove -gnatL/-gnatZ switches.
24338 * lib-writ.ads: Minor reformatting
24341 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
24343 * Make-lang.in: Remove references to s-except.ads
24345 * s-except.ads: Removed, no longer used.
24347 * s-mastop.ads, s-mastop.adb:
24348 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
24349 Remove reference to System.Exceptions.
24351 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
24352 switch-b.adb: Remove code related to front-end zero cost exception
24353 handling, since it is no longer used.
24354 Remove -gnatL/-gnatZ switches.
24356 2005-09-01 Robert Dewar <dewar@adacore.com>
24357 Gary Dismukes <dismukes@adacore.com>
24358 Javier Miranda <miranda@adacore.com>
24360 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
24361 type by valid test and generate warning.
24362 (Tagged_Membership): Generate call to the run-time
24363 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
24364 Change formal name Subtype_Mark to Result_Definition in several calls to
24365 Make_Function_Specification.
24366 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
24367 check for proper accessibility of the operand of a class-wide allocator.
24368 The check can be left out if checks are suppressed or if the expression
24369 has a specific tagged type whose level is known to be safe.
24371 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
24372 generates the run-time check associated with null-excluding entities.
24373 (Expand_N_Return_Statement): Add tests to determine if the accessibility
24374 check on the level of the return expression of a class-wide function
24375 can be elided. The check usually isn't needed if the expression has a
24376 specific type (unless it's a conversion or a formal parameter). Also
24377 add a test for whether accessibility checks are suppressed. Augment
24378 the comments to describe the conditions for performing the check.
24380 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
24381 Javier Miranda <miranda@adacore.com>
24382 Gary Dismukes <dismukes@adacore.com>
24383 Ed Schonberg <schonberg@adacore.com>
24385 * a-tags.adb (IW_Membership): Give support to
24386 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
24387 subprogram has been extended to look for the tag in the ancestors tag
24389 Update the structure of the GNAT Dispatch Table to reflect the
24390 additional two tables used in dispatching selects.
24391 Introduce appropriate array types and record components in
24392 Type_Specific_Data to reflect the two tables.
24393 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
24394 the TSD of a tag, indexed by position.
24395 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
24396 operation kind in the TSD of a tag, indexed by position.
24398 * a-tags.ads: Introduce an enumeration type to capture different
24399 primitive operation kinds. Define a constant reflecting the number of
24400 predefined primitive operations.
24401 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
24402 of an entry wrapper.
24403 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
24404 callable entity of a primitive operation.
24406 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
24407 primitive operations used in dispatching selects for limited
24408 interfaces, limited tagged, task and protected types what implement a
24410 (Freeze_Type): Generate the bodies of the primitive operations used in
24411 dispatching selects for limited tagged, task and protected types that
24412 implement a limited interface. Generate statements to populate the two
24413 auxiliary tables used for dispatching in select statements.
24414 (Freeze_Record_Type): Add call to initialize the dispatch table entries
24415 associated with predefined interface primitive operations.
24416 (Build_Dcheck_Function): Change Set_Subtype_Mark to
24417 Set_Result_Definition.
24418 (Build_Variant_Record_Equality): Change Subtype_Mark to
24420 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
24421 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
24422 (Build_Assignment): Simplify the code that adds the run-time-check.
24423 (Expand_N_Object_Declaration): Code cleanup.
24425 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
24426 entries when there is a protected type that implements a limited
24429 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
24430 common routines used in expansion of dispatching selects.
24431 (Add_Private_Declarations): Select the appropriate protection type when
24432 there is a protected type that implements a limited interface.
24433 (Build_Parameter_Block): Generate a wrapped parameter block.
24434 (Build_Protected_Subprogram_Body): Select the appropriate type for
24435 locking entries when there is a protected type that implements a
24437 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
24438 classified as entry wrappers.
24439 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
24440 asynchronous selects.
24441 (Expand_N_Conditional_Entry_Call): Add support for expansion of
24442 dispatching conditional selects.
24443 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
24444 protection when there is a protected type that implements limited
24446 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
24448 (Extract_Dispatching_Call): Extract the entity of the name of a
24449 dispatching call, the object parameter, actual parameters and
24450 corresponding formals.
24451 (Make_Initialize_Protection): Correct logic of protection initialization
24452 when there is a protected type that implements a limited interface.
24453 (Parameter_Block_Pack): Populate a wrapped parameter block with the
24454 values of actual parameters.
24455 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
24456 block and assign them to the original actual parameters.
24458 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
24459 (Build_Protected_Sub_Specification): Change the type and name of the
24460 last formal to account for the increased variety of protection modes.
24462 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
24463 entities. Used to save the value of the Is_Hidden attribute when the
24464 limited-view is installed.
24465 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
24466 the attribute of procedures classified as entry wrappers.
24467 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
24468 entity of a primitive wrapper.
24469 (Write_Entity_Flags): Output the name and value of the
24470 Is_Primitive_Wrapper attribute.
24471 (Write_Field27_Name): Output the name and entity of the field Wrapped_
24473 (Underlying_Type): If we have an incomplete entity that comes from
24474 the limited view then we return the Underlying_Type of its non-limited
24475 view if it is already available.
24476 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
24477 including operators.
24478 (Write_Field26_Name): Add entry for Overridden_Operation
24479 (Overridden_Operation): New attribute of functions and procedures.
24481 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
24482 predefined position in the dispatch table for the primitive operations
24483 used in dispatching selects.
24484 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
24485 predefined primitive operations and replace it with
24486 Default_Prim_Op_Count.
24487 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
24488 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
24489 the names of the generated primitive operations used in dispatching
24491 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
24492 case of abstract interface types. They will be inherit by the objects
24493 implementing the interface.
24494 (Make_DT): There is no need to inherit the dispatch table of the
24495 ancestor interface for the elaboration of abstract interface types.
24496 The dispatch table will be inherited by the object implementing the
24498 (Copy_Secondary_DTs): Add documentation.
24499 (Validate_Position): Improve this static check in case of
24500 aliased subprograms because aliased subprograms must have
24502 (Init_Predefined_Interface_Primitives): New subprogram that initializes
24503 the entries associated with predefined primitives of all the secondary
24505 (Build_Anonymous_Access_Type): Removed.
24506 (Expand_Interface_Actuals): With the previous cleanup there is no need
24507 to build an anonymous access type. This allows further cleanup in the
24508 code generated by the expander.
24509 (Expand_Interface_Conversion): If the actual is an access type then
24510 build an internal function to handle the displacement. If the actual
24511 is null this function returns null because no displacement is
24512 required; otherwise performs a type conversion that will be
24513 expanded in the code that returns the value of the displaced actual.
24514 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
24515 conversions that have no effect in the generated code because no
24516 displacement is required. Code cleanup; use local variables to
24517 avoid repeated calls to the subprogram directly_designated_type().
24519 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
24520 Classify the primitive operations used in dispatching selects as
24522 (Implements_Limited_Interface): Determine whether some type either
24523 directly implements a limited interface or extends a type that
24524 implements a limited interface.
24525 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
24526 (Expand_Subtype_From_Expr): Do not build actual subtype if the
24527 expression is limited.
24528 (Find_Interface_Tag): Add code to handle class-wide types and
24529 entities from the limited-view.
24531 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
24532 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
24533 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
24534 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
24537 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
24538 of procedure name or prefix that appears as a trigger in a triggering
24541 * uintp.ads: Introduce constants Uint_11 and Uint_13.
24543 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24545 * s-tataat.adb, a-tasatt.adb:
24546 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
24548 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
24549 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
24550 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
24553 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24554 Jose Ruiz <ruiz@adacore.com>
24556 * s-taprop-vxworks.adb:
24557 Move with clauses outside Warnings Off now that dependent units are
24559 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
24560 initialization of this unit.
24561 (Specific): Add new procedures Initialize and Delete so that this
24562 package can be used for VxWorks 5.x and 6.x
24563 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
24564 differences between VxWorks 5.x and 6.x
24565 Minor reformatting.
24566 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
24568 Use only Preelaborate-compatible constructs.
24570 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
24571 Primitives.Operations.
24572 (Delete, Initialize): New procedures.
24574 * s-osinte-vxworks.adb: Body used to handle differences between
24575 VxWorks 5.x and 6.x
24576 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
24578 * s-osinte-vxworks.ads: Minor reformatting.
24579 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
24580 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
24582 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
24583 between Vxworks 5 and 6.
24584 (taskLock, taskUnlock): Removeed, no longer used.
24586 * adaint.c: The wait.h header is not located in the sys directory on
24587 VxWorks when using RTPs.
24588 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
24590 (__gnat_dup): dup is available on Vxworks when using RTPs.
24591 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
24593 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
24595 * expect.c: The wait.h header is not located in the sys directory on
24596 VxWorks when using RTPs.
24598 2005-09-01 Thomas Quinot <quinot@adacore.com>
24600 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
24602 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
24604 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
24605 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
24606 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
24607 g-soccon-freebsd.ads: Add new constants:
24609 SO_RCVTIMEO/SO_SNDTIMEO
24613 Move all target-specific file inclusions and macro definitions to
24614 gsocket.h, in order to ensure that any C code in socket.c will see a
24615 set of constants that is consistent with the contents of g-soccon.ads.
24617 * gsocket.h: Code imported from gen-soccon.c:
24618 Move all target-specific file inclusions and macro definitions to
24619 gsocket.h, in order to ensure that any C code in socket.c will see a set
24620 of constants that is consistent with the contents of g-soccon.ads.
24621 This change also makes gen-soccon self-contained (removing dependencies
24622 upon GCC internal headers).
24624 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
24626 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
24628 * socket.c: Minor reformatting.
24630 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24631 Thomas Quinot <quinot@adacore.com>
24633 * fname-sf.adb, mlib-tgt.ads,
24634 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
24635 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
24636 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
24637 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
24638 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
24639 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
24640 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
24641 makegpr.adb: Remove redundant use_clauses.
24643 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24645 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
24646 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
24647 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
24648 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
24649 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
24650 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
24651 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
24652 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
24653 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24654 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
24655 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
24656 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
24657 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
24658 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
24659 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
24660 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
24661 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24662 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
24663 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
24664 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
24665 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
24666 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
24667 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
24668 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
24669 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
24670 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
24671 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
24672 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
24673 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
24674 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
24675 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
24676 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
24677 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
24678 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
24679 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
24680 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
24681 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
24682 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
24683 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
24684 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
24685 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
24686 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
24687 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
24688 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
24689 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
24690 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
24691 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
24692 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
24693 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
24694 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
24695 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
24696 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
24697 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
24698 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
24699 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
24700 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
24701 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
24702 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
24703 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
24704 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
24705 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
24706 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
24707 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
24708 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
24709 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
24710 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
24711 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
24712 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
24713 and always use the no parameter form for consistency.
24715 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
24717 2005-09-01 Robert Dewar <dewar@adacore.com>
24719 * binde.adb: Minor reformatting
24720 (Find_Elab_Order): Output warning if -p used with static elab order
24722 2005-09-01 Robert Dewar <dewar@adacore.com>
24724 * checks.adb (Check_Needed): New procedure, deals with removing checks
24725 based on analysis of short-circuited forms. Also generates warnings for
24726 improper use of non-short-circuited forms.
24729 2005-09-01 Robert Dewar <dewar@adacore.com>
24731 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
24734 2005-09-01 Robert Dewar <dewar@adacore.com>
24736 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
24738 Implement new insertion char < (conditional warning)
24739 * errutil.adb, erroutc.adb: Implement new insertion char <
24740 (conditional warning).
24741 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
24742 (Error_Msg_Warn): New variable for < insertion char.
24743 * prj-nmsc.adb: Implement new errout insertion char < (conditional
24745 (Check_For_Source): Change value of Source_Id only after the current
24746 source has been dealt with.
24748 2005-09-01 Robert Dewar <dewar@adacore.com>
24749 Doug Rupp <rupp@adacore.com>
24751 * exp_attr.adb: Handle vax fpt for 'Valid attribute
24752 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
24753 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
24754 (Valid_D, Valid_F, Valid_G): New functions
24756 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24757 Hristian Kirtchev <kirtchev@adacore.com>
24758 Javier Miranda <miranda@adacore.com>
24760 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
24761 from object notation, the original node is unanalyzed and carries no
24762 semantic information, so that accessiblity checks must be performed on
24763 the type of the actual itself.
24764 (Expand_N_Subprogram_Declaration): Change last actual parameter for
24765 compatibility with Build_Protected_Sub_Specification.
24766 (Check_Overriding_Inherited_Interfaces): Add suport to handle
24767 overloaded primitives.
24768 (Register_Interface_DT_Entry): Use the new name of the formal
24769 the the calls to Expand_Interface_Thunk
24771 * exp_dbug.ads: Augment comments on encoding of protected types to
24772 include the generation of dispatching subprograms when the type
24773 implements at least one interface.
24775 * lib.ads: Extend information in Load_Stack to include whether a given
24776 load comes from a Limited_With_Clause.
24778 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
24779 whether a potential circularity is harmless, because it includes units
24780 loaded through a limited_with clause. Extends previous treatment which
24781 did not handle properly arbitrary combinations of limited and
24782 non-limited clauses.
24784 2005-09-01 Nicolas Setton <setton@adacore.com>
24786 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
24787 to be encoded as typ___XBLU_lowerbound__upperbound instead of
24788 typ___XB_lowerbound__upperbound.
24790 2005-09-01 Thomas Quinot <quinot@adacore.com>
24792 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
24793 dummy access formal for RACW/RAS TypeCode TSS.
24794 (Build_TypeCode_Call): Do not generate dummy null access actual for
24795 calls to the TypeCode TSS.
24797 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24799 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
24800 fully qualified name, to distinguish instances with the same local name.
24802 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
24805 2005-09-01 Robert Dewar <dewar@adacore.com>
24807 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
24810 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
24812 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
24813 (Free): New deallocation procedure for filter elements
24814 (Close): Deallocate any existing filter for the concerned connection
24816 2005-09-01 Laurent Pautet <pautet@adacore.com>
24818 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
24819 position set is provided, we compute one in order to reduce the maximum
24820 length of the keys. This computation first selects a character
24821 position between 1 and the minimum length of the keys in order to
24822 avoid reducing one of the keys to an empty string.
24823 (Initialize, Compute): When the ratio V to K is too low, the algorithm
24824 does not converge. The initialization procedure now comes with a
24825 maximum number of iterations such that when exceeded, an exception is
24826 raised in Compute. The user can initialize this ratio to another value
24828 Reformating and updated headers.
24830 2005-09-01 Javier Miranda <miranda@adacore.com>
24832 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
24833 that given an entity T creates and returns an Itype that duplicates the
24834 contents of T. The returned Itype has the null-exclusion
24835 attribute set to True, and its Etype attribute references T
24836 to keep the association between the two entities.
24837 Update copyright notice
24839 * sem_aggr.adb (Check_Can_Never_Be_Null,
24840 Aggregate_Constraint_Checks, Resolve_Aggregate,
24841 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
24843 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
24845 2005-09-01 Gary Dismukes <dismukes@adacore.com>
24846 Robert Dewar <dewar@adacore.com>
24847 Hristian Kirtchev <kirtchev@adacore.com>
24849 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
24852 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
24854 Call Set_Result_Definition instead of Set_Subtype_Mark.
24855 (P_Subprogram_Specification): Add parsing of anonymous access result
24856 plus null exclusions. Call Set_Result_Definition instead of
24859 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24860 (P_Access_Type_Definition): Add parsing for an anonymous access result
24861 subtype, plus parsing for null exclusions. Call Set_Result_Definition
24862 instead of Set_Subtype_Mark.
24864 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24865 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
24866 (Result_Definition): New function for N_Function_Specifications.
24867 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
24868 N_Function_Specification.
24869 (Set_Null_Exclusion_Present): Allow this flag for
24870 N_Function_Specification.
24871 (Set_Result_Definition): New procedure for N_Function_Specifications.
24872 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
24873 and N_Function_Specification.
24875 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
24876 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
24877 Add support for LIMITED NEW for Ada 2005 AI-419
24878 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
24879 syntax for anonymous access results.
24880 Replace Subtype_Mark field by Result_Definition in
24881 N_Function_Specification and N_Access_Definition specs.
24882 Add Null_Exclusion_Present to spec of N_Function_Specification.
24883 (Result_Definition): New function for N_Function_Specification and
24884 N_Access_Function_Definition.
24885 (Set_Result_Definition): New procedure for N_Function_Specification and
24886 N_Access_Function_Definition.
24888 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
24889 Result_Definition for cases of N_Access_Function_Definition and
24890 N_Function_Specification.
24891 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
24893 2005-09-01 Vincent Celier <celier@adacore.com>
24895 * lib-writ.adb: Update Copyright notice
24896 (Write_With_Lines): On platforms where file names are case-insensitive,
24897 record the file names in lower case.
24898 (Write_ALI): For D lines, on platforms where file names are
24899 case-insensitive, record the file names in lower case.
24901 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24902 Emmanuel Briot <briot@adacore.com>
24904 * lib-xref.adb (Output_Overridden_Op): Display information on
24905 overridden operation.
24907 * lib-xref.ads: Add documentation on overridden operations.
24909 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
24912 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
24913 overriding entity information.
24915 2005-09-01 Vincent Celier <celier@adacore.com>
24917 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
24918 including those that are inherited.
24920 2005-09-01 Robert Dewar <dewar@adacore.com>
24922 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
24924 * par-prag.adb: Implement new pragma Debug_Policy
24926 * sem_prag.adb Implement new pragma Debug_Policy
24927 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
24928 Component_Size attribute specification. Give warning for ignored pragma
24931 * snames.h, snames.ads, snames.adb: Introduce entries in
24932 Preset_Names for Name_Disp_Asynchronous_Select,
24933 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
24934 Name_Disp_Timed_Select.
24935 New pragma Debug_Policy
24937 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24939 Switch -gnata also sets Debug_Pragmas_Enabled
24941 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
24942 handle an explicit -gnata when compiling predefined files.
24944 2005-09-01 Vincent Celier <celier@adacore.com>
24946 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
24947 directories of projects that have no Ada sources.
24949 2005-09-01 Robert Dewar <dewar@adacore.com>
24951 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24952 (makes a difference for wide characters)
24954 * widechar.adb, widechar.ads:
24955 Add Wide_Char_Byte_Count feature to count chars vs bytes
24957 2005-09-01 Thomas Quinot <quinot@adacore.com>
24958 Ed Schonberg <schonberg@adacore.com>
24959 Robert Dewar <dewar@adacore.com>
24961 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24962 'Address attribute reference with an overloaded prefix, use the
24963 location of the prefix (not the location of the attribute reference) as
24964 the error location.
24965 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24966 a function renaming thereof, is a valid prefix for 'Size (where it is
24967 intepreted as a function call).
24968 (Statically_Denotes_Entity): New predicate to determine whether the
24969 prefix of an array attribute can be considered static.
24972 (Eval_Attr): Fix failure to evaluate Component_Size for
24973 unconstrained arrays (resulted in wrong value in packed case, since
24974 back end cannot handle this case)
24976 2005-09-01 Robert Dewar <dewar@adacore.com>
24978 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24979 error msgs for most common cases.
24980 Use new errout insertion char < (conditional warning)
24982 2005-09-01 Javier Miranda <miranda@adacore.com>
24983 Ed Schonberg <schonberg@adacore.com>
24985 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24986 become local to the whole package.
24987 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24988 the package was already analyzed the new algorithm "replaces" the
24989 real entities by the shadow ones. This is required to ensure that
24990 the order of these entities in the homonym chains does not change;
24991 otherwise we can have undefined references at linking time because
24992 in case of conflicts the external name of the entities will have
24993 a suffix that depends on the order of the entities in the chain.
24994 (Remove_Limited_With_Clause): Complementary code that completes the
24995 new algorithm and replaces the shadow entities by the real ones.
24996 (Install_Limited_Withed_Unit): When unchaining entities before the
24997 installation of the shadow entities, only regular entities of the
24998 public part must be taken into account. This is required to
24999 keep this routine in synch with the work done by Remove_Limited_
25001 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
25002 even if unit is analyzed, because the analysis of the unit is
25003 idempotent in any case, and the limited view of the unit may have to
25004 be installed for proper visibility.
25005 (Expand_Limited_With_Clause): Even if the unit in the implicit
25006 with_clause has been analyzed already, a limited view of the package
25007 must be built for the current context, if it does not exist yet.
25009 2005-09-01 Ed Schonberg <schonberg@adacore.com>
25010 Javier Miranda <miranda@adacore.com>
25011 Gary Dismukes <dismukes@adacore.com>
25013 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
25014 defining entity for the instance body, make a new defining identifier
25015 rather than copying the entity of the spec, to prevent accidental
25016 sharing of the entity list.
25017 (Check_Private_View): When exchanging views of private types, build the
25018 list of exchanged views as a stack, to ensure that on exit the exchanges
25019 are undone in the proper order.
25020 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
25021 Restore the compilation environment in case of instantiation_error.
25022 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
25023 for an anonymous access result.
25024 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
25025 (Formal_Entity): Handle properly the case of a formal package that
25026 denotes a generic package renaming.
25028 2005-09-01 Thomas Quinot <quinot@adacore.com>
25030 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
25031 clause if the array aggregate is surrounded by parentheses.
25033 2005-09-01 Cyrille Comar <comar@adacore.com>
25034 Gary Dismukes <dismukes@adacore.com>
25035 Ed Schonberg <schonberg@adacore.com>
25036 Javier Miranda <miranda@adacore.com>
25038 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
25040 to check if a type is Constrained in cases related to code generation
25041 (rather than semantic checking) since otherwise we do not generate
25042 similar code for mutable private types depending if their
25043 discriminants are visible or not.
25044 (Check_Abstract_Overriding): Do not complain about failure to override
25045 the primitive operations used in dispatching selects since they will
25046 always be overriden at the freeze point of the type.
25047 (Access_Definition): Separate out handling for resetting the scope
25048 of an anonymous access function result type. Retrieve the scope
25049 of the associated function rather than using Current_Scope, which
25050 does not have a consistent value (depends on whether we're in the
25051 middle of analyzing formal parameters). Add ??? comment about
25052 finding a cleaner way to handle the special cases of scope setting.
25053 (Process_Incomplete_Dependents): A protected operation is never a
25054 dispatching operation (only its wrapper may be).
25055 (Build_Derived_Record_Type): In case of tagged private types that
25056 implement interfaces add derivation of predefined primitive
25058 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
25059 by two parameters that are used in case of derivation from abstract
25060 interface types: No_Predefined_Prims is used to avoid the derivation
25061 of predefined primitives from the interface, and Predefined
25062 Prims_Only is used to complete the derivation predefined primitives
25063 in case of private tagged types implementing interfaces.
25064 Fix typo in comments
25065 (Find_Interface_In_Descendant): Protect the frontend against
25066 wrong code with large circularity chains.
25067 (Is_Private_Overriding): Add support for entities overriding interface
25068 subprograms. The test failed because Entities associated with overriden
25069 interface subprograms are always marked as hidden (and used to build
25070 the secondary dispatch table); in this case the overriden entity is
25071 available through the field abstract_interface_alias (cf. override_
25072 dispatching_operation)
25073 (Access_Definition): Set the scope of the type to Current_Scope for the
25074 case of a function with an anonymous access result type.
25075 (Access_Subprogram_Declaration): Handle creation of the type entity for
25076 an access-to-function type with an anonymous access result.
25077 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
25078 in handling for N_Access_Function_Definition.
25079 (Analyze_Subtype_Declaration): Modify the text of error message.
25080 (Derived_Type_Declaration): Modify the text of error message.
25081 (Process_Subtype): Modify the text of error message plus cleanup
25082 of one redundant error message.
25083 (Analyze_Component_Declaration): Code cleanup.
25084 (Analyze_Object_Declaration): Code cleanup.
25085 (Analyze_Subtype_Declaration): Propagate the null-exclusion
25086 attribute in case of access types. Code cleanup.
25087 (Array_Type_Declaration): Code cleanup.
25088 (Process_Discriminants): Create the new null-excluding itype
25089 if required. Code cleanup.
25090 (Process_Subtype): Create the new null-excluding itype if
25091 required. Code cleanup.
25092 (Build_Derived_Record_Type): Code cleanup to avoid calling
25093 twice the subprogram derive_subprograms in case of private
25094 types that implement interfaces. In this particular case the
25095 subprogram Complete_Subprograms_Derivation already does the
25096 job associated with the second call.
25098 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
25099 conversion to the full view when generating an operation for a
25100 discriminant whose type may currently be private.
25102 2005-09-01 Ed Schonberg <schonberg@adacore.com>
25103 Javier Miranda <miranda@adacore.com>
25105 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
25106 V (Obj.F), the rewriting does not involve the indexed component, but
25107 only the selected component itself.
25108 Do not apply the transformation if the analyzed node is an actual of a
25109 call to another subprogram.
25110 (Complete_Object_Operation): Retain the entity of the
25111 dispatching operation in the selector of the rewritten node. The
25112 entity will be used in the expansion of dispatching selects.
25113 (Analyze_One_Call): Improve location of the error message associated
25115 (Analyze_Selected_Component): No need to resolve prefix when it is a
25116 function call, resolution is done when parent node is resolved, as
25118 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
25119 when attempting to resolve a call transformed from its object notation.
25120 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
25121 of the argument list for each interpretation of the operation.
25122 (Try_Object_Operation): The designated type of an access parameter may
25123 be an incomplete type obtained through a limited_with clause, in which
25124 case the primitive operations of the type are retrieved from its full
25126 (Analyze_Call): If this is an indirect call, and the return type of the
25127 access_to_subprogram is incomplete, use its full view if available.
25129 2005-09-01 Javier Miranda <miranda@adacore.com>
25130 Gary Dismukes <dismukes@adacore.com>
25132 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
25133 access types the null-exclusion and access-to-constant attributes must
25135 (Analyze_Return_Statement): When the result type is an anonymous access
25136 type, apply a conversion of the return expression to the access type
25137 to ensure that appropriate accessibility checks are performed.
25138 (Analyze_Return_Type): For the case of an anonymous access result type,
25139 generate the Itype and set Is_Local_Anonymous_Access on the type.
25140 Add ??? placeholder for check to disallow returning a limited object
25141 in Ada 2005 unless it's an aggregate or a result of a function call.
25142 Change calls from Subtype_Mark to Result_Definition.
25143 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
25144 Result_Definition in call to Make_Function_Specification.
25145 (Build_Body_To_Inline): Change Set_Subtype_Mark to
25146 Set_Result_Definition.
25147 (Make_Inequality_Operator): Change formal Subtype_Mark to
25148 Result_Definition in call to Make_Function_Specification.
25149 (Process_Formals): Create the new null-excluding itype if required.
25150 (New_Overloaded_Entity): For an entity overriding an interface primitive
25151 check if the entity also covers other abstract subprograms in the same
25152 scope. This is required to handle the general case, that is, overriding
25153 other interface primitives and overriding abstract subprograms inherited
25154 from some abstract ancestor type.
25155 (New_Overloaded_Entity): For an overriding entity that comes from
25156 source, note the operation that it overrides.
25157 (Check_Conformance, Type_Conformant): Addition of one new formal
25158 to skip controlling formals in the analysis. This is used to
25159 handle overloading of abstract interfaces.
25160 (Base_Types_Match): Add missing case for types imported from
25161 limited-with clauses
25162 (New_Overloaded_Entity): Add barrier to protect the use of
25163 the "alias" attribute.
25165 2005-09-01 Ed Schonberg <schonberg@adacore.com>
25167 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
25168 verify that the procedure and the entry are mode conformant.
25169 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
25170 as a different operator, which is often a cut-and-paste error.
25172 2005-09-01 Javier Miranda <miranda@adacore.com>
25173 Ed Schonberg <schonberg@adacore.com>
25175 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
25176 used in controlling parameters exclude null because it is necessary to
25177 read the tag to dispatch, and null has no tag.
25178 (Override_Dispatching_Operation): If the previous operation is inherited
25179 from an interface, it becomes hidden and does not participate in later
25182 2005-09-01 Javier Miranda <miranda@adacore.com>
25183 Ed Schonberg <schonberg@adacore.com>
25184 Gary Dismukes <dismukes@adacore.com>
25186 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
25187 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
25188 the expander will generate the corresponding run-time check to evaluate
25190 (Resolve_Call): Check for legal type of procedure name or prefix that
25191 appears as a trigger in a triggering alternative.
25192 (Valid_Conversion): If expression is ambiguous and the context involves
25193 an extension of System, remove System.Address interpretations.
25194 (Resolve_Qualified_Expression): Reject the case of a specific-type
25195 qualification applied to a class-wide argument. Enhance comment
25196 to explain checking of Original_Node.
25197 (Resolve_Type_Conversion): The location of the error message was not
25198 general enough to handle the general case and hence it has been removed.
25199 In addition, this patch improves the text of the message.
25200 (Resolve_Type_Conversion): Add missing support for access to interface
25202 (Resolve_Type_Conversion): If the target is a class-wide interface type,
25203 do not expand if the expression is the actual in a call, because proper
25204 expansion will take place when the call itself is expanded.
25205 (Resolve_Allocator): If the context is an unchecked conversion, the
25206 allocator inherits its storage pool, if any, from the target type of
25209 2005-09-01 Ed Schonberg <schonberg@adacore.com>
25210 Javier Miranda <miranda@adacore.com>
25212 * sem_type.adb (Add_One_Interp): If a candidate operation is an
25213 inherited interface operation that has an implementation, use the
25214 implementation to avoid spurious ambiguities.
25215 (Interface_Present_In_Ancestor): In case of concurrent types we can't
25216 use the Corresponding_Record_Typ attribute to look for the interface
25217 because it is set by the expander (and hence it is not always
25218 available). For this reason we traverse the list of interfaces
25219 (available in the parent of the concurrent type).
25220 (Interface_Present_In_Ancestor): Handle entities from the limited view
25222 2005-09-01 Ed Schonberg <schonberg@adacore.com>
25224 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
25225 from the list of required components.
25226 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
25227 primitive procedure of a limited interface with a controlling first
25229 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
25231 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
25232 capture if it is generated in the second operand of a short-circuit
25234 Do not capture values for variables with address clauses.
25235 (Is_Object_Reference): Treat a function call as an object reference only
25236 if its type is not Standard_Void_Type.
25238 2005-09-01 Ed Schonberg <schonberg@adacore.com>
25240 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
25241 to a variable that is statically known to be constant.
25243 2005-09-01 Geert Bosch <bosch@adacore.com>
25244 Robert Dewar <dewar@adacore.com>
25246 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
25247 (VAXGF_Safe_First): Idem.
25249 2005-09-01 Robert Dewar <dewar@adacore.com>
25250 Arnaud Charlet <charlet@adacore.com>
25252 * g-dirope.ads: Minor reformatting
25253 Document that bounds of result of Base_Name match the input index
25255 Add documentation on environment variable syntax for Expand_Path
25257 * gnat_ugn.texi: Update documentation to include mention of -m switches
25258 Document new treatment of wide characters in max line length
25260 Remove -gnatL/-gnatZ switches, no longer used.
25261 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
25264 * gnat_rm.texi: Add doc for two argument form of pragma
25265 Float_Representation.
25266 Add documentation for pragma No_Strict_Aliasing
25267 Add note that explicit component clause overrides pragma Pack.
25268 Add documentation of pragma Debug_Policy
25270 2005-09-01 Matthew Heaney <heaney@adacore.com>
25272 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
25273 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
25274 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
25275 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
25276 draft (Draft 13, August 2005) of Ada Amendment 1.
25278 2005-09-01 Arnaud Charlet <charlet@adacore.com>
25280 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
25281 Note that the platform-specific version of g-soccon.ads for VMS is now
25282 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
25283 really is a package spec).
25284 Replace s-taspri-linux.ads by s-taspri-posix.ads
25285 Remove references to s-mastop-x86.adb
25287 * system-vxworks-xscale.ads: Removed, no longer used.
25288 * s-vxwork-xscale.ads: Removed, no longer used.
25290 2005-09-01 Robert Dewar <dewar@adacore.com>
25292 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
25293 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
25294 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
25295 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
25296 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
25297 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
25298 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
25299 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
25300 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
25301 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
25302 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
25303 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
25304 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
25305 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
25306 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
25307 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
25308 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
25309 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
25310 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
25311 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
25312 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
25314 2005-08-29 Arnaud Charlet <charlet@adacore.com>
25318 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
25320 2005-08-29 Arnaud Charlet <charlet@adacore.com>
25321 Doug Rupp <rupp@adacore.com>
25323 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
25325 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
25326 this code in the GNAT run-time.
25328 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
25331 * init.c (__gnat_error_handler [many]): Mark "msg" as const
25332 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
25334 (__gnat_inside_elab_final_code): Moved here from
25335 Standard_Library and only defined for the compiler.
25336 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
25337 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
25338 using RTPs because directly vectored Interrupt routines are not
25339 supported on this configuration.
25340 (getpid): Do not redefine this function on VxWorks when using RTPs
25341 because this primitive is well supported by the RTP libraries.
25342 (copy_msg): Correct the code that checks for buffer overflow.
25343 Discovered during code reading.
25345 2005-08-29 Olivier Hainque <hainque@adacore.com>
25347 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
25348 a library level mutable variable with an initializer, tell
25349 build_allocator to ignore the initializer's size. It may not be large
25350 enough for all the values that might be assigned to the variable later
25353 2005-08-29 Arnaud Charlet <charlet@adacore.com>
25354 Eric Botcazou <ebotcazou@adacore.com>
25356 * trans.c: Protect < in error msg with quote
25357 Replace GCC_ZCX by Back_End_Exceptions.
25358 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
25359 has been sufficiently aligned in the record.
25361 2005-08-15 James E. Wilson <wilson@specifix.com>
25363 * system-linux-alpha.ads: Change ia64 to alpha.
25365 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
25367 * decl.c, utils.c: Fix comment typos.
25369 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
25371 * decl.c, init.c, initialize.c: Fix comment typos.
25373 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
25375 Make CONSTRUCTOR use VEC to store initializers.
25376 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
25378 * trans.c (extract_values): Likewise.
25379 * utils.c (convert, remove_conversions): Likewise.
25380 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
25381 gnat_build_constructor): Likewise.
25383 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
25385 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
25387 (compare_field_bitpos): Likewise.
25389 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
25391 * utils.c (create_var_decl): Only set DECL_COMMON on
25392 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
25393 VAR_OR_FUNCTION_DECL_P.
25395 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
25397 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
25400 2005-07-07 Pascal Obry <obry@adacore.com>
25402 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
25403 returned type on Windows.
25405 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
25408 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
25409 exception in this case.
25410 Simplify the code as "Image (Image'Range)" = "Image".
25412 2005-07-07 Vincent Celier <celier@adacore.com>
25414 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
25415 the destructor/constructor attributes for <lib>final/<lib>init.
25417 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
25419 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
25421 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
25422 type if the parameter is not passed by copy but reference by default.
25424 2005-07-07 Javier Miranda <miranda@adacore.com>
25426 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
25427 Reimplementation of the support for abstract interface types in order
25428 to leave the code more clear and easy to maintain.
25430 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
25431 abstract interface types in order to leave the code clearer and easier
25434 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
25435 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
25436 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
25437 appropriate entry of the secondary dispatch table.
25438 (Make_DT): Add code to inherit the secondary dispatch tables of
25441 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
25442 implementing both functionalities by means of a common routine, each
25443 routine has its own code.
25445 2005-07-07 Javier Miranda <miranda@adacore.com>
25447 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
25449 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
25452 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
25455 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
25456 use of tag incomplete types.
25458 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
25459 give support to tagged incomplete types.
25461 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
25462 expression is a discriminant reference and its type is private, as can
25463 happen within a stream operation for a mutable record, use the full
25464 view of the type to resolve the case alternatives.
25465 (Analyze_Assignment): Check wrong dereference of incomplete types.
25467 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
25470 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
25473 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
25474 N_Incomplete_Type_Declaration nodes.
25476 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
25477 Tag_Present to give support to tagged incomplete types:
25479 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
25482 2005-07-07 Olivier Hainque <hainque@adacore.com>
25485 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
25486 definitions for the Unwind wrappers in the compiler case.
25488 2005-07-07 Ed Schonberg <schonberg@adacore.com>
25489 Javier Miranda <miranda@adacore.com>
25491 * par-load.adb (Load): If a child unit is loaded through a limited_with
25492 clause, each parent must be loaded as a limited unit as well.
25494 * sem_ch10.adb (Previous_Withed_Unit): Better name for
25495 Check_Withed_Unit. Return true if there is a previous with_clause for
25496 this unit, whether limited or not.
25497 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
25499 (Is_Visible_Through_Renamings): New local subprogram of install_limited
25500 _withed_unit that checks if some package installed through normal with
25501 clauses has a renaming declaration of package whose limited-view is
25502 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
25503 of the current Draft document for Ada 2005.
25504 (Analyze_Context): Complete the list of compilation units that
25505 are allowed to contain limited-with clauses. It also contains
25506 checks that were previously done by Install_Limited_Context_Clauses.
25507 This makes the code more clear and easy to maintain.
25508 (Expand_Limited_With_Clause) It is now a local subprogram of
25509 Install_Limited_Context_Clauses, and contains the code that adds
25510 the implicit limited-with clauses for parents of child units.
25511 This functionality was prevously done by Analyze_Context.
25513 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
25516 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
25517 been erroneously named in a limited-with clause of its own context.
25518 In this case the error has been previously notified by Analyze_Context.
25520 2005-07-07 Ed Schonberg <schonberg@adacore.com>
25522 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
25523 generic package that contains local declarations with the same name.
25524 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
25526 2005-07-07 Bernard Banner <banner@adacore.com>
25528 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
25529 ia64 platform only on platforms that you the GCC unwind library
25530 rather than the system unwind library.
25532 2005-07-07 Thomas Quinot <quinot@adacore.com>
25534 * expect.c: Minor reformatting
25536 2005-07-07 Sergey Rybin <rybin@adacore.com>
25538 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
25541 * gnat_ugn.texi: Add description for new gnatpp option
25544 2005-07-04 Thomas Quinot <quinot@adacore.com>
25546 * g-expect-vms.adb, g-expect.ads, g-expect.adb
25547 (Get_Command_Output): New subprogram to launch a process and get its
25548 standard output as a string.
25550 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25551 Olivier Hainque <hainque@adacore.com>
25553 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
25554 fetch a code-range descriptor associated with the machine state. On
25555 failure set the machine state's PC to 0; on success, pass the
25556 descriptor to exc_virtual_unwind.
25558 * init.c (Tru64 section): New function __gnat_set_code_loc.
25560 2005-07-04 Vincent Celier <celier@adacore.com>
25562 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25563 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25564 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
25565 Remove all auto-initialization code, as this is now done through the
25566 constructor mechanism.
25568 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
25569 __gnat_sals_init_using_constructors): New functions.
25571 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
25572 Linker_Constructor and Linker_Destructor when switch -a is used.
25574 * bindusg.adb: Add line for new switch -a
25576 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
25577 (Gnatbind): When switch -a is used, check if it is allowed
25579 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
25581 2005-07-04 Joel Brobecker <brobecker@adacore.com>
25583 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
25584 This prevents us from hitting a limitation during the debug info
25585 generation when using stabs.
25586 (Prims_Ptr): Likewise.
25588 2005-07-04 Gary Dismukes <dismukes@adacore.com>
25589 Ed Schonberg <schonberg@adacore.com>
25590 Javier Miranda <miranda@adacore.com>
25592 * checks.adb (Null_Exclusion_Static_Checks): In the case of
25593 N_Object_Declaration, only perform the checks if the Object_Definition
25594 is not an Access_Definition.
25596 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
25597 where the parent of an the access definition is an N_Object_Declaration
25598 when determining the Associated_Node_For_Itype and scope of an
25599 anonymous access-to-subprogram type.
25601 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
25602 Corresponding_Spec on the body created for a null procedure. Add ???
25603 comment. Remove New_Copy_Tree call on body argument to
25604 Set_Body_To_Inline.
25606 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
25607 discriminants, use the type of the actual as well, because the
25608 discriminants may be read by the called subprogram.
25610 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
25611 access type we do not need to handle non-limited views.
25612 (Build_Derived_Record_Type): Additional check to check that in case of
25613 private types, interfaces are only allowed in private extensions.
25615 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25617 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
25618 <Pragma_Linker_Destructor>: Likewise.
25620 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
25621 Pragma_Linker_Destructor.
25623 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
25624 ATTR_LINK_DESTRUCTOR.
25625 (static_ctors, static_dtors): New variables.
25627 * misc.c (gnat_expand_body): Output current function as constructor
25628 and destructor if requested.
25630 * par-prag.adb: Add processing for pragma Linker_Constructor and
25633 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
25634 extracted from Check_Interrupt_Or_Attach_Handler.
25635 (Check_Interrupt_Or_Attach_Handler): Invoke it.
25636 Implement pragma Linker_Constructor and Linker_Destructor with the
25637 help of Find_Unique_Parameterless_Procedure.
25638 Replace Name_Alias with Name_Target for pragma Linker_Alias.
25640 * snames.h, snames.ads, snames.adb:
25641 Add Name_Linker_Constructor and Name_Linker_Destructor.
25642 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
25643 * snames.adb: Remove Name_Alias.
25645 * trans.c: Include cgraph.h.
25646 (build_global_cdtor): New function.
25647 (Compilation_Unit_to_gnu): Build global constructor and destructor if
25649 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
25651 (addressable_p) <COMPONENT_REF>: Unconditionally test
25652 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
25654 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
25655 variable if it is external.
25657 (static_ctors, static_dtors): New global variables.
25658 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
25659 <ATTR_LINK_DESTRUCTOR>: Likewise.
25660 (end_subprog_body): Chain function as constructor and destructor
25663 * exp_util.adb (Force_Evaluation): Unconditionally invoke
25664 Remove_Side_Effects with Variable_Ref set to true.
25665 (Remove_Side_Effects): Handle scalar types first. Use a renaming
25666 for non-scalar types even if Variable_Ref is true and for class-wide
25669 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25671 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
25672 to prevent spurious warnings.
25674 2005-07-04 Thomas Quinot <quinot@adacore.com>
25676 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
25677 Itypes. Itypes are really unexpected there.
25678 (Build_TypeCode_Function): Generalise special processing for Itypes to
25679 handle the case of numeric implicit base types as well as enumerated
25682 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25684 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
25685 controlled, indicate the expected type of the dereference that is
25686 created for the call to Deep_Finalize, to prevent spurious errors when
25687 the designated type is private and completed with a derivation from
25688 another private type.
25690 2005-07-04 Vincent Celier <celier@adacore.com>
25692 * make.adb (Change_To_Object_Directory): When unable to change the
25693 current dir to the object directory, output the full path of the
25696 2005-07-04 Matthew Gingell <gingell@adacore.com>
25698 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
25700 * indepsw-linux.adb: Replace by...
25702 * indepsw-gnu.adb: ...this new file
25704 2005-07-04 Vincent Celier <celier@adacore.com>
25706 * mlib-prj.adb (Auto_Initialize): New constant String
25707 (SALs_Use_Constructors): New Boolean function
25708 (Build_Library): Call gnatbind with Auto_Initialize switch when
25709 SALs_Use_Constructors returns True.
25711 * mlib-tgt.ads: Minor reformatting
25713 * mlib-utl.ads: Minor reformatting
25715 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
25717 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25719 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
25720 single protected declarations can have an interface list.
25721 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
25722 with seriously malformed entry declarations, and lead to compilation
25723 abandoned messages.
25725 2005-07-04 Javier Miranda <miranda@adacore.com>
25727 * par-load.adb: Load the context items in two rounds.
25729 2005-07-04 Robert Dewar <dewar@adacore.com>
25731 * scng.adb: Do not consider Mod used as an attribute to be a keyword
25733 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25734 Javier Miranda <miranda@adacore.com>
25736 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
25737 type extension needs a limited view.
25738 Remove previous restriction on private types available through the
25739 limited-view (only tagged private types were previously allowed).
25740 (Install_Withed_Unit): In the code that implements the
25741 legality rule given in AI-377, exclude a child unit with the name
25742 Standard, because it is a homonym of the Standard environment package.
25744 2005-07-04 Thomas Quinot <quinot@adacore.com>
25746 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
25747 overloaded function call, carry interpretations from the original tree
25750 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25752 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
25753 types check whether some designated type is a limited view, and use
25754 the non-limited view if available.
25756 2005-07-04 Gary Dismukes <dismukes@adacore.com>
25758 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
25759 constraint of full view of a private view T1 if present, when T2 is a
25760 discriminated full view.
25762 2005-07-04 Thomas Quinot <quinot@adacore.com>
25764 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
25765 actual that is a view conversion of a bit packed array reference.
25767 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25769 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
25770 present before checking whether an interface type covers a synchronized
25773 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25775 * sem_util.adb (Is_Object_Reference): An indexed or selected component
25776 whose prefix is an implicit dereference is an object reference. Removes
25777 spurious errors when compiling with -gnatc.
25779 2005-07-04 Robert Dewar <dewar@adacore.com>
25782 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
25784 2005-07-04 Matthew Gingell <gingell@adacore.com>
25786 * tracebak.c: Enable tracebacks on ia64 platforms
25788 2005-07-04 Vincent Celier <celier@adacore.com>
25790 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
25791 the GNAT BIND command, as gnatbind accepts multiples ALI files with
25792 the -L or -n switches.
25794 2005-07-04 Vincent Celier <celier@adacore.com>
25796 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
25797 correctly computed and the main project data is not modified while
25799 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
25800 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
25801 c++linker as this does not work on some platforms.
25803 2005-07-04 Matthew Heaney <heaney@adacore.com>
25805 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
25807 * a-coinve.adb: Perform constraint checks explicitly.
25809 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25810 Thomas Quinot <quinot@adacore.com>
25812 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
25813 new target gen-soccon.
25815 2005-07-04 Robert Dewar <dewar@adacore.com>
25817 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
25819 2005-07-04 Thomas Quinot <quinot@adacore.com>
25821 * g-socket.ads (Check_Selector): Minor rewording of comment.
25823 2005-07-04 Vincent Celier <celier@adacore.com>
25825 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
25827 2005-07-04 Thomas Quinot <quinot@adacore.com>
25829 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
25831 2005-07-04 Sergey Rybin <rybin@adacore.com>
25833 * gnat_ugn.texi: Add description of --eol gnatpp option
25835 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25836 Thomas Quinot <quinot@adacore.com>
25838 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
25839 if the user wants all calls of a subprogram to be flagged,
25840 independently of whether they are made from within the same unit or
25842 Mention restriction for pragma Linker_Alias on some platforms.
25843 Document pragma Linker_Constructor and Linker_Destructor.
25844 Rewrite documentation of Weak_External, Linker_Section and
25845 Linker_Alias pragmas.
25847 2005-07-04 Arnaud Charlet <charlet@adacore.com>
25849 * s-stausa.ads, s-stausa.adb: New files.
25851 2005-06-30 Kelley Cook
25853 * all files: Update FSF address in copyright headers.
25854 * gen-soccon.co (main): Output new FSF address in generated files.
25856 2005-06-28 Paul Brook <paul@codesourcery.com>
25858 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
25860 2005-06-14 Olivier Hainque <hainque@adacore.com>
25861 Eric Botcazou <ebotcazou@adacore.com>
25863 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
25864 exc_unwind, now that we are generating proper .debug_frame output for
25867 * tracebak.c: Remove the mips-irix section, as we are now using the
25868 s-mastop based unwinder again.
25869 Under SPARC/Solaris, take into account the stack bias to compute the
25870 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
25873 2005-06-14 Doug Rupp <rupp@adacore.com>
25875 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
25877 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
25879 2005-06-14 Pascal Obry <obry@adacore.com>
25881 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
25882 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
25883 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
25886 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
25887 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
25888 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
25889 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
25890 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
25891 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
25892 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
25893 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
25894 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
25895 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
25896 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
25897 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
25898 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
25899 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
25900 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
25901 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
25902 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
25903 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
25904 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
25905 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
25906 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
25907 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
25908 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
25909 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
25910 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
25911 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
25912 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
25913 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
25914 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
25915 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
25916 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
25917 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
25918 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
25919 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
25920 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
25921 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
25922 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
25923 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
25924 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
25925 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
25926 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
25927 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
25928 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
25929 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
25930 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
25931 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
25932 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
25933 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
25934 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
25935 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
25936 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25937 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25938 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
25939 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25940 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
25941 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25942 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
25943 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
25944 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
25945 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
25946 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
25947 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
25948 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
25949 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25950 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25951 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
25952 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25953 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
25954 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
25955 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
25956 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25957 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25958 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25959 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25960 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25961 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25962 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25963 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25964 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25965 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25966 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25967 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25968 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25969 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25970 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25971 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25972 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25973 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25974 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25975 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25976 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25977 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25978 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25979 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25980 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25981 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25982 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25983 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25984 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25985 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25986 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25987 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25988 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25989 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25990 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25991 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25992 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25993 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25994 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25995 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25996 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25997 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25998 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25999 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
26000 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
26001 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
26002 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
26003 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
26004 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
26005 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
26006 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
26007 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
26008 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
26009 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
26010 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
26011 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
26012 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
26013 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
26014 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
26015 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
26016 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
26017 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
26018 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
26020 2005-06-14 Jose Ruiz <ruiz@adacore.com>
26021 Arnaud Charlet <charlet@adacore.com>
26023 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
26024 longer protected objects. They have been replaced by lower-level
26025 suspension objects made up by a mutex and a condition variable (or
26026 their equivalent given a particular OS) plus some internal data to
26027 reflect the state of the suspension object.
26028 (Initialize, Finalize): Add this initialization procedure for
26029 Suspension_Object, which is a controlled type.
26030 (Finalize): Add the finalization procedure for Suspension_Object,
26031 which is a controlled type.
26033 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
26034 Ada.Synchronous_Task_Control because there is no longer a need for a
26035 VxWorks specific version of this package. Target dependencies
26036 has been moved to System.Task_Primitives.Operations.
26038 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
26040 (InitializeCriticalSection, EnterCriticalSection,
26041 LeaveCriticalSection, DeleteCriticalSection): Replace the type
26042 pCriticalSection by an anonymous access type so that we avoid problems
26043 of accessibility to local objects.
26045 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
26046 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
26047 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
26048 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
26049 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
26050 set the environment task mask here.
26051 (Current_State): Add this function that returns the state of the
26053 (Set_False): Add this procedure that sets the state of the suspension
26055 (Set_True): Add this procedure that sets the state of the suspension
26056 object to True, releasing the task that was suspended, if any.
26057 (Suspend_Until_True): Add this procedure that blocks the calling task
26058 until the state of the object is True. Program_Error is raised if
26059 another task is already waiting on that suspension object.
26060 (Initialize): Add this procedure for initializing the suspension
26061 object. It initializes the mutex and the condition variable which are
26062 used for synchronization and queuing, and it sets the internal state
26064 (Finalize): Add this procedure for finalizing the suspension object,
26065 destroying the mutex and the condition variable.
26067 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
26068 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
26069 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
26070 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
26071 which provides a low-level abstraction (using operating system
26072 primitives) for Ada.Synchronous_Task_Control.
26073 This object is made up by a mutex (for ensuring mutual exclusion), a
26074 condition variable (for queuing threads until the condition is
26075 signaled), a Boolean (State) indicating whether the object is open,
26076 and a Boolean (Waiting) reflecting whether there is a task already
26077 suspended on this object.
26079 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
26080 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
26081 s-intman-vms.ads, s-intman-mingw.adb,
26082 (Initialize_Interrupts): Removed, no longer used.
26084 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
26085 (Setup_Interrupt_Mask): New procedure.
26087 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
26089 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
26091 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
26092 this is no longer done in the body of s-taprop
26093 (Server_Task): Explicitely test for Pending_Action in case
26094 System.Parameters.No_Abort is True.
26096 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
26097 is no longer done in the body of s-taprop
26099 2005-06-14 Robert Dewar <dewar@adacore.com>
26101 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
26102 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
26103 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26104 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
26105 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
26106 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
26107 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
26108 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
26109 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
26110 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
26111 system-linux-hppa.ads, system-vms_64.ads,
26112 system-vxworks-alpha.ads: Minor comment update for
26113 AI-362 (unit is Pure).
26115 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
26116 Add pragma Pure_05 for AI-362
26117 Make remaining conversion functions obsolescent in Ada 95
26119 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
26120 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
26121 Add entries for a-wichun and a-zchuni
26122 Add a-widcha a-zchara for AI-395
26123 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
26125 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
26126 Add entries for a-wichun.o and a-zchuni.o
26127 Entries for a-widcha.o and a-zchara.o
26128 Add entry for a-chacon.o
26130 * a-ztenau.adb: Add with of Ada.Characters.Conversions
26132 * a-chacon.ads, a-chacon.adb: New files.
26134 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
26135 categorization violations.
26137 * a-strmap.ads: Add pragma Pure_05 for AI-362
26138 * a-strmap.ads: Add note on implicit categorization for AI-362
26140 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
26142 * par-prag.adb: Dummy entry for pragma Persistent_BSS
26143 Set Ada_Version_Explicit, for implementation of AI-362
26144 Add processing for pragma Pure_05 and Preelaborate_05
26145 Add entry for Assertion_Policy pragma
26147 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
26148 when needed for proper processing of categorization stuff
26151 For several cases, make errors in preealborate units warnings,
26152 instead of errors, if GNAT_Mode is set. For AI-362.
26154 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
26155 preelaborate unit is now warning if in GNAT mode
26157 * s-stoele.ads: Document AI-362 for pragma preelaborate
26159 2005-06-14 Doug Rupp <rupp@adacore.com>
26161 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
26162 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
26163 Default_Exception_Msg_Max_Length: new parameter.
26165 * a-except.ads: (Exception_Msg_Max_Length): Set to
26166 System.Parameters.Default_Exception_Msg_Max_Length
26167 Add pragma Preelaborate_05 for AI-362
26168 Add warnings off to allow categorization violations for AI-362
26170 2005-06-14 Vincent Celier <celier@adacore.com>
26172 * gnatsym.adb: Adapt to modification of package Symbols: procedure
26173 Process is now in package Processing.
26175 * symbols.ads, symbols.adb:
26176 (Processing): New package, containing procedure Process
26178 * symbols-vms-alpha.adb:
26179 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
26181 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
26182 symbols-processing-vms-ia64.adb: New files.
26184 2005-06-14 Pascal Obry <obry@adacore.com>
26186 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
26187 implementation. This new version generates the proper DllMain routine
26188 to initialize the SAL. The DllMain is generated in Ada and compiled
26189 before being added as option to the library build command.
26191 2005-06-14 Doug Rupp <rupp@adacore.com>
26192 Pascal Obry <obry@adacore.com>
26194 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
26195 call to decc$translate_vms.
26196 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
26197 need to remove those quotes before catenating the filename.
26198 (__gnat_locate_exec_on_path): improvements to the Win32 section:
26199 * avoid allocating the memory twice for better efficiency;
26200 * allocate 32K buffer for environment expansion as suggested by MSDN;
26201 * prepend ".;" to the path so that current directory is searched too.
26203 2005-06-14 Robert Dewar <dewar@adacore.com>
26205 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
26206 instead of raising CE (AI-241)
26207 Add warnings off to allow categorization violations for AI-362
26209 2005-06-14 Robert Dewar <dewar@adacore.com>
26211 * ali-util.adb, gnatbind.adb: Remove references to
26212 Force_RM_Elaboration_Order.
26214 * switch-b.adb: Remove recognition of -f switch
26216 2005-06-14 Pascal Obry <obry@adacore.com>
26218 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
26219 implementation which is slightly more efficient.
26221 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26222 Javier Miranda <miranda@adacore.com>
26223 Ed Schonberg <schonberg@adacore.com>
26224 Hristian Kirtchev <kirtchev@adacore.com>
26226 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
26227 allocator's designated type is a class-wide type, and compiling for
26228 Ada 2005, emit a run-time check that the accessibility level of the
26229 type given in the allocator's expression is not deeper than the level
26230 of the allocator's access type.
26232 (Tagged_Membership): Modified to gives support to abstract interface
26235 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
26237 (Descendant_Tag): New predefined function
26238 (Is_Descendant_At_Same_Level): New predefined function
26239 (Get_Access_Level): New private function
26240 (Set_Access_Level): New private procedure
26241 (IW_Membership): New function. Given the tag of an object and the tag
26242 associated with an interface, evaluate if the object implements the
26244 (Register_Interface_Tag): New procedure used to initialize the table of
26245 interfaces used by the IW_Membership function.
26246 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
26247 of the dispatch table.
26248 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
26249 table of interfaces of the parent.
26250 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
26251 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
26252 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
26253 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
26254 Ada 2005 semantics for the new predefined function.
26256 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
26257 call to Descendant_Tag rather than Internal_Tag.
26258 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
26259 the accessibility level of the attribute's Item parameter is not deeper
26260 than the level of the attribute's prefix type. Tag_Error is raised if
26261 the check fails. The check is only emitted for Ada_05.
26262 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
26263 requested stream attribute, use it.
26264 (Expand_N_Attribute_Reference): If the designated type is an interface
26265 then rewrite the referenced object as a conversion to force the
26266 displacement of the pointer to the secondary dispatch table.
26267 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
26268 is a dereference of an object with a constrained partial view.
26270 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
26271 type is a class-wide type, emit a run-time check that the accessibility
26272 level of the returned object is not deeper than the level of the
26273 function's master (only when compiling for Ada 2005).
26275 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
26276 Action_Nb_Arg): Add entries for new Get_Access_Level and
26277 Set_Access_Level routines in these tables.
26278 (Make_DT): Generate a call to set the accessibility level of the
26279 tagged type in its TSD.
26280 (Make_DT): Code cleanup. The functionality of generating all the
26281 secondary dispatch tables has been moved to freeze_record_type.
26282 (Make_Abstract_Interface_DT): Minor code cleanup.
26283 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
26284 this subprogram implements a new algorithm that provides the
26285 same functionality and it is more clear in case of primitives
26286 associated with abstract interfaces.
26287 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
26288 clean up, the functionality of this subprogram is now provided
26289 by Set_All_DT_Position.
26290 (Write_DT): New subprogram: a debugging procedure designed to be called
26291 within gdb to display the dispatch tables associated with a tagged
26293 (Collect_All_Interfaces): New subprogram that collects the whole list
26294 of interfaces that are directly or indirectly implemented by a tagged
26296 (Default_Prim_Op_Position): New subprogram that returns the fixed
26297 position in the dispatch table of the default primitive operations.
26298 (Expand_Interface_Actuals): New subprogram to generate code that
26299 displaces all the actuals corresponding to class-wide interfaces to
26300 reference the interface tag of the actual object.
26301 (Expand_Interface_Conversion): New subprogram. Reference the base of
26302 the object to give access to the interface tag associated with the
26303 secondary dispatch table.
26304 (Expand_Interface_Thunk): New subprogram that generates the code of the
26305 thunk. This is required for compatibility with the C+ ABI.
26306 (Make_Abstract_Interface_DT): New subprogram that generate the
26307 declarations for the secondary dispatch tables associated with an
26308 abstract interface.
26309 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
26310 attribute for each primitive operation covering interface subprograms
26311 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
26312 These subprograms were upgraded to give support to abstract interfaces
26314 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
26315 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
26316 RE_Set_Access_Level.
26317 (RE_Unit_Table): Add entries for new Ada.Tags operations.
26318 Add support to call the followig new run-time subprograms:
26319 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
26321 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
26322 match its full declaration when both have an access definition with
26323 statically matching designated subtypes.
26324 (Analyze_Component_Declaration): Delete commented out code that was
26325 incorrectly setting the scope of an anonymous access component's type.
26326 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
26327 an access discriminant when the containing type is nonlimited.
26328 (Make_Incomplete_Type_Declaration): Create an incomplete type
26329 declaration for a record type that includes self-referential access
26331 (Check_Anonymous_Access_Types): Before full analysis of a record type
26332 declaration, create anonymous access types for each self-referential
26334 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
26335 an access component in this context is a Local_Anonymous_Access, for
26336 proper accessibility checks.
26337 (Access_Definition): Set properly the scope of the anonymous access type
26338 created for a stand-alone access object.
26339 (Find_Type_Of_Object): An object declaration may be given with an access
26341 (Complete_Subprograms_Derivation): New subprogram used to complete
26342 type derivation of private tagged types implementing interfaces.
26343 In this case some interface primitives may have been overriden
26344 with the partial-view and, instead of re-calculating them, they
26345 are included in the list of primitive operations of the full-view.
26346 (Build_Derived_Record_Type): Modified to give support to private
26347 types implemening interfaces.
26348 (Access_Definition): Reject ALL on anonymous access types.
26349 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
26350 type derivation to occur at a deeper accessibility level than the
26352 For the case of derivation within a generic body however, disallow the
26353 derivation if the derived type has an ancestor that is a formal type
26354 declared in the formal part of an enclosing generic.
26355 (Analyze_Object_Declaration): For protected objects, remove the check
26356 that they cannot contain interrupt handlers if not declared at library
26358 (Add_Interface_Tag_Components): New subprogram to add the tag components
26359 corresponding to all the abstract interface types implemented by a
26360 record type or a derived record type.
26361 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
26362 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
26363 Process_Full_View, Record_Type_Declaration): Modified to give
26364 support to abstract interface types
26365 (Collect_Interfaces): New subprogram that collects the list of
26366 interfaces that are not already implemented by the ancestors
26367 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
26368 when partial view has no discriminants and full view has defaults.
26369 (Constrain_Access): Reject a constraint on a general access type
26370 if the discriminants of the designated type have defaults.
26371 (Access_Subprogram_Declaration): Associate the Itype node with the inner
26372 full-type declaration or subprogram spec. This is required to handle
26373 nested anonymous declarations.
26374 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
26375 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
26376 Process_Full_View, Record_Type_Declaration): Modified to give
26377 support to abstract interface types
26378 (Derive_Subprograms): Addition of a new formal to indicate if
26379 we are in the case of an abstact-interface derivation
26380 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
26381 to the specification because it is requied to analyze all the
26382 identifiers found in a list of interfaces
26384 * debug.adb: Complete documentation of flag "-gnatdZ"
26386 * exp_ch3.adb: Implement config version of persistent_bss pragma
26387 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
26388 testing for TSS presence to properly enforce visibility rules.
26389 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
26390 Make_Abstract_Interfaces_DT to generate the secondary tables
26391 associated with abstract interfaces.
26392 (Build_Init_Procedure): Modified to initialize all the tags
26394 (Component_Needs_Simple_Initialization): Similar to other tags,
26395 interface tags do not need initialization.
26396 (Freeze_Record_Type): Modified to give support to abstract interface
26398 (Expand_N_Object_Declaration): Do not generate an initialization for
26399 a scalar temporary marked as internal.
26401 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
26402 in-out parameter that is a component in an initialization procedure,
26403 whose constraint might depend on discriminants, and that may be
26404 misaligned because of packing or representation clauses.
26405 (Is_Legal_Copy): New predicate to determine whether a possibly
26406 misaligned in-out actual can actually be passed by copy/return. This
26407 is an error in case the type is by_reference, and a warning if this is
26408 the consequence of a DEC import pragma on the subprogram.
26409 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
26411 (Expand_Inlined_Call): Mark temporary generated for the return value as
26412 internal, so that no useless scalar normalization is generated for it.
26413 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
26414 null procedure can always be inlined.
26415 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
26416 procedure, generate an explicit empty body for it.
26418 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
26419 Given a type implementing an interface, returns the corresponding
26420 access_disp_table value.
26421 (Find_Interface_Tag): New subprogram. Given a type implementing an
26422 interface, returns the record component containing the tag of the
26424 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
26425 previous ones that return the corresponding tag and access_disp_table
26427 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
26428 is a predefined primitive operation.
26429 (Expand_Subtype_From_Expr): If the expression is a selected component
26430 within an initialization procedure, compute its actual subtype, because
26431 the component may depend on the discriminants of the enclosing record.
26433 * i-cpp.ads, i-cpp.adb:
26434 This package has been left available for compatibility with previous
26435 versions of the frontend. As part of the new layout this is now a
26436 dummy package that uses declarations available at a-tags.ads
26438 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
26439 "constant access" and "aliased [constant] access" when not compiling
26441 Suppress Ada 2005 keyword warning if -gnatwY used
26442 (P_Identifier_Declarations): Add support for object declarations with
26443 access definitions.
26444 (Private_Extension_Declaration): Complete the documentation
26445 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
26446 attribute in case of private extension declaration
26447 (P_Type_Declaration): Mark as "abstract" the type declarations
26448 corresponding with protected, synchronized and task interfaces
26449 (P_Declarative_Items): "not" and "overriding" are overriding indicators
26450 for a subprogram or instance declaration.
26452 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
26453 instantiation that is a dispatching operation has controlling access
26454 parameters that are null excluding.
26455 Save and restore Ada_Version_Explicit, for implementation of AI-362
26456 (Validate_Derived_Type_Instance): Add check for abstract interface
26458 (Analyze_Formal_Package): Establish Instantiation source for the copy of
26459 the generic that is created to represent the formal package.
26460 (Analyze_Package_Instantiation): Instantiate body immediately if the
26461 package is a predefined unit that contains inlined subprograms, and
26462 we are compiling for a Configurable_Run_Time.
26463 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
26464 If the program has a null default, generate an empty body for it.
26466 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
26467 error message condition, null procedures are correctly detected now.
26468 (New_Overloaded_Entity): Bypass trivial overriding indicator check
26469 for subprograms in the context of protected types. Instead, the
26470 indicator is examined in Sem_Ch9 while analysing the subprogram
26472 (Check_Overriding_Indicator): Check consistency of overriding indicator
26473 on subprogram stubs as well.
26474 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
26476 (Analize_Subprogram_Specification): When analyzing a subprogram in which
26477 the type of the first formal is a concurrent type, replace this type
26478 by the corresponding record type.
26479 (Analyze_Subprogram_Body): Undo the previous work.
26480 (Analyze_Procedure_Call): If the call has the form Object.Op, the
26481 analysis of the prefix ends up analyzing the call itself, after which
26483 (Has_Interface_Formals): New subprogram subsidiary to analyze
26484 subprogram_specification that returns true if some non
26485 class-wide interface subprogram is found
26486 (New_Overloaded_Entity): Modified to give support to abstract
26488 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
26489 access to subprograms must be recursive.
26490 (Is_Unchecked_Conversion): Improve the test that recognizes
26491 instantiations of Unchecked_Conversion, and allows them in bodies that
26492 are to be inlined by the front-end. When the body comes from an
26493 instantiation, a reference to Unchecked_Conversion will be an
26494 Expanded_Name, even though the body has not been analyzed yet.
26495 Replace Is_Overriding and Not_Overriding in subprogram_indication with
26496 Must_Override and Must_Not_Override, to better express intent of AI.
26497 (Analyze_Subprogram_Body): If an overriding indicator is given, check
26498 that it is consistent with the overrinding status of the subprogram
26500 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
26502 If the subprogram is a null procedure, indicate that it does not need
26505 * sem_disp.adb (Check_Controlling_Type): Give support to entities
26506 available through limited-with clauses.
26507 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
26508 allowed as the last primitive of a tagged type if it has no previous
26510 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
26511 to give support to abstract interface types
26513 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
26514 in the case where the target type is an anonymous access type of an
26515 object or component (that is, when Is_Local_Anonymous_Access is true).
26516 Prevent the special checks for conversions of access discriminants in
26517 the case where the discriminant belongs to a nonlimited type, since
26518 such discriminants have their accessibility level defined in the same
26519 way as a normal component of an anonymous access type.
26520 (Resolve_Allocator): When an allocator's designated type is a class-wide
26521 type, check that the accessibility level of type given in the
26522 allocator's expression or subtype indication is not statically deeper
26523 than the level of the allocator's access type.
26524 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
26525 name in a discriminant constraint of a record component.
26526 (Resolve_Explicit_Dereference): Do not check whether the type is
26527 incomplete when the dereference is a use of an access discriminant in
26528 an initialization procedure.
26529 (Resolve_Type_Conversion): Handle conversions to abstract interface
26531 (Valid_Tagged_Conversion): The conversion of a tagged type to an
26532 abstract interface type is always valid.
26533 (Valid_Conversion): Modified to give support to abstract interface types
26534 (Resolve_Actuals): Enable full error reporting on view conversions
26535 between unrelated by_reference array types.
26536 The rule for view conversions of arrays with aliased components is
26537 weakened in Ada 2005.
26538 Call to obsolescent subprogram is now considered to be a violation of
26539 pragma Restrictions (No_Obsolescent_Features).
26540 (Check_Direct_Boolean_Operator): If the boolean operation has been
26541 constant-folded, there is nothing to check.
26542 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
26543 check on possible violation of restriction No_Direct_Boolean_Operators
26544 until after expansion of operands, to prevent spurious errors when
26545 operation is constant-folded.
26547 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
26548 Has_Compatible_Type): Modified to give support to abstract interface
26550 (Interface_Present_In_Ancestor): New function to theck if some ancestor
26551 of a given type implements a given interface
26553 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
26554 prefix is a parameterless function that returns an access_to_procedure.
26555 (Transform_Object_Operation): Handle properly function calls of the
26556 form Obj.Op (X), which prior to analysis appear as indexed components.
26557 (Analyze_One_Call): Complete the error notification to help new Ada
26559 (Analyze_Allocator): For an allocator without an initial value, where
26560 the designated type has a constrained partial view, a discriminant
26561 constraint is illegal.
26563 2005-06-14 Robert Dewar <dewar@adacore.com>
26565 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
26566 do with treatment of Set_Col when positioned at end of line character.
26568 2005-06-14 Robert Dewar <dewar@adacore.com>
26570 * atree.adb: (Elist*): Protect against uninitialized field
26572 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26574 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
26575 for an attribute reference that returns an access type.
26576 (Apply_Discriminant_Check): No need for check if (designated) type has
26577 constrained partial view.
26579 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
26580 both bound checks, rather than a conjunction.
26581 (Insert_Valid_Check): If the expression is an actual that is an indexed
26582 component of a bit-packed array, force expansion of the packed element
26583 reference, because it is specifically inhibited elsewhere.
26585 2005-06-14 Vincent Celier <celier@adacore.com>
26587 * clean.adb (Clean_Project): Correctly delete executable specified as
26588 absolute path names.
26590 * make.adb (Gnatmake): Allow relative executable path names with
26591 directory information even when project files are used.
26592 (Change_To_Object_Directory): Fail gracefully when unable to change
26593 current working directory to object directory of a project.
26594 (Gnatmake): Remove exception handler that could no longer be exercized
26595 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
26596 may be deallocated by Normalize_Arguments.
26597 (Collect_Arguments): Eliminate empty arguments
26599 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
26600 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
26601 (Check_Project): Return False when Project is No_Project. Return True
26602 when All_Projects is True.
26603 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
26604 All_Projects to True.
26607 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26608 Javier Miranda <miranda@adacore.com>
26609 Thomas Quinot <quinot@adacore.com>
26610 Robert Dewar <dewar@adacore.com>
26611 Hristian Kirtchev <kirtchev@adacore.com>
26612 Gary Dismukes <dismukes@adacore.com>
26614 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
26615 anonymous access types, to indicate that the accessibility level of
26616 the type is determined by that of the enclosing declaration.
26617 (Has_Persistent_BSS): New flag
26618 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
26619 of this attribute with functions.
26620 (Is_Primitive_Wrapper): Remove the barrier.
26621 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
26622 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
26624 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
26625 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
26627 (Is_Pure_Unit_Access_Type): New flag
26628 (Abstract_Interfaces): Complete the assertion to cover all usages.
26629 (Set_Is_Interface): Complete the assertion to cover all usages.
26630 (Is_Primitive_Wrapper): New attribute.
26631 (Is_Obsolescent): Now applies to all entities (though it is only set
26632 for subprograms currently)
26633 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
26634 which solves various problems concerning access subtypes.
26635 (Has_Persistent_BSS): New flag
26636 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
26637 Remove these subprograms because this attribute is currently
26640 Has_Specified_Stream_Input (Flag190)
26641 Has_Specified_Stream_Output (Flag191)
26642 Has_Specified_Stream_Read (Flag192)
26643 Has_Specified_Stream_Write (Flag193)
26644 Present in all type and subtype entities. Set for a given view if the
26645 corresponding stream-oriented attribute has been defined by an
26646 attribute definition clause. When such a clause occurs, a TSS is set
26647 on the underlying full view; the flags are used to track visibility of
26648 the attribute definition clause for partial or incomplete views.
26649 (Is_Pure_Unit_Access_Type): New flag
26650 Clarify use of Is_Internal.
26651 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
26652 internally generated to wrap the invocation of tasks and protected
26653 types that implement interfaces.
26654 (Implementation_Base_Type): Documentation correction
26655 (Is_Obsolescent): Now applies to all entities (though it is only set
26656 for subprograms currently)
26657 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
26658 which solves various problems concerning access subtypes.
26660 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
26661 for examined parameters. Identify unequal parameter list lengths as
26662 non-conformant parameters.
26663 (Overriding_Possible): Do not check for "All" qualifier in declaration
26664 of controlling access parameter, following prescription of AI-404.
26665 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
26666 that build the procedure body that wraps an entry invocation
26667 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
26668 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
26669 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
26670 give support to abstract interface types
26672 * freeze.adb (Freeze_Entity): Issue error message if
26673 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
26674 type has no storage pool (Ada 2005) AI-366.
26675 Also modified to give support to abstract interface types
26676 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
26677 Inline_Always pragma.
26679 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
26680 now begin an entry declaration.
26681 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
26682 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
26683 a subprogram declaration preceded by an overriding indicator.
26684 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
26685 declarations or subprogram declarations preceded by reserved words
26686 "not" or "overriding".
26687 (P_Entry_Declaration): Update comment. Parse and check overriding
26688 indicator, set semantic flags of entry declarations.
26689 (P_Task): New error message in case of private applied
26690 to a task type declaration.
26691 (P_Protected): New error message in case of private applied
26692 to a task type declaration.
26694 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
26695 in which the full view of a type implementing an interface is a
26697 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
26698 Declare_Inherited_Private_Subprograms): If an explicit operation
26699 overrides an operation that is inherited in the private part, mark the
26700 explicit one as overriding, to enable overriding indicator checks.
26701 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
26702 full view to partial view, to simplify handling in back-end.
26704 * sprint.adb: Print interface lists where needed: derived types,
26705 protected types, task types.
26706 output "is null" for null procedures. Part of implementation of
26708 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
26709 relaxation of rules for access types in pure, shared passive partitions.
26711 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
26712 first read discriminants into temporary objects, performing checks on
26713 the read values, then possibly performing discriminant checks on the
26714 actual (if it is constrained), and only finally reading the components
26715 into a constrained temporary object.
26716 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
26717 case of reading discriminants of a mutable record type to recognize
26718 the new form of the code generated by
26719 Build_Mutable_Record_Read_Procedure.
26721 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
26722 of a simple call to Make_TSS_Name.
26723 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
26724 buffer, in order for Is_TSS to work correctly on local TSS names.
26726 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
26727 Is_Local_Anonymous_Access to check legaliy of attributes in the
26728 context of access components and stand-alone access objects.
26729 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
26730 treated as available for a limited private type if there is an
26731 attribute_definition_clause that applies to its full view, but not in
26732 other cases where the attribute is available for the full view
26733 (specifically, the sole fact that the full view is non-limited does not
26734 make the attribute available for the partial view).
26735 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
26736 non-overloaded intrinsic subprogram.
26737 (Check_Stream_Attribute): Reject an attribute reference for an
26738 unavailable stream attribute even if the prefix is not a limited type
26739 (case of a 'Input attribute reference for an abstract, non-classwide
26741 (Stream_Attribute_Available): New function to determine whether a stream
26742 attribute is available at a place.
26743 (Check_Attribute): Use Stream_Attribute_Available instead of just
26744 testing for TSS presence on the implementation base type.
26745 (Analyze_Attribute): Modified to give support to task interfaces.
26746 (Analyze_Access_Attribute): Add error check for use of an Access (or
26747 Unrestricted_Access) attribute with a subprogram marked as
26749 (Analyze_Attribute, case Attribute_Address): Add error check for use of
26750 an Address attribute with a subprogram marked as Inline_Always.
26751 Update Eval_Attribute to handle new value of Width from AI-395
26753 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
26754 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
26755 Factor common code across the stream-oriented attribute circcuits into
26756 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
26757 processing is functionally identical to the previous duplicated one,
26758 except that an expression that denotes an abstract subprogram will now
26759 be rejected, as mandated by AI-195 item 5.
26761 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
26762 Is_Local_Anonymous_Access to apply accessibility checks to access
26763 components and stand-alone access objects.
26764 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
26766 (Is_Potentially_Persistent_Type): New function
26767 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
26768 a heap-object whose type has a constrained partial view, the object is
26769 unconstrained and the component may depend on a discriminant, making its
26772 * sinfo.ads, sinfo.adb
26773 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
26774 (Must_Override): Flag applicable to N_Entry_Declaration.
26775 Indicate that interface_list can appear in single task and single
26776 protected declarations.
26777 Replace Is_Overriding and Not_Overriding with Must_Override and
26778 Must_Not_Override, to better express intent of AI.
26779 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
26780 of an overriding indicator in a subprogram or instance.
26781 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
26782 Add the overriding indicator [[not] overriding] construct to the
26783 following grammar productions:
26785 GENERIC_INSTANTIATION
26786 SUBPROGRAM_SPECIFICATION
26788 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
26789 can start with an overriding indicator.
26791 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
26792 flags accordingly on subrogram specifications or instances.
26795 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
26796 overriding_indicator, if present, is consistent with status of spec.
26797 Improve error message for null-excluding checks on controlling access
26799 (Check_In_Previous_With_Clause): Protect the frontend against
26800 previously reported critical errors in the context clauses.
26801 Save and restore Ada_Version_Explicit, for implementation of AI-362
26802 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
26803 operation verify that controlling formals of the renamed entity that
26804 are access parameters are explicitly non-null.
26805 (Find_Expanded_Name): Improve error message when prefix is an illegal
26806 reference to a private child unit.
26808 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
26809 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
26810 Rewrite to correspond to new wide character names in AI-395
26812 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
26813 default procedures.
26815 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26816 Robert Dewar <dewar@adacore.com>
26818 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
26819 code, not on the bodies of predefined operations, to cut down on
26822 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26824 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
26825 be expanded in place. The size computation does not require a
26826 subtraction, which would raise an exception on a compiler built with
26827 assertions when the upper bound is Integer'first.
26828 (Flatten): For an array of composite components, take into account the
26829 size of the components to determine whether it is safe to expand the
26830 array into a purely positional representation.
26832 2005-06-14 Thomas Quinot <quinot@adacore.com>
26834 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
26835 denoting a formal parameter into account.
26837 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26839 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
26840 the entry_call alternative of a conditional entry call, wrap the
26841 conditional entry call itself.
26843 2005-06-14 Nicolas Setton <setton@adacore.com>
26844 Ed Schonberg <schonberg@adacore.com>
26846 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
26847 the "simple_choice" member in a variant record, in accordance with the
26848 description in the package spec: the information output for a constant
26849 should be "S number", not "SS number".
26850 (Get_Encoded_Name): Return at once if not generating code. Avoids name
26851 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
26853 2005-06-14 Thomas Quinot <quinot@adacore.com>
26855 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
26856 RACW without any primitives, do not generate the if statement for
26857 dispatching by name in the PolyORB/DSA case, as it would be malformed
26858 (it would have an Elsif_Parts list that is not No_List, but with a
26861 2005-06-14 Robert Dewar <dewar@adacore.com>
26863 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
26865 2005-06-14 Jose Ruiz <ruiz@adacore.com>
26867 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
26868 can determine whether pragma Suppress_Exception_Locations is in effect.
26870 * utils2.c (build_call_raise): Do not pass the file name to the
26871 exception handler if pragma Suppress_Exception_Locations is in effect.
26872 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
26874 2005-06-14 Emmanuel Briot <briot@adacore.com>
26876 * g-debpoo.adb (Deallocate, Dereference): Improve output.
26878 2005-06-14 Nicolas Roche <roche@adacore.com>
26880 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
26882 (Next_Level): Fix minor bug in handling of ../dir case
26883 (Read): Add dir separator to Directory name so that "" is understood as
26886 2005-06-14 Pascal Obry <obry@adacore.com>
26888 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
26889 releasing the items.
26891 2005-06-14 Vincent Celier <celier@adacore.com>
26892 Cyrille Comar <comar@adacore.com>
26894 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
26895 with output file descriptor and with output file name.
26896 (Dup, Dup2): Now global procedures as they are used by two subprograms
26897 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
26899 2005-06-14 Thomas Quinot <quinot@adacore.com>
26902 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
26904 (Create_Selector): Bind listening socket used to create the signalling
26905 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
26906 Set listen backlog to 1 to ensure that we detect socket theft by a
26907 failure of our own connect(2) call.
26908 (Check_Selector): Improve documentation of the selector mechanism.
26909 (Broadcast_Inet_Addr): New constant.
26911 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26913 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
26914 type which turns out to be an incomplete and incorrect fix.
26915 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
26916 of the type is declared in a record (for determination of insertion
26918 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
26919 a private type and ensure that the primary entity is used for the type
26920 of the newly created function's V formal by taking the Etype of the
26923 2005-06-14 Javier Miranda <miranda@adacore.com>
26924 Jose Ruiz <ruiz@adacore.com>
26925 Robert Dewar <dewar@adacore.com>
26926 Ed Schonberg <schonberg@adacore.com>
26928 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
26929 that indicates if we are parsing a compilation unit found in a
26930 limited-with clause.
26931 It is use to avoid the circularity check.
26933 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
26934 we are parsing a compilation unit found in a limited-with clause. This
26935 is use to avoid the circularity check.
26937 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26938 unit as a consequence of parsing a limited-with clause. This is used
26939 to avoid the circularity check.
26941 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
26942 (Analyze_Context): Limited-with clauses are now allowed
26943 in more compilation units.
26944 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
26945 againts previously reported critical errors in context clauses
26946 (Install_Limited_Withed_Unit): Code cleanup plus static detection
26947 of two further errors: renamed subprograms and renamed packages
26948 are not allowed in limited with clauses.
26949 (Install_Siblings): Do not install private_with_clauses on the package
26950 declaration for a non-private child unit.
26951 (Re_Install_Parents): When a parent of the subunit is reinstalled,
26952 reset visibility of child units properly.
26953 (Install_Withed_Unit): When a child unit appears in a with_clause of its
26954 parent, it is immediately visible.
26956 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26957 Emmanuel Briot <briot@adacore.com>
26959 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26960 declared within an inlined body as referenced, to prevent spurious
26962 (Output_One_Ref): If an entity renames an array component, indicate in
26963 the ALI file that this aliases (renames) the array. Capture as well
26964 function renamings that rename predefined operations.
26965 Add information about generic parent for package and subprogram
26967 (Get_Type_Reference): For a subtype that is the renaming of an actual in
26968 an instantiation, use the first_subtype to ensure that we don't generate
26969 cross-reference information for internal types.
26970 For objects and parameters of a generic private type, retain the '*'
26971 indicator to distinguish such an entity from its type.
26973 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26974 to store information about instantiated entities.
26976 * ali.adb (Scan_ALI): Add support for parsing the reference to the
26979 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26980 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26983 2005-06-10 Doug Rupp <rupp@adacore.com>
26984 Arnaud Charlet <charlet@adacore.com>
26985 Olivier Hainque <hainque@adacore.com>
26986 Jose Ruiz <ruiz@adacore.com>
26988 * Make-lang.in: Add initialize.o when needed.
26989 Remove obsolete references to RT_FLAGS.
26990 Add missing dependencies for sdefault.o
26992 * initialize.c: New file.
26994 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26995 [VMS] cond_signal_table: Fix problem in declaration.
26996 [VMS] __gnat_error_handler: rewrite.
26997 Move all __gnat_initialize() routines to initialize.c
26998 Specialize the former "hpux" section to "hppa hpux", as this is what the
26999 section really is here for and we now have other hpux ports that need
27000 different contents.
27001 (__gnat_adjust_context_for_raise) i386-linux: First version of this
27002 function for this target. Adjust PC by one in the machine context. This
27003 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
27004 it is more reliable to do that in the signal handler itself.
27005 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
27006 flags, so that the handler is passed the context structure to adjust
27007 prior to the raise.
27008 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
27009 SA_SIGINFO sigaction should look like. Call
27010 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
27011 Machine_State_Operations stuff.
27012 Add conditional code so that the x86_64 is also supported.
27014 2005-06-14 Pascal Obry <obry@adacore.com>
27016 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
27019 2005-06-14 Robert Dewar <dewar@adacore.com>
27021 * opt.ads, opt.adb: New flags for persistent_bss mode
27022 Add Ada_Version_Explicit, for implementation of AI-362
27023 Add Assertions_Enabled_Config and associated handling
27024 Needed since setting can be changed with Assertion_Policy pragma
27025 Add new flag Warn_On_Ada_2005_Compatibility
27027 * switch-c.adb: Recognize -gnatwy/Y
27028 Set Ada_Version_Explicit, for implementation of AI-362
27029 The -gnatg switch now includes -gnatyu
27031 * usage.adb: Add -gnatwy/Y
27032 Remove wrong asterisk on -gnatwX line
27033 Add line for -gnatyu switch
27035 2005-06-14 Vincent Celier <celier@adacore.com>
27037 * osint.adb (Add_Default_Search_Dirs): Put source and object
27038 directories of project files before directories coming from
27039 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
27041 2005-06-14 Robert Dewar <dewar@adacore.com>
27044 * par-ch2.adb (Scan_Pragma_Argument): New procedure
27045 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
27047 2005-06-14 Vincent Celier <celier@adacore.com>
27049 * prep.adb (Preprocess): Ignore error when scanning the first token of
27052 2005-06-14 Vincent Celier <celier@adacore.com>
27054 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
27055 (Check_Stand_Alone_Library): If the specified reference symbol file does
27056 not exist, only issue a warning when the symbol policy is not
27057 Controlled. And, when symbol policy is Compliant, set the symbol
27058 policy to Autonomous.
27060 2005-06-14 Vincent Celier <celier@adacore.com>
27062 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
27063 when the project file in a with clause is not the last one, that is the
27064 project file name is followed by a comma.
27065 * prj-pp.adb: (First_With_In_List): New Boolean global variable
27066 (Print): Issue list of project files separated by commas in with clauses
27067 according to the values returned by Is_Not_Last_In_List.
27068 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
27069 (Set_Is_Not_Last_In_List): New procedure
27071 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
27073 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
27075 2005-06-14 Robert Dewar <dewar@adacore.com>
27077 * scng.adb: Add call to new Check_EOF routine
27078 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
27079 Add some comments regarding wide character handling
27081 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
27083 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
27085 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
27086 characters are now considered graphic characters and hence yield false
27089 * nmake.adt: Modify header so that xnmake does not generate output
27090 files with multiple blank lines.
27092 * treeprs.adt: Remove a blank line so that output from xtreeprs does
27093 not have an extra blank line
27095 2005-06-14 Gary Dismukes <dismukes@adacore.com>
27097 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
27098 expression when the component type is an anonymous access type to
27099 ensure that appropriate accessibility checks are done.
27101 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
27102 expression of an assignment when the target object is of an anonymous
27103 access type. This ensures that required accessibility checks are done.
27104 (One_Bound): Move the check for type Universal_Integer to
27106 (Process_Bounds): Check whether the type of the preanalyzed range is
27107 Universal_Integer, and in that case set Typ to Integer_Type prior
27108 to setting the type of the original range and the calls to One_Bound.
27110 2005-06-14 Ed Schonberg <schonberg@adacore.com>
27112 * sem_case.adb (Expand_Others_Choice): Improve warning.
27114 2005-06-14 Ed Schonberg <schonberg@adacore.com>
27116 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
27117 constraint of full view if present, when other type is discriminated.
27118 (Eval_Relational_Op): Recognize tests of pointer values against Null,
27119 when the pointer is known to be non-null, and emit appropriate warning.
27121 2005-06-14 Robert Dewar <dewar@adacore.com>
27122 Ed Schonberg <schonberg@adacore.com>
27125 * sem_prag.adb: Implement pragma Persistent_BSS
27126 Remove obsolete pragma Persistent_Data, Persistent_Object
27127 Set Ada_Version_Explicit, for implementation of AI-362
27128 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
27129 Add processing for pragma Pure_05 and Preelaborate_05
27130 Add processing for Assertion_Policy pragma
27131 Add pragma identifiers for Assert
27132 (Analyze_Pragma, case Assert): Check number of arguments
27133 (Process_Inline): Additional guard against an illegal program, where the
27134 argument of the pragma is undefined, and warnings on redundant
27135 constructs are enabled.
27136 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
27137 Ada_05 to this pragma, specifying that the pragma is only active in
27139 (Check_Arg_Order): New procedure
27140 Add appropriate calls to this procedure throughout
27141 Also throughout, check entity name before doing any other checks
27143 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
27144 Remove obsolete pragma Persistent_Data, Persistent_Object
27145 Add entries for pragma Pure_05 and Preelaborate_05
27146 Add entries for Assertion_Policy pragma and associated names
27147 Add some names for pragma argument processing
27149 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
27151 2005-06-14 Ed Schonberg <schonberg@adacore.com>
27153 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
27154 appears within a negation (either from source or as a rewriting of
27155 inequality) adjust text of warning accordingly.
27157 2005-06-14 Thomas Quinot <quinot@adacore.com>
27159 * s-strxdr.adb: Follow AI95-00132
27161 2005-06-14 Arnaud Charlet <charlet@adacore.com>
27163 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
27165 2005-06-14 Arnaud Charlet <charlet@adacore.com>
27166 Jose Ruiz <ruiz@adacore.com>
27168 * s-tposen.adb, s-tpobop.adb
27169 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
27171 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
27172 there is no violation of the Max_Entry_Queue_Length restriction (if it
27173 has been set); Program_Error is raised otherwise.
27174 (Requeue_Call): Before requeuing the task on the target entry queue we
27175 check that there is no violation of the Max_Entry_Queue_Length
27176 restriction (if it has been set); Program_Error is raised otherwise.
27178 2005-06-14 Robert Dewar <dewar@adacore.com>
27180 * styleg.adb: Fix several remaining problems in -gnatyu switch
27181 Blank line count not reset at start
27182 Scanning outside source buffer in some cases
27183 Confusing message for blanks at end of file
27184 Non-empty blank lines not recognized
27186 * nmake.adt: Modify header so that xnmake does not generate output
27187 files with multiple blank lines.
27189 * treeprs.adt: Remove a blank line so that output from xtreeprs does
27190 not have an extra blank line
27192 2005-06-14 Sergey Rybin <rybin@adacore.com>
27194 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
27196 2005-06-14 Doug Rupp <rupp@adacore.com>
27197 Vincent Celier <celier@adacore.com>
27199 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
27202 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
27203 Remove "Library" command.
27204 Change keyword for style check -gnatyd from NOCRLF to
27206 Remove useless second style check keyword NONE
27207 Remove help documentation for inexistent style check keyword
27209 Add help documentation for style check keywords DOS_LINE_ENDINGS,
27210 UNNECESSARY_BLANK_LINES and XTRA_PARENS
27211 Add UNNECESSARY_BLANK_LINES for -gnatyu
27212 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
27214 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
27216 2005-06-14 Vincent Celier <celier@adacore.com>
27218 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
27219 gprmake was invoked with -d.
27220 (Compile_Sources): If -d was used, output the "completed ..." message
27221 for each compilation.
27222 (Scan_Arg): Recognize new switch -d
27223 When -c and at least one main is specified, set
27224 Unique_Compile to True to guarantee that no other sources will be
27227 2005-06-14 Matthew Heaney <heaney@adacore.com>
27229 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
27230 * a-swuwha.ads, a-swuwha.adb: New files
27232 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
27233 * a-szuzha.ads, a-szuzha.adb: New files.
27235 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
27236 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
27237 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
27238 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
27239 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
27240 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
27241 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
27242 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
27243 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
27244 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
27247 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
27248 Olivier Hainque <hainque@adacore.com>
27249 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27250 Pascal Obry <obry@adacore.com>
27252 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
27254 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
27255 making a temporary around a procedure call because of non-addressable
27257 (process_freeze_entity): If entity is a private type, capture size
27258 information that may have been computed for the full view.
27259 (tree_transform, case N_Allocator): If have initializing expression,
27260 check type for Has_Constrained_Partial_View and pass that to
27262 (tree_transform, case N_Return_Statement): Pass extra arg to
27265 * decl.c (annotate_value): Remove early return if -gnatR is not
27267 (gnat_to_gnu_field): Don't make a packable type for a component clause
27268 if the position is byte aligned, the field is aliased, and the clause
27269 size isn't a multiple of the packable alignment. It serves no useful
27270 purpose packing-wise and would be rejected later on.
27271 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
27274 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
27275 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
27277 (create_concat_name): Idem.
27279 2005-06-10 Robert Dewar <dewar@adacore.com>
27280 Eric Botcazou <ebotcazou@adacore.com>
27281 Ben Brosgol <brosgol@adacore.com>
27282 Cyrille Comar <comar@adacore.com>
27283 Sergey Rybin <rybin@adacore.com>
27284 Pascal Obry <obry@adacore.com>
27286 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
27287 Document second argument (Ada_05) of pragma Obsolescent
27288 Add note that call to subprogram marked with pragma Obsolescent
27289 is now considered to be a violation of program Restrictions
27290 (No_Obsolescent_Features).
27291 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
27292 that only machine-dependent attributes are supported.
27295 Commented out menu lines and empty section for gnatclean examples
27297 Fix some over long lines
27298 Clarify and enhance documentation of ADA_PROJECT_PATH.
27299 Rework section 2.11.2(3) about linking with a non-GNU compiler.
27300 Mention new switch -fcallgraph-info.
27301 Mention new switch -fstack-usage.
27302 For gnatpp, replace '-notab' with '-N' and add this option to Index
27303 Corrected VMS example.
27304 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
27306 Add documentation for -gnatyu switch (unnecessary blank lines)
27307 Document new switch -U for GNAT PRETTY and GNAT METRIC
27308 Add note about Stdcall being handled as C convention on non Windows OS.
27309 Remove some junk typo in description of gnatbind -S switch
27310 Remove reference to Extensions_Allowed pragma
27311 Document the new order of the directories to be searched (source and
27312 object directories of project files before directories in ADA_*_PATH
27313 environment variables.
27315 * g-trasym.ads: Document that IRIX is supported
27317 2005-06-10 Arnaud Charlet <charlet@adacore.com>
27319 * Makefile.in: Add initialize.o when needed.
27320 Adapt to new VMS package body Symbols and subunits
27321 No specialized version of a-sytaco is needed for VxWorks.
27323 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
27324 * a-zchara.ads, a-widcha.ads: New files.
27326 * system-hpux-ia64.ads: New file.
27328 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
27329 is imported from the VxWorks kernel.
27331 2005-06-14 Robert Dewar <dewar@adacore.com>
27333 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
27334 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
27335 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
27336 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
27337 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
27338 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
27339 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
27340 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
27341 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
27342 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
27343 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
27344 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
27346 2005-06-14 Thomas Quinot <quinot@adacore.com>
27348 * xeinfo.adb: Fix typo in comment
27350 2005-06-14 Javier Miranda <miranda@adacore.com>
27352 * repinfo.ads: Fix typo in comment
27354 2005-06-14 Gary Dismukes <dismukes@adacore.com>
27356 * s-finimp.adb (Parent_Tag): Delete this imported function (function
27357 Parent_Tag is now in the visible part of Ada.Tags).
27358 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
27359 using imported function.
27361 2005-06-14 Bernard Banner <banner@adacore.com>
27363 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
27364 also apply for handling support for VxSim 653.
27366 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
27368 * xsnames.adb: Add automatic generation of snames.h.
27370 2005-06-14 Thomas Quinot <quinot@adacore.com>
27372 * gen-soccon.c: Add IP_MULTICAST_IF constant
27373 Minor reformatting and adjustments to prevent warnings.
27375 2005-06-14 Pascal Obry <obry@adacore.com>
27377 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
27379 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
27381 * trans.c (gnat_gimplify_expr): Call
27382 recompute_tree_invarant_for_addr_expr when we change
27383 the operand of the ADDR_EXPR.
27385 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27387 * misc.c: Don't include errors.h.
27389 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27391 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
27393 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
27395 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
27397 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
27399 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
27402 * Makefile.in: Make TGT_LIB behave correctly.
27404 2005-04-23 DJ Delorie <dj@redhat.com>
27406 * misc.c: Adjust warning() callers.
27408 2005-04-16 Laurent Guerby <laurent@guerby.net>
27411 * a-nudira.adb (Value): Check for valid string.
27412 * a-nuflra.adb (Value): Likewise.
27414 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
27416 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
27418 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
27420 * adaint.c, init.c, tracebak.c: Fix comment typos.
27421 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
27423 2005-04-07 Laurent Guerby <laurent@guerby.net>
27424 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27426 * Makefile.in: Add make ifeq define for hppa linux tasking support.
27427 * system-hpux.ads: Define Signed_Zeros to be True.
27428 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
27430 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
27432 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
27433 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
27436 2005-03-30 Tom Tromey <tromey@redhat.com>
27438 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
27440 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27442 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
27444 2005-03-29 Robert Dewar <dewar@adacore.com>
27446 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
27447 fixed-point expression has value that is not a multiple of the Small
27450 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
27452 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
27455 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
27457 2005-03-29 Vincent Celier <celier@adacore.com>
27459 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
27460 (Build_Dynamic_Library.Version_String): Return the empty string when
27461 Lib_Version is empty or when the symbol policy is not Autonomous.
27463 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
27464 a symbol is not in the reference symbol file, increase the Major ID
27465 and set the Minor ID to 0.
27466 Use gsmatch=lequal instead of gsmatch=equal
27468 2005-03-29 Doug Rupp <rupp@adacore.com>
27470 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
27471 name and translate.
27473 2005-03-29 Javier Miranda <miranda@adacore.com>
27475 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
27476 (Inherit_DT): The first formal has been redefined as a Tag.
27477 This allows us the removal of the subprogram Get_TSD.
27478 (TSD): Replace the call to Get_TSD by the actual code.
27480 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
27481 (Make_DT): Upgrade the call to Inherit_TSD according to the
27482 new interface: the first formal is now a Tag.
27484 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
27485 redefined as a Tag.
27486 This change allows us to remove the subprogram Get_TSD.
27487 (CPP_Get_TSD): Subprogram removed.
27488 (TSD): Replace the call to CPP_Get_TSD by the actual code.
27490 * rtsfind.ads: Remove support to call the run-time
27493 2005-03-29 Robert Dewar <dewar@adacore.com>
27495 * errutil.adb, errout.adb:
27496 Minor comment updates on Line_Terminator references
27498 * par-ch10.adb: Add ??? comment about line terminator
27500 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
27501 (check dos line terminator).
27502 (Check_Line_Max_Length): New procedure, split off from the existing
27503 Check_Line_Terminator routine. Separating this out allows -gnatyf to
27504 be properly recognized.
27506 * styleg.adb: Add ??? comment for line terminator reference
27508 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
27509 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
27511 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
27512 (check dos line terminator).
27513 (Check_Line_Max_Length): New procedure, split off from the existing
27514 Check_Line_Terminator routine. Separating this out allows -gnatyf to
27515 be properly recognized.
27517 * stylesw.ads, stylesw.adb:
27518 Add handling for new -gnatyd switch (check dos line terminator)
27520 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
27521 Recognize -gnatwb/-gnatwB switches
27522 Include Warn_On_Bad_Fixed_Value for -gnatg
27525 Add line for new -gnatyd switch (check dos line terminator)
27527 * usage.adb: Add lines for -gnatwb/-gnatwB
27529 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
27531 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
27533 * gnat_ugn.texi: Fix overlong lines
27534 Document new -gnatyd switch
27535 Document new -gnatwb/-gnatwB switches
27537 2005-03-29 Ed Schonberg <schonberg@adacore.com>
27539 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
27540 order to retrieve the component list of the type, before examining
27541 individual components.
27543 * sem_type.adb (Covers): Types are compatible if one is the base type
27544 of the other, even though their base types might differ when private
27545 views are involved.
27547 2005-03-29 Thomas Quinot <quinot@adacore.com>
27549 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
27550 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
27551 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
27552 analyzed if expansion is disabled (which could otherwise cause spurious
27553 error messages if expansion has been disabled due to previous
27554 (unrelated) errors).
27556 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
27557 is disabled, the entity denoted by the argument is the access type
27558 itself, not an underlying record type, so there is no need to go back
27559 to the Corresponding_Remote_Type.
27561 2005-03-29 Gary Dismukes <dismukes@adacore.com>
27562 Robert Dewar <dewar@adacore.com>
27564 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
27565 expand a call to an instance of
27566 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
27567 Constructor actual of the instance. A class-wide membership
27568 check is also generated, to ensure that the tag passed to the instance
27569 denotes a type in the class.
27570 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
27571 of Name_Generic_Dispatching_Constructor.
27573 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
27574 05 unit for AI-260-02).
27576 * a-tgdico.ads: New file.
27578 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
27579 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
27581 * snames.ads, snames.adb (Preset_Names): Add entry for
27582 Generic_Dispatching_Constructor.
27585 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
27586 character type cases.
27587 (Analyze_Subprogram_Renaming): Add special handling for
27588 the case of renaming of stream attributes when the renaming denotes a
27589 generic formal subprogram association for an abstract formal subprogram.
27590 Check that the attribute is a primitive stream attribute (and not
27591 a class-wide stream attribute) and then rewrite the attribute name
27592 as the name of the appropriate compiler-generated stream primitive.
27594 2005-03-29 Robert Dewar <dewar@adacore.com>
27596 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
27598 (Is_Possibly_Unaligned_Object): Correct typo that
27599 resulted in inaccurate result for unaligned scalars within records.
27601 2005-03-29 Ed Schonberg <schonberg@adacore.com>
27603 * freeze.adb (Freeze_Record_Type): If the type of the component is an
27604 itype whose parent is controlled and not yet frozen, do not create a
27605 freeze node for the itype if expansion is disabled.
27607 2005-03-29 Vincent Celier <celier@adacore.com>
27609 * make.adb (Gnatmake): Don't fail if the main project file is declared
27610 as having no Ada sources. Do not display message "no sources to
27611 compile" in quiet output.
27613 2005-03-29 Doug Rupp <rupp@adacore.com>
27615 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
27618 2005-03-29 Robert Dewar <dewar@adacore.com>
27620 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
27623 2005-03-29 Robert Dewar <dewar@adacore.com>
27625 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
27626 missing TYPE Improve the error message generated when compiling a
27627 limited interface in Ada83 or Ada95 mode.
27629 2005-03-29 Robert Dewar <dewar@adacore.com>
27631 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
27632 rather than proceed ahead using a junk attribute name.
27634 2005-03-29 Vincent Celier <celier@adacore.com>
27636 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
27638 * prj-part.adb (Parse_Single_Project): Set the location of a project
27639 on its defining identifier, rather than on the reserved word "project".
27641 * prj-proc.adb (Expression): Adapt to the fact that default of external
27642 references may be string expressions, not always literal strings.
27643 (Recursive_Process): Set Display_Name equal to Name
27644 when Location is No_Location, that is when there is no actual file.
27645 Get the Display_Name of the project from the source, when it is not a
27647 (Process): Use the Display_Name in error messages
27649 * prj-strt.adb (External_Reference): Allow default to be string
27650 expressions, not only literal strings.
27652 2005-03-29 Vincent Celier <celier@adacore.com>
27654 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
27655 file and the reference symbol file to be the same file.
27657 2005-03-29 Thomas Quinot <quinot@adacore.com>
27659 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
27660 forbid conversion of a local access-to-subprogram type to a remote one.
27662 * sem_util.adb (Wrong_Type): For a record type that is the expanded
27663 equivalent type for a remote access-to-subprogram type, go back to the
27664 original RAS entity when displaying an error message, so the casing is
27665 the original source casing.
27667 2005-03-29 Robert Dewar <dewar@adacore.com>
27669 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
27672 2005-03-29 Ed Schonberg <schonberg@adacore.com>
27674 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
27675 subtype if code is being pre-analyzed, to prevent un-expanded
27676 references to protected formals, among others.
27677 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
27678 interpretation that can be a call, include the result of the call as a
27679 possible interpretation of the dereference.
27681 * sem_ch5.adb (Process_Bounds): Determine type of range by
27682 pre-analyzing a copy of the original range, and then analyze the range
27683 with the expected type.
27685 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
27686 with an overloaded prefix where not all interpretations yield an
27687 access to subprogram, do not rewrite node as a call.
27688 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
27689 the node as a call once the context identifies the interpretation of
27690 the prefix whose call yields the context type.
27691 (Valid_Conversion): For the case of a conversion between
27692 local access-to-subprogram types, check subtype conformance using
27693 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
27694 detailed error message.
27696 2005-03-29 Ed Schonberg <schonberg@adacore.com>
27698 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
27699 indicator, indicate that the formal can never be null.
27700 (Process_Formals): If a formal has a non_null indicator, insert the
27701 resulting subtype immediately before the enclosing subprogram decl,
27702 and not at the beginning of the corresponding declarative part, to
27703 prevent access before elaboration (Ada2005).
27705 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27708 * utils.c (finish_record_type): Use variable_size when setting sizes.
27710 2005-03-29 Robert Dewar <dewar@adacore.com>
27712 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
27713 guarantee Unix style line terminators for the output files, even when
27714 running on windows.
27716 2005-03-29 Robert Dewar <dewar@adacore.com>
27718 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
27719 buffer if an exception is raised.
27721 2005-03-29 Ed Falis <falis@adacore.com>
27723 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
27726 2005-03-29 Robert Dewar <dewar@adacore.com>
27728 * sem_util.ads: Minor reformatting
27729 * gnat_rm.texi: Minor editing.
27731 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
27733 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
27734 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
27736 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27738 * adaint.c (__gnat_portable_spawn): Adjust cast.
27740 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
27742 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
27744 2005-03-17 Pascal Obry <obry@adacore.com>
27746 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
27749 * expect.c (__gnat_waitpid): Moved here from adaint.c.
27750 Reimplement under Win32 using Win32 API.
27752 (__gnat_kill) [Win32]: Properly close the process handle before leaving
27755 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
27757 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
27758 (DECL_RENAMED_OBJECT): New accessor macro.
27759 (SET_DECL_RENAMED_OBJECT): New setter macro.
27761 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
27762 object in all cases. Attach the renamed object to the VAR_DECL.
27763 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
27764 field is not prescribed.
27766 * misc.c (gnat_handle_option): Handle -gnatO separately.
27767 (gnat_print_decl) <VAR_DECL>: New case.
27768 Print the DECL_RENAMED_OBJECT node.
27770 * lang.opt: Declare separate -gnatO option.
27772 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
27773 pointer, replace it with the renamed object.
27774 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
27775 pointer type if the source is not a fat pointer type whose underlying
27776 array has the same non-zero alias set as that of the destination array.
27778 2005-03-17 Javier Miranda <miranda@adacore.com>
27780 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
27781 (Get_Inheritance_Depth): Removed.
27782 (Set_Inheritance_Depth): Removed.
27784 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
27785 subprogram Get_Expanded_Name because it is not referenced by the
27788 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
27789 (CPP_Get_Inheritance_Depth): Removed.
27790 (CPP_Set_Inheritance_Depth): Removed.
27792 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
27794 2005-03-17 Robert Dewar <dewar@adacore.com>
27796 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
27797 3, since we now expect GCC 3 to do all the work.
27799 2005-03-17 Javier Miranda <miranda@adacore.com>
27801 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
27802 of one barrier to avoid wrong usage of this attribute.
27804 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
27805 First_Private_Entity.
27807 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
27808 the subprogram against wrong usage.
27809 Adapt the code to traverse the entities in the
27810 scope of a record_type because in addition to its usage regarding
27811 packages, this subprogram is also called by Expand_N_Freeze_Entity
27812 to install the visible declarations of the enclosing scope of a
27813 record_type_with_private to establish the proper visibility before
27814 freezing the entity and related subprograms.
27816 2005-03-17 Ed Schonberg <schonberg@adacore.com>
27818 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
27821 2005-03-17 Thomas Quinot <quinot@adacore.com>
27823 * exp_ch3.adb (Check_Attr): New subprogram.
27824 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
27825 into a new Check_Attr subprogram, in order to provide a more
27826 explanatory error message (including the name of the missing attribute).
27827 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
27828 subprogram determines whether a default implementation exists for a
27829 given stream attribute.
27830 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
27831 Determine whether to generate a default implementation for each stream
27832 attribute separately, as this depends on the specific attribute.
27834 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
27835 limited extension where a stream attribute is missing for a limited
27836 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
27837 generate a bogus reference to the missing attribute to prevent
27838 cascaded errors. Instead, generate a null statement.
27840 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
27841 available for a limited type if it has been specified for an ancestor
27844 2005-03-17 Ed Schonberg <schonberg@adacore.com>
27846 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
27847 entity is an operator.
27849 2005-03-17 Thomas Quinot <quinot@adacore.com>
27851 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27852 spec, to make this predicate available to other units.
27854 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
27857 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
27858 when no distribution runtime library is available.
27860 * sem_res.adb, sem_dist.adb: Disable expansion of remote
27861 access-to-subprogram types when no distribution runtime library is
27863 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
27864 predicate available to other units.
27866 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27867 spec, to make this predicate available to other units.
27869 2005-03-17 Vincent Celier <celier@adacore.com>
27871 * make.adb (Insert_Project_Sources): Make sure the Q is always
27874 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
27875 the default for the tree, not the global default naming.
27877 * prj-proc.adb (Recursive_Process): No need to put the default naming
27878 in the project data, it's already there.
27880 2005-03-17 Doug Rupp <rupp@adacore.com>
27882 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
27884 * 5xcrtl.ads: Renamed to...
27885 * s-crtl-vms64.ads: ...this new file
27887 2005-03-17 Robert Dewar <dewar@adacore.com>
27890 * namet.adb (Copy_One_Character): Set proper wide character encoding
27891 for upper half character if we have upper half encoding.
27893 2005-03-17 Robert Dewar <dewar@adacore.com>
27895 * par.adb (Par): Improved msg for attempt to recompile predefined unit
27897 2005-03-17 Thomas Quinot <quinot@adacore.com>
27899 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
27900 tagged limited type, the TSS is a newly built renaming declaration:
27901 insert it using Set_TSS, not Copy_TSS.
27903 2005-03-17 Javier Miranda <miranda@adacore.com>
27905 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
27906 Try_Object_Operation): Analyze the object that is accessible
27907 through the prefix of the subprogram call before we apply
27908 the transformation of the object-operation notation.
27910 2005-03-17 Jose Ruiz <ruiz@adacore.com>
27912 * s-taprob.adb (Initialize_Protection): Initialize the protected
27913 object's owner to Null_Task.
27914 (Lock): If pragma Detect_Blocking is in effect and the caller of this
27915 procedure is already the protected object's owner then Program_Error
27916 is raised. In addition the protected object's owner is updated.
27917 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
27918 of this procedure is already the protected object's owner then
27919 Program_Error is raised.
27920 In addition the protected object's owner is updated.
27921 (Unlock): Remove the ownership of the protected object.
27923 * s-taprob.ads (Protection): Add the field Owner, used to store the
27924 protected object's owner.
27925 This component is needed for detecting one type of potentially blocking
27926 operations (external calls on a protected subprogram with the same
27927 target object as that of the protected action). Document the rest of
27930 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
27931 Initialize the protected object's owner to Null_Task.
27932 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
27933 caller of this procedure is already the protected object's owner then
27934 Program_Error is raised.
27935 Do not raise Program_Error when this procedure is called from a
27937 (Unlock_Entries): Remove the ownership of the protected object.
27938 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
27939 of this procedure is already the protected object's owner then
27940 Program_Error is raised.
27941 Do not raise Program_Error when this procedure is called from
27942 a protected action.
27944 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
27945 used to store the protected object's owner.
27947 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
27948 effect and this procedure (a potentially blocking operation) is called
27949 from whithin a protected action, Program_Error is raised.
27950 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27951 and this procedure (a potentially blocking operation) is called from
27952 whithin a protected action, Program_Error is raised.
27954 2005-03-17 Vincent Celier <celier@adacore.com>
27955 Nicolas Setton <setton@adacore.com>
27957 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27958 switch, not supported by the linker on Darwin. Add '_' before
27959 <library>init, as this character is added unconditionally by the
27961 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27962 correct one ".dylib". This fixes detection of the archive files when
27963 building library projects.
27965 2005-03-17 Vincent Celier <celier@adacore.com>
27967 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27968 -gnat83, -gnat95 and -gnat05.
27970 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
27972 * gnat_ugn.texi: Document gnatmem restriction
27974 2005-03-17 Thomas Quinot <quinot@adacore.com>
27976 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27979 2005-03-17 Robert Dewar <dewar@adacore.com>
27981 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27982 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27983 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27985 * casing.adb: Comment improvements
27987 2005-03-17 Pascal Obry <obry@adacore.com>
27989 * g-expect.adb: Minor reformatting.
27991 2005-03-15 Zack Weinberg <zack@codesourcery.com>
27993 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27994 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27997 2005-03-15 Vincent Celier <celier@adacore.com>
27999 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
28000 Add new parameter In_Tree to specify the project tree: needed
28001 by the project manager. Adapt to changes in project manager
28002 using new parameter In_Tree.
28004 2005-03-15 Jakub Jelinek <jakub@redhat.com>
28006 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
28007 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
28008 ada/bldtools to avoid make -jN failures.
28010 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28012 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
28013 to NULL_TREE on entry.
28015 2005-03-15 Robert Dewar <dewar@adacore.com>
28017 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
28018 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
28019 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
28020 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
28021 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
28022 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
28023 system-interix.ads, system-solaris-sparc.ads,
28024 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
28025 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
28026 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
28027 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
28028 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
28029 Compiler_System_Version to be False.
28031 * opt.ads: Add new flag Opt.Address_Is_Private
28033 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
28034 Add new parameter Compiler_System_Version to avoid checking for
28035 completeness of parameters when compiler is compiling itself.
28036 Allows old versions of GNAT to be compiled with new compiler.
28038 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28040 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
28041 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
28043 (Stack_Base_Available): New flag.
28044 (Get_Page_Size): New overloaded functions imported from C.
28045 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
28046 PROT_ON, PROT_OFF): New constants.
28047 (mprotect): New function imported from C.
28048 (pthread_teb_t): New record type.
28050 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
28051 (Create_Task): Account for the Yellow Zone and the guard page.
28053 2005-03-15 Vincent Celier <celier@adacore.com>
28055 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28056 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28057 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
28058 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
28059 Library_File_Name_For): Add new parameter In_Tree
28060 to specify the project tree: needed by the project manager.
28061 Adapt to changes in project manager using new parameter In_Tree.
28062 Remove local imports, use functions in System.CRTL.
28064 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
28065 to use the project manager.
28067 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
28068 In_Tree to designate the project tree. Adapt to changes in the project
28069 manager, using In_Tree.
28071 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
28072 Copy_Interface_Sources): Add new parameter In_Tree to specify the
28073 project tree: needed by the project manager.
28074 (Build_Library): Check that Arg'Length >= 6 before checking if it
28075 contains "--RTS=...".
28077 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
28078 Library_File_Name_For): Add new parameter In_Tree to specify the
28079 project tree: needed by the project manager.
28081 * prj.ads, prj.adb: Major modifications to allow several project trees
28082 in memory at the same time.
28083 Change tables to dynamic tables and hash tables to dynamic hash
28084 tables. Move tables and hash tables from Prj.Com (in the visible part)
28085 and Prj.Env (in the private part). Move some constants from the visible
28086 part to the private part. Make other constants deferred.
28087 (Project_Empty): Make it a variable, not a function
28088 (Empty_Project): Add parameter Tree. Returns the data with the default
28089 naming data of the project tree Tree.
28090 (Initialize): After updating Std_Naming_Data, copy its value to the
28091 component Naming of Project Empty.
28092 (Register_Default_Naming_Scheme): Use and update the default naming
28093 component of the project tree, instead of the global variable
28095 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
28096 Tree is not defaulted, return the default naming data of the Tree.
28097 (Initial_Buffer_Size): Constant moved from private part
28098 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
28099 variables initialized in procedure Initialize.
28100 (Add_To_Buffer): Add two in out parameters to replace global variables
28101 Buffer and Buffer_Last.
28102 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
28104 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
28106 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
28107 for the project tree.
28108 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
28109 constant at the beginning of the package spec, so that they cane be used
28110 in subprograms before their full declarations.
28111 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
28112 (Empty_Project): Add parameter of type Project_Node_Ref
28113 (Private_Project_Tree_Data): Add component Default_Naming of type
28115 (Buffer, Buffer_Last): remove global variables
28116 (Add_To_Buffer): Add two in out parameters to replace global variables
28117 Buffer and Buffer_Last.
28118 (Current_Packages_To_Check): Remove global variable
28119 (Empty_Name): Move to private part
28120 (No-Symbols): Make it a constant
28121 (Private_Project_Tree_Data): New type for the private part of the
28123 (Project_Tree_Data): New type for the data of a project tree
28124 (Project_Tree_Ref): New type to designate a project tree
28125 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
28126 for the project tree.
28128 * prj-attr.ads: Add with Table; needed, as package Prj no longer
28129 imports package Table.
28131 * prj-com.adb: Remove empty, no longer needed body
28133 * prj-com.ads: Move most of the content of this package to package Prj.
28135 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
28136 designate the project node tree and Packages_To_Check to replace
28137 global variable Current_Packages_To_Check.
28138 Add new parameters In_Tree and Packages_To_Check to local subprograms,
28139 when needed. Adapt to changes in project manager with project node tree
28142 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
28143 project tree to most subprograms. Move tables and hash tables to
28144 private part of package Prj.
28145 Adapt to changes in project manager using project tree In_Tree.
28147 * prj-makr.adb (Tree): New constant to designate the project node tree
28148 Adapt to change in project manager using project node tree Tree
28150 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
28151 display the Library_Src_Dir and the Library_Dir.
28152 Add new parameter In_Tree to designate the project node tree to most
28153 subprograms. Adapt to changes in the project manager, using project tree
28155 (Check_Naming_Scheme): Do not alter the casing on platforms where
28156 the casing of file names is not significant.
28157 (Check): Add new parameter In_Tree to designate the
28159 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
28160 designate the project tree.
28161 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
28163 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
28164 to replace those that were in the private part of package Prj.
28165 Add new parameter In__Tree to designate the project node tree to most
28166 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
28167 (Post_Parse_Context_Clause): When specifying the project node of a with
28168 clause, indicate that it is a limited with only if there is "limited"
28169 in the with clause, not necessarily when In_Limited is True.
28170 (Parse): Add new parameter In_Tree to designate the project node tree
28172 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
28173 designate the project node tree. Adapt to change in Prj.Tree with
28174 project node tree In_Tree.
28176 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
28177 tree In_Tree in the call to function Empty_Process to give its initial
28178 value to the project data Processed_Data.
28179 Add new parameters In_Tree to designate the project tree and
28180 From_Project_Node_Tree to designate the project node tree to several
28181 subprograms. Adapt to change in project manager with project tree
28182 In_Tree and project node tree From_Project_Node_Tree.
28184 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
28185 to replace those that were in the private part of package Prj.
28186 Add new parameter In_Tree to designate the project node tree to most
28187 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
28189 * prj-tree.ads, prj-tree.adb: Add new parameter of type
28190 Project_Node_Tree_Ref to most subprograms.
28191 Use this new parameter to store project nodes in the designated project
28193 (Project_Node_Tree_Ref): New type to designate a project node tree
28194 (Tree_Private_Part): Change table to dynamic table and hash tables to
28195 dynamic hash tables.
28197 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
28198 the project tree to most subprograms. Adapt to changes in project
28199 manager using project tree In_Tree.
28201 * makegpr.adb (Project_Tree): New constant needed to use project
28204 2005-03-15 Olivier Hainque <hainque@adacore.com>
28206 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
28207 for sigactions with SA_SIGINFO set. Call
28208 __gnat_adjust_context_for_raise before raising, to perform the
28209 potentially required adjustments to the machine context for the GCC
28212 * raise.h (__gnat_adjust_context_for_raise): New prototype.
28214 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
28215 Adjust PC by one in the provided machine context.
28216 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
28217 so that the handler is passed the context structure to adjust prior to
28219 (__gnat_error_handler) HPUX: Adjust the signature to match what an
28220 SA_SIGINFO sigaction should look like. Call
28221 __gnat_adjust_context_for_raise before actually raising.
28222 (__gnat_adjust_context_for_raise): Default noop to help PC
28223 adjustments before raise from signal handlers.
28224 (__gnat_error_handler): Indirectly call a predicate function to
28225 determine if a condition should be resignaled or not.
28226 (__gnat_set_resignal_predicate): User interface to modify the predicate.
28227 (__gnat_default_resignal_p): Default GNAT predicate.
28229 2005-03-15 Doug Rupp <rupp@adacore.com>
28231 * adaint.c: Prefix #include of VMS system header files with vms/
28232 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
28233 Do not define a dummy function "convert_addresses" under Darwin,
28236 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
28239 2005-03-15 Nicolas Setton <setton@adacore.com>
28241 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
28244 2005-03-15 Robert Dewar <dewar@adacore.com>
28246 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
28249 * a-retide.ads: Minor comment changes
28251 2005-03-15 Robert Dewar <dewar@adacore.com>
28253 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
28254 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
28255 Realloc_For_Chunk to private part of package.
28256 New subprograms for AI-301
28258 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
28259 Get_Line procedure.
28260 Avoid unnecessary use of Get/Set_Wide_String
28262 2005-03-15 Robert Dewar <dewar@adacore.com>
28265 * a-stunau.ads, a-stunau.adb:
28266 Change interface to allow efficient (and correct) implementation
28267 The previous changes to allow extra space in unbounded strings had
28268 left this interface a bit broken.
28270 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
28272 * g-spipat.ads, g-spipat.adb: New interface for Get_String
28273 Minor reformatting (function specs)
28275 * g-spitbo.adb: New interface for Get_String
28277 * g-spitbo.ads: Minor reformatting
28279 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
28281 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
28283 2005-03-15 Javier Miranda <miranda@adacore.com>
28284 Robert Dewar <dewar@adacore.com>
28285 Thomas Quinot <quinot@adacore.com>
28286 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28288 * atree.ads, atree.adb: Add support for Elist24 field
28290 * atree.h: Fix wrong definition of Field27
28291 Add support for Elist16 field
28292 Add support for Elist24 field
28294 * einfo.ads, einfo.adb (Abstract_Interfaces,
28295 Set_Abstract_Interfaces): New subprograms.
28296 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
28298 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
28299 entities rather than a single node.
28300 (Is_Interface, Set_Is_Interface): New subprogram
28301 (First_Tag_Component): New syntesized attribute
28302 (Next_Tag_Component): New synthesized attribute
28303 (Write_Entity_Flags): Upgraded to write Is_Interface
28304 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
28305 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
28306 (Task_Body_Procedure): New subprogram to read this attribute.
28307 (Set_Task_Body_Procedure): New subprogram to set this attribute.
28308 (Has_Controlled_Component): Now applies to all entities.
28309 This is only a documentation change, since it always worked to apply
28310 this to other than composite types (yielding false), but now this is
28312 Update documentation on Must_Be_Byte_Aligned for new spec
28314 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
28315 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
28316 uses of the Access_Disp_Table attribute to reference the first dispatch
28317 table associated with a tagged type. As
28318 part of the implementation of abstract interface types,
28319 Access_Disp_Table has been redefined to contain a list of dispatch
28320 tables (rather than a single dispatch table).
28321 Similarly, upgrade all the references to Tag_Component by the
28322 new attribute First_Tag_Component.
28323 (Find_Inherited_TSS): Moved to exp_tss.
28324 Clean up test in Expand_N_Object_Declaration for cases
28325 where we need to do a separate assignment of the initial value.
28326 (Expand_N_Object_Declaration): If the expression in the
28327 declaration of a tagged type is an aggregate, no need to generate an
28328 additional tag assignment.
28329 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
28331 Bit packed array ops are only called if operands are known to be
28333 (Component_Equality): When returning an N_Raise_Program_Error statement,
28334 ensure that its Etype is set to Empty to avoid confusing GIGI (which
28335 expects that only expressions have a bona fide type).
28336 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
28337 determine the amount of data to be copied.
28339 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
28340 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
28341 INTERFACE_TYPE_DEFINITION ::=
28342 [limited | task | protected | synchronized] interface
28343 [AND interface_list]
28345 * par-ch3.adb (P_Type_Declaration): Modified to give support to
28347 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
28349 (P_Interface_Type_Definition): New subprogram that parses the new
28350 syntax rule of Ada 2005 interfaces
28351 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
28352 messages by the correct RENAMES (quotes removed).
28354 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
28355 attribute First_Tag_Component.
28357 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
28358 (Interface_List, Set_Interface_List): New subprograms.
28359 (Interface_Present, Set_Interface_Present): New subprograms.
28360 (Limited_Present, Set_Limited_Present): Available also in derived
28361 type definition nodes.
28362 (Protected_Present, Set_Protected_Present): Available also in
28363 record type definition and
28364 derived type definition nodes.
28365 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
28366 (Task_Present, Set_Task_Present): New subprogram.
28367 (Task_Body_Procedure): Removed.
28368 (Set_Task_Body_Procedure): Removed.
28369 These subprogram have been removed because the attribute
28370 Task_Body_Procedure has been moved to the corresponding task type
28371 or task subtype entity to leave a field free to store the list
28372 of interfaces implemented by a task (for AI-345)
28373 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
28374 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
28375 expression flag Do_Range_Check
28376 (Exception_Junk): Change to Flag7 to accomodate above change
28377 (Box_Present, Default_Name, Specification, Set_Box_Present,
28378 Set_Default_Name, Set_Specification): Expand the expression
28379 "X in N_Formal_Subprogram_Declaration" into the corresponding
28380 two comparisons. Required to use the csinfo tool.
28382 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
28383 "with string" given.
28385 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
28388 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
28391 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
28392 attribute Task_Body_Procedure rather than the old semantic field that
28393 was available in the task_type_declaration node.
28395 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
28396 interface type definitions.
28397 (P_Formal_Derived_Type_Definition): Modified to handle the list of
28400 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
28401 task type declaration.
28402 (P_Protected): Modified to handle the list of interfaces in a
28403 protected type declaration.
28405 2005-03-15 Doug Rupp <rupp@adacore.com>
28406 Vincent Celier <celier@adacore.com>
28408 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
28409 (Gen_Output_File_C): Likewise.
28410 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
28412 2005-03-15 Thomas Quinot <quinot@adacore.com>
28414 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
28415 is an N_Raise_Constraint_Error node, create a new copy of it without
28416 going through a call to Duplicate_Subexpr.
28418 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28419 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28420 Nicolas Setton <setton@adacore.com>
28421 Ed Schonberg <schonberg@adacore.com>
28427 * decl.c (gnat_to_gnu_field): Reject aliased components with a
28428 representation clause that prescribes a size not equal to the rounded
28429 size of their types.
28430 (gnat_to_gnu_entity, case E_Component): Always look at
28431 Original_Record_Component if Present and not the entity.
28432 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
28433 of tagged extension types by not making field for components that are
28435 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
28436 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
28437 expression to the type of the object when the object is constant.
28438 Reverse defer_debug_incomplete_list before traversing it, so that trees
28439 are processed in the order at which they were added to the list. This
28440 order is important when using the stabs debug format.
28441 If we are deferring the output of debug information, also defer this
28442 output for a function return type.
28443 When adding fields to a record, prevent emitting debug information
28444 for incomplete records, emit the information only when the record is
28446 (components_to_record): New parameter defer_debug.
28447 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
28448 (gnat_to_gnu_field_decl): New function.
28449 (substitution_list, annotate_rep): Call it.
28450 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
28451 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
28452 No longer update discriminants to not be a COMPONENT_REF.
28453 (copy_alias_set): Strip padding from input type; also handle
28454 unconstrained arrays properly.
28456 * gigi.h (write_record_type_debug_info): New function.
28457 Convert to use ANSI-style prototypes. Remove unused
28458 declarations for emit_stack_check, elab_all_gnat and
28459 set_second_error_entity.
28460 (gnat_to_gnu_field_decl): New decl.
28462 * utils.c (write_record_type_debug_info): New function.
28463 (finish_record_type): Delegate generation of debug information to
28464 write_record_type_debug_info.
28465 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
28466 (update_pointer_to): Fix pasto.
28467 (convert) <UNION_TYPE>: Accept slight type variations when
28468 converting to an unchecked union type.
28470 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
28471 replace the N_Freeze_Entity with a null statement.
28473 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
28474 within a constrained subcomponent of an enclosing record, place the
28475 freeze nodes in the scope stack entry for the enclosing record.
28476 (Undelay_Type): New Subprogram.
28477 (Set_Small_Size): Pass T, the type to modify; all callers changed.
28478 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
28479 within records; allow them to have freeze nodes if their base types
28482 * exp_util.adb (Remove_Side_Effects): Properly test for
28483 Expansion_Delayed and handle case when it's inside an
28484 N_Qualified_Expression.
28486 * sem_ch3.adb (Derived_Type_Declaration): New predicate
28487 Comes_From_Generic, to recognize accurately that the parent type in a
28488 derived type declaration can be traced back to a formal type, because
28489 it is one or is derived from one, or because its completion is derived
28491 (Constrain_Component_Type): If component comes from source and has no
28492 explicit constraint, no need to constrain in in a subtype of the
28494 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
28495 Minor change to propagate Is_Ada_2005 flag
28497 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
28498 Expansion_Delayed is False.
28499 (assoc_to_constructor): Ignore fields that have a
28500 Corresponding_Discriminant.
28501 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
28502 function returns "by target", dereference the target pointer using the
28503 type of the actual return value.
28504 <all>: Be prepared for a null gnu_result.
28505 (processed_inline_subprograms): Check flag_really_no_inline
28506 instead of flag_no_inline.
28507 (set_second_error_entity): Remove unused function.
28508 (gnat_to_gnu, case N_Selected_Component): Call
28509 gnat_to_gnu_field_decl.
28510 (assoc_to_constructor): Likewise.
28512 2005-03-15 Robert Dewar <dewar@adacore.com>
28513 Ed Schonberg <schonberg@adacore.com>
28514 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28516 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
28517 Must_Be_Byte_Aligned for cases where we do not need to use a
28518 System.Pack_nn unit.
28520 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
28522 Needed now that we do some processing for IN parameters as well. This
28523 may well fix some unrelated errors.
28524 (Expand_Call): Handle case of unaligned objects (in particular those
28525 that come from packed arrays).
28526 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
28527 renamed entity is an inherited operation, re-expand the call using the
28528 original operation, which is the one to call.
28529 Detect attempt to inline parameterless recursive subprogram.
28530 (Represented_As_Scalar): Fix to work properly with private types
28531 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
28532 accurate estimate. Yields True in far fewer cases than before,
28533 improving the quality of code that depends on this test.
28535 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
28536 over both visible and private declarations to remove them from tree,
28537 and mark subprograms declared in package as eliminated, to prevent
28538 spurious use in subsequent compilation of generic units in the context.
28540 * exp_util.ads: Minor cleanup in variable names
28542 * sem_eval.ads, sem_eval.adb: Minor reformatting
28543 (Compile_Time_Known_Bounds): New function
28545 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28547 * exp_ch7.adb (Convert_View): Use base types of underlying types when
28548 determining whether an unchecked conversion is needed for the argument
28549 of an initialization call.
28551 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28553 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
28554 that appears in the instantiation rather than the internal subtype
28555 generated in the wrapper package, to avoid anomalies in gigi when the
28556 target is derived from a private type whose full view is an access type.
28558 2005-03-15 Robert Dewar <dewar@adacore.com>
28560 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
28562 Add documentation to replace the use of this flag
28563 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
28566 2005-03-15 Thomas Quinot <quinot@adacore.com>
28568 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
28569 here from exp_attr so it can be shared between exp_attr and exp_dist.
28570 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
28571 all TSS names, not a subset thereof, and the previous name introduced
28572 an unnecessarily confusion that a distinction might exist between
28573 "OK" TSS names and some "not OK" TSS names.
28575 2005-03-15 Doug Rupp <rupp@adacore.com>
28577 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
28580 2005-03-15 Pascal Obry <obry@adacore.com>
28581 Eric Botcazou <ebotcazou@adacore.com>
28585 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
28586 when IN_RTS. This is to work around a bootstrap path problem.
28588 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
28589 table and pass it to __gnat_install_SEH_handler().
28590 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
28592 * lang.opt: Fix specification of -fRTS=.
28594 2005-03-15 Doug Rupp <rupp@adacore.com>
28595 Bernard Banner <banner@adacore.com>
28596 Vincent Celier <celier@adacore.com>
28597 Arnaud Charlet <charlet@adacore.com>
28600 This change works fine when gnatlib is built from the gcc directory,
28601 but does not work when using the libada Makefile, since GCC_FOR_TARGET
28602 is not passed to ada/Makefile.in, so more work is needed by a
28603 Makefile/configure expert.
28605 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
28606 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
28607 Setup gnatlink switch -M for x86_64 linux, as it is already setup
28609 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
28610 Run ranlib on libgccprefix.a
28611 Define PREFIX_OBJS for Darwin, to build libgccprefix.
28612 (ADA_INCLUDE_SRCS): Split Ada packages.
28614 2005-03-15 Robert Dewar <dewar@adacore.com>
28616 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
28618 * impunit.adb: Add GNAT.UTF_32
28620 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
28622 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
28623 now uses GNAT.UTF_32).
28625 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
28626 capabilities for categorizing characters using Unicode categories
28628 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28630 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
28631 instantiation that has been rewritten as a package body, retrieve spec
28632 to generate proper name for implicit_with_clause.
28633 (Install_Parents): Recognize a parent that is an instantiation but has
28634 been rewritten as a package declaration during analysis.
28636 2005-03-15 Javier Miranda <miranda@adacore.com>
28637 Ed Schonberg <schonberg@adacore.com>
28639 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
28640 parameter reported some error we immediately return. This improves the
28641 behaviour of the frontend in case of errors.
28642 (Install_Parent, Remove_Parent): Introduce new flag
28643 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
28644 ancestor of a generic child unit, when the child is being instantiated.
28645 (Inline_Instance_Body): If we are compiling the private
28646 part or the body of a child unit, restore the proper visibility of the
28647 parents after compiling the instance body.
28649 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28650 Javier Miranda <miranda@adacore.com>
28653 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
28654 of a private type, in which case it is underlying_type that denotes
28655 the proper task. Also modified to use the new entity attribute
28656 that is directly available in the task type and task subtype entities
28657 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
28658 arrays when other dimensions than the first are constrained by
28659 discriminants of an enclosing record.
28660 (Insert_Explicit_Dereference): If the prefix is an indexed component or
28661 a combination of indexed and selected components, find ultimate entity
28662 and generate the appropriate reference for it, to suppress spurious
28664 (Note_Possible_Modification): If an entity name has no entity, return.
28665 (Is_Variable): A function call never denotes a variable.
28666 (Requires_Transient_Scope): For record types, recurse only on
28667 components, not on internal subtypes that may have been generated for
28668 constrained components.
28670 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28672 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
28673 Eliminated as candidates for resolution. Both efficient, and avoids
28674 anomalies with operators declared in deleted code.
28675 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
28676 expansion is disabled (as when compiling a generic) to prevent spurious
28677 warnings on prefixes of selected components.
28679 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28681 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
28682 attached to a list before checking whether it appears in the private
28683 declarations of the current package.
28684 (Make_Inequality_Operator): Insert declaration in proper declarative
28685 list rather than just setting the Parent field, so that
28686 Is_Private_Declaration can handle it properly.
28688 2005-03-15 Ed Schonberg <schonberg@adacore.com>
28690 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
28691 a renaming a body, check that the renamed subprogram in not intrinsic.
28692 (Find_Direct_Name): If several use_visible entities hide
28693 each other, and the context is a predefined file compiled through
28694 rtsfind, keep only the entity that comes from a predefined file.
28696 2005-03-15 Geert Bosch <bosch@adacore.com>
28698 * s-fatgen.adb (Valid): Extend special exceptions to account for long
28699 long float padding to also cover AMD64 and IA64.
28701 2005-03-15 Gary Dismukes <dismukes@adacore.com>
28703 * s-imgwch.adb: Add with and use of Interfaces.
28704 (Img_Wide_Character): Change type of Val to Unsigned_16.
28705 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
28707 2005-03-15 Matthew Gingell <gingell@adacore.com>
28709 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
28711 2005-03-15 Robert Dewar <dewar@adacore.com>
28713 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
28715 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
28717 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
28719 2005-03-15 Robert Dewar <dewar@adacore.com>
28721 * s-bitops.adb, s-bitops.ads,
28722 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
28723 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
28724 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
28725 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
28726 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
28727 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
28728 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
28729 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
28732 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28734 * utils2.c (build_binary_op): Fix typo.
28736 2005-03-15 Doug Rupp <rupp@adacore.com>
28738 * s-crtl.ads (popen,pclose): New imports.
28740 2005-03-15 Cyrille Comar <comar@adacore.com>
28742 * comperr.adb (Compiler_Abort): remove references to obsolete
28743 procedures in the bug boxes for various GNAT builds.
28745 2005-03-15 Vincent Celier <celier@adacore.com>
28747 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
28749 2005-03-15 Geert Bosch <bosch@adacore.com>
28750 Arnaud Charlet <charlet@adacore.com>
28751 Robert Dewar <dewar@adacore.com>
28752 Cyrille Comar <comar@adacore.com>
28753 Sergey Rybin <rybin@adacore.com>
28755 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
28756 too specific and long-winded to be appropriate for the GNAT User's
28758 Warn about use of GCC switches not documented in the GNAT User's Guide,
28759 as these may cause generated code to not conform to Ada semantics.
28760 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
28761 Add documentation for -gnat95 and -gnat05 switches
28762 Remove paragraph documenting obsolete way to refer to third party
28764 Add a few references to Ada_05 that were missing.
28765 Update documentation on -gnatZ/-gnatL.
28766 Document limitation when using -m64 under Solaris.
28767 Change the "Name Casing" subsection of the pretty-printer section
28768 according to the changes in the dictionary processing.
28770 * gnat_rm.texi: Document the Ada_05 pragma.
28771 Section on record representation clauses describes the new more
28772 relaxed rules about placement of large packed bit array components.
28773 Add documentation of GNAT.UTF_32
28775 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
28777 * misc.c (gnat_post_options): Turn off structural
28780 2005-03-08 Laurent Guerby <laurent@guerby.net>
28782 * system-linux-sparc.ads: Fix typo in previous commit.
28784 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
28785 Laurent Guerby <laurent@guerby.net>
28788 * system-linux-sparc.ads: New.
28789 * Makefile.in: Add sparc linux entry.
28791 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
28793 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
28794 parameters as unused.
28796 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
28797 Partial merge from libada-gnattools-branch:
28799 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
28800 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
28801 into code in gnattools/Makefile.in. Remove direct dependencies on
28802 stamp-tools by tools clauses.
28803 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
28804 * config-lang.in: Add gnattools to $lang_dirs.
28806 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
28809 * utils.c (gnat_type_for_mode): Return null instead of ICE because
28810 we asked for an unknown mode.
28812 2005-02-12 Richard Henderson <rth@redhat.com>
28814 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
28815 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
28817 2005-02-10 Andreas Jaeger <aj@suse.de>
28819 * init.c (__gnat_initialize): Mark parameter as unused.
28821 2005-02-09 Doug Rupp <rupp@adacore.com>
28823 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
28824 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
28826 2005-02-09 Doug Rupp <rupp@adacore.com>
28828 * gnatchop.adb (dup, dup2),
28829 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
28831 * gnatlbr.adb (mkdir),
28832 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
28834 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
28836 2005-02-09 Doug Rupp <rupp@adacore.com>
28838 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
28840 2005-02-09 Robert Dewar <dewar@adacore.com>
28841 Thomas Quinot <quinot@adacore.com>
28842 Javier Miranda <miranda@adacore.com>
28843 Pascal Obry <obry@adacore.com>
28844 Ed Schonberg <schonberg@adacore.com>
28845 Doug Rupp <rupp@adacore.com>
28846 Gary Dismukes <dismukes@adacore.com>
28847 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28849 * g-zstspl.ads: New file.
28851 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
28853 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
28855 Add definition of Wide_Wide_Space for AI-285
28857 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
28858 interface (to support Ada 95 and Ada 2005 units).
28859 Add Unbounded_IO files
28860 Add entries for Wide_Wide packages for AI-285
28861 Add list of containers packages to Ada 2005 unit list
28863 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
28864 support new Unbounded_IO package cleanly.
28866 * g-utf_32.ads, g-utf_32.adb: New files.
28868 * Makefile.rtl: Add entry for g-utf_32
28869 Add new files for Unbounded_IO
28870 Adjust make file for new AI-285 wide wide packages
28871 Add AI-302 containers to the run time.
28873 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
28874 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
28875 subprograms for AI-301.
28877 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
28879 * a-stunau.ads: Minor comment correction
28881 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
28883 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
28884 (Check_RPC): Update to match changes in expanded code.
28885 Clean up unused entity.
28887 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
28888 was not taken into account.
28889 This includes proper initialization with Normalize_Scalars.
28890 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
28891 normalize scalars cases (particularly the latter) to do a better job
28892 of finding invalid representations.
28894 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
28896 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
28899 * exp_dist.adb: Add support for wide wide character type
28900 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
28901 private part, generate stub bodies at the end of the private part,
28902 not the visible part.
28903 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
28905 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
28906 generic wrapper to execute final processing after completing the
28907 expansion of the RPC receiver for an RACW.
28909 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
28910 packages and attributes.
28911 (Preset_Names): Addition of the new reserved words of Ada 2005,
28912 that is interface, overriding and synchronized.
28913 (Get_Pragma_Id): Give support to the use of the new reserved word
28914 "interface" as a pragma name.
28915 (Is_Pragma_Name): Give support to the use of the new reserved word
28916 "interface" as a pragma name.
28917 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
28918 attribute implementation.
28920 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
28921 checks to entities that are output parameters of Asm operations.
28922 Handle the Stream_Size attribute.
28923 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
28925 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
28927 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
28928 for second parameter being 0.0.
28929 Add support for wide wide character type.
28930 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
28932 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
28933 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
28934 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
28935 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
28936 for wide wide character cases.
28938 * cstand.adb: Create entities for Wide_Wide_Character and
28941 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
28942 accordance with AI-258.
28943 Add new declarations for 16/32 bit C character types (Part of AI285)
28945 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
28946 (Obsolescent_Warning): New field
28947 (Rep_Clause): New local subprogram used to share code. Returns the rep
28948 clause for which the name is given in parameter.
28949 (Has_Stream_Size_Clause): New routine.
28950 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28951 (Address_Clause): Implementation is now using Rep_Clause.
28952 (Alignment_Clause): Idem.
28953 (Size_Clause): Idem.
28955 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28956 entity in non-Ada 2005 mode and generate warning.
28958 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28959 (Prag): Code cleanup. Remove old gnat pragma "overriding"
28961 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28962 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28963 on the named unit if the pragma is not in the current compilation unit,
28964 so that elaboration calls in the current unit can set up an elaboration
28965 dependency on the named unit, as needed.
28966 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28967 subprogram as well as for subprograms declared within a package.
28968 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28971 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28972 to z) to avoid some instances of duplication for Wide_Wide packages.
28974 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28977 * scn.adb: Char_Literal_Value field is now a Uint
28979 * scng.adb: Significant rewrite to handle new Ada 2005 features
28980 allowing wide and wide wide characters in program text, e.g. for
28981 identifiers, as described in AI-285.
28982 (Set_Reserved): New procedure, makes setting up keywords cleaner.
28983 (Initialize_Scanner): Register the new reserved words of Ada 2005.
28984 (Scan): Give support to the new reserved words.
28986 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28987 warning notifying that interface, overriding, and synchronized are
28988 new reserved words.
28989 (P_Pragma): Allow the use of the new reserved word "interface" as
28992 * gnatls.adb, gnatbind.adb,
28993 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28994 identifiers named "interface" to "SAL_Interface".
28996 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28997 (Structured Exception handling).
28998 (Gen_Main_C): Idem.
29001 (Gen_Main_Ada): Set the default exit code if specified.
29002 (Gen_Main_C): Likewise.
29004 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
29005 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
29007 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
29010 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
29011 has a collision with the new Ada 2005 "interface" reserved word.
29013 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
29014 generate a warning notifying that interface, overriding, and
29015 synchronized are new reserved words.
29017 * scans.ads (Token_Type): Addition of the tokens corresponding to the
29018 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
29019 and Tok_Synchronized.
29021 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
29022 "dispatching" rather than "primitive" operations, since dispatching
29023 calls are now allowed to abstract formal subprograms (which are not
29025 Char_Literal_Value field is now a Uint
29026 (Resolve_Slice): If the prefix is an access to an unconstrained array,
29027 compute the actual subtype of the designated object to impose the proper
29029 (Resolve_Selected_Component): Do not insert an access check if the
29030 prefix is an access type: such a node is expanded into an explicit
29031 dereference, on which the access check is performed anyway. Removes
29032 expensive duplicate checks.
29033 (Resolve_Call): Use new flag Is_Obsolescent and field
29034 Obsolescent_Warning so that pragma Obsolescent works on library
29036 Add support for wide wide character type
29037 (Resolve_Allocator): Replace the error message on wrong null-exclusion
29038 value by a warning message.
29039 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
29040 as fixed-point, and one of the operands is non-static and universal, it
29041 can only be an illegal exponentiation operation, in which case there is
29042 no real value to retrieve.
29044 * exp_strm.adb: Add support for wide wide character type
29045 (Build_Elementary_Input_Call): Compute the size of the stream element by
29046 querying the rep chain to find the Stream_Attribute attribute value.
29047 (Build_Elementary_Write_Call): Ditto.
29049 * sem_aggr.adb: Char_Literal_Value field is now a Uint
29050 Add support for wide wide character type
29051 Replace the error messages on wrong null-exclusion value by warnings
29052 as described in Ada 2005.
29053 (Resolve_Extension_Aggregate): Document the fact that the error
29054 message on class-wide expressions in extensions aggregates.
29056 * sem_case.adb: Add support for wide wide character type
29058 * sem_ch13.adb: Add support for wide wide character type
29059 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
29061 * sem_ch3.adb: Add support for wide wide character type
29062 (Process_Subtype): If constraint is illegal for the type, set Ekind of
29063 now-useless Itype, to prevent cascaded errors on a compiler built
29066 * sem_ch8.adb: Add with and use of Sem_Disp.
29067 (Analyze_Subprogram_Renaming): Replace unclean uses of
29068 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
29069 of Corresponding_Spec to Empty).
29070 (Attribute_Renaming): Replace use of Corresponding_Spec with
29071 Corresponding_ Formal_Spec and simplify condition.
29072 (Use_One_Package): Check that scope of homonym of identifier is defined,
29073 before checking whether it is a wrapper package.
29074 Add support for wide wide character type
29076 * sem_eval.adb: Add support for wide wide character type.
29077 (Eval_Arithmetic_Op): Check for compile time known signed integer
29078 overflow in the non-static case.
29079 (Subtypes_Statically_Match): A formal scalar type and its base type do
29080 not statically match.
29082 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
29083 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
29085 (Unit_Declaration_Node): Ditto.
29086 (Is_Variable_Prefix): For the case of an indexed component whose prefix
29087 has a packed array type, the prefix has been rewritten into a type
29088 conversion. Determine variable-ness from the converted expression.
29089 Handle wide wide character cases.
29091 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
29093 * stringt.ads, stringt.adb: Handle full UTF-32 range.
29094 Remove ["0A"] from comment, since it can look like a line terminator.
29095 Currently we don't permit this, but this is under discussion by the
29096 ARG, and it is easy enough to use a different example.
29098 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
29099 handling UTF-32 encoding for wide wide character.
29100 Implement new brackets coding ["hhhhhhhh"]
29101 Add UTF-8 encodings for full UTF-32 range
29103 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
29105 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
29106 bit range Add full UTF-32 support.
29107 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
29108 notify that constraint error will be raised at run-time
29109 because a null value is assigned to a null-excluding object.
29110 Remove some obsolete declarations and make Char_Code
29113 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
29114 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
29115 Rcheck subprograms.
29117 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
29118 wrong null-exclusion value by a warning message.
29119 (Enable_Range_Check): Do range check if the prefix is an
29120 explicit dereference whose designated object is an unconstrained array.
29121 Current algorithm for removing duplicate checks is over-eager in this
29124 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
29125 null-exclusion value by a warning message
29127 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
29128 completely. Add support for Uint2 field
29130 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
29131 exp_prag.adb: Char_Literal_Value field is now a Uint.
29133 * exp_util.adb (Insert_Actions): Replace
29134 N_Formal_Subprogram_Declaration by
29135 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
29136 Char_Literal_Value field is now a Uint.
29138 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
29139 defined for subprogram renaming declarations. When set, the field
29140 indicates the defining entity of a corresponding formal subprogram
29141 when the renaming corresponds to a formal subprogram association in an
29143 (Set_Corresponding_Formal_Spec): New procedure to return
29144 Corresponding_Formal_Spec field.
29145 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
29146 (which is now a subtype).
29147 Char_Literal_Value field is now a Uint
29149 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
29150 pointer to the base of the dispatch table.
29151 Minor changes to comments.
29152 (Controlling_Type): New function for determining the tagged type
29153 associated with a tagged primitive subprogram.
29154 (Expand_Dispatching_Call): Add support for a controlling actual that is
29155 directly a value of type Ada.Tag rather than a tagged object.
29157 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
29158 describing the new layout.
29159 (Dispatch_Table): The expander computes the actual array size, allocates
29160 the Dispatch_Table record accordingly, and generates code that displaces
29161 the base of the record after the Typeinfo_Ptr component. The access to
29162 these components is done by means of local functions.
29163 (Offset_To_Top): New function.
29164 (Typeinfo_Ptr): New function.
29165 (Get_TSD): Modified to access the new position of the TSD.
29166 (Set_TSD): Modified to save the TSD in its new position.
29168 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
29169 case of formal abstract subprograms. Add check and message for -gnat05.
29172 * sem_ch12.adb: Add with and use for Sem_Disp.
29173 (Analyze_Associations): Minor change from "=" to "in" for use of
29174 N_Formal_Subtype_Declaration (which is now a subtype).
29175 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
29176 N_Formal_Subtype_Declaration (which is now a subtype).
29177 (Analyze_Formal_Subprogram): Add handling for
29178 N_Formal_Abstract_Subprogram, marking the formal as abstract and
29179 dispatching, setting the controlling status of the formal parameters
29180 and result, and issuing an error if there is no controlling type for
29181 the formal subprogram.
29182 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
29183 which is an unclean use of that field, we set the new field
29184 Corresponding_Formal_Spec to make the formal subprogram available to
29185 processing in Analyze_Subprogram_Declaration.
29186 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
29187 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
29188 Constrained, so that it is is does not statically match its anonymous
29191 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
29192 abstract formal subprograms in error check for functions returning
29193 abstract types. Set scope of new designator for
29194 a parameterless subprogram, so that it is available when checking the
29195 body for nested subprograms, before full analysis of said body.
29196 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
29197 subprogram only if inner one comes from source.
29198 (Analyze_Function_Call): If the call is given in object notation, the
29199 analysis of the name rewrites the node and analyzes it with the proper
29200 argument list. After analyzing the name, if the call has been rewritten
29201 and the result type is set, no further analysis is needed.
29202 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
29203 mark in function specification, in a context where the formals are
29204 visible and hide outer homographs.
29206 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
29207 as the tagged type for the cases of abstract formal subprograms and
29208 renamings of those. Clean up spec comments.
29209 (Check_Dispatching_Context): Add error message to indicate "abstract
29210 procedure", covering the case of a call to a formal abstract procedure
29211 that has statically tagged operands.
29212 (Check_Dispatching_Call): Check for the case of an actual given by
29213 a tag-indeterminate function call whose type is an ancestor of the
29214 containing call's associated tagged type. This situation can occur
29215 for inherited primitives with function defaults. In this case we
29216 use the tagged type's tag directly as the controlling argument for
29218 (Expand_Call): Name change on call to Expand_Dispatch_Call.
29220 * sprint.adb (Sprint_Node_Actual): Split
29221 N_Formal_Subprogram_Declaration into two alternatives for the new
29222 cases N_Formal_Abstract_Subprogram_Declaration and
29223 N_Formal_Concrete_Subprogram_Declaration.
29224 Char_Literal_Value field is now a Uint.
29226 * trans.c: Get rid of junk Uint2 reference.
29227 Char_Literal_Value field is now a Uint.
29228 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
29229 (gigi): Correct third arg to gimplify_body.
29231 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
29232 (TYPE_LANG_FLAG_0): Check for record or union.
29234 * treepr.adb: Char_Literal_Value field is now a Uint
29236 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
29239 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
29240 Add full UTF-32 support
29241 Char_Code is now 32 bits
29243 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
29244 wide character UTF_32 line terminators.
29245 Initialize Main_Source_File to avoid error when no main
29248 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
29249 (Main_Source_File) when no main source has been loaded, to avoid
29252 2005-02-09 Robert Dewar <dewar@adacore.com>
29254 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
29255 Fix name of Set routine
29257 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
29260 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
29261 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
29264 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
29265 forms of Get_Line subprograms for AI-301.
29267 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
29268 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
29269 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
29270 a-stwima.ads: Minor reformatting.
29272 2005-02-09 Doug Rupp <rupp@adacore.com>
29273 Thomas Quinot <quinot@adacore.com>
29275 * adaint.c, adaint.h
29276 [VMS] (to_ptr32): New function.
29277 (MAYBE_TO_PTR32): New macro.
29278 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
29280 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
29281 [VMS] (#define fork()): Remove since unneccessary.
29282 (__gnat_set_close_on_exec): New routine to support
29283 GNAT.OS_Lib.Set_Close_On_Exec.
29285 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
29286 the parent side as close-on-exec so that they are not inherited by the
29289 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
29290 set or clear the FD_CLOEXEC flag on a file descriptor.
29292 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
29293 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29297 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
29298 on the field if Pragma Component_Alignment (Storage_Unit).
29299 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
29300 side-effects as if it were a constant; also make SAVE_EXPR to protect
29302 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
29304 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
29305 (components_to_record): Test it.
29306 Fix improper usage of REFERENCE_CLASS_P.
29308 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
29311 * utils2.c: Minor reformatting.
29313 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
29314 handle other cases like RECORD_TYPE.
29316 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
29318 2005-02-09 Ed Schonberg <schonberg@adacore.com>
29320 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
29321 component of an array of arrays in an assignment context, and the
29322 aggregate has component associations that require sliding on
29323 assignment, force reanalysis of the aggregate to generate a temporary
29324 before the assignment.
29325 (Must_Slide): Make global to the package, for use in Gen_Assign.
29327 2005-02-09 Ed Schonberg <schonberg@adacore.com>
29329 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
29330 unchecked union with no inferable discriminants, return a
29331 Raise_Program_Error node, rather than inserting it at the point the
29333 (Expand_Record_Equality, Component_Equality): Handle properly the case
29334 where some subcomponent is an unchecked union whose generated equality
29335 code raises program error.
29337 2005-02-09 Doug Rupp <rupp@adacore.com>
29339 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
29340 [VMS] (#define exit hack): Remove.
29342 2005-02-09 Pascal Obry <obry@adacore.com>
29343 Arnaud Charlet <charlet@adacore.com>
29345 * init.c (__gnat_initialize): Add a new parameter eh which contains the
29346 address of the exception registration. The Win32 version of this
29347 routine calls __gnat_install_SEH_handler() to initialize the SEH
29348 (Structured Exception Handling) handler.
29349 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
29350 SEH (Structured Exception Handling) now.
29351 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
29352 (__gnat_initialize for ppc-vxworks): Adjust comments and the
29353 preprocessor condition protecting the call to the extra eh setup
29354 subprogram, which is only available for the ppc target.
29355 (__gnat_clear_exception_count): replaced reference to
29356 variable taskIdCurrent by call to taskIdSelf(), cleaner.
29358 * seh_init.c: New file.
29360 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
29361 (GNATBIND_OBJS): Idem.
29363 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
29364 routine takes a new parameter (a pointer to the exception registration
29365 for the SEH (Structured Exception Handling) support.
29367 * raise.h: (__gnat_install_SEH_handler): New prototype.
29368 Update copyright notice.
29370 * s-tassta.adb (Task_Wrapper): Declare the exception registration
29371 record and initialize it by calling __gnat_install_SEH_handler.
29373 2005-02-09 Vincent Celier <celier@adacore.com>
29375 * make.adb (Gnatmake): Do not fail when the main project has no object
29378 2005-02-09 Doug Rupp <rupp@adacore.com>
29380 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
29381 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
29382 [VMS]: Add translations for g-enblsp.adb.
29384 * s-asthan-vms.adb: Removed.
29385 * s-asthan-vms-alpha.adb: Added.
29387 2005-02-09 Pascal Obry <obry@adacore.com>
29389 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
29390 (LIBGNAT_OBJS): Add seh_init.o.
29392 2005-02-09 Arnaud Charlet <charlet@adacore.com>
29395 * Makefile.in: Link all gnat tools with -static-libgcc, since
29396 -shared-libgcc is now used by default on some systems (e.g. linux with
29398 Remove references to Makefile.prolog/generic, no longer used.
29400 2005-02-09 Vincent Celier <celier@adacore.com>
29402 * prj-makr.adb (Process_Directory): Put file name in canonical case
29403 before matching against the patterns.
29404 If gnatname has been invoked as <prefix>-gnatname
29405 then invoke the compiler as <prefix>-gcc, not just "gcc".
29407 2005-02-09 Ed Schonberg <schonberg@adacore.com>
29409 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
29410 with expansion disabled. The actual subtype is needed among other
29411 places when the selected component appears in the context of a loop
29412 bound, and denotes a packed array.
29413 (Operator_Check): Always use the first subtype in the
29414 error message, to avoid the appearance of internal base types.
29415 (Transform_Object_Operation): Copy each actual in full
29416 to the parameter associations of the constructed call, rather than
29417 using the shallow copy mechanism of New_Copy_List. This ensures that
29418 the chaining of named associations is done properly.
29419 (Complete_Object_Operation): Rewrite node, rather than
29420 replacing it, so that we can trace back to the original selected
29423 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
29424 and calls that use object notation, if the called function is not
29425 declared in a withed unit, place the elaboration constraint on the
29426 unit in the context that makes the function accessible.
29427 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
29428 imposes an elaboration constraint between two packages.
29430 2005-02-09 Ed Schonberg <schonberg@adacore.com>
29432 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
29433 views of a private type after handling its private dependents, to
29434 maintain proper stack discipline between entry and exit from the
29437 2005-02-09 Cyrille Comar <comar@adacore.com>
29439 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
29440 Minor reformatting.
29442 2005-02-09 Arnaud Charlet <charlet@adacore.com>
29444 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
29445 fields for foreign threads.
29447 2005-02-09 Doug Rupp <rupp@adacore.com>
29449 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
29450 recursion warnings when compiled with -gnatdm.
29452 2005-02-09 Robert Dewar <dewar@adacore.com>
29454 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
29455 Slight fix to documentation of -gnaty with no parameters
29457 * xr_tabls.ads: Add ??? comment for missing overall comment
29459 * xsinfo.adb: Make default file name be sinfo.h, since this is what
29460 we now use by default.
29462 * xsnames.adb: Adjust end of file test to look for five space followed
29463 by '#' instead of six spaces. The format of xsnames.adb was modified
29464 in the last update.
29466 * a-numeri.ads: Add reference to AI-388 for greek letter pi
29469 * clean.adb: Minor reformatting.
29471 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
29472 gnatname.adb: Minor reformatting
29473 Add 2005 to copyright output when utility is run
29475 * csets.adb: Eliminate obsolete comment
29477 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
29480 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
29482 2005-02-09 Sergey Rybin <rybin@adacore.com>
29484 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
29485 the difference between compact and incompact layout and add the record
29486 representation clause to the example illustrating different layouts.
29487 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
29488 component clauses").
29490 2005-02-09 Florian Villoing <villoing@adacore.com>
29492 * gnat_ugn.texi: Fix typos.
29493 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
29495 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
29496 in the generated documentation.
29498 2005-02-09 Arnaud Charlet <charlet@adacore.com>
29500 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
29502 Update linker wrapper when linking with non GNU C++.
29504 2005-02-09 Pascal Obry <obry@adacore.com>
29507 Document the procedure to debug the DllMain routine on Windows.
29508 Add note about -funwind-tables and mixed Ada and C/C++ programming in
29510 Document new BIND qualifer /RETURN_CODES=VMS.
29512 2005-02-09 Ben Brosgol <brosgol@adacore.com>
29514 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
29515 Edited gnatmetric chapter
29517 2005-02-09 Robert Dewar <dewar@adacore.com>
29520 Changes to document new wide wide character support
29522 Update documentation on Normalize_Scalars and Initialize_Scalars
29524 2005-02-09 Pascal Obry <obry@adacore.com>
29526 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
29528 2005-02-09 Jose Ruiz <ruiz@adacore.com>
29530 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
29531 from the VxWorks kernel) that is needed for getting the active
29532 priority of the different tasks.
29534 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
29535 Use a pragma Elaborate_Body in the spec file instead.
29536 Noticed by code reading.
29538 2005-02-09 Thomas Quinot <quinot@adacore.com>
29540 * exp_util.ads: Minor correction in comment.
29542 2005-02-09 Arnaud Charlet <charlet@adacore.com>
29544 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
29545 since this procedure is now too complex to be worth inlining.
29547 2005-02-09 Richard Henderson <rth@redhat.com>
29549 * utils.c (gnat_define_builtin): Remove.
29550 (gnat_install_builtins): Use build_common_builtin_nodes.
29552 2005-02-09 Arnaud Charlet <charlet@adacore.com>
29554 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
29555 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
29556 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
29557 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
29558 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
29559 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
29560 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
29561 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
29562 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
29563 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
29564 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
29565 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
29566 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
29567 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
29568 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
29569 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
29570 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
29571 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
29572 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
29573 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
29574 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
29575 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
29576 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
29577 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
29578 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
29579 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
29580 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
29581 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
29582 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
29583 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
29584 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
29585 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
29586 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
29587 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
29590 2005-01-27 Laurent Guerby <laurent@guerby.net>
29592 * Makefile.in: Fix a-intnam.ads from previous commit,
29593 add 2005 to copyright.
29594 * a-intman-rtems.ads: Renamed to...
29595 * a-intnam-rtems.ads:
29597 2005-01-27 Laurent Guerby <laurent@guerby.net>
29599 * Makefile.in: Rename GNAT RTEMS specific files.
29600 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
29601 5rosinte.ads, 5rparame.adb: Replaced by files below.
29602 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
29603 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
29605 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
29606 Laurent Guerby <laurent@guerby.net>
29609 * 5rosinte.ads: Add No_Key constant.
29610 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
29611 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
29613 2005-01-26 Laurent Guerby <laurent@guerby.net>
29616 * i-cobol.adb (Valid_Numeric): Handle zero length case.
29618 2005-01-20 Richard Henderson <rth@redhat.com>
29620 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
29621 a-intnam-linux.ads and system-linux-alpha.ads.
29622 * a-intnam-linux-alpha.ads: Remove file.
29623 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
29624 * system-linux-alpha.ads: New file.
29626 2005-01-18 Jakub Jelinek <jakub@redhat.com>
29629 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
29630 set to the new string.
29632 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
29634 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
29637 2005-01-18 Richard Henderson <rth@redhat.com>
29639 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
29640 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
29642 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
29644 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
29646 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
29647 (GCC_ZCX_Support): Likewise.
29649 2005-01-11 Bastian Blank <waldi@debian.org>
29651 * system-linux-s390.ads: Define Preallocated_Stacks.
29652 * system-linux-s390x.ads: Likewise.
29654 2005-01-04 Arnaud Charlet <charlet@adacore.com>
29656 * gnat_ugn.texi: Fix texi errors with null variables.
29658 2005-01-03 Thomas Quinot <quinot@adacore.com>
29660 * gen-soccon.c: New utility program to generate g-soccon.ads
29663 * socket.c, gsocket.h: Split inclusion of system header files into a
29664 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
29666 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
29667 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
29668 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
29669 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
29670 should not be edited by hand anymore, but should be regenerated using
29673 2005-01-03 Robert Dewar <dewar@adacore.com>
29674 Ed Schonberg <schonberg@adacore.com>
29675 Vincent Celier <celier@adacore.com>
29677 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
29678 on/off, since this is an obsolescent feature, for which we now generate
29681 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
29682 warning mode is set and obsolescent usage of this attribute occurs.
29683 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
29684 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
29685 predates, and partly motivates, the adoption of the AI.
29686 Implement new Ada 2005 attribute Mod
29688 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
29691 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
29693 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
29694 pragma restrictions.
29695 New entry for Ada 2005 attribute Mod.
29698 Add recognition of new pragma Restrictions No_Dependence
29699 Recognize restriction No_Obsolescent_Features at parse time
29701 * bcheck.adb: Add circuitry for checking for consistency of
29702 No_Dependence restrictions.
29704 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
29707 * restrict.ads, restrict.adb: Add subprograms to deal with
29708 No_Dependence restrictions.
29710 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
29713 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
29714 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
29716 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
29717 dummy parameter to scng instantiation.
29718 Needed for new restriction No_Obsolescent_Features
29720 * scn.adb: (Obsolescent_Check): New procedure
29721 Needed for new restriction No_Obsolescent_Features
29723 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
29724 specified by AI-285, needed for implementation of AI-388 (adding greek
29725 pi to Ada.Numerics).
29726 Add new generic formal to scng, needed for new restriction
29727 No_Obsolescent_Features.
29729 * s-rident.ads: Add new restriction No_Obsolescent_Features.
29731 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
29732 restrictions lines.
29733 (Scan_ALI): When finding an unexpected character on an R line, raise
29734 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
29735 Ignore_Errors is True, default restrictions are set and scanning of the
29736 ALI file continues with the next line. Also, when Bad_R_Line is raised
29737 and Ignore_Errors is True, skip to the end of le line.
29739 * sem_ch10.adb: Check that explicit with's do not violate
29740 No_Dependence restrictions.
29741 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
29742 illegal context clauses containing child units of instance.
29744 * sem_prag.adb: Processing and checking for new No_Dependence
29746 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
29747 analyze and check the External argument.
29749 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
29751 2005-01-03 Robert Dewar <dewar@adacore.com>
29753 * atree.adb: Add a fifth component to entities
29754 This allows us to add 32 flags and four new fields
29756 * atree.ads: Add a fifth component to entities
29757 This allows us to add 32 flags and four new fields
29759 * einfo.ads, einfo.adb: Document new fields and new flags now available
29760 Add routines for printing new fields
29762 * treepr.adb: Call routines to print out additional fields if present
29764 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29766 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
29767 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
29769 * Makefile.in: Add support to build shared Ada libraries on solaris x86
29770 Remove gpr2make, replaced by gprmake.
29771 Remove references to gnatmem and libaddr2line.
29772 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
29773 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
29774 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
29775 a-numaux-darwin.ads and a-numaux-darwin.adb
29776 Enable mlib-tgt-lynxos.adb on lynxos.
29778 * Make-lang.in: Remove rules for gpr2make.
29779 When generating sdefault.adb, do not call Relocate_Path
29780 on S3 for function Target_Name, as it is not a path.
29781 Remove references to gnatmem and libaddr2line.
29783 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
29786 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
29788 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
29789 address is incompatible with its base type alignment constraints when
29790 this can be decided statically.
29792 2005-01-03 Olivier Hainque <hainque@adacore.com>
29794 * decl.c (compatible_signatures_p): New function. The intended purpose
29795 is to check if two function signatures for a call-site and a callee are
29796 compatible enough for the call to be valid. The underlying purpose is
29797 to check if a call to a mapped builtin is using the right interface.
29798 The current code actually does not check antyhing - this a placeholder
29799 for future refinements.
29800 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
29801 builtin calls for convention Intrinsic.
29803 * gigi.h (builtin_decl_for): Declare (new function).
29805 * utils.c (gnat_install_builtins): Install the target specific builtins.
29806 (builtin_decl_for): New function, provide a dummy body for now.
29808 2005-01-03 Geert Bosch <bosch@adacore.com>
29810 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
29811 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29812 (Pred): Implement in terms of Succ.
29814 * trans.c (convert_with_check): Reimplement conversion of float to
29817 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29818 Vincent Celier <celier@adacore.com>
29820 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
29821 bounds can be negative, and must be declared Int, not Nat.
29823 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
29824 array is checked after using the index in the array.
29826 * makegpr.adb (Add_Switches): Check if there is a package for the
29827 processor. If there is no package, do not look for switches.
29829 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29831 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
29832 generation of predefined stream operations (specs and bodies) should
29833 proceed. Under various restrictions these subprograms must not be
29836 2005-01-03 Thomas Quinot <quinot@adacore.com>
29839 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
29840 amount of PCS-specific code in RACW stubs generation.
29841 (Copy_Specification): Set Etype on copied formal parameter entities, as
29842 this information is needed for PolyORB stubs generation.
29843 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
29844 variable Dynamic_Async.
29845 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
29846 (Build_RPC_Receiver_Specification): Make generic again, as recent
29847 changes have allowed RPC receivers to have the same profile for both
29848 variants of the PCS.
29849 Reorganise RPC receiver generation to reduce differences between the
29850 structure of GARLIC and PolyORB RPC receivers.
29851 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
29853 Simplify elaboration code for RCI packages.
29855 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
29856 generation to reduce differences between the structure of GARLIC and
29857 PolyORB RPC receivers.
29859 * s-stratt.adb: Fix typo in comment.
29861 2005-01-03 Thomas Quinot <quinot@adacore.com>
29863 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
29864 copied from Make_Init_Call).
29866 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
29867 reads and assignments on a temporary variable declared with appropriate
29870 2005-01-03 Robert Dewar <dewar@adacore.com>
29872 * i-c.adb (To_C): Raise CE if string is null and Append_Null
29874 2005-01-03 Robert Dewar <dewar@adacore.com>
29876 * i-cstrin.adb (Update): Do not append a null in form called with a
29877 String. This avoids unintended behavior.
29879 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29882 * init.c: Fix warnings on Free BSD section.
29884 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29887 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
29890 2005-01-03 Vincent Celier <celier@adacore.com>
29892 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
29893 libraries when Unique_Compile is True (-u switch).
29896 2005-01-03 Robert Dewar <dewar@adacore.com>
29898 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
29899 upper case letter or underscore after W, as allowed by spec.
29901 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29903 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
29904 darwin port by using proper type definitions from header files.
29905 Use SIGTERM instead of SIGABRT for SIGADAABORT.
29907 2005-01-03 Robert Dewar <dewar@adacore.com>
29909 * par.adb: Enhance error message handling for configuration file
29912 2005-01-03 Robert Dewar <dewar@adacore.com>
29914 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
29915 removed during the previous update (test properly for case of dividing
29916 largest negative number by -1, which generates overflow).
29918 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29919 Sergey Rybin <rybin@adacore.com>
29921 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
29922 to use as the defining identifier for a formal package.
29923 (Remove_Parent): If the instance takes place within (an instance of)
29924 a sibling, preserve private declarations of common parent.
29926 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29928 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
29929 to determine whether one of the operands is a fixed-point type for
29930 which a user-defined multiplication or division operation might be
29933 * sem_res.adb (Valid_Conversion): The legality rules for conversions
29934 of access types are symmetric in Ada 2005: either designated type can
29937 2005-01-03 Vincent Celier <celier@adacore.com>
29939 * s-fileio.adb (Temp_File_Record): Change length of string component
29940 Name from L_tmpnam + 1 to max_path_len + 1.
29942 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29944 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
29945 Self_Id.Deferral_Level = 0.
29946 (Do_Pending_Action): Move this function to the spec.
29948 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
29949 Do_Pending_Action explicitely when needed, in case we're using
29950 No_Abort restrictions.
29952 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29953 deferral level since it will not get changed by the generated code.
29954 Keeping a default value of 1 would prevent some operations (e.g.
29955 select or delay) to proceed successfully.
29957 2005-01-03 Ben Brosgol <brosgol@adacore.com>
29958 Robert Dewar <dewar@adacore.com>
29959 Cyrille Comar <comar@adacore.com>
29961 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29962 porting guide chapter (vms version).
29963 Revised doc title (removed "for native platforms") and subtitle.
29964 Add discussion on warning flag for obsolescent features. First we
29965 note that it applies to obsolete GNAT features, which was previously
29966 omitted. Second we contrast the behavior with that of the new
29967 Ada 2005 AI-368 restriction No_Obsolescent_Features.
29968 Preliminary rewriting of GNAT & libraries chapter in order to take
29969 into account default project locations & new project manager
29972 2005-01-03 Robert Dewar <dewar@adacore.com>
29974 * cstand.adb (Create_Operators): Clean up format and documentation of
29975 unary and binary operator result tables. No change in code, just
29976 reformatting and addition of comments.
29978 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29979 sem_ch2.adb: Minor reformatting
29981 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29982 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29983 comments for Tree_Read and Tree_Write.
29985 2005-01-03 Pascal Obry <obry@adacore.com>
29987 * exp_attr.ads: Minor reformatting.
29989 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
29991 * comperr.adb (Compiler_Abort): Add specialized message for GAP
29994 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29996 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29997 whether the ancestor type is private, as may be the case with nested
30000 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
30003 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
30005 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
30007 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
30008 * utils2.c (build_unary_op): Likewise.
30010 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30012 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
30014 2004-12-19 Richard Henderson <rth@redhat.com>
30016 * trans.c (gigi): Update gimplify_body call.
30018 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
30020 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
30022 2004-12-07 Ed Falis <falis@adacore.com>
30024 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
30025 current task being suspended.
30027 * init.c (__gnat_clear_exception): added to reset VxWorks exception
30029 (__gnat_map_signal): removed test for current task being suspended.
30031 2004-12-07 Gary Dismukes <dismukes@adacore.com>
30033 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
30034 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
30035 targets (such as AAMP).
30037 2004-12-07 Ed Schonberg <schonberg@adacore.com>
30039 * atree.adb (Visit_Itype): Create a new name for the generated itype,
30040 because the back-end may otherwise treat it as a redefinition of the
30043 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
30045 * back_end.adb (Scan_Back_End_Switches): Accept --param.
30047 * lang-specs.h: Accept --param.
30049 2004-12-07 Vincent Celier <celier@adacore.com>
30051 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
30052 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
30053 Current_Body_Suffix => Ada_Body_Suffix).
30054 Take into account Externally_Built attribute.
30056 * clean.adb (In_Extension_Chain): Always return False when one of the
30057 parameter is No_Project.
30058 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
30059 Ada_Language_Index).
30060 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
30061 Process_Languages for procedure Parse).
30063 * gnatcmd.adb (Carg_Switches): New table.
30064 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
30065 Adapt to name changes in package Prj (Current_Spec_Suffix =>
30066 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
30068 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
30069 Header_Num and function Hash are now declared in package Prj,
30072 * prj.adb (Suffix_Of): New function.
30073 (Set (Suffix)): New procedure.
30074 (Hash): One function moved from Prj.Com
30075 (Is_Present, Language_Processing_Data_Of): New functions
30076 (Set): Two new procedures
30077 (Add_Language_Name, Display_Language_Name): New procedures
30079 * prj.ads: (Suffix_Of): New function
30080 (Set (Suffix)): New procedure
30081 Add several types and tables for multi-language support.
30082 (Header_Num): Type moved from Prj.Com
30083 (Hash): Two functions moved from Prj.Com
30084 (Is_Present, Language_Processing_Data_Of): New functions
30085 (Set): Two new procedures
30086 (Add_Language_Name, Display_Language_Name): New procedures
30087 (Naming): Component name changes:
30088 Current_Spec_Suffix => Ada_Spec_Suffix,
30089 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
30090 Impl_Suffixes, Supp_Suffixes.
30091 (Project_Data): New components: Externally_Built, Supp_Languages,
30092 First_Language_Processing, Supp_Language_Processing, Default_Linker,
30093 Default_Linker_Path.
30095 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
30096 new package Language_Processing with its attributes (Compiler_Driver,
30097 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
30098 Binder_Driver, Default_Linker).
30100 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
30101 (Header_Num): Type moved to package Prj
30103 * prj-env.adb: Adapt to name changes in package Prj
30104 (Current_Spec_Suffix => Ada_Spec_Suffix,
30105 Current_Body_Suffix => Ada_Body_Suffix).
30107 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
30108 default to the project path, except the "-" is one of the directories
30109 in env var ADA_PROJECT_PATH.
30110 (Current_Project_Path): Global variable, replacing Project_Path
30111 that was in the body of Prj.Part.
30112 (Project_Path): New function
30113 (Set_Project_Path): New procedure
30114 Initialize Current_Project_Path during elaboration of the package
30115 Remove dependency on Prj.Com, no longer needed
30117 * prj-ext.ads (Project_Path): New function
30118 (Set_Project_Path): New procedure
30120 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
30121 suffix is defined for language <lang>.
30122 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
30123 accessing directly the components of Naming.
30124 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
30125 Reorganise of this package.
30126 Break procedure Check in several procedures.
30128 * prj-nmsc.ads: Replace all procedures (Ada_Check,
30129 Other_Languages_Check and Language_Independent_Check) with a single
30132 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
30133 Process_Languages, no longer needed.
30135 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
30136 Current_Project_Path.
30137 Remove elaboration code, moved to the body of Prj.Ext
30138 Use new function Prj.Ext.Project_Path instead of old variable
30140 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
30141 When comparing with project paths on the stack, first put the resolved
30142 path in canonical case.
30143 (Parse_Single_Project): Set the path name of the project file in the
30144 tree to the normalized path.
30146 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
30147 parameter Process_Languages, no longer needed.
30148 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
30149 Other_Languages_Check.
30151 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
30152 to store the resolved canonical path of the project file.
30153 Remove dependency to Prj.Com, no longer needed
30155 * prj-util.adb: Adapt to name changes in package Prj
30156 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
30159 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
30160 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
30161 Externally_Built, Include_Option, Language_Processing.
30163 * makegpr.adb: Numerous changes due to changes in packages
30166 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
30167 default to the project path, except whe "-" is one of the directories
30168 in env var ADA_PROJECT_PATH.
30169 (Gnatls): In verbose mode, add the new section "Project Search Path:"
30171 2004-12-07 Robert Dewar <dewar@adacore.com>
30173 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
30175 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
30178 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
30179 flag. No longer needed now that we handle this in gnat1drv.adb.
30181 * repinfo.ads: Minor reformatting
30183 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30184 Olivier Hainque <hainque@adacore.com>
30185 Eric Botcazou <ebotcazou@adacore.com>
30187 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
30188 TYPE_SIZE_UNIT of result type if SIZE is not specified.
30189 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
30190 of a bitfield, which we know is useless and causes trouble because of
30191 alignment implications.
30193 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
30195 (process_attributes): Clear DECL_COMMON again when a section attribute
30197 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
30198 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
30199 (create_field_decl): Special case ADDRESSABLE negative to mean
30200 "no bitfield creation", to be used by make_aligning_type. Don't
30201 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
30202 fields claimed addressable still have to be bitfields. Use
30203 value_factor_p instead of a raw binop construction to check for the
30204 position's alignment.
30206 2004-12-07 Geert Bosch <bosch@adacore.com>
30208 * eval_fat.adb: Revert previous change.
30210 2004-12-07 Thomas Quinot <quinot@adacore.com>
30211 Ed Schonberg <schonberg@adacore.com>
30213 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
30214 with an implicit dereference as its prefix, use
30215 Insert_Explicit_Dereference instead of merely rewriting the prefix into
30216 an explicit dereference. This ensures that a reference to the original
30217 prefix is generated, if appropriate.
30219 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
30220 dereference is rewritten to an explicit one, generate a reference to
30221 the entity denoted by its prefix using the original prefix node, so
30222 the dereference can be properly recorded as a read of the denoted
30223 access value, if appropriate.
30225 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
30226 emitting 'assigned but never read' warning on a variable on the basis
30227 that it has an access type.
30228 (Check_References): Emit unreferenced warning when the scope is a
30231 2004-12-07 Robert Dewar <dewar@adacore.com>
30232 Ed Schonberg <schonberg@adacore.com>
30234 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
30237 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
30238 leaving call unchanged.
30239 This deals with the case where the pragma Import specified
30240 an external name, to be handled by the back end.
30242 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
30243 subprogram which is Imported with convention Intrinsic if an
30244 External_Name argument is specified.
30245 (Process_Import_Or_Interface): Properly diagnose link name argument.
30246 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
30247 with Sem_Ch6.Cannot_Inline.
30248 (Process_Inline): Provide separate warning for inapplicable inline
30250 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
30251 treatment is uniform on different targets.
30253 2004-12-07 Ed Schonberg <schonberg@adacore.com>
30255 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
30256 construct is rewritten, preserve end label to permit source navigation.
30258 2004-12-07 Thomas Quinot <quinot@adacore.com>
30260 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
30261 Specific_Build_Stub_Target): New subprograms.
30262 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
30263 the PCS implementation used, using the above PCS-customized subprograms.
30264 Minor reformatting.
30265 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
30266 for generation of DSA code targeted to the PolyORB PCS.
30267 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
30268 implementation of the partition communication subsystem in ancillary
30270 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
30271 PolyORB_Support.Build_Stub_Type): New subrograms containing the
30272 PCS-specific part of Add_Stub_Type.
30273 (Insert_Partition_Check): Use runtime library function to perform
30276 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
30277 (RE_Same_Partition): New entity, from s-parint.
30279 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
30281 2004-12-07 Gary Dismukes <dismukes@adacore.com>
30283 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
30284 Output the copyright message on a separate line from the version
30287 2004-12-07 Joel Brobecker <brobecker@adacore.com>
30289 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
30290 compile-time warning.
30292 2004-12-07 Robert Dewar <dewar@adacore.com>
30294 * g-regpat.adb: (Match): Change a misuse of or to or else
30296 2004-12-07 Ed Schonberg <schonberg@adacore.com>
30299 (Generate_Reference): Handle properly a reference to an entry formal,
30300 when an accept statement has a pragma Unreferenced for it.
30302 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
30303 and the Has_Pragma_Unreferenced flag for each formal before analyzing
30304 the body, to ensure that warnings are properly emitted for each accept
30305 statement of a given task entry.
30307 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
30309 * Makefile.in: Add support for foreign threads on VMS.
30311 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30313 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
30315 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
30317 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
30319 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
30321 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
30323 2004-12-07 Robert Dewar <dewar@adacore.com>
30325 * nlists.adb (Prepend_Debug): Remove parameters and nest within
30327 (Remove_Next_Debug): Same fix
30329 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
30330 maintain back pointers now, though we did not used to, and comments
30332 (Prepend): Remove pragma Inline.
30333 (Remove_Next): Same cleanup
30335 2004-12-07 Thomas Quinot <quinot@adacore.com>
30337 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
30338 used to record an implicit dereference as a read operation on its
30339 prefix when operating under -gnatc. Necessary to avoid spurious
30340 'variable assigned but never read' warnings in that mode.
30341 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
30342 is a non-overloaded implicit dereference, call the above subprogram to
30343 ensure proper recording of references.
30345 2004-12-07 Gary Dismukes <dismukes@adacore.com>
30347 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
30348 to be resolved later as part of Analyze_Iteration_Scheme's call to
30351 2004-12-07 Ed Schonberg <schonberg@adacore.com>
30353 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
30354 prefix is not a scalar type, place error message on prefix, not on
30357 2004-12-07 Bernard Banner <banner@adacore.com>
30359 * vxaddr2line.adb: Add support for x86 vxworks
30361 2004-12-07 Thomas Quinot <quinot@adacore.com>
30363 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
30364 documentation of the behaviour of these functions when passed an IP
30365 address that has no record in the system hosts database and no reverse
30368 * cstand.adb, a-tags.ads: Fix typos in comment.
30370 2004-12-07 Robert Dewar <dewar@adacore.com>
30372 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
30373 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
30374 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
30375 s-poosiz.ads: Minor reformatting
30377 * make.adb: Minor reformatting
30378 Add some ??? comments asking for more comments
30380 * s-poosiz.adb: Minor reformatting
30381 Add comments on alignment requirement
30383 * sinfo.ads: Remove obsolete comment and fix typo.
30385 2004-12-07 Vincent Celier <celier@adacore.com>
30386 Sergey Rybin <rybin@adacore.com>
30388 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
30389 Files" with the new tool and package names.
30390 Reformatting to suppress most of the warnings for line too long
30391 Document the new section "Project Search Path:" in the output of
30393 Add gnatmetric section
30395 2004-12-07 Vincent Celier <celier@adacore.com>
30397 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
30398 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
30399 and -eit to -ept. Added qualifier
30400 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
30402 2004-11-27 Andreas Schwab <schwab@suse.de>
30404 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
30406 2004-11-25 Arnaud Charlet <charlet@adacore.com>
30408 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
30409 internal implementation unit GNAT.Sockets.Thin,
30410 as their usage for sockets is non-portable (using the read and write
30411 functions from the system runtime library is fine on UNIX but won't
30412 work under Windows).
30414 * mingw32.h: Update copyright notice.
30416 2004-11-25 Arnaud Charlet <charlet@adacore.com>
30418 * ada-tree.h: Minor reformatting of previous change to avoid lines
30419 longer than 79 characters.
30421 2004-11-25 Olivier Hainque <hainque@adacore.com>
30423 * tb-gcc.c: GCC infrastructure based implementation of
30426 2004-11-24 Steven Bosscher <stevenb@suse.de>
30428 * misc.c (gnat_post_options): Don't clear
30429 flag_inline_functions.
30431 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
30434 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
30437 2004-11-21 Andreas Jaeger <aj@suse.de>
30439 * stylesw.adb: Change Style_Check_Subprogram_Order to
30440 Style_Check_Order_Subprograms.
30442 2004-11-18 Arnaud Charlet <charlet@adacore.com>
30444 * adaint.h, adaint.c
30445 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
30447 Add also a cast to kill another warning.
30448 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
30449 parameter with the priority class of the parent process instead of
30450 always using the NORMAL_PRIORITY_CLASS.
30451 (__gnat_dup): New function.
30452 (__gnat_dup2): New function.
30453 (__gnat_is_symbolic_link): Enable the effective body of this
30454 function when __APPLE__ is defined.
30456 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
30459 2004-11-18 Olivier Hainque <hainque@adacore.com>
30461 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
30462 address of which may be used to represent "others" and "all others"
30463 choices in exception tables, instead of the current harcoded
30464 (void *)0 and (void *)1.
30465 (Setup_Exception): Do nothing in the GNAT SJLJ case.
30467 * gigi.h (others_decl, all_others_decl): New decls representing the
30468 new Others_Value and All_Others_Value objects.
30469 (struct attrib): Rename "arg" component as "args", since GCC expects a
30470 list of arguments in there.
30472 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
30473 corresponding objects exported by a-exexpr, instead of hardcoded dummy
30476 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
30477 others_decl and all_others_decl instead of hardcoded dummy addresses
30478 to represent "others" and "all others" choices, which is cleaner and
30479 more flexible with respect to the possible eh pointer encoding policies.
30481 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
30482 (process_attributes): Account for the naming change of the "args"
30483 attribute list entry component.
30485 * decl.c (build_attr_list): Rename into prepend_attributes to allow
30486 cumulating attributes for different entities into a single list.
30487 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
30488 attributes for the current entity and propagate first subtype
30489 attributes to other subtypes.
30490 <E_Procedure>: Attribute arguments are attr->args and not
30491 attr->arg any more.
30492 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
30493 argument provided, as this is what GCC expects. Use NULL_TREE instead
30496 2004-11-18 Robert Dewar <dewar@adacore.com>
30498 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
30499 Minor reformatting througout (including new function specs)
30500 Add ??? comments asking for clarification.
30502 2004-11-18 Thomas Quinot <quinot@adacore.com>
30504 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
30505 incomplete duplicate implementation of this subprogram from butil.
30507 2004-11-18 Thomas Quinot <quinot@adacore.com>
30509 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
30510 procedures factors the common processing for building an RPC receiver
30511 for an RCI package or an RACW type.
30512 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
30513 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
30514 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
30516 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
30518 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
30520 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
30521 distribution subprogram identifiers that are either subprogram numbers
30523 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
30524 string distribution identifiers assigned to a given subprogram.
30525 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
30526 (Add_RAS_Dereference_TSS): Add comments.
30527 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
30528 is not referenced yet because it will be used by the PolyORB DSA
30530 (Insert_Partition_Check): Remove fossile code.
30531 (First_RCI_Subprogram_Id): Document this constant.
30532 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
30534 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
30535 replaced with calls to Get_Library_Unit_Name_String. Previously there
30536 were several instances of the same code in different locations in the
30537 compiler; this checkin completes the replacement of all of these
30538 instances with calls to a common subprogram.
30539 Minor reformatting.
30541 * sem_dist.adb: Remove comment noting that RPC receiver generation
30542 should be disabled for RACWs that implement RASs.
30543 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
30545 * sem_util.ads, sem_util.adb (Has_Stream): New function
30546 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
30547 qualified name of a library unit into the name buffer.
30548 (Note_Possible_Modification): Generate a reference only
30549 if the context comes from source.
30551 * snames.ads (PCS_Names): New subtype corresponding to names of
30552 supported implementations of the Partition Communication Subsystem
30553 (PCS) (i.e. the runtime library support modules for the distributed
30556 2004-11-18 Robert Dewar <dewar@adacore.com>
30557 Ed Schonberg <schonberg@adacore.com>
30559 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
30560 (Has_Rep_Pragma): New function
30561 (Has_Attribute_Definition_Clause): New function
30562 (Record_Rep_Pragma): Moved here from sem_ch13.adb
30563 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
30565 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
30567 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
30568 (Expand_Pragma_Psect_Object): New procedure
30569 These procedures contain the revised and cleaned up processing for
30570 these two pragmas. This processing was formerly in Sem_Prag, but
30571 is more appropriately moved here. The cleanup involves making sure
30572 that the pragmas are properly attached to the tree, and that no
30573 nodes are improperly shared.
30575 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
30576 pragmas to Exp_Prag, which is more appropriate.
30577 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
30578 check for duplicates Remove use of Is_Psected flag, no longer needed.
30579 Use new Make_String_Literal function with string.
30581 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
30582 that are functions return universal values, that have to be converted
30583 to the context type.
30584 Use new Make_String_Literal function with string.
30585 (Get_Stream_Convert_Pragma): New function, replaces the use of
30586 Get_Rep_Pragma, which had to be kludged to work in this case.
30588 * freeze.adb: Use new Has_Rep_Pragma function
30590 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
30591 function with string.
30592 Use new Has_Rep_Pragma function.
30594 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
30597 2004-11-18 Robert Dewar <dewar@adacore.com>
30599 * errout.ads, errout.adb: (First_Sloc): New function
30601 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
30602 check (-gnatyx) instead of being included as a redundant construct
30605 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
30606 Style_Check_Order_Subprograms.
30608 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
30609 stylesw.adb: Add Style_Check_Xtra_Parens
30611 * usage.adb: Add line for -gnatyx (check extra parens)
30613 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
30615 2004-11-18 Ed Schonberg <schonberg@adacore.com>
30616 Robert Dewar <dewar@adacore.com>
30618 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
30619 discriminant of a constrained subtype, analyze the copy of the
30620 corresponding constraint, because in some cases it may be only
30621 partially analyzed.
30622 Removes long-lived ??? comments.
30624 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
30625 handled controlled or secondary-stack expressions within the
30626 iteration_scheme of a loop.
30628 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
30629 bounds that may contain functions calls, to prevent memory leaks when
30630 the bound contains a call to a function that uses the secondary stack.
30631 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
30632 generate temporaries for loop bounds that might contain function calls
30633 that require secondary stack and/or finalization actions.
30635 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
30636 selected component and the selector is overloadable (not just a
30637 function) treat as function call, Analyze_Call will disambiguate if
30639 (Analyze_Selected_Component): Do not generate an actual subtype for the
30640 selected component if expansion is disabled. The actual subtype is only
30641 needed for constraint checks.
30642 (Analyze_Allocator): If restriction No_Streams is set, then do
30643 not permit objects to be declared of a stream type, or of a
30644 composite type containing a stream.
30646 * restrict.ads: Remove the a-stream entry from Unit_Array, since
30647 No_Streams no longer prohibits with'ing this package.
30649 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
30650 discriminants, but the parent base has unknown discriminants, there is
30651 no discriminant constraint to inherit. Such a discrepancy can arise
30652 when the actual for a formal type with unknown discriminants is a
30653 similar private type whose full view has discriminants.
30654 (Analyze_Object_Declaration): If restriction No_Streams is set, then
30655 do not permit objects to be declared of a stream type, or of a
30656 composite type containing a stream.
30658 2004-11-18 Ed Schonberg <schonberg@adacore.com>
30660 * exp_dbug.ads: Update documentation to reflect simpler encoding for
30661 protected operations.
30663 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
30664 generated name, it complicates decoding in gdb and hinders debugging
30665 of protected operations.
30666 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
30667 flag for the protected entry barrier function.
30668 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
30669 flag for the protected entry function.
30671 2004-11-18 Nicolas Setton <setton@adacore.com>
30673 * expect.c: Define __unix__ when __APPLE__ is defined.
30675 * Makefile.in: Inform the value of the variable GMEM_LIB in the
30676 Darwin-specific section.
30678 * lang-specs.h: Change the placement of the %1 marker.
30679 Works around the fact that gcc adds -fPIC by default under Darwin.
30681 2004-11-18 Ed Schonberg <schonberg@adacore.com>
30683 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
30684 type of the object with the packed array type, set the Analyzed flag
30685 on the object if it is an entity or simple indexed component, to avoid
30686 spurious type errors.
30688 2004-11-18 Gary Dismukes <dismukes@adacore.com>
30690 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
30691 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
30692 separate line from the version message.
30694 2004-11-18 Ed Falis <falis@adacore.com>
30696 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
30698 (init_float): Eliminate initialization of floating point status for
30699 AE653. The instructions have no effect for vThreads.
30701 2004-11-18 Vincent Celier <celier@adacore.com>
30703 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
30704 gnatbind is invoked with -shared.
30706 2004-11-18 Jose Ruiz <ruiz@adacore.com>
30708 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
30709 for Detect_Blocking which is redundant with the check done within the
30710 procedure Protected_Single_Entry_Call.
30711 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
30712 Detect_Blocking which is redundant with the check done within the
30713 procedure Protected_Single_Entry_Call.
30715 2004-11-18 Vincent Celier <celier@adacore.com>
30717 * makegpr.adb (Compile): Put the compiling switches (in package
30718 Compiler and on the command line) immediately after "-c", instead of
30719 at the end of the command line invocation of the compiler, when
30720 compiling a non-Ada file.
30721 (Build_Global_Archive): When there is no need to rebuild the archive,
30722 set Global_Archive_Exists, so that the archive is passed to the linker
30725 2004-11-18 Robert Dewar <dewar@adacore.com>
30726 Sergey Rybin <rybin@adacore.com>
30729 Remove extra paren check from list of checks for redundant constructs
30730 Add documentation of new -gnatyx style check (check extra parens)
30731 Remove paragraph about gnatelim debug options.
30733 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
30734 objects rather than forbidding dependencies on the package Ada.Streams.
30736 * sinfo.ads: Add ??? note that we should document pragmas passed to
30739 * g-expect.ads: Fix a few typos in the comments.
30741 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
30743 * misc.c (gnat_handle_option): Use %< and %> for quoting in
30746 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30748 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
30750 2004-11-07 Andreas Schwab <schwab@suse.de>
30752 * Makefile.in (install-gnatlib): Remove spurious hyphen.
30754 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
30757 * Makefile.in (darwin): Set soext to .dylib.
30759 2004-10-26 Vincent Celier <celier@gnat.com>
30760 Thomas Quinot <quinot@act-europe.fr>
30762 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
30763 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
30764 there is no use of GNAT.Sockets.Constants.
30765 Remove remaining pragma Import for C_Write
30766 Remove C_Read and C_Write from internal implementation unit
30767 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
30768 the read and write functions from the system runtime library is fine
30769 on UNIX but won't work under Windows).
30771 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
30772 (Check_Selector): Use C_Recv instead of C_Read.
30773 Selectors are the GNAT.Sockets abstraction to perform a select()
30774 call on a set of descriptors. To allow abortion of an ongoing
30775 select operation, some data is written to a dedicated socket that
30776 is always monitored.
30777 Under Windows, the write and read library functions cannot operate
30778 on sockets, so we need to use send and recv instead, which is portable
30779 across all supported platforms.
30781 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
30782 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
30783 (using the read and write functions from the system runtime library is
30784 fine on UNIX but won't work under Windows).
30786 2004-10-26 Nicolas Setton <setton@act-europe.fr>
30788 * mlib-tgt-darwin.adb: New file.
30790 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30791 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30792 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30793 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
30796 * Makefile.in: Add support for building shared libraries under Darwin.
30797 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
30798 the low level EH init subprogram to be called from __gnat_initialize.
30800 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
30801 indicates which options to pass to the archive indexer.
30803 * mlib-utl.adb: Add support for calling ranlib with additional
30804 options. This is needed for instance under Mac OS X.
30805 (Ranlib_Options): New global variable, used to store the potential
30806 options to pass to ranlib.
30807 (Ar): Use Ranlib_Options when spawning ranlib.
30808 (Initialize): Set the value of ranlib option.
30810 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
30812 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
30813 instead of 8K, to reflect the real potential needs for stack-checking
30816 2004-10-26 Pascal Obry <obry@gnat.com>
30818 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
30820 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
30821 Windows only the initial thread stack size can be set so it is good to
30822 start we a low stack size.
30823 The OS will adjust the size as needed.
30825 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
30826 Nicolas Setton <setton@act-europe.fr>
30828 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
30829 "__unix__" instead of "unix".
30830 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
30831 sections were just mistakenly ignored. The former is
30832 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
30833 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
30834 of hpux. This prevents an unwanted definition of the symbol
30835 convert_addresses in adaint.o.
30837 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30839 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
30840 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
30842 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30844 * a-filico.ads, a-filico.adb: fix incorrect header.
30846 2004-10-26 Javier Miranda <miranda@gnat.com>
30848 * a-ststio.ads: Fix typo in identifier
30850 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30852 * sem_ch4.adb: Minor reformatting.
30854 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30856 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
30857 enabled, check the result of unary and binary operations when the
30858 expression is the right-hand side of an assignment.
30860 2004-10-26 Vincent Celier <celier@gnat.com>
30862 * clean.adb (Delete): Do not output warnings when in quiet output and
30863 not in verbose mode.
30864 (Force_Deletions): New Boolean flag, defaulted to False
30865 (Delete): Only delete a file if it is writable, and when
30866 Force_Deletions is True.
30867 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
30868 (Usage): Line for new switch -f
30869 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
30872 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30874 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
30875 JM type only if its size matches that of the wrapper. When a size is
30876 prescribed and the field is not aliased, remove the wrapper of a JM
30877 type only if the size is not greater than that of the packed array.
30878 (gnat_to_gnu_entity): Change the extension of packed array wrappers
30881 2004-10-26 Geert Bosch <bosch@gnat.com>
30883 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
30884 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
30885 (Pred): Implement in terms of Succ.
30887 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30889 * exp_aggr.adb (Safe_Component): An aggregate component that is an
30890 unchecked conversion is safe for in-place use if the expression of the
30891 conversion is safe.
30892 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
30893 be expandable in place even if the aggregate does not come from source.
30894 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
30895 designated object of an allocator in place, rather than building it
30896 first on the stack. The previous scheme forces a full copy of the array,
30897 and may be altogether unsusable if the size of the array is too large
30898 for stack allocation.
30900 2004-10-26 Robert Dewar <dewar@gnat.com>
30902 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
30903 compares if the component is atomic.
30905 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
30906 array assignment if the component type is atomic.
30908 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30909 Eric Botcazou <ebotcazou@act-europe.fr>
30911 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
30912 is aliased and is a by_reference type, do not pass by copy.
30913 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
30914 detect whether the call is in the right side of an assignment or
30915 the expression of an object declaration. Recurse on component
30916 association within aggregates.
30917 Call it in the condition that determines whether the temporary is
30918 necessary for correct stack-checking.
30920 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30922 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
30923 RACW_Type, used in the PolyORB version.
30924 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
30925 version and the GARLIC version.
30927 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
30928 Rename RCI_Info to RCI_Locator for better consistency between the
30929 GARLIC and PolyORB versions of the distributed systems annex.
30930 (DSA_Implementation_Name): This enumeration lists the possible
30931 implementations of the Partition Communication Subsystem for the
30932 Distributed Systems Annex (DSA). The three available implementations
30933 are the dummy stub implementation (No_DSA), and two versions based on
30934 two different distribution runtime libraries: GARLIC and PolyORB. Both
30935 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
30937 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30940 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
30941 between the GARLIC and PolyORB versions of the distributed systems
30943 Remove RE_Unbounded_Reclaim_Pool since it is unused.
30945 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30947 * gnat1drv.adb: Suppress calling the back end when
30948 Frontend_Layout_On_Target is true.
30950 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30952 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30953 Set_Read_Only): New subprograms.
30954 These new routines allow the user to set or unset the Owner execute
30955 and Owner write permission flags on a file.
30957 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30958 GNAT.OS_Lib.Set_Executable instead of rolling our own.
30960 2004-10-26 Matthew Gingell <gingell@gnat.com>
30962 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30964 2004-10-26 Pascal Obry <obry@gnat.com>
30966 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30967 memory before the faulting page we properly test the process read
30968 access for this address using appropriate Win32 routine.
30969 (HPUX sections): guard with "__hpux__" instead of "hpux".
30971 2004-10-26 Robert Dewar <dewar@gnat.com>
30973 * lib-xref.adb (Generate_Reference): Don't complain about reference to
30974 entry parameter if pragma Unreferenced set, since we do not properly
30975 handle the case of multiple parameters.
30977 2004-10-26 Vincent Celier <celier@gnat.com>
30979 * prj-env.adb: (Contains_ALI_Files): New Boolean function
30980 (Ada_Objects_Path.Add): For a library project, add to the object path
30981 the library directory only if there is no object directory or if the
30982 library directory contains ALI files.
30983 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30985 2004-10-26 Vincent Celier <celier@gnat.com>
30987 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30988 extension of library projects.
30990 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30991 path defaults to ".:<prefix>/lib/gnat".
30992 (Parse): For an extending all project, allow direct import of a project
30993 that is virtually extended.
30995 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30996 the specified name is directly imported, return its ID. Otherwise, if
30997 an extension of this project is imported, return the ID of the
31000 2004-10-26 Robert Dewar <dewar@gnat.com>
31002 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
31003 (Sub3): New procedure, used by Scaled_Divide
31004 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
31005 correct more than one instance of failure to propagate carries
31007 (Double_Divide): Handle overflow case of largest negative number
31008 divided by minus one.
31010 * s-arit64.ads (Double_Divide): Document that overflow can occur in
31011 the case of a quotient value out of range.
31014 2004-10-26 Robert Dewar <dewar@gnat.com>
31016 * s-bitops.adb (Bit_Eq): Remove redundant check.
31018 * s-bitops.ads: Minor comment updates
31019 Change some occurrences of Address to System.Address
31021 * s-carsi8.ads: Fix minor cut-and-paste error in comments
31023 2004-10-26 Ed Schonberg <schonberg@gnat.com>
31025 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
31026 accessibility check to prefix that is a protected operation.
31028 2004-10-26 Ed Schonberg <schonberg@gnat.com>
31030 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
31031 empty, post message on stub.
31033 2004-10-26 Ed Schonberg <schonberg@gnat.com>
31034 Javier Miranda <miranda@gnat.com>
31036 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
31037 current instance appears within a unit that is directly in the context
31039 Used to determine whether the body of the instance should be analyzed
31040 immediately after its spec, to make its subprogram bodies available
31041 for front-end inlining.
31042 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
31043 constraint is not allowed on the component type (AARM 12.5.3(3))
31045 2004-10-26 Cyrille Comar <comar@act-europe.fr>
31047 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
31048 'Storage_Pool): enhance, document & limit detection of non-sharable
31051 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
31053 * s-pooglo.ads: Add more documentation now that this pool is properly
31056 2004-10-26 Ed Schonberg <schonberg@gnat.com>
31058 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
31059 or protected type with discriminants, do not constrain the
31060 corresponding record type if the subtype declaration has no
31061 discriminant constraints. This can be the case in source code, or in
31062 the subtype declaration created to rename an actual type within an
31065 2004-10-26 Ed Schonberg <schonberg@gnat.com>
31067 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
31068 different kind of stub (possibly wrong name for file), do not check
31070 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
31071 includes call to some function that returns an unconstrained type, do
31074 2004-10-26 Ed Schonberg <schonberg@gnat.com>
31076 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
31077 appear in the code for the main unit. Dependencies among units in the
31078 context of the main unit are established when those other units are
31079 compiled. Otherwise spurious elaboration constraints can generate
31080 incorrect elaboration circularities.
31082 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
31083 Ed Schonberg <schonberg@gnat.com>
31085 * sem_util.adb (Is_Aliased_View): Defend against the case where this
31086 subprogram is called with a parameter that is not an object name. This
31087 situation arises for some cases of illegal code, which is diagnosed
31088 later, and in this case it is wrong to call Is_Aliased, as that might
31089 cause a compiler crash.
31090 (Explain_Limited_Type): Refine previous fix to include
31091 inherited components of derived types, to provide complete information.
31093 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
31094 is the prival for a protected object.
31095 It is necessary to mark this entity as a variable, in addition to
31096 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
31097 modified to avoid checking the Aliased flag on entities that are not
31098 objects. (Checking that flag for non-objects is erroneous and could
31099 lead to a compiler crash).
31101 2004-10-26 Robert Dewar <dewar@gnat.com>
31103 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
31104 X_Frac = 0.5, then we know that the number X must be positive.
31105 (Succ): Remove the same redundant test, and also fix the primary test
31106 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
31108 (Decompose): Add fuller comments to spec
31110 2004-10-26 Pascal Obry <obry@gnat.com>
31112 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
31113 validity (process must have read access). Set to 0 in all other cases.
31114 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
31115 violation on Win32.
31116 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
31117 segmentation violation.
31119 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
31121 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
31122 whose type is a constructed subtype of an aliased object with an
31123 unconstrained nominal subtype, convert the actual to the constructed
31124 subtype before taking its address.
31126 2004-10-26 Vincent Celier <celier@gnat.com>
31128 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
31129 (Is_Path_Name_Case_Sensitive): New function
31131 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
31132 (Base_Name, Simple_Name, Current_Directory, Compose,
31133 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
31136 2004-10-26 Cyrille Comar <comar@act-europe.fr>
31137 Vasiliy Fofanov <fofanov@act-europe.fr>
31138 Vincent Celier <celier@gnat.com>
31140 * gnat_ugn.texi: Generalize "finding memory problems" section into a
31141 "memory management issues" section and document some of the useful
31142 memory pools provided as part of the GNAT library.
31143 Remove "virtual" from declaration of A::method2 in
31144 the simple example of Ada/C++ mixed system.
31145 Library Projects may be virtually extended: their virtual extensions
31146 are not Library Projects.
31147 Added section on extending project hierarchies.
31149 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
31151 * adaint.c (__gnat_get_libraries_from_registry): Cast value
31153 (__gnat_portable_spawn): Remove const.
31155 * mingw32.h (MAXPATHLEN): Check for previous definition.
31157 2004-10-17 Matthias Klose <doko@debian.org>
31159 * gnatvsn.ads: Set gnat library version to 4.0.
31161 2004-10-05 Vincent Celier <celier@gnat.com>
31163 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
31165 2004-10-04 Laurent Guerby <laurent@guerby.net>
31168 * Makefile.in: Define and use RANLIB_FLAGS.
31170 2004-10-04 Pascal Obry <obry@gnat.com>
31172 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
31173 other x86 platforms).
31175 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
31177 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
31178 in general and triggers stack alignment adjustment for thread entry
31179 points on targets where this is necessary.
31181 2004-10-04 Bernard Banner <banner@gnat.com>
31184 * Makefile.in: Add section for powerpc linux
31185 Add variant i-vxwork-x86.ads
31187 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
31189 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
31191 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
31192 table registration calls when need be. Ensures no reference to the crt
31193 ctors symbol are issued in the SJLJ case, which avoids possible
31194 undefined symbol errors in the case of modules to be statically linked
31197 2004-10-04 Javier Miranda <miranda@gnat.com>
31199 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
31200 in-line the code corresponding to subprogram Analyze_Actuals. In
31201 addition, analyze the actuals only in case of subprogram call.
31203 2004-10-04 Ed Falis <falis@gnat.com>
31205 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
31207 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
31209 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
31210 in the documentation.
31212 2004-10-04 Robert Dewar <dewar@gnat.com>
31214 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
31216 (Analyze_Block_Statement): Add circuitry to detect following dead code
31217 (Check_Unreachable_Code): Handle case of block exit
31219 2004-10-04 Robert Dewar <dewar@gnat.com>
31221 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
31222 (XMatchD): Avoid warning for Logic_Error call
31224 2004-10-04 Robert Dewar <dewar@gnat.com>
31226 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
31227 consider expressions buried within a procedure actual to be an actual.
31228 This caused some blowups with uses of packed slices within a procedure
31231 2004-10-04 Robert Dewar <dewar@gnat.com>
31233 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
31234 longer need to be initialized to zero.
31235 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
31236 initialized to zero.
31238 * checks.adb (Expr_Known_Valid): Packed arrays are now always
31239 considered valid, even if the representation is modular. That's correct
31240 now that we no longer initialize packed modular arrays to zero.
31242 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
31243 suffixes. These are now documented as the only cases in which the
31244 debugger ignores outer records.
31245 Previously, the spec allowed arbitrary suffixes for this purpose.
31246 Change name of LJM to JM for packed array pad records
31247 Create separate section on packed array handling, and add a whole new
31248 set of comments to this section describing the situation with packed
31249 modular types and justification requirements depending on endianness.
31251 2004-10-04 Robert Dewar <dewar@gnat.com>
31253 * a-except.adb: Add a comment for last change
31255 * einfo.ads: Minor spelling correction in comment
31257 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
31259 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
31262 * sem_util.ads: Minor comment update
31264 2004-10-04 Ed Schonberg <schonberg@gnat.com>
31266 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
31267 Inline_Always when in Configurable_Run_Time mode.
31269 * sem_prag.adb (Process_Convention): If entity is an inherited
31270 subprogram, apply convention to parent subprogram if in same scope.
31271 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
31272 when in Configurable_Run_Time mode.
31274 2004-10-04 Ed Schonberg <schonberg@gnat.com>
31276 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
31277 class_wide type after component list has been inherited.
31279 2004-10-04 Ed Schonberg <schonberg@gnat.com>
31281 * sem_ch12.adb (Check_Generic_Actuals): New predicate
31282 Denotes_Previous_Actual, to handle properly the case of a private
31283 actual that is also the component type of a subsequent array actual.
31284 The visibility status of the first actual is not affected when the
31285 second is installed.
31286 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
31287 make fully recursive the treatment of formals of packages declared
31289 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
31290 the above on exit from an instantiation.
31291 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
31292 current instantiation which is now complete.
31293 (Analyze_Package_Instantiation): No instantiated body is needed if the
31294 main unit is generic. Efficient, and avoid anomalies when a instance
31295 appears in a package accessed through rtsfind.
31297 2004-10-04 Ed Schonberg <schonberg@gnat.com>
31299 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
31300 do not generate a declaration for a temporary if the call is part of a
31301 library-level instantiation.
31303 2004-10-04 Ed Schonberg <schonberg@gnat.com>
31305 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
31306 searching for a limited component to flag.
31308 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
31309 expansion of Input, to account for the fact that the implicit call
31310 generated by the attribute reference must freeze the user-defined
31311 stream subprogram. This is only relevant to 'Input, because it can
31312 appear in an object declaration, prior to the body of the subprogram.
31314 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
31315 expansion can proceed and further errors uncovered.
31316 (Minor clean up): Fix cases of using | instead of \ for continuation
31319 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31321 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
31323 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
31324 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
31325 Use gcc_assert and gcc_unreachable.
31327 * decl.c (gnat_to_gnu_entity, case object): Check and process a
31328 specified alignment before validating size.
31329 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
31330 stripped-down declaration for the type of the inner field when making
31333 * utils.c (finish_record_type): Do not compute the size in units
31334 incrementally. Instead compute it once for the rep clause case.
31335 Use gcc_assert and gcc_unreachable.
31337 2004-10-04 Vincent Celier <celier@gnat.com>
31339 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
31341 (Is_Valid_Path_Name): Take '/' as a directory separator.
31343 2004-10-04 Vincent Celier <celier@gnat.com>
31345 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
31346 (Extended_Project) only if Extended_Project is defined, to avoid
31348 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
31350 (Parse_Single_Project): Ditto.
31352 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
31353 Add_To_Project_Path for virtual projects.
31355 2004-10-04 Vincent Celier <celier@gnat.com>
31357 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31358 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
31359 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
31360 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
31361 parameter Options_2.
31363 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
31364 Build_Dynamic_Library with an empty Options_2.
31366 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
31369 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
31370 directory separator, if any.
31371 (Gprmake): Do not allow mains on the command line for library projects.
31372 Do not attempt to link when the project is a library project.
31373 (Library_Opts): New table to store Library_Options.
31374 (Build_Library): If Library_Options is specified, pass these options
31375 when building a shared library.
31377 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
31379 * s-tposen.adb (Service_Entry): The object must be always unlocked at
31380 the end of this procedure now that the unlock operation was inserted
31383 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
31385 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
31386 corresponding to the Preallocated_Stacks flags in System.
31387 (Get_Target_Parameters): Including the processing for
31388 Preallocated_Stacks.
31390 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
31391 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
31392 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
31393 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
31394 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
31395 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
31396 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
31397 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
31398 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
31399 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
31400 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
31401 used to signal whether the compiler creates the required stacks and
31402 descriptors for the different tasks (when True) or it is done by the
31403 underlying operating system at run time (when False).
31404 It is initially set to False in all targets.
31406 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
31407 if it is supported by the target.
31408 (Make_Task_Create_Call): Pass the stack address if it has been
31409 previously created. Otherwise pass a Null_Address.
31411 * snames.adb: Add _stack.
31413 * snames.ads: Add Name_uStack. Required to allow the expander to
31414 statically allocated task stacks.
31416 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
31417 Stack_Address argument.
31418 Check that its value is equal to Null_Address because this target does
31419 not support the static stack allocation.
31421 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
31423 * usage.adb: Change "pragma inline" to "pragma Inline" in information
31426 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
31428 * exp_dist.adb: Split declaration of asynchronous flag out of
31429 Add_RACW_Read_Attribute.
31430 Minor reformatting for better alignment with PolyORB version.
31431 Store the entity for the asynchronous flag of an RACW, rather than the
31432 expression, in the asynchronous flags table. This will allow this flag
31433 to be used in other subprograms beside Add_RACW_Read_Attribute.
31435 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
31437 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
31438 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
31439 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
31440 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
31441 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
31442 sockets constant MSG_NOSIGNAL (Linux-specific).
31443 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
31444 all Send operations.
31445 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
31446 from trigerring SIGPIPE.
31447 Rename components to avoid clash with Ada 2005 possible reserved
31449 (Check_Selector): When the select system call returns with an error
31450 condition, propagate Socket_Error to the caller.
31452 2004-10-01 Jan Hubicka <jh@suse.cz>
31454 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
31456 2004-09-23 Robert Dewar <dewar@gnat.com>
31459 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
31460 instead do this at freeze time (we won't do it if there is an address
31462 Change "pragma inline" to "pragma Inline" in information and error
31464 Minor reformatting.
31466 * freeze.adb (Check_Address_Clause): Remove previous change, not the
31467 right way of doing things after all.
31468 (Freeze_Entity): For object, set Is_Public for imported entities
31469 unless there is an address clause present.
31471 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
31473 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
31474 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
31475 ensures proper handling of types with rep clauses, which might have
31476 their TYPE_SIZE set already.
31478 2004-09-21 Robert Dewar <dewar@gnat.com>
31480 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
31481 packed array types in both little- and big-endian cases. This change
31482 ensures that we no longer count on the unused bits being initialized
31483 for such types (and in particular ensures that equality testing will
31484 only read the relevant bits).
31485 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
31486 These changes mean that we no longer need to initialize small packed
31488 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
31489 optimization to an LJM field as to its parent field.
31491 * ada-tree.h, trans.c, utils.c, utils2.c:
31492 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
31494 2004-09-20 Jan Hubicka <jh@suse.cz>
31496 * utils.c (gnat_finalize): Remove.
31497 (end_subprog_body): Directly call cgraph_finalize_function;
31498 do not lower the nested functions.
31500 2004-09-20 Robert Dewar <dewar@gnat.com>
31503 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
31504 if an address clause is present, since that means that the Import
31507 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
31509 * 5tsystem.ads: Removed, no longer used.
31511 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
31512 Zack Weinberg <zack@codesourcery.com>
31514 * ada-tree.def: Use tree_code_class enumeration constants
31515 instead of code letters.
31516 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
31517 Update for new tree-class enumeration constants.
31519 2004-09-17 Vincent Celier <celier@gnat.com>
31521 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
31522 capabilities of the general project manager.
31524 2004-09-09 Vincent Celier <celier@gnat.com>
31526 * a-direct.ads: Add pragma Ada_05
31527 (Directory_Entry_Type): Give default value to component Kind to avoid
31528 not initialized warnings.
31530 * a-direct.adb (Current_Directory): Remove directory separator at the
31532 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
31533 an existing directory.
31534 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
31535 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
31536 Convert the result to File_Size.
31538 * prj.ads: (Project_Error): New exception
31540 * prj-attr.adb: Except in procedure Initialize, Fail comes from
31541 Prj.Com, not from Osint.
31542 (Attrs, Package_Attributes): Tables moved to private part of spec
31543 (Add_Attribute, Add_Unknown_Package): Moved to new child package
31545 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
31546 Prj.Project_Error after call to Fail.
31547 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
31548 Fail. Check that package name is not already in use.
31550 * prj-attr.ads: Comment updates to indicate that all subprograms may be
31551 used by tools, not only by the project manager, and to indicate that
31552 exception Prj.Prj_Error may be raised in case of problem.
31553 (Add_Unknown_Package, Add_Attribute): Moved to new child package
31555 (Attrs, Package_Attributes): Table instantiations moved from the body to
31556 the private part to be accessible from Prj.Attr.PM body.
31558 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
31559 from new package Prj.Attr.PM.
31560 (Parse_Attribute_Declaration): Call Add_Attribute from new package
31563 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
31565 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
31566 instead of Elaboration_Checks).
31568 * a-calend.adb: Minor reformatting
31570 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31572 * gigi.h (maybe_pad_type): New declaration.
31573 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
31575 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
31577 * cuintp.c: Convert to use buildN.
31579 * decl.c (maybe_pad_type): No longer static.
31580 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
31582 Convert to use buildN.
31584 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
31585 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
31586 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
31588 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
31589 (gnat_gimplify_expr, case ADDR_EXPR): New case.
31590 Convert to use buildN.
31592 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
31593 TREE_READONLY for const.
31594 Convert to use buildN.
31596 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
31597 (create_var_decl): Refine when TREE_STATIC is set.
31598 Convert to use buildN.
31600 2004-09-09 Gary Dismukes <dismukes@gnat.com>
31602 * gnat_ugn.texi: Delete text relating to checking of ali and object
31605 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
31608 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
31610 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
31611 pragmas recognized by GNAT.
31613 * gnat_rm.texi: Document pragma Detect_Blocking.
31615 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
31616 raise Program_Error if called from a protected operation.
31618 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
31619 the protected action nesting level.
31620 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
31621 protected action nesting level.
31622 (Unlock): When pragma Detect_Blocking is active decrease the protected
31623 action nesting level.
31625 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
31626 Protected_Action_Nesting.
31628 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
31629 Common_ATCB record. It contains the dynamic level of protected action
31630 nesting for each task. It is needed for checking whether potentially
31631 blocking operations are called from protected operations.
31632 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
31633 Detect_Blocking is active or not in the partition.
31635 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
31636 raise Program_Error if called from a protected operation.
31637 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
31638 Program_Error if called from a protected operation.
31639 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
31640 Program_Error if called from a protected operation.
31642 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
31643 raise Program_Error if called from a protected operation.
31645 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
31646 raise Program_Error if called from a protected operation, and increase
31647 the protected action nesting level.
31648 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
31649 Program_Error if called from a protected operation, and increase the
31650 protected action nesting level.
31651 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
31652 protected action nesting level.
31654 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
31655 raise Program_Error if called from a protected operation, and increase
31656 the protected action nesting level.
31657 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
31658 Program_Error if called from a protected operation, and increase the
31659 protected action nesting level.
31660 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
31661 raise Program_Error if called from a protected operation.
31662 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
31663 active, raise Program_Error if called from a protected operation.
31664 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
31665 protected action nesting level.
31667 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
31668 insertion of the statement raising Program_Error. The run time
31669 contains the required machinery for handling that.
31671 * sem_util.ads: Change comment associated to procedure
31672 Check_Potentially_Blocking_Operation.
31673 This procedure does not insert a call for raising the exception because
31674 that is currently done by the run time.
31676 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
31678 * init.c: Add the global variable __gl_detect_blocking that indicates
31679 whether pragma Detect_Blocking is active (1) or not (0). Needed for
31680 making the pragma available at run time.
31681 (__gnat_set_globals): Pass and update the detect_blocking parameter.
31683 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
31684 pragma Detect_Blocking is active.
31686 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
31688 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
31689 DB is found in the ali file. Any unit compiled with pragma
31690 Detect_Blocking active forces its effect in the whole partition.
31692 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
31693 Detect_Blocking is active and delay is called from a protected
31696 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
31697 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
31698 Detect_Blocking is active (0 otherwise).
31699 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
31700 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
31703 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
31705 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
31706 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
31709 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
31710 (Register_Receiving_Stub): Add Subp_Info formal parameter.
31711 Update API in placeholder implemetation of s-parint to reflect changes
31712 in distribution runtime library.
31714 * sem_ch3.adb (Expand_Derived_Record): Rename to
31715 Expand_Record_Extension.
31717 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
31718 primitive operations of potentially distributed object types that have
31719 non-controlling anonymous access formals.
31721 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
31723 New implementation of expansion for remote access-to-subprogram types,
31724 based on the RACW infrastructure.
31725 This version of sem_dist is compatible with PolyORB/DSA as well as
31728 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
31729 Asynchrronous that applies to a remote access-to-subprogram type, mark
31730 the underlying RACW type as asynchronous.
31732 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
31733 __gnat_using_gnu_linker to 1.
31735 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
31736 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
31737 GNAT.Perfect_Hash_Generators, and remove the empty
31738 GNAT.Perfect_Hash package.
31740 * atree.adb: Minor reformatting
31742 * exp_ch3.adb (Expand_Derived_Record): Rename to
31743 Expand_Record_Extension.
31744 (Build_Record_Init_Proc.Build_Assignment): The default expression in
31745 a component declaration must remain attached at that point in the
31746 tree so New_Copy_Tree copies it if the enclosing record type is derived.
31747 It is therefore necessary to take a copy of the expression when building
31748 the corresponding assignment statement in the init proc.
31749 As a side effect, in the case of a derived record type, we now see the
31750 original expression, without any rewriting that could have occurred
31751 during expansion of the ancestor type's init proc, and we do not need
31752 to go back to Original_Node.
31754 * exp_ch3.ads (Expand_Derived_Record): Rename to
31755 Expand_Record_Extension.
31757 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
31758 Returns the RACW type used to implement a remote access-to-subprogram
31760 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
31761 New subprograms. Used to create a proxy tagged object for a remote
31762 subprogram. The proxy object is used as the designated object
31763 for RAS values on the same partition (unless All_Calls_Remote applies).
31764 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
31765 System.Partition_Interface.Get_Unique_Remote_Pointer.
31766 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
31767 Renamed from Add_RAS_*_Attribute.
31768 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
31770 New implementation of expansion for remote access-to-subprogram types,
31771 based on the RACW infrastructure.
31773 * exp_dist.ads (Copy_Specification): Update comment to note that this
31774 function can copy the specification from either a subprogram
31775 specification or an access-to-subprogram type definition.
31777 2004-09-09 Ed Schonberg <schonberg@gnat.com>
31779 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
31780 in an instance, between an explicit subprogram an one inherited from a
31781 type derived from an actual.
31783 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
31784 add a polling call if the subprogram is to be inlined by the back-end,
31785 to avoid repeated calls with multiple inlinings.
31787 * checks.adb (Apply_Alignment_Check): If the expression in the address
31788 clause is a call whose name is not a static entity (e.g. a dispatching
31789 call), treat as dynamic.
31791 2004-09-09 Robert Dewar <dewar@gnat.com>
31793 * g-trasym.ads: Minor reformatting
31795 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
31796 packed arrays, since unused bits are expected to be zero for a
31799 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
31801 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
31804 2004-09-09 Pascal Obry <obry@gnat.com>
31806 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
31807 enable map file generation. Add the right option to generate the map
31808 file if Map_File is set to True.
31810 * gnatdll.adb (Gen_Map_File): New variable.
31811 (Syntax): Add info about new -m (Map_File) option.
31812 (Parse_Command_Line): Add support for -m option.
31813 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
31814 Minor reformatting.
31816 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
31818 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
31819 new gnatdist implementation.
31820 Define a subpackage isolating the output routines specific to this
31823 2004-09-09 Joel Brobecker <brobecker@gnat.com>
31825 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
31827 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
31829 2004-09-09 Cyrille Comar <comar@act-europe.fr>
31831 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
31834 * opt.ads: Add Ada_Version_Runtime constant used to decide which
31835 version of the language is used to compile the run time.
31837 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
31839 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
31840 of variable length temporaries for function return now that the
31841 back-end and gigi support it.
31843 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31845 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
31847 * trans.c (struct stmt_group): Delete field GLOBAL.
31848 (gnat_init_stmt_group): Do not initialize it.
31849 (call_to_gnu): Use save_expr, not protect_multiple_eval.
31850 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
31851 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
31852 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
31853 (start_stmt_group): Likewise.
31854 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
31856 * utils2.c (ggc.h): Include.
31857 (build_call_raise): Call build_int_cst, not build_int_2.
31859 * utils.c (gnat_init_decl_processing): Fix arg to
31860 build_common_tree_nodes.
31861 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
31862 (gnat_define_builtin): Set built_in_decls.
31863 (init_gigi_decls): Call build_int_cst, not build_int_2.
31865 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
31866 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
31867 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
31868 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
31869 SET_TYPE_MODULE): Use them.
31870 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
31871 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
31872 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
31873 SET_TYPE_ADA_SIZE): Likewise.
31874 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
31875 (DECL_CONST_CORRESPONDING_VAR,
31876 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
31877 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
31878 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
31879 (TYPE_RM_SIZE_NUM): New macro.
31880 (TYPE_RM_SIZE): Modified to use above.
31882 * cuintp.c: (build_cst_from_int): New function.
31883 (UI_To_gnu): Use it.
31885 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
31886 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
31887 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
31888 MIN_EXPR for the size, copy it into new.
31890 2004-09-01 Robert Dewar <dewar@gnat.com>
31892 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
31893 packed indexed component where array is an IN OUT formal. This
31894 generated garbage code previously.
31896 * gnat_ugn.texi: Document -fverbose-asm
31898 * gnat-style.texi: Minor updates (note that boolean constants and
31899 variables are joined with AND/OR rather than short circuit forms).
31901 2004-09-01 Ed Schonberg <schonberg@gnat.com>
31903 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
31904 it is an upward conversion of an untagged type with no representation
31907 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
31909 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
31910 System.Partition_Interface.
31912 * checks.adb (Apply_Access_Checks): Do not generate checks when
31913 expander is not active (but check for unset reference to prefix of
31916 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
31917 pragma Debug as an if statement with a constant condition, for
31918 consistent treatment of entity references contained within the
31919 enclosed procedure call.
31921 2004-09-01 Vincent Celier <celier@gnat.com>
31923 * bindgen.adb: (Set_EA_Last): New procedure
31924 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
31926 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
31927 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
31928 linked without errors.
31929 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
31931 (Gen_Exception_Table_C): Correct same bugs
31933 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
31935 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
31936 on Windows, make sure that the drive letter is in upper case.
31938 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
31939 Windows, when the drive letter is added and Case_Sensitive is True, the
31940 drive letter is forced to upper case.
31942 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
31943 to Options_2 for the call to MLib.Utl.Gcc.
31945 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
31946 directory separator when defining BASE_DIR.
31948 2004-09-01 Pascal Obry <obry@gnat.com>
31950 * gprcmd.adb (Extend): Do not output trailing directory separator. This
31951 is not needed and it confuses Windows GNU/make which does not report
31952 directory terminated by a slash as a directory.
31953 (gprcmd): Idem for "pwd" internal command.
31955 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31956 target names rewrite to fix regressions with recent version of
31957 GNU/make. Starting with GNU/make 3.80 the pipe character was not
31958 handled properly anymore.
31960 2004-09-01 Andreas Schwab <schwab@suse.de>
31962 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31963 * raise.c [!IN_RTS]: Undef abort.
31965 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
31967 * utils2.c (build_allocator): Use ssize_int.
31969 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31971 2004-08-27 Andreas Schwab <schwab@suse.de>
31973 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31975 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31976 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31978 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31980 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31982 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31983 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31984 * utils.c (init_gigi_decls): Likewise.
31985 * utils2.c (build_call_raise, build_allocator): Likewise.
31987 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
31989 * utils.c (gnat_init_decl_processing): Adjust
31990 build_common_tree_nodes call.
31992 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
31994 * utils2.c (build_allocator): Use build_int_cst for negative
31997 2004-08-18 Richard Henderson <rth@redhat.com>
31999 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
32001 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
32003 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
32005 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
32006 (gnat_to_gnu): Likewise.
32008 2004-08-16 Pascal Obry <obry@gnat.com>
32010 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
32011 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
32012 option and not mdll anymore. Update comment.
32014 2004-08-16 Pascal Obry <obry@gnat.com>
32016 * bld.adb (Put_Include_Project): Properly handle directory separators
32019 2004-08-16 Ed Schonberg <schonberg@gnat.com>
32021 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
32022 decreasing the number of allocated junk nodes while searching for the
32023 appropriate subprogram.
32025 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
32027 * cuintp.c (UI_To_gnu): Use build_int_cst..
32028 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
32029 * utils.c (init_gigi_decls): Likewise.
32030 * utils2.c (build_call_raise): Likewise.
32032 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
32034 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
32035 for a global aliased object with a variable size and an unconstrained
32036 nominal subtype, pretend there is no initializer if the one we have is
32037 incomplete, and avoid referencing an inexistant component in there. The
32038 part we have will be rebuilt anyway and the reference may confuse
32039 further operations.
32041 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
32043 * einfo.ads: Minor reformatting
32045 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
32046 restrictions in the ALI if we only want to warn about violations.
32048 2004-08-13 Vincent Celier <celier@gnat.com>
32050 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
32051 when creating a new Unit_Record in table Units.
32053 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
32054 that are violated, if any.
32056 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
32057 add directory separator if path already ends with a directory separator.
32059 2004-08-13 Ed Schonberg <schonberg@gnat.com>
32061 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
32062 unit, this is an attempt to inline a construct that is not available in
32063 the current restricted mode, so abort rather than trying to continue.
32065 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
32066 discriminants that rename those of the parent, recover names of
32067 original discriminants for the constraint on the full view of the
32069 (Complete_Private_Subtype): Do not create a subtype declaration if the
32070 subtype is an itype.
32072 * gnat_rm.texi: Added section on implementation of discriminated
32073 records with default values for discriminants.
32075 2004-08-13 Ed Schonberg <schonberg@gnat.com>
32078 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
32079 the second operand is overloaded.
32081 2004-08-10 Richard Henderson <rth@redhat.com>
32083 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
32084 add __builtin_alloca.
32086 2004-08-10 Richard Henderson <rth@redhat.com>
32088 * config-lang.in (boot_language): Yes.
32090 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
32092 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
32093 from complaining on potential uninitialized reference.
32094 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
32095 new specification and test explicitly for non-zero return value.
32097 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
32098 returning C.int, to avoid using a derived boolean type.
32100 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
32101 Duplicate_Subexpr_No_Checks in preference to direct use of
32102 Remove_Side_Effects and New_Copy_Tree.
32103 Clear Comes_From_Source on prefix of 'Size attribute reference.
32105 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
32106 g-socthi-vxworks.adb: Change calls to
32107 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
32108 and test explicitly for non-zero return value.
32110 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
32111 (Is_Socket_In_Set): Declare imported function as returning C.int, to
32112 avoid using a derived boolean type.
32114 2004-08-09 Albert Lee <lee@gnat.com>
32116 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
32118 2004-08-09 Pascal Obry <obry@gnat.com>
32120 * gnat_ugn.texi: Document new way to build DLLs on Windows using
32121 GCC's -shared option.
32123 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
32124 Options_2 parameter (options put after object files).
32126 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
32128 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
32129 ignore overflows on low and high bounds of an index to also account for
32130 differences in signedness between sizetype and gnu_index_subtype.
32131 These are as legitimate as the ones caused by a lower TYPE_PRECISION
32134 2004-08-09 Robert Dewar <dewar@gnat.com>
32136 * s-solita.ads, s-solita.adb: Minor reformatting
32138 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
32139 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
32140 obsolescent section
32141 Add note that No_Implicit_Conditionals does not suppress
32142 run time constraint checks.
32144 * vms_conv.ads: Minor reformatting
32146 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
32147 and necessary for following change).
32148 (Mark): Return new format Mark_Id containing sec stack address
32149 (Release): Use sec stack address from Mark_Id avoiding Self call
32151 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
32152 pointer (cleanup and necessary for following change).
32153 Define Mark_Id as record containing address of secondary stack, that way
32154 Release does not need to find the stack again, decreasing the number of
32155 calls to Self and improving efficiency.
32157 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
32159 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
32160 case variable into the individual case branches when possible.
32162 * sem_ch11.adb: Minor reformatting
32164 * prj.ads: Correct spelling of suffixs
32166 * prj-nmsc.adb: Minor reformatting
32167 Correct spelling suffixs throughout (also in identifiers)
32169 * freeze.adb: Minor spelling correction
32171 * exp_ch2.adb: Cleanups to handling of Current_Value
32172 (no functional effect).
32174 * bld.adb: Correct spelling of suffixs
32176 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
32178 2004-08-09 Ed Schonberg <schonberg@gnat.com>
32181 * sem_ch7.adb (Install_Private_Declarations): In the body of the
32182 package or of a child, private entities are both immediately_visible
32185 2004-08-09 Ed Schonberg <schonberg@gnat.com>
32187 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
32188 there are no range checks on the value of the literal.
32190 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
32191 wrapped is the triggering alternative of an asynchronous select, action
32192 statements mustbe inserted before the select itself.
32194 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
32195 case where the prefix is a protected function call.
32196 (Resolve_Attribute, case 'Access): The attribute reference on a
32197 subprogram is legal in a generic body if the subprogram is declared
32200 2004-08-09 Vincent Celier <celier@gnat.com>
32202 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
32203 languages, otherwise building the library may fail with unresolved
32205 (Compile_Sources): Do not build libraries if -c switch is used
32207 * gnatlink.adb (Process_Args): New switches -M and -Mmap
32208 (Write_Usage): If map file creation is supported, output new switches
32210 (Gnatlink): When -M is specified, add the necessary switch(es) to the
32211 gcc call, when supported.
32213 * Makefile.in: Added indepsw.o to the object list for gnatlink
32214 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
32216 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
32217 indepsw.adb, indepsw.ads: New files.
32219 2004-08-09 Bernard Banner <banner@gnat.com>
32221 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
32223 * Makefile.in: add section for vxworks x86
32225 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
32227 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
32228 per-object constrained components where the discriminant is of an
32230 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
32231 the parent initialization procedure for derived Unchecked_Unions.
32232 Instead, derived Unchecked_Unions build their own initialization
32234 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
32235 Check the body of the subprogram for details.
32236 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
32237 functions for derived Unchecked_Union types by introducing a condition.
32238 Allow the creation of TSS equality functions for Unchecked_Unions.
32239 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
32240 Add formal parameter Discr to function signature. Discr is used to
32241 control the generated case statement for Unchecked_Union types.
32242 (Make_Eq_If): Rename formal parameter Node to E in function signature.
32244 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
32246 Check the body of the subprogram for details.
32247 (Expand_Composite_Equality): Augment composite type equality to include
32248 correct handling of Unchecked_Union components.
32249 (Expand_N_In): Add condition to detect illegal membership tests when the
32250 subtype mark is a constrained Unchecked_Union and the expression lacks
32251 inferable discriminants, and build a Raise_Program_Error node.
32252 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
32253 to detect types that contain components of unconstrained Unchecked_Union
32254 subtype. Add condition to detect equality between types that have an
32255 unconstrained Unchecked_Union component, and build a Raise_Program_Error
32256 node. Add condition to detect equality between Unchecked_Union types
32257 that lack inferable discriminants, and build a Raise_Program_Error node.
32258 Otherwise build a TSS equality function call.
32259 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
32260 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
32261 with the operand lacking inferable discriminants, and build a Raise_
32262 Program_Error node.
32263 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
32264 composite equality.
32265 (Has_Inferable_Discriminants): Implement new predicate for objects and
32266 expressions of Unchecked_Union type. Check the body of subprogram for
32268 (Has_Unconstrained_UU_Components): Add function
32269 Component_Is_Unconstrained_UU. It is used to detect whether a single
32270 component is of an unconstrained Unchecked_Union subtype. Add function
32271 Variant_Is_Unconstrained_UU. It is used to detect whether a single
32272 component inside a variant is of an unconstrained Unchecked_Union type.
32274 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
32275 inferred discriminant values. Add condition to generate a case
32276 statement with an inferred discriminant as the switch.
32277 (Make_Component_List_Assign): Introduce a Boolean flag that determines
32278 the behaviour of the subprogram in the presence of an Unchecked_Union.
32279 Add condition to trigger the usage of the inferred discriminant value
32280 as the generated case statement switch.
32281 (Make_Field_Assign): Introduce a Boolean flag that determines the
32282 behaviour of the subprogram in the presence of an Unchecked_Union. Add
32283 condition to trigger the usage of the inferred discriminant value as
32284 the right-hand side of the generated assignment.
32286 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
32287 parameter generation when dealing with Unchecked_Unions.
32289 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
32290 checks for Unchecked_Unions.
32292 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
32294 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
32295 Raise_Program_Error nodes for the execution of Read and Write
32296 attributes of Unchecked_Union types and the execution of Input and
32297 Output attributes of Unchecked_Union types that lack default
32298 discriminant values.
32300 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
32301 Unchecked_Union. Add procedure Check_Component. It is used to inspect
32302 per-object constrained components of Unchecked_Unions for being
32303 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
32304 check individual components withing a variant.
32306 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
32307 comparison of Unchecked_Unions.
32308 (Resolve_Equality_OP): Remove guard that prevents equality between
32311 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
32312 of component subtypes for Unchecked_Union components.
32313 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
32314 since it is the actual subtype.
32316 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
32317 pass of Unchecked_Union subtypes as generic actuals to formal types
32318 that lack known_discriminant_parts or that are derived Unchecked_Union
32319 types, and do nothing. In any other case, produce an error message.
32321 * sem_ch3.adb (Analyze_Component_Declaration): Add function
32322 Contains_POC. It determines whether a constraint uses the discriminant
32323 of an enclosing record type.
32324 Add condition to detect per-object constrained component and set the
32326 (Derived_Type_Declaration): Remove guard that prevents derivation from
32327 Unchecked_Union types.
32328 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
32331 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
32332 references to Unchecked_Union discriminants.
32334 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
32335 formal generation when dealing with Unchecked_Unions.
32336 (Set_Actual_Subtypes): Add condition to prevent generation of actual
32337 subtypes for Unchecked_Unions.
32339 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
32340 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
32341 completions of discriminated partial views by Unchecked_Unions and
32342 produce an error message.
32344 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32346 * trans.c (struct stmt_group): New field, GLOBAL.
32347 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
32348 (struct elab_info): New struct.
32349 (elab_info_list, gnu_elab_proc_stack): New variables.
32350 (Compilation_Unit_to_gnu): New procedure.
32351 (gigi): Call it and also handle elaboration procs we've saved.
32352 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
32353 global field from parent.
32354 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
32355 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
32356 (start_stmt_group): Initialize global field from parent.
32357 (add_decl_expr): Set to global for current statement group.
32358 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
32361 * utils.c (global_bindings_p): True when no current_function_decl; no
32362 longer check current_binding_level.
32364 2004-08-09 Ben Brosgol <brosgol@gnat.com>
32366 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
32369 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
32371 2004-08-06 Andreas Schwab <schwab@suse.de>
32373 * utils.c (gnat_define_builtin): Remove second parameter of
32375 (begin_subprog_body): Likewise.
32377 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
32379 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
32380 optimization, not supported by the tree-ssa back-end.
32382 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
32384 * s-mastop-irix.adb: Update comments.
32386 * a-except.adb (Exception_Information): Raise Constraint_Error if
32387 exception Id is Null_Id.
32388 This is required behavior, which is more reliably and clearly checked
32389 at the top level interface level.
32391 2004-07-26 Javier Miranda <miranda@gnat.com>
32393 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
32394 call if a component has no default_expression and the box is used.
32396 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
32397 default_expression and you use box, it behaves as if you had declared a
32398 stand-alone object.
32399 (Resolve_Record_Aggregate): If a component has no default_expression and
32400 you use box, it behaves as if you had declared a stand-alone object.
32402 * sem_ch10.adb (Install_Siblings): Do not make visible the private
32403 entities of private-with siblings.
32405 2004-07-26 Ed Schonberg <schonberg@gnat.com>
32407 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
32408 for a component of an itype, set the parent pointer for analysis,
32409 there is no list in which to insert it.
32411 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
32412 bona-fide renamings, not for inherited operations.
32414 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
32415 actual for a formal that is an access parameter, create local
32416 finalization list even if the expression is not an aggregate.
32418 2004-07-26 Ed Schonberg <schonberg@gnat.com>
32421 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
32422 Diagnose properly illegal subprogram renamings that are library units.
32424 2004-07-26 Ed Schonberg <schonberg@gnat.com>
32427 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
32428 conversion rewritten as an unchecked conversion, check that original
32429 expression is a variable.
32431 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
32432 unchecked_conversion, create new node rather than rewriting in place,
32433 to preserve original construct.
32435 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32437 * gigi.h (gnat_expand_body): Deleted.
32439 * Make-lang.in: (trans.o): Depends on function.h.
32441 * misc.c: (gnat_expand_body): Moved to here.
32443 * trans.c (gnat_expand_body_1): Deleted.
32444 (gnat_expand_body): Moved from here.
32445 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
32446 (add_stmt): Check for marked visited with global_bindings_p.
32447 (gnat_gimplify_expr, case COMPONENT_REF): New case.
32448 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
32450 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
32451 VIEW_CONVERT_EXPR if not operation type.
32453 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
32456 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
32457 changes: reformatting of negation operators, removing unneeded
32458 inequality comparison with zero, converting equality comparisons with
32459 zero to negations, changing int/0/1 to bool/false/true, replace calls
32460 to gigi_abort with abort, and various other similar changes.
32462 2004-07-26 Vincent Celier <celier@gnat.com>
32464 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
32467 * make.adb (Gnatmake): Fail when a library is not present and there is
32468 no object directory.
32470 * mlib-prj.adb (Check_Library): No need to check if the library needs
32471 to be rebuilt if there is no object directory, hence no object files
32472 to build the library.
32474 * opt.ads (Setup_Projects): New Boolean flag.
32476 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
32478 Create directory when Kind /= "" and in "gnat setup". Report error if
32479 directory cannot be created.
32480 (Ada_Check): Create library interface copy dir if it does not exist
32481 and we are in "gnat setup".
32482 (Find_Sources): No error if in "gnat setup" and no Ada sources were
32484 (Language_Independent_Check): Create object directory, exec directory
32485 and/or library directory if they do not exist and we are in
32488 * vms_conv.ads: (Command_Type): New command Setup.
32490 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
32492 * vms_data.ads: Add qualifiers/switches for new built-in command
32495 2004-07-25 Richard Henderson <rth@redhat.com>
32497 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
32498 DECL_IGNORED_P on RESULT_DECL.
32500 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
32502 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
32503 allocation and potentially overflowing update with
32504 Tailored_Exception_Information. Use the sec-stack free procedural
32505 interface to output Exception_Information instead.
32507 * a-except.adb (To_Stderr): New subprogram for character, and string
32508 version moved from a-exextr to be visible from other separate units.
32509 (Tailored_Exception_Information): Remove the procedural version,
32510 previously used by the default Last_Chance_Handler and not any more.
32511 Adjust various comments.
32513 * a-exexda.adb: Generalize the exception information procedural
32514 interface, to minimize the use of secondary stack and the need for
32515 local buffers when the info is to be output to stderr:
32516 (Address_Image): Removed.
32517 (Append_Info_Character): New subprogram, checking for overflows and
32518 outputing to stderr if buffer to fill is of length 0.
32519 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
32520 (Append_Info_Address, Append_Info_Exception_Name,
32521 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
32522 Append_Info_Basic_Exception_Traceback,
32523 Append_Info_Exception_Information): New subprograms.
32524 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
32525 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
32526 Exception_Info_Maxlength, Exception_Name_Length,
32527 Exception_Message_Length): New subprograms.
32528 (Exception_Information): Use Append_Info_Exception_Information.
32529 (Tailored_Exception_Information): Use
32530 Append_Info_Basic_Exception_Information.
32531 Export services for the default Last_Chance_Handler.
32533 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
32534 other separate units.
32536 2004-07-20 Vincent Celier <celier@gnat.com>
32538 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
32540 2004-07-20 Ed Schonberg <schonberg@gnat.com>
32542 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
32543 emit itype references for the designated types of component types that
32544 are declared outside of the full record declaration, and that may
32545 denote a partial view of that record type.
32547 2004-07-20 Ed Schonberg <schonberg@gnat.com>
32550 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
32551 which is the designated type in an access component declaration, to the
32552 list of incomplete dependents of the parent type, to avoid elaboration
32553 issues with out-of-scope subtypes.
32554 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
32555 full view of the parent.
32557 2004-07-20 Ed Schonberg <schonberg@gnat.com>
32560 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
32561 entities that are hidden, such as references to generic actuals
32562 outside an instance.
32564 2004-07-20 Javier Miranda <miranda@gnat.com>
32566 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
32567 support to the new notation.
32568 (Analyze_Selected_Component): Add call to Try_Object_Operation.
32570 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
32572 * s-taprob.adb: Adding the elaboration code required for initializing
32573 the tasking soft links that are common to the full and the restricted
32576 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
32577 restricted run time has been moved to the package
32578 System.Soft_Links.Tasking.
32580 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
32581 restricted run time has been moved to the package
32582 System.Soft_Links.Tasking.
32584 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
32586 * s-solita.ads, s-solita.adb: New files.
32588 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32590 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
32591 Case_Statement_to_gnu): Split off from gnat_to_gnu.
32592 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
32593 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
32594 Exception_Handler_to_gnu_zcx): Likewise.
32596 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
32598 * gigi.h (builtin_function): Declare.
32600 2004-07-15 Robert Dewar <dewar@gnat.com>
32602 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
32605 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
32606 access values as an example of a warning.
32608 * gnat_rm.texi: Document new attribute Has_Access_Values
32610 * gnat-style.texi: Document that box comments belong on nested
32613 * sem_util.ads (Has_Access_Values): Improved documentation
32615 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
32617 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
32618 (Process_Interface_Name): Call to this new procedure
32619 (Set_Extended_Import_Export_External_Name): Call to this new procedure
32621 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
32623 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
32625 * einfo.ads: Minor comment typo fixed
32627 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
32629 * snames.adb: Add _atcb.
32631 * snames.ads: Add Name_uATCB.
32633 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
32634 (in the expanded code) when using the restricted run time.
32636 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
32637 a in parameter in order to allow ATCBs to be preallocated (in the
32640 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
32641 order to allow ATCBs to be preallocated. In case of error, the ATCB is
32642 deallocated in System.Tasking.Stages.
32644 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
32645 order to allow ATCBs to be preallocated.
32647 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
32648 here. It was previously done in Initialize_ATCB.
32650 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
32652 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
32653 Restricted run time.
32655 * exp_ch3.adb: When using the Restricted run time, pass the
32656 preallocated Ada_Task_Control_Block when creating a task.
32658 2004-07-15 Ed Schonberg <schonberg@gnat.com>
32660 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
32661 function call that is itself an actual in an enclosing call, diagnose
32662 problem here rather than assuming that resolution will catch it.
32664 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
32665 the local copy of a generic unit for a formal package, and the generic
32666 is a child unit, install private part of ancestors before compiling
32667 private part of spec.
32669 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
32670 use scope entities rather than tree structures, to handle properly
32671 parent units that are instances rewritten as bodies for inlining
32674 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
32675 Remove_Parents): Handle properly a parent unit that is an
32676 instantiation, when the unit has been rewritten as a body for inlining
32679 * par.adb (Goto_List): Global variable to collect goto statements in a
32680 given unit, for use in detecting natural loops.
32682 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
32683 use in detecting natural loops.
32685 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
32686 backwards goto's, and rewrite as a infinite loop, to improve locality
32689 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
32690 subcomponent that includes an indexed reference, to prevent the
32691 generation of copies that would miscompile the desired assignment
32693 (Build_Task_Image_Decls): Add a numeric suffix to
32694 generated name for string variable, to avoid spurious conflicts with
32695 the name of the type of a single protected object.
32697 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
32698 loop with an explicit exit statement, to avoid generating an
32699 out-of-range value with 'Succ leading to spurious constraint_errors
32700 when compiling with -gnatVo.
32702 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
32704 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
32705 might not be analyzed yet, even if its Etype is already set (case of an
32706 unchecked conversion built using Unchecked_Convert_To, for example).
32707 If the prefix has already been analyzed, this will be a nop anyway.
32709 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
32710 controller type, or an assignment of a record type with controlled
32711 components, copy only user data, and leave the finalization chain
32712 pointers untouched.
32714 2004-07-15 Vincent Celier <celier@gnat.com>
32716 * make.adb (Collect_Arguments): Improve error message when attempting
32717 to compile a source not part of any project, when -x is not used.
32719 * prj.ads: (Defined_Variable_Kind): New subtype
32721 * prj-attr.adb (Register_New_Package): Two new procedures to register
32722 a package with or without its attributes.
32723 (Register_New_Attribute): Mew procedure to register a new attribute in a
32725 New attribute oriented subprograms: Attribute_Node_Id_Of,
32726 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
32727 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
32729 New package oriented subprograms: Package_Node_Id_Of,
32730 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
32732 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
32734 (Package_Node_Id): Now a private, self initialized type
32735 (Register_New_Package): New procedure to register a package with its
32737 New attribute oriented subprograms: Attribute_Node_Id_Of,
32738 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
32739 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
32741 New package oriented subprograms: Package_Node_Id_Of,
32742 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
32744 * prj-dect.adb (Parse_Attribute_Declaration,
32745 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
32747 * prj-makr.adb (Make): Parse existing project file before creating
32748 other files. Fail if there was an error during parsing.
32750 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
32751 new spec of Prj.Attr.
32753 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
32754 to new spec of Prj.Attr.
32756 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32758 * utils2.c: Fix typo in comment.
32760 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32762 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
32763 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
32765 2004-07-14 Andreas Schwab <schwab@suse.de>
32767 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
32769 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32771 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
32773 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
32776 * misc.c (gnat_types_compatible_p): New function.
32777 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
32778 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
32780 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
32781 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
32782 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
32783 (mark_visited): Don't mark dummy type.
32784 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
32785 parameter, we must remove any LJM building from GNU_NAME.
32786 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
32787 (pos_to_constructor): Use int_const_binop.
32788 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
32791 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
32792 (gnat_pushlevel): Set TREE_USE on BLOCK node.
32793 (gnat_install_builtins): Add __builtin_memset.
32795 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
32797 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
32798 for a renaming, stabilize the initialization expression if we are at a
32799 local level. At the local level, uses of the renaming may be performed
32800 by a direct dereference of the initializing expression, and we don't
32801 want possible variables there to be evaluated for every use.
32803 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
32804 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
32805 them on the way. Account for the fact that we may introduce side
32806 effects in the process.
32808 2004-07-13 Richard Henderson <rth@redhat.com>
32810 * misc.c (default_pass_by_ref): Use pass_by_reference.
32812 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
32814 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
32815 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
32817 2004-07-08 Richard Henderson <rth@redhat.com>
32819 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
32822 2004-07-06 Vincent Celier <celier@gnat.com>
32824 * vms_conv.ads: Minor reformatting.
32825 Alphabetical order for enumerated values of type Command_Type, to have
32826 the command in alphabetical order for the usage.
32828 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
32829 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
32831 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
32833 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
32834 (Add_Archive_Path): Only add the global archive if there is one.
32835 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
32836 or not any object file to put in the global archive, and don't build
32837 a global archive if there is none.
32838 (X_Switches): New table
32839 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
32840 in the X_Switches table, if any.
32841 (Initialize): Make sure the X_Switches table is empty
32842 (Scan_Arg): Record -X switches in table X_Switches
32844 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
32846 * make.adb: Minor comment fix
32848 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
32849 invoked with directory information, add the directory in front of the
32852 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
32853 invoked with directory information, add the directory in front of the
32856 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
32857 when Keep_Temporary_Files is False.
32858 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
32859 directory information, add the directory in front of the path.
32860 When not on VMS, handle new switch -dn before the command to set
32861 Keep_Temporary_Files to True.
32862 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
32865 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
32866 invoked with directory information, add the directory in front of the
32869 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
32871 * snames.ads, snames.adb (Name_Stub): New name for the distributed
32874 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
32875 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
32877 * g-socket.adb (To_Timeval): Fix incorrect conversion of
32878 Selector_Duration to Timeval for the case of 0.0.
32880 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
32881 documentation from Evolve_And_Then.
32883 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
32885 * s-taprop-tru64.adb, s-taprop-os2.adb,
32886 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
32888 2004-07-06 Robert Dewar <dewar@gnat.com>
32890 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
32891 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
32892 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
32893 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
32894 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
32895 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
32896 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
32897 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
32898 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
32899 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
32900 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
32901 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
32902 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
32903 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
32904 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
32905 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
32906 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
32907 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
32908 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
32909 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
32910 vms_data.ads: Minor reformatting,
32911 Fix bad box comment format.
32913 * gnat_rm.texi: Fix minor grammatical error
32915 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
32917 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
32918 more cases of discriminated records to be recognized as not needing a
32920 (Has_Access_Values): New function.
32922 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
32924 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
32925 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
32926 with LRM terminology).
32927 Change terminology in comments primitive type => elementary type.
32929 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32932 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
32933 parameters do not impose any requirements on the presence of a body.
32935 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32938 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
32939 compilation unit and is in an open scope at the point of instantiation,
32940 assume that a body may be present later.
32942 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32944 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
32945 Improve error message when specified size is not supported.
32947 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
32948 is never a primitive operation.
32950 2004-07-05 Andreas Schwab <schwab@suse.de>
32952 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32953 RECORD_OR_UNION_CHECK.
32954 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32956 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
32958 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32959 dependency on xgnatugn, instead build it via a submake.
32960 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32962 2004-07-04 Richard Henderson <rth@redhat.com>
32964 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32966 2004-07-01 Richard Henderson <rth@redhat.com>
32968 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32969 * utils.c (max_size): Likewise.
32971 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32973 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32974 and rest_of_type_compilation; add arg to create_*_decl.
32975 (annotate_decl_with_node): Deleted.
32976 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32977 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32978 (get_current_block_context, gnat_pushdecl): New declarations.
32979 (gnat_init_stmt_group): Likewise.
32980 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32981 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32982 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32983 (gnat_init): Call gnat_init_stmt_group.
32984 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32985 (gnu_pending_elaboration_list): Deleted.
32986 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32987 (gigi): Rearrange initialization calls and move some to last above.
32988 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32989 Delete calls to add_decl_expr; add arg to create_*_decl.
32990 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32991 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32992 begin_subprog_body and call it.
32993 Don't push and pop ggc context.
32994 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32995 (add_stmt): Remove handling of DECL_EXPR from here.
32996 If not in function, mark visited.
32997 (add_decl_expr): Put global at top level.
32998 Check for cases of DECL_INITIAL we have to handle here.
32999 (process_type): Add extra arg to create_type_decl.
33000 (build_unit_elab): Rework to just gimplify.
33001 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
33002 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
33003 (get_pending_elaborations, pending_elaborations_p): Likewise.
33004 (push_pending_elaborations, pop_pending_elaborations): Likewise.
33005 (get_elaboration_location, insert_elaboration_list): Likewise.
33006 (gnat_binding_level): Renamed from ada_binding_level.
33007 (init_gnat_to_gnu): Don't clear pending_elaborations.
33008 (global_bindings_p): Treat as global if no current_binding_level.
33009 (set_current_block_context): New function.
33010 (gnat_pushdecl): Renamed from pushdecl; major rework.
33011 All callers changed.
33012 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
33013 (finish_record_type): Call call pushdecl for stub decl.
33014 (function_nesting_depth): Deleted.
33015 (begin_subprog_body): Delete obsolete code.
33016 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
33018 2004-06-28 Robert Dewar <dewar@gnat.com>
33020 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33021 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
33022 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
33023 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
33024 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
33026 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
33027 deal with problem of inefficient slices on machines with strict
33028 alignment, when the slice is a component of a composite.
33030 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
33031 machines, we need the check there as well.
33033 2004-06-28 Ed Schonberg <schonberg@gnat.com>
33035 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
33036 determine safe copying direction for overlapping slice assignments
33037 when component is controlled.
33039 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
33040 formal derived type in the actual for a formal package are visible in
33041 the enclosing instance.
33043 2004-06-28 Ed Schonberg <schonberg@gnat.com>
33046 * sem_util.adb (Trace_Components): Diagnose properly an illegal
33047 circularity involving a private type whose completion includes a
33048 self-referential component.
33049 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
33050 renaming or an instantiation from an implicit derived operation.
33052 2004-06-28 Pascal Obry <obry@gnat.com>
33054 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
33056 (Library_File_Name_For): Idem.
33058 2004-06-28 Matthew Gingell <gingell@gnat.com>
33060 * g-traceb.ads: Add explanatory note on the format of addresses
33061 expected by addr2line.
33063 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
33065 * Makefile.in: Force debugging information on s-tasdeb.adb,
33066 a-except.adb and s-assert.adb needed by the debugger.
33068 2004-06-28 Vincent Celier <celier@gnat.com>
33070 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
33074 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
33076 * prj.adb: Minor reformatting
33077 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
33079 * prj.ads: Comment updates
33081 (Project_Data): Change Flag1 to Need_To_Build_Lib.
33082 Remove Flag2: not used.
33084 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
33087 * gnat_ugn.texi: Put a "null;" declaration in one project file example
33089 * gnat_rm.texi: Document Empty declarations "null;".
33091 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
33092 front of the linker options.
33093 (Link_Foreign): Put the global archives and the libraries in front of
33094 the linker options.
33096 2004-06-28 Javier Miranda <miranda@gnat.com>
33098 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
33099 (RTU_Loaded): Code cleanup
33100 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
33101 withed predefined units.
33103 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
33104 explicitly withed predefined units.
33105 Fix typo in comment
33107 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
33108 explicitly withed predefined units.
33110 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33112 * ada-tree.def (DECL_STMT): Deleted.
33113 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
33114 (DECL_STMT_VAR): Deleted.
33115 * decl.c: add_decl_stmt now add_decl_expr.
33116 * gigi.h: Likewise.
33117 * trans.c: Likewise.
33118 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
33119 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
33120 (add_stmt): Only handle padded type here.
33121 (add_stmt_with_node): Allow gnat_node to not be present.
33122 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
33123 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
33124 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
33125 make a SAVE_EXPR for the entire fat pointer.
33126 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
33127 (create_index_type): Make a DECL_EXPR.
33128 (end_subprog_body): Don't call allocate_struct_function here but
33131 2004-06-25 Pascal Obry <obry@gnat.com>
33133 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
33134 Relocatable from Build_Dynamic_Library call.
33136 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
33137 Relocatable are now synonym.
33139 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
33141 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
33142 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
33145 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
33146 Lib_Address and Relocatable.
33147 (Default_DLL_Address): Removed.
33149 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33150 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
33151 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
33152 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
33153 (Default_DLL_Address): Removed.
33155 * mlib-tgt-mingw.adb: Ditto.
33156 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
33158 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
33159 the initial thread stack size.
33161 * a-strmap.ads: Move package L to private part as it is not used in
33162 the spec. Found while reading code.
33164 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
33166 * tracebak.c: Introduce support for a GCC infrastructure based
33167 implementation of __gnat_backtrace.
33169 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
33170 any more. Use accessors instead. This eases maintenance and relaxes
33171 some alignment constraints.
33172 (_GNAT_Exception structure): Remove the Ada specific fields
33173 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
33175 (is_handled_by, __gnat_eh_personality): Replace component references to
33176 exception structure by use of the new accessors.
33178 * init.c (__gnat_initialize): Adjust comments to match the just
33179 reverted meaning of the -static link-time option.
33181 * adaint.c (convert_addresses): Arrange not to define a stub for
33182 mips-irix any more, as we now want to rely on a real version from a
33183 recent libaddr2line.
33185 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
33186 the personality routine can use them and not have to rely on a C
33187 counterpart of the record anymore. This simplifies maintenance and
33188 relaxes the constraint of having Standard'Maximum_Alignment match
33190 Update comments, and add a section on the common header alignment issue.
33192 2004-06-25 Geert Bosch <bosch@gnat.com>
33194 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
33195 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
33197 2004-06-25 Robert Dewar <dewar@gnat.com>
33199 * gnat_rm.texi: Fix section on component clauses to indicate that the
33200 restriction on byte boundary placement still applies for bit packed
33202 Add comment on stack usage from Initialize_Scalars
33204 * gnat_ugn.texi: Add documentation for -gnatyLnnn
33206 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
33207 limiting nesting level.
33209 * usage.adb: Add line for -gnatyLnnn switch
33211 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
33212 sem_ch13.adb, exp_aggr.adb: Minor reformatting
33214 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
33215 type as well as on the subtype. This corrects a problem in freeze in
33216 setting alignments of atomic types.
33218 * sem_eval.ads: Minor comment typo fixed
33220 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
33221 level. Minor reformatting.
33223 * fname.adb (Is_Predefined_File_Name): Require a letter after the
33224 minus sign. This means that file names like a--b.adb will not be
33225 considered predefined.
33227 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
33228 record Test new flag and give diagnostic for bad component clause.
33229 (Freeze_Entity): Set alignment of array from component alignment in
33230 cases where this is safe to do.
33232 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
33235 * cstand.adb: (Create_Standard): Set alignment of String to 1
33237 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
33239 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
33240 code in the common constrained array cases.
33242 * a-storio.adb: Change implementation to avoid possible alignment
33243 problems on machines requiring strict alignment (data should be moved
33244 as type Buffer, not type Elmt).
33246 * checks.adb (Apply_Array_Size_Check): Improve these checks by
33247 killing the overflow checks which we really do not need (64-bits is
33250 2004-06-25 Vincent Celier <celier@gnat.com>
33252 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
33253 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
33254 inconditionally for the main project.
33255 (Recursive_Add_Archives.Add_Archive_Path): New procedure
33256 (Link_Executables.Check_Time_Stamps): New procedure
33257 (Link_Executables.Link_Foreign): New procedure
33258 Changes made to reduce nesting level of this package
33259 (Check): New procedure
33260 (Add_Switches): When not in quiet output, check that a switch is not
33261 the concatenation of several valid switches. If it is, issue a warning.
33262 (Build_Global_Archive): If the global archive is rebuilt, linking need
33264 (Compile_Sources): Rebuilding a library archive does not imply
33265 rebuilding the global archive.
33266 (Build_Global_Archive): New procedure
33267 (Build_Library): New name for Build_Archive, now only for library
33269 (Check_Archive_Builder): New procedure
33270 (Create_Global_Archive_Dependency_File): New procedure
33271 (Gprmake): Call Build_Global_Archive before linking
33272 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
33274 (Scan_Arg): Display the Copyright notice when -v is used
33276 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
33279 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
33281 Add new GNAT LIST qualifier /FILES=
33282 Added qualifier /DIRECTORY= to GNAT METRIC
33283 Added qualifier /FILES= to GNAT METRIC
33284 Added qualifier /FILES to GNAT PRETTY
33286 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
33287 to take into account both versions of the switch.
33289 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
33290 always be the last switch to the gcc driver. Disable switch storing so
33291 that switches automatically added by the gcc driver are not put in the
33294 * prj.adb (Project_Empty): Take into account changes in components of
33297 * prj.ads (Languages_Processed): New enumaration value All_Languages.
33299 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
33300 used. Split Boolean component Ada_Sources_Present in two Boolean
33301 components Ada_Sources_Present and Other_Sources_Present.
33304 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
33305 instead of Sources_Present.
33306 (Set_Ada_Paths.Add.Recursive_Add): Ditto
33308 * prj-nmsc.adb: Minor reformatting
33309 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
33310 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
33311 Check_Ada_Naming_Scheme.
33312 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
33315 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
33317 Make sure that all cycles where there is at least one "limited with"
33319 (Parse_Single_Project): New Boolean parameter In_Limited
33321 * prj-proc.adb (Recursive_Check): When Process_Languages is
33322 All_Languages, call first Prj.Nmsc.Ada_Check, then
33323 Prj.Nmsc.Other_Languages_Check.
33325 * prj-proc.adb (Process): Use Ada_Sources_Present or
33326 Other_Sources_Present (instead of Sources_Present) depending on
33329 * lang-specs.h: Keep -g and -m switches in the same order, and as the
33332 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
33333 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
33335 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
33338 * lib.ads (Disable_Switch_Storing): New procedure.
33340 * make.adb: Modifications to reduce nesting level of this package.
33341 (Check_Standard_Library): New procedure
33342 (Gnatmake.Check_Mains): New procedure
33343 (Gnatmake.Create_Binder_Mapping_File): New procedure
33344 (Compile_Sources.Compile): Add switch -gnatez as the last option
33345 (Display): Never display -gnatez
33347 * Makefile.generic:
33348 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
33350 * gnatcmd.adb (Check_Project): New function
33351 (Process_Link): New procedure to reduce nesting depth
33352 (Check_Files): New procedure to reduce the nesting depth.
33353 For GNAT METRIC, include the inherited sources in extending projects.
33354 (GNATCmd): When GNAT LS is invoked with a project file and no files,
33355 add the list of files from the sources of the project file. If this list
33356 is too long, put it in a temp text files and use switch -files=
33357 (Delete_Temp_Config_Files): Delete the temp text file that contains
33358 a list of source for gnatpp or gnatmetric, if one has been created.
33359 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
33360 in the project file is too large, create a temporary text file that
33361 list them and pass it to the tool with "-files=<temp text file>".
33362 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
33364 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
33365 generated file is in not in Ada.
33367 * gnatls.adb: Remove all parameters And_Save that are no longer used.
33368 (Scan_Ls_Arg): Add processing for -files=
33369 (Usage): Add line for -files=
33371 * g-os_lib.adb (On_Windows): New global constant Boolean flag
33372 (Normalize_Pathname): When on Windows and the path starts with a
33373 directory separator, make sure that the resulting path will start with
33376 * clean.adb (Clean_Archive): New procedure
33377 (Clean_Project): When there is non-Ada code, delete the global archive,
33378 the archive dependency files, the object files and their dependency
33379 files, if they exist.
33380 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
33382 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
33384 * sinfo.ads: Fix typo in comment.
33386 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
33387 the TSS for remote access-to-subprogram types, since these TSS are
33388 always present once the type has been analyzed.
33389 (RAS_E_Dereference): Same.
33391 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
33392 reference raises Bad_Attribute, mark the reference as analyzed so the
33393 node (and any children resulting from rewrites that could have occurred
33394 during the analysis that ultimately failed) is not analyzed again.
33396 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
33398 * exp_dist.adb: Minor comment fix.
33400 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
33401 type is an anonymous access type, no unchecked deallocation of the
33402 allocated object can occur. If the object is controlled, attach it with
33403 a count of 1. This allows attachment to the Global_Final_List, if
33404 no other relevant list is available.
33405 (Get_Allocator_Final_List): For an anonymous access type that is
33406 the type of a discriminant or record component, the corresponding
33407 finalisation list is the one of the scope of the type.
33409 2004-06-25 Ed Schonberg <schonberg@gnat.com>
33411 * sem_ch3.adb (Replace_Type): When computing the signature of an
33412 inherited subprogram, use the first subtype if the derived type
33413 declaration has no constraint.
33415 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
33416 before applying previous optimization. Minor code cleanup.
33418 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
33419 placed at the beginning of an unpacked record without explicit
33420 alignment, a slice of it will be aligned and does not need a copy when
33423 2004-06-25 Ed Schonberg <schonberg@gnat.com>
33427 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
33428 reference is written with expressions mimicking parameters.
33430 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
33433 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
33434 STEP 2a. The constraints of a full type declaration of a derived record
33435 type are checked for conformance with those declared in the
33436 corresponding private extension declaration. The message
33437 "not conformant with previous declaration" is emitted if an error is
33440 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
33442 * g-traceb.ads: Document the need for -E binder switch in the spec.
33444 * g-trasym.ads: Document the need for -E binder switch in the spec.
33446 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
33448 * sem_prag.adb: Add handling of pragma Detect_Blocking.
33450 * snames.h, snames.ads, snames.adb: Add entry for pragma
33453 * s-rident.ads: Change reference to pragma Detect_Blocking.
33455 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
33458 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
33459 to indicate whether pragma Detect_Blocking is active.
33461 * par-prag.adb: Add entry for pragma Detect_Blocking.
33463 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
33464 of not handling WITH.
33465 Note that this replaces the previous update which was incorrect.
33467 2004-06-25 Javier Miranda <miranda@gnat.com>
33469 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
33470 use-clauses to have a clean environment.
33472 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
33473 the installation of the use-clauses to stablish a clean environment in
33474 case of compilation of a separate unit; otherwise the call to
33475 use_one_package is protected by the barrier Applicable_Use.
33477 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
33478 the installation of the use-clauses to stablish a clean environment in
33479 case of compilation of a separate unit.
33480 (End_Use_Clauses): Minor comment cleanup.
33482 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
33484 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
33486 2004-06-23 Richard Henderson <rth@redhat.com>
33488 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
33490 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33492 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
33493 now bool instead of int.
33494 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
33495 * trans.c (gnu_switch_label_stack): New function.
33496 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
33497 elaboration of renamed entity returns.
33498 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
33499 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
33500 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
33501 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
33502 DECL_SIZE_UNIT and simplify variable-sized case.
33503 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
33504 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
33505 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
33506 (build_unit_elab): Disable for now.
33507 * utils.c (mark_visited): New function.
33508 (pushdecl): Walk tree to call it for global decl.
33509 (update_pointer_to): Update all variants of pointer and ref types.
33510 Add arg to COMPONENT_REF.
33511 (convert): Likewise.
33512 Move check for converting between variants lower down.
33513 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
33514 (build_allocator): Don't force type of MODIFY_EXPR.
33515 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
33516 put_var_into_stack.
33518 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33520 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
33521 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
33522 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
33524 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
33525 all callers changed.
33526 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
33527 the way that EXIT_STMT finds the loop label.
33528 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
33529 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
33530 (add_stmt): Use annotate_with_locus insted of setting directly.
33531 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
33532 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
33533 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
33534 (build_vms_descriptor): Add extra args to ARRAY_REF.
33535 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
33536 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
33538 (build_binary_op): Don't make explicit CONVERT_EXPR.
33539 Add extra rgs to ARRAY_REF.
33541 2004-06-14 Pascal Obry <obry@gnat.com>
33543 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
33544 Windows. Fix minor typo.
33546 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
33547 which is now supported on Windows. With this implementation using the
33548 Library Project feature is no different on Windows than on UNIX.
33550 2004-06-14 Vincent Celier <celier@gnat.com>
33552 * makegpr.adb (Compile_Sources): Nothing to do when there are no
33555 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
33557 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
33558 found, show the project name and the path of the previously parsed
33561 2004-06-14 Ed Schonberg <schonberg@gnat.com>
33563 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
33564 array, avoid copying the actual before the call.
33566 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
33568 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
33569 Instead, allocate memory on worst-case alignment assumptions, and then
33570 return an aligned address within the allocated zone.
33572 2004-06-14 Robert Dewar <dewar@gnat.com>
33574 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
33575 elab entities in predefined units in No_Run_Time_Mode.
33576 (Gen_Adainit_C): Same fix
33577 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
33578 units in No_Run_Time_Mode
33579 (Gen_Elab_Calls_C): Same fix
33581 * symbols-vms-alpha.adb: Minor reformatting
33583 * g-debpoo.ads: Minor reformatting
33585 * lib.adb (In_Same_Extended_Unit): Version working on node id's
33587 * lib.ads (In_Same_Extended_Unit): Version working on node id's
33589 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
33592 * make.adb: Minor reformatting
33594 * par-ch12.adb: Minor reformatting
33596 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
33598 * prj-strt.adb: Minor reformatting
33600 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
33603 * sem_attr.adb: Minor reformatting
33605 * sem_ch7.adb: Minor reformatting
33607 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
33608 for type in the same unit as the object declaration.
33610 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
33611 static string expressions and not just string literals.
33613 (Set_Warning): Reset restriction warning flag for restriction pragma
33614 Implement pragma Profile_Warnings
33615 Implement pragma Profile (Restricted)
33616 Give obolescent messages for old restrictions and pragmas
33618 * snames.h, snames.ads, snames.adb: Add new entry for pragma
33621 * s-rident.ads: Add declarations for restrictions required by profile
33622 Restricted and profile Ravenscar.
33624 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
33626 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
33627 configuration pragmas.
33629 2004-06-11 Vincent Celier <celier@gnat.com>
33631 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
33632 gnatsym, when symbol policy is Restricted.
33634 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
33635 gnatsym, when symbol policy is Restricted.
33637 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
33638 read the symbol file.
33639 (Finalize): Fail in symbol policy Restricted if a symbol in the original
33640 symbol file is not in the object files. Do not create a new symbol file
33641 when symbol policy is Restricted.
33643 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
33646 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
33648 (Usage): Line for new switch -R
33650 * make.adb (Initialize): When the platform is not VMS, add the
33651 directory where gnatmake is invoked in the front of the path, if
33652 gnatmake is invoked with directory information. Change the Scan_Args
33653 while loop to a for loop.
33654 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
33655 if Depth is equal or greater than the proposed depth, there is nothing
33657 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
33660 * prj.ads: Add new symbol policy Restricted.
33662 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
33663 with the new parameters Check_All_Labels and Case_Location.
33665 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
33666 (Library_Symbol_File needs to be defined).
33668 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
33669 and Case_Location If Check_All_Labels is True, check that all values of
33670 the string type are used, and output warning(s) if they are not.
33672 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
33675 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
33677 * gnat_ugn.texi: Update documentation about the library directory in
33680 * makegpr.adb (Display_Command): In verbose mode, also display the
33681 value of the CPATH env var, when the compiler is gcc.
33682 (Initialize): Change the Scan_Args while loop to a for loop
33683 (Compile_Individual_Sources): Change directory to object directory
33684 before compilations.
33686 * symbols.ads: New symbol policy Restricted.
33688 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
33690 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
33691 is now taken care of internally in the Exception_Propagation package
33692 and does not require clients assistance any more.
33694 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
33695 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
33696 functions. Helpers to maintain a predicate required in the handling of
33697 occurrence transfer between tasks.
33698 This is now handled internally and does not require clients assistance
33699 for the setup/propagate separation anymore.
33700 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
33701 allocation strategy, handle the Setup_And_Not_Propagated predicate and
33704 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
33705 raise_after_setup, now that everything is handled internally within the
33706 setup/propagation engine.
33708 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
33710 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
33711 Add additional conditions for the case of an actual being a simple
33712 name or literal. Improve inlining by preventing the generation
33713 of temporaries with a short lifetime (one use).
33715 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
33718 * einfo.ads: Minor comment updates for Has_Completion and
33719 E_Constant list of flags.
33721 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
33722 and constant redeclarations now set the Has_Completion flag of their
33723 defining identifiers.
33725 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
33726 Inspect_Deferred_Constant_Completion.
33727 Used to detect private deferred constants that have not been completed
33728 either by a constant redeclaration or pragma Import. Emits error message
33729 "constant declaration requires initialization expression".
33731 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
33732 completes a deferred constant.
33734 2004-06-11 Geert Bosch <bosch@gnat.com>
33736 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
33738 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
33739 calculating exponent for scaling denormal numbers.
33740 (Leading_Part): Properly raise Constraint_Error for zero or negative
33742 (Remainder): Properly raise Constraint_Error for zero divisor.
33744 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
33746 * sem_util.adb: Minor reformatting.
33748 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
33749 dereference when accessing the entry parameter record.
33750 (Check_Array_Type): Always check for possible implicit dereference.
33751 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33752 Abort if a pointer is still present (denoting that an implicit
33753 dereference was left in the tree by the front-end).
33755 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
33756 dereference when accessing the entry parameter record.
33757 (Check_Array_Type): Always check for possible implicit dereference.
33758 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33759 Abort if a pointer is still present (denoting that an implicit
33760 dereference was left in the tree by the front-end).
33762 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
33764 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
33765 message, like the compiler itself does. Easier to parse the output.
33767 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
33769 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
33770 be base names, and not includes directories.
33772 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33774 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
33775 so that dependencies are properly taken into account by make.
33777 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33780 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
33781 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
33783 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
33785 * Makefile.in (install-gnatlib): install target-specific run-time files.
33787 * Make-lang.in: Remove obsolete targets.
33789 2004-06-11 Ed Schonberg <schonberg@gnat.com>
33791 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
33792 specification, to catch misuses of program unit names.
33794 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
33795 superfluous conversions in an instance.
33797 2004-06-11 Ed Schonberg <schonberg@gnat.com>
33800 * sem_ch12.adb (Save_References): If operator node has been folded to
33801 enumeration literal, associated_node must be discarded.
33803 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
33805 * s-stchop-vxworks.adb: Add required pragma Convention to
33806 Task_Descriptor because it is updated by a C function.
33808 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
33811 * Makefile.in: Remove target specific SO_OPT on IRIX
33813 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33815 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
33816 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
33817 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
33818 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
33819 (STMT_STMT, USE_STMT): New statement codes.
33820 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
33821 * ada-tree.h: Reflect above changes.
33822 (struct tree_loop_id): Deleted.
33823 (union lang_tree_node, struct lang_decl, struct lang_type):
33824 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
33825 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
33826 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
33827 (IS_ADA_STMT): New macro.
33828 * decl.c (annotate_decl_with_node): New function.
33829 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
33830 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
33831 Call add_stmt_with_node to do needed assignments.
33832 Add call to update setjmp buffer directly, not via EXPR_STMT.
33833 (maybe_variable): Argment GNAT_NODE deleted.
33834 * gigi.h (maybe_variable): Likewise.
33835 (make_transform, add_stmt_with_node, set_block_for_group): New.
33836 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
33837 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
33838 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
33839 (set_lineno, set_lineno_from_sloc): Likewise.
33840 (record_code_position, insert_code_for): Likewise.
33841 (gnat_poplevel): Now returns void.
33842 (end_subprog_body): Now takes argument.
33843 * misc.c (cgraph.h, tree-inline.h): New includes.
33844 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
33845 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
33846 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
33847 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
33848 (gnat_parse_file): Don't set immediate_size_expand.
33849 Call cgraph functions.
33850 (gnat_expand_expr): Remove most cases.
33851 (record_code_position, insert_code_for): Remove from here.
33852 * trans.c (toplev.h, tree-gimple.h): Now included.
33853 (discard_file_names): Deleted.
33854 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
33855 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
33856 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
33857 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
33858 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
33859 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
33860 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
33861 (set_block_for_group, add_stmt_list): Likewise.
33862 (start_stmt_group): Renamed from start_block_stmt.
33863 (end_stmt_group): Likewise, from end_block_stmt.
33864 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
33865 (gigi): Don't set discard_file_names or call set_lineno.
33866 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
33867 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
33868 Numerous changes throughout to reflect new names and complete
33869 function-at-a-time implementation.
33870 (gnat_expand_stmt): Delete or comment out all cases.
33871 (process_inlined_subprograms): Use add_stmt.
33872 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
33873 call set_lineno; also remove unneeded block handling.
33874 (process_type): Remove unneeded block handling.
33875 (build_unit_elab): Remove calls to deleted functions.
33876 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
33877 (tree-dump.h): Likewise.
33878 (struct ada_binding_level): Add field jmpbuf_decl.
33879 (gnat_define_builtin, gnat_install_builtins): New.
33880 (gnat_gimplify_function, gnat_finalize): Likewise.
33881 (gnat_poplevel): No longer return BLOCK, set it instead.
33882 Remove code dealing with nested functions.
33883 (gnat_init_decl_processing): Also set size_type_node.
33884 Call gnat_install_builtins.
33885 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
33886 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
33887 Remove special-case for "main".
33888 (end_subprog_body): Add arg and rework for tree-ssa.
33889 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
33890 Add case for BOOLEAN_TYPE.
33891 * utils2.c (rtl.h): Now include.
33892 (build_call_raise): Test Debug_Flag_NN directly.
33893 (build_call_alloc_dealloc): Don't use local stack allocation for now.
33894 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
33895 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
33897 2004-06-07 Robert Dewar <dewar@gnat.com>
33899 * a-direct.ads, einfo.ads: Minor comment updates
33901 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
33902 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33903 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
33904 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
33905 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
33907 * s-interr-sigaction.adb: Remove unreferenced variable
33908 (Attached_Interrupts). Minor reformatting.
33909 Avoid use of variable I (replace by J).
33911 * par-ch10.adb: Fix text of one error message
33913 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
33914 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
33915 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
33916 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
33917 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
33918 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
33919 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
33920 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
33921 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
33922 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
33923 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
33926 2004-06-07 Doug Rupp <rupp@gnat.com>
33928 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
33930 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
33932 * mlib-tgt-vms-ia64.adb: New file.
33934 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
33935 Add mlib-tgt-vms-ia64.adb
33936 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
33937 Move to alpha specific ifeq section.
33938 Add VMS specific versions of symbols.adb
33939 Renaming of 5q vms files.
33941 * 5qsystem.ads renamed to system-vms_64.ads.
33943 2004-06-07 Vincent Celier <celier@gnat.com>
33945 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
33946 explain that when a time of day corresponding to the non existing hour
33947 on the day switching to DST is specified, Split may return a different
33950 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33953 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33954 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33956 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33958 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33959 the linking options.
33960 (Build_Library.Check_Libs): On VMS, if there is a dependency on
33961 g-trasym.ads, set Gtrasymobj_Needed to True.
33963 * prj-attr.adb: Add new package Metrics for gnatmetric
33965 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33966 canonical case to take into account files with upper case characters on
33968 (Ada_Check): Load the reference symbol file name in the name buffer to
33969 check it, not the symbol file name.
33971 * snames.ads, snames.adb: Add standard name Metrics (name of project
33972 file package for gnatmetric).
33974 * vms_conv.ads: Add Metric to Comment_Type
33976 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33978 * vms_data.ads: Add qualifiers for GNAT METRIC
33980 * makegpr.adb (Link_Executables): Take into account the switches
33981 specified in package Linker of the main project.
33983 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
33985 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33986 the index of the last element is Units.Last, not Units.Table'Last
33987 (which is usually not a valid index within the actually allocated
33988 storage for the table).
33990 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33991 determines whether to generate a call to a checked storage pool
33992 Dereference action.
33993 Generate such a call only for a dereference that either comes from
33994 source, or is the result of rewriting a dereference that comes from
33997 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
33999 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
34001 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
34003 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
34004 file level, elaborate the stride for inner dimensions in alignment
34007 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
34010 2004-06-07 Javier Miranda <miranda@gnat.com>
34012 * exp_ch6.adb: Correct wrong modification in previous patch
34014 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
34016 * g-trasym.ads: Corrected comment to properly reflect level of support
34019 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
34021 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
34022 includes case of a variable referenced on the left hand side of an
34023 assignment, therefore remove redundant code. Variables and prefixes of
34024 indexed or selected components are now marked as referenced on left
34025 hand side. Warnings are now properly emitted when variables or prefixes
34026 are assigned but not read.
34028 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
34029 left hand side referenced variables. Private access types do not
34030 produce the warning "variable ... is assigned but never read".
34031 Add also additional checks to left hand side referenced variables.
34032 Aliased, renamed objects and access types do not produce the warning
34033 "variable ... is assigned but never read" since other entities may read
34034 the memory location.
34036 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
34038 * Makefile.in: In the powerpc/vxworks-specific section, restore
34039 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
34042 2004-06-07 Ed Schonberg <schonberg@gnat.com>
34044 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
34045 predefined operators.
34046 Removes spurious type errors from g-trasym-vms.adb.
34048 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
34049 distinct from the operator appearing in the source, call appropriate
34050 routine to insert conversions when needed, and complete resolution of
34052 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
34053 interpretations for rewritten right operand.
34054 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
34055 the other operand is overloaded and the context is a type conversion.
34057 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34059 * ada-tree.def (BLOCK_STMT): Now has two operands.
34062 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
34064 * gigi.h: (gnat_poplevel): Now returns a tree.
34066 * trans.c (end_block_stmt): Add arg; all callers changed.
34067 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
34068 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
34069 (add_stmt): Set TREE_TYPE.
34070 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
34071 (gnat_expand_stmt, case BREAK_STMT): New case.
34073 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
34075 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
34077 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
34078 procedure Set_Stack_Size that is not needed.
34080 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
34082 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
34083 used for gnatpp input file and for the files upon which it depends
34085 2004-06-07 Ben Brosgol <brosgol@gnat.com>
34087 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
34089 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
34091 * gnatvsn.ads: Bump version numbers appropriately.
34092 Add new build type.
34094 2004-06-07 Pascal Obry <obry@gnat.com>
34096 * gnat_ugn.texi: Improve comments about imported names and link names
34097 on Windows. Add a note about the requirement to use -k gnatdll's option
34098 when working with a DLL which has stripped stdcall symbols (no @nn
34101 2004-05-27 Vincent Celier <celier@gnat.com>
34103 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
34104 COMMENTS_LAYOUT=UNTOUCHED
34106 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
34107 symbols-vms-alpha.adb
34109 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
34111 * sem.ads: Clarify documentation on checks suppression.
34113 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
34115 2004-05-27 Ed Schonberg <schonberg@gnat.com>
34117 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
34118 the case of multiple derivations.
34119 (Is_Object_Reference): For a selected component, verify that the prefix
34120 is itself an object and not a value.
34122 * sem_ch12.adb (Same_Instantiated_Constant): New name for
34123 Same_Instantiated_Entity.
34124 (Same_Instantiated_Variable): Subsidiary to
34125 Check_Formal_Package_Instance, to recognize actuals for in-out generic
34126 formals that are obtained from a previous formal package.
34127 (Instantiate_Subprogram_Body): Emit proper error when
34128 generating code and the proper body of a stub is missing.
34130 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
34131 has a universal interpretation, do the disambiguation here.
34133 * exp_ch4.adb (Expand_N_Type_Conversion,
34134 Expand_N_Unchecked_Type_Conversion): Special handling when target type
34135 is Address, to avoid typing anomalies when Address is a visible integer
34138 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
34139 to determine whether a subprogram should not be marked Pure, even when
34140 declared in a pure package.
34142 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
34144 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
34146 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
34147 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
34148 Update the documentation about the Ravenscar profile, following the
34149 definition found in AI-249.
34151 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
34152 setting the Profile (Ravenscar). This must be done in addition to
34153 setting the required restrictions.
34155 * rtsfind.ads: Add the set of operations defined in package
34158 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
34161 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
34163 lang-specs.h: Always require -c or -S and always redirect to /dev/null
34164 if -gnatc or -gnats is passed.
34166 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
34168 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
34169 a significant reference. Warnings are now properly emitted when a
34170 discriminated type is not referenced.
34172 * lib-xref.adb (Generate_Reference): A deferred constant completion,
34173 record representation clause or record type discriminant does not
34174 produce a reference to its corresponding entity. Warnings are now
34175 properly emitted when deferred constants and record types are not
34178 2004-05-27 Geert Bosch <bosch@gnat.com>
34180 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
34181 Fixes ACATS Annex G tests.
34183 2004-05-27 Robert Dewar <dewar@gnat.com>
34185 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
34188 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
34190 * s-interr.adb (Server_Task): Take into account case of early return
34191 from sigwait under e.g. linux.
34193 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
34195 * gnat_ugn.texi: Add description for the new gnatpp options:
34196 -rnb - replace the original source without creating its backup copy
34197 -c0 - do not format comments
34199 2004-05-24 Geert Bosch <bosch@gnat.com>
34201 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
34202 with 192 bits of precision, sufficient to reduce a double-extended
34203 arguments X with a maximum relative error of T'Machine_Epsilon, for X
34204 in -2.0**32 .. 2.0**32.
34205 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
34206 reduction by the processor, which only uses a 68-bit approximation of
34208 (Tan): Always reduce arguments and compute function either using
34209 the processor's fptan instruction, or by dividing sin and cos as needed.
34211 2004-05-24 Doug Rupp <rupp@gnat.com>
34213 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
34214 gcc error on 32/64 bit VMS.
34216 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
34218 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
34219 since this is what we get for stack overflows although not documented
34221 Document the issues which may require adjustments to our signal
34224 2004-05-24 Ed Schonberg <schonberg@gnat.com>
34226 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
34227 enclosing dynamic scope if the instantiation is within a generic unit.
34229 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
34231 * exp_dbug.ads: Fix typo.
34233 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
34234 Rename it to its proper name: system-linux-ia64.ads
34235 (stamp-gnatlib1): Remove extra target specific run time files when
34236 setting up the rts directory.
34238 2004-05-24 Javier Miranda <miranda@gnat.com>
34240 * einfo.ads, einfo.adb (Limited_Views): Removed.
34241 (Limited_View): New attribute that replaces the previous one. It is
34242 now a bona fide package with the limited-view list through the
34243 first_entity and first_private attributes.
34245 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
34246 limited-private-with clause.
34247 (Install_Limited_Withed_Unit): Install the private declarations of a
34248 limited-private-withed package. Update the installation of the shadow
34249 entities according to the new structure (see Build_Limited_Views)
34250 (Build_Limited_Views): Replace the previous implementation of the
34251 limited view by a package entity that references the first shadow
34252 entity plus the first shadow private entity (required for limited-
34253 private-with clause)
34254 (New_Internal_Shadow_Entity): Code cleanup.
34255 (Remove_Limited_With_Clause): Update the implementation to undo the
34256 new work carried out by Build_Limited_Views.
34257 (Build_Chain): Complete documentation.
34258 Replace Ada0Y by Ada 0Y in comments
34261 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
34262 types the level of accessibility depends on the enclosing type
34265 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
34266 entities. Complete documentation of previous change.
34268 2004-05-24 Robert Dewar <dewar@gnat.com>
34270 * namet.adb: Minor reformatting
34271 Avoid use of name I (replace by J)
34272 Minor code restructuring
34274 * sem_ch6.adb: Minor reformatting
34276 * lib-writ.adb: Do not set restriction as active if this is a
34277 Restriction_Warning case.
34279 * sem_prag.adb: Reset restriction warning flag if real pragma
34280 restriction encountered.
34282 * s-htable.adb: Minor reformatting
34283 Change rotate count to 3 in Hash (improves hash for small strings)
34285 * 5qsystem.ads: Add comments for type Address (no literals allowed).
34287 * gnat_ugn.texi: Add new section of documentation "Code Generation
34288 Control", which describes the use of -m switches.
34290 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
34292 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
34293 through the DECL_INITIAL for renamed variables.
34295 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
34297 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
34299 2004-05-19 Joel Brobecker <brobecker@gnat.com>
34301 * exp_dbug.ads: Correct comments concerning handling of overloading,
34302 since we no longer use $ anymore.
34304 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
34306 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
34307 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
34308 with illegal subunits.
34310 2004-05-19 Ed Schonberg <schonberg@gnat.com>
34312 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
34313 body with front-end inlining enabled, check whether an inline pragma
34314 appears immediately after the body and applies to it.
34316 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
34317 enabled and the pragma appears after the body of the subprogram.
34319 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34321 Part of function-at-a-time conversion
34323 * misc.c (adjust_decl_rtl): Deleted.
34324 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
34327 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
34328 (add_decl_stmt, add_stmt, block_has_vars): New functions.
34329 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
34331 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
34332 when making a decl.
34333 (gnat_to_gnu_entity): Likewise.
34334 Use add_stmt to update setjmp buffer.
34335 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
34337 No longer call adjust_decl_rtl.
34338 (DECL_INIT_BY_ASSIGN_P): New macro.
34339 (DECL_STMT_VAR): Likewise.
34341 * trans.c (gigi): Call start_block_stmt to make the outermost
34343 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
34344 Call start_block_stmt and end_block_stmt temporarily.
34345 Use gnat_expand_stmt instead of expand_expr_stmt.
34346 (add_decl_stmt): New function.
34347 (tree_transform): Call it.
34348 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
34349 (end_block_stmt): Set type and NULL_STMT.
34350 (gnat_expand_stmt): Make recursize call instead of calling
34352 (gnat_expand_stmt, case DECL_STMT): New case.
34353 (set_lineno_from_sloc): Do nothing if global.
34354 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
34355 (start_block_stmt, add_stmt, end_block_stmt): New functions.
34356 (build_block_stmt): Call them.
34357 (gnat_to_code): Don't expand NULL_STMT.
34358 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
34360 (tree_transform): Likewise.
34361 (tree_transform, case N_Null_Statement): Return NULL_STMT.
34362 (gnat_expand_stmt, case NULL_STMT): New case.
34363 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
34366 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
34369 * utils.c (create_var_decl): Do not call expand_decl or
34371 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
34372 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
34374 (struct e_stack): Add chain_next to GTY.
34375 (struct binding_level): Deleted.
34376 (struct ada_binding_level): New struct.
34377 (free_block_chain): New.
34378 (global_binding_level, clear_binding_level): Deleted.
34379 (global_bindings_p): Rework to see if no chain.
34380 (kept_level_p, set_block): Deleted.
34381 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
34382 new data structure and work directly on BLOCK node.
34383 (gnat_poplevel): Similarly.
34384 (get_decls): Look at BLOCK_VARS.
34385 (insert_block): Work directly on BLOCK node.
34386 (block_has_var): New function.
34387 (pushdecl): Rework for new binding structures.
34388 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
34390 (build_subprog_body): Likewise.
34391 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
34393 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
34395 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
34396 (DECL_STMT_VAR): Likewise.
34398 2004-05-17 Robert Dewar <dewar@gnat.com>
34400 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
34403 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
34404 of restriction synonyums by using
34405 Restrict.Process_Restriction_Synonyms.
34407 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
34409 * s-restri.ads (Tasking_Allowed): Correct missing comment
34411 * s-rident.ads: Add entries for restriction synonyms
34413 * ali.adb: Fix some problems with badly formatted ALI files that can
34414 result in infinite loops.
34416 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
34417 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
34418 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
34419 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
34420 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
34421 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
34422 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
34423 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
34424 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
34425 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
34426 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
34427 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
34428 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
34429 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
34430 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
34431 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
34432 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
34433 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
34434 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
34435 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
34436 to Task_Id (minor cleanup).
34438 2004-05-17 Vincent Celier <celier@gnat.com>
34440 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
34441 directory separator.
34443 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
34444 project being extended, if Languages is not declared in extending
34447 2004-05-17 Javier Miranda <miranda@gnat.com>
34449 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
34450 limited view of a visible sibling.
34452 2004-05-14 Robert Dewar <dewar@gnat.com>
34454 * gnat_ugn.texi: Minor change to -gnatS documentation
34456 * sprint.adb: Remove some instances of Assert (False) and for this
34457 purpose replace them by output of a ??? string.
34459 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
34462 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
34463 flag processing. This was suppressing required dependencies in
34464 No_Run_Time mode and is not needed since the binder does not generate
34465 references for things in libgnat anyway.
34467 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
34470 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
34472 * gnat_ugn.texi: Document AIX-specific issue with initialization of
34475 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
34476 action for the case of an actual parameter in an init proc call.
34478 2004-05-14 Ed Schonberg <schonberg@gnat.com>
34480 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
34481 subtype, check visible entities in base type.
34483 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
34484 actions if the object is a renaming.
34486 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
34487 Check_Formal_Package_Instance, to determine more precisely when the
34488 formal and the actual denote the same entity.
34490 2004-05-14 Javier Miranda <miranda@gnat.com>
34492 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
34494 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
34495 corresponding to a private_with must be removed from visibility; it
34496 will be made visible later, just before we analyze the private part of
34498 (Check_Private_Child_Unit): Allow private_with clauses in public
34500 (Install_Siblings): Make visible the private entities of private-withed
34502 (Install_Withed_Unit): Do not install the private withed unit if we
34503 are compiling a package declaration and the Private_With_OK flag was
34504 not set by the caller. These declarations will be installed later,
34505 just before we analyze the private part of the package.
34507 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
34508 during the evaluation of the expression that initializes the object,
34509 decorate it with the expected type to avoid cascade errors.
34512 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
34513 subprogram we have to install the private_with clauses after its
34514 specification has been analyzed (as documented in AI-262.TXT).
34516 * sem_ch8.adb (Has_Private_With): New function. Determines if the
34517 current compilation unit has a private with on a given entity.
34518 (Find_Direct_Name): Detect the Beaujolais problem described in
34521 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
34522 provides the functionality of the function Is_Ancestor that was
34523 previously available in sem_ch10. It has been renamed to avoid
34526 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
34528 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34530 * utils.c (build_vms_descriptor): Use SImode pointers.
34532 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
34534 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
34536 2004-05-14 GNAT Script <nobody@gnat.com>
34538 * Make-lang.in: Makefile automatically updated
34540 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
34542 Renaming of target specific files for clarity
34544 * Makefile.in: Rename GNAT target specific files.
34546 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
34547 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
34548 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
34549 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
34550 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
34551 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
34552 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
34553 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
34554 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
34555 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
34556 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
34557 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
34558 51osinte.adb, 51osinte.ads, 51system.ads,
34559 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
34560 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
34561 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
34562 56tpopsp.adb, 57system.ads, 58system.ads,
34563 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
34564 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
34565 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
34566 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
34567 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
34568 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
34569 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
34570 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
34571 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
34572 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
34573 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
34574 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
34575 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
34576 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
34577 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
34578 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
34579 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
34580 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
34581 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
34582 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
34583 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
34584 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
34585 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
34586 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
34587 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
34588 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
34589 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
34590 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
34591 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
34592 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
34593 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
34594 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
34595 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
34596 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
34597 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
34598 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
34599 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
34600 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
34601 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
34602 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
34604 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
34605 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
34606 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
34607 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
34608 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
34609 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
34610 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
34611 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
34612 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
34613 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
34614 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
34615 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
34616 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
34617 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
34618 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
34619 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
34620 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
34621 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
34622 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
34623 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
34624 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
34625 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
34626 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
34627 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
34628 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
34629 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
34630 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
34631 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
34632 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
34633 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
34634 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
34635 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
34636 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
34637 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
34638 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
34639 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
34640 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
34641 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
34642 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
34643 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
34644 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
34645 s-osinte-vms.ads, s-osinte-vxworks.adb,
34646 s-osinte-vxworks.ads, s-osprim-mingw.adb,
34647 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
34648 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
34649 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
34650 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
34651 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
34652 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
34653 s-stchop-vxworks.adb, s-taprop-dummy.adb,
34654 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
34655 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
34656 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
34657 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
34658 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
34659 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
34660 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
34661 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
34662 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
34663 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
34664 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
34665 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
34666 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
34667 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
34668 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
34669 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
34670 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
34671 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
34672 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
34673 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
34674 system-irix-o32.ads, system-linux-x86_64.ads,
34675 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
34676 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
34677 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
34678 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
34679 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
34680 system-vxworks-mips.ads, system-vxworks-ppc.ads,
34681 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
34684 2004-05-13 Zack Weinberg <zack@codesourcery.com>
34686 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
34688 2004-05-13 Diego Novillo <dnovillo@redhat.com>
34690 Merge from tree-ssa-20020619-branch.
34692 * config-lang.in (boot_language, build_by_default): Set
34694 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
34695 (max_size): Add static chain op for call_expr.
34697 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
34700 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
34702 2004-05-11 Roger Sayle <roger@eyesopen.com>
34704 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
34707 2004-05-10 Doug Rupp <rupp@gnat.com>
34709 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
34712 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
34714 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
34716 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
34717 Fixes undefined symbols in IA64 gnatlib.
34719 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
34721 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
34722 Short_Address). This will be moved to system.auxdec.
34724 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
34726 * sem_util.adb: Replace test for presence of a node that is always
34727 present with a call to Discard_Node.
34729 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
34730 Analyze on the library unit node after generation of distribution stub
34731 constructs. The call was a no-op because Unit_Node has already been
34732 Analyzed, and the tree fragments for the distribution stubs are
34733 analyzed as they are inserted in Exp_Dist.
34734 Update comment regarding to distribution stubs to reflect that we
34735 do not generate stub in separate files anymore.
34737 * einfo.ads: Clarify the fact that a tagged private type has the
34738 E_Record_Type_With_Private Ekind.
34740 * erroutc.adb: Minor reformatting
34742 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
34743 values if line length is increased using -gnatyM (noticed during code
34746 * eval_fat.adb: Minor reformatting
34747 Put spaces around exponentiation operator
34749 2004-05-10 Ed Schonberg <schonberg@gnat.com>
34752 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
34753 has been rewritten as an explicit dereference, retrieve type of
34754 original node to check for possibly unconstrained record type.
34756 2004-05-10 Ed Schonberg <schonberg@gnat.com>
34758 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
34759 overriding, use the operation of the parent unconditionally.
34761 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
34762 operation when either operand is a literal, to avoid further
34765 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
34766 overridden by a previous explicit declaration, mark the previous entity
34769 * sem_disp.adb (Check_Dispatching_Operation): New predicate
34770 Is_Visibly_Controlled, to determine whether a declaration of a
34771 primitive control operation for a derived type overrides an inherited
34772 one. Add warning if the explicit declaration does not override.
34774 2004-05-10 Vincent Celier <celier@gnat.com>
34776 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
34777 some cases when the sources are no longer present.
34779 * make.adb (Collect_Arguments): Fail if an external source, not part
34780 of any project need to be compiled, when switch -x has not been
34783 * makeusg.adb: Document new switch -x
34785 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
34786 defaulted to False.
34788 * switch-m.adb (Scan_Make_Switches): New switch -x
34790 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
34791 gnatmake switch -x.
34793 * gnat_ugn.texi: Document new gnatmake switch -x
34795 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
34797 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
34799 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
34800 (process_attributes): Likewise.
34802 2004-05-10 Joel Brobecker <brobecker@gnat.com>
34804 * s-inmaop.ads: Fix spelling mistake in one of the comments.
34806 2004-05-10 Robert Dewar <dewar@gnat.com>
34808 * gnat_ugn.texi: Document that for config pragma files, the maximum
34809 line length is always 32767.
34811 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
34812 literals is now allowed.
34814 * gnat-style.texi: Remove statement about splitting long lines before
34815 an operator rather than after, since we do not follow this rule at all.
34816 Clarify rule (really lack of rule) for spaces around exponentiation
34818 * sem_elim.adb: Allow concatenation of string literals as well as a
34819 single string literal for pragma arguments.
34821 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
34823 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
34824 written for append case.
34826 * frontend.adb: Changes to avoid checking max line length in config
34829 * g-os_lib.ads: Minor reformatting
34831 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
34832 wrong in any case. Instead use standard value. Noticed during code
34835 * opt.ads (Max_Line_Length): New field, used to implement removal of
34836 limitation on length of lines when scanning config pragma files.
34838 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
34839 makeutl.ads, makeutl.adb: Minor reformatting
34841 * scn.adb: Do not check line length while scanning config pragma files
34842 Do not check line length while scanning out license information
34844 * scng.adb: Changes to avoid line length checks while parsing config
34847 2004-05-10 GNAT Script <nobody@gnat.com>
34849 * Make-lang.in: Makefile automatically updated
34851 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
34853 * osint.adb (Find_Program_Name): Fix handling of VMS version
34856 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
34858 * g-os_lib.ads (Invalid_Time): New constant
34860 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
34861 return OS_Time instead of time_t to match what is imported by Ada.
34862 Now return -1 if the file doesn't exist, instead of a random value
34864 2004-05-05 Robert Dewar <dewar@gnat.com>
34866 * usage.adb: Add line for -gnatR?s switch
34868 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
34870 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
34871 and for Match (Data_First, Data_last)
34873 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
34874 written when we are dealing with multi-unit files.
34876 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
34878 * Makefile.in: Remove unused targets and variables.
34880 2004-05-05 Vincent Celier <celier@gnat.com>
34882 * switch-m.adb: New gnatmake switch -eI
34884 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
34885 of new gnatmake switch -eInnn.
34887 * makegpr.adb: Take into account new parameters Index and Src_Index in
34890 * clean.adb: Implement support for multi-unit sources, including new
34893 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
34896 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
34897 (Extract_From_Q): New out parameter Index
34898 (Mark, Is_Marked): Subprograms moved to Makeutl
34899 (Switches_Of): New parameter Source_Index
34900 (Add_Switch): New parameter Index
34901 (Check): New parameter Source_Index
34902 (Collect_Arguments): New parameter Source_Index
34903 (Collect_Arguments_And_Compile): New parameter Source_Index
34904 (Compile): New parameter Source_Index
34905 Put subprograms in alphabetical order
34906 Add support for multi-source sources, including in project files.
34908 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
34909 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
34912 * makeusg.adb: New gnatmake switch -eInnn
34914 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
34917 * opt.ads (Main_Index): New variable, defaulted to 0.
34919 * osint.ads, osinte.adb (Add_File): New parameter Index
34920 (Current_Source_Index): New function
34922 * prj.adb: Take into account new components Index and Src_Index
34924 * prj.ads (String_Element): New component Index
34925 (Variable_Value): New component Index
34926 (Array_Element): New component Src_Index
34928 * prj-attr.adb: Indicate that optional index may be specified for
34929 attributes Main, Executable, Spec, Body and some of Switches.
34931 * prj-attr.ads (Attribute_Kind): New values for optional indexes
34932 (Attribute_Record): New component Optional_Index
34934 * prj-com.ads (File_Name_Data): New component Index
34936 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34938 * prj-env.adb (Put): Output optional index
34940 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
34941 attributes Spec and Body.
34943 * prj-nmsc.adb: Process optional indexes
34945 * prj-pp.adb: Ouput "at" for optional indexes
34947 * prj-proc.adb: Take into account optional indexes
34949 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34950 Optional_Index. For string literal,
34951 process optional index when Optional_Index is True.
34952 (Parse_Expresion): New Boolean parameter Optional_Index
34954 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34955 (Set_Source_Index_Of): New procedure
34957 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34960 * prj-util.ads (Executable_Of): New parameter Index
34961 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34962 New parameter Src_Index, defaulted to 0.
34964 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34967 * sem_ch3.adb (Access_Definition): If this is an access parameter
34968 whose designated type is imported through a limited_with clause, do
34969 not add the enclosing subprogram to the list of private dependents of
34972 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34975 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34976 a limited_with clause, and the other is its non-limited view.
34978 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
34980 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34982 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34983 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34984 Stand.Boolean_Literals to produce references to entities
34985 Standard_False and Standard_True from compile-time computed boolean
34988 * stand.ads (Boolean_Literals): New variable, provides the entity
34989 values for False and True, for use by the expander.
34991 2004-05-05 Doug Rupp <rupp@gnat.com>
34993 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34994 5vinmaop.adb: Unchecked convert Short_Address vice Address
34996 * adaint.c, raise.c: Caste CRTL function return value
34997 to avoid gcc error on 32/64 bit IVMS.
34999 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
35002 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
35004 * 5qsystem.ads (Address): Declare as Long_Integer
35005 (Short_Address): Declare as 32 bit subtype of Address
35006 Declare abstract address operations to avoid gratuitous ambiguities.
35008 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
35010 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
35011 instead of the old Boolean_Entry_Barriers.
35012 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
35014 2004-05-05 GNAT Script <nobody@gnat.com>
35016 * Make-lang.in: Makefile automatically updated
35018 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
35020 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
35022 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
35025 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
35026 alone. Replacing object references by literals is inappropriate in a
35027 so low level context.
35029 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
35031 * a-exexpr.adb: Add comments
35033 2004-05-03 Joel Brobecker <brobecker@gnat.com>
35035 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
35036 declare the Ancestor_Tags array in Type_Specific_Data with a small size
35037 without risking a bounds check error when accessing one of its
35039 (Type_Specific_Data): Define Ancestor_Tags as a small array.
35040 This prevents us from hitting a limitation during the debug info
35041 generation when using stabs.
35043 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
35045 This prevents us from hitting a limitation during the debug info
35046 generation when using stabs.
35048 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
35050 lang-specs.h: Remove -gnatz* from specs.
35052 2004-05-03 Vincent Celier <celier@gnat.com>
35054 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
35056 * Make-lang.in, Makefile.in: Add gprmake
35058 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
35060 * sem_aggr.adb: Fix typo in comment.
35062 2004-05-03 Robert Dewar <dewar@gnat.com>
35064 * make.adb: Minor reformatting
35066 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
35068 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
35069 so that it works when address is not a private type.
35071 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
35072 properly with rewritten unchecked conversions. This prevents
35073 order-of-elaboration issues that can otherwise arise.
35074 (Minimum_Size): Don't check size of access types under VMS
35076 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
35077 interpretations of integer literals as type System.Address.
35079 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
35080 (Is_Descendent_Of): New function
35082 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
35084 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
35085 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
35086 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
35088 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
35089 of the old Max_Entry_Queue_Depth.
35091 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
35092 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
35093 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
35095 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
35096 New entry for proper handling of Max_Entry_Queue_Depth.
35097 New entry for proper handling of No_Dynamic_Interrupts.
35099 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
35100 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
35101 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
35102 the GNAT specific restriction Max_Entry_Queue_Depth.
35103 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
35104 the GNAT specific restriction No_Dynamic_Interrupts.
35106 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
35107 instead of the old Boolean_Entry_Barriers.
35108 Use the new restriction No_Dynamic_Attachment instead of the old
35109 No_Dynamic_Interrupts.
35111 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
35112 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
35114 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
35115 of the old Max_Entry_Queue_Depth.
35117 2004-05-03 GNAT Script <nobody@gnat.com>
35119 * Make-lang.in: Makefile automatically updated
35121 2004-04-29 Ed Schonberg <schonberg@gnat.com>
35123 * checks.adb (Enable_Range_Check): If the prefix of an index component
35124 is an access to an unconstrained array, perform check unconditionally.
35126 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35128 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
35131 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
35133 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
35134 alternate stack setting. There was no support for the tasking cases
35135 and the changes eventually caused a number of side-effect failures in
35136 the non-tasking case too.
35138 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
35140 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
35143 2004-04-29 Vincent Celier <celier@gnat.com>
35145 * make.adb (Gnatmake): Increase max size of argument array for
35146 gnatbind for the potential addition of -F.
35147 If there are Stand-Alone Library projects, invoke gnatbind with -F to
35148 be sure that elaboration flags will be checked.
35150 * switch-c.adb: Correct call to Scan_Pos for -gnateI
35152 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
35154 * sem_warn.adb (Check_References): Move '<access-variable> may be
35155 null' warning out of under Warn_On_No_Value_Assigned.
35157 2004-04-29 Ed Falis <falis@gnat.com>
35159 * gnat_ugn.texi: Fixed texi error
35161 2004-04-29 Robert Dewar <dewar@gnat.com>
35163 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
35164 abstract operations if they come from predefined files.
35166 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
35169 * s-addope.adb: Correct obvious error in mod function
35171 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
35173 * Makefile.in: Add target pairs for powerpc darwin*
35176 * a-intnam-darwin.ads, s-osinte-darwin.adb,
35177 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
35179 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
35181 * Makefile.in: Add target macro definitions for s390*-linux*.
35182 * system-linux-s390.ads: New file.
35183 * system-linux-s390x.ads: New file.
35185 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
35187 * gnat_ugn.texi: Correct argument to @setfilename.
35189 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
35191 * a-exexpr.adb (Unwind_Word): New data type.
35192 (Unwind_Exception): Use it as type of Private1 and Private2.
35194 * raise.c (db_action_for): Fix debug printf.
35196 2004-04-27 Ed Schonberg <schonberg@gnat.com>
35198 * a-wtmoio.ads: Formal type must be a modular type, not a signed
35201 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35203 * decl.c (gnat_to_gnu_entity, case object): Call
35204 __builtin_update_setjmp_buf.
35206 * gigi.h (update_setjmp_buf): Deleted.
35207 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
35209 * misc.c: (update_setjmp_buf): Deleted.
35211 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
35212 around block of RTL.
35214 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
35216 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
35218 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
35219 subprogram for which no pragma All_Calls_Remote applies, store the
35220 address of the real subprogram in the underlying record type, so local
35221 dereferences do not go through the PCS.
35223 2004-04-26 Robert Dewar <dewar@gnat.com>
35225 * i-c.ads: Add some type qualifications to avoid ambiguities when
35226 compiling with s-auxdec.ads and a non-private address type.
35228 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
35230 * Makefile.rtl: Fix error in previous check-in:
35231 Add s-addope.o to non tasking object list (rather than tasking object
35234 2004-04-26 Javier Miranda <miranda@gnat.com>
35236 * sem_aggr.adb: Fix typo in comments
35237 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
35238 Required to check the null-exclusion attribute.
35240 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
35241 case of anonymous access types in record and array components. For a
35242 component definition the level is the same of the enclosing composite
35245 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
35246 that are anonymous access types the level of accessibility depends on
35247 the enclosing type declaration. In order to have this information, set
35248 the scope of the anonymous access type to the enclosing record type
35250 (Array_Type_Declaration): In case of components that are anonymous
35251 access types the level of accessibility depends on the enclosing type
35252 declaration. In order to have this information, set the scope of the
35253 anonymous access type to the enclosing array type declaration.
35255 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
35258 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
35259 renaming of anonymous access-to-constant types allowed if and only if
35260 the renamed object is access-to-constant.
35262 * sem_util.adb (Type_Access_Level): In case of anonymous access types
35263 that are component_definition or discriminants of a nonlimited type,
35264 the level is the same as that of the enclosing component type.
35266 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
35268 * sem_elim.adb: Some minor code reorganization from code reading. Fix
35269 misprint in the function name (File_Name_Match).
35271 2004-04-23 Laurent Guerby <laurent@guerby.net>
35273 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
35276 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35278 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
35280 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
35282 * adaint.c (__gnat_try_lock): No longer requires that the parent
35283 directory be writable, the directory itself is enough.
35284 (gnat_is_absolute_path): Change profile, so that the call from
35285 GNAT.OS_Lib can be made more efficient.
35287 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
35288 from GNAT.OS_Lib can be made more efficient.
35290 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
35291 one copy of the file name. Found by code reading.
35293 2004-04-23 Vincent Celier <celier@gnat.com>
35295 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
35296 Correct documentation on gnatmake switches transmitted to the compiler
35298 * ali.ads: Minor comment fix
35300 2004-04-23 Javier Miranda <miranda@gnat.com>
35302 * sem_ch6.adb: (Confirming Types): Code cleanup
35304 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
35305 subprogram types: E_Anonymous_Access_Subprogram_Type and
35306 E_Anonymous_Access_Protected_Subprogram_Type.
35308 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
35310 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
35311 whether a pragma All_Calls_Remote applies to the subprogram on which
35313 No functional change is introduced by this revision; the new parameter
35314 will be used to allow calls to local RCI subprograms to be optimized
35315 to not use the PCS in the case where no pragma All_Calls_Remote applies,
35316 as is already done in the PolyORB implementation of the DSA.
35318 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
35319 whether a pragma All_Calls_Remote applies to the subprogram on which
35321 No functional change is introduced by this revision; the new parameter
35322 will be used to allow calls to local RCI subprograms to be optimized
35323 to not use the PCS in the case where no pragma All_Calls_Remote applies,
35324 as is already done in the PolyORB implementation of the DSA.
35326 2004-04-23 Robert Dewar <dewar@gnat.com>
35328 * Makefile.rtl: Add entry for s-addope.o in run time library list
35329 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
35330 * s-addope.ads, s-addope.adb: New files.
35332 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
35333 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
35334 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
35335 System.Address to be non-private and signed.
35337 * sem_elim.adb: Minor reformatting (fairly extensive)
35338 Some minor code reorganization from code reading
35339 Add a couple of ??? comments
35341 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35343 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
35344 (tree_transform, case N_If_Statement): Remove non-determinism.
35346 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
35348 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
35350 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
35351 Eliminate' section.
35353 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
35354 no longer used as a parameter name for Eliminate pragma).
35356 2004-04-22 Laurent Guerby <laurent@guerby.net>
35358 PR optimization/14984
35359 PR optimization/14985
35360 * trans.c (gigi): Fix non determinism leading to bootstrap
35361 comparison failures.
35363 2004-04-21 Pascal Obry <obry@gnat.com>
35365 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
35366 passed to spawnvp() to properly handle program pathname with spaces on
35369 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
35371 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
35372 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
35373 unlocked in case of exceptions.
35375 2004-04-21 Joel Brobecker <brobecker@gnat.com>
35377 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
35378 This function does not exist anymore.
35380 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
35382 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
35384 * link.c: Move variables to the __gnat name space.
35386 * Makefile.in: list link.o explicitly when needed.
35388 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
35390 2004-04-21 Javier Miranda <miranda@gnat.com>
35392 * einfo.adb (Original_Access_Type): New subprogram
35393 (Set_Original_Access_Type): New subprogram
35394 (Write_Field21_Name): Write the name of the new field
35396 * einfo.ads (Original_Access_Type): New field present in access to
35398 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
35399 E_Anonymous_Access_Protected_Subprogram_Type.
35401 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
35404 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
35405 to anonymous access to subprogram types.
35407 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
35408 to subprogram types.
35410 * sem_ch3.adb (Access_Definition): Complete decoration of entities
35411 corresponding to anonymous access to subprogram types.
35412 (Analyze_Component_Declaration): Add new actual to the call to
35413 subprogram replace_anonymous_access_to_protected_subprogram.
35414 (Array_Type_Declaration): Add new actual to the call to subprogram
35415 replace_anonymous_access_to_protected_subprogram.
35416 (Process_Discriminants): Add new actual to the call to subprogram
35417 replace_anonymous_access_to_protected_subprogram.
35418 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
35420 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
35423 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
35424 access to subprogram types.
35426 * sem_util.adb (Has_Declarations): Addition of package_specification
35429 2004-04-21 Ed Schonberg <schonberg@gnat.com>
35431 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
35432 inlined flags to renamed entity only if in current unit.
35434 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
35436 * s-parint.ads: Add DSA implementation marker.
35438 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
35439 value of System.Partition_Interface.DSA_Implementation to determine
35440 what version of the distributed systems annex is available (no
35441 implementation, GLADE, or PolyORB).
35443 2004-04-21 Joel Brobecker <brobecker@gnat.com>
35445 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
35447 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35449 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
35450 with new type if alias sets differ.
35451 Fixes ACATS c41103b.
35453 2004-04-21 Vincent Celier <celier@gnat.com>
35455 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
35456 Add array Lang_Args for the language specific compiling argument
35459 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
35461 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
35463 * gnat_rm.texi: Update the descripton of the Eliminate pragma
35464 according to the recent changes in the format of the parameters of the
35465 pragma (replacing Homonym_Number with Source_Location).
35467 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
35469 * 5isystem.ads: Removed, unused.
35471 * gnat_rm.texi: Redo 1.13 change.
35473 2004-04-19 Robert Dewar <dewar@gnat.com>
35475 * s-stoele.ads: Clean up definition of Storage_Offset (the new
35476 definition is cleaner, avoids the kludge of explicit Standard operator
35477 references, and also is consistent with a visible System.Address with
35478 no visible operations.
35480 * s-geveop.adb: Add declarations to avoid assumption of visible
35481 operations on type System.Address (since these might not be available
35482 if Address is a non-private type for which the operations
35483 are made abstract).
35485 * sem_eval.adb: Minor reformatting
35487 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
35488 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
35489 reformatting (new function spec format).
35491 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
35492 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
35493 s-caun64.adb: Add declarations to avoid assumption of visible
35494 operations on type System.Address (since these might not be available
35495 if Address is a non-private type for which the operations are made
35498 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
35500 * exp_intr.adb: Minor comment update
35502 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
35504 * 5omastop.adb: Add declarations to avoid assumption of visible
35505 operations on type System.Address (since these might not be available
35506 if Address is a non-private type for which the operations
35507 are made abstract).
35509 2004-04-19 Vincent Celier <celier@gnat.com>
35511 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
35513 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
35516 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
35518 Call Check with Process_Languages.
35519 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
35520 with Process_Languages.
35521 (Recursive_Check): New Boolean parameter Process_Languages. Call
35522 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
35525 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
35527 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
35528 parameter Ada_Main, defaulted to True.
35529 Check for Ada specific characteristics only when Ada_Main is True.
35531 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
35533 * prj.adb: (Project_Empty): Add new Project_Data components.
35535 * prj.ads: New types and tables for non Ada languages.
35536 (Project_Data): New components Languages, Impl_Suffixes,
35537 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
35538 Include_Path, Include_Data_Set.
35540 * prj-env.ads, prj-env.adb: Minor reformatting
35542 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
35543 Put subprograms in alphabetical order
35545 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
35546 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
35549 * mlib-prj.adb: Back out modification in last version, as they are
35551 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
35553 * make.adb: (Mains): Moved to package Makeutl
35554 (Linker_Opts): Moved to package Makeutl
35555 (Is_External_Assignment): Moved to package Makeutl
35556 (Test_If_Relative_Path): Moved to package Makeutl
35557 (Gnatmake): Move sorting of linker options to function
35558 Makeutl.Linker_Options_Switches.
35560 * makeutl.ads, makeutl.adb: New files.
35562 * Makefile.in: Add makeutl.o to the object files for gnatmake
35564 * makeusg.adb: Add line for new switch -eL.
35566 * gnatls.adb (Image): New function.
35567 (Output_Unit): If in verbose mode, output the list of restrictions
35568 specified by pragmas Restrictions.
35570 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
35573 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
35574 needed, to put it in the range 1970 (included) - 2026 (excluded).
35575 (Time_Of): Do not shift Unix_Min_Year (1970).
35576 Shift the date by multiple of 56 years, if needed, to put it in the
35577 range 1970 (included) - 2026 (excluded).
35579 * adaint.h, adaint.c (__gnat_set_executable): New function.
35581 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35583 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
35584 and pop GC context.
35585 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
35586 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
35587 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
35588 (tree_transform, case N_Code_Statement): Likewise.
35589 (gnat_expand_stmt, case LABEL_STMT): Don't look at
35590 LABEL_STMT_FIRST_IN_EH.
35591 (gnat_expand_stmt, case ASM_STMT): New case.
35593 * utils2.c (build_unary_op): Properly set TREE_READONLY of
35594 UNCONSTRAINED_ARRAY_REF.
35596 * utils.c (poplevel): Temporarily push/pop GC context around inline
35597 function expansion.
35599 * decl.c (maybe_variable): Properly set TREE_READONLY of
35600 UNCONSTRAINED_ARRAY_REF.
35601 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
35603 * ada-tree.def: (ASM_STMT): New.
35605 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
35606 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
35607 ASM_STMT_INPUT): New.
35608 (ASM_STMT_CLOBBER): Likewise.
35610 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
35612 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
35613 general rcheck mechanism to raise Program_Error for E.4(18), instead
35614 of a custom raiser in System.Partition_Interface.
35615 Part of general cleanup work before PolyORB integration.
35617 * snames.ads, snames.adb: Add new runtime library entities and names
35620 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
35622 (Build_Subprogram_Id): New subprogram provided by exp_dist
35623 Code reorganisation in preparation for PolyORB integration.
35625 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
35627 (Build_Subprogram_Id): New subprogram provided by exp_dist
35629 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
35630 actual parameter types for call to dereference of an
35631 access-to-subprogram type.
35633 * rtsfind.ads: Add new runtime library entities and names for PolyORB
35636 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
35637 instead, which has the same behaviour here since we never pass it a
35640 * link.c (run_path_option, Solaris case): Use -Wl, as for other
35643 * Makefile.in: adjust object file lists for gnatlink and gnatmake
35644 to account for new dependency upon Interfaces.C.Strings + link.o
35645 For x86 FreeBSD, use 86numaux.
35647 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
35648 from Mlib.Tgt to Mlib.
35650 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
35651 target-independent.
35653 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
35654 target-specific versions of this subprogram, now implemented as a
35655 target-independent function in Mlib.
35657 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
35658 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
35659 (Linker_Library_Path_Option): Remove target-specific versions of this
35660 subprogram, now implemented as a target-independent function in Mlib.
35662 * atree.adb: (Allocate_Initialize_Node): New subprogram.
35663 Factors out node table slots allocation.
35664 (Fix_Parents): New subprogram.
35665 Encapsulate the pattern of fixing up parent pointers for syntactic
35666 children of a rewritten node.
35667 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
35668 (Rewrite): Use New_Copy when creating saved copy of original node.
35669 (Replace): Use Copy_Node to copy nodes.
35671 2004-04-19 Javier Miranda <miranda@gnat.com>
35673 * sprint.adb (Sprint_Node_Actual): Give support to the new
35674 Access_To_Subprogram node available in Access_Definition nodes. In
35675 addition, give support to the AI-231 node fields: null-exclusion,
35676 all-present, constant-present.
35678 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
35680 * sinfo.ads, sinfo.adb:
35681 New field Access_To_Subprogram_Definition in Access_Definition nodes
35683 * sem_ch6.adb (Process_Formals): Move here the code that creates and
35684 decorates internal subtype declaration corresponding to the
35685 null-excluding formal. This code was previously in Set_Actual_Subtypes.
35686 In addition, carry out some code cleanup on this code. In case of
35687 access to protected subprogram call
35688 Replace_Anonymous_Access_To_Protected_Subprogram.
35689 (Set_Actual_Subtypes): Code cleanup.
35691 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
35692 Find_Type in case of anonymous access renamings. Add warning in case of
35693 null-excluding attribute used in anonymous access renaming.
35695 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
35698 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
35700 (Access_Definition): In case of anonymous access to subprograms call
35701 the corresponding semantic routine to decorate the node.
35702 (Access_Subprogram_Declaration): Addition of some comments indicating
35703 some code that probably should be added here. Detected by comparison
35704 with the access_definition subprogram.
35705 (Analyze_Component_Declaration): In case of access to protected
35706 subprogram call Replace_Anonymous_Access_To_Protected.
35707 (Array_Type_Declaration): In case of access to protected subprogram call
35708 Replace_Anonymous_Access_To_Protected_Subprogram.
35709 (Process_Discriminants): In case of access to protected subprogram call
35710 Replace_Anonymous_Access_To_Protected_Subprogram.
35712 * par.adb (P_Access_Definition): New formal that indicates if the
35713 null-exclusion part was present.
35714 (P_Access_Type_Definition): New formal that indicates if the caller has
35715 already parsed the null-excluding part.
35717 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
35718 (P_Identifier_Declarations): Code cleanup and give support to renamings
35719 of anonymous access to subprogram types.
35720 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
35721 (P_Array_Type_Definition): Give support to AI-254.
35722 (P_Component_Items): Give support to AI-254.
35723 (P_Access_Definition): New formal that indicates if the header was
35724 already parsed by the caller.
35725 (P_Access_Type_Definition): New formal that indicates if the caller has
35726 already parsed the null-excluding part.
35728 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
35729 call to P_Access_Definition.
35731 2004-04-19 Geert Bosch <bosch@gnat.com>
35733 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
35734 the delicate semantics of floating-point to integer conversion.
35735 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
35737 * eval_fat.adb (Machine_Mantissa): Moved to spec.
35738 (Machine_Radix): New function.
35740 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
35742 (Machine_Radix): New function also for use in conversion checks.
35744 2004-04-19 Ed Schonberg <schonberg@gnat.com>
35746 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
35748 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
35749 to decorate the access-to-protected subprogram and the equivalent type.
35751 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
35752 to anonymous access to subprogram types.
35754 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
35755 constant-folding, for legality checks in contexts that require an RM
35758 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
35759 temporary but stack checking is not enabled, increment serial number
35760 to so that symbol generation is consistent with and without stack
35763 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
35764 independent on whether stack checking is enabled, caller must check
35765 the corresponding flag.
35767 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
35769 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
35770 parent if it has discriminants.
35771 (Build_Derived_Private_Type): Constructed full view does
35772 not come from source.
35773 (Process_Discriminants): Default discriminants on a tagged type are
35774 legal if this is the internal completion of a private untagged
35777 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
35778 no constraint checks, because it corresponds to an existing object.
35780 * sem_prag.adb (Process_Convention): Pragma applies
35781 only to subprograms in the same declarative part, i.e. the same unit,
35782 not the same scope.
35784 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
35785 ignore type mismatch on a numeric conversion if expression comes from
35788 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
35790 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
35791 Homonym_Number parameter, add processing for Source_Location parameter
35793 (Check_Eliminated): Remove the check for homonym numbers, add the check
35794 for source location traces.
35796 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
35797 with Arg_Source_Location corresponding to the changes in the format of
35800 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
35801 Eliminate pragma corresponding to the changes in the format of the
35802 pragma: Homonym_Number is replaced with Source_Location, two ways of
35803 distinguishing homonyms are mutially-exclusive.
35805 2004-04-19 Joel Brobecker <brobecker@gnat.com>
35807 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
35809 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
35810 No_Dollar_In_Label, no longer necessary, as it is always True.
35811 (Strip_Suffixes): Likewise.
35813 2004-04-19 Gary Dismukes <dismukes@gnat.com>
35815 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
35816 modulus for compatibility with size clause on targets with 16-bit
35819 * layout.adb (Discrimify): In the case of private types, set Vtyp to
35820 full type to fix type mismatches on calls to size functions for
35821 discriminant-dependent array components.
35823 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
35825 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
35828 2004-04-19 Pascal Obry <obry@gnat.com>
35830 * mdll-utl.adb (Locate): New version is idempotent.
35832 2004-04-17 Laurent Guerby <laurent@guerby.net>
35834 PR ada/14988 (partial)
35835 * impunit.adb: Fix typo.
35837 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
35839 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
35840 and install-rts-cert targets. Remove all gnatlib and gnattools
35841 targets and all other rts-* targets (moved to libada). Remove (now)
35842 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
35843 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
35845 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35847 * trans.c (tree_transform): Shortcut returning error_mark_node for
35848 statements in annotate_only_mode.
35849 (tree_transform, case N_Label, case N_Return_Statement,
35850 N_Goto_Statement): Make statement tree instead of generating code.
35851 (tree_transform, case N_Assignment_Statement): No longer check
35852 type_annotate_only.
35853 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
35855 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
35857 (gnat_to_gnu): Collect any RTL generated and deal with it.
35858 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
35859 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
35860 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
35862 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
35864 * ada-tree.def (EXPR_STMT): Fix typo in name.
35865 (BLOCK_STMT, IF_STMT): New nodes.
35867 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
35868 LABEL_STMT_FIRST_IN_EH): New macros.
35869 (RETURN_STMT_EXPR): Likewise.
35871 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
35872 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
35874 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
35876 * atree.ads: Correct documentation on extended nodes.
35878 * link.c: Set run_path_option for FreeBSD.
35880 2004-04-08 Vincent Celier <celier@gnat.com>
35882 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
35883 one of the ALI file, do not link with DEC lib.
35885 * par.adb Remove the last two characters ("%s" or "%b") when checking
35886 if a language defined unit may be recompiled.
35888 2004-04-08 Ed Schonberg <schonberg@gnat.com>
35890 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
35891 removal of abstract operation leaves no possible interpretation for
35894 * sem_eval.adb (Eval_Qualified_Expression): Use
35895 Set_Raises_Constraint_Error on node when needed, so that it does not
35896 get optimized away by subsequent optimizations.
35898 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
35899 operands even when they are not wrapped in a type conversion.
35901 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
35903 * sem_prag.adb (Set_Exported): Warn about making static as result of
35904 export only when the export is coming from source. This may be not
35905 be true e.g. on VMS where we expand export pragmas for exception codes
35906 together with imported or exported exceptions, and we don't want the
35907 user to be warned about something he didn't write.
35909 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
35911 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
35912 duplication between normal entities and those declared as renamings.
35913 No functional change.
35915 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
35916 inline functions returning an unconstrained result.
35918 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
35920 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
35921 conform to what other front-ends do.
35923 2004-04-08 Doug Rupp <rupp@gnat.com>
35925 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
35928 2004-04-06 Pascal Obry <obry@gnat.com>
35930 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
35932 * osint.adb (Program_Name): Do not look past a directory separator.
35934 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
35936 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35938 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
35939 requirement for preserving a copy of the original assignment node.
35941 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
35943 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
35945 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
35948 2004-04-06 Ed Schonberg <schonberg@gnat.com>
35950 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35951 operator calls in functional notation, and apply
35952 Universal_Interpretation to operands, not to their type.
35954 2004-04-06 Robert Dewar <dewar@gnat.com>
35956 * 5wdirval.adb: Minor reformatting
35958 2004-04-06 Ed Falis <falis@gnat.com>
35960 * gnat_rm.texi: Improve a reference to the GCC manual
35962 2004-04-05 Vincent Celier <celier@gnat.com>
35964 * adaint.h, adaint.c: Add function __gnat_named_file_length
35966 * impunit.adb: Add Ada.Directories to the list
35968 * Makefile.in: Add VMS and Windows versions of
35969 Ada.Directories.Validity package body.
35971 * Makefile.rtl: Add a-direct and a-dirval
35973 * mlib-tgt.ads: Minor comment update.
35975 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35976 a-direct.ads, a-direct.adb: New files.
35978 2004-04-05 Vincent Celier <celier@gnat.com>
35981 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35982 just to the compiler.
35984 2004-04-05 Robert Dewar <dewar@gnat.com>
35986 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35987 returned string is 1.
35989 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35991 * eval_fat.ads: Minor reformatting
35993 * g-curexc.ads: Document that lower bound of returned string values
35996 * gnatlink.adb: Add ??? comment for previous change
35997 (need to document why this is VMS specific)
35999 * s-stoele.ads: Minor reformatting
36001 * tbuild.ads: Minor reformatting throughout (new function specs)
36003 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
36006 * scng.adb: Minor reformatting
36008 2004-04-05 Geert Bosch <bosch@gnat.com>
36010 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
36011 (Leading_Part): Still perform truncation to machine number if the
36012 specified radix_digits is greater or equal to machine_mantissa.
36014 2004-04-05 Javier Miranda <miranda@gnat.com>
36016 * par-ch3.adb: Complete documentation of previous change
36017 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
36018 (aliased must appear before constant).
36020 * par-ch4.adb: Complete documentation of previous change.
36022 * par-ch6.adb: Complete documentation of previous change.
36024 * sinfo.ads: Fix typo in commment.
36026 2004-04-05 Ed Schonberg <schonberg@gnat.com>
36028 * sem_ch3.adb (Inherit_Components): If derived type is private and has
36029 stored discriminants, use its discriminants to constrain parent type,
36030 as is done for non-private derived record types.
36032 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
36033 Ada 2005 AI-310: an abstract non-dispatching operation is not a
36034 candidate interpretation in an overloaded call.
36036 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
36037 expression is Null and target type is not an access type (e.g. a
36038 non-private address type).
36040 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
36042 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
36043 statement whose right-hand side is an inlined call, save a copy of the
36044 original assignment subtree to preserve enough consistency for
36045 Analyze_Assignment to proceed.
36047 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
36048 complete assignment subtree which is now unnecessary, as the expansion
36049 of inlined call has been improved to preserve a consistent assignment
36050 tree. Note_Possible_Modification must be called only
36051 after checks have been applied, or else unnecessary checks will
36054 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
36055 of explicit dereferences that do not Come_From_Source:
36056 - be selective on cases where we must go back to the dereferenced
36057 pointer (an assignment to an implicit dereference must not be
36058 recorded as modifying the pointer);
36059 - do not rely on Original_Node being present (Analyze_Assignment
36060 calls Note_Possible_Modification on a copied tree).
36062 * sem_warn.adb (Check_References): When an unset reference to a pointer
36063 that is never assigned is encountered, prefer '<pointer> may be null'
36064 warning over '<pointer> is never assigned a value'.
36066 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
36068 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
36071 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
36073 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
36074 libexc. We currently don't reference anything in this library and
36075 linking it in triggers linker warnings we don't want to see.
36077 * init.c: Update comments.
36079 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36081 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
36082 * utils.c (create_field_decl): Likewise.
36083 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
36085 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
36087 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
36088 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
36089 Add info directory entry and category.
36091 2004-04-02 Jan Hubicka <jh@suse.cz>
36093 * utils.c: Include function.h
36094 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
36096 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
36099 * Make-lang.in: Clean up generation of documentation
36101 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
36103 * xgnatug.adb: Removed, replaced by xgnatugn.adb
36105 * xgnatugn.adb: Replaces xgnatug.adb
36107 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
36109 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
36111 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36112 gnat_ug_wnt.texi: Removed.
36114 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
36116 * utils2.c: Update copyright notice.
36118 2004-04-01 Robert Dewar <dewar@gnat.com>
36120 * checks.adb: Minor reformatting throughout
36121 Note that prev checkin added RM reference to alignment warning
36123 2004-04-01 Ed Schonberg <schonberg@gnat.com>
36125 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
36126 non-static when building aggregate for bit-packed array.
36128 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
36129 function call that is itself the actual in a procedure call, build
36132 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
36133 a string literal, create a temporary for it, constant folding only
36134 handles scalars here.
36136 2004-04-01 Vincent Celier <celier@gnat.com>
36138 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
36139 Error_Msg_SP): New empty procedures to instantiate the Scanner.
36140 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
36142 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
36143 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
36144 and get the checksum.
36146 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
36148 Increase the Marking_Label at the end of the Multiple_Main_Loop,
36149 instead of at the beginning.
36151 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
36153 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
36156 * osint.ads (Multi_Unit_Index_Character): New Character global variable
36158 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
36161 * par.adb: Remove test on file name to detect language defined units.
36162 Add test on unit name, after parsing, to detect language defined units
36163 that are not compiled with -gnatg (except System.RPC and its children)
36165 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
36166 following units without style checking.
36168 * switch-c.adb: Change -gnatC to -gnateI
36170 * usage.adb: Document new switch -gnateInnn
36172 * scng.adb (Accumulate_Token_Checksum): New procedure
36173 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
36174 word or literal number.
36175 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
36178 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
36181 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
36182 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
36183 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
36184 5vtpopde.adb: Add missing 'constant' keywords.
36186 2004-04-01 Javier Miranda <miranda@gnat.com>
36188 * par-ch4.adb: (P_Allocator): Code cleanup
36190 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
36193 * sinfo.ads: Complete documentation of previous change
36195 2004-04-01 Pascal Obry <obry@gnat.com>
36197 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
36198 only on VMS. This special handling was done because an old GNU/ld bug
36199 on Windows which has been fixed.
36201 2004-04-01 GNAT Script <nobody@gnat.com>
36203 * Make-lang.in: Makefile automatically updated
36205 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36207 * decl.c (gnat_to_gnu_entity, make_type_from_size):
36208 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
36209 * trans.c (tree_transform, convert_with_check): Likewise.
36210 * utils.c (gnat_signed_or_unsigned_type): Likewise.
36211 (build_vms_descriptor, unchecked_convert): Likewise.
36212 * utils2.c (nonbinary_modular_operation): Likewise.
36214 2004-03-29 Javier Miranda <miranda@gnat.com>
36216 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
36217 (Install_Null_Excluding_Check): Local subprogram that determines whether
36218 an access node requires a runtime access check and if so inserts the
36219 appropriate run-time check.
36220 (Apply_Access_Check): Call Install_Null_Excluding check if required
36221 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
36223 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
36225 * einfo.ads: Fix typo in comment
36227 * exp_ch3.adb (Build_Assignment): Generate conversion to the
36228 null-excluding type to force the corresponding run-time check.
36229 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
36230 type to force the corresponding run-time check.
36232 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
36233 the null-excluding type to force the corresponding run-time check.
36235 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
36236 case of access types unless they have the null-excluding attribute.
36238 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
36241 * exp_util.ads: Fix typo in comment
36243 * par.adb (P_Null_Exclusion): New subprogram
36244 (P_Subtype_Indication): New formal that indicates if the null-excluding
36245 part has been scanned-out and it was present
36247 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
36249 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
36250 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
36251 type to force the corresponding run-time check
36252 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
36254 (Resolve_Array_Aggregate): Carry out some static checks
36255 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
36257 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
36258 attribute must be set only if specified by means of the null-excluding
36259 part. In addition, we must also propagate the access-constant attribute
36261 (Access_Subprogram_Declaration, Access_Type_Declaration,
36262 Analyze_Component_Declaration, Analyze_Object_Declaration,
36263 Array_Type_Declaration, Process_Discriminants,
36264 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
36265 and carry out some static checks.
36266 (Build_Derived_Access_Type): Set the null-excluding attribute
36267 (Derived_Type_Declaration, Process_Subtype): Carry out some static
36270 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
36272 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
36274 * sem_ch6.adb (Process_Formals): Carry out some static checks.
36275 (Set_Actual_Subtypes): Generate null-excluding subtype if the
36276 null-excluding part was present; it is not required to be done here in
36277 case of anonymous access types.
36278 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
36281 * sem_res.adb (Resolve_Actuals): Carry out some static check
36282 (Resolve_Null): Allow null in anonymous access
36284 * sinfo.adb: New subprogram Null_Exclusion_Present
36285 All_Present and Constant_Present available on access_definition nodes
36287 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
36288 object_declaration, derived_type_definition, component_definition,
36289 discriminant_specification, access_to_object_definition,
36290 access_function_definition, allocator, access_procedure_definition,
36291 access_definition, parameter_specification, All_Present and
36292 Constant_Present flags available on access_definition nodes.
36294 2004-03-29 Robert Dewar <dewar@gnat.com>
36296 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
36297 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
36298 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
36299 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
36300 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
36301 sem_prag.adb: Updates to handle multiple units/file
36303 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
36305 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
36306 sem_util.adb: Minor reformatting
36308 * sem_ch12.adb: Add comment for previous change
36310 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
36312 * osint.adb (Executable_Prefix): Set Exec_Name to the current
36313 executable name when not initialized. Otherwise, use its current value.
36315 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
36316 initialize it to another executable name than the current one. This
36317 allows to configure paths for an executable name (gnatmake) different
36318 from the current one (gnatdist).
36320 2004-03-29 Ed Schonberg <schonberg@gnat.com>
36322 * exp_ch6.adb (Expand_Call): A call to a function declared in the
36323 current unit cannot be inlined if it appears in the body of a withed
36324 unit, to avoid order of elaboration problems in gigi.
36326 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
36327 information for protected (wrapper) operation as well, to simplify gdb
36330 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
36331 protected body, indicate that the entity for the generated spec comes
36332 from source, to ensure that references are properly generated for it.
36333 (Build_Body_To_Inline): Do not inline a function that returns a
36336 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
36337 apply convention to homonyms that are declared explicitly.
36339 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
36340 that renames an equality operator and the operands are overloaded,
36341 resolve them with the declared formal types, before rewriting as an
36344 2004-03-29 GNAT Script <nobody@gnat.com>
36346 * Make-lang.in: Makefile automatically updated
36348 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
36350 * memtrack.adb: Log realloc calls, which are treated as free followed
36353 2004-03-25 Vincent Celier <celier@gnat.com>
36355 * prj-makr.adb (Process_Directories): Detect when a file contains
36356 several units. Do not include such files in the config pragmas or
36357 in the naming scheme.
36359 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
36360 Resolve links only when not in Trusted_Mode.
36361 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
36362 Do not resolve links for the display names.
36364 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
36365 resolve links when computing the display names.
36367 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
36369 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
36370 attribute reference does not denote a subtype, it can be any
36371 expression that has a classwide type, potentially after an implicit
36372 dereference. In particular, the prefix can be a view conversion for
36373 a classwide type (for which Is_Object_Reference holds), but it can
36374 also be a value conversion for an access-to-classwide type. In the
36375 latter case, there is an implicit dereference, and the original node
36376 for the prefix does not verify Is_Object_Reference.
36378 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
36379 conversion of a discriminant-dependent component of a mutable object
36382 2004-03-25 Ed Schonberg <schonberg@gnat.com>
36384 * freeze.adb (Freeze_Entity): When an inherited subprogram is
36385 inherited, has convention C, and has unconstrained array parameters,
36386 place the corresponding warning on the derived type declaration rather
36387 than the original subprogram.
36389 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
36390 indication on renaming declaration, if formal has a box and actual
36393 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
36394 determine whether to generate an implicit or explicit reference to
36395 the renamed entity.
36397 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
36398 subprogram renaming comes from a defaulted formal subprogram in an
36401 2004-03-25 Gary Dismukes <dismukes@gnat.com>
36403 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
36404 value expressions to ensure that calls within a component definition
36405 will be checked (since those are evaluated during the record type's
36408 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
36410 * s-tpobop.adb: Code clean up:
36411 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
36413 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
36415 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
36417 * Makefile.in: Clean up in the ravenscar run time.
36419 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36421 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
36422 of No_Strict_Aliasing to build_pointer_type_for_mode.
36423 * utils.c (update_pointer_to): Walk pointer and ref chains.
36425 2004-03-22 Cyrille Comar <comar@act-europe.fr>
36427 * ali.ads: Fix Comment about Dynamic_Elab.
36429 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
36430 Has_RACW, Is_Generic, etc.)
36431 (Output_Object, Gnatls): Take into account ALI files not attached to
36434 2004-03-22 Vincent Celier <celier@gnat.com>
36436 * gprep.adb: Change all String_Access to Name_Id
36437 (Is_ASCII_Letter): new function
36438 (Double_File_Name_Buffer): New procedure
36439 (Preprocess_Infile_Name): New procedure
36440 (Process_Files): New procedure
36441 (Gnatprep): Check if output and input are existing directories.
36442 Call Process_Files to do the real job.
36444 2004-03-22 Robert Dewar <dewar@gnat.com>
36446 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
36447 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
36449 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
36451 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
36452 case when the source contains only comments.
36454 2004-03-22 Ed Schonberg <schonberg@gnat.com>
36456 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
36457 declaration for a child subprogram body that acts as a spec, indicate
36458 that the entity in the declaration needs debugging information.
36460 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
36461 full view if the subtype is created for a constrained record component;
36462 gigi has enough information to construct the record, and there is no
36463 place in the tree for the declaration.
36465 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
36466 serial number for the dummy body that is built for analysis, to avoid
36467 inconsistencies in the generation of internal names when compiling
36470 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
36472 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
36475 2004-03-22 GNAT Script <nobody@gnat.com>
36477 * Make-lang.in: Makefile automatically updated
36479 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36481 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
36482 * trans.c (tree_transform, emit_index_check): Likewise.
36483 * utils.c (build_template): Likewise.
36484 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
36485 (maybe_unconstrained_array, unchecked_convert): Likewise.
36486 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
36487 (build_unary_op): Likewise.
36488 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
36489 (fill_vms_descriptor): Likewise.
36490 (build_call_alloc_dealloc): Likewise.
36492 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
36494 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
36497 * gnat_ug.texi: Add info directory category and entry.
36498 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36499 gnat_ug_wnt.texi: Regenerate.
36501 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
36503 * ada-tree.h: Update copyright notice.
36504 Minor reformatting.
36506 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
36508 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
36509 as regular exception objects and not as mere integers representing the
36510 condition code. The latter approach required some dynamics to mask off
36511 severity bits, which did not fit well into the GCC table based model.
36512 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
36513 exception data objects. We don't it and it would conflict with the other
36514 external symbol we have to generate for such exceptions.
36516 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
36517 the special code for VMS exceptions, since these are now represented
36518 as regular exceptions objects.
36520 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36522 * decl.c (debug_no_type_hash): Remove.
36523 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
36524 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
36526 2004-03-19 Laurent Guerby <laurent@guerby.net>
36528 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
36529 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
36531 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36533 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
36534 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
36535 (TYPE_RM_SIZE_INT): Directly use type.values.
36536 (TREE_LOOP_ID): Clean up check.
36537 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
36538 TYPE_VALUES, not TYPE_FIELDS.
36539 * trans.c (convert_with_check): Delay access of bounds of basetype
36540 until sure is numeric.
36542 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
36544 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
36547 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
36548 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
36549 Specific.Set instead of direct call to e.g pthread_setspecific.
36551 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
36553 * adaint.c: Update comments.
36555 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
36556 GNATLIB_SHARED for FreeBSD.
36558 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
36560 * init.c [VxWorks]: Do not fix the stack size for the environment task.
36561 When needed (stack checking) the stack size is retrieved
36562 from the VxWorks kernel.
36564 * Makefile.in: Flag -nostdinc is required when building the run time
36565 for avoiding looking for files in the base compiler.
36566 Add the VxWorks specific version of the package body for
36567 System.Stack_checking.Operations (5zstchop.adb).
36569 * Make-lang.in: Add the object file for
36570 System.Stack_Checking.Operations.
36572 * Makefile.rtl: Add object file for the package
36573 System.Stack_Checking.Operations.
36575 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
36577 * s-stache.ads, s-stache.adb: Move the operations related to stack
36578 checking from this package to package System.Stack_Checking.Operations.
36579 This way, stack checking operations are only linked in the final
36580 executable when using the -fstack-check flag.
36582 2004-03-18 Doug Rupp <rupp@gnat.com>
36584 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
36587 * 5qsystem.ads, 5xcrtl.ads: New files.
36589 2004-03-18 Vincent Celier <celier@gnat.com>
36591 * prj.adb (Reset): Reset hash table Files_Htable
36593 * prj-env.adb (Source_Paths, Object_Paths): New tables.
36594 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
36595 the procedures Add_To_Path_File.
36596 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
36597 making sure that each directory is present only once and, for object
36598 dirs, when a directory already present is added, the duplicate is
36599 removed and the directory is always put as the last in the table.
36600 Write the path files at the end of these accumulations.
36602 * prj-nmsc.adb (Record_Source): Add source file name in hash table
36603 Files_Htable for all sources.
36605 * prj-proc.adb (Process): Remove restrictions between not directly
36606 related extending projects.
36608 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
36610 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
36611 (Find_Sources): Minor speed optimization.
36613 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
36614 parameter Trusted_Mode.
36616 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
36618 * scn.adb (Determine_License): Take into account a degenerated case
36619 when the source contains only comments.
36621 2004-03-18 Ed Schonberg <schonberg@gnat.com>
36623 * sem_warn.adb (Check_References): For a warning on a selected
36624 component that does not come from source, locate an uninitialized
36625 component of the record type to produce a more precise error message.
36627 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
36629 * 3zsoccon.ads: Fix multicast options.
36631 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
36634 2004-03-15 Robert Dewar <dewar@gnat.com>
36636 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
36637 pragma used for a private type.
36639 * lib-xref.adb (Generate_Reference): Do not generate warning if
36640 reference is in a different unit from the pragma Unreferenced.
36642 * 5vtpopde.adb: Minor reformatting
36643 Fix casing of To_Task_ID
36645 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
36646 flag if we have an unchecked conversion to an access type in the same
36649 2004-03-15 Geert Bosch <bosch@gnat.com>
36651 * a-ngcoty.adb (Modulus): In alternate formula for large real or
36652 imaginary parts, use Double precision throughout.
36654 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
36655 we want to be able to compile run-time with -gnata for testing, but
36656 this may also be instantiated in user code that is compiled with -gnata.
36658 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
36660 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
36661 codes. Having a separate type for this is useful to enforce consistency
36662 throughout the various run-time units.
36663 (Exception_Data): Use Exception_Code for Import_Code.
36665 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
36666 Natural and Integer in various places.
36667 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
36668 with the severity bits masked off.
36669 (Register_VMS_Exception): Handle the additional exception data pointer
36672 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
36673 component, now reflected by an exported accessor.
36674 (is_handled_by): New routine to compute whether the propagated
36675 occurrence matches some handler choice specification. Extracted out of
36676 get_action_description_for, and expanded to take care of the VMS
36678 (get_action_description_for): Use is_handled_by instead of an explicit
36679 complex condition to decide if the current choice at hand catches the
36680 propagated occurrence.
36682 * raise.h (Exception_Code): New type for C.
36684 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
36685 System.Standard_Library.Exception_Code, to allow references from the
36686 pragma import/export expander.
36688 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
36689 New accessors to allow easy access to GNAT exception data
36691 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
36692 redundant Handled_By_Others component, helper for the personality
36693 routine which will now be able to call the appropriate exception data
36696 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
36697 component of Standard_Exception_Type to be the closest possible to
36698 Exception_Code in System.Standard_Library, that we cannot get at this
36699 point. Expand a ??? comment to notify that this type node should
36700 probably be rewritten later on.
36702 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
36703 registration call to include a pointer to the exception object in the
36706 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
36707 instead of int and explicit bitmasks.
36709 2004-03-15 Vincent Celier <celier@gnat.com>
36711 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
36712 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
36714 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
36715 longer needed now that it is in the spec of
36716 System.Tasking.Task_Attributes.
36718 * adaint.h, adaint.c: (__gnat_create_output_file): New function
36720 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
36722 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
36724 * make.adb (Gnatmake): Do not check the executable suffix; it is being
36725 taken care of in Scan_Make_Arg.
36726 (Scan_Make_Arg): Add the executable suffix only if the argument
36727 following -o, in canonical case, does not end with the executable
36728 suffix. When in verbose mode and executable file name does not end
36729 with executable suffix, output the executable name, in canonical case.
36731 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
36732 to avoid warnings when instantiating Ada.Task_Attributes.
36735 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
36736 in the correct order.
36738 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
36739 redirect standard output and error to a file for the invocation of the
36740 compiler, then read the file.
36742 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
36743 directory, instead of the Value.
36744 (Find_Source_Dirs): Remove useless code & comments.
36746 2004-03-15 Ed Schonberg <schonberg@gnat.com>
36748 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
36749 tagged type is inherited, and the parent operation is not frozen yet,
36750 force generation of a freeze node for the inherited operation, so the
36751 corresponding dispatch entry is properly initialized.
36752 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
36753 when looking for user-defined equality operation.
36755 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
36756 boolean when locating primitive equality of tagged component.
36758 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
36759 bit-aligned field and the right-hand side a string literal, introduce
36760 a temporary before expanding assignment into a loop.
36762 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
36763 priority in full, to ensure that any expanded subepxressions of it are
36764 elaborated in the scope of the init_proc.
36766 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
36767 after object declaration, skipping over code that may have been
36768 generated for validity checks.
36770 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
36771 discriminants, ignore the known discriminants of its full view, if
36772 any, to check legality.
36774 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
36775 component if type has unknown discriminants.
36776 (Analyze_Private_Extension_Declaration): Discriminant constraint is
36777 null if type has unknown discriminants.
36779 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
36780 for end label when present.
36782 * s-fileio.adb (Open): When called with a C_Stream, use given name for
36783 temporary file, rather than an empty string.
36785 2004-03-15 Ed Falis <falis@gnat.com>
36787 * s-thread.adb: Removed, no longer used.
36789 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36791 * decl.c (target.h): Now include.
36792 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
36793 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
36794 (validate_size): For POINTER_TYPE, get smallest size permitted on
36797 * fe.h: Sort Einfo decls and add Set_Mechanism.
36799 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
36800 (ada/decl.o): Depends on target.h.
36802 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
36803 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
36805 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
36807 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
36809 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
36810 Insert_Dereference_Action when rewriting an implicit dereference into
36811 an explicit one, this will be taken care of during expansion of the
36812 explicit dereference.
36813 (Expand_N_Slice): Same. Always do the rewriting, even for the case
36814 of non-packed slices, since the dereference action generated by
36815 expansion of the explicit dereference is needed in any case.
36816 (Expand_N_Selected_Component): When rewriting an implicit dereference,
36817 analyze and resolve the rewritten explicit dereference so it is seen
36819 (Insert_Dereference_Action): This procedure is now called only for the
36820 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
36821 dereferences that do not come from source (including explicit
36822 dereferences resulting from rewriting implicit ones), but do not
36823 recursively insert a check for the dereference nodes contained within
36825 (Insert_Dereference_Action): Clarify and correct comment.
36827 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
36830 Move language detection to the top level.
36831 * config-lang.in: Build by default.
36833 2004-03-05 Robert Dewar <dewar@gnat.com>
36835 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
36837 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
36838 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
36839 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
36840 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
36841 unchecked conversion to spec to avoid warnings.
36843 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
36846 * 7stpopsp.adb: Correct casing in To_Task_ID call
36848 * a-strsea.ads, a-strsea.adb: Minor reformatting
36850 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
36852 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
36853 Adjust Max_Msg_Length to be clearly large enough.
36855 * fe.h: Define In_Same_Source_Unit
36857 * osint.adb: Add pragma Warnings Off to suppress warnings
36858 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
36861 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
36863 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
36865 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
36867 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
36869 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
36871 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
36872 node. We now do generate them for gcc back end.
36874 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
36877 * sinput-c.adb: Fix bad name in header.
36878 Add pragma Warnings Off to suppress aliasing warning.
36880 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
36882 * snames.h, snames.ads, snames.adb: Add entry for pragma
36883 No_Strict_Aliasing.
36885 2004-03-05 Vincent Celier <celier@gnat.com>
36887 * prj-com.ads: Add hash table Files_Htable to check when a file name
36888 is already a source of another project.
36890 * prj-nmsc.adb (Record_Source): Before recording a new source, check
36891 if its file name is not already a source of another project. Report an
36894 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
36895 source file name, call gnatpp with all the sources of the main project.
36897 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
36900 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
36901 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
36902 /RUNTIME_SYSTEM=, converted to --RTS=
36903 /NOTABS, converted to -notabs
36905 2004-03-05 Pascal Obry <obry@gnat.com>
36907 * make.adb: Minor reformatting.
36909 2004-03-05 Ed Schonberg <schonberg@gnat.com>
36911 Part of implemention of AI-262.
36912 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
36914 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
36917 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
36918 when component type is a partially constrained class-wide subtype.
36919 (Constrain_Discriminated_Type): If parent type has unknown
36920 discriminants, a constraint is illegal, even if full view has
36922 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
36923 with unknown discriminants whose full view is a discriminated record.
36925 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
36926 flag, to handle properly derivations of tagged types with unknown
36928 (Analyze_Package_Spec, Analyze_Package_Body): Install
36929 Private_With_Clauses before analyzing private part or body.
36931 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
36932 Has_Discriminants can be true for a given type (documentation).
36934 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
36936 * s-restri.ads: Fix license (GPL->GMGPL).
36938 * s-tassta.adb: Minor reformatting.
36940 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36941 by calls to Exit_One_ATC_Level, since additional clean up is performed
36944 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36945 by calls to Exit_One_ATC_Level, since additional clean up is performed
36948 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36950 * trans.c: Reflect GCC changes to fix bootstrap problem.
36951 Add warning for suspicious aliasing unchecked conversion.
36953 2004-03-05 GNAT Script <nobody@gnat.com>
36955 * Make-lang.in: Makefile automatically updated
36957 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
36959 * ali.adb (Read_Instantiation_Instance): Do not modify the
36960 current_file_num when reading information about instantiations, since
36961 this corrupts files in later references.
36963 2004-03-02 Vincent Celier <celier@gnat.com>
36965 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36966 before checking if it is read-only.
36968 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36969 of SRC_DIRS and eliminate duplicates.
36971 * gprcmd.adb: Replace command "path" with command "path_sep" to return
36972 the path separator.
36973 (Usage): Document path_sep
36975 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36976 C++ compiler. No need for a script.
36977 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36978 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36981 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36982 where there are Ada sources.
36983 (Set_Ada_Paths): Only add to the include path the source dirs of project
36985 (Add_To_Path): Add the Display_Values of the directories, not their
36988 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36991 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36993 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36994 Value is canonicalized.
36995 (Language_Independent_Check): Do not copy Value to Display_Value when
36996 canonicalizing Value.
36998 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36999 path to find limited with cycles.
37000 (Parse_Single_Project): Use canonical cased path to find the end of a
37003 2004-03-02 Ed Schonberg <schonberg@gnat.com>
37005 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
37006 and not a child unit.
37008 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
37009 appear in a with_clause.
37011 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
37012 only happen in type_annotate mode, do not try to elaborate it.
37014 * exp_util.adb (Force_Evaluation): If expression is a selected
37015 component on the left of an assignment, use a renaming rather than a
37016 temporary to remove side effects.
37018 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
37019 inlined instance body, which is analyzed before the end of the
37022 2004-03-02 Robert Dewar <dewar@gnat.com>
37024 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
37025 sem_ch4.adb: Use new feature for substitution of keywords in VMS
37027 * errout.ads, errout.adb: Implement new circuit for substitution of
37030 * sem_case.adb (Analyze_Choices): Place message properly when case is
37031 a subtype reference rather than an explicit range.
37033 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
37035 2004-03-02 Doug Rupp <rupp@gnat.com>
37037 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
37039 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
37041 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
37043 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37045 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
37048 2004-02-25 Robert Dewar <dewar@gnat.com>
37050 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
37051 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
37052 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
37053 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
37054 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
37055 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
37056 the defining instance of the type to avoid aliasing problems.
37057 Fix copyright header. Fix bad comments in package header.
37059 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
37061 2004-02-25 Ed Schonberg <schonberg@gnat.com>
37063 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
37064 rewritten as references when aliased through an address clause.
37066 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
37067 whether call can be interpreted as an indirect call to the result of a
37068 parameterless function call returning an access subprogram.
37070 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
37073 * exp_ch7.adb (Make_Clean): Remove generation of calls to
37074 Unlock[_Entries], since this is now done by Service_Entries directly.
37076 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
37078 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
37079 Requeue_Call for better code readability. Change spec and update calls:
37080 PO_Service_Entries now unlock the PO on exit.
37081 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
37082 PO_Service_Entries.
37084 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
37086 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
37088 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
37090 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
37091 protected subprogram call and analyzing the result of such expanding
37092 in case when the called protected subprogram is eliminated.
37094 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
37097 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
37099 * Makefile.in: Clean ups.
37101 2004-02-23 Ed Schonberg <schonberg@gnat.com>
37103 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
37104 protected operations if original subprogram is flagged as eliminated.
37105 (Expand_N_Subprogram_Body): For a protected operation, create
37106 discriminals for next operation before checking whether the operation
37109 * exp_ch9.adb (Expand_N_Protected_Body,
37110 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
37111 for internal protected operations if the original subprogram is
37114 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
37115 declared in a single protected object.
37117 2004-02-23 Vincent Celier <celier@gnat.com>
37119 * prj-attr.adb: Make attribute Builder'Executable an associative array,
37120 case insensitive if file names are case insensitive, instead of a
37121 standard associative array.
37123 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
37124 them as case insensitive on platforms where the file names are case
37127 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
37128 project file has already been parsed that canonical path are compared.
37130 2004-02-23 Robert Dewar <dewar@gnat.com>
37132 * sinput-c.ads: Correct bad unit title in header
37134 * freeze.adb: Minor reformatting
37136 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37138 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
37139 nonaddressable COMPONENT_REF that is removing padding that we are
37140 taking the address of, take the address of the padded record instead
37141 if item is variable size.
37143 2004-02-20 Robert Dewar <dewar@gnat.com>
37145 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
37147 2004-02-20 Ed Schonberg <schonberg@gnat.com>
37149 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
37150 itype references for the constrained designated type of a component
37151 whose base type is already frozen.
37153 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
37155 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
37156 avoid GCC warnings.
37158 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
37160 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
37161 identifier for a phantom package that rewrites the formal package
37162 declaration with a box. The Add semantic decorations for the defining
37163 identifier from the original node (that represents the formal package).
37165 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
37167 * Make-lang.in (ada/stamp-sdefault): Use the top level
37170 2004-02-19 Richard Henderson <rth@redhat.com>
37172 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
37174 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
37176 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
37177 Scan_ALI can be used for multiple ALI files without reinitializing
37180 2004-02-18 Robert Dewar <dewar@gnat.com>
37182 * debug.adb: Minor reformatting.
37184 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37186 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
37187 to zero if there is an address clause.
37189 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
37191 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
37193 2004-02-18 Gary Dismukes <dismukes@gnat.com>
37195 * layout.adb (Layout_Component_List): Revise generation of call to
37196 discriminant-checking function to pass selections of all of the type's
37197 discriminants rather than just the variant-controlling discriminant.
37199 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
37201 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
37202 fail in the current setup and triggers spurious system error messages.
37203 Pretend it occurred and failed instead.
37205 2004-02-18 Vincent Celier <celier@gnat.com>
37207 * bld.adb: Mark FLDFLAGS as saved
37208 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
37209 it is not the root project. Put each directory to be
37210 extended between double quotes to prevent it to be expanded on Windows.
37211 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
37212 the project file. Set them back to their initial values if they have not
37213 been set in the project file.
37215 * gprcmd.adb: (Gprdebug, Debug): New global variables
37216 (Display_Command): New procedure
37217 (Usage): Document new command "linkopts"
37218 Call Display_Command when env var GPRDEBUG has the value "TRUE"
37219 Implement new command "linkopts"
37220 Remove quotes that may be around arguments for "extend"
37221 Always call Normalize_Pathname with arguments formatted for the platform
37223 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
37224 Change @echo to @$(display) in target clean to be able to clean silently
37226 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
37228 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
37231 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
37232 = Extending_All when current project is an extending all project.
37234 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
37235 set to True only for LINK command, after Unix switch -o.
37236 (Process_Arguments): Set Output_File_Expected to True for LINK command
37237 after Unix switch -o. When Output_File_Expected is True, never add an
37238 extension to a file name.
37240 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
37241 option file name, only to the --for-linker= switch.
37242 (Option_File_Name): If option file name do not end with ".opt", append
37245 2004-02-18 GNAT Script <nobody@gnat.com>
37247 * Make-lang.in: Makefile automatically updated
37249 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
37251 * Make-lang.in (stamp-sdefault): Do not depend on
37254 2004-02-12 Zack Weinberg <zack@codesourcery.com>
37256 * config-lang.in: Disable Ada by default until probe logic for
37257 a bootstrap Ada compiler can be moved to the top level configure
37260 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
37262 * decl.c (components_to_record): Don't claim that the internal fields
37263 we make to hold the variant parts are semantically addressable, because
37266 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
37267 adjust the comment describing the modular type form when we can use it.
37268 (Install_PAT): Account for the Esiz renaming.
37270 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
37271 sc_onstack context indication before raising the exception to which
37272 the signal is mapped. Allows better handling of later signals possibly
37273 triggered by the resumed user code if the exception is handled.
37275 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
37277 * 5zinit.adb: Removed, no longer used.
37279 2004-02-12 Robert Dewar <dewar@gnat.com>
37281 * ali.adb: Remove separating space between parameters on R line. Makes
37282 format consistent with format used by the binder for Set_Globals call.
37284 * atree.ads, atree.adb: Minor reformatting (new function header format)
37286 * bindgen.adb: Add Run-Time Globals documentation section containing
37287 detailed documentation of the globals passed from the binder file to
37290 * gnatls.adb: Minor reformatting
37292 * init.c (__gnat_set_globals): Add note pointing to documentation in
37295 * lib-writ.ads, lib-writ.adb: Remove separating space between
37296 parameters on R line.
37297 Makes format consistent with format used by the binder for Set_Globals
37300 * osint.ads: Add 2004 to copyright notice
37303 * snames.ads: Correct capitalization of FIFO_Within_Priorities
37304 Noticed during code reading, documentation issue only
37306 * usage.adb: Remove junk line for obsolete C switch
37307 Noticed during code reading
37309 2004-02-12 Vincent Celier <celier@gnat.com>
37311 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
37312 extend for each directory, so that multiple /** directories are
37313 extended individually.
37314 (Recursive_Process): Set the default for LANGUAGES to ada
37316 * gprcmd.adb: Define new command "ignore", to do nothing.
37317 Implement new comment "path".
37319 * Makefile.generic: Suppress output when SILENT is set
37320 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
37321 used, so that the correct compiler is invoked.
37322 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
37323 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
37325 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
37327 * Makefile.in: Clean ups and remove obsolete targets.
37329 2004-02-12 Ed Schonberg <schonberg@gnat.com>
37331 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
37332 predicate declared in exp_util.
37334 * exp_util.adb: Add comments.
37336 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
37337 visibility before compiling context of the subunit.
37339 * sem_res.adb (Check_Parameterless_Call): If the context expects a
37340 value but the name is a procedure, do not attempt to analyze as a call,
37341 in order to obtain more telling diagnostics.
37343 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
37344 'Access on parameterless function calls.
37345 (Normalize_Actuals): For a parameterless function call with missing
37346 actuals, defer diagnostic until resolution of enclosing call.
37348 * sem_util.adb (Wrong_Type): If the context type is an access to
37349 subprogram and the expression is a procedure name, suggest a missing
37352 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
37353 Nathanael Nerode <neroden@gcc.gnu.org>
37357 Merge with libada-branch:
37358 * config-lang.in: Build libada only when ada is built.
37360 2004-02-09 Ed Schonberg <schonberg@gnat.com>
37362 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
37363 for a tagged type, verify that both formals have the same type.
37365 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
37366 temporary when the formal is an in-parameter and the actual a possibly
37369 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
37370 when expansion is disabled, to ensure proper name capture with
37371 overloaded literals. Condition can be of any boolean type, resolve
37374 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
37375 renaming is for a formal subprogram with a default operator name, and
37376 there is a usable operator that is visible at the point of
37379 2004-02-09 Robert Dewar <dewar@gnat.com>
37381 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
37382 rewrite to ignore errors in ali files, intended to allow tools downward
37383 compatibility with new versions of ali files.
37385 * ali.ads: Add new parameter Ignore_Errors
37387 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
37388 duplicating the error message giving the file with restrictions.
37390 * debug.adb: Add debug flag I for gnatbind
37392 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
37393 operators for the case where the operator is a defining operator.
37395 * exp_ch3.adb: Minor reformatting (new function spec format).
37397 * exp_ch4.adb: Add comment for previous change, and make minor
37398 adjustment to loop to always check for improper loop termination.
37399 Minor reformatting throughout (new function spec format).
37401 * gnatbind.adb: Implement -di debug flag for gnatbind
37403 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
37405 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
37407 * lib-load.adb: Fix bad assertion.
37408 Found by testing and code reading.
37409 Minor reformatting.
37411 * lib-load.ads: Minor reformatting.
37413 * lib-writ.adb: There is only one R line now.
37415 * lib-writ.ads: Add documentation on making downward compatible changes
37416 to ali files so old tools work with new ali files.
37417 There is only one R line now.
37418 Add documentation on format incompatibilities (with special GPS note)
37420 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
37422 * par-load.adb: Minor reformatting
37424 * sem_ch8.adb: Fix to error message from last update
37425 Minor reformatting and restructuring of code from last update
37427 * par-prag.adb, snames.adb, snames.ads, snames.h,
37428 sem_prag.adb: Implement pragma Profile.
37430 * stylesw.adb: Implement -gnatyN switch to turn off all style check
37433 * usage.adb: Add line for -gnatyN switch
37435 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
37437 2004-02-09 Albert Lee <lee@gnat.com>
37439 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
37441 2004-02-09 Ed Schonberg <schonberg@gnat.com>
37443 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
37446 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
37447 is nested in an instance that is not frozen yet, to avoid
37448 order-of-elaboration problems in gigi.
37450 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
37451 body the attribute is legal.
37453 2004-02-09 Robert Dewar <dewar@gnat.com>
37455 * s-rident.ads: Minor comment correction
37457 * targparm.adb: Remove dependence on uintp completely. There was
37458 always a bug in Make in that it called Targparm before initializing
37459 the Uint package. The old code appeared to get away with this, but
37460 the new code did not! This caused an assertion error in gnatmake.
37462 * targparm.ads: Fix bad comment, restriction pragmas with parameters
37463 are indeed fully supported.
37465 2004-02-06 Alan Modra <amodra@bigpond.net.au>
37467 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
37469 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
37471 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
37472 with targetm.calls.promote_prototypes.
37474 2004-02-04 Robert Dewar <dewar@gnat.com>
37476 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
37477 ali.ads, gprcmd.adb: Minor reformatting
37479 * bindgen.adb: Output restrictions string for new style restrictions
37482 * impunit.adb: Add s-rident.ads (System.Rident) and
37483 s-restri (System.Restrictions)
37485 * lib-writ.adb: Fix bug in writing restrictions string (last few
37488 * s-restri.ads, s-restri.adb: Change name Restrictions to
37489 Run_Time_Restrictions to avoid conflict with package name.
37490 Add circuit to read and acquire run time restrictions.
37492 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
37494 * restrict.ads, restrict.adb: Use the new restriction
37495 No_Task_Attributes_Package instead of the old No_Task_Attributes.
37497 * sem_prag.adb: No_Task_Attributes is a synonym of
37498 No_Task_Attributes_Package.
37500 * snames.ads, snames.adb: New entry for proper handling of
37501 No_Task_Attributes.
37503 * s-rident.ads: Adding restriction No_Task_Attributes_Package
37504 (AI-00249) that supersedes the GNAT specific restriction
37505 No_Task_Attributes.
37507 2004-02-04 Ed Schonberg <schonberg@gnat.com>
37510 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
37511 body, an identifier may be wrapped in an unchecked conversion.
37513 2004-02-04 Vincent Celier <celier@gnat.com>
37515 * lib-writ.ads: Comment update for the W lines
37517 * bld.adb: (Expression): An empty string list is static
37519 * fname-uf.adb: Minor comment update
37521 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
37523 * gnatbind.adb: Initialize Cumulative_Restrictions with the
37524 restrictions on the target.
37526 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
37528 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
37531 2004-02-02 Arnaud Charlet <charlet@gnat.com>
37533 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
37535 2004-02-02 Vincent Celier <celier@gnat.com>
37537 * gprcmd.adb (Check_Args): If condition is false, print the invoked
37538 comment before the usage.
37539 Gprcmd: Fail when command is not recognized.
37540 (Usage): Document command "prefix"
37542 * g-md5.adb (Digest): Process last block.
37543 (Update): Do not process last block. Store remaining characters and
37546 * g-md5.ads (Update): Document that several call to update are
37547 equivalent to one call with the concatenated string.
37548 (Context): Add fields to allow new Update behaviour.
37550 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
37551 defaulted to False.
37552 When May_Fail is True and no existing file can be found, return No_File.
37554 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
37557 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
37558 spec file name instead on the W line.
37560 2004-02-02 Robert Dewar <dewar@gnat.com>
37562 * ali.adb: Read and acquire info from new format restrictions lines
37564 * bcheck.adb: Add circuits for checking restrictions with parameters
37566 * bindgen.adb: Output dummy restrictions data
37567 To be changed later
37569 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
37570 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
37571 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
37572 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
37573 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
37575 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
37576 the warning message on access to possibly uninitialized variable S)
37577 Minor changes for new restrictions handling.
37579 * gnatbind.adb: Minor reformatting
37580 Minor changes for new restrictions handling
37581 Move circuit for -r processing here from bcheck (cleaner)
37583 * gnatcmd.adb, gnatlink.adb: Minor reformatting
37585 * lib-writ.adb: Output new format restrictions lines
37587 * lib-writ.ads: Document new R format lines for new restrictions
37590 * s-restri.ads/adb: New files
37592 * Makefile.rtl: Add entry for s-restri.ads/adb
37594 * par-ch3.adb: Fix bad error messages starting with upper case letter
37597 * restrict.adb: Major rewrite throughout for new restrictions handling
37598 Major point is to handle restrictions with parameters
37600 * restrict.ads: Major changes in interface to handle restrictions with
37601 parameters. Also generally simplifies setting of restrictions.
37603 * snames.ads/adb: New entry for proper handling of No_Requeue
37605 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
37606 restriction counting.
37607 Other minor changes for new restrictions handling
37609 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
37610 Restriction_Warnings now allows full parameter notation
37611 Major rewrite of Restrictions for new restrictions handling
37613 2004-02-02 Javier Miranda <miranda@gnat.com>
37615 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
37616 syntax rule for object renaming declarations.
37617 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
37618 component definitions.
37620 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
37622 (Array_Type_Declaration): Give support to access components. In addition
37623 it was also modified to reflect the name of the object in anonymous
37624 array types. The old code did not take into account that it is possible
37625 to have an unconstrained anonymous array with an initial value.
37626 (Check_Or_Process_Discriminants): Allow access discriminant in
37628 (Process_Discriminants): Allow access discriminant in non-limited types
37629 Initialize the new Access_Definition field in N_Object_Renaming_Decl
37630 node. Change Ada0Y to Ada 0Y in comments
37632 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
37633 equality operators.
37634 Change Ada0Y to Ada 0Y in comments
37636 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
37637 renamings Change Ada0Y to Ada 0Y in comments
37639 * sem_type.adb (Find_Unique_Type): Give support to the equality
37640 operators for universal access types
37641 Change Ada0Y to Ada 0Y in comments
37643 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
37645 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
37647 (N_Object_Renaming_Declaration): Addition of Access_Definition field
37648 Change Ada0Y to Ada 0Y in comments
37650 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
37651 component definition and object renaming nodes
37652 Change Ada0Y to Ada 0Y in comments
37654 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
37656 * restrict.adb: Use the new restriction identifier
37657 No_Requeue_Statements instead of the old No_Requeue for defining the
37658 restricted profile.
37660 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
37661 No_Requeue_Statements.
37663 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
37664 that supersedes the GNAT specific restriction No_Requeue. The later is
37665 kept for backward compatibility.
37667 2004-02-02 Ed Schonberg <schonberg@gnat.com>
37669 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
37670 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
37671 pragma and fix incorrect ones.
37673 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
37674 warning if the pragma is redundant.
37676 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
37678 * 5staprop.adb: Add missing 'constant' keywords.
37680 * Makefile.in: use consistent value for SYMLIB on
37681 platforms where libaddr2line is supported.
37683 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37685 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
37688 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
37690 * init.c (__gnat_install_handler): Setup an alternate stack for signal
37691 handlers in the environment thread. This allows proper propagation of
37692 an exception on stack overflows in this thread even when the builtin
37693 ABI stack-checking scheme is used without support for a stack reserve
37696 * utils.c (create_field_decl): Augment the head comment about bitfield
37697 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
37698 here, because the former is not accurate enough at this point.
37699 Let finish_record_type decide instead.
37700 Don't make a bitfield if the field is to be addressable.
37701 Always set a size for the field if the record is packed, to ensure the
37702 checks for bitfield creation are triggered.
37703 (finish_record_type): During last pass over the fields, clear
37704 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
37705 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
37706 from DECL_BIT_FIELD.
37708 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
37710 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
37711 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
37712 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
37714 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37716 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
37718 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
37719 (ZCX_By_Default): Likewise.
37720 (Front_End_ZCX_Support): Likewise.
37722 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
37723 (Initialize_Lock): Mark Level unreferenced.
37724 (Sleep): Mark Reason unreferenced.
37725 (Timed_Sleep): Likewise.
37726 (Wakeup): Likewise.
37727 (Exit_Task): Use Result.
37728 (Check_No_Locks): Mark Self_ID unreferenced.
37730 * 5gtasinf.adb (New_Sproc): Make Attr constant.
37731 (Bound_Thread_Attributes): Make Sproc constant.
37732 (New_Bound_Thread_Attributes): Likewise.
37734 2004-01-26 Ed Schonberg <schonberg@gnat.com>
37736 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
37737 one-dimensional array an slice assignments, when component type is
37740 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
37741 component type is controlled, and control_actions are in effect, use
37742 TSS procedure rather than generating inline code.
37744 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
37745 arrays with controlled components.
37747 2004-01-26 Vincent Celier <celier@gnat.com>
37749 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
37750 command line for the non VMS case.
37752 * gnatlink.adb (Process_Binder_File): When building object file, if
37753 GNU linker is used, put all object paths between quotes, to prevent ld
37754 error when there are unusual characters (such as '!') in the paths.
37756 * Makefile.generic: When there are sources in Ada and the main is in
37757 C/C++, invoke gnatmake with -B, instead of -z.
37759 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
37760 from VMS_Conversion.
37761 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
37762 specification of argument file on the command line.
37764 2004-01-26 Bernard Banner <banner@gnat.com>
37766 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
37768 2004-01-26 Ed Schonberg <schonberg@gnat.com>
37770 * snames.adb: Update copyright notice.
37771 Add info on slice assignment for controlled arrays.
37773 2004-01-23 Robert Dewar <dewar@gnat.com>
37775 * exp_aggr.adb: Minor reformatting
37777 * exp_ch9.adb: Minor code clean up
37779 Fix bad character in comment
37782 * targparm.adb (Get_Target_Parameters): Give clean abort error on
37783 unexpected end of file, along with more detailed message.
37785 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37787 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
37790 * decl.c (copy_alias_set): New function.
37791 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
37793 2004-01-23 Doug Rupp <rupp@gnat.com>
37795 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
37796 lib$${file} in case subsequent character is not a separator.
37798 2004-01-23 Vincent Celier <celier@gnat.com>
37800 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
37801 when the GCC version is at least 3.
37803 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
37804 Remove all "Opt.", to prepare for opt split
37806 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
37807 Extends_All. Set to True when the project parsed is an extending all
37808 project. Fails for importing an extending all project only when the
37809 imported project is an extending all project.
37810 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
37811 depending on the value of Extends_All returned.
37813 * prj-proc.adb (Process): Check that no project shares its object
37814 directory with a project that extends it, directly or indirectly,
37815 including a virtual project.
37816 Check that no project extended by another project shares its object
37817 directory with another also extended project.
37819 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
37820 Kind = N_With_Clause
37822 * prj-tree.ads: Minor reformatting
37823 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
37825 2004-01-23 Ed Schonberg <schonberg@gnat.com>
37827 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
37828 applies to a type with an incomplete view, use full view in Name of
37829 clause, for consistency with uses of Get_Attribute_Definition_Clause.
37831 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
37833 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
37834 SCHED_RR, since other values are not supported by this policy.
37835 (Initialize): Move initialization of mutex attribute to package
37836 elaboration, to prevent early access to this variable.
37838 * Makefile.in: Remove mention of Makefile.adalib, unused.
37840 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37841 1ssecsta.ads: Removed, unused.
37843 2004-01-21 Javier Miranda <miranda@gnat.com>
37845 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
37846 entity if already built in the current scope.
37848 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
37849 reminder in internal scopes. Required for nested limited aggregates.
37851 2004-01-21 Doug Rupp <rupp@gnat.com>
37853 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
37854 VMS. Replace all occurences of libgnat- and libgnarl- with
37855 libgnat$(hyphen) and libgnarl$(hyphen).
37856 Fixed shared library build problem on VMS.
37858 2004-01-21 Robert Dewar <dewar@gnat.com>
37860 * mlib-prj.adb: Minor reformatting
37862 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
37864 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
37865 'constant' keywords for declaration of pointers that are not modified.
37867 * exp_pakd.adb: Fix English in comment.
37869 2004-01-21 Ed Schonberg <schonberg@gnat.com>
37872 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
37873 copy all attributes of the parent, including the foreign language
37876 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
37879 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
37880 for 'delay until' statement.
37882 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
37884 * Make-lang.in: Replace $(docdir) with doc.
37885 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
37886 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
37887 to use consistent MAKEINFO rule.
37888 (ada.man, ada.srcman): Dummy entry.
37889 (ADA_INFOFILES): Define.
37890 (ada.info, ada.srcinfo): New rules.
37892 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
37894 * utils.c: Update copyright notice, missed in previous change.
37896 2004-01-19 Vincent Celier <celier@gnat.com>
37898 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
37899 args if Bind is True. Set First_ALI, if not already done.
37900 (Build_Library): For Stand Alone Libraries, extract from one ALI file
37901 an eventual --RTS switch, for gnatbind, and all backend switches +
37902 --RTS, for linking.
37904 2004-01-19 Robert Dewar <dewar@gnat.com>
37906 * sem_attr.adb, memtrack.adb: Minor reformatting
37908 2004-01-19 Ed Schonberg <schonberg@gnat.com>
37910 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
37911 that rename enumeration literals. This is properly done in sem_eval.
37913 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
37914 to functions that rename enumeration literals.
37916 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
37917 functions that rename enumeration literals.
37919 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
37921 * Make-lang.in (utils.o): Depend on target.h.
37922 * utils.c: Include target.h.
37923 (process_attributes): Use targetm.have_named_sections instead
37924 of ASM_OUTPUT_SECTION_NAME.
37926 2004-01-16 Andreas Jaeger <aj@suse.de>
37928 * Makefile.in: Add $(DESTDIR).
37930 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
37932 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
37933 also when not defining if a Size clause applies. That information is
37936 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
37938 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
37939 symbolic links for the shared gnat run time when needed.
37941 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
37943 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
37944 for writing, and terminate with an error message if not.
37946 2004-01-15 Ed Schonberg <schonberg@gnat.com>
37948 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
37949 warning on an access to subprogram in an instance, when the target
37950 type is declared in the same generic unit.
37951 (Eval_Attribute): If 'access is known to fail accessibility check,
37952 rewrite as a raise statement.
37954 2004-01-15 GNAT Script <nobody@gnat.com>
37956 * Make-lang.in: Makefile automatically updated
37958 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
37960 * Make-lang.in (ada.srcextra): Dummy entry.
37962 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
37964 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37966 2004-01-13 Ed Schonberg <schonberg@gnat.com>
37968 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37969 components that are initialized with aggregates.
37971 2004-01-13 Vincent Celier <celier@gnat.com>
37973 * gnatlink.adb (Process_Binder_File): To find directory of shared
37974 libgcc, if "gcc-lib" is not a subdirectory, look for the last
37975 subdirectory "lib" in the path of the shared libgnat or libgnarl.
37977 * make.adb (Gnatmake): If GCC version is at least 3, link with
37978 -shared-libgcc, when there is at least one shared library project.
37980 * opt.ads (GCC_Version): New integer constant.
37982 * adaint.c (get_gcc_version): New function.
37984 2004-01-13 Robert Dewar <dewar@gnat.com>
37986 * sem_dist.adb, sem_res.adb, sem_util.adb,
37987 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37988 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37990 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
37992 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37993 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37996 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
37998 * misc.c: Remove trailing spaces.
37999 Update copyright notice missed in previous change.
38002 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
38005 * Makefile.generic: Update copyright.
38006 Add license notice.
38008 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
38009 of prefix/share/make.
38011 * Makefile.prolog: Update copyright.
38012 Add license notice.
38014 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
38016 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
38017 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
38018 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
38021 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
38024 2004-01-12 Javier Miranda <miranda@gnat.com>
38026 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
38027 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
38028 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
38029 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
38030 Component_Definition node.
38032 2004-01-12 Ed Falis <falis@gnat.com>
38034 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
38036 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
38038 * link.c: Change default libgnat kind to STATIC for FreeBSD.
38040 2004-01-12 Bernard Banner <banner@gnat.com>
38042 * Makefile.in: map 86numaux to a-numaux for x86_64
38044 2004-01-12 Ed Schonberg <schonberg@gnat.com>
38046 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
38047 generated to rename a generic actual, go to the actual itself, the
38048 subtype is not a user-visible entity.
38050 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
38051 part is a private subtype, reset the visibility of its full view, if
38052 any, to be consistent.
38055 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
38056 to use a generic package G as a formal package for another generic
38059 2004-01-12 Robert Dewar <dewar@gnat.com>
38061 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
38063 * usage.adb: Remove mention of obsolete -gnatwb switch
38064 Noticed during code reading
38066 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
38068 * 1ssecsta.adb: Minor changes for -gnatwa warnings
38070 2004-01-12 GNAT Script <nobody@gnat.com>
38072 * Make-lang.in: Makefile automatically updated
38074 2004-01-09 Mark Mitchell <mark@codesourcery.com>
38076 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
38078 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38080 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
38082 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
38084 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
38085 Update comment and copyright date.
38086 * stamp-xgnatug: Delete.
38088 2004-01-05 Robert Dewar <dewar@gnat.com>
38090 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
38091 be modified by the binder generated main program if the -D switch is
38094 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
38095 imported functions (since now we expect this to be done for imported
38098 * 5vtaprop.adb: Add several ??? for sections requiring more comments
38099 Minor reformatting throughout
38101 * 5zinit.adb: Minor reformatting
38102 Add 2004 to copyright date
38103 Minor changes to avoid -gnatwa warnings
38104 Correct some instances of using OR instead of OR ELSE (noted while
38105 doing reformatting)
38107 * sprint.adb: Minor updates to avoid -gnatwa warnings
38109 * s-secsta.ads, s-secsta.adb:
38110 (SS_Get_Max): New function to obtain high water mark for ss stack
38111 Default_Secondary_Stack is not a constant since it may be modified by
38112 the binder generated main program if the -D switch is used.
38114 * switch-b.adb: New -Dnnn switch for binder
38117 Make -gnatg imply all warnings currently in -gnatwa
38119 * vms_conv.adb: Minor reformatting
38120 Add 2004 to copyright notice
38121 Add 2004 to printed copyright notice
38123 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
38124 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
38125 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
38126 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
38127 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
38128 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
38129 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
38130 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
38131 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
38132 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
38133 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
38134 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
38135 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
38136 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
38137 checks.adb, clean.adb, cstand.adb, einfo.ads,
38138 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
38139 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
38140 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
38141 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
38142 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
38143 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
38144 Minor reformatting and code clean ups.
38145 Minor changes to prevent -gnatwa warnings
38147 * ali.adb: Minor reformatting and cleanup of code
38148 Acquire new SS indication of secondary stack use from ali files
38150 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
38151 (since now we expect this to be done for imported functions)
38153 * bindgen.adb: Generate call to modify default secondary stack size if
38156 * bindusg.adb: Add line for new -D switch
38158 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
38159 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
38160 Add circuitry for both records and arrays to avoid gigi
38161 processing if the type involved has non-bit-aligned components
38163 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
38164 N_String_Literal node always references an E_String_Literal_Subtype
38165 entity. This may not be true in the future.
38166 (Possible_Bit_Aligned_Component): Move processing of
38167 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
38169 * exp_ch6.adb (Expand_Thread_Body): Pick up
38170 Default_Secondary_Stack_Size as variable so that we get value modified
38171 by possible -Dnnn binder parameter.
38173 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
38174 (Type_May_Have_Bit_Aligned_Components): New function.
38176 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
38177 (Type_May_Have_Bit_Aligned_Components): New function.
38179 * fe.h: (Set_Identifier_Casing): Fix prototype.
38180 Add declaration for Sem_Elim.Eliminate_Error_Msg.
38181 Minor reformatting.
38183 * freeze.adb (Freeze_Entity): Add RM reference to error message about
38184 importing constant atomic/volatile objects.
38185 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
38186 unless explicit Pure_Function pragma given, to avoid insidious bug of
38187 call to non-pure imported function getting eliminated.
38189 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
38190 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
38191 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
38192 Add 2004 to printed copyright notice
38194 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
38197 * Makefile.rtl: Add entry for g-sestin.o
38198 g-sestin.ads: New file.
38200 * mdll.adb: Minor changes to avoid -gnatwa warnings
38202 * mlib-tgt.adb: Minor reformatting
38204 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
38205 New switch Sec_Stack_Used (GNAT, GNATBIND)
38206 Make Default_Secondary_Stack_Size a variable instead of a constant,
38207 so that it can be modified by the new -Dnnn bind switch.
38209 * rtsfind.adb (Load_Fail): Give full error message in configurable
38210 run-time mode if all_errors mode is set. This was not done in the case
38211 of a file not found, which was an oversight.
38212 Note if secondary stack unit is used by compiler.
38214 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
38215 ineffective elaborate all pragmas on non-visible packages (this
38216 happened when a renamed subprogram was called). Now the elaborate all
38217 always goes on the package containing the renaming rather than the one
38218 containing the renamed subprogram.
38220 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
38221 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
38223 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
38224 has an Etype that references an E_String_Literal.
38225 (Eval_String_Literal): Avoid assumption that N_String_Literal node
38226 always references an E_String_Literal_Subtype entity. This may not
38227 be true in the future.
38229 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
38232 * sem_res.adb (Resolve): Specialize msg for function name used in proc
38235 2004-01-05 Ed Falis <falis@gnat.com>
38237 * g-debuti.adb: Replaced direct boolean operator with short-circuit
38240 2004-01-05 Vincent Celier <celier@gnat.com>
38242 * bld.adb: Minor comment updates
38243 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
38246 * make.adb (Gnatmake): Special process for files to compile/check when
38247 -B is specified. Fail when there are only foreign mains in attribute
38248 Main of the project file and -B is not specified. Do not skip bind/link
38249 steps when -B is specified.
38251 * makeusg.adb: Document new switch -B
38253 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
38255 * switch-m.adb: (Scan_Make_Switches): Process -B switch
38257 * vms_data.ads: Add new GNAT PRETTY qualifier
38258 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
38260 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38262 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
38265 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
38266 Set_Identifier_Casing.
38268 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
38269 has size that overflows.
38271 2004-01-05 Gary Dismukes <dismukes@gnat.com>
38273 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
38274 -gnatwa warning on static condition.
38276 2004-01-05 Doug Rupp <rupp@gnat.com>
38278 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
38280 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
38282 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
38283 all attributes, including read-only attribute.
38285 2004-01-05 Pascal Obry <obry@gnat.com>
38287 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
38288 library naming scheme.
38290 * mlib-prj.adb (Build_Library): Generate different names for the static
38291 or dynamic version of the GNAT runtime. This is needed to support the
38292 new shared library naming scheme.
38293 (Process_Binder_File): Add detection of shared library in binder file
38294 based on the new naming scheme.
38296 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
38297 scheme for the shared runtime libraries.
38300 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
38302 (install-gnatlib): Do not create symlinks for shared libraries.
38303 (gnatlib-shared-default): Idem.
38304 (gnatlib-shared-dual-win32): New target. Not used for now as the
38305 auto-import feature does not support arrays/records.
38306 (gnatlib-shared-win32): Do not create copy for the shared libraries.
38307 (gnatlib-shared-vms): Fix shared runtime libraries names.
38309 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
38310 dependent runtime shared library name.
38312 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
38314 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
38317 2004-01-05 Ed Schonberg <schonberg@gnat.com>
38319 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
38320 protected objects when allocator has a subtype indication, not a
38321 qualified expression. Note that qualified expressions may have to be
38322 checked when limited aggregates are implemented.
38324 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
38325 pure, emit warning.
38326 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
38327 subprogram is imported, remove warning.
38329 2004-01-05 Geert Bosch <bosch@gnat.com>
38331 * s-poosiz.adb: Update copyright notice.
38332 (Allocate): Use Task_Lock to protect against concurrent access.
38333 (Deallocate): Likewise.
38335 2004-01-05 Joel Brobecker <brobecker@gnat.com>
38337 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
38340 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
38342 * gnat_ug.texi: Force a CVS commit by updating copyright.
38343 * gnat_ug_vxw.texi: Regenerate.
38344 * gnat_ug_wnt.texi: Regenerate.
38345 * gnat_ug_vms.texi: Regenerate.
38346 * gnat_ug_unx.texi: Regenerate.
38348 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
38350 * trans.c: Remove uses of "register" specifier in
38351 declarations of local variables.
38353 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
38355 * stamp-xgnatug: New stamp file.
38356 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
38357 (ada/doctools/xgnatug): Add $(build_exeext).
38358 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
38359 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
38361 2003-12-17 Ed Falis <falis@gnat.com>
38363 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
38366 * a-exextr.adb: Add context clause for
38367 Ada.Exceptions.Last_Chance_Handler.
38369 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
38371 * cstand.adb (Create_Standard): Change the way how the declaration of
38372 the Duration type is created (making it the same way as it is for all
38373 the other standard types).
38375 2003-12-17 Robert Dewar <dewar@gnat.com>
38377 * s-crtl.ads: Fix header format
38378 Change Pure to Preelaborate
38380 2003-12-17 Ed Schonberg <schonberg@gnat.com>
38382 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
38383 the expression type only if it is declared in the current unit.
38385 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
38386 are universal and already analyzed, as can occur in constrained
38387 subcomponents that depend on discriminants, when one constraint is a
38390 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
38391 type Any_Fixed is legal as the argument of a conversion, if only one
38392 fixed-point type is in context.
38394 2003-12-17 GNAT Script <nobody@gnat.com>
38396 * Make-lang.in: Makefile automatically updated
38398 2003-12-15 Robert Dewar <dewar@gnat.com>
38400 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
38403 2003-12-15 Vincent Celier <celier@gnat.com>
38405 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
38406 (Gnatchop): Do not set failure status when reporting the number of
38409 2003-12-15 Doug Rupp <rupp@gnat.com>
38411 * s-ctrl.ads: New file.
38413 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
38415 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
38416 (GNATBIND_OBJS): Add ada/s-crtl.o.
38418 * Makefile.in [VMS]: Clean up ifeq rules.
38420 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
38421 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
38422 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
38423 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
38424 s-tasdeb.adb: Update copyright.
38425 Import System.CRTL.
38426 Make minor modifications to use System.CRTL declared functions instead
38427 of importing locally.
38429 2003-12-15 GNAT Script <nobody@gnat.com>
38431 * Make-lang.in: Makefile automatically updated
38433 2003-12-11 Ed Falis <falis@gnat.com>
38435 * 5zinit.adb: Clean up.
38437 * 5zintman.adb (Notify_Exception): replaced case statement with a call
38438 to __gnat_map_signal, imported from init.c to support
38439 signal -> exception mappings that depend on the vxWorks version.
38442 Created and exported __gnat_map_signal to support signal -> exception
38443 mapping that is dependent on the VxWorks version.
38444 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
38446 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
38448 * 5wosinte.ads: Link with -mthreads switch.
38450 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
38452 * init.c (__gnat_install_handler [NetBSD]): Set
38453 __gnat_handler_installed, as done on all other platforms.
38454 Remove duplicated code.
38456 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
38458 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
38460 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
38462 * sinfo.ads: Fix inconsistent example code in comment.
38464 2003-12-11 Robert Dewar <dewar@gnat.com>
38466 * a-tiinau.adb: Add a couple of comments
38468 * sem_ch3.adb: Minor reformatting
38471 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
38472 Minor reformatting throughout
38474 2003-12-11 Ed Schonberg <schonberg@gnat.com>
38476 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
38477 bounds of a loop, create a separate block in order to generate proper
38478 cleanup actions to prevent memory leaks.
38480 * sem_res.adb (Resolve_Call): After a call to
38481 Establish_Transient_Scope, the call may be rewritten and relocated, in
38482 which case no further processing is needed.
38484 * sem_util.adb: (Wrong_Type): Refine previous fix.
38485 Fixes ACATS regressions.
38488 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
38491 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
38493 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
38494 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
38497 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
38500 2003-12-08 Robert Dewar <dewar@gnat.com>
38502 * 7sintman.adb: Minor reformatting
38504 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
38505 standard linker options to get standard libraries linked. We now plan
38506 to provide dummy versions of these libraries to match the appropriate
38507 configurable run-time (e.g. if a library is not needed at all, provide
38508 a dummy empty library).
38510 * targparm.ads: Configurable_Run_Time mode no longer affects linker
38511 options (-L parameters and standard libraries). What we plan to do is
38512 to provide dummy libraries where the libraries are not required.
38514 * gnatbind.adb: Minor comment improvement
38516 2003-12-08 Javier Miranda <miranda@gnat.com>
38518 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
38519 aggregate in the parent. Otherwise constants with limited aggregates
38520 are not supported. Add new formal to pass the component type (Ctype).
38521 It is required to call the corresponding IP subprogram in case of
38522 default initialized components.
38523 (Gen_Assign): In case of default-initialized component, generate a
38524 call to the IP subprogram associated with the component.
38525 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
38526 of aggregate with default initialized components.
38527 (Has_Default_Init_Comps): Improve implementation to recursively check
38528 all the present expressions.
38530 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
38531 to indicate that the initialization call corresponds to a
38532 default-initialized component of an aggregate.
38533 In case of default initialized aggregate with tasks this parameter is
38534 used to generate a null string (this is just a workaround that must be
38535 improved later). In case of discriminants, this parameter is used to
38536 generate a selected component node that gives access to the discriminant
38539 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
38540 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
38541 allocated aggregates with default-initialized components.
38543 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
38544 the box notation is used in positional aggregates.
38546 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
38548 * lib.ads: Fix typo in comment
38550 2003-12-08 Vincent Celier <celier@gnat.com>
38552 * prj.adb (Project_Empty): New component Unkept_Comments
38553 (Scan): Remove procedure; moved to Prj.Err.
38555 * prj.ads (Project_Data): New Boolean component Unkept_Comments
38556 (Scan): Remove procedure; moved to Prj.Err.
38558 * prj-dect.adb: Manage comments for the different declarations.
38560 * prj-part.adb (With_Record): New component Node
38561 (Parse): New Boolean parameter Store_Comments, defaulted to False.
38562 Set the scanner to return ends of line and comments as tokens, if
38563 Store_Comments is True.
38564 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
38565 comments are associated with these nodes. Store the node IDs in the
38567 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
38569 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
38570 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
38571 current project. Call Tree.Restore afterwards. Set the various nodes
38572 for comment storage (Next_End, End_Of_Line, Previous_Line,
38575 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
38576 defaulted to False.
38578 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
38579 to False. When Truncated is True, truncate the string, never go to the
38581 (Write_End_Of_Line_Comment): New procedure
38582 (Print): Process comments for nodes N_With_Clause,
38583 N_Package_Declaration, N_String_Type_Declaration,
38584 N_Attribute_Declaration, N_Typed_Variable_Declaration,
38585 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
38586 Process nodes N_Comment.
38588 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
38589 without comments and there are some comments, set the flag
38590 Unkept_Comments to True.
38591 (Scan): If there are comments, set the flag Unkept_Comments to True and
38592 clear the comments.
38593 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
38594 (Next_End_Nodes: New table
38595 (Comment_Zones_Of): New function
38596 (Scan): New procedure; moved from Prj. Accumulate comments in the
38597 Comments table and set end of line comments, comments after, after end
38599 (Add_Comments): New procedure
38600 (Save, Restore, Seset_State): New procedures
38601 (There_Are_Unkept_Comments): New function
38602 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
38603 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
38605 (First_Comment_After, First_Comment_After_End): New functions
38606 (First_Comment_Before, First_Comment_Before_End): New functions
38607 (Next_Comment): New function
38608 (End_Of_Line_Comment, Follows_Empty_Line,
38609 Is_Followed_By_Empty_Line): New functions
38610 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
38611 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
38612 (Set_Next_Comment): New procedure
38613 (Default_Project_Node): Associate comment before if the node can store
38616 * scans.ads (Token_Type): New enumeration value Tok_Comment
38617 (Comment_Id): New global variable
38619 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
38620 defaulted to False.
38621 (Scan): Store position of start of comment. If comments are tokens, set
38622 Comment_Id and set Token to Tok_Comment when scanning a comment.
38623 (Set_Comment_As_Token): New procedure
38625 * sinput-p.adb: Update Copyright notice
38626 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
38627 that no longer exists.
38629 2003-12-08 Javier Miranda <miranda@gnat.com>
38631 * sem_aggr.adb: Add dependence on Exp_Tss package
38632 Correct typo in comment
38633 (Resolve_Aggregate): In case of array aggregates set the estimated
38634 type of the aggregate before calling resolve. This is needed to know
38635 the name of the corresponding IP in case of limited array aggregates.
38636 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
38637 in case of default initialized array components.
38639 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
38640 types. Required to give support to limited aggregates in generic
38643 2003-12-08 Ed Schonberg <schonberg@gnat.com>
38645 * sem_ch3.adb (Check_Initialization): For legality purposes, an
38646 inlined body functions like an instantiation.
38647 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
38648 until bounds are analyzed, to diagnose premature use of type.
38650 * sem_util.adb (Wrong_Type): Improve error message when the type of
38651 the expression is used prematurely.
38653 2003-12-08 GNAT Script <nobody@gnat.com>
38655 * Make-lang.in: Makefile automatically updated
38657 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
38659 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
38660 they are automatically generated by Make-lang.in and cause nothing but
38661 maintenance troubles.
38663 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
38665 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
38666 version of this unit).
38668 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
38670 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
38671 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
38672 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
38673 the body of System.Interrupt_Management common to several targets.
38674 Update copyright notice when appropriate.
38676 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
38679 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
38680 to ensure that the kernel fills in the interrupted context structure
38681 before calling a signal handler, which is necessary to be able to
38682 unwind past it. Update the copyright notice.
38684 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
38686 * a-elchha.ads: New file.
38688 * a-elchha.adb: New default last chance handler. Contents taken from
38689 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
38691 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
38692 is moved to a-elchha.adb to provide a target-independent default last
38695 * Makefile.rtl: Add a-elchha.o
38697 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
38699 2003-12-05 Ed Schonberg <schonberg@gnat.com>
38701 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
38702 declared in an instance, do not inline the call if the instance is not
38703 frozen yet, to prevent order of elaboration problems.
38705 * sem_prag.adb: Add comments for previous fix.
38707 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
38709 * g-table.adb: Use the right variable in Set_Item.
38710 Update copyright notice.
38712 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
38714 * Makefile.in: Remove unused rules.
38716 2003-12-05 Vincent Celier <celier@gnat.com>
38718 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
38719 -nostdlib. Not needed here after all.
38721 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
38724 * adaint.h, adaint.c, g-os_lib.ads:
38725 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
38726 on some platforms (including FreeBSD), it is a 64 bit value.
38727 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
38729 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
38731 * gnatvsn.ads (Library_Version): Now contain only the relevant
38733 (Verbose_Library_Version): New constant.
38735 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
38736 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
38737 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
38739 * gnatlbr.adb: Clean up: replace Library_Version by
38740 Verbose_Library_Version.
38742 * make.adb, lib-writ.adb, exp_attr.adb:
38743 Clean up: replace Library_Version by Verbose_Library_Version.
38745 * 5lintman.adb: Removed.
38748 Update and simplify computation of LIBRARY_VERSION.
38749 Fix computation of GSMATCH_VERSION.
38750 5lintman.adb is no longer used: replaced by 7sintman.adb.
38752 2003-12-03 Robert Dewar <dewar@gnat.com>
38755 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
38756 name. Modified to consider small non-bit-packed arrays as troublesome
38757 and in need of component-by-component assigment expansion.
38759 2003-12-03 Vincent Celier <celier@gnat.com>
38761 * lang-specs.h: Process nostdlib as nostdinc
38763 * back_end.adb: Update Copyright notice
38764 (Scan_Compiler_Arguments): Process -nostdlib directly.
38766 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
38769 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
38770 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
38771 included in HIE_NONE_TARGET_PAIRS.
38773 2003-12-03 Ed Schonberg <schonberg@gnat.com>
38776 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
38777 is legal in an instance, because legality is cheched in the template.
38780 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
38781 appplied to an unchecked conversion of a formal parameter.
38784 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
38787 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
38789 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
38790 routines. The second one is new functionality to deal with backtracing
38791 through signal handlers.
38792 (unwind): Split into the two separate subroutines above.
38793 Update the documentation, and deal properly with sizeof (REG) different
38794 from sizeof (void*).
38796 2003-12-01 Nicolas Setton <setton@act-europe.fr>
38798 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
38799 so that the debugger can reliably access the value of the parameter,
38800 and therefore is able to display the exception name when an exception
38801 breakpoint is reached.
38803 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
38805 * fmap.adb: Fix typo in warning message.
38807 * g-socket.ads, g-socket.adb: Make Free a visible instance of
38808 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
38810 2003-12-01 Vincent Celier <celier@gnat.com>
38812 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
38814 (Build_Library): Get the switches only if Default_Switches is declared
38817 2003-12-01 Ed Schonberg <schonberg@gnat.com>
38819 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
38820 actuals that are indexed components, reanalyze actual to ensure that
38821 packed array references are properly expanded.
38823 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
38824 attempted assignment to a discriminant.
38826 2003-12-01 Robert Dewar <dewar@gnat.com>
38828 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
38831 * switch-c.adb: Minor reformatting of comments
38833 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38835 * Makefile.in: Clean ups.
38837 2003-12-01 GNAT Script <nobody@gnat.com>
38839 * Make-lang.in: Makefile automatically updated
38841 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38843 * 5wsystem.ads: Disable zero cost exception, not ready yet.
38845 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
38847 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
38848 to force serialization.
38850 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
38852 * g-socket.ads, g-socket.adb:
38853 Clarify documentation of function Stream. Introduce a Free procedure
38854 to release the returned Stream once it becomes unused.
38856 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
38858 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
38860 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
38861 since NT 4 cannot handle timeout values that are too large,
38862 e.g. DWORD'Last - 1.
38864 2003-11-26 Ed Schonberg <schonberg@gnat.com>
38867 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
38868 in procedure calls and whose expansion must be deferred.
38870 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
38874 (Build_Derived_Array_Type): Create operator for unconstrained type
38875 if ancestor is unconstrained.
38877 2003-11-26 Vincent Celier <celier@gnat.com>
38879 * make.adb (Project_Object_Directory): New global variable
38880 (Change_To_Object_Directory): New procedure
38881 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
38882 of Change_Dir directly. Do not change working directory to object
38883 directory of main project after each compilation.
38884 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
38886 Change to object directory of main project before binding step.
38887 (Initialize): Initialize Project_Object_Directory to No_Project
38890 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
38891 binding a Stand-Alone Library.
38893 * output.adb: Update Copyright notice
38894 (Write_Char): Output buffer when full
38896 2003-11-26 Robert Dewar <dewar@gnat.com>
38898 * sem_ch13.adb: (Check_Size): Reset size if size is too small
38901 (Check_Size): Fix documentation to include bit-packed array case
38903 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
38905 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
38907 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
38909 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
38912 * utils.c (init_gigi_decls): Change name of built-in setjmp to
38913 __builtin_setjmp, since this is apparently needed by recent
38916 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38918 * adadecode.c: Only include ctype.h if not IN_GCC.
38919 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
38921 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
38924 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
38925 signals and interrupts.
38927 * 5zintman.ads: New File.
38929 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
38930 add exception signals to the set of unmasked signals.
38933 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
38934 between signals and interrupts.
38935 Add to Unblocked_Signal_Mask the set of signals that are in
38939 Adding a check to see whether the Interrupt_ID we want to unmask is in
38940 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
38941 reason is that the index type of the Keep_Unmasked array is not always
38942 Interrupt_ID; it may be a subtype of Interrupt_ID.
38944 2003-11-24 Gary Dismukes <dismukes@gnat.com>
38947 (Remove_Side_Effects): Condition constantness of object created for a
38948 an unchecked type conversion on the constantness of the expression
38949 to ensure the correct value for 'Constrained when passing components
38950 of view-converted class-wide objects.
38952 2003-11-24 Robert Dewar <dewar@gnat.com>
38954 * par-load.adb (Load): Improve handling of misspelled and missing units
38955 Removes several cases of compilation abandoned messages
38957 * lib.adb: (Remove_Unit): New procedure
38959 * lib.ads: (Remove_Unit): New procedure
38961 * lib-load.adb: Minor reformatting
38963 2003-11-24 Vincent Celier <celier@gnat.com>
38966 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38967 (Marking_Label): Label to mark processed source files. Incremented for
38969 (Gnatmake): Increase Marking_Labet for each executable
38970 (Is_Marked): Compare against marking label
38971 (Mark): Mark with marking label
38973 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
38976 Move the declaration of the TSD for System.Threads to System.Soft_Links.
38979 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38980 (rts-cert): build a single relocatable object for the run-time lib.
38983 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
38986 Use gnatls rather than gcc to obtain the location of GNAT RTL for
38989 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
38991 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38992 can not use it as before (that is, as a variable) when dumping it into
38993 the tree file. Add a local variable to store the result of this
38994 function and to be used as the string to be written into the tree.
38996 * scn.adb (Initialize_Scanner): Add comments explaining the recent
38999 * sinput.adb (Source_First, Source_Last): In case of
39000 Internal_Source_File, replace returning attributes of
39001 Internal_Source_Ptr (which is wrong) with returning attributes of
39004 2003-11-24 Ed Schonberg <schonberg@gnat.com>
39007 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
39008 used for implicit concatenation operators.
39012 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
39013 task bodies that are in the scope of a Suppress pragma.
39014 (Check_A Call): Use the flag to prevent spurious elaboration checks.
39016 * sinfo.ads, sinfo.adb:
39017 New flag No_Elaboration_Check on function/procedure calls, to properly
39018 suppress checks on calls in task bodies that are within a local suppress
39022 (Expand_Concatenate_Other): Use the proper integer type for the
39023 expression for the upper bound, to avoid universal_integer computations
39026 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
39028 * .cvsignore: Delete.
39030 2003-11-21 Andreas Schwab <schwab@suse.de>
39032 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
39034 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
39036 * 5wsystem.ads: Enable zero cost exception.
39038 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
39040 * 5ztiitho.adb: Remove an unreferenced variable.
39042 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
39044 * adaint.c: For FreeBSD, use mkstemp.
39046 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
39048 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
39050 2003-11-21 Robert Dewar <dewar@gnat.com>
39052 * bld.adb: Remove useless USE of gnatvsn
39054 * gnatchop.adb: Minor reformatting
39055 Clean up version handling to be more consistent
39057 * gnatxref.adb: Minor reformatting
39059 * gprcmd.adb: Minor reformatting
39060 Fix output of copyright to be more consistent with other tools
39062 2003-11-21 Vincent Celier <celier@gnat.com>
39064 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
39066 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
39068 * atree.adb (Initialize): Add initializations for global variables
39069 used in New_Copy_Tree.
39071 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
39072 Internal_Source_File as the actual).
39073 Put the set of statements creating Any_Character before the set of
39074 statements creating Any_Array to have Any_Character fully initialized
39075 when it is used in creating Any_Array.
39077 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
39078 not call Scan in case if the actual is Internal_Source_File
39079 Add 2003 to copyright note.
39081 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
39082 processing Internal_Source_File.
39084 * types.ads: Add the constant Internal_Source_File representing the
39085 source buffer for artificial source-code-like strings created within
39086 the compiler (the definition of Source_File_Index is changed).
39088 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
39090 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
39091 56system.ads: New file, FreeBSD version.
39093 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
39095 * Make-lang.in (ada.extraclean): Delete.
39097 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
39099 * gnatmem.adb: Clean up verbose output.
39101 * gprcmd.adb: Change copyright to FSF.
39103 2003-11-19 Vincent Celier <celier@gnat.com>
39105 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
39106 and Version (ignored).
39108 * symbols.ads: (Policy): New type
39109 (Initialize): New parameter Reference, Symbol_Policy and
39111 Remove parameter Force.
39112 Minor reformatting.
39114 * snames.ads, snames.adbadb: New standard names
39115 Library_Reference_Symbol_File and Library_Symbol_Policy
39118 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
39122 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
39124 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
39126 * prj.adb: (Project_Empty): New component Symbol_Data
39128 * prj.ads: (Policy, Symbol_Record): New types
39129 (Project_Data): New component Symbol_Data
39132 New attributes Library_Symbol_File, Library_Symbol_Policy and
39133 Library_Reference_Symbol_File.
39136 (Ada_Check): When project is a Stand-Alone library project, process
39137 attribute Library_Symbol_File, Library_Symbol_Policy and
39138 Library_Reference_Symbol_File.
39140 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39141 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
39142 5sml-tgt.adb (Build_Dynamic_Library): New parameter
39143 Symbol_Data (ignored).
39145 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
39146 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
39147 functions Option_File_Name and Version_String. Set new options of
39148 gnatsym related to symbol file, symbol policy and reference symbol
39152 Extensive modifications to take into account the reference symbol file,
39153 the symbol policy, the library version and to put in the symbol file the
39154 minor and major IDs.
39156 * bld.adb (Process_Declarative_Items): Put second argument of
39157 gprcmd to_absolute between single quotes, to avoid problems with
39160 * bld-io.adb: Update Copyright notice.
39161 (Flush): Remove last character of a line, if it is a back slash, to
39162 avoid make problems.
39165 Implement new scheme with reference symbol file and symbol policy.
39167 * g-os_lib.ads: (Is_Directory): Clarify comment
39169 2003-11-19 Robert Dewar <dewar@gnat.com>
39171 * atree.adb: Move New_Copy_Tree global variables to head of package
39173 * errout.adb: Minor reformatting
39175 2003-11-19 Javier Miranda <miranda@gnat.com>
39177 * sem_ch4.adb: (Diagnose_Call): Improve error message.
39178 Add reference to Ada0Y (AI-50217)
39180 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
39181 sem_util.adb: Add reference to AI-50217
39183 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
39185 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
39187 * sem_aggr.adb: Complete documentation of AI-287 changes
39189 * par-ch4.adb: Document previous changes.
39191 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
39192 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
39195 * exp_aggr.adb: Add references to AI-287 in previous changes
39197 2003-11-19 Ed Schonberg <schonberg@gnat.com>
39200 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
39201 in the rewriting is the result of an inlined call.
39203 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
39204 parameter is a type conversion, use original node to construct the
39205 post-call assignment, because expression may have been rewritten, e.g.
39206 if it is a packed array.
39209 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
39210 body, just as it is in an instance.
39211 Categorization routines
39213 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
39214 Instantiate_Object): Set proper sloc reference for message on missing
39217 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
39219 * Makefile.in: Add FreeBSD libgnat pairs.
39221 * usage.adb: Fix typo in usage message.
39223 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
39225 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
39226 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
39227 pragma Thread_Body.
39228 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
39230 * s-thread.adb: This file is now a dummy implementation of
39233 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
39235 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
39237 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
39239 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
39240 instanciation references in the parent type description.
39242 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39244 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
39246 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
39247 TYPE_PRECISION directly from esize.
39249 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
39252 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
39254 * init.c: Initialization routines for FreeBSD
39256 * link.c: Link info for FreeBSD
39258 * sysdep.c: Add the case of FreeBSD
39260 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
39262 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
39263 already called in System.Threads.
39265 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
39266 environment task, as it has been moved to System.Threads.Initialization.
39268 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
39270 * adaint.c (__gnatlib_install_locks): Only reference
39271 __gnat_install_locks on VMS, since other platforms can avoid using
39272 --enable-threads=gnat
39274 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39276 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
39278 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
39279 TYPE_PACKED_ARRAY_TYPE_P.
39280 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
39282 Part of PR ada/12806
39283 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
39284 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
39286 2003-11-17 Vincent Celier <celier@gnat.com>
39288 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
39290 Do not set exit status to Failure when Warning is True.
39291 (Gnatchop): Make errors "no compilation units found" and
39292 "no source files written" warnings only.
39294 * make.adb (Gnatmake): When using a project file, set
39295 Look_In_Primary_Dir to False.
39296 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
39297 and Local_Configuration_Pragmas in the project where they are declared
39298 not an extending project which might have inherited them.
39300 * osint.adb (Locate_File): If Name is already an absolute path, do not
39301 look for a directory.
39303 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
39304 -gnats (Check_Syntax) is used, issue only a warning, not an error.
39306 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
39307 in objects of type Variable_Value.
39309 * prj.ads: (Variable_Value): New component Project
39311 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
39312 is in a project extended by Project.
39314 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
39315 Project of Variable_Values to this new parameter value.
39316 (Expression): Set component Project of Variable_Values.
39317 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
39318 Set the component Project in array elements.
39320 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
39322 * errout.adb: (Initialize): Add initialization for error nodes.
39324 * sem_ch12.adb (Initialize): Add missing initializations for
39325 Exchanged_Views and Hidden_Entities.
39327 2003-11-17 Ed Schonberg <schonberg@gnat.com>
39329 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
39330 already instantiated tree for use in subsequent inlining.
39331 (Analyze_Associations, Instantiate_Formal_Subprogram,
39332 Instantiate_Object): improve error message for mismatch in
39335 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
39336 instantiations of subprograms declared in instances.
39338 2003-11-17 Javier Miranda <miranda@gnat.com>
39340 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
39341 executed only under the Extensions_Allowed flag.
39343 2003-11-17 Robert Dewar <dewar@gnat.com>
39345 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
39347 (Address_Image): Fix bug of returning 0x instead of 0x0
39348 Minor reformatting (function specs).
39350 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
39351 (missed case of 33-63)
39353 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
39355 * s-thread.adb: Add comments for pragma Restriction
39357 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
39358 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
39360 2003-11-17 Ed Falis <falis@gnat.com>
39362 * s-thread.adb: Added No_Tasking restriction for this implementation.
39364 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
39366 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
39367 instanciation references in the parent type description.
39369 2003-11-17 GNAT Script <nobody@gnat.com>
39371 * Make-lang.in: Makefile automatically updated
39373 2003-11-16 Jason Merrill <jason@redhat.com>
39375 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
39376 and TAGS files that include them for each front end.
39378 2003-11-14 Andreas Jaeger <aj@suse.de>
39380 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
39381 is the canonical version.
39382 * misc.c (gnat_handle_option): Likewise.
39384 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
39386 * 5nsystem.ads: New file for x86_64-linux-gnu.
39388 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
39390 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
39392 * comperr.adb: Fix logic in previous change.
39394 2003-11-13 Vincent Celier <celier@gnat.com>
39396 * 5bml-tgt.adb (Build_Dynamic_Library): Use
39397 Osint.Include_Dir_Default_Prefix instead of
39398 Sdefault.Include_Dir_Default_Name.
39400 * gnatlbr.adb: Update Copyright notice
39401 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
39402 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
39403 instead of Sdefault.Object_Dir_Default_Name
39406 (Process_Binder_File): Never suppress the option following -Xlinker
39409 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
39410 Sdefault.Object_Dir_Default_Name.
39412 * osint.ads, osint.adb:
39413 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
39414 Minor reformatting.
39416 * vms_conv.ads: Minor reformating
39417 Remove GNAT STANDARD and GNAT PSTA
39420 Allow GNAT MAKE to have several files on the command line.
39421 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
39422 Sdefault.Object_Dir_Default_Name.
39424 Remove data for GNAT STANDARD
39427 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
39428 Remove data for GNAT STANDARD
39429 Remove options and documentation for -gnatwb/-gnatwB: these warning
39430 options no longer exist.
39432 2003-11-13 Ed Falis <falis@gnat.com>
39434 * 5zthrini.adb: (Init_RTS): Made visible
39437 (Register): Removed unnecessary call to taskVarGet that checked whether
39438 an ATSD was already set as a task var for the argument thread.
39441 Updated comment to reflect that this is a VxWorks version
39442 Added context clause for System.Threads.Initialization
39443 Added call to System.Threads.Initialization.Init_RTS
39445 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
39448 (Init_RTS): New procedure, for the initialization of the run-time lib.
39451 Remove dependancy on System.Init, so that this file can be used in the
39452 AE653 sequential run-time lib.
39454 2003-11-13 Robert Dewar <dewar@gnat.com>
39456 * bindgen.adb: Minor reformatting
39458 2003-11-13 Ed Schonberg <schonberg@gnat.com>
39461 (Apply_Discriminant_Check): Do no apply check if target type is derived
39462 from source type with no applicable constraint.
39465 (Ensure_System_Dependency): Do not apply the style checks that may have
39466 been specified for the main unit.
39469 (Find_Selected_Component): Further improvement in error message, with
39473 (Resolve): Handle properly the case of an illegal overloaded protected
39476 2003-11-13 Javier Miranda <miranda@gnat.com>
39479 (Has_Default_Init_Comps): New function to check the presence of
39480 default initialization in an aggregate.
39481 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
39482 extension aggregate of a limited record. In addition, a new formal
39483 was added to do not initialize the record controller (if any) during
39484 this recursive expansion of ancestors.
39485 (Init_Controller): Add support for limited record components.
39486 (Expand_Record_Aggregate): In case of default initialized components
39487 convert the aggregate into a set of assignments.
39489 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
39490 describing the new syntax.
39491 Nothing else needed to be done because this subprogram delegates part of
39492 its work to P_Precord_Or_Array_Component_Association.
39493 (P_Record_Or_Array_Component_Association): Give support to the new
39494 syntax for default initialization of components.
39497 (Resolve_Aggregate): Relax the strictness of the frontend in case of
39498 limited aggregates.
39499 (Resolve_Record_Aggregate): Give support to default initialized
39501 (Get_Value): In case of default initialized components, duplicate
39502 the corresponding default expression (from the record type
39503 declaration). In case of default initialization in the *others*
39504 choice, do not check that all components have the same type.
39505 (Resolve_Extension_Aggregate): Give support to limited extension
39509 (Check_Initialization): Relax the strictness of the front-end in case
39510 of aggregate and extension aggregates. This test is now done in
39511 Get_Value in a per-component manner.
39513 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
39514 expression corresponds to a limited aggregate. This test is now done
39517 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
39520 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
39521 present in an N_Component_Association node
39523 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
39525 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
39526 type-conformant entry only if they are homographs.
39528 2003-11-13 GNAT Script <nobody@gnat.com>
39530 * Make-lang.in: Makefile automatically updated
39532 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39534 * adadecode.c: Use <> form of include for ctype.h.
39535 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
39537 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39539 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
39540 Works around PR middle-end/6552.
39542 2003-11-10 Ed Falis <falis@gnat.com>
39544 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
39546 * 5zinit.adb: (Install_Handler): Moved back to spec
39547 (Install_Signal_Handlers): Deleted
39549 * 5zthrini.adb: Added context clause for System.Storage_Elements
39550 (Register): Only handles creation of taskVar; initialization moved to
39552 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
39553 Added declaration of environment task secondary stack and
39556 * s-thread.adb: Implement bodies for thread body processing
39559 Added comment identifying supported targets for pragma Thread_Body.
39561 2003-11-10 Pascal Obry <obry@gnat.com>
39563 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
39567 (Open): Properly check for string length before copying into the buffer.
39568 Raises Name_Error if buffer is too small. Note that this was a potential
39571 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
39573 * bindgen.adb, comperr.adb: Code clean ups.
39574 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
39576 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
39578 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
39580 2003-11-10 Vincent Celier <celier@gnat.com>
39583 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
39586 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
39588 * prj.adb: (Project_Empty): Add new boolean component Virtual
39590 * prj.ads: (Virtual_Prefix): New constant string
39591 (Project_Data): New boolean component Virtual
39593 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
39594 a library project is extended by a virtual extending project.
39597 Modifications throughout to implement extending-all project, including:
39598 (Virtual_Hash, Processed_Hash): New hash tables
39599 (Create_Virtual_Extending_Project): New procedure
39600 (Look_For_Virtual_Projects_For): New procedure
39603 (Process): After checking the projects, if main project is an
39604 extending-all project, set the object directory of all virtual extending
39605 project to the object directory of the main project.
39606 Adjust error message when a virtual extending project has the same
39607 object directory as an project being extended.
39608 (Recursive_Process): If name starts with the virtual prefix, set Virtual
39609 to True in the project data.
39612 (Default_Project_Node): Add new boolean component Extending_All
39613 (Is_Extending_All): New function
39614 (Set_Is_Extending_All): New procedure
39616 * prj-tree.ads: (Is_Extending_All): New function
39617 (Set_Is_Extending_All): New procedure
39618 (Project_Node_Record): New boolean component Extending_All
39620 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
39623 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
39625 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
39626 "gprcmd prefix" to define it.
39628 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
39630 * einfo.ads: Fix a typo and remove an extraneous word in comments.
39633 (Create_Dummy_Package_Unit): Set the scope of the entity for the
39634 created dummy package to Standard_Standard, not to itself, to
39635 defend other parts of the front-end against encoutering a cycle in
39639 (Analyze_With_Clause): When setting the entities for the successive
39640 N_Expanded_Names that constitute the name of a child unit, do not
39641 attempt to go further than Standard_Standard in the chain of scopes.
39642 This case arises from the placeholder units created by
39643 Create_Dummy_Package_Unit in the case of a with_clause for a
39644 nonexistent child unit.
39646 2003-11-10 Ed Schonberg <schonberg@gnat.com>
39649 (Expand_Thread_Body): Place subprogram on scope stack, so that new
39650 declarations are given the proper scope.
39653 (Check_Expr_Constants): Reject an expression that contains a constant
39654 created during expansion, and that appears after the object to which
39655 the address clause applies.
39657 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
39658 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
39659 that uses 'Range of a function call with controlled components, so
39660 that the function result can be finalized before starting the loop.
39663 (Find_Selected_Component): Improve error message when prefix is
39664 an implicit dereference of an incomplete type.
39666 2003-11-10 Robert Dewar <dewar@gnat.com>
39668 * opt.ads: New Print_Standard flag for -gnatS switch
39670 * sem_ch13.adb: Remove some additional checks for unaligned arrays
39672 * cstand.adb (Create_Standard): Print out package standard if -gnatS
39675 * debug.adb: Update doc for -gnatds to discuss relationship with new
39678 * sinfo.adb: Add new field Entity_Or_Associated_Node
39680 * sinfo.ads: Add new field Entity_Or_Associated_Node
39681 Update documentation for Associated_Node and Entity fields to clarify
39682 relationship and usage.
39685 (Write_Id): Properly process Associated_Node field in generic template
39688 Recognize new -gnatS switch for printing package Standard
39689 This replaces gnatpsta
39692 Add line for new -gnatS switch for printing package Standard
39693 This replaces gnatpsta
39695 2003-11-10 Andreas Jaeger <aj@suse.de>
39697 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
39700 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
39702 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
39705 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
39707 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
39710 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
39712 * sysdep.c: Add handling of cygwin.
39714 2003-11-10 GNAT Script <nobody@gnat.com>
39716 * Make-lang.in: Makefile automatically updated
39718 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
39721 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
39722 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
39723 Replace GNAT_ROOT by GCC_ROOT.
39725 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
39727 2003-11-06 Zack Weinberg <zack@codesourcery.com>
39729 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
39730 and update for changed meaning of GET_MODE_BITSIZE.
39732 2003-11-04 Doug Rupp <rupp@gnat.com>
39734 * sysdep.c: Problem discovered during IA64 VMS port.
39735 [VMS] #include <unixio.h> to get proper prototypes.
39738 Issues discovered/problems fixed during IA64 VMS port.
39739 [VMS] #define _POSIX_EXIT for proper semantics.
39740 [VMS] #include <unixio.h> for proper prototypes.
39741 [VMS] (fork): #define IA64 version.
39742 (__gnat_os_exit): Remove unnecessary VMS specific code.
39744 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39746 Part of PR ada/12806
39747 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
39751 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
39754 * targtyps.c, decl.c, misc.c,
39755 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
39756 routines to work around change in FP sizing semantics in GCC.
39759 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
39761 * gigi.h: (enumerate_modes): New function.
39763 * Make-lang.in: (ada/misc.o): Add real.h.
39765 * misc.c: (enumerate_modes): New function.
39767 2003-11-04 Robert Dewar <dewar@gnat.com>
39769 * 3vtrasym.adb: Minor reformatting
39770 Use terminology encoded/decoded name, rather than C++ specific notion
39771 of mangling (this is the terminology used throughout GNAT).
39773 * einfo.h: Regenerated
39775 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
39778 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
39780 * par-prag.adb: Add dummy entry for Thread_Body pragma
39783 Add entries for System.Threads entities for thread body processing
39786 (Analyze_Pragma, Access attributes): Check these are not applied to a
39787 thread body, since this is not permitted
39789 * sem_prag.adb: Add processing for Thread_Body pragma.
39793 (Resolve_Call): Check for incorrect attempt to call a thread body
39794 procedure with a direct call.
39796 * snames.ads, snames.adb: Add entry for Thread_Body pragma
39797 Add names associated with thread body expansion
39799 * snames.h: Add entry for Thread_Body pragma
39801 * s-thread.adb: Add entries for thread body processing
39802 These are dummy bodies so far
39804 * s-thread.ads: Add documentation on thread body handling.
39805 Add entries for thread body processing.
39807 2003-11-04 Javier Miranda <miranda@gnat.com>
39810 (Build_Limited_Views): Return after posting an error in case of limited
39811 with_clause on subprograms, generics, instances or generic renamings
39812 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
39813 on subprograms, generics, instances or generic renamings
39815 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
39817 * raise.c (setup_to_install): Correct mistake in last revision; two
39818 arguments out of order.
39820 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
39821 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
39822 notice, missed in previous change.
39823 Remove trailing blanks and other style errors introduced in previous
39826 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
39828 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
39829 rid of the wrapper for a LJM type, ensuring we don't do that if the
39830 field is addressable. This avoids potential low level type view
39831 mismatches later on, for instance in a by-reference argument passing
39834 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39836 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
39837 aligned at byte boundary.
39839 2003-11-04 Joel Brobecker <brobecker@gnat.com>
39841 * decl.c (components_to_record): Do not delete the empty variants from
39842 the end of the union type.
39844 2003-11-04 Ed Schonberg <schonberg@gnat.com>
39846 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
39847 operation for a derived type, an explicit declaration may use a local
39848 subtype of Boolean.
39850 2003-11-04 Vincent Celier <celier@gnat.com>
39852 * make.adb (Gnatmake): Allow main sources on the command line with a
39853 library project when it is only for compilation (no binding or
39856 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39858 * Makefile.in: Remove many duplicate variables.
39860 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
39862 * Make-lang.in (dvi): Move targets to $(docobjdir).
39863 (gnat_ug_vms.dvi): Simplify rule and adjust target.
39864 (gnat_ug_wnt.dvi): Likewise.
39865 (gnat_ug_unx.dvi): Likewise.
39866 (gnat_ug_vxw.dvi): Likewise.
39867 (gnat_rm.dvi): Likewise.
39868 (gnat-style.dvi): Likewise.
39870 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39872 * gigi.h: Missed commit from update for C90.
39874 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39876 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
39878 2003-10-31 Andreas Schwab <schwab@suse.de>
39880 * raise.c (get_action_description_for): Fix typo in last change.
39882 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
39885 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
39886 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
39888 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
39890 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
39891 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
39892 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
39893 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
39894 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
39896 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
39899 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
39900 numbers when symbol name is too long.
39902 2003-10-30 Ed Falis <falis@gnat.com>
39904 * g-signal.ads, g-signal.adb: New files
39906 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
39908 * Makefile.rtl: Introduce GNAT.Signals
39910 2003-10-30 Robert Dewar <dewar@gnat.com>
39912 * freeze.adb: Minor reformatting
39914 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
39916 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
39917 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
39918 New handling of Id_Check parameter to improve recognition of keywords
39919 used as identifiers.
39920 Update copyright notice to include 2003
39922 2003-10-29 Robert Dewar <dewar@gnat.com>
39924 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
39925 sem_ch10.adb: Minor reformatting
39927 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
39928 (Expand_Assign_Record): Test right hand side for bit unaligned as well
39930 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
39932 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
39933 Support for TBK$SYMBOLIZE-based symbolic traceback.
39935 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
39938 Revert previous change, that did not work well when pragma No_Run_Time
39939 was used in conjunction with a run-time other than ZFP.
39941 2003-10-29 Vincent Celier <celier@gnat.com>
39944 (Gnatmake): When there are no Ada mains in attribute Main, disable the
39945 bind and link steps only is switch -z is not used.
39947 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
39949 * Makefile.generic: Remove duplicated setting of CC.
39951 * Makefile.prolog: Set CC to gcc by default, to override make's
39954 * einfo.h: Regenerated.
39956 2003-10-29 Ed Schonberg <schonberg@gnat.com>
39958 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39959 current body, after compiling subunit.
39961 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39962 when in deleted code, because gigi needs properly ordered freeze
39963 actions to annotate types.
39965 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39966 prevent the premature freezing of record type that contains
39967 subcomponents with a private type that does not yet have a completion.
39969 2003-10-29 Javier Miranda <miranda@gnat.com>
39972 (Analyze_Package_Instantiation): Check that instances can not be used in
39973 limited with_clauses.
39976 (Analyze_Package_Renaming): Check that limited withed packages cannot
39977 be renamed. Improve text on error messages related to limited
39980 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39982 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39983 Update copyright notice.
39985 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39986 (Install_Limited_Context_Clauses): New subprogram that isolates all the
39987 checks required for limited context_clauses and installs the limited
39989 (Install_Limited_Withed_Unit): Complete its documentation.
39990 (Analyze_Context): Check that limited with_clauses are only allowed in
39992 (Install_Context): Call Install_Limited_Context_Clauses after the
39993 parents have been installed.
39994 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39995 package as 'From_With_Type'; this mark indicates that the limited view
39996 is installed. Used to check bad usages of limited with_clauses.
39997 (Build_Limited_Views): Do not add shadow entities to the scope's list
39998 of entities. Do not add real entities to the Non_Limited_Views chain.
39999 Improve error notification.
40000 (Remove_Context_Clauses): Remove context clauses in two phases:
40001 limited views first and regular views later (to maintain the
40003 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
40004 its visible entities.
40006 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
40008 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
40009 with any type that Is_Fixed_Point_Type.
40011 * sinfo.ads: Fix documentation for Associated_Node attribute.
40013 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
40015 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
40016 both '-gnatc' and '-gnatt' are specified.
40018 * atree.adb (Initialize): Add initialization for Node_Count (set to
40021 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40023 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
40024 do not consider as Pure.
40026 Part of implementation of function-at-a-time:
40028 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
40029 (tree_transform): Add new argument to build_component_ref.
40030 (tree_transform, case N_Assignment_Statement): Make and return an
40032 (tree_transform): If result IS_STMT, set flags and return it.
40033 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
40035 * utils2.c (build_simple_component_ref, build_component_ref): Add new
40037 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
40038 (build_allocator): Likewise.
40040 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
40041 Add new arg to build_component_ref.
40042 (maybe_unconstrained_array, unchecked_convert): Likewise.
40044 * ada-tree.def (EXPR_STMT): New code.
40046 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
40048 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
40049 build_component_ref calls.
40051 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
40053 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
40054 (build_component_ref): Add new argument, NO_FOLD_P.
40056 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
40058 * Makefile.generic: Add missing substitution on object_deps handling.
40061 * Make-lang.in (check-ada): Enable ACATS test suite.
40063 2003-10-27 Robert Dewar <dewar@gnat.com>
40066 (Freeze_Array_Type): We do not need an initialization routine for types
40067 derived from String or Wide_String. They should be treated the same
40068 as String and Wide_String themselves. This caused problems with the
40069 use of Initialize_Scalars.
40072 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
40073 composites. This allows use of component clauses that are not byte
40077 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
40078 is an attempt to pack an array of atomic objects.
40080 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
40082 2003-10-27 Pascal Obry <obry@gnat.com>
40085 (Basename): Check for drive letters in a pathname only on DOS based OS.
40087 2003-10-27 Vincent Celier <celier@gnat.com>
40090 (Gnatmake): When unable to change dir to the object dir, display the
40091 content of the parent dir of the obj dir, to try to understand why this
40094 2003-10-27 GNAT Script <nobody@gnat.com>
40096 * Make-lang.in: Makefile automatically updated
40098 2003-10-27 Ed Schonberg <schonberg@gnat.com>
40101 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
40102 should not be done in Save/Restore_Scope_Stack, because it is performed
40106 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
40107 whether use clauses should be removed/restored.
40110 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
40111 whether use clauses should be removed/restored.
40113 2003-10-26 Andreas Jaeger <aj@suse.de>
40115 * Makefile.in: Remove duplicated lines.
40117 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
40119 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
40120 minimize the differences with ACT tree.
40122 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
40123 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
40124 Gnatvsn.Gnat_Static_Version_String to reduce differences between
40127 2003-10-24 Pascal Obry <obry@gnat.com>
40130 * adadecode.c (ostrcpy): New function.
40131 (__gnat_decode): Use ostrcpy of strcpy.
40132 (has_prefix): Set first parameter a const.
40133 (has_suffix): Set first parameter a const.
40134 Update copyright notice. Fix source name in header.
40135 Removes a trailing space.
40137 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
40140 Remove the test against being in No_Run_Time_Mode before generating a
40141 call to Register_Tag. It is redundant with the test against the
40142 availability of the function Register_Tag.
40144 2003-10-24 Vincent Celier <celier@gnat.com>
40146 * g-catiio.adb: (Month_Name): Correct spelling of February
40148 * make.adb: (Mains): New package
40149 (Initialize): Call Mains.Delete
40150 (Gnatmake): Check that each main on the command line is a source of a
40151 project file and, if there are several mains, each of them is a source
40152 of the same project file.
40153 (Gnatmake): When a foreign language is specified in attribute Languages,
40154 no main is specified on the command line and attribute Mains is not
40155 empty, only build the Ada main. If there is no Ada main, just compile
40156 the Ada sources and their closure.
40157 (Gnatmake): If a main is specified on the command line with directory
40158 information, check that the source exists and, if it does, that the path
40159 is the actual path of a source of a project.
40162 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
40163 Full_Path is True, return the full path instead of the simple file name.
40164 (Project_Of): New function
40167 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
40168 defaulted to False.
40169 (Project_Of): New function
40171 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
40173 * Makefile.generic:
40174 Ensure objects of main project are always checked and rebuilt if needed.
40175 Set CC to gcc by default.
40176 Prepare new handling of link by creating a global archive (not activated
40179 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
40180 stringt.h: Update copyright notice. Remove trailing blanks.
40181 Fix source name in header.
40183 2003-10-24 Robert Dewar <dewar@gnat.com>
40185 * sem_ch12.adb: Minor reformatting
40188 Minor reformatting (including new function return style throughout)
40191 Minor reformatting (including new function return style throughout)
40193 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
40195 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
40196 stringt.h: Update copyright notice. Remove trailing blanks.
40197 Fix source name in header.
40199 2003-10-24 GNAT Script <nobody@gnat.com>
40201 * Make-lang.in: Makefile automatically updated
40203 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
40205 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
40206 stringt.h: Convert to ISO C90 declarations and definitions.
40208 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
40211 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
40212 External_Tag attribute definition clauses.
40214 2003-10-23 Ed Schonberg <schonberg@gnat.com>
40217 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
40218 child unit, generate a fully qualified name to avoid spurious errors
40219 when the context contains renamings of different child units with
40220 the same simple name.
40222 * exp_dbug.ads: Add documentation on name qualification for renamings
40225 2003-10-23 Robert Dewar <dewar@gnat.com>
40227 * g-regpat.ads, g-regpat.adb: Minor reformatting
40229 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
40231 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
40233 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40235 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
40238 * urealp.h: (Machine): Update to proper definition.
40240 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
40242 * init.c, adaint.c: Minor reformatting.
40244 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
40246 * adaint.c (w32_epoch_offset): Define static const at file level.
40247 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
40248 rather than t_create, t_access in call to GetFileTime. Use union
40249 to convert between FILETIME and unsigned long long.
40250 (__gnat_file_time_name): Test for invalid file handle.
40251 (__gnat_set_filetime_name): Support win32 targets using
40252 w32api SetFileTime.
40254 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
40256 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
40258 * ctrl_c.c (__gnat_int_handler): Remove declaration.
40260 * decl.c (creat_concat_name): Const-ify prefix.
40262 * adaint.c: Include ctype.h if __MINGW32__.
40263 (__gnat_readlink): Mark arguments as possibly unused.
40264 (__gnat_symlink): Likewise.
40265 (__gnat_is_symbolic_link): Likewise.
40266 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
40268 (__gnat_file_time_name): Don't declare struct stat statbuf when
40270 (__gnat_is_absolute_path): Add parenthesis around condition of
40271 'if' statement to avoid warning.
40272 (__gnat_plist_init): Specify void as parameter.
40273 (plist_enter): Likewise.
40274 (plist_leave): Likewise.
40275 (remove_handle): Make static. Initialize prev.
40277 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
40280 * Makefile.in: Disable build of gnatpsta.
40281 * cstreams.c (__gnat_full_name): Minor improvements and clean up
40282 of previous change.
40284 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40286 * tracebak.c (MAX): Avoid redefinition warning.
40288 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
40289 Change msg to const char *.
40290 (__gnat_install_handler): Remove ss, unused.
40291 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
40293 * cstreams.c (__gnat_full_name): Declare p only when used.
40294 (__gnat_full_name) [sgi] Return buffer.
40296 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
40298 * mingw32.h: New file.
40299 * gnat_wrapper.adb: New file.
40301 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
40303 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
40304 string match a pre compiled regular expression (the corresponding
40305 version of the function working on a raw regular expression)
40306 Fix typos in various comments
40307 Update copyright notice in spec
40309 2003-10-21 Gary Dismukes <dismukes@gnat.com>
40312 (Component_Needs_Simple_Initialization): Return False when the type is a
40313 packed bit array. Revise spec comments to document this case.
40316 (Expand_Pragma_Import): Set any expression on the imported object to
40317 empty to avoid initializing imported objects (in particular this
40318 covers the case of zero-initialization of bit arrays).
40319 Update copyright notice.
40321 2003-10-21 Ed Schonberg <schonberg@gnat.com>
40324 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
40325 a subunit is missing.
40326 (Instantiate_Subprogram_Body): If body of function is missing, set type
40327 of return expression explicitly in dummy body, to prevent cascaded
40328 errors when a subunit is missing.
40332 (Access_Subprogram_Declaration): Verify that return type is valid.
40336 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
40341 (Corresponding_Discriminant): If the scope of the discriminant is a
40342 private type without discriminant, use its full view.
40345 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
40347 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
40348 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
40349 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
40350 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
40351 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
40352 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
40353 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
40354 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
40355 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
40356 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
40357 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
40358 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
40359 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
40360 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
40361 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
40362 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
40363 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
40364 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
40365 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
40366 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
40367 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
40368 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
40369 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
40370 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
40371 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
40372 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
40373 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
40374 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
40375 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
40376 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
40377 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
40378 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
40379 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
40380 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
40381 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
40382 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
40383 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
40384 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
40385 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
40386 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
40387 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
40388 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
40389 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
40390 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
40391 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
40392 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
40393 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
40394 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
40395 vms_conv.ads, vms_conv.adb, vms_data.ads,
40396 vxaddr2line.adb: Files added. Merge with ACT tree.
40398 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
40399 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
40400 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
40401 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
40402 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
40403 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
40404 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40405 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
40406 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
40407 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
40409 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40410 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40411 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40412 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40413 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
40414 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
40415 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40416 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
40417 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
40418 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
40419 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
40420 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
40421 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
40422 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
40423 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
40424 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
40425 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
40426 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40427 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
40428 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
40429 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
40430 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
40431 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
40432 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
40433 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
40434 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
40435 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
40436 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
40437 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
40438 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
40439 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
40440 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
40441 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
40442 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
40443 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
40444 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
40445 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
40446 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
40447 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
40448 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
40449 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
40450 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
40451 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
40452 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
40453 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
40454 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
40455 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
40456 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
40457 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
40458 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
40459 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
40460 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
40461 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
40462 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
40463 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
40464 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
40465 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
40466 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
40467 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
40468 checks.adb, checks.ads, cio.c, comperr.adb,
40469 comperr.ads, csets.adb, cstand.adb, cstreams.c,
40470 debug_a.adb, debug_a.ads, debug.adb, decl.c,
40471 einfo.adb, einfo.ads, errout.adb, errout.ads,
40472 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
40473 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
40474 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
40475 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
40476 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
40477 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
40478 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
40479 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
40480 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
40481 fe.h, fmap.adb, fmap.ads, fname.adb,
40482 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
40483 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
40484 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
40485 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40486 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40487 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40488 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
40489 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
40490 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
40491 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
40492 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
40493 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
40494 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
40495 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
40496 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
40497 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
40498 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
40499 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
40500 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
40501 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
40502 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
40503 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
40504 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
40505 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
40506 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
40507 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
40508 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
40509 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
40510 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
40511 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
40512 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
40513 layout.adb, lib.adb, lib.ads, lib-list.adb,
40514 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
40515 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40516 link.c, live.adb, make.adb, make.ads,
40517 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
40518 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
40519 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
40520 misc.c, mkdir.c, mlib.adb, mlib.ads,
40521 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
40522 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
40523 namet.adb, namet.ads, namet.h, nlists.ads,
40524 nlists.h, nmake.adt, opt.adb, opt.ads,
40525 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
40526 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
40527 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40528 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
40529 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
40530 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
40531 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
40532 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
40533 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
40534 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
40535 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
40536 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
40537 prj-util.adb, prj-util.ads, raise.c, raise.h,
40538 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
40539 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
40540 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
40541 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
40542 scans.ads, scn.adb, scn.ads, s-crc32.adb,
40543 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
40544 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
40545 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
40546 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
40547 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
40548 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40549 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40550 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
40551 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
40552 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
40553 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
40554 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
40555 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
40556 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
40557 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40558 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
40559 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
40560 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
40561 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
40562 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
40563 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
40564 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
40565 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
40566 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
40567 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
40568 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
40569 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
40570 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
40571 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
40572 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
40573 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
40574 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
40575 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
40576 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
40577 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
40578 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
40579 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
40580 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
40581 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
40582 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
40583 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
40584 stringt.adb, stringt.ads, stringt.h, style.ads,
40585 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
40586 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
40587 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
40588 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
40589 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
40590 table.adb, table.ads, targparm.adb, targparm.ads,
40591 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
40592 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
40593 ttypes.ads, types.ads, types.h, uintp.adb,
40594 uintp.ads, uintp.h, uname.adb, urealp.adb,
40595 urealp.ads, urealp.h, usage.adb, utils2.c,
40596 utils.c, validsw.adb, validsw.ads, widechar.adb,
40597 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
40598 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
40599 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
40600 gnatvsn.ads: Merge with ACT tree.
40602 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
40604 2003-10-20 Mark Mitchell <mark@codesourcery.com>
40606 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
40607 (gnat_ug_vmx.info): Likewise.
40608 (gnat_ug_vxw.info): Likewise.
40609 (gnat_ug_wnt.info): Likewise.
40610 (gnat_rm.info): Likewise.
40611 (gnat-style.info): Likewise.
40613 * Make-lang.in (ada.install-info): Remove target.
40614 (info): New target.
40615 (install-info): Likewise.
40616 (gnat_ug_unx.info): Simplify rule.
40617 (gnat_ug_vmx.info): Likewise.
40618 (gnat_ug_vxw.info): Likewise.
40619 (gnat_ug_wnt.info): Likewise.
40620 (gnat_rm.info): Likewise.
40621 (gnat-style.info): Likewise.
40623 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
40625 * Make-lang.in: Replace uses of $(target_alias) with
40626 $(target_noncanonical).
40627 * ada/Makefile.in: Remove unused mention of $(target_alias).
40629 2003-10-06 Mark Mitchell <mark@codesourcery.com>
40631 * Make-lang.in (ada.info): Replace with ...
40633 (ada.dvi): Replace with ...
40636 2003-09-29 Zack Weinberg <zack@codesourcery.com>
40638 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
40639 initialize dconstp5 and dconstmp5.
40641 2003-09-28 Richard Henderson <rth@redhat.com>
40643 * trans.c (tree_transform): Update call to expand_asm_operands.
40645 2003-09-21 Richard Henderson <rth@redhat.com>
40647 * trans.c, utils.c: Revert.
40649 2003-09-21 Richard Henderson <rth@redhat.com>
40651 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
40654 2003-09-04 Michael Matz <matz@suse.de>
40656 * misc.c: Include "target.h".
40657 * Make-lang.in (misc.o): Add dependency on target.h.
40659 2003-09-03 DJ Delorie <dj@redhat.com>
40661 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
40664 2003-08-30 Zack Weinberg <zack@codesourcery.com>
40666 * Makefile.in: Update substitutions to match changes to
40667 configure. Use include directives instead of @-insertions
40668 to read in host and target fragments. Add a rule to
40669 regenerate ada/Makefile.
40671 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
40673 * lang-options.h: Remove.
40674 * lang.opt: Add help text.
40676 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
40678 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
40681 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
40683 * misc.c (gnat_handle_option): Don't handle filenames.
40685 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
40687 * Make-lang.in: Replace PWD with PWD_COMMAND.
40688 * Makefile.adalib: Likewise.
40689 * Makefile.in: Likewise.
40691 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
40693 * misc.c (gnat_argv): Revert last change.
40694 (gnat_handle_option, gnat_init_options): Copy arguments.
40696 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
40698 * misc.c (gnat_argv): Make const.
40700 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
40702 * misc.c (save_argc, save_argv): Keep non-static!
40704 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
40706 * misc.c (save_argc, save_argv): Make static.
40707 (gnat_init_options): New prototype.
40708 (gnat_init_options): Update.
40710 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
40712 * gnat_ug.texi: Remove unlikely characters from @vars.
40713 * gnat_ug_vms.texi: Regenerate.
40715 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
40717 * misc.c (record_code_position): Adjust emit_note call.
40719 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
40721 * misc.c (gnat_handle_option): Don't check for missing arguments.
40723 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
40725 * utils.c (end_subprog_body): Adjust expand_function_end call.
40727 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
40729 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
40732 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
40734 * lang.opt: Declare Ada.
40735 * misc.c (gnat_init_options): Update.
40737 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
40739 * utils.c (begin_subprog_body): Adjust init_function_start call.
40741 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
40743 * Make-lang.in: Update to use options.c and options.h.
40744 * misc.c: Include options.h not aoptions.h.
40745 (gnat_handle_option): Abort on unrecognized switch.
40746 (gnat_init_options): Request Ada switches.
40748 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
40750 * lang.opt: Add -Wall.
40751 * misc.c (gnat_handle_option): Handle it.
40753 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
40755 * misc.c (gnat_handle_option): Fix warnings.
40757 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
40759 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
40761 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
40763 * Make-lang.in: Update to handle command-line options.
40764 * lang.opt: New file.
40765 * misc.c: Include aoptions.h.
40766 (cl_options_count, cl_options): Remove.
40767 (gnat_handle_option): New.
40768 (gnat_decode_option): Remove.
40769 (LANG_HOOKS_DECODE_OPTION): Remove.
40770 (LANG_HOOKS_HANDLE_OPTION): Override.
40772 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
40774 * init.c, misc.c, trans.c, utils.c: Remove dead code.
40776 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
40778 * Makefile.in: Replace "host_canonical" with "host" for autoconf
40781 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
40783 * Make-lang.in: Update.
40784 * misc.c: Include opts.h. Define cl_options_count and cl_options.
40786 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
40788 * misc.c (gnat_init_options): Update.
40790 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40792 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
40793 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
40794 __attribute__ ((__unused__)).
40796 2003-06-05 Jan Hubicka <jh@suse.cz>
40798 * Make-lang.in: Add support for stageprofile and stagefeedback
40800 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40802 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
40803 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
40805 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
40807 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
40808 Remove non-VMS directive.
40809 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
40811 (Examples of gnatls Usage): Remove VMS alternative.
40813 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
40816 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
40817 and turn ZCX_By_Default back to False since the underlying support
40818 is not quite there yet.
40820 2003-06-01 Andreas Jaeger <aj@suse.de>
40822 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
40823 and ROUND_TYPE_SIZE_UNIT.
40825 2003-05-22 Geert Bosch <bosch@gnat.com>
40827 * gnat_rm.texi : Remove reference to Ada Core Technologies.
40829 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
40831 * trans.c (tree_transform): Use location_t and input_location
40833 (build_unit_elab): Likewise.
40834 * utils.c (create_label_decl): Likewise.
40836 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
40838 * trans.c (tree_transform, build_unit_elab,
40839 set_lineno): Rename lineno to input_line.
40840 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
40841 end_subprog_body): Likewise.
40842 * utils2.c (build_call_raise): Likewise.
40844 2003-05-01 Laurent Guerby <guerby@acm.org>
40847 * 5iosinte.ads: Increase pthread_cond_t size to match recent
40848 LinuxThread and NPTL version, merge from ACT.
40850 2003-04-28 Zack Weinberg <zack@codesourcery.com>
40852 * utils.c (convert): No need to clear TREE_CST_RTL.
40854 2003-04-23 Geert Bosch <bosch@gnat.com>
40856 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40857 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40858 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40859 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40860 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40861 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
40862 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
40863 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
40864 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40865 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
40866 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
40867 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
40868 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
40869 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
40870 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
40871 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
40872 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
40873 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
40874 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
40875 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
40876 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
40877 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
40878 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40879 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
40880 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
40881 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
40882 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
40883 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
40884 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
40885 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
40886 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
40887 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
40888 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
40889 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
40890 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
40891 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
40892 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
40893 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
40894 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
40895 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
40896 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
40897 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
40898 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
40899 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
40900 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
40901 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
40902 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
40903 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
40904 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
40905 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
40906 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
40907 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
40908 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
40909 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
40910 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
40911 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
40912 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
40913 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
40914 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
40915 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
40916 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
40917 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
40918 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
40919 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
40920 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
40921 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
40922 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
40923 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
40924 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
40925 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
40926 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
40927 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
40928 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
40929 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
40930 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
40931 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
40932 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
40933 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
40934 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
40935 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
40936 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
40937 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40938 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
40939 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
40940 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
40941 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
40942 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
40943 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
40944 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
40945 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
40946 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
40947 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
40948 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
40949 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40950 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40951 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40952 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40953 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40954 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40955 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40956 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40957 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40958 ali.adb, ali.ads, alloc.ads, argv.c,
40959 atree.adb, atree.ads, atree.h, aux-io.c,
40960 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40961 binde.adb, binde.ads, binderr.adb, binderr.ads,
40962 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40963 butil.adb, butil.ads, cal.c, calendar.ads,
40964 casing.adb, casing.ads, ceinfo.adb, checks.adb,
40965 checks.ads, cio.c, comperr.adb, comperr.ads,
40966 config-lang.in, csets.adb, csets.ads, csinfo.adb,
40967 cstand.adb, cstand.ads, cuintp.c, debug.adb,
40968 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40969 dec-io.ads, dec.ads, deftarg.c, directio.ads,
40970 einfo.adb, einfo.ads, elists.adb, elists.ads,
40971 elists.h, errno.c, errout.adb, errout.ads,
40972 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40973 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40974 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40975 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40976 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40977 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40978 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40979 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40980 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40981 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40982 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40983 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40984 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40985 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40986 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40987 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40988 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40989 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40990 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40991 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40992 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40993 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40994 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40995 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40996 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40997 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40998 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40999 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
41000 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
41001 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
41002 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
41003 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
41004 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
41005 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
41006 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
41007 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
41008 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
41009 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
41010 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
41011 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
41012 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
41013 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
41014 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
41015 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
41016 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
41017 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
41018 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
41019 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
41020 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
41021 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
41022 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
41023 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
41024 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
41025 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
41026 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
41027 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
41028 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
41029 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
41030 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
41031 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
41032 lib.adb, lib.ads, live.adb, live.ads,
41033 machcode.ads, make.adb, make.ads, makeusg.adb,
41034 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
41035 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
41036 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
41037 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
41038 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
41039 mlib.ads, namet.adb, namet.ads, nlists.adb,
41040 nlists.ads, opt.adb, opt.ads, osint-b.adb,
41041 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
41042 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
41043 osint.ads, output.adb, output.ads, par-ch10.adb,
41044 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
41045 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
41046 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
41047 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
41048 par-tchk.adb, par-util.adb, par.adb, par.ads,
41049 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
41050 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
41051 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
41052 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
41053 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
41054 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
41055 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
41056 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
41057 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
41058 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
41059 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
41060 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
41061 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
41062 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
41063 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
41064 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
41065 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
41066 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
41067 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
41068 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
41069 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
41070 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
41071 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
41072 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
41073 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
41074 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
41075 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
41076 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
41077 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
41078 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
41079 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
41080 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
41081 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
41082 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
41083 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
41084 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
41085 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
41086 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
41087 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
41088 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
41089 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
41090 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
41091 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
41092 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
41093 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
41094 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
41095 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
41096 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
41097 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
41098 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
41099 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
41100 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
41101 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
41102 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
41103 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
41104 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
41105 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
41106 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
41107 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
41108 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
41109 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
41110 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
41111 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
41112 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
41113 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
41114 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
41115 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
41116 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
41117 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
41118 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
41119 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
41120 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
41121 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
41122 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
41123 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
41124 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
41125 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
41126 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
41127 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
41128 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
41129 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
41130 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
41131 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
41132 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41133 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
41134 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
41135 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
41136 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
41137 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
41138 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
41139 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
41140 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
41141 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
41142 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
41143 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
41144 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
41145 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
41146 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
41147 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
41148 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
41149 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
41150 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
41151 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
41152 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
41153 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
41154 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
41155 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
41156 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
41157 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
41158 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
41159 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
41160 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
41161 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
41162 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
41163 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
41164 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
41165 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
41166 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
41167 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
41168 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
41169 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
41170 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
41171 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
41172 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
41173 snames.ads, sprint.adb, sprint.ads, stand.adb,
41174 stand.ads, stringt.adb, stringt.ads, style.adb,
41175 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
41176 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
41177 switch-m.ads, switch.adb, switch.ads, system.ads,
41178 table.adb, table.ads, targparm.adb, targparm.ads,
41179 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
41180 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
41181 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
41182 ttypef.ads, ttypes.ads, types.adb, types.ads,
41183 uintp.adb, uintp.ads, uname.adb, uname.ads,
41184 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
41185 usage.adb, usage.ads, validsw.adb, validsw.ads,
41186 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
41187 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
41188 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
41189 formatting and other trivial changes from ACT.
41191 2003-04-12 Zack Weinberg <zack@codesourcery.com>
41193 * gigi.h, utils2.c (build_constructor):
41194 Rename gnat_build_constructor. Use build_constructor.
41195 * decl.c (gnat_to_gnu_entity)
41196 * trans.c (tree_transform, pos_to_constructor, extract_values)
41197 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
41198 (unchecked_convert)
41199 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
41200 (fill_vms_descriptor):
41203 2003-04-06 Zack Weinberg <zack@codesourcery.com>
41205 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
41206 * misc.c (gnat_tree_size): New function.
41207 (LANG_HOOKS_TREE_SIZE): Override.
41209 2003-04-03 Jason Merrill <jason@redhat.com>
41211 * misc.c (gnat_adjust_rli): #if 0.
41213 2003-03-31 Geert Bosch <bosch@gnat.com>
41216 * link.c : Fix misspelled "const" keyword
41218 2003-03-23 Mark Mitchell <mark@codesourcery.com>
41221 * utils2.c: Adjust calls to put_var_into_stack.
41223 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
41225 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
41227 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
41229 * misc.c (gnat_init): Update for new prototype.
41231 2003-03-05 Olivier Hainque <hainque@gnat.com>
41234 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
41235 warning, and fix return type for the IN_RTS && !SJLJ case.
41237 2003-03-04 Tom Tromey <tromey@redhat.com>
41239 * Make-lang.in (ada.tags): New target.
41241 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
41244 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
41245 wrapper, which name remains constant whatever underlying GCC
41248 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
41249 the stable interface needed for a-except.
41251 2003-03-02 Andreas Jaeger <aj@suse.de>
41253 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41254 gnat_ug_wnt.texi: Regenerate.
41256 2003-03-02 Laurent Guerby <guerby@acm.org>
41258 * Makefile.in (install-gnatlib): Match previous change there
41261 2003-02-28 Andreas Schwab <schwab@suse.de>
41263 * Make-lang.in (install-gnatlib): Change to ada directory before
41264 running make instead of using ada/Makefile directly.
41266 2003-02-18 Ben Elliston <bje@redhat.com>
41268 Part of PR ada/9406
41269 * gnat_ug.texi (Binder output file): Grammar fix.
41271 2003-02-18 Ben Elliston <bje@redhat.com>
41274 * 5qtaprop.adb (Sleep): Fix typo in comment.
41276 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
41278 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
41279 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41280 gnat_ug_wnt.texi: Regenerate.
41282 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
41284 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
41285 be created if necessary.
41286 (ada.install-common): Let $(DESTDIR)$(bindir) be created
41287 if necessary. Remove erroneous and redundant gnatchop
41288 installation commands. Test for gnatdll before attempting
41290 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
41291 and gnatdll from all plausible locations.
41293 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
41295 * utils2.c (build_unary_op): Don't check flag_volatile.
41296 * gnat_ug.texi: Remove -fvolatile from example.
41297 * gnat_ug_vxw.texi: Likewise.
41299 2003-01-29 Laurent Guerby <guerby@acm.org>
41302 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
41303 * Makefile.in: match previous change.
41304 * Make-lang.in: match previous change.
41306 2003-01-29 Joel Sherrill <joel@OARcorp.com>
41308 * 5rosinte.ads: Add SIGXCPU.
41309 * 5rtpopsp.adb: New file.
41310 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
41311 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
41312 specific file 5rtpopsp.adb.
41313 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
41314 is likely needed for all newlib targets.
41315 * init.c: Add RTEMS specific version of __gnat_initialize().
41317 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41319 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
41321 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41323 * init.c (__gnat_error_handler): Make msg const.
41325 * gmem.c (convert_addresses): Move declaration ...
41326 * adaint.h: ... here.
41327 * adaint.c (convert_addresses): Adapt addrs type to match
41330 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
41332 2003-01-24 Andreas Schwab <schwab@suse.de>
41334 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
41335 size_t to avoid warning.
41337 2003-01-21 Zack Weinberg <zack@codesourcery.com>
41339 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
41341 2003-01-09 Geoffrey Keating <geoffk@apple.com>
41343 * gnat_rm.texi: Remove RCS version number.
41345 * ada-tree.h (union lang_tree_node): Add chain_next option.
41347 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
41349 * Make-lang.in (ada.install-info, ada.install-common,
41350 ada.uninstall): Prepend $(DESTDIR) to the destination
41351 directory in all (un)installation commands.
41352 * Makefile.in (install-gnatlib, install-rts): Ditto.
41354 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
41356 * gnat_rm.texi, gnat_ug.texi: Use @copying.
41357 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41358 gnat_ug_wnt.texi: Regenerate.
41360 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
41362 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
41364 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
41365 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
41366 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
41367 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
41368 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
41369 $(srcdir)/doc/include/gcc-common.texi.
41371 2002-12-15 Geert Bosch <bosch@gnat.com>
41373 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
41375 2002-12-14 Geert Bosch <bosch@gnat.com>
41378 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
41379 case of a body created for a Renaming_As_Body, on which
41380 conformance checks are not performed.
41382 2002-11-30 Zack Weinberg <zack@codesourcery.com>
41384 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
41385 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
41386 not already included.
41387 * Make-lang.in: Update dependencies.
41389 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
41390 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
41391 solution to buffer overflow bug on GNU/Linux.
41393 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
41397 * bindgen.adb: Remove all references to Public_Version.
41398 * comperr.adb: Remove all references to Public_Version and
41399 GNATPRO_Version; correct bug reporting instructions.
41400 * comperr.ads: Change to match bug box.
41401 * gnatvsn.ads: Remove all references to Public version and
41404 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
41407 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
41411 * config-lang.in: Remove diff_excludes.
41413 2002-11-05 Graham Stott <graham.stott@btinternet.com>
41416 * trans.c (gnu_pending_elaboration_lists): New GC root.
41417 (build_unit_elab): Use..
41419 2002-10-30 Geert Bosch <bosch@gnat.com>
41422 * misc.c : Include optabs.h
41424 * Make-lang.in (misc.o): Add dependency on optabs.h
41426 2002-10-29 Geert Bosch <bosch@gnat.com>
41429 * Make-lang.in (gnatbind): Depend on CONFIG_H
41431 2002-10-29 Geert bosch <bosch@gnat.com>
41434 * misc.c: Unrevert misc.c (1.13)
41436 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
41438 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
41439 maintainership comments.
41441 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
41444 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
41445 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
41446 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
41447 7staprop.adb: Correct statements in comments about
41448 maintainership of GNAT.
41451 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
41452 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
41453 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
41454 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
41455 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
41456 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
41457 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
41458 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
41459 comments about maintainership of GNAT.
41461 PR ada/6919 (forward port of patch for PR ada/5904)
41462 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
41463 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
41464 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
41465 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
41466 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
41467 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
41468 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
41469 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
41470 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
41471 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
41472 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
41473 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
41474 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
41475 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
41476 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
41477 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
41478 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
41479 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
41480 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
41481 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
41482 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
41483 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
41484 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
41485 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
41486 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
41487 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
41488 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
41489 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
41490 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
41491 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
41492 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
41493 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
41494 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
41495 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
41496 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
41497 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
41498 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
41499 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
41500 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
41501 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
41502 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
41503 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
41504 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
41505 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
41506 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
41507 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
41508 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
41509 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
41510 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
41511 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
41512 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
41513 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
41514 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
41515 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
41516 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
41517 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
41518 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
41519 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
41520 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
41521 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
41522 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
41523 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
41524 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
41525 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
41526 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
41527 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
41528 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
41529 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
41530 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
41531 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
41532 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
41533 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
41534 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
41535 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
41536 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
41537 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
41538 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
41539 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
41540 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
41541 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
41542 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
41543 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
41544 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
41545 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
41546 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
41547 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
41548 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
41549 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
41550 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
41551 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
41552 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
41553 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
41554 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
41555 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
41556 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
41557 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
41558 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
41559 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
41560 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
41561 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
41562 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
41563 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
41564 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
41565 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
41566 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
41567 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
41568 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
41569 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
41570 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
41571 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
41572 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
41573 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
41574 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
41575 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
41576 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
41577 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
41578 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
41579 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
41580 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
41581 par-endh.adb par-labl.adb par-load.adb par-prag.adb
41582 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
41583 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
41584 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
41585 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
41586 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
41587 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
41588 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
41589 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
41590 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
41591 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
41592 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
41593 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
41594 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
41595 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
41596 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
41597 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
41598 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
41599 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
41600 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
41601 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
41602 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
41603 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
41604 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
41605 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
41606 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
41607 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
41608 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
41609 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
41610 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
41611 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
41612 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
41613 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
41614 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
41615 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
41616 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
41617 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
41618 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
41619 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
41620 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
41621 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
41622 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
41623 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
41624 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
41625 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
41626 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
41627 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
41628 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
41629 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
41630 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
41631 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
41632 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
41633 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
41634 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
41635 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
41636 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
41637 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
41638 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
41639 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
41640 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
41641 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
41642 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
41643 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
41644 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
41645 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
41646 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
41647 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
41648 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
41649 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
41650 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
41651 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
41652 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
41653 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
41654 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
41655 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
41656 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
41657 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
41658 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
41659 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
41660 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
41661 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
41662 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
41663 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
41664 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
41665 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
41666 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
41667 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
41668 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
41669 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
41670 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
41671 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
41672 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
41673 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
41674 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
41675 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
41676 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
41677 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
41678 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
41679 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
41680 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
41681 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
41682 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
41683 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
41684 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
41685 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
41686 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
41687 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
41688 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
41689 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
41690 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
41691 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
41692 stringt.ads stringt.h style.adb style.ads stylesw.adb
41693 stylesw.ads switch.adb switch.ads sysdep.c system.ads
41694 table.adb table.ads targparm.adb targparm.ads targtyps.c
41695 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
41696 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
41697 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
41698 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
41699 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
41700 usage.ads utils.c utils2.c validsw.adb validsw.ads
41701 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
41702 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
41703 xtreeprs.adb: Correct statements in comments about maintainership
41706 2002-09-23 Zack Weinberg <zack@codesourcery.com>
41708 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
41709 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
41710 * gnatvsn.ads: Gnat_Version_String is now a function.
41711 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
41712 copy the C version_string into a String and return it.
41713 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
41714 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
41715 Remove pragma Ident (Gnat_Version_String). If this was the
41716 sole use of package Gnatvsn, remove the with statement too.
41717 * gnat1drv.adb: Tweak -gnatv output.
41719 2002-09-17 Richard Henderson <rth@redhat.com>
41721 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
41722 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
41723 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
41724 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
41725 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
41726 and real_2expN instead of a loop.
41727 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
41728 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
41730 2002-08-25 Andre Leis <a.leis@gmx.net>
41731 David Billinghurst <David.Billinghurst@riotinto.com>
41733 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
41735 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41737 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
41738 Remove $(CONFIG_H) dependency.
41740 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
41742 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
41744 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41746 * adadecode.c (ada_demangle): Use xstrdup in lieu of
41748 * misc.c (gnat_decode_option): Likewise.
41750 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
41752 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41753 function approach did not work well because of a side effect (the
41754 function call could reallocate the table which was being indexed
41755 using its result). Fixes ada/4851. [RESURRECTED]
41757 2002-07-01 Roger Sayle <roger@eyesopen.com>
41759 * ada/utils.c (builtin_function): Accept an additional parameter.
41761 2002-06-28 Andreas Jaeger <aj@suse.de>
41764 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
41767 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41769 * Makefile.in (SHELL): Set to @SHELL@.
41771 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41773 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
41774 array size calculation.
41776 2002-06-04 Andreas Jaeger <aj@suse.de>
41778 * Make-lang.in (gnatbind): Readd rule that has been lost in last
41781 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
41783 Merge from pch-branch:
41785 * config-lang.in (gtfiles): Add ada-tree.h.
41786 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
41787 (SET_TYPE_MODULUS): New.
41788 (SET_TYPE_INDEX): New.
41789 (SET_TYPE_DIGITS_VALUE): New.
41790 (SET_TYPE_RM_SIZE): New.
41791 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
41792 (SET_TYPE_ADA_SIZE): New.
41793 (SET_TYPE_ACTUAL_BOUNDS): New.
41794 (SET_DECL_CONST_CORRESPONDING_VAR): New.
41795 (SET_DECL_ORIGINAL_FIELD): New.
41796 (TREE_LOOP_ID): Correct typo.
41797 * decl.c: Use new macros.
41798 * utils.c: Include debug.h, use new macros.
41799 * utils2.c: Use new macros.
41801 * ada-tree.h: Update all macros for new tree description.
41802 (struct tree_loop_id): New.
41803 (union lang_tree_node): New.
41804 (struct lang_decl): New.
41805 (struct lang_type): New.
41806 * misc.c (gnat_mark_tree): Delete.
41807 (LANG_HOOKS_MARK_TREE): Delete.
41808 * trans.c (tree_transform): No longer any need to cast
41811 * utils.c (struct language_function): New dummy structure.
41813 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
41814 (misc.o): Likewise.
41815 (utils.o): Likewise; also gtype-ada.h.
41816 * Make-lang.in (gnat1): Add dependency on s-gtype.
41817 (gnatbind): Add dependency on $(CONFIG_H).
41818 * utils.c: Correct last #include.
41819 (stuct e_stack): Remove unnecessary 'static'.
41820 (mark_e_stack): Remove unused prototype.
41822 * scn-nlit.adb: Remove whitespace after version number to
41823 keep lines under 80 chars.
41824 * snames.adb: Likewise.
41825 * treepr.ads: Likewise.
41827 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
41828 (misc.o): Likewise.
41829 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
41830 * config-lang.in (gtfiles): New.
41831 * decl.c: Use gengtype for roots.
41832 * gigi.h: Use gengtype for roots.
41833 * trans.c: Use gengtype for roots.
41834 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
41836 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
41838 * misc.c (gnat_init): Adjust setting of internal_error_function.
41840 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
41842 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
41843 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41844 gnat_ug_wnt.texi: Regenerate.
41846 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
41848 * 5ntaprop.adb (with System.OS_Primitives): Remove.
41850 * cstreams.c (max_path_len): Move from here ...
41851 * adaint.c (__gnat_max_path_len): ... to here.
41852 * adaint.c (__gnat_max_path_len): Declare.
41853 * g-dirope.adb (Max_Path): Adjust.
41854 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
41855 * i-cstrea.ads (max_path_len): Adjust.
41856 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
41857 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
41859 * Makefile.in, Make-lang.in: Documentation is now built in
41860 Make-lang.in. Store Info and generated Texinfo files in the
41862 * gnat_ug.texi: Remove CVS keywords, correct version number.
41863 Set file name correctly.
41865 * gnat_ug_*.texi: Add.
41866 * .cvsignore: Ignore generated Texinfo files.
41868 2002-05-30 Zack Weinberg <zack@codesourcery.com>
41870 * ada.h: Add MI guard macro.
41871 (SUBTYPE): Define constants with an anonymous enum, not static
41873 (IN): Cast constants to appropriate type before use.
41875 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
41877 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
41880 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41882 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
41883 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
41884 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
41885 (ALL_ADA_CFLAGS): Likewise.
41886 (ADA_INCLUDES): Likewise.
41887 Adapt for new working dir.
41888 (GNATBIND): Use Makefile.in version.
41889 (.SUFFIXES): Copy from Makefile.in.
41890 (ada-warn): Define.
41891 (.adb.o, .ads.o): Copy from Makefile.in.
41892 Added $(OUTPUT_OPTION).
41893 (GNAT1_C_OBJS): Moved from Makefile.in.
41894 Prefix with ada subdir.
41895 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
41896 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
41897 Adapt for new working dir.
41898 (EXTRA_GNATBIND_OBJS): Likewise.
41899 (ADA_BACKEND): Moved from Makefile.in.
41900 Renamed to avoid conflict with global BACKEND.
41902 (TARGET_ADA_SRCS): Moved from Makefile.in.
41903 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
41905 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
41906 (ada_extra_files): Moved from Makefile.in.
41907 Prefix with ada subdir.
41908 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
41909 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
41910 (ada/nmake.ads): Likewise.
41911 (update-sources): Moved from Makefile.in.
41912 Prefix with ada subdir.
41913 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
41914 (ADA_TREE_H): Likewise.
41915 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
41916 (ada/memtrack.o): Likewise.
41917 (ada/adadecode.o): Likewise.
41918 Update dependencies.
41919 (ada/adaint.o): New.
41920 (ada/argv.o): Moved from Makefile.in.
41921 Prefix with ada subdir.
41922 Update dependencies.
41923 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
41924 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
41925 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
41926 Prefix with ada subdir.
41927 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
41928 (GNAT DEPENDENCIES): Regenerate.
41929 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
41930 toplevel Makefile.in.
41931 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
41932 (TARGET_ADA_SRCS): Removed.
41933 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
41934 (GNATBIND_OBJS): Likewise.
41935 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
41936 (BACKEND): Removed.
41937 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41938 (TREE_H): Likewise.
41939 (ada_extra_files): Likewise.
41940 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
41941 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
41942 (update-sources): Likewise.
41943 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
41944 (ADA_TREE_H): Likewise.
41945 (adadecoce.o): Likewise.
41946 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
41947 (GNAT DEPENDENCIES): Likewise.
41949 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41951 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41952 * Makefile.in: Likewise.
41954 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41956 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41957 Restore $(CONFIG_H) and prefix.o dependencies.
41958 (ada.stage[1-4]): Depend on stage?-start.
41960 * Makefile.in (b_gnatb.c): Depend on interfac.o.
41962 2002-05-02 Jim Wilson <wilson@redhat.com>
41964 * utils.c (finish_record_type): Change record_size to record_type.
41966 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
41968 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41969 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41970 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
41972 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
41974 * misc.c (gnat_parse_file): Update.
41976 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
41978 * misc.c (gnat_init): Don't set lang_attribute_common.
41980 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
41982 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41984 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
41986 * gnat_ug.texi: New file.
41988 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
41989 instead of gfdl.texi
41991 * xgnatug.adb, ug_words: New files.
41993 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
41994 gnat_rm and gnat-style manuals.
41996 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
41998 * gigi.h (incomplete_type_error): Remove.
41999 * utils.c (incomplete_type_error): Remove.
42001 2002-04-16 Mark Mitchell <mark@codesourcery.com>
42003 * trans.c (tree_transform): Add has_scope argument to
42004 expand_start_stmt_expr.
42006 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
42008 * gigi.h (truthvalue_conversion): Rename.
42009 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
42010 * trans.c (tree_transform): Update.
42011 * utils2.c (truthvalue_conversion): Rename, update.
42012 (build_binary_op, build_unary_op): Update.
42014 2002-04-04 Laurent Guerby <guerby@acm.org>
42016 * make.adb: Implement -margs, remove restriction about file name placement.
42017 * makeusg.adb: Documentation update.
42018 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
42019 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
42021 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
42023 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
42024 (builtin_function): Similarly.
42026 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
42028 * decl.c (gnat_to_gnu_entity): Update.
42029 * gigi.h (mark_addressable): Rename.
42030 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
42031 * trans.c (tree_transform): Update.
42032 * utils.c (create_var_decl): Update.
42033 * util2.c (build_binary_op, build_unary_op,
42034 fill_vms_descriptor): Update.
42035 (mark_addressable): Rename, update.
42037 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
42039 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
42041 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
42042 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
42043 * trans.c (tree_transform, convert_with_check): Update.
42044 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
42047 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
42049 * gigi.h (finish_incomplete_decl): Rename.
42050 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
42051 * utils.c (gnat_init_decl_processing): Don't set hook.
42052 (finish_incomplete_decl): Rename.
42054 2002-03-29 Andreas Schwab <schwab@suse.de>
42056 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
42059 2001-03-28 Robert Dewar <dewar@gnat.com>
42062 (Remove_Checks): New procedure
42065 (Remove_Checks): New procedure
42068 Use new Duplicate_Subexpr functions
42069 (Duplicate_Subexpr_No_Checks): New procedure
42070 (Duplicate_Subexpr_No_Checks_Orig): New procedure
42071 (Duplicate_Subexpr): Restore original form (checks duplicated)
42072 (Duplicate_Subexpr): Call Remove_Checks
42075 (Duplicate_Subexpr_No_Checks): New procedure
42076 (Duplicate_Subexpr_No_Checks_Orig): New procedure
42077 Add 2002 to copyright notice
42079 * sem_util.adb: Use new Duplicate_Subexpr functions
42082 (Eval_Indexed_Component): This is the place to call
42083 Constant_Array_Ref and to replace the value. We simply merge
42084 the code of this function in here, since it is now no longer
42085 used elsewhere. This fixes the problem of the back end not
42086 realizing we were clever enough to see that this was
42088 (Expr_Val): Remove call to Constant_Array_Ref
42089 (Expr_Rep_Val): Remove call to Constant_Array_Ref
42091 (Constant_Array_Ref): Deal with string literals (patch
42092 suggested by Zack Weinberg on the gcc list)
42094 2001-03-28 Ed Schonberg <schonber@gnat.com>
42096 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
42097 Duplicate_Subexpr_Move_Checks.
42099 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
42100 Duplicate_Subexpr_Move_Checks.
42102 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
42103 value of array exists before retrieving it (it may a private
42104 protected component in a function).
42106 2002-03-28 Geert Bosch <bosch@gnat.com>
42108 * prj-pp.adb : New file.
42110 * prj-pp.ads : New file.
42112 2002-03-28 Andreas Jaeger <aj@suse.de>
42114 * Makefile.in (stamp-sdefault): Fix path for Makefile.
42116 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
42118 * misc.c (gnat_expand_expr): Move prototype.
42120 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
42122 * misc.c (insert_default_attributes): Remove.
42124 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
42126 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
42127 (gnat_init): Don't set hook.
42128 (gnat_expand_expr): Fix prototype.
42130 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
42132 * misc.c (ggc_p): Remove.
42134 2002-03-27 Geert Bosch <bosch@gnat.com>
42136 * prj-makr.ads, prj-makr.adb : New files.
42138 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
42140 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
42141 (lang_mark_tree): Make static, rename.
42143 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
42145 * misc.c (maybe_build_cleanup): Remove.
42147 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
42149 * gigi.h (yyparse): Remove.
42151 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
42153 From Ben Brosgol <brosgol@gnat.com>
42154 * gnat_rm.texi: Sync with ACT version.
42156 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
42158 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
42159 (gnat_init): Remove old hook.
42161 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
42163 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
42164 (yyparse): Rename gnat_parse_file.
42166 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
42168 Delete all lines containing "$Revision:".
42169 * xeinfo.adb: Don't look for revision numbers.
42170 * xnmake.adb: Likewise.
42171 * xsinfo.adb: Likewise.
42172 * xsnames.adb: Likewise.
42173 * xtreeprs.adb: Likewise.
42175 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
42177 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
42178 gnat_tree_code_name): Delete.
42179 (tree_code_type, tree_code_length, tree_code_name): Define.
42180 (gnat_init): Don't try to copy into the various tree_code
42183 2002-03-11 Richard Henderson <rth@redhat.com>
42185 * Makefile.in (.NOTPARALLEL): Add fake tag.
42187 2002-03-07 Geert Bosch <bosch@gnat.com>
42189 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
42190 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
42191 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
42192 switch-m.adb, switch-m.ads : New files.
42194 2002-03-07 Geert Bosch <bosch@gnat.com>
42196 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
42197 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
42198 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
42199 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
42200 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
42201 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
42202 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
42203 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
42204 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
42205 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
42206 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
42207 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
42208 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
42209 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
42210 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
42211 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
42212 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
42213 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
42214 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
42215 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
42216 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
42217 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
42218 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
42219 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
42220 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
42221 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
42222 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
42223 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
42224 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
42225 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
42226 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
42227 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
42228 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
42229 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
42230 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
42231 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
42232 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
42233 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
42234 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
42235 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
42236 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
42237 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
42238 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
42239 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
42240 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
42241 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
42242 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
42243 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
42244 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
42245 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
42246 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
42247 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
42248 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
42249 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
42250 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
42251 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
42252 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
42253 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
42254 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
42255 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
42256 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
42257 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
42258 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
42259 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
42260 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
42261 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
42262 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
42263 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
42264 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
42265 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
42266 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
42267 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
42268 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
42269 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
42270 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
42271 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
42272 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
42273 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
42274 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
42275 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
42276 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
42277 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
42278 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
42279 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
42280 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
42281 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
42282 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
42283 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
42284 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
42285 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
42286 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
42287 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
42288 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
42289 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
42290 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
42291 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
42292 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
42294 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
42295 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
42296 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
42297 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
42299 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
42300 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
42302 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
42303 to mdll-fil.ad[bs] and mdll-util.ad[bs]
42305 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
42306 from mdllfile.ad[bs] and mdlltool.ad[bs]
42308 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
42310 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
42311 lieu of explicit sizeof/sizeof.
42313 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
42315 * misc.c (copy_lang_decl): Remove.
42317 2002-02-27 Zack Weinberg <zack@codesourcery.com>
42319 * misc.c: Delete traditional-mode-related code copied from the
42320 C front end but not used, or used only to permit the compiler
42323 2002-02-07 Richard Henderson <rth@redhat.com>
42325 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
42326 * adaint.h (__gnat_to_gm_time): Update prototype.
42328 2002-01-30 Richard Henderson <rth@redhat.com>
42330 * trans.c (tree_transform) [N_Loop_Statement]: Use
42331 expand_exit_loop_top_cond.
42333 2001-12-23 Richard Henderson <rth@redhat.com>
42335 * utils.c (end_subprog_body): Push GC context around
42336 rest_of_compilation for nested functions.
42338 2001-12-23 Richard Henderson <rth@redhat.com>
42340 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
42342 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
42344 * gnat-style.texi (Declarations and Types): Remove ancient style
42345 rule which was mandated by code generation issues.
42347 * gnat-style.texi (header): Add @dircategory, @direntry.
42348 (title page): Remove date.
42349 (general) Add @./@: where approriate, and two spaces after the
42350 full stop at the end of a sentence. Use @samp markup when
42351 referring concrete lexical entities (keywords, attribute names
42352 etc.), and @syntax for ARM grammar elements. Use @r for English
42353 text in comments. Use @emph for emphasis. Change "if-statements"
42354 etc. to "if statements" (without @samp). Break long lines. Make
42355 casing of section names consistent.
42356 (Identifiers): Use @samp markup for variable names.
42357 (Comments): Use @samp markup for comment characters. Line-end
42358 comments may follow any Ada code, not just statements. Fix
42359 misspelling of "Integer" as "integer".
42360 (Loop statements): Do not use variable name "I", use "J".
42361 (Subprogram Declarations): Document alignment.
42362 (Subprogram Bodies, Block statements): Document empty line before
42365 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
42367 * make.adb (Add_Switch): Make Generic_Position a procedure. The
42368 function approach did not work well because of a side effect (the
42369 function call could reallocate the table which was being indexed
42370 using its result). Fixes ada/4851.
42372 2001-12-19 Robert Dewar <dewar@gnat.com>
42374 * bindgen.adb: Minor reformatting
42376 * cstand.adb: Minor reformatting
42378 * fmap.adb: Minor reformatting
42379 Change name from Add for Add_To_File_Map (Add is much too generic)
42380 Change Path_Name_Of to Mapped_Path_Name
42381 Change File_Name_Of to Mapped_File_Name
42382 Fix copyright dates in header
42385 Change name from Add for Add_To_File_Map (Add is much too generic)
42386 Change Path_Name_Of to Mapped_Path_Name
42387 Change File_Name_Of to Mapped_File_Name
42388 Fix copyright dates in header
42390 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
42391 Add use clause for Fmap.
42393 * make.adb: Minor reformatting
42395 * osint.adb: Minor reformatting. Change of names in Fmap.
42396 Add use clause for Fmap.
42398 * prj-env.adb: Minor reformatting
42400 * prj-env.ads: Minor reformatting
42402 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
42403 error found (there were odd exceptions to this general rule in
42404 -gnatec/-gnatem processing)
42406 2001-12-19 Olivier Hainque <hainque@gnat.com>
42408 * raise.c (__gnat_eh_personality): Exception handling personality
42409 routine for Ada. Still in rough state, inspired from the C++ version
42410 and still containing a bunch of debugging artifacts.
42411 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
42412 inspired from the C++ library.
42414 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
42415 exception handling integration.
42417 2001-12-19 Arnaud Charlet <charlet@gnat.com>
42419 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
42420 (HIE_SOURCES): Add s-secsta.ad{s,b}.
42421 (HIE_OBJS): Add s-fat*.o
42422 (RAVEN_SOURCES): Remove files that are no longer required. Add
42423 interrupt handling files.
42424 (RAVEN_MOD): Removed, no longer needed.
42426 2001-12-19 Robert Dewar <dewar@gnat.com>
42428 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
42429 Add 2001 to copyright date
42431 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
42432 need to force universal inlining for these cases.
42434 2001-12-19 Arnaud Charlet <charlet@gnat.com>
42436 * s-taprob.adb: Minor clean ups so that this unit can be used in
42439 * exp_ch7.adb: Allow use of secondary stack in HI mode.
42440 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
42442 2001-12-19 Vincent Celier <celier@gnat.com>
42444 * prj-tree.ads (Project_Node_Record): Add comments for components
42445 Pkg_Id and Case_Insensitive.
42447 2001-12-19 Pascal Obry <obry@gnat.com>
42449 * g-socket.adb: Minor reformatting. Found while reading code.
42451 2001-12-19 Robert Dewar <dewar@gnat.com>
42453 * prj-tree.ads: Minor reformatting
42455 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
42457 * config-lang.in (diff_excludes): Remove.
42459 2001-12-17 Ed Schonberg <schonber@gnat.com>
42461 * sem_res.adb (Resolve_Selected_Component): do not generate a
42462 discriminant check if the selected component is a component of
42463 the argument of an initialization procedure.
42465 * trans.c (tree_transform, case of arithmetic operators): If result
42466 type is private, the gnu_type is the base type of the full view,
42467 given that the full view itself may be a subtype.
42469 2001-12-17 Robert Dewar <dewar@gnat.com>
42471 * sem_res.adb: Minor reformatting
42473 * trans.c (tree_transform, case N_Real_Literal): Add missing third
42474 parameter in call to Machine (unknown horrible effects from this
42477 * urealp.h: Add definition of Round_Even for call to Machine
42478 Add third parameter for Machine
42480 2001-12-17 Ed Schonberg <schonber@gnat.com>
42482 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
42483 predefined units in No_Run_Time mode.
42485 2001-12-17 Richard Kenner <kenner@gnat.com>
42487 * misc.c (insn-codes.h): Now include.
42489 2001-12-17 Olivier Hainque <hainque@gnat.com>
42491 * a-except.adb: Preparation work for future integration of the GCC 3
42492 exception handling mechanism
42493 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
42494 to factorize previous code sequences and make them externally callable,
42495 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
42496 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
42497 Use the new notification routines.
42499 2001-12-17 Emmanuel Briot <briot@gnat.com>
42501 * prj-tree.ads (First_Choice_Of): Document the when others case
42503 2001-12-17 Arnaud Charlet <charlet@gnat.com>
42505 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
42506 HI-E mode, in order to support Ravenscar profile properly.
42508 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
42509 mode on 32 bits targets.
42511 2001-12-17 Vincent Celier <celier@gnat.com>
42513 * fmap.adb: Initial version.
42515 * fmap.ads: Initial version.
42517 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
42518 If search is successfully done, add to mapping.
42520 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
42523 (Gnatmake): Add new local variable Mapping_File_Name.
42524 Create mapping file when using project file(s).
42525 Delete mapping file before exiting.
42527 * opt.ads (Mapping_File_Name): New variable
42529 * osint.adb (Find_File): Use path name found in mapping, if any.
42531 * prj-env.adb (Create_Mapping_File): New procedure
42533 * prj-env.ads (Create_Mapping_File): New procedure.
42535 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
42538 * usage.adb: Add entry for new switch -gnatem.
42540 * Makefile.in: Add dependencies for fmap.o.
42542 2001-12-17 Ed Schonberg <schonber@gnat.com>
42544 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
42545 is a package instantiation rewritten as a package body.
42546 (Install_Withed_Unit): Undo previous change, now redundant.
42548 2001-12-17 Gary Dismuke <dismukes@gnat.com>
42551 (Compute_Length): Move conversion to Unsigned to callers.
42552 (Get_Max_Size): Convert Len expression to Unsigned after calls to
42553 Compute_Length and Determine_Range.
42554 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
42555 Compute_Length and Determine_Range.
42556 Above changes fix problem with length computation for supernull arrays
42557 where Max (Len, 0) wasn't getting applied due to the Unsigned
42558 conversion used by Compute_Length.
42560 2001-12-17 Arnaud Charlet <charlet@gnat.com>
42563 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
42564 System.Secondary_Stack.
42565 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
42567 Remove unused entity RE_Exception_Data.
42569 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
42571 * rident.ads (No_Secondary_Stack): New restriction.
42573 2001-12-17 Joel Brobecker <brobecke@gnat.com>
42575 * gnat_rm.texi: Fix minor typos. Found while reading the section
42576 regarding "Bit_Order Clauses" that was sent to a customer.
42577 Very interesting documentation!
42579 2001-12-17 Robert Dewar <dewar@gnat.com>
42581 * sem_case.adb (Choice_Image): Avoid creating improper character
42582 literal names by using the routine Set_Character_Literal_Name. This
42583 fixes bombs in certain error message cases.
42585 2001-12-17 Arnaud Charlet <charlet@gnat.com>
42587 * a-reatim.adb: Minor reformatting.
42589 2001-12-17 Ed Schonberg <schonber@gnat.com>
42591 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
42592 case where the formal is an extension of another formal in the current
42593 unit or in a parent generic unit.
42595 2001-12-17 Arnaud Charlet <charlet@gnat.com>
42597 * s-tposen.adb: Update comments. Minor reformatting.
42598 Minor code clean up.
42600 * s-tarest.adb: Update comments. Minor code reorganization.
42602 2001-12-17 Gary Dismukes <dismukes@gnat.com>
42604 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
42607 2001-12-17 Robert Dewa <dewar@gnat.com>
42609 * exp_attr.adb: Minor reformatting
42611 2001-12-17 Ed Schonberg <schonber@gnat.com>
42613 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
42614 derivations nested within a child unit: verify that the parent
42615 type is declared in an outer scope.
42617 2001-12-17 Robert Dewar <dewar@gnat.com>
42619 * sem_ch12.adb: Minor reformatting
42621 2001-12-17 Ed Schonberg <schonber@gnat.com>
42623 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
42624 warning if current unit is a predefined one, from which bodies may
42627 2001-12-17 Robert Dewar <dewar@gnat.com>
42629 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
42630 Fix header format. Add 2001 to copyright date.
42632 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
42633 which caused CE during compilation if checks were enabled.
42635 2001-12-17 Vincent Celier <celier@gnat.com>
42638 (Switches_Of): New function
42639 (Test_If_Relative_Path): New procedure
42640 (Add_Switches): Use new function Switches_Of
42641 (Collect_Arguments_And_Compile): Use new function Switches_Of.
42642 When using a project file, test if there are any relative
42643 search path. Fail if there are any.
42644 (Gnatmake): Only add switches for the primary directory when not using
42645 a project file. When using a project file, change directory to the
42646 object directory of the main project file. When using a project file,
42647 test if there are any relative search path. Fail if there are any.
42648 When using a project file, fail if specified executable is relative
42649 path with directory information, and prepend executable, if not
42650 specified as an absolute path, with the exec directory. Make sure
42651 that only one -o switch is transmitted to the linker.
42653 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
42656 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
42657 when using a non standard naming scheme.
42658 (Check_Ada_Naming_Scheme): Make sure that error messages
42659 do not raise exceptions.
42660 (Is_Illegal_Append): Return True if there is no dot in the suffix.
42661 (Language_Independent_Check): Check the exec directory.
42663 * prj.adb (Project_Empty): Add new component Exec_Directory
42666 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
42667 (Project_Data): Add component Exec_Directory
42669 * snames.adb: Updated to match snames.ads revision 1.215
42671 * snames.ads: Added Exec_Dir
42673 2001-12-17 Robert Dewar <dewar@gnat.com>
42675 * make.adb: Minor reformatting
42677 * prj-nmsc.adb: Minor reformatting
42679 * snames.adb: Updated to match snames.ads
42681 * snames.ads: Alphebetize entries for project file
42683 2001-12-17 Ed Schonberg <schonber@gnat.com>
42685 * trans.c (process_freeze_entity): Do nothing if the entity is a
42686 subprogram that was already elaborated.
42688 2001-12-17 Richard Kenner <kenner@gnat.com>
42690 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
42691 and Esize if object is referenced via pointer.
42693 2001-12-17 Ed Schonberg <schonber@gnat.com>
42695 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
42696 is discrete before analyzing choices.
42698 2001-12-17 Joel Brobecker <brobecke@gnat.com>
42700 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
42701 containing the name of the Ada Main Program. This string is mainly
42702 intended for the debugger.
42703 (Gen_Output_File_C): Do the equivalent change when generating a C file.
42705 2001-12-17 Robert Dewar <dewar@gnat.com>
42707 * ali.adb: Set new Dummy_Entry field in dependency entry
42709 * ali.ads: Add Dummy_Entry field to source dependency table
42711 * bcheck.adb (Check_Consistency): Ignore dummy D lines
42713 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
42715 * lib-writ.ads: Document dummy D lines for missing files.
42717 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
42719 2001-12-17 Robert Dewar <dewar@gnat.com>
42721 * ali.adb: Type reference does not reset current file.
42723 * ali.adb: Recognize and scan renaming reference
42725 * ali.ads: Add spec for storing renaming references.
42727 * lib-xref.ads: Add documentation for handling of renaming references
42729 * lib-xref.adb: Implement output of renaming reference.
42732 (Determine_Range): Document local variables
42733 (Determine_Range): Make sure Hbound is initialized. It looks as though
42734 there could be a real problem here with an uninitialized reference
42735 to Hbound, but no actual example of failure has been found.
42737 2001-12-17 Laurent Pautet <pautet@gnat.com>
42740 Fix comment of Shutdown_Socket and Close_Socket. These functions
42741 should not fail silently because if they are called twice, this
42742 probably means that there is a race condition in the user program.
42743 Anyway, this behaviour is consistent with the rest of this unit.
42744 When an error occurs, an exception is raised with the error message
42745 as exception message.
42747 2001-12-17 Robert Dewar <dewar@gnat.com>
42749 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
42750 that it happens before modification of Sloc values for -gnatD.
42752 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
42753 so that it happens before modification of Sloc values for -gnatD.
42755 * switch.adb: Minor reformatting
42757 2001-12-15 Richard Henderson <rth@redhat.com>
42759 * sem_ch7.adb: Wrap comment.
42761 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42763 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
42764 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
42765 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
42766 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
42767 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
42768 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
42769 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
42770 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
42771 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
42772 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
42773 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
42774 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
42775 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
42776 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
42777 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
42778 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
42779 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
42780 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
42781 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
42782 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
42783 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
42784 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
42785 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
42786 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
42789 2001-12-14 Vincent Celier <celier@gnat.com>
42791 * osint.adb(Create_Debug_File): When an object file is specified,
42792 put the .dg file in the same directory as the object file.
42794 2001-12-14 Robert Dewar <dewar@gnat.com>
42796 * osint.adb: Minor reformatting
42798 * lib-xref.adb (Output_Instantiation): New procedure to generate
42799 instantiation references.
42801 * lib-xref.ads: Add documentation of handling of generic references.
42803 * ali.adb (Read_Instantiation_Ref): New procedure to read
42804 instantiation references
42806 * ali.ads: Add spec for storing instantiation references
42808 * bindusg.adb: Minor reformatting
42810 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42812 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42814 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42816 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42820 Add 2001 to copyright date
42821 Add entry for Latin-5 (Cyrillic ISO-8859-5)
42823 2001-12-14 Matt Gingell <gingell@gnat.com>
42825 * adaint.c: mktemp is a macro on Lynx and can not be used as an
42828 2001-12-14 Richard Kenner <kenner@gnat.com>
42830 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
42831 if operand is CONSTRUCTOR.
42833 2001-12-14 Ed Schonberg <schonber@gnat.com>
42835 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
42836 before emiting check on right-hand side, so that exception information
42839 2001-12-14 Richard Kenner <kenner@gnat.com>
42841 * utils.c (create_var_decl): Throw away initializing expression
42842 if just annotating types and non-constant.
42844 2001-12-14 Vincent Celier <celier@gnat.com>
42846 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
42849 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42851 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
42853 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42855 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
42857 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42859 * ChangeLog: Remove piece of diff output.
42861 2001-12-14 Geert Bosch <bosch@gnat.com>
42863 * config-lang.in: Update copyright notice
42865 * layout.adb: Remove commented out code.
42867 * mdllfile.ads: Update copyright notice. Fix header format.
42869 * sem_case.ads: Likewise.
42871 * sem_ch3.adb: Minor reformatting.
42873 2001-12-12 Geert Bosch <bosch@gnat.com>
42875 * freeze.ads: Update copyright date.
42877 * g-comlin.ads: Minor reformatting.
42879 * gnat-style.texi: Fix typo.
42881 2001-12-12 Geert Bosch <bosch@gnat.com>
42883 * einfo.h: Regenerate.
42885 2001-12-12 Ed Schonberg <schonber@gnat.com>
42887 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
42888 on known node types, rather than untyped fields. Further cleanups.
42890 2001-12-12 Robert Dewar <dewar@gnat.com>
42893 (Save_Entity_Descendant): Minor comment update.
42894 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
42895 of an N_Attribute_Reference node. As per note below, this does not
42896 eliminate need for Associated_Node in attribute ref nodes.
42897 (Associated_Node): Documentation explicitly mentions attribute
42898 reference nodes, since this field is used in such nodes.
42900 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
42902 2001-12-12 Robert Dewar <dewar@gnat.com>
42904 * s-stalib.adb: Add more comments on with statements being needed
42906 * par-ch12.adb: Minor reformatting
42908 * prj-dect.ads: Fix copyright header
42910 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
42911 inputs fit in 32 bits, but the result still overflows.
42913 * s-fatgen.ads: Minor comment improvement
42915 2001-12-12 Ed Schonberg <schonber@gnat.com>
42917 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
42918 formal derived type, look for an inherited component from the full
42919 view of the parent, if any.
42921 2001-12-12 Robert Dewar <dewar@gnat.com>
42923 * checks.ads (Apply_Alignment_Check): New procedure.
42925 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
42926 ensure that the alignment of objects with address clauses is
42927 appropriate, and raise PE if not.
42929 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
42930 Exp_Pakd.Known_Aligned_Enough
42932 * mdllfile.ads: Minor reformatting
42934 * mlib-fil.ads: Minor reformatting
42936 2001-12-12 Ed Schonberg <schonber@gnat.com>
42938 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
42939 fix to any component reference if enclosing record has non-standard
42942 2001-12-12 Vincent Celier <celier@gnat.com>
42944 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
42947 2001-12-12 Ed Schonberg <schonber@gnat.com>
42949 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
42952 2001-12-12 Robert Dewar <dewar@gnat.com>
42954 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
42956 2001-12-12 Emmanuel Briot <briot@gnat.com>
42958 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42959 and it adds dependencies to system.io.
42961 2001-12-12 Pascal Obry <obry@gnat.com>
42963 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
42966 2001-12-11 Ed Schonberg <schonber@gnat.com>
42968 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
42969 that is the parent of other generics, the instance body replaces the
42970 instance node. Retrieve the instance of the spec, which is the one
42971 that is visible in clients and within the body.
42973 2001-12-11 Vincent Celier <celier@gnat.com>
42975 * gnatmain.adb: Initial version.
42977 * gnatmain.ads: Initial version.
42979 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42981 * snames.adb: Updated to match snames.ads.
42983 * snames.ads: Added Gnatstub.
42985 2001-12-11 Vincent Celier <celier@gnat.com>
42987 * prj-attr.adb (Initialization_Data): Change name from
42988 Initialisation_Data.
42990 2001-12-11 Emmanuel Briot <briot@gnat.com>
42992 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42993 + and * applied to backslashed expressions like \r.
42995 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
42997 * g-os_lib.ads: String_List type added, Argument_List type is now
42998 subtype of String_List.
43000 2001-12-11 Robert Dewar <dewar@gnat.com>
43002 * g-os_lib.ads: Change copyright to FSF
43003 Add comments for String_List type
43005 2001-12-11 Vincent Celier <celier@gnat.com>
43007 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
43008 string to the buffer).
43010 2001-12-11 Ed Schonberg <schonber@gnat.com>
43012 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
43015 * sem_attr.adb: Simplify previous fix for Address.
43016 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
43017 to avoid anomalies where the bound of the type appears to raise
43020 2001-12-11 Robert Dewar <dewar@gnat.com>
43022 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
43025 2001-12-11 Ed Schonber <schonber@gnat.com>
43027 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
43028 renamed unit before checking for recursive instantiations.
43030 2001-12-11 Emmanuel Briot <briot@gnat.com>
43032 * prj.ads: Add comments for some of the fields.
43034 2001-12-11 Robert Dewar <dewar@gnat.com>
43036 * lib-xref.adb (Output_Refs): Don't output type references outside
43037 the main unit if they are not otherwise referenced.
43039 2001-12-11 Ed Schonberg <schonber@gnat.com>
43041 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
43042 code and diagnose additional illegal uses
43044 * sem_util.adb (Is_Object_Reference): An indexed component is an
43045 object only if the prefix is.
43047 2001-12-11 Vincent Celier <celier@gnat.com>
43049 * g-diopit.adb: Initial version.
43051 * g-diopit.ads: Initial version.
43054 (Expand_Path): Avoid use of Unbounded_String
43055 (Find, Wildcard_Iterator): Moved to child package Iteration
43057 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
43059 2001-12-11 Robert Dewar <dewar@gnat.com>
43061 * sem_attr.adb: Minor reformatting
43063 2001-12-11 Ed Schonberg <schonber@gnat.com>
43065 * sem_ch3.adb: Clarify some ???.
43067 2001-12-11 Robert Dewar <dewar@gnat.com>
43069 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
43070 Exp_Pakd.Known_Aligned_Enough
43072 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
43073 version is moved to Exp_Ch13.
43075 2001-12-11 Robert Dewar <dewar@gnat.com>
43077 * einfo.ads: Minor reformatting
43079 * exp_ch5.adb: Add comment for previous.change
43081 * ali.adb: New interface for extended typeref stuff.
43083 * ali.ads: New interface for typeref stuff.
43085 * checks.adb (Apply_Alignment_Check): New procedure.
43087 * debug.adb: Add -gnatdM for modified ALI output
43089 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
43091 * lib-xref.adb: Extend generation of <..> notation to cover
43092 subtype/object types. Note that this is a complete rewrite,
43093 getting rid of the very nasty quadratic algorithm previously
43094 used for derived type output.
43096 * lib-xref.ads: Extend description of <..> notation to cover
43097 subtype/object types. Uses {..} for these other cases.
43098 Also use (..) for pointer types.
43100 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
43102 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
43103 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
43105 2001-12-11 Vincent Celier <celier@gnat.com>
43108 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
43109 Changed /BIND_ONLY to /ACTIONS=BIND
43110 Changed /LINK_ONLY to /ACTIONS=LINK
43112 2001-12-11 Ed Schonberg <schonber@gnat.com>
43114 * sem_ch8.adb (Find_Selected_Component): improved search for a
43115 candidate package in case of error.
43117 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
43118 chain back on scope stack before reinstalling use clauses.
43120 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
43121 is enabled, do not kill the code for the condition, to preserve
43124 2001-12-11 Robert Dewar <dewar@gnat.com>
43126 * checks.adb (Insert_Valid_Check): Apply validity check to expression
43127 of conversion, not to result of conversion.
43129 2001-12-11 Ed Schonberg <schonber@gnat.com>
43131 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
43132 before freezing parent. If the declarations are mutually recursive,
43133 an access to the current record type may be frozen before the
43134 derivation is complete.
43136 2001-12-05 Vincent Celier <celier@gnat.com>
43138 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
43139 -c /COMPILE_ONLY, -l /LINK_ONLY
43142 (Bind_Only): New Flag
43143 (Link_Only): New flag
43145 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
43148 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
43151 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
43152 (Gnatmake): Set the step flags. Only perform a step if the
43153 corresponding step flag is True.
43154 (Scan_Make_Arg): Reset the bind and link step flags when -u
43155 or -gnatc has been specified.
43157 2001-12-05 Ed Schonberg <schonber@gnat.com>
43159 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
43160 get bounds from right operand.
43162 * sem_eval.adb: Minor reformatting
43164 * exp_util.adb (Make_Literal_Range): use bound of literal rather
43165 than Index'First, its lower bound may be different from 1.
43167 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
43170 2001-12-05 Vincent Celier <celier@gnat.com>
43172 * prj-nmsc.adb Minor reformatting
43174 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
43175 set and libraries are not supported.
43177 2001-12-05 Ed Schonberg <schonber@gnat.com>
43179 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
43180 private view explicitly, so the back-end can treat as a global
43183 2001-12-05 Ed Schonberg <schonber@gnat.com>
43185 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
43186 unit, always replace instance node with new body, for ASIS use.
43188 2001-12-05 Vincent Celier <celier@gnat.com>
43190 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
43191 libraries are not supported and both attributes Library_Name and
43192 Library_Dir are specified.
43194 * prj-proc.adb (Expression): Set location of Result to location of
43197 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
43198 (prj-nmsc is now importing MLib.Tgt)
43200 * prj-proc.adb: Put the change indicated above that was forgotten.
43202 2001-12-05 Robert Dewar <dewar@gnat.com>
43204 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
43206 2001-12-05 Ed Schonberg <schonber@gnat.com>
43208 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
43209 constraint, introduce explicit subtype declaration and derive from it.
43211 * sem_ch3.adb: Minor reformatting
43213 2001-12-05 Robert Dewar <dewar@gnat.com>
43215 * checks.adb (Determine_Range): Increase cache size for checks.
43218 * exp_ch6.adb: Minor reformatting
43219 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
43220 a parameter whose root type is System.Address, since treating such
43221 subprograms as pure in the code generator is almost surely a mistake
43222 that will lead to unexpected results.
43224 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
43225 change handling of conversions.
43227 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
43229 2001-12-05 Ed Schonberg <schonber@gnat.com>
43231 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
43232 aggregate with static wrong size, attach generated Raise node to
43235 2001-12-05 Robert Dewar <dewar@gnat.com>
43237 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
43238 Fixes compilation abandoned bomb in B24009B.
43240 2001-12-05 Ed Schonberg <schonber@gnat.com>
43243 Document use of Associated_Node on Selected_Components.
43244 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
43245 to clarify use of untyped descendant fields.
43247 2001-12-05 Robert Dewar <dewar@gnat.com>
43249 * prj-dect.ads: Add ??? comment
43250 Add 2001 to copyright notice (was not done in after all)
43252 * prj-part.adb: Minor reformatting. Reword one awkward error message.
43254 * prj.ads: Minor reformatting throughout, and add some ??? comments
43256 * snames.ads: Minor reformatting
43258 2001-12-05 Geert Bosch <bosch@gnat.com>
43260 * snames.adb: Autoupdate
43262 2001-12-05 Vincent Celier <celier@gnat.com>
43264 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
43266 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
43268 * prj-env.adb: Minor comment changes (modifying -> extends).
43270 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
43272 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
43275 * prj.adb (Initialize): Change Modifying to Extends.
43277 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
43279 * prj.ads: Minor comment change (Modifying -> extending).
43281 * snames.ads: Change modifying to extends.
43283 2001-12-05 Robert Dewar <dewar@gnat.com>
43285 * sem_warn.adb: Remove stuff for conditionals, we are not going to
43288 * sem_warn.ads: Remove stuff for conditionals, we are not going to
43289 do this after all. Add 2001 to copyright notice
43291 2001-12-04 Geert Bosch <bosch@gnat.com>
43293 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
43295 2001-12-04 Robert Dewar <dewar@gnat.com>
43297 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
43298 location if we already have errors. Stops some cases of cascaded
43301 * errout.adb: Improve comment.
43303 2001-12-04 Robert Dewar <dewar@gnat.com>
43306 (Analyze_Formal_Type_Definition): Defend against Error.
43307 (Analyze_Formal_Subprogram): Defend against Error.
43309 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
43310 remove following semicolon if present. Removes cascaded error.
43312 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
43315 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
43316 exceptions equals 0.
43317 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
43318 Fixes PIWG E tests (which have to be run with -gnatL).
43320 2001-12-04 Robert Dewar <dewar@gnat.com>
43322 * einfo.ads: Minor reformatting
43324 2001-12-04 Ed Schonberg <schonber@gnat.com>
43326 * einfo.ads: Block_Node points to the identifier of the block, not to
43327 the block node itself, to preserve the link when the block is
43328 rewritten, e.g. within an if-statement with a static condition.
43330 * inline.adb (Cleanup_Scopes): recover block statement from block
43331 entity using new meaning of Block_Node.
43333 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
43334 identifier of block node, rather than to node itself.
43336 2001-12-04 Gary Dismukes <dismukes@gnat.com>
43339 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
43340 (Discrimify): Go back to setting the Etypes of the selected component
43341 because the Vname component does not exist at this point and will
43342 fail name resolution. Also set Analyzed.
43343 Remove with and use of Sem_Res.
43345 2001-12-04 Arnaud Charlet <charlet@gnat.com>
43347 * Makefile.in: (HIE_SOURCES): add s-fat*.
43349 2001-12-04 Robert Dewar <dewar@gnat.com>
43352 (Compile_Time_Known_Attribute): New procedure.
43353 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
43354 proper range check.
43356 2001-12-04 Ed Schonberg <schonber@gnat.com>
43358 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
43359 processing discriminants to diagnose illegal default values.
43361 2001-12-04 Ed Schonberg <schonber@gnat.com>
43363 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
43364 access discriminant within a type extension that constrains its
43365 parent discriminants.
43367 2001-12-04 Ed Schonberg <schonber@gnat.com>
43369 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
43370 is malformed, use instance of Any_Id to allow analysis to proceed.
43372 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
43373 type definition is illegal.
43374 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
43377 2001-12-04 Ed Schonberg <schonber@gnat.com>
43379 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
43382 2001-12-04 Robert Dewar <dewar@gnat.com>
43384 * errout.adb: Minor reformatting
43386 2001-12-04 Robert Dewar <dewar@gnat.com>
43388 * exp_util.adb: Minor reformatting from last change
43390 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
43391 which is a rewriting of an expression, traverse the original
43392 expression to remove warnings that may have been posted on it.
43394 2001-12-04 Ed Schonberg <schonber@gnat.com>
43396 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
43397 record that has other packed components.
43399 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
43401 * adaint.c: Minor cleanups.
43403 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
43405 * adaint.c: Do not use utime.h on vxworks.
43407 2001-12-04 Arnaud Charlet <charlet@gnat.com>
43409 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
43410 more confusion than it solves.
43412 2001-12-04 Geert bosch <bosch@gnat.com>
43414 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
43416 2001-12-04 Geert Bosch <bosch@gnat.com>
43418 * Makefile.in (update-sources): New target.
43419 For use by gcc_release script.
43421 2001-12-04 Ed Schonberg <schonber@gnat.com>
43423 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
43424 a configuration pragma, it is now legal wherever a pragma can appear.
43426 2001-12-04 Zack Weinberg <zack@codesourcery.com>
43428 * Makefile.in: Don't set ALL. Delete @cross_defines@,
43429 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
43430 is now @CROSS@ -DIN_GCC; update comment.
43432 2001-12-04 Robert Dewar <dewar@gnat.com>
43434 * einfo.adb (Has_Pragma_Pure_Function): New flag.
43435 Fix problem that stopped ceinfo from working
43437 * einfo.ads (Has_Pragma_Pure_Function): New flag.
43439 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
43441 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
43444 (File_Time_Stamp): New procedure.
43445 (Preserve_Mode): New boolean.
43446 (Write_Unit): Pass time stamp.
43447 Implement -p switch (preserve time stamps).
43449 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
43451 * gnatchop.adb: Do usage info for -p switch
43453 * adaint.h (__gnat_set_file_time_name): New function
43455 * adaint.c (__gnat_set_file_time_name): Implement
43457 * adaint.h: Fix typo
43459 2001-12-03 Robert Dewar <dewar@gnat.com>
43461 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
43462 have Associated_Node.
43464 2001-12-03 Robert Dewar <dewar@gnat.com>
43466 * prj-proc.adb: Minor reformatting
43468 * make.adb: Minor reformatting
43470 2001-12-03 Geert Bosch <bosch@gnat.com>
43472 * make.adb: Minor reformatting.
43474 2001-12-03 Robert Dewar <dewar@gnat.com>
43476 * sem_ch12.adb: Minor reformatting
43478 2001-12-03 Ed Schonberg <schonber@gnat.com>
43480 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
43481 push Standard on the stack before analyzing the instance body,
43482 in order to have a clean visibility environment.
43484 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
43486 2001-12-03 Ed Schonberg <schonber@gnat.com>
43488 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
43489 instantiation of a body that contains an inlined body.
43491 2001-12-03 Ed Schonberg <schonber@gnat.com>
43494 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
43495 to prevent freezing within formal packages.
43496 (Freeze_Subprogram_Body): If body comes from another instance that
43497 appeared before its own body, place freeze node at end of current
43498 declarative part, to prevent a back-end crash.
43499 (Inline_Instance_Body): Handle properly a package instance within
43500 a subprogram instance that is a child unit.
43502 2001-12-01 Graham Stott <grahams@redhat.com>
43504 * Makefile.in (misc.o): Add missing $(srcdir) prefix
43505 and add optabs.h dependency.
43507 * misc.c: Include optabs.h
43508 (gnat_tree_code_type): Make static and const.
43509 (gnat_tree_code_length): Likewise.
43510 (gnat_tree_code_name): Likewise.
43511 (update_setjmp_buf): Obtain operands mode from insn_data.
43513 2001-11-29 Richard Henderson <rth@redhat.com>
43515 * init.c: Remove obsolete dwarf2 frame.h section.
43517 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
43519 * Make-lang.in (ada.generated-manpages): New dummy target.
43521 2001-11-29 Ed Schonberg <schonber@gnat.com>
43523 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
43524 into Command, an array conversion is illegal here. Uncovered by
43527 2001-11-28 Geert Bosch <bosch@gnat.com>
43529 * init.c: Minor whitespace changes.
43531 2001-11-28 Doug Rupp <rupp@gnat.com>
43533 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
43536 2001-11-28 Zack Weinberg <zack@codesourcery.com>
43538 * misc.c (gnat_expand_constant): Move declaration above
43539 definition of lang_hooks.
43540 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
43541 (gnat_init): lang_expand_constant no longer exists.
43543 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
43544 always have vprintf.
43545 (gnat_init): Always call set_internal_error_function.
43547 2001-11-27 Andreas Jaeger <aj@suse.de>
43549 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
43551 2001-11-27 Laurent Guerby <guerby@acm.org>
43553 * Makefile.in: Regenerate Ada dependencies.
43555 2001-11-26 Richard Henderson <rth@redhat.com>
43557 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
43558 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
43559 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
43561 2001-11-25 Laurent Guerby <guerby@acm.org>
43563 * sysdep.c (rts_get_*): Fix style.
43565 2001-11-19 Laurent Guerby <guerby@acm.org>
43567 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
43568 since it is of no apparent use and cause warnings.
43570 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
43572 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
43574 (gnat_init): Don't return NULL.
43575 (finish_parse): Remove.
43577 2001-11-17 Laurent Guerby <guerby@acm.org>
43579 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
43580 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
43581 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
43582 * lang-spec.h: Add missing struct field to silence warnings.
43583 * sysdep.c (rts_get_*): Provide K&R prototype.
43584 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
43585 * traceback.c (Unlock_Task, Lock_Task): Likewise.
43586 * tracebak.c (__gnat_backtrace): Remove unused variable.
43587 * utils.c (end_subprog_body): Move to K&R style.
43589 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43591 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
43593 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
43595 * misc.c (gnat_init): Change prototype. Include the
43596 functionality of the old init_parse and init_decl_processing.
43597 (gnat_init_decl_processing): New prototype.
43598 (init_parse): Remove.
43599 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
43601 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
43603 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
43604 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
43605 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
43606 set_yydebug): Remove.
43608 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
43610 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
43611 (struct lang_hooks): Constify.
43612 (language_string, lang_identify): Remove.
43613 * utils.c (init_decl_processing): Update.
43615 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
43617 * misc.c: Include langhooks-def.h.
43618 * Makefile.in: Update.
43620 2001-10-30 Robert Dewar <dewar@gnat.com>
43623 (Check_Identifier): Rewrite circuit to be compatible with use of letters
43624 in the upper half of ASCII.
43625 (Check_Identifier): Minor reformatting
43627 2001-10-30 Geert Bosch <bosch@gnat.com>
43629 * (Associated_Node, Set_Associated_Node): Do not check for
43632 2001-10-30 Robert Dewar <dewar@gnat.com>
43634 * a-reatim.ads: Minor reformatting
43636 2001-10-30 Robert Dewar <dewar@gnat.com>
43638 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
43639 undocumented declarations.
43641 2001-10-30 Pascal Obry <obry@gnat.com>
43643 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
43644 to the binder and linker.
43647 * mdll.ads: Fix layout. Update copyright notice.
43649 * mdll.adb: Fix layout. Update copyright notice.
43651 2001-10-30 Robert Dewar <dewar@gnat.com>
43653 * usage.adb: Minor fix to output for -gnaty.
43655 2001-10-30 Ed Schonberg <schonber@gnat.com>
43657 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
43658 to accommodate all its possible values.
43660 * a-reatim.adb (Split): Special-case handling of Time_Span_First
43661 and of small absolute values of T.
43663 2001-10-30 Richard Kenner <kenner@gnat.com>
43665 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
43666 set_mem_attributes since not needed and wrong if RESULT if a REG;
43667 fixes ACATS failures.
43669 2001-10-30 Geert Bosch <bosch@gnat.com>
43671 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
43672 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
43674 2001-10-30 Robert Dewar <dewar@gnat.com>
43676 * bindusg.adb: Undocument -f switch.
43678 * gnatcmd.adb: Remove /FULL_ELABORATION.
43680 * opt.ads (Force_RM_Elaboration_Order): Document that this is
43683 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
43685 * gnatbind.adb: Minor update of warning msg.
43687 2001-10-30 Vincent Celier <celier@gnat.com>
43689 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
43690 for project file switches (-P (/PROJECT_FILE=),
43691 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
43694 2001-10-30 Geert Bosch <bosch@gnat.com>
43696 * decl.c: Minor whitespace fixes.
43698 2001-10-30 Richard Kenner <kenner@gnat.com>
43700 * utils2.c (build_allocator): Test for SIZE overflow in array case too
43702 2001-10-30 Geert Bosch <bosch@gnat.com>
43704 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
43705 Found due to GCC 3.0 warning of using uninitialized value.
43708 (Get_Max_Size): Use variant record for tracking value/expression.
43709 Makes logic clearer and prevents warnings for uninitialized variables.
43710 (Layout_Array_Type): Use variant record for tracking value/expression.
43711 Makes logic clearer and prevents warnings for uninitialized variables.
43713 2001-10-30 Robert Dewar <dewar@gnat.com>
43715 * lib.adb: Minor reformatting
43717 * s-taprop.ads: Minor reformatting
43719 2001-10-29 Laurent Guerby <guerby@acm.org>
43722 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
43724 (_gnat_error_handler): Make MSG const.
43726 2001-10-29 Richard Kenner <kenner@gnat.com>
43728 * sysdep.c: Fix localtime_r problem on LynxOS.
43729 Also remove #elif to avoid warnings.
43731 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
43734 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
43736 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
43738 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
43739 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
43740 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
43741 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
43742 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
43743 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
43744 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
43745 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
43746 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
43747 types.ads, urealp.adb: Fix spelling errors.
43749 2001-10-27 Laurent Guerby <guerby@acm.org>
43751 * trans.c (gigi): Fix non determinism leading to bootstrap
43752 comparison failures for debugging information.
43754 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
43756 * gnat_rm.texi: Use @./@: where appropriate.
43758 2001-10-26 Robert Dewar <dewar@gnat.com>
43760 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
43762 2001-10-26 Richard Kenner <kenner@gnat.com>
43764 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
43766 2001-10-26 Richard Kenner <kenner@gnat.com>
43768 * decl.c (validate_size): Modify message for bad size to avoid
43769 implication that compiler is modifying the size.
43771 2001-10-26 Robert Dewar <dewar@gnat.com>
43773 * prj-util.adb: Minor reformatting. Fix bad header format.
43775 2001-10-26 Robert Dewar <dewar@gnat.com>
43777 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
43779 * sinfo.ads: Clarify use of Associated_Node (documentation only).
43781 * sem_ch12.adb: Change Node4 to Associated_Node. Change
43782 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
43783 much more narrowly in places where needed. These are cleanups.
43785 2001-10-26 Joel Brobecker <brobecke@gnat.com>
43787 * 5zosinte.ads (null_pthread): new constant.
43790 (Initialize_TCB): Initialize thread ID to null, to be able to verify
43791 later that this field has been set.
43792 (Finalize_TCB): ditto.
43793 (Suspend_Task): Verify that the thread ID is not null before using it.
43794 (Resume_Task): ditto.
43797 (Resume_All_Tasks): Lock the tasks list before using it.
43798 (Suspend_All_Tasks): ditto.
43800 2001-10-26 Richard Kenner <kenner@gnat.com>
43802 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
43803 Make constant variant of designated type for Is_Access_Constant.
43804 Call update_pointer_to with main variant.
43806 * trans.c (process_freeze_entity, process_type):
43807 Call update_pointer_to on main variant.
43809 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
43810 If main variant, update all other variants.
43812 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
43815 2001-10-26 Robert Dewar <dewar@gnat.com>
43817 * prj-util.adb: Minor reformatting
43819 2001-10-26 Robert Dewar <dewar@gnat.com>
43821 * prj-util.adb: Minor reformatting
43823 2001-10-26 Robert Dewar <dewar@gnat.com>
43825 * prj-attr.adb: Minor reformatting throughout
43827 2001-10-26 Robert Dewar <dewar@gnat.com>
43829 * prj-attr.ads: Minor reformatting
43830 Add ??? comment (this whole spec has almost no comments)
43832 2001-10-26 Vincent Celier <celier@gnat.com>
43834 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
43835 ("//") that precede the drive letter on Interix.
43837 2001-10-26 Geert Bosch <bosch@gnat.com>
43839 * gnat_rm.texi: Add GNAT Reference Manual.
43841 2001-10-25 Robert Dewar <dewar@gnat.com>
43843 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
43844 is Error. Similar change for other renaming cases.
43846 2001-10-25 Robert Dewar <dewar@gnat.com>
43848 * s-atacco.ads: Add pragma Inline_Always for functions.
43849 Fix header format. Add copyright 2001
43851 2001-10-25 Ed Schonberg <schonber@gnat.com>
43853 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
43854 return Error rather than Empty so that analysis can proceed.
43856 2001-10-25 Ed Schonberg <schonber@gnat.com>
43858 * sem_util.adb (Enter_Name): better handling of cascaded error
43859 messages when a unit appears in its own context.
43861 2001-10-25 Ed Schonberg <schonber@gnat.com>
43863 * sem_util.adb (Defining_Entity): in case of error, attach created
43864 entity to specification, so that semantic analysis can proceed.
43866 2001-10-25 Robert Dewar <dewar@gnat.com>
43869 (Defining_Entity): Deal with Error.
43870 (Process_End_Label): Deal with bad end label for.
43872 2001-10-25 Ed Schonberg <schonber@gnat.com>
43874 * sem_elab.adb (Check_A_Call): refine message when call is in an
43875 instance but callee is not declared in the generic unit.
43877 2001-10-25 Ed Schonberg <schonber@gnat.com>
43879 * sem_elab.adb (Check_A_Call): check for renaming before finding the
43880 enclosing unit, which may already be different from the calling unit.
43882 2001-10-25 Geert Bosch <bosch@gnat.com>
43884 * 4gintnam.ads: fix header format.
43886 2001-10-25 Ed Schonberg <schonber@gnat.com>
43888 * sem_res.adb (Resolve_Call): if the call is actually an indexing
43889 operation on the result of a parameterless call, perform elaboration
43890 check after the node has been properly rewritten.
43892 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
43893 inlined within the generic tree, the defining identifier is not a
43896 2001-10-25 Ed Schonberg <schonber@gnat.com>
43898 * sem_res.adb (Resolve): special-case resolution of Null in an
43899 instance or an inlined body to avoid view conflicts.
43901 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
43902 compatibility by retrieving the access type of the generic copy.
43904 2001-10-25 Robert Dewar <dewar@gnat.com>
43907 (Analyze_Number_Declaration): Handle error expression.
43908 (Signed_Integer_Type_Declaration): Handle error bound.
43909 (Analyze_Subtype_Indication): Handle error range.
43911 * sem_util.adb (Get_Index_Bounds): Check for Error.
43913 2001-10-25 Robert Dewar <dewar@gnat.com>
43915 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
43916 in no run time mode.
43918 2001-10-25 Pascal Obry <obry@gnat.com>
43920 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
43921 mode case for ALLOC case.
43923 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
43924 all platforms. Improvement of last change.
43926 2001-10-25 Robert Dewar <dewar@gnat.com>
43928 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
43930 2001-10-25 Geert Bosch <bosch@gnat.com>
43932 * osint.adb (Is_Relative): Remove duplicate.
43934 2001-10-25 Pascal Obry <obry@gnat.com>
43936 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
43937 pathnames in UNIX and DOS style with drive letter.
43938 (Is_Relative): new routine.
43940 * osint.adb: Minor reformatting
43942 * osint.adb (Is_Relative): implementation using
43943 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
43945 2001-10-25 Pascal Obry <obry@gnat.com>
43947 * g-dirope.adb (Basename): correctly compute offset between the
43948 original Path and the translated one.
43950 * g-dirope.adb: (Base_Name): add some comments.
43952 2001-10-25 Robert Dewar <dewar@gnat.com>
43954 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
43955 in HIE mode, avoids compilation abandoned message
43957 * exp_imgv.adb: Correct typo in previous change
43959 * exp_imgv.adb: Correct typo in previous change (not my day!)
43961 2001-10-25 Robert Dewar <dewar@gnat.com>
43963 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43965 2001-10-25 Pascal Obry <obry@gnat.com>
43967 * g-awk.ads: Move all pragma inlines next to the routine
43968 declarations. This is more uniform with other GNAT spec.
43970 2001-10-22 Geert Bosch <bosch@gnat.com>
43972 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43974 2001-10-19 Geert Bosch <bosch@gnat.com>
43976 * Makefile.in (tools, gnattools): Remove gnatmem.
43978 2001-10-17 Richard Henderson <rth@redhat.com>
43980 * Makefile.in (misc.o): Depend on langhooks.h.
43981 * misc.c: Include it.
43982 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43983 (LANG_HOOKS_DECODE_OPTION): New.
43984 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43986 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
43988 * trans.c (tree_transform): Adjust to recent change in
43989 expand_asm_operands to implement named asm operands.
43991 2001-10-11 Ed Schonberg <schonber@gnat.com>
43993 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43994 renaming of discriminant for mutable record type.
43996 2001-10-11 Robert Dewar <dewar@gnat.com>
43998 * validsw.adb: Properly save -gnatVn status.
44000 2001-10-11 Robert Dewar <dewar@gnat.com>
44002 * usage.adb: Add lines for V switch.
44004 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
44005 (/VALIDITY_CHECKING).
44007 2001-10-11 Ed Schonberg <schonber@gnat.com>
44009 * sem_type.adb (Add_One_Interp): an operator for a type declared in
44010 an extension of System is known to be visible.
44012 2001-10-11 Ed Schonberg <schonber@gnat.com>
44014 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
44015 properly. Fixes regression on ACATS C34005G.
44017 2001-10-11 Robert Dewar <dewar@gnat.com>
44019 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
44020 loop in generic instance, since this is likely not very useful.
44022 2001-10-11 Robert Dewar <dewar@gnat.com>
44024 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
44025 the error message for high integrity mode.
44027 * rtsfind.adb (RTE): Give message if we try to find an entity that
44028 is not available in high integrity mode.
44031 (OK_To_Use_In_HIE_Mode): New array.
44032 (RTE): May return Empty in high integrity mode.
44034 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
44035 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
44037 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
44038 unit if not inlined always and in no runtime mode. Fixes problem
44039 caused by new Rtsfind changes.
44041 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
44044 * rtsfind.adb (RTE): Make sure we do not try to load unit after
44045 giving message for entity not available in high integrity mode.
44047 2001-10-11 Pascal Obry <obry@gnat.com>
44049 * impunit.adb: Add GNAT.CRC32.
44051 2001-10-11 Ed Schonberg <schonber@gnat.com>
44053 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
44054 properly the case where one universal operand in a non-static
44055 exponentiation of a real literal.
44057 2001-10-11 Ed Schonberg <schonber@gnat.com>
44059 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
44060 clause, return the gobal finalization list, for lack of anthing else.
44062 2001-10-11 Ed Schonberg <schonber@gnat.com>
44064 * exp_ch7.adb (Make_Transient_Block): if statement is within
44065 exception handler, always use new transient scope to place Clean
44068 2001-10-11 Pascal Obry <obry@gnat.com>
44071 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
44072 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
44073 (GNATLS_RTL_OBJS): add g-crc32.o
44074 (GNATMAKE_RTL_OBJS): add g-crc32.o
44077 (CRC_Match): new function.
44078 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
44079 instead of the previous simple checksum algorithm.
44080 (Time_Stamp_Mismatch): use CRC_Match for comparison.
44081 (Set_Source_Table): idem.
44084 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
44085 instead of simple checksum.
44086 (CRC_Match): new function.
44087 (CRC_Error): new constant.
44089 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
44090 a CRC now and not a simple checksum. A CRC uses lower-case hex
44091 letters, fixes ambiguity in parsing.
44093 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
44094 is what this variable will store.
44096 * bcheck.adb: Change reference to chechsum in comments by CRC.
44097 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
44098 rename All_Checksum_Match to All_CRC_Match. Change due to API
44099 renaming since now GNAT does not use a simple checksum but a
44100 CRC using GNAT.CRC32.
44102 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
44103 now and not anymore a simple checksum.
44105 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
44108 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
44111 (Restore_Scan_State): rename Checksum to CRC.
44112 (Save_Scan_State): idem.
44116 (Checksum): rename to CRC.
44117 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
44119 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
44120 GNAT.CRC32). Update copyright notice.
44122 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
44123 GNAT.CRC32). Update copyright notice.
44126 (Accumulate_Checksum): removed.
44127 (Update): new procedure. Add a wide-character into the CRC.
44130 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
44131 (Load_File): fix initialization of S (change Source_Checksum to
44134 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
44135 Source_CRC in S initialization.
44137 * sinput.adb (Source_Checksum): renamed to Source_CRC.
44139 * sinput.ads (Source_Checksum): renamed to Source_CRC.
44140 Update comments for the CRC.
44142 * types.adb (Hex): Use lowercase for the letter part.
44144 * types.ads (Get_Hex_String): Returns the hexadecimal representation
44145 for a word. This is currently used only for CRC. In previous version,
44146 the checksum was using a representation with all letter being
44147 upper-case. With the new implementation (using CRC) we do not remove
44148 the 32th bit of the CRC, so we can have an upper-case starting letter
44149 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
44150 It is ambigous since the CRC was optional and could be followed by
44151 options like EB, EE. So now this routines uses lower-case letter for
44152 the hexadecimal representation. Strange enough only lower case letters
44153 where checked in Scan_ALI (even if this was not a possible case).
44155 * gnatvsn.ads (Library_Version): changed to 3.15a.
44157 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
44160 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
44163 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
44164 Add 2001 to copyright notice
44165 (Accumulate_Checksum): Modify to use System.CRC32.
44167 * ali-util.ads: Redo changes of previous revision to continue to use
44168 the word Checksum. Add 2001 to copyright notice.
44170 * ali.adb: Undo some of previous changes, not needed.
44171 Keep the change for lower case letters in the checksum.
44173 * ali.ads: Undo previous change not needed.
44175 * bcheck.adb: Undo most of previous change, not needed.
44176 But do use Checksums_Match for checksum comparison.
44178 * gnatls.adb: Undo most of previous change, not needed.
44179 But do use Checksums_Match for comparing checksums.
44181 * lib-load.adb: Undo previous change, not needed.
44183 * lib-writ.adb: Undo previous change, not needed.
44185 * lib-writ.ads: Document that checksums use lower case,
44186 not upper case letters.
44188 * scans.adb: Undo previous change, not needed
44190 * scans.ads: Undo previous change, not needed.
44192 * scn-nlit.adb: Undo previous changes, not needed.
44194 * scn-slit.adb: Undo previous change, not needed. Fix header format.
44197 (Accumulate_Checksum): Use System.CRC32.
44198 (Initialize_Checksum): New procedure.
44199 Remove other changes of previous revision.
44201 * sinput-p.adb: Undo previous change, not needed.
44203 * sinput.adb: Undo previous change, not needed.
44205 * sinput-l.adb: Undo previous change, not needed.
44207 * sinput.ads: Undo previous change, not needed. Keep only comment
44208 on new checksum algorithm
44210 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
44211 Also remove a-tags and a-stream from GNAT sources.
44213 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
44215 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
44217 2001-10-11 Geert Bosch <bosch@gnat.com>
44219 * einfo.h: Regenerate.
44221 * nmake.ads: Regenerate.
44223 * nmake.adb: Regenerate.
44225 * sinfo.h: Regenerate.
44227 * treeprs.adb: Regenerate.
44229 2001-10-10 Geert Bosch <bosch@gnat.com>
44231 * gnat-style.texi: New file describing coding guidelines for Ada.
44233 2001-10-10 Ed Schonberg <schonber@gnat.com>
44235 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
44238 2001-10-10 Geert Bosch <bosch@gnat.com>
44240 * snames.ads: Add new names for project facility.
44242 * snames.adb: Update to reflect snames.ads changes.
44244 * snames.h: Update to reflect snames.ads changes.
44246 2001-10-10 Vincent Celier <celier@gnat.com>
44249 (Add_Switches): reflect the changes for the switches attributes
44250 Default_Switches indexed by the programming language,
44251 Switches indexed by the file name.
44252 (Collect_Arguments_And_Compile): Idem.
44253 Reflect the attribute name changes.
44256 (Initialisation_Data): Change the names of some packages and
44258 (Initialize): process case insensitive associative arrays.
44261 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
44264 (Parse_Attribute_Declaration): For case insensitive associative
44265 arrays, set the index string to lower case.
44268 Reflect the changes of the project attributes.
44271 Replace Check_Naming_Scheme by Ada_Check and
44272 Language_Independent_Check.
44275 Replaced Check_Naming_Scheme by 2 procedures:
44276 Ada_Check and Language_Independent_Check.
44279 (Process_Declarative_Items): For case-insensitive associative
44280 arrays, set the index string to lower case.
44281 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
44282 Prj.Nmsc.Check_Naming_Scheme.
44285 (Case_Insensitive): New function
44286 (Set_Case_Insensitive): New procedure
44289 (Case_Insensitive): New function
44290 (Set_Case_Insensitive): New procedure
44291 (Project_Node_Record): New flag Case_Insensitive.
44294 (Value_Of): new function to get the string value of a single
44295 string variable or attribute.
44298 (Value_Of): new function to get the string value of a single
44299 string variable or attribute.
44302 (Ada_Default_Spec_Suffix): New function
44303 (Ada_Default_Impl_Suffix): New function
44304 Change definitions of several constants to reflect
44305 new components of record types.
44308 (Naming_Data): Change several components to reflect new
44309 elements of naming schemes.
44310 (Project_Data): New flags Sources_Present and
44311 Language_Independent_Checked.
44312 (Ada_Default_Spec_Suffix): New function.
44313 (Ada_Default_Impl_Suffix): New function.
44316 Modification of predefined names for project manager: added
44317 Implementation, Specification_Exceptions, Implementation_Exceptions,
44318 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
44319 Default_Switches, _Languages, Builder, Cross_Reference,
44320 Finder. Removed Body_Part, Specification_Append, Body_Append,
44321 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
44324 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
44327 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
44328 not that it is Nil_Variable_Value.
44330 * prj.ads: Add ??? for uncommented declarations
44332 2001-10-10 Ed Schonberg <schonber@gnat.com>
44334 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
44335 constant, do not indicate possible modification, so that gigi can
44336 treat it as a bona fide constant.
44338 2001-10-10 Robert Dewar <dewar@gnat.com>
44340 * sem_prag.adb: Add processing for pragma External.
44342 * snames.ads: Add entry for pragma External.
44344 * par-prag.adb: Add pragma External.
44346 * snames.adb: Updated to match snames.ads.
44348 2001-10-10 Ed Schonberg <schonber@gnat.com>
44350 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
44351 a dynamic task if the allocator appears in an indexed assignment
44352 or selected component assignment.
44354 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
44355 For a dynamic task in an assignment statement, use target of
44356 assignment to generate meaningful name.
44358 2001-10-10 Ed Schonberg <schonber@gnat.com>
44360 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
44363 * einfo.ads: Body_Entity is also defined for generic package.
44364 Documentation change only
44366 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
44367 others_choice for a discriminated component initialization,
44368 convert discriminant references into the corresponding discriminals.
44370 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
44371 only if original type is private and expression has to be wrapped
44375 (Apply_Constraint_Check): Do not perform length check
44376 if expression is an aggregate with only an others_choice.
44377 (Length_N_Cond): two references to the same in_parameter
44378 (typically the discriminal in an init_proc) denote the same value.
44379 Two useful optimization uncovered by bugfixes above.
44381 2001-10-10 Robert Dewar <dewar@gnat.com>
44383 * xeinfo.adb: Change int to char in translation of enumeration types.
44384 This fixes a problem in the C representation of component alignment.
44385 Add 2001 to copyright notice
44387 2001-10-10 Richard Kenner <kenner@gnat.com>
44389 * decl.c: (validate_size): Do check size of object of integral type
44390 if it is a packed array type.
44392 2001-10-10 Richard Kenner <kenner@gnat.com>
44394 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
44395 VAR_DECL for constant if not Is_Public but -O0.
44397 2001-10-10 Richard Kenner <kenner@gnat.com>
44399 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
44401 2001-10-10 Geert Bosch <bosch@gnat.com>
44403 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
44404 use '/' as switch character, allowing for absolute file names.
44406 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
44408 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
44411 2001-10-08 Geert Bosch <bosch@gnat.com>
44413 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
44414 Automatically build utilities when files need to be regenerated.
44416 2001-10-08 Geert Bosch <bosch@gnat.com>
44418 * xsnames.adb: New utility for updating snames.ads and snames.adb
44420 2001-10-08 Zack Weinberg <zack@codesourcery.com>
44422 * Make-lang.in (ADAFLAGS): Add -W -Wall.
44423 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
44424 (gnat1): Also depend on attribs.o.
44425 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
44426 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
44427 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
44428 (ADAFLAGS): Add -W -Wall.
44429 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
44432 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
44433 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
44434 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
44435 Use $(ADAC), not $(CC), as compilation command.
44437 (gnattools): Depend directly on tools to build, don't use
44439 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
44441 * einfo.h, sinfo.h: New files (autogenerated).
44443 2001-10-08 Richard Henderson <rth@redhat.com>
44445 * comperr.adb (Abort_In_Progress): New.
44446 (Compiler_Abort): Use it to prevent recursion.
44448 2001-10-08 Robert Dewar <dewar@gnat.com>
44450 * atree.adb: Set Error_Posted in Error node, helps error recovery.
44452 * par-endh.adb (Output_End_Expected): We should also not test
44453 Error_Posted on the Error node, since now it is always set.
44455 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
44456 to help error recovery. Part of general work on 9407-004.
44458 * par.adb: Add ??? for misuse of error
44461 (Resolve): Defend against Error, fixes 9407-003.
44462 (Resolve_Discrete_Subtype_Indication): Defend against Error.
44464 * sinfo.ads (N_Error): Now has Etype field (which will be set
44465 to Any_Type to help error recovery).
44467 2001-10-08 Richard Kenner <kenner@gnat.com>
44469 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
44470 Consistently set MEM attributes from expression; fixes
44471 bootstrap failure on x86.
44473 2001-10-08 Geert Bosch <bosch@gnat.com>
44475 * 5oosinte.adb: Add 2001 to copyright notice.
44477 2001-10-08 Geert Bosch <bosch@gnat.com>
44479 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
44481 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
44483 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
44485 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
44487 2001-10-05 Geert Bosch <bosch@gnat.com>
44489 * adaint.h: Small formatting fix.
44491 2001-10-04 Geert Bosch <bosch@gnat.com>
44493 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
44494 Arg is int, not FILE *, in dummy version of functions.
44496 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
44497 Arg is int, not FILE *.
44499 2001-10-04 Geert Bosch <bosch@gnat.com>
44501 * 3lsoccon.ads: Added file, missed with initial check ins.
44503 * 4lintnam.ads: Fix header format.
44504 Change Linux to GNU/Linux.
44506 * 5iosinte.adb: Change Linux to GNU/Linux.
44508 * 5iosinte.ads: Change Linux to GNU/Linux.
44510 * 5itaprop.adb: Change Linux to GNU/Linux.
44512 * 5itaspri.ads: Change Linux to GNU/Linux.
44513 Update copyright notice.
44515 * 5lintman.adb: Change Linux to GNU/Linux.
44517 * 5lml-tgt.adb: Change Linux to GNU/Linux.
44519 * 5losinte.ads: Change Linux to GNU/Linux.
44521 * 5lsystem.ads: Change Linux to GNU/Linux.
44523 * 5qosinte.adb: Change Linux to GNU/Linux.
44525 * 5qosinte.ads: Change Linux to GNU/Linux.
44527 * 5qparame.ads: Change Linux to GNU/Linux.
44529 * 5qtaprop.adb: Change Linux to GNU/Linux.
44531 * 5qtaspri.ads: Change Linux to GNU/Linux.
44532 Add 2001 to copyright notice.
44534 * 5vintman.ads: Change Linux to GNU/Linux.
44535 Fix header format. Add 2001 to copyright notice.
44537 * g-soccon.ads: Change Linux to GNU/Linux.
44539 * g-trasym.ads: Change Linux to GNU/Linux.
44540 Add 2001 to copyright notice.
44542 * memtrack.adb: Change Linux to GNU/Linux.
44544 * s-intman.ads: Change Linux to GNU/Linux.
44545 Add 2001 to copyright notice. Fix header format.
44547 * s-stache.adb: Change Linux to GNU/Linux.
44549 * adaint.c: Change Linux to GNU/Linux.
44551 * cio.c: Change Linux to GNU/Linux.
44553 * cstreams.c: Change Linux to GNU/Linux.
44555 * init.c: Change Linux to GNU/Linux.
44557 * gmem.c: Change Linux to GNU/Linux.
44559 * tracebak.c: Change Linux to GNU/Linux.
44562 2001-10-02 Geert Bosch <bosch@gnat.com>
44564 * misc.c (insert_default_attributes): Add dummy version.