1 2008-05-29 Thomas Quinot <quinot@adacore.com>
3 * sem_eval.adb: Minor reformatting
5 2008-05-29 Ed Schonberg <schonberg@adacore.com>
7 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
8 is abstract, do not apply abstractness check on subprogram if this is
9 a renaming declaration.
11 2008-05-29 Arnaud Charlet <charlet@adacore.com>
14 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
15 allow recognition of program suffix in addition to prefix.
17 * gnatchop.adb (Locate_Executable): Add support for prefix.
19 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
20 mlib-utl.adb: Adjust calls to Program_Name.
22 2008-05-29 Robert Dewar <dewar@adacore.com>
24 * sem_ch3.adb: Minor reformatting
25 * sem_prag.adb: Minor reformatting
26 * sem_res.adb: Minor reformatting
27 * sinput-p.ads: Minor reformatting
29 2008-05-29 Javier Miranda <miranda@adacore.com>
32 (Abstract_Interface_List): Add missing support for full type-declaration
33 associated with synchronized types.
35 2008-05-29 Robert Dewar <dewar@adacore.com>
37 * sem_eval.adb (Is_Same_Value): Take care of several more cases
39 2008-05-28 Ed Schonberg <schonberg@adacore.com>
41 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
42 access type, wrap the expression in a conversion to force an
45 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
46 accessibility checks even when expansion is disabled in order to
47 generate messages in the presence of previous errors or in
50 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
52 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
53 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
55 2008-05-28 Vincent Celier <celier@adacore.com>
58 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
59 preprocessing expressions
61 2008-05-28 Vincent Celier <celier@adacore.com>
63 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
66 * sinput-p.ads: Minor comment update and reformatting
68 2008-05-28 Ed Schonberg <schonberg@adacore.com>
70 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
71 type has a deeper level than any master only when it is the type of an
74 2008-05-28 Javier Miranda <miranda@adacore.com>
76 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
78 2008-05-28 Javier Miranda <miranda@adacore.com>
80 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
81 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
82 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
83 Add code that was previously located in
84 Find_Overridden_Synchronized_Primitive because it is only used here.
86 2008-05-28 Sergey Rybin <rybin@adacore.com>
88 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
89 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
91 2008-05-28 Robert Dewar <dewar@adacore.com>
94 Add missing restrictions, and properly label all GNAT defined ones
97 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
98 Add entry for Ada.Task_Termination.Set_Specific_Handler
99 Add entry for Ada.Task_Termination.Specific_Handler
102 Add missing restrictions and properly mark all gnat defined ones
105 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
108 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
110 * gnat_rm.texi: Add missing restrictions, and properly label all
113 2008-05-28 Robert Dewar <dewar@adacore.com>
116 (Check_Restriction): violation of restriction No_Finalization is
117 treated as a serious error to stop expansion
119 2008-05-28 Robert Dewar <dewar@adacore.com>
121 * exp_util.adb: Minor reformatting
122 * exp_util.ads: Minor reformatting.
124 2008-05-28 Arnaud Charlet <charlet@adacore.com>
126 * Make-lang.in: Remove gprmake.
128 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
130 2008-05-28 Ed Schonberg <schonberg@adacore.com>
132 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
133 improper progenitor names, and avoid cascaded errors.
135 2008-05-28 Robert Dewar <dewar@adacore.com>
137 * gnat_rm.texi: Add note on Old giving warning when applied to constant
139 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
142 2008-05-28 Robert Dewar <dewar@adacore.com>
144 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
147 2008-05-28 Robert Dewar <dewar@adacore.com>
150 (Expand_Simple_Function_Return): Copy unaligned result into temporary
152 2008-05-28 Javier Miranda <miranda@adacore.com>
154 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
155 for user-defined predefined primitives.
157 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
158 (Find_Overridden_Synchronized_Primitive): Ditto.
160 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
162 2008-05-27 Arnaud Charlet <charlet@adacore.com>
164 * a-ststio.adb, s-direio.adb:
165 Further code clean up of previous change.
168 2008-05-27 Vincent Celier <celier@adacore.com>
170 * prj-nmsc.adb: Minor reformatting
172 2008-05-27 Bob Duff <duff@adacore.com>
174 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
175 untagged private type with a tagged full type, where the full type has
176 a self reference, create the corresponding class-wide type early, in
177 case the self reference is "access T'Class".
179 2008-05-27 Ed Schonberg <schonberg@adacore.com>
181 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
182 tasks and context is an object declaration. create master entity before
185 2008-05-27 Robert Dewar <dewar@adacore.com>
187 * mlib-prj.adb: Minor reformatting
189 * prj-part.adb: Minor reformatting
191 * prj.ads: Minor reformatting
193 * exp_ch3.adb: Minor reformatting.
195 * sem_ch3.ads: Minor reformatting
197 * sem_eval.adb: Minor reformatting
199 2008-05-27 Vincent Celier <celier@adacore.com>
202 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
204 2008-05-27 Ed Schonberg <schonberg@adacore.com>
206 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
207 tasks, create an activation chain now, before the expansion into
208 assignments and build-in-place calls that require the presence of an
210 (Backend_Processing_Possible): If the component type is inherently
211 limited, the aggregate must be expanded into individual built-in-place
214 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
215 determine whether an allocation extra parameter must be built, to
216 handle case of a private type whose full type is a discriminated type
219 2008-05-27 Bob Duff <duff@adacore.com>
222 Document the new behavior regarding trampolines.
224 2008-05-27 Arnaud Charlet <charlet@adacore.com>
226 * a-direio.adb, a-sequio.adb: Replace address clause by
227 unrestricted_access, simpler and compatible with .NET.
229 2008-05-27 Vincent Celier <celier@adacore.com>
232 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
233 a project file, so that symbolic links are not resolved.
235 2008-05-27 Arnaud Charlet <charlet@adacore.com>
237 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
238 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
239 portable across GNAT targets, since this kind of address clause is not
240 supported by VM back-ends (.NET/JGNAT).
242 2008-05-27 Arnaud Charlet <charlet@adacore.com>
244 * bindgen.adb: Update comments.
246 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
248 2008-05-27 Vincent Celier <celier@adacore.com>
250 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
251 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
252 mlib-tgt.adb, prj-env.adb, prj-env.ads:
253 (Path_Information): New record type
254 Use component of type Path_Information when there are two paths, one in
255 canonical format and one in display format.
256 Update the project manager to these new components.
258 2008-05-27 Robert Dewar <dewar@adacore.com>
260 * makeutl.adb: Minor reformatting
261 * prj-nmsc.adb: Minor reformatting
262 * s-stausa.adb: Minor reformatting
263 * s-stausa.ads: Minor reformatting
264 * sem_ch6.adb: Minor reformatting
266 2008-05-27 Thomas Quinot <quinot@adacore.com>
268 * sem_res.adb: Minor comment fixes
270 2008-05-27 Thomas Quinot <quinot@adacore.com>
272 * makeutl.adb: Minor code reorganization
274 * exp_aggr.adb: Add ??? comment
277 * exp_ch6.adb: Minor reformatting
279 2008-05-27 Quentin Ochem <ochem@adacore.com>
281 * s-stausa.adb (Initialize): Updated result initialization, and
282 initialization of environment stack.
283 (Fill_Stack): Improved computation of the pattern zone, taking into
284 account already filled at the calling point.
285 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
286 Measure and Overflow_Guard.
287 (Report_Result): Fixed computation of the result using new fields of
290 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
291 params by more explicit Stack_Size / Max_Pattern_Size params.
292 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
293 Added Stack_Used_When_Filling field.
294 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
295 Min_Measure and Max_Measure fields.
297 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
299 2008-05-27 Vincent Celier <celier@adacore.com>
302 (Check_File): Make sure that a unit that replaces the same unit in a
303 project being extended is properly processed.
305 2008-05-27 Ed Schonberg <schonberg@adacore.com>
308 (Get_Discr_Value): Remove obsolete code that failed to find the value
309 of a discriminant for an inherited task component appearing in a type
312 2008-05-27 Thomas Quinot <quinot@adacore.com>
314 (System.File_IO.{Close, Delete, Reset}):
315 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
317 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
318 Pass File parameter by reference.
320 2008-05-27 Vincent Celier <celier@adacore.com>
323 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
324 sources of the same project that have the same object file name.
325 (Find_Explicit_Sources): Always remove a source exception that was not
328 2008-05-27 Thomas Quinot <quinot@adacore.com>
330 * sem_ch3.adb: Minor reformatting
332 2008-05-27 Ed Schonberg <schonberg@adacore.com>
335 (Is_Interface_Conformant): Handle properly a primitive operation that
336 overrides an interface function with a controlling access result.
337 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
338 inherited and overriding operations, omit as well the conformance check
339 on result types, to prevent spurious errors.
341 2008-05-27 Vincent Celier <celier@adacore.com>
343 * makeutl.ads, makeutl.adb:
344 (Set_Location): New procedure
345 (Get_Location): New function
346 (Update_Main): New procedure
348 2008-05-27 Vincent Celier <celier@adacore.com>
351 (Check_Library): Allow standard project to be extended as a static
353 (Get_Mains): Do not inherit attribute Main in an extending library
356 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
358 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
359 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
360 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
361 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
362 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
363 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
364 * system-mingw.ads (Always_Compatible_Rep): Likewise.
365 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
366 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
367 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
369 2008-05-27 Ed Schonberg <schonberg@adacore.com>
371 * sem_attr.adb: add guard to previous patch.
373 2008-05-27 Ed Schonberg <schonberg@adacore.com>
375 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
376 a synchronized tagged type, do not attempt to build dispatch table for
377 full view. The table is built for the corresponding record type, which
378 has its own declaration.
380 2008-05-27 Gary Dismukes <dismukes@adacore.com>
382 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
383 to the known type entity E, rather than setting it to Any_Type. Fixes
384 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
385 for objects whose type had an illegal constraint.
387 2008-05-27 Vincent Celier <celier@adacore.com>
390 Add succinct documentation for attribute Excluded_Source_List_File
392 2008-05-27 Vincent Celier <celier@adacore.com>
394 * prj-attr.adb: Add new project level attribute Map_File_Option
396 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
398 * prj.ads: Minor reformatting and comment update
399 (Project_Configuration): New component Map_File_Option
401 * snames.adb: New standard name Map_File_Option
403 * snames.ads: New standard name Map_File_Option
405 2008-05-27 Vincent Celier <celier@adacore.com>
407 * xsnames.adb: Remove unused variable Oname
409 2008-05-27 Doug Rupp <rupp@adacore.com>
412 (Expand_N_Function_Call): Fix comments. Minor reformatting.
415 (Expand_Vax_Foreign_Return): Fix comments.
417 2008-05-27 Thomas Quinot <quinot@adacore.com>
419 * exp_dist.adb: Minor reformating
421 2008-05-26 Gary Dismukes <dismukes@adacore.com>
423 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
424 No_Default_Initialization, which is now delayed until the freeze point
425 of the object. Add a comment about deferral of the check.
427 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
428 on objects is moved here.
430 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
432 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
433 (Compare_Array_S16): Adjust for above change.
434 * s-casi32.adb (Uword): Likewise.
435 (Compare_Array_S32): Likewise.
436 * s-casi64.adb (Uword): Likewise.
437 (Compare_Array_S64): Likewise.
438 * s-caun16.adb (Uhalf): Likewise.
439 (Compare_Array_U16): Likewise.
440 * s-caun32.adb (Uword): Likewise.
441 (Compare_Array_U32): Likewise.
442 * s-caun64.adb (Uword): Likewise.
443 (Compare_Array_U64): Likewise.
445 2008-05-26 Robert Dewar <dewar@adacore.com>
447 * exp_ch6.adb: Add ??? comment for previous change
449 * exp_vfpt.adb: Minor reformatting
451 * exp_vfpt.ads: Add ??? comment for last change
453 * sem_attr.adb: Add some ??? comments for previous change
455 * s-vaflop.ads: Add comments for previous change
457 2008-05-26 Doug Rupp <rupp@adacore.com>
459 * s-vaflop-vms-alpha.adb:
460 Remove System.IO use clause, to prevent spurious ambiguities when
461 package is access through rtsfind.
463 2008-05-26 Sergey Rybin <rybin@adacore.com>
465 * tree_io.ads (ASIS_Version_Number): Update because of the changes
468 2008-05-26 Ed Schonberg <schonberg@adacore.com>
471 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
472 converted to S (A)'address only if A .. B is known to be a non-null
475 2008-05-26 Doug Rupp <rupp@adacore.com>
478 (Return_D, Return_F, Return_G): New functions.
481 (Return_D, Return_F, Return_G): New functions.
484 (Expand_Vax_Foreign_Return): New procedure
487 (Expand_Vax_Foreign_Return): New procedure
490 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
491 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
495 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
497 * s-vaflop-vms-alpha.adb:
498 (Return_D, Return_F, Return_G): New functions.
500 2008-05-26 Gary Dismukes <dismukes@adacore.com>
502 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
503 init proc entity when there is actual default initialization associated
504 with the component type, to avoid spurious errors on objects of scalar
505 array types that are marked Is_Public when No_Default_Initialization
508 2008-05-26 Thomas Quinot <quinot@adacore.com>
510 * rtsfind.ads, rtsfind.adb:
511 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
512 (Check_RPC): Support per-PCS-kind API versioning.
514 exp_dist.ads, exp_dist.adb:
515 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
516 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
517 library function Get_RACW.
518 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
519 library function Get_Reference.
520 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
521 through an intermediate Any.
522 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
523 going through an intermediate Any.
525 * sem_dist.adb: Minor reformatting.
527 2008-05-26 Javier Miranda <miranda@adacore.com>
529 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
530 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
531 (Is_Internal): Adding documentation on internal entities that have
532 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
534 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
535 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
536 Added assertion to force entities with this attribute to have
537 attribute Is_Internal set to True.
538 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
540 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
541 renamed as Derive_Progenitor_Subprograms. In addition, its code is
542 a new implementation.
543 (Add_Interface_Tag_Components): Remove special management of
544 synchronized interfaces.
545 (Analyze_Interface_Declaration): Minor reformating
546 (Build_Derived_Record_Type): Minor reformating
547 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
548 predefined primitive inherited from interface type because the body of
549 internally generated predefined primitives of tagged types are generated
551 (Derive_Subprogram): Avoid generating an internal name if the parent
552 subprogram overrides an interface primitive.
553 (Derive_Subprograms): New implementation that keeps separate the
554 management of tagged types not implementing interfaces, from tagged
555 types that implement interfaces.
556 (Is_Progenitor): New implementation.
557 (Process_Full_View): Add documentation
558 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
559 by call to Derive_Progenitor_Subprograms.
561 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
562 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
563 Skip_Controlling_Formals.
565 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
566 (Check_Conventions): New implementation. Remove local subprogram
567 Skip_Check. Remove formal Search_From of routine Check_Convention.
568 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
569 Skip_Controlling_Formals.
570 (New_Overloaded_Entity): Enable addition of predefined dispatching
574 (Find_Primitive_Covering_Interface): New subprogram.
576 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
577 the task body procedure as a primitive of the corresponding tagged
579 (Check_Operation_From_Private_Type): Avoid adding twice an entity
580 to the list of primitives.
581 (Find_Primitive_Covering_Interface): New subprogram.
582 (Override_Dispatching_Operation): Add documentation.
584 * sem_type.adb (Covers): Minor reformatings
586 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
589 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
590 (Implements_Interface): New subprogram.
591 (Is_Parent): Removed.
592 (Primitive_Names_Match): New subprogram.
593 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
594 (Ultimate_Alias): New subprogram.
596 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
598 Remove special management for synchronized types. Rename formal. Remove
599 internal subprograms Interface_Present_In_Parent and Add_Interface.
600 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
601 on non-record types by code to return false in such case.
602 (Implements_Interface): New subprogram.
603 (Is_Parent): Removed. No special management is now required for
604 synchronized types covering interfaces.
605 (Primitive_Names_Match): New subprogram.
606 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
607 (Ultimate_Alias): New subprogram.
609 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
610 Add internal entities associated with secondary dispatch tables to
611 the list of tagged type primitives that are not interfaces.
612 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
613 (Make_Predefined_Primitive_Specs): Code reorganization to improve
614 the management of predefined equality operator. In addition, if
615 the type has an equality function corresponding with a primitive
616 defined in an interface type, the inherited equality is abstract
617 as well, and no body can be created for it.
619 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
620 exp_util to exp_disp.
621 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
622 an entity corresponds with one of the predefined primitives required
623 to implement interfaces.
624 Update copyright notice.
626 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
627 final check on abstract subprograms all the primitives associated with
628 interface primitives because they must be visible in the public and
630 (Write_DT): Use Find_Dispatching_Type to locate the name of the
631 interface type. This allows the use of this routine, for debugging
632 purposes, when the tagged type is not fully decorated.
633 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
634 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
635 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
636 entity corresponds with one of the predefined primitives required to
637 implement interfaces.
639 * exp_util.adb (Find_Interface_ADT): New implementation
640 (Find_Interface): Removed.
642 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
643 list of interfaces associated with nodes
644 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
646 2008-05-26 Thomas Quinot <quinot@adacore.com>
648 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
649 condition for assignment to temporary.
651 2008-05-26 Ed Schonberg <schonberg@adacore.com>
653 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
654 checks on the upper bound if the index type is a modular type, to
655 prevent wrap-around computations when size is close to upper bound of
658 2008-05-26 Robert Dewar <dewar@adacore.com>
660 * sem_ch3.adb: Minor reformatting
662 2008-05-26 Ed Schonberg <schonberg@adacore.com>
664 * sem_ch12.adb (Remove_Parent): Use specification of instance
665 to retrieve generic parent,
666 to handle properly the case where the instance is a child unit.
667 Add guard to handle properly wrapper packages.
670 2008-05-26 Thomas Quinot <quinot@adacore.com>
672 * sinfo.ads: Minor reformatting
674 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
676 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
677 Generate a tag check when the result subtype of a function, defined by
678 an access definition, designates a specific tagged type.
679 (Make_Tag_Check): New routine.
681 2008-05-26 Arnaud Charlet <charlet@adacore.com>
683 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
685 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
687 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
688 (builtin_decl_for): Likewise.
689 * trans.c (gigi): Likewise.
690 * utils.c (def_builtin_1): Fix formatting.
692 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
694 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
695 Create the statements which map a string name to protected or task
698 * exp_ch9.adb: Add with and use clause for Stringt.
699 Minor code reformatting.
700 (Build_Entry_Names): New routine.
701 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
702 for flag Build_Entry_Names which controls the allocation of the data
703 structure for the string names of entries.
705 * exp_ch9.ads (Build_Entry_Names): New subprogram.
707 * exp_util.adb (Entry_Names_OK): New function.
709 * exp_util.ads (Entry_Names_OK): New function.
711 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
712 enumerations RE_Id and RE_Unit_Table.
714 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
715 (Free_Entry_Names_Array): New routine.
717 * s-taskin.ads: Comment reformatting.
718 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
719 Add component Entry_Names to record Ada_Task_Control_Block.
720 (Free_Entry_Names_Array): New routine.
722 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
723 dynamically allocate an array
724 of string pointers. This structure holds string entry names.
725 (Free_Entry_Names): New routine.
726 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
727 (Set_Entry_Names): New routine.
730 (Create_Task): Add formal Build_Entry_Names. The flag is used to
731 control the allocation of the data structure which stores entry names.
732 (Set_Entry_Name): New routine.
735 Add with and use clause for Ada.Unchecked_Conversion.
736 (Finalize): Deallocate the entry names array.
737 (Free_Entry_Names): New routine.
738 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
739 create an array of string pointers to hold the entry names.
740 (Set_Entry_Name): New routine.
743 Add field Entry_Names to record Protection_Entries.
744 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
745 (Set_Entry_Name): New routine.
747 2008-05-26 Vincent Celier <celier@adacore.com>
750 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
753 (Project_Configuration): New component Shared_Lib_Driver
755 2008-05-26 Ed Schonberg <schonberg@adacore.com>
758 (Cleanup_Scopes): For a protected operation, transfer finalization list
759 to protected body subprogram, to force cleanup actions when needed.
761 2008-05-26 Robert Dewar <dewar@adacore.com>
763 * sem_cat.adb: Minor reformatting
765 * gnatname.adb: Minor reformatting
767 * osint.ads: Minor reformatting
769 * s-carun8.ads: Minor reformatting
771 * g-heasor.ads: Minor comment fix (unit is now pure)
773 2008-05-26 Robert Dewar <dewar@adacore.com>
776 (Expand_Current_Value): Properly type generated integer literal
778 2008-05-26 Sergey Rybin <rybin@adacore.com>
780 * gnat_ugn.texi: Add description for the new gnatcheck rule -
781 Separate_Numeric_Error_Handlers.
783 2008-05-26 Pascal Obry <obry@adacore.com>
785 * sem_aggr.adb: Minor reformatting.
787 2008-05-26 Jose Ruiz <ruiz@adacore.com>
790 (To_Target_Priority): Setting the time slice value to 0 or greater sets
791 the scheduling policy to FIFO within priorities or round-robin
793 Hence, the priority must be set in this case to the one selected by the
796 2008-05-26 Ed Schonberg <schonberg@adacore.com>
799 (Remove_Parent): If the enclosing scope is an instance whose generic
800 parent is declared within some parent scope of the just completed
801 instance, make full views of the entities in that parent visible, when
804 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
806 * mingw32.h (STD_MINGW): Set to true for target w64.
808 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
810 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
811 instead of TREE_STATIC on the ADDR_EXPR.
813 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
815 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
816 (Sloc_to_locus): Do not overwrite known GCC locations when translating
817 GNAT standard locations.
819 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
821 * gigi.h (mark_visited): Declare.
822 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
823 only the topmost node of expressions.
824 (elaborate_expression_1): Look deeper for read-only variables.
825 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
826 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
827 (mark_visited_r): New function.
829 2008-05-23 Vincent Celier <celier@adacore.com>
831 * snames.adb: New standard name Excluded_Source_List_File.
833 * snames.ads: New standard name Excluded_Source_List_File.
835 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
837 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
838 Get excluded sources from
839 file indicated by attribute Excluded_Source_List_File, when present and
840 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
842 2008-05-23 Robert Dewar <dewar@adacore.com>
844 * exp_dist.adb: Minor reformatting
846 2008-05-23 Ed Schonberg <schonberg@adacore.com>
848 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
849 slice, convert it to an indexed component, which is equivalent, more
850 efficient, and usable even if the slice itself is not addressable.
852 2008-05-23 Olivier Hainque <hainque@adacore.com>
854 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
855 convention also allows access to named compiler built-in subprograms
856 such as the GCC __builtin family.
858 2008-05-23 Vincent Celier <celier@adacore.com>
860 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
861 sep. If there are several possibilities, choose the one with the
864 2008-05-23 Vincent Celier <celier@adacore.com>
866 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
867 back end switches when executable specified with --GCC= is same as
868 default, even if there are additional options.
871 Document when the back end switches from the ALI file are taken into
872 account when gnatlink is invoked with --GCC=
874 2008-05-23 Thomas Quinot <quinot@adacore.com>
877 (copy_File): Do not open destination file if source file is unreadable.
879 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
881 * utils.c (handle_type_generic_attribute): Adjust to accept
882 fixed arguments before an elipsis.
884 2008-05-21 Thomas Quinot <quinot@adacore.com>
886 * g-sothco.ads, g-sothco.adb: New files.
888 2008-05-20 Thomas Quinot <quinot@adacore.com>
890 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
892 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
893 Add missing "with" of Ada.Unchecked_Conversion
895 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
896 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
897 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
898 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
899 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
900 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
901 Move common code out of GNAT.Sockets.Thin implementations and into
903 New constant SIZEOF_fd_set
904 New flag Has_Sockaddr_Len
905 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
907 * g-stsifd-sockets.adb
908 (Create): Remove call to Set_Length; use Set_Family to set the family
909 and (on appropriate platforms) length fields in struct sockaddr.
911 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
912 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
913 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
914 Move common code out of GNAT.Sockets.Thin implementations and into
917 * g-socket.ads, g-socket.adb:
918 Move common code out of GNAT.Sockets.Thin implementations and into
920 (Connect_Socket, Accept_Socket): Provide new versions of these two
921 routines that operate with a user specified timeout.
922 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
923 this is now handled automatically by Set_Family on platforms that
927 Move common code out of GNAT.Sockets.Thin implementations and into
929 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
930 this constant to 0 (not -1) because we use it to initialize an
932 Align values for numeric constants only.
933 Handle the case of systems that do not support AF_INET6.
934 New constant SIZEOF_fd_set
935 New flag Has_Sockaddr_Len
936 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
938 * gsocket.h: New flag Has_Sockaddr_Len
939 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
941 2008-05-20 Santiago Uruena <uruena@adacore.com>
943 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
945 2008-05-20 Arnaud Charlet <charlet@adacore.com>
947 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
948 the underlying issue with malloc/free has been fixed. Remove associated
951 Related to PR ada/24533
953 2008-05-20 Robert Dewar <dewar@adacore.com>
955 * ali.adb: Correct casing of ASCII.NUL
957 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
960 2008-05-20 Robert Dewar <dewar@adacore.com>
961 Gary Dismukes <dismukes@adacore.com>
963 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
964 overflow if result converted to wider integer type.
965 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
966 discriminated types when discriminant checks are suppressed.
968 2008-05-20 Vincent Celier <celier@adacore.com>
970 * cstand.adb (Print_Standard): Issue the correct Size clause for type
973 2008-05-20 Tristan Gingold <gingold@adacore.com>
975 * decl.c: Do not emit a variable for a object that has an address
976 representation clause whose value is known at compile time.
977 When a variable has an address clause whose value is known at compile
978 time, refer to this variable by using directly the address instead of
979 dereferencing a pointer.
981 2008-05-20 Robert Dewar <dewar@adacore.com>
984 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
985 subtypes, always False for non-modular types.
986 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
987 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
988 for Shared_Storage package.
989 (Is_RACW_Stub_Type): New entity flag.
992 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
993 case where we have a modular type with a non-binary modules.
994 Comments reformattings.
996 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
999 2008-05-20 Javier Miranda <miranda@adacore.com>
1002 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
1003 tests did not covered the case in which the type of the aggregate has
1004 no progenitors but some its parents has progenitors.
1006 2008-05-20 Gary Dismukes <dismukes@adacore.com>
1007 Hristian Kirtchev <kirtchev@adacore.com>
1010 (Expand_N_Object_Declaration): Correct the condition which triggers the
1011 generation of a call to Displace when initializing a class-wide object.
1012 (Build_Dcheck_Functions): Build discriminant-checking for null variants
1013 when Frontend_Layout_On_Target is true to ensure that they're available
1014 for calling when a record variant size function is built in Layout.
1016 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1018 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1019 procedure for a derived type retrieve the discriminant values from the
1020 parent using the corresponding discriminant.
1021 (Expand_N_Assignment_Statement): Skip generation of implicit
1022 if-statement associated with controlled types if we are
1023 compiling with restriction No_Finalization.
1025 2008-05-20 Vincent Celier <celier@adacore.com>
1027 * prj.adb (Hash (Project_Id)): New function
1028 (Project_Empty): Add new component Interfaces_Defined
1030 * prj.ads (Source_Data): New component Object_Linked
1031 (Language_Config): New components Object_Generated and Objects_Linked
1032 (Hash (Project_Id)): New function
1033 (Source_Data): New Boolean components In_Interfaces and
1034 Declared_In_Interfaces.
1035 (Project_Data): New Boolean component Interfaces_Defined
1038 New project level attribute Object_Generated and Objects_Linked
1039 Add new project level attribute Interfaces
1041 * prj-dect.adb: Use functions Present and No throughout
1042 (Parse_Variable_Declaration): If a string type is specified as a simple
1043 name and is not found in the current project, look for it also in the
1044 ancestors of the project.
1047 Replace procedure Make with procedures Initialize, Process and Finalize
1048 to implement H414-023: process different directories with different
1050 Use functions Present and No throughout
1053 Replace procedure Make with procedures Initialize, Process and Finalize
1056 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
1057 the language configuration.
1058 (Process_Project_Level_Array_Attributes): Process new attributes
1059 Object_Generated and Object_Linked.
1060 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
1061 False, to indicate that the erreor/warning is a continuation.
1062 (Check): Call Report_No_Sources with Contnuation = True after the first
1064 (Error_Msg): Process successively contnuation character and warning
1066 (Find_Explicit_Sources): Check that all declared sources have been found
1067 (Check_File): Indicate in hash table Source_Names when a declared source
1069 (Check_File): Set Other_Part when found
1070 (Find_Explicit_Sources): In multi language mode, check if all exceptions
1071 to the naming scheme have been found. For Ada, report an error if an
1072 exception has not been found. Otherwise, disregard the exception.
1073 (Check_Interfaces): New procedure
1074 (Add_Source): When Other_Part is defined, set mutual pointers in spec
1076 (Check): In multi-language mode, call Check_Interfaces
1077 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
1078 for an excluded source.
1079 (Remove_Source): A source replacing a source in the interfaces is also
1082 * prj-pars.adb: Use function Present
1084 * prj-part.adb: Use functions Present and No throughout
1085 (Parse_Single_Project): Set the parent project for child projects
1086 (Create_Virtual_Extending_Project): Register project with no qualifier
1087 (Parse_Single_Project): Allow an abstract project to be extend several
1088 times. Do not allow an abstract project to extend a non abstract
1091 * prj-pp.adb: Use functions Present and No throughout
1092 (Print): Take into account the full associative array attribute
1095 * prj-proc.adb: Use functions Present and No throughout
1096 (Expression): Call itself with the same From_Project_Node for the
1097 default value of an external reference.
1099 * prj-strt.adb: Use functions Present and No throughout
1100 (Parse_Variable_Reference): If a variable is specified as a simple name
1101 and is not found in the current project, look for it also in the
1102 ancestors of the project.
1104 * prj-tree.ads, prj-tree.adb (Present): New function
1106 Use functions Present and No throughout
1107 (Parent_Project_Of): New function
1108 (Set_Parent_Project_Of): New procedure
1110 * snames.ads, snames.adb:
1111 Add new standard names Object_Generated and Objects_Linked
1113 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1115 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
1116 and the derived type are of the same kind.
1117 (Expand_Call): Generate type conversions for actuals of
1118 record or array types when the parent and the derived types differ in
1119 size and/or packed status.
1121 2008-05-20 Javier Miranda <miranda@adacore.com>
1122 Ed Schonberg <schonberg@adacore.com>
1124 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
1125 generating dispatch tables of locally defined tagged types statically.
1126 Remove implicit if-statement that is no longer required.
1127 (Expand_Dispatching_Call): If this is a call to an instance of the
1128 generic dispatching constructor, the type of the first argument may be
1129 a subtype of Tag, so always use the base type to recognize this case.
1131 2008-05-20 Thomas Quinot <quinot@adacore.com>
1134 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
1135 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
1136 assigning NULL into the result, to avoid a spurious warning.
1137 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
1139 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
1141 (Build_From_Any_Function, Build_To_Any_Function,
1142 Build_TypeCode_Function): For a type that has user-specified stream
1143 attributes, use an opaque sequence of octets as the representation.
1145 2008-05-20 Kevin Pouget <pouget@adacore.com>
1147 * exp_smem.ads, exp_smem.adb: Construction of access and assign
1148 routines has been replaced by an instantiation of
1149 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
1150 shared variable declaration.
1151 Calls to access and assign routines have been replaced by calls to
1152 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
1153 instantiated package.
1155 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
1156 It identifies the new generic package added in s-shasto.
1158 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
1159 is instantiated for each shared passive variable. It provides
1160 supporting procedures called upon each read or write access by the
1164 For this runtime unit (always compiled in GNAT mode), we allow
1165 stream attributes references for limited types for the case where
1166 shared passive objects are implemented using stream attributes,
1167 which is the default in GNAT's persistent storage implementation.
1169 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1172 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
1173 convention from its base type, do not set the type to that of integer,
1174 because it may inherit a size clause.
1175 Warn on a size clause with a size different
1176 from that of Integer, if the type has convention C.
1178 2008-05-20 Vincent Celier <celier@adacore.com>
1181 (Scan_Args): Rewrite to take into account new switch --and to separate
1182 arguments into sections.
1183 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
1184 section, then Finalize.
1186 2008-05-20 Tristan Gingold <gingold@adacore.com>
1188 * init.c: Enable stack probing on ppc-linux.
1190 * tracebak.c: Add symbolic traceback for ppc-linux.
1192 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
1194 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1197 (common-tools): New rule, to avoid parallel build failure on gnat tools.
1198 Reenable parallel builds on this Makefile.
1200 * Make-lang.in: Update dependencies.
1202 2008-05-20 Robert Dewar <dewar@adacore.com>
1204 * opt.ads (Treat_Restrictions_As_Warnings): New switch
1206 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
1207 Treat_Restrictions_As_Warnings.
1209 * switch-c.adb: Recognize new switch -gnatr
1211 * usage.adb: Add line for -gnatr
1213 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1216 (P_Access_Definition): Change the error message when parsing "access
1217 all" in Ada 95 mode. The message no longer forces the user to recompile
1218 in 05 mode only to discover that anonymous access types are not allowed
1221 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1224 (P_Protected): Update the error message on missing "-gnat05" switch when
1225 using interfaces in conjunction with protected types. Remove the
1226 incorrect error message associated with the presence of "private" after
1229 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1231 * sem_aggr.adb: Update comments.
1232 Improve previous change for PR ada/17985
1234 2008-05-20 Thomas Quinot <quinot@adacore.com>
1237 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
1238 the visible part of the spec of a remote types unit.
1239 (Validate_Remote_Access_Object_Type_Declaration):
1240 New local subprogram Is_Valid_Remote_Object_Type, replaces
1241 Is_Recursively_Limited_Private.
1242 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
1243 non-controlling formals (and the return type, even though this is not
1244 explicit in the standard) must support external streaming.
1245 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
1246 as above for of RAS types and RCI subprograms. (The return type is not
1248 Update comments related to RACWs designating limited interfaces per
1249 ARG ruling on AI05-060.
1251 * sem_util.ads, sem_util.adb
1252 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
1253 Is_Remote_Call_Interface to identify RACW types in a stable and
1254 consistent way. We used to rely in this predicate on the privateness of
1255 the designated type and its ancestors, but depending on the currently
1256 visible private parts, this caused false negatives. We now uniformly
1257 rely on checks made at the point where the RACW type is declared.
1258 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
1260 2008-05-20 Javier Miranda <miranda@adacore.com>
1261 Ed Schonberg <schonberg@adacore.com>
1262 Hristian Kirtchev <kirtchev@adacore.com>
1265 (Analyze_Object_Declaration): Fix over-conservative condition
1266 restricting use of predefined assignment with tagged types that have
1268 (Analyze_Object_Declaration): Relax the check regarding deferred
1269 constants declared in scopes other than packages since they can be
1270 completed with pragma Import.
1271 Add missing escaping of all-caps word 'CPP' in error messages.
1272 (Build_Discriminated_Subtype): Do not inherit representation clauses
1273 from parent type if subtype already carries them, because they are
1274 inherited earlier during derivation and already include those that may
1275 come from a partial view.
1277 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
1278 Check the declarations of a subprogram body for proper deferred
1279 constant completion.
1281 * sem_ch7.ads, sem_ch7.adb
1282 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
1284 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1285 Thomas Quinot <quinot@adacore.com>
1288 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
1289 F is a parameterless function that returns an array, and S is a subtype
1291 (Analyze_Call): Insert dereference when the prefix is a parameterless
1292 function that returns an access to subprogram and the call has
1294 Reject a non-overloaded call whose name resolves to denote
1295 a primitive operation of the stub type generated to support a remote
1296 access-to-class-wide type.
1298 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1301 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
1302 when there is a use clause for the same entity in the context.
1303 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
1304 created for a stream attribute of an abstract type or interface type.
1306 2008-05-20 Thomas Quinot <quinot@adacore.com>
1308 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
1312 (Add_One_Interp): Ignore any interpretation that is a primitive
1313 operation of an RACW stub type (these primitives are only executed
1314 through dispatching, never through static calls).
1315 (Collect_Interps): When only one interpretation has been found, set N's
1316 Entity and Etype to that interpretation, otherwise Entity and Etype may
1317 still refer to an interpretation that was ignored by Add_One_Interp,
1318 in which case would end up with being marked as not overloaded but with
1319 an Entity attribute not pointing to its (unique) correct interpretation.
1321 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1324 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
1325 denotes the whole array of its prefix.
1327 2008-05-20 Robert Dewar <dewar@adacore.com>
1329 * sem_res.adb (Resolve_Op_Not): Warn on double negation
1331 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1334 (Print_Itype): Do not modify the sloc of the component type of a
1335 (packed) array itype, because it is an unrelated type whose source
1336 location is independent of the point of creation of the itype itself.
1338 2008-05-20 Thomas Quinot <quinot@adacore.com>
1340 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
1343 2008-05-20 Robert Dewar <dewar@adacore.com>
1344 Vincent Celier <celier@adacore.com>
1346 * vms_data.ads: Add entry for -gnatr
1347 Put GNAT SYNC section in proper alpha order
1348 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
1350 * gnat_ugn.texi: Add documentation for new gnatname switch --and
1351 Update the style checks section
1352 Add documentation of -gnatr
1353 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
1354 subsection the explanation how compiler checks should be disabled for
1356 Update the list of Ada 95 reserved words used by in the project language
1357 Add documentation for project qualifiers.
1358 Document that abstract projects may be extended by different projects in
1359 the same project tree.
1360 Add documentation for gnatmake switch -d
1362 * ug_words: Add -gnatyy VMS equivalence string.
1363 Add entry for -gnatr
1365 2008-05-20 Bob Duff <duff@adacore.com>
1368 (Set_Handler): Remove code from both of these that implements
1369 RM-D.15(15/2), because it causes a race condition and potential
1371 (Process_Queued_Events): Add comment explaining "exception when others
1372 => null". Add clarifying ".all", even though implicit .all is legal
1375 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1377 * s-winext.ads: Replace representation clause by pragma Pack. Gives
1378 equivalent representation, but has the advantage of allowing
1379 compilation of this file under 64 bits platforms.
1381 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
1383 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
1386 Don't define dummy implementation of convert_addresses on ppc-linux.
1388 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1391 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
1392 if expression is aggregate component.
1394 2008-05-20 Robert Dewar <dewar@adacore.com>
1396 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
1397 sem_ch12.adb: Update comments. Minor reformatting.
1401 * s-unstyp.ads: Fixed some typos in comments.
1403 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1405 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
1408 * g-socthi-vxworks.ads: Update to latest socket changes.
1410 * a-caldel-vms.adb: Resync with a-caldel spec.
1412 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
1415 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
1417 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
1418 for dummy types pointed to by the converted pointer types.
1420 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
1422 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
1423 of records and unions.
1424 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
1426 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
1427 Robert Dewar <dewar@adacore.com>
1429 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
1430 restrictions to the prefix of 'Old.
1431 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
1432 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
1435 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
1439 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
1440 expression to an integral type with lower precision, use NOP_EXPR
1441 directly in a couple of special cases.
1443 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
1444 Ed Schonberg <schonberg@adacore.com>
1446 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
1447 constraint expressions.
1449 2008-05-12 Tomas Bily <tbily@suse.cz>
1451 * utils2.c (known_alignment, contains_save_expr_p)
1452 (gnat_mark_addressable): Use CASE_CONVERT.
1453 * decl.c (annotate_value): Likewise.
1454 * trans.c (maybe_stabilize_reference): Likewise.
1455 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
1456 * utils.c (rest_of_record_type_compilation): Likewise.
1457 * trans.c (protect_multiple_eval, Attribute_to_gnu)
1458 (protect_multiple_eval): Likewise.
1460 2008-05-08 Andreas Schwab <schwab@suse.de>
1462 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
1463 DECL_IS_PURE to DECL_PURE_P.
1465 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
1467 * decl.c (maybe_pad_type): Add ??? comment.
1469 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
1471 * decl.c (components_to_record): Zero the alignment of the qualified
1472 union built for the variant part upon creating it.
1474 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
1476 * decl.c (maybe_pad_type): Try to get a form of the type with integral
1477 mode even if the alignment is not a factor of the original size. But
1478 make sure to create the inner field with the original size. Reorder.
1479 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
1480 record as always addressable.
1481 * utils.c (convert): Deal specially with conversions between original
1482 and packable versions of a record type.
1483 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
1484 recognizing an assignment between padded objects.
1486 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
1488 * decl.c (make_packable_type): Resize the last component to its RM size
1489 only if it is of an aggregate type.
1490 * trans.c (call_to_gnu): Fix nit in comment.
1491 (gnat_to_gnu): Likewise.
1493 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
1495 * Makefile.in: Adapt sh4-linux target.
1497 2008-04-29 Ed Schonberg <schonberg@adacore.com>
1500 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
1501 tagged type by an untagged protected or task type.
1503 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
1504 Tristan Gingold <gingold@adacore.com>
1507 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
1508 of aliased objects with an unconstrained nominal subtype.
1509 Cap the promotion to the effective alignment of the word mode.
1511 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1513 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
1514 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
1515 Use '&&' instead of ';'.
1517 2008-04-24 Olivier Hainque <hainque@adacore.com>
1519 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
1520 doesn't require signed arithmetic anymore.
1522 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
1524 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
1525 (call_to_gnu): Don't set TREE_INVARIANT.
1526 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
1528 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
1530 * s-osinte-rtems.adb: Add sigalstack function.
1531 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
1532 function. Add Alternate_Stack and Alternate_Stack_Size.
1533 Add missing process_shared field to pthread_condattr_t
1534 and change ss_low_priority to int from timespec.
1536 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
1538 * i-forbla.adb: Link against -llapack and -lblas by default
1539 instead of the private -lgnalasup.
1541 2008-04-21 Olivier Hainque <hainque@adacore.com>
1543 Access to most C builtins from Ada
1544 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
1545 (handle_pure_attribute, handle_novops_attribute,
1546 handle_nonnull_attribute, handle_sentinel_attribute,
1547 handle_noreturn_attribute, handle_malloc_attribute,
1548 handle_type_generic_attribute): New attribute handlers, from C fe.
1549 (gnat_internal_attribute_table): Map the new handlers.
1550 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
1551 (init_gigi_decls): ... here.
1552 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
1553 Move to a section dedicated to builtins processing.
1554 (build_void_list_node, builtin_type_for_size): New functions.
1555 (def_fn_type, get_nonnull_operand): Likewise.
1556 (install_builtin_elementary_type, install_builtin_function_types,
1557 install_builtin_attributes): Likewise.
1558 (fake_attribute_handler): Fake handler for attributes we don't
1560 (def_builtin_1): New function, worker for DEF_BUILTIN.
1561 (install_builtin_functions): New function.
1562 (gnat_install_builtins): Move to the builtins processing section.
1563 Now calling the newly introduced installers.
1565 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
1567 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
1568 constant objects, but not exceptions.
1569 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
1571 * utils.c (create_var_decl_1): Likewise.
1572 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
1573 the type when copying to padded object and the source is a constructor.
1575 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1577 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
1578 alignment, reset it to zero if it would end up not being greater
1579 than that of the type.
1581 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1583 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
1584 the padded type has a variable size.
1586 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1588 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
1589 target pointer mechanism as soon as the size is not constant.
1591 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1593 * gigi.h (create_var_decl_1): Declare.
1594 (create_var_decl): Turn into a macro invoking create_var_decl_1.
1595 (create_true_var_decl): Likewise.
1596 * utils.c (create_var_decl_1): Make global and reorder parameters.
1597 (create_var_decl): Delete.
1598 (create_true_var_decl): Likewise.
1600 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
1602 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
1604 * fe.h (Debug_Flag_Dot_A): Delete.
1605 * debug.adb (-gnatd.a): Update documentation.
1607 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
1609 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
1610 "not null" parameter.
1612 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
1614 * g-socket.adb: Add a message "IPv6 not supported" to the
1615 Socket_Error exception.
1617 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
1620 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
1621 the type is known instead of the underlying type.
1623 2008-04-15 Ed Schonberg <schonberg@adacore.com>
1626 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1627 procedure for a derived type retrieve the discriminant values from
1628 the parent using the corresponding discriminant.
1630 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
1631 Gary Dismukes <dismukes@adacore.com>
1634 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
1635 which is not an entity (and hence not a package).
1636 (End_Use_Package): Ditto.
1638 2008-04-15 Ed Schonberg <schonberg@adacore.com>
1641 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
1642 protected operation that matches the signature, not only an entry, a
1643 regular subprogram or a literal.
1645 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
1647 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
1648 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
1649 if a size or alignment is specified. Do not take into account
1650 alignment promotions for the computation of the object's size.
1651 <type>: Call maybe_pad_type only if a size or alignment is specified.
1652 (maybe_pad_type): Really reuse the RM_Size of the original type if
1654 * trans.c (Attribute_to_gnu): Fix a couple of nits.
1655 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
1656 statements. Use the padded view of the type when copying between
1657 padded objects of the same underlying type.
1659 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1661 * vms_data.ads: Fix typo in constant.
1662 * gen-soccon.c: Fix typo in error string.
1663 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
1665 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
1666 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
1667 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
1668 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
1669 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
1670 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
1671 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
1672 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
1673 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
1674 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
1675 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
1676 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
1677 sinfo.ads: Fix typos in comments.
1679 2008-04-14 Robert Dewar <dewar@adacore.com>
1681 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
1682 to every non-object and change error message.
1684 2008-04-14 Robert Dewar <dewar@adacore.com>
1686 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
1687 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
1690 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1693 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
1694 apply pragma Linker_Section on type.
1696 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1699 * sem_prag.adb (Error_Pragma_Ref): New.
1700 (Process_Convention): Specialized message for non-local
1701 subprogram renaming. Detect the problem in homonyms as well.
1703 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1706 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
1707 * sem_ch12.adb (Instantiate_Object): Use it.
1708 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
1709 storage pool denotes a variable as per RM 13.11(15).
1711 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1713 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
1714 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
1716 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
1719 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
1720 line endings even on non-Unix platforms.
1722 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1725 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
1726 renaming information.
1728 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
1731 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
1734 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1736 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
1737 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
1738 snames.ads, sprint.adb, stand.ads, stringt.ads,
1739 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
1740 switch.ads, sysdep.c, table.adb, table.ads,
1741 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
1742 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
1743 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
1744 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
1745 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
1746 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
1749 * sem_ch10.adb, sem_ch10.ads,
1750 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
1751 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
1752 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
1753 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
1754 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
1755 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
1756 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
1757 sem_warn.ads: Fix comment typos.
1759 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
1760 s-soflin.ads, s-stalib.ads, s-stausa.adb,
1761 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
1762 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
1763 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
1764 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1765 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
1766 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
1767 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
1768 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
1769 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
1770 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
1771 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
1772 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
1773 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
1774 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
1775 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
1776 sem_cat.adb, sem_cat.ads: Fix comment typos.
1778 2008-04-12 Joel Sherrill <joel@oarcorp.com>
1781 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
1783 2008-04-12 Arnaud Charlet <charlet@adacore.com>
1785 * s-linux-hppa.ads: Fix syntax errors.
1787 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1789 * gnat_ugn.texi: Fix typos.
1790 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
1791 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
1792 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
1793 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
1794 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
1795 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
1796 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
1797 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
1798 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
1799 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
1800 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
1801 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
1802 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
1803 s-osinte-darwin.ads, s-osinte-freebsd.ads,
1804 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
1805 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
1806 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
1807 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
1808 s-parame-hpux.ads, s-parame-vms-alpha.ads,
1809 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
1810 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
1811 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
1812 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
1813 s-rident.ads: Fix comment typos.
1815 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
1818 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
1819 environment if generic instance is a top-level one.
1821 2008-04-09 Doug Rupp <rupp@adacore.com>
1823 * decl.c (validate_size): Set minimum size for fat pointers same as
1824 access types. Code clean ups.
1826 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
1827 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
1829 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
1831 * s-crtl.ads (malloc32) New function, alias for malloc
1832 (realloc32) New function, alias for realloc
1834 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
1836 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
1837 allocator size is 32 and default pointer size is 64.
1838 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
1839 lhs type if smaller, whatever the modes.
1841 * gigi.h (malloc32_decl): New macro definition
1843 * utils.c (init_gigi_decls): New malloc32_decl
1844 Various code clean ups.
1846 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
1847 Task_Address vice System.Address.
1849 * s-taspri-vms.ads: Import System.Aux_DEC
1850 (Task_Address): New subtype of System.Aux_DEC.Short_Address
1851 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
1853 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
1854 Task_Address vice System.Address.
1856 * s-inmaop-vms.adb: Import System.Task_Primitives
1857 (To_Address): Unchecked convert to Task_Address vice System.Address
1859 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
1861 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
1862 (To_Address) Unchecked convert to Task_Address vice System.Address
1864 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
1866 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
1868 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1870 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
1871 (fdesc_type_node): Define.
1872 (null_fdesc_node): Likewise.
1873 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
1874 uses descriptors for vtables and the type comes from a dispatch table,
1875 return the descriptor type.
1876 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
1877 uses descriptors for vtables and the type comes from a dispatch table,
1878 build a descriptor in the static case and copy the existing one in the
1880 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
1881 the type is a pointer-to-subprogram coming from a dispatch table,
1882 return the null descriptor.
1883 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
1884 vtables, the source type is the descriptor type and the target type
1885 is a pointer type, first build the pointer.
1886 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
1887 build the descriptor type and the null descriptor.
1889 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1891 * decl.c (prepend_attributes): Fix typo.
1892 * trans.c (Pragma_to_gnu): Likewise.
1893 * utils.c (gnat_genericize): Likewise.
1895 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1896 Richard Kenner <kenner@adacore.com>
1898 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
1899 * decl.c (gnat_to_gnu_entity): Adjust for above change.
1900 <E_Record_Type>: Try to get a better form of the component for
1901 packing, even if it has an integral mode.
1902 <E_Record_Subtype>: Likewise.
1903 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
1904 exception suppressing the final conversion between record types.
1906 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1908 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
1909 alignment for space, promote the alignment of non-scalar variables with
1910 no size and alignment.
1911 * gigi.h (gnat_types_compatible_p): Declare.
1912 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
1913 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
1914 * utils.c (gnat_types_compatible_p) : New predicate.
1915 (convert): Use it throughout to test for cases where a mere view
1916 conversion is sufficient.
1917 * utils2.c (build_binary_op): Minor tweaks.
1918 (build_unary_op): Likewise.
1920 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1922 * decl.c (adjust_packed): Expand comment.
1924 2008-04-08 Arnaud Charlet <charlet@adacore.com>
1926 * s-tasuti.ads: Use Task_Address instead of System.Address.
1928 * makeutl.adb (Path_Or_File_Name): New function
1930 * nlists.ads, itypes.ads: Update comments.
1932 * s-crtl.ads (malloc32, realloc32): New functions.
1934 * s-auxdec.ads (Short_Address_Size): New constant.
1936 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
1938 * s-ststop.ads, s-ststop.adb: New file.
1940 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
1943 2008-04-08 Pascal Obry <obry@adacore.com>
1945 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
1946 (Stop_Bits_Number): New type.
1947 (Parity_Check): Likewise.
1948 (Set): Add parameter to set the number of stop bits and
1949 the parity. Parameter timeout is now a duration instead
1952 * g-sercom-linux.adb:
1953 Implement the stop bits and parity support for GNU/Linux.
1954 Fix handling of timeout, it must be given in tenth of seconds.
1956 * g-sercom-mingw.adb:
1957 Implement the stop bits and parity support for Windows.
1958 Use new s-win32.ads unit instead of declaring Win32 services
1959 directly into this body.
1960 Update handling of timeout as now a duration.
1962 * s-win32.ads, s-winext.ads: New files.
1964 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1965 Arnaud Charlet <charlet@adacore.com>
1967 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
1969 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
1970 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
1972 * s-osinte-lynxos-3.ads,
1973 (Alternate_Stack): Remove when not needed. Simplify declaration
1975 (Alternate_Stack_Size): New constant.
1977 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
1978 'Unrestricted_Access.
1980 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
1981 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
1982 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
1983 s-osinte-solaris.ads, s-osinte-vms.ads
1984 (SA_ONSTACK): New constant.
1985 (stack_t): New record type.
1986 (sigaltstack): New imported function.
1987 (Alternate_Stack): New imported variable.
1988 (Alternate_Stack_Size): New constant.
1990 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
1992 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
1993 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
1994 s-taspri-vms.ads (Task_Address): New subtype of System.Address
1995 (Task_Address_Size): New constant size of System.Address
1996 (Alternate_Stack_Size): New constant.
1998 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
1999 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
2000 Establish the alternate stack if the platform makes use of n alternate
2001 signal stack for stack overflows.
2002 (Create_Task): Take into account the alternate stack in the stack size.
2003 (Initialize): Save the address of the alternate stack into the ATCB for
2004 the environment task.
2005 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
2007 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
2009 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
2011 * s-intman-posix.adb:
2012 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
2013 alternate signal stack for stack overflows.
2015 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
2016 x86-64, adjust the saved value of the stack pointer if the signal was
2017 raised by a stack checking probe.
2018 (HP-UX section): Use global __gnat_alternate_stack as signal handler
2019 stack and only for SIGSEGV.
2020 (Linux section): Likewise on x86 and x86-64.
2022 (__gnat_map_signal): Now static.
2023 (__gnat_error_handler): Not static any more.
2024 (__gnat_adjust_context_for_raise): New function. Signal context
2025 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
2026 propagation circuitry.
2027 (__gnat_error_handler): Second argument of a sigaction handler is a
2028 pointer, not an int, and is unused.
2029 Adjust signal context before mapping to exception.
2030 Install signal handlers for LynxOS case.
2032 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
2033 (Task_Id): Set size to Task_Address_Size
2034 (To_Task_id): Unchecked convert from Task_Address vice System.Address
2035 (To_Address): Unchecked convert to Task_Address vice System.Address
2037 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
2038 address into the ATCB if the platform makes use of an alternate signal
2039 stack for stack overflows.
2040 (Free_Task): Add call to Finalize_Attributes_Link.
2041 Add argument Relative_Deadline to pass the value specified for
2042 the task. This is not yet used for any target.
2044 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
2045 the value specified for the task.
2047 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2049 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
2050 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
2051 s-vxwext-rtp.adb): New files.
2053 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
2054 Minor updates to accomodate changes above.
2056 2008-04-08 Pascal Obry <obry@adacore.com>
2058 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
2059 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
2060 Use new s-win32.ads unit instead of declaration
2061 from s-osinte-mingw.ads.
2063 * s-osinte-mingw.ads:
2064 Move all non tasking based interface to s-win32.ads.
2066 * s-osprim-mingw.adb:
2067 Remove duplicated declarations and use s-win32.ads
2070 2008-04-08 Vincent Celier <celier@adacore.com>
2071 Arnaud Charlet <charlet@adacore.com>
2073 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
2074 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
2075 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
2076 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2077 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
2079 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
2080 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
2081 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
2082 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
2083 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
2084 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2085 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
2086 mlib-tgt-specific-mingw.adb: New names.
2089 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
2091 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
2092 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
2093 Minor updates for VMS
2095 * gnatbl.c: Removed.
2097 2008-04-08 Thomas Quinot <quinot@adacore.com>
2099 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
2100 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
2101 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
2102 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
2103 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
2104 ASCII.NUL throughout.
2106 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2107 Matthew Heaney <heaney@adacore.com>
2109 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
2112 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
2113 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
2114 to convention for non-RM specs.
2115 Add descriptive header, and documented each operation
2116 document each operation
2118 2008-04-08 Robert Dewar <dewar@adacore.com>
2119 Bob Duff <duff@adacore.com>
2120 Gary Dismukes <dismukes@adacore.com>
2121 Ed Schonberg <schonberg@adacore.com>
2123 * alloc.ads: Add entries for Obsolescent_Warnings table
2125 * einfo.ads, einfo.adb: Minor reformatting.
2126 (Is_Discriminal): New subprogram.
2127 (Is_Prival): New subprogram.
2128 (Is_Protected_Component): New subprogram.
2129 (Is_Protected_Private): Removed.
2130 (Object_Ref, Set_Object_Ref): Removed.
2131 (Prival, Set_Prival): Change assertion.
2132 (Privals_Chain, Set_Privals_Chain): Removed.
2133 (Prival_Link, Set_Prival_Link): New subprogram.
2134 (Protected_Operation, Set_Protected_Operation): Removed.
2135 (Protection_Object, Set_Protection_Object): New subprogram.
2136 (Write_Field17_Name): Remove case for Object_Ref.
2137 (Write_Field20_Name): Add case for Prival_Link.
2138 (Write_Field22_Name): Remove case for Protected_Operation,
2140 Add case for Protection_Object.
2141 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
2143 (Overlays_Constant): New flag
2144 (Is_Constant_Object): New predicate
2145 (Is_Standard_Character_Type): New predicate
2146 (Optimize_Alignment_Space): New flag
2147 (Optimize_Alignment_Time): New flag
2148 (Has_Postconditions): New flag
2149 (Obsolescent_Warrning): Field removed
2150 (Spec_PPC_List): New field
2151 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
2152 subprograms to get and set the relative deadline associated to a task.
2154 * exp_attr.adb (May_Be_External_Call): Account for the case where the
2155 Access attribute is part of a named parameter association.
2156 (Expand_Access_To_Protected_Op): Test for the attribute occurring
2157 within an init proc and use that directly as the scope rather than
2158 traversing up to the protected operation's enclosing scope. Only apply
2159 assertion on Is_Open_Scopes in the case the scope traversal is done.
2160 For the init proc case use the address of the first formal (_init) as
2161 the protected object reference.
2162 Implement Invalid_Value attribute
2163 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
2164 contents of the dispatch table there is no need to duplicate the
2165 itypes associated with record types (i.e. the implicit full view
2167 Implement Enum_Val attribute
2168 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
2169 within _Postconditions procedure
2170 (Expand_N_Attribute_Reference, case Result): Implement new attribute
2172 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
2173 a return statement calls a function that is not available in
2174 configurable runtime.
2175 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
2176 (Expand_Non_Function_Return): Generate call to _Postconditions proc
2177 (Expand_Simple_Function_Return): Ditto
2179 * frontend.adb: Add call to Sem_Aux.Initialize
2181 * sem_aux.ads, sem_aux.adb: New file.
2183 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
2184 Add new Pragma_Relative_Deadline.
2185 Add support for pragmas Check and Check_Policy
2187 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
2188 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
2189 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
2190 missing check because they are not allowed in CPP tagged types.
2191 Add Sure parameter to Note_Possible_Modification calls
2192 Add implementation of Invalid_Value attribute
2193 Implement new attribute Has_Tagged_Values
2194 Implement Enum_Val attribute
2195 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
2196 generated attributes.
2197 (Analyze_Attribute, case Result): If prefix of the attribute is
2198 overloaded, it always resolves to the enclosing function.
2199 (Analyze_Attribute, case Result): Properly deal with analysis when
2200 Postconditions are not active.
2201 (Resolve_Attribute, case Result): Properly deal with appearence during
2202 preanalysis in spec.
2203 Add processing for attribute Result
2205 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
2207 (Analyze_Subprogram_Body): Install private_with_clauses when the body
2209 (Check_Inline_Pragma): recognize an inline pragma that appears within
2210 the subprogram body to which it applies.
2211 (Analyze_Function_Return): Check that type of the expression of a return
2212 statement in a function with a class-wide result is not declared at a
2213 deeper level than the function.
2214 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
2215 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
2216 user- defined operators.
2217 (Install_Formals): Moved to spec to allow use from Sem_Prag for
2218 analysis of precondition/postcondition pragmas.
2219 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
2220 Last_Formal, along with lots of comments on what this is about
2221 (Analyze_Subprogram_Body): Fix case where we move entities from the
2222 spec to the body when there are no body entities (now possible with
2223 precondition and postcondition pragmas).
2224 (Process_PPCs): New procedure
2225 (Analyze_Subprogram_Body): Add call to Process_PPCs
2227 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
2229 (Pop_Scope): Restore Check_Policy_List on scope exit
2230 (Push_Scope): Save Check_Policy_List on scope entry
2231 Change name In_Default_Expression => In_Spec_Expression
2232 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2233 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2234 (Analyze_Object_Renaming): Allow 'Reference as object
2235 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
2236 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
2237 of restriction identifier.
2238 Add Sure parameter to Note_Possible_Modication calls
2240 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
2241 Don't check for primitive operations when calling Rep_Item_Too_Late.
2242 (Process_Import_Or_Interface): Do not place flag on formal
2244 (Analyze_Pragma, case Export): If the entity is a deferred constant,
2245 propagate information to full view, which is the one elaborated by the
2247 (Make_Inline): the pragma is effective if it applies to an internally
2248 generated subprogram declaration for a body that carries the pragma.
2249 (Analyze_Pragma, case Optimize_Alignment): Set new flag
2250 Optimize_Alignment_Local.
2251 (Analyze_PPC_In_Decl_Part): New procedure
2252 (Get_Pragma_Arg): Moved to outer level
2253 (Check_Precondition_Postcondition): Change to allow new visibility
2254 rules for package spec
2255 (Analyze_Pragma, case Check_Policy): Change placement rules to be
2256 same as pragma Suppress/Unsuppress.
2257 Change name In_Default_Expression => In_Spec_Expression
2258 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2259 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2260 (Check_Precondition_Postcondition): Do proper visibility preanalysis
2261 for the case of these pragmas appearing in the spec.
2262 (Check_Enabled): New function
2263 (Initialize): New procedure
2264 (Tree_Read): New procedure
2265 (Tree_Write): New procedure
2266 (Check_Precondition_Postcondition): New procedure
2267 Implement pragmas Check and Check_Policy
2268 Merge Assert processing with Check
2270 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
2271 New warning flag -gnatw.e
2273 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
2274 returning whether a task (or main procedure) has a pragma
2276 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
2277 (or main procedure) has a pragma Relative_Deadline.
2278 Add Next_Pragma field to N_Pragma node
2279 (PPC_Enabled): New flag
2280 (Next_Pragma): Now used for Pre/Postcondition processing
2282 * snames.h, snames.ads, snames.adb: New standard name
2284 Add entry for 'Invalid_Value attribute
2285 Add entry for new attribute Has_Tagged_Values
2286 Add entry for Enum_Val attribute
2287 Add new standard names Aggregate, Configuration and Library.
2290 Add Pragma_Precondition
2291 Add Pragma_Postcondition
2292 Add Attribute_Result
2293 New standard name Archive_Builder_Append_Option
2294 (Preset_Names): Add _relative_deadline and relative_deadline definitions
2295 There was also a missing non_preemptive_within_priorities.
2296 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
2298 Add support for pragmas Check and Check_Policy
2300 * tree_gen.adb: Call Sem_Aux.Tree_Write
2302 * tree_in.adb: Call Sem_Aux.Tree_Read
2304 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
2307 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
2310 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
2311 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
2313 (Expand_Pragma_Check): New procedure
2315 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
2318 * sinfo.adb (PPC_Enabled): New flag
2320 2008-04-08 Robert Dewar <dewar@adacore.com>
2321 Gary Dismukes <dismukes@adacore.com>
2322 Javier Miranda <miranda@adacore.com>
2323 Ed Schonberg <schonberg@adacore.com>
2325 * fe.h: Remove global Optimize_Alignment flag, no longer used
2327 * layout.adb: Test Optimize_Alignment flags rather than global switch
2329 * lib.ads, lib.adb: New OA_Setting field in library record
2331 * lib-load.adb: New OA_Setting field in library record
2333 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
2334 units mentioned in limited_with_ clauses in the ali file, with an
2336 New Ox fields in U line
2338 * opt.adb: New flag Optimize_Alignment_Local
2339 (Check_Policy_List[_Config]): New flags
2341 * opt.ads (Invalid_Value_Used): New flag
2342 New switch Optimize_Alignment_Local
2343 (Warn_On_Parameter_Order): New flag
2344 (Check_Policy_List[_Config]): New flags
2346 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
2347 limited_with clauses.
2348 New data structures for Optimize_Alignment
2350 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
2352 (Check_Consistent_Optimize_Alignment): Rework for new structure
2353 (Check_Consistent_Restrictions): Fix incorrect error message
2355 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
2356 created class-wide type (to the Parent field of the specific type).
2357 (Install_Siblings): Handle properly private_with_clauses on subprogram
2358 bodies and on generic units.
2359 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
2360 illegal limited_with_clause that names a non-existent package.
2361 (Check_Body_Required): Determine whether a unit named a limited_with
2362 clause needs a body.
2363 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
2364 Capture Optimize_Alignment settings to set new OA_Setting field in
2366 (Build_Limited_Views): Include task and protected type declarations.
2368 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
2369 case of a possible constant redeclaration where the current object is
2370 an entry index constant.
2371 (Analyze_Object_Declaration): Generate an error in case of CPP
2372 class-wide object initialization.
2373 (Analyze_Object_Declaration): Add extra information on warnings for
2374 declaration of unconstrained objects.
2375 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
2376 conflicts with the setting of Stored_Constraint in the case where the
2377 access type entity has already been created as an E_Incomplete_Type due
2378 to a limited with clause.
2379 Use new Is_Standard_Character_Type predicate
2380 (Analyze_Object_Declaration): Apply access_constant check only after
2381 expression has been resolved, given that it may be overloaded with
2382 several access types.
2383 (Constant_Redeclaration): Additional legality checks for deferred
2384 constant declarations tha involve anonymous access types and/or null
2385 exclusion indicators.
2386 (Analyze_Type_Declaration): Set Optimize_Alignment flags
2387 (Analyze_Subtype_Declaration): Ditto
2388 (Analyze_Object_Declaration): Ditto
2389 (Analyze_Object_Declaration): Don't count tasks in generics
2390 Change name In_Default_Expression => In_Spec_Expression
2391 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2392 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2393 (Process_Discriminants): Additional check for illegal use of default
2394 expressions in access discriminant specifications in a type that is not
2396 (Check_Abstract_Overriding): If an inherited function dispaches on an
2397 access result, it must be overridden, even if the type is a null
2399 (Derive_Subprogram): The formals of the derived subprogram have the
2400 names and defaults of the parent subprogram, even if the type is
2401 obtained from the actual subprogram.
2402 (Derive_Subprogram): In the presence of interfaces, a formal of an
2403 inherited operation has the derived type not only if it descends from
2404 the type of the formal of the parent operation, but also if it
2405 implements it. This is relevant for the renamings created for the
2406 primitive operations of the actual for a formal derived type.
2407 (Is_Progenitor): New predicate, to determine whether the type of a
2408 formal in the parent operation must be replaced by the derived type.
2410 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
2411 predicate recursive to handle components that have a user-defined
2412 Initialize procedure. Handle controlled derived types whose ancestor
2413 has a user-defined Initialize procedured.
2414 (Note_Possible_Modification): Add Sure parameter, generate warning if
2415 sure modification of constant
2416 Use new Is_Standard_Character_Type predicate
2417 (Find_Parameter_Type): when determining whether a protected operation
2418 implements an interface operation, retrieve the type of the formal from
2419 the entity when the formal is an access parameter or an
2420 anonymous-access-to-subprogram.
2421 Move Copy_Parameter_List to sem_util, for use when building stubbed
2423 (Has_Access_Values): Tagged types now return False
2424 (Within_HSS_Or_If): New procedure
2425 (Set_Optimize_Alignment_Flags): New procedure
2426 Change name In_Default_Expression => In_Spec_Expression
2427 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2428 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2430 2008-04-08 Tristan Gingold <gingold@adacore.com>
2432 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
2434 2008-04-08 Tristan Gingold <gingold@adacore.com>
2438 * cuintp.c: Fix 16 bits issue for AVR.
2439 On AVR, integer is 16 bits, so it can't be used to do math with
2441 So use long_integer instead.
2443 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2445 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
2446 System.OS_Primitives.
2447 Change type of various constants, parameters and local variables from
2448 Time to representation type OS_Time.
2449 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
2450 Remove the declaration of constant Mili_F from several routines. New
2451 body for internal package Conversions_Operations.
2452 (Time_Of): Add default parameters for several formals.
2454 * a-caldel.adb: Minor reformatting
2456 * a-calend.ads, a-calend.adb: New body for internal package
2457 Conversions_Operations.
2458 (Time_Of): Add default parameters for several formals.
2460 * Makefile.rtl: Add a-ststop
2461 Add Ada.Calendar.Conversions to the list of runtime files.
2464 * a-calcon.adb, a-calcon.ads: New files.
2466 2008-04-08 Jose Ruiz <ruiz@adacore.com>
2467 Tristan Gingold <gingold@adacore.com>
2469 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
2470 (Install_Restricted_Handlers): New procedure
2471 which is a simplified version of Install_Handlers that does not store
2472 previously installed.
2474 * s-interr-vxworks.adb: Fix ACATS cxc3001
2475 On VxWorks interrupts can't be detached.
2476 (Install_Restricted_Handlers): New procedure.
2478 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
2481 2008-04-08 Olivier Hainque <hainque@adacore.com>
2483 * s-intman-vxworks.ads, s-intman-vxworks.adb
2484 (Map_And_Raise_Exception): Remove. Was an import of only part of the
2485 required services already implemented elsewhere.
2486 (Notify_Exception): Delete body, import __gnat_error_handler instead.
2487 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
2488 argument passed to the handler, which we need for ZCX propagation
2491 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2493 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
2495 * g-timsta.adb, g-timsta.ads: New files.
2497 2008-04-08 Robert Dewar <dewar@adacore.com>
2499 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
2500 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
2501 (Raise_Exception_Always): Fix documentation accordingly
2503 2008-04-08 Robert Dewar <dewar@adacore.com>
2505 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
2508 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
2511 2008-04-08 Javier Miranda <miranda@adacore.com>
2512 Robert Dewar <dewar@adacore.com>
2513 Ed Schonberg <schonberg@adacore.com>
2515 * a-tags.adb (Register_Interface_Offset): New subprogram.
2516 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
2517 (To_Predef_Prims_Table_Ptr): Removed.
2518 (Acc_Size): Removed.
2519 (To_Acc_Size): Removed.
2520 (Parent_Size): Modified to the call the subprogram returning the size of
2521 the parent by means of the new TSD component Size_Func.
2523 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
2524 (DT_Offset_To_Top_Offset): New constant value that is used to generate
2525 code referencing the Offset_To_Top component of the dispatch table's
2527 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
2528 use of 'address to initialize dispatch table slots.
2529 (Size_Func): New component of the TSD. Used by the run-time to call the
2530 size primitive of the tagged type.
2532 * checks.adb (Apply_Access_Check): Avoid check when accessing the
2533 Offset_To_Top component of a dispatch table.
2534 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
2535 deferred constant declaration. do not add a null expression, to prevent
2536 spurious errors when full declaration is analyzed.
2537 (Apply_Discriminant_Check): If both discriminant constraints share a
2538 node which is not static but has no side effects, do not generate a
2539 check for that discriminant.
2540 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
2541 subexpr, since the prefix of an attribute is a name.
2543 * checks.ads: Fix nit in comment.
2545 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
2546 and body of predefined primitives in case of CPP tagged type
2548 (Freeze_Type): Deal properly with no storage pool case
2549 (Make_Predefined_Primitive_Specs): Generate specification of abstract
2550 primitive Deep_Adjust if a nonlimited interface is derived from a
2552 (Build_Dcheck_Functions): Create discriminant-checking functions only
2553 for variants that have some component(s).
2554 (Build_Slice_Assignment): In expanded code for slice assignment, handle
2555 properly the case where the slice bounds extend to the last value of the
2556 underlying representation.
2557 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
2558 (Is_Variable_Size_Record): An array component has a static size if
2559 index bounds are enumeration literals.
2561 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
2562 an external tag has been specified for the type.
2563 (Building_Static_DT): Add missing support for private types.
2564 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
2565 to the entity associated with the parent of Typ. This is done to
2566 avoid wrong access when the parent is a private type.
2567 (Expand_Interface_Conversion): Improve error message when the
2568 configurable runtime has no support for dynamic interface conversion.
2569 (Expand_Interface_Thunk): Add missing support to interface types in
2570 configurable runtime.
2571 (Expand_Dispatching_Call): remove obsolete code.
2572 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
2573 ensure that all subtypes and aggregates associated with dispatch
2574 tables have the attribute Is_Dispatch_Table_Entity set to true.
2575 (Register_Primitive): Rename one variable to improve code reading.
2576 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
2577 of the pointer to the 'size primitive in the TSD.
2579 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
2580 (RE_Offset_To_Top_Ptr): New entity.
2581 (RE_Register_Interface_Offset): New entity.
2582 (RE_Set_Dynamic_Offset_To_Top): New entity.
2583 (RE_Set_Offset_To_Top): Removed entity.
2584 (RE_Prim_Ptr): New entity
2585 (RE_Size_Func): New entity
2586 (RE_Size_Ptr): New entity
2587 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
2588 (Ada_Dispatching_Child): Define this new subrange.
2589 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
2590 RE_Time_Span, and RE_Time_Span_Zero).
2591 (RE_Unit_Table): Add new required run-time calls
2593 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
2596 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
2597 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
2598 initializes the Offset_To_Top component of a dispatch table.
2599 (Build_Predef_Prims): Removed.
2600 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
2602 (Build_Set_Size_Function): New subprogram.
2604 * exp_ch13.adb: Do not generate storage variable for storage_size zero
2605 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
2607 2008-04-08 Robert Dewar <dewar@adacore.com>
2609 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
2610 computing Fore when Exp > 0
2612 2008-04-08 Robert Dewar <dewar@adacore.com>
2614 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
2616 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
2617 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
2619 * fmap.adb: Remove Big_String declarations (now in Types)
2620 (No_Mapping_File): New Boolean global variable
2621 (Initialize): When mapping file cannot be read, set No_Mapping_File to
2623 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
2624 tables were empty before adding entries, open the mapping file
2625 with Truncate = True, instead of delete/re-create.
2627 * fname-sf.adb: Remove Big_String declarations (now in Types)
2629 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
2630 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
2633 * table.ads: Add for Table_Ptr'Storage_Size use 0
2635 * types.ads: Add Big_String declarations
2636 Add Size_Clause of zero for big pointer types
2638 2008-04-08 Vincent Celier <celier@adacore.com>
2640 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
2641 (Usage): Add line for switch --subdirs=
2642 Add new switch -eL, to follow symbolic links when processing project
2645 * gnatcmd.adb: Process switches -eL and --subdirs=
2646 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
2647 Program_Name to get proper tool names when AAMP_On_Target is set.
2648 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
2649 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
2650 Osint.Program_Name).
2652 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
2653 (Usage): Add lines for switches -eL and --subdirs=
2655 * makeusg.adb: Add line for switch --subdirs=
2658 (Source_Data): New Boolean component Compiled, defaulted to True
2659 (Empty_File_Name: New global variable in private part, initialized in
2660 procedure Initialize.
2661 (Subdirs_Option): New constant string
2662 (Subdirs): New String_Ptr global variable
2663 (Language_Config): New component Include_Compatible_Languages
2664 (Project_Qualifier): New type for project qualifiers
2665 (Project_Data): New component Qualifier
2666 (Project_Configuration): New component Archive_Builder_Append_Option
2668 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
2669 another imported project indicate the name of this imported project.
2670 (Check_File): When a unit is in two project files, indicate the project
2671 names and the paths of the source files for each project.
2672 (Add_Source): Set Compiled to False if compiler driver is empty. Only
2673 set object, dependency and switches file names if Compiled is True.
2674 (Process_Compiler): Allow the empty string for value of attribute Driver
2675 (Get_Directories): When Subdirs is not null and Object_Dir is not
2676 specified, locate and create if necessary the actual object dir.
2677 (Locate_Directory): When Subdirs is not empty and Create is not the
2678 empty string, locate and create if necessary the actual directory
2679 as a subdirectory of directory Name.
2680 (Check_Library_Attributes.Check_Library): Allow a project where the only
2681 "sources" are header files of file based languages to be imported by
2682 library projects, in multi-language mode (gprbuild).
2683 (Check_Library_Attributes.Check_Library): In multi-language mode
2684 (gprbuild), allow a library project to import a project with no
2685 sources, even when this is not declared explicitly.
2686 (Check_If_Externally_Built): A virtual project extending an externally
2687 built project is also externally built.
2688 (Check_Library_Attributes): For a virtual project extending a library
2689 project, inherit the library directory.
2690 (Process_Project_Level_Array_Attributes): Process new attribute
2691 Inherit_Source_Path.
2692 For projects with specified qualifiers "standard", "library" or
2693 "abstract", check that the project conforms to the qualifier.
2694 (Process_Project_Level_Simple_Attributes): Process new attribute
2695 Archive_Builder_Append_Option.
2697 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
2698 (Normalize_Compiler_Switches): Only keep compiler switches that are
2699 passed to gnat1 by the gcc driver and that are stored in the ALI file
2701 Do not take into account switc -save-temps
2703 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
2704 gprmake is called with -eL.
2705 (Scan_Arg): Recognize switch -eL
2706 (Usage): Add line for switch -eL
2708 * prj.adb (Initialize): Initialize Empty_File_Name
2709 (Project_Empty): New component Qualifier
2711 * prj-attr.ads, prj-attr.adb: New project level attribute
2712 Inherit_Source_Path.
2713 New project level attribute Archive_Builder_Append_Option
2715 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
2717 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
2718 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
2719 upward compatibility.
2721 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
2722 each Trying ..." on different lines.
2723 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
2724 is "configuration" when not in configuration. Fail when in configuration
2725 when a specified qualifier is other than "configuration".
2727 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
2728 full associative array together.
2729 (Recursive_Process): Put the project qualifier in the project data
2731 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
2732 (Set_Project_Qualifier_Of): New procedure
2734 2008-04-08 Robert Dewar <dewar@adacore.com>
2736 * errout.ads: Update comments for new handling of info: messages
2738 * erroutc.adb (Matches): New procedure
2739 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
2740 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
2741 info messages as well as style messages.
2743 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
2745 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
2747 (Check_A_Call): Special "info: " warnings now have ? in the text
2748 (Elab_Warning): Use info message in static case
2750 2008-04-08 Ed Schonberg <schonberg@adacore.com>
2752 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
2753 whether an array aggregate with static bounds and scalar components
2754 should be expanded into a static constant.
2756 2008-04-08 Gary Dismukes <dismukes@adacore.com>
2757 Ed Schonberg <schonberg@adacore.com>
2758 Robert Dewar <dewar@adacore.com>
2760 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
2761 Has_Stream_Attribute_ Definition when checking for available stream
2762 attributes on parameters of a limited type in Ada 2005. Necessary for
2763 proper recognition of visible stream attribute clauses.
2764 (Has_Stream_Attribute_Definition): If the type is derived from a
2765 private type, then use the derived type's underlying type for checking
2766 whether it has stream attributes.
2767 (Validate_Object_Declaration): The check for a user-defined Initialize
2768 procedure applies also to types with controlled components or a
2769 controlled ancestor.
2770 Reject an object declaration in a preelaborated unit if the type is a
2771 controlled type with an overriding Initialize procedure.
2772 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
2773 checking when the parent of a dereference is a selected component and
2774 the name has not been analyzed.
2776 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
2777 prefixes that are invalid explicit dereferences of remote
2778 access-to-class-wide values, first checking whether the selected
2779 component is a prefixed form of call to a tagged operation.
2780 (Analyze_Call): Remove code that issues an error for limited function
2781 calls in illegal contexts, as we now support all of the contexts that
2782 were forbidden here.
2783 Allow a function call that returns a task.and appears as the
2784 prefix of a selected component.
2785 (Analyze_Reference): Give error message if we try to make a 'Reference
2786 for an object that is atomic/aliased without its type having the
2787 corresponding attribute.
2788 (Analyze_Call): Remove condition checking for attributes to allow
2789 calls to functions with inherently limited results as prefixes of
2790 attributes. Remove related comment about Class attributes.
2791 (Analyze_Selected_Component): If the prefix is a remote type, check
2792 whether this is a prefixed call before reporting an error.
2793 (Complete_Object_Operation): If the controlling formal is an access to
2794 variable reject an actual that is a constant or an access to one.
2795 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
2796 primitive operations from base type.
2798 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
2800 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
2801 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
2802 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
2803 (Expand_N_Slice): Test for prefix that is a build-in-place function call
2804 and call Make_Build_In_Place_Call_In_Anonymous_Context.
2805 (Analyze_Call): Remove code that issues an error for limited function
2806 calls in illegal contexts, as we now support all of the contexts that
2807 were forbidden here.
2808 New calling sequence for Get_Simple_Init_Val
2809 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
2810 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
2812 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2813 Ed Schonberg <schonberg@adacore.com>
2814 Robert Dewar <dewar@adacore.com>
2816 * exp_ch2.adb: Minor reformatting.
2817 (Expand_Entry_Index_Parameter): Set the type of the identifier.
2818 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
2819 (Expand_Protected_Component): New routine.
2820 (Expand_Protected_Private): Removed.
2821 Add Sure parameter to Note_Possible_Modification calls
2823 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
2824 generated subprogram declaration must inherit the overriding indicator
2825 from the instantiation node.
2826 (Validate_Access_Type_Instance): If the designated type of the actual is
2827 a limited view, use the available view in all cases, not only if the
2828 type is an incomplete type.
2829 (Instantiate_Object): Actual is illegal if the formal is null-excluding
2830 and the actual subtype does not exclude null.
2831 (Process_Default): Handle properly abstract formal subprograms.
2832 (Check_Formal_Package_Instance): Handle properly defaulted formal
2833 subprograms in a partially parameterized formal package.
2834 Add Sure parameter to Note_Possible_Modification calls
2835 (Validate_Derived_Type_Instance): if the formal is non-limited, the
2836 actual cannot be limited.
2837 (Collect_Previous_Instances): Generate instance bodies for subprograms
2840 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
2842 Add Sure parameter to Note_Possible_Modification calls
2843 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
2844 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
2845 constant overlaid by variable and issue warning.
2846 Use new Is_Standard_Character_Type predicate
2847 (Analyze_Record_Representation_Clause): Check that the specified
2848 Last_Bit is not less than First_Bit - 1.
2849 (Analyze_Attribute_Definition_Clause, case Address): Check for
2850 self-referential address clause
2852 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
2853 detection mechanism when the lhs is a prival.
2854 (Analyze_Assignment): Call Check_Unprotected_Access to detect
2855 assignment of a pointer to protected data, to an object declared
2856 outside of the protected object.
2857 (Analyze_Loop_Statement): Check for unreachable code after loop
2858 Add Sure parameter to Note_Possible_Modication calls
2859 Protect analysis from previous syntax error such as a scope mismatch
2861 (Analyze_Assignment_Statement): The assignment is illegal if the
2862 left-hand is an interface.
2864 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
2865 violation of restriction No_Implicit_Conditionals
2866 Add Sure parameter to Note_Possible_Modication calls
2867 Use new Is_Standard_Character_Type predicate
2868 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
2869 call as operator. Fixes problems (e.g. validity checking) which
2870 come from the result looking as though it does not come from source).
2871 (Resolve_Call): Check case of name in named parameter if style checks
2873 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
2874 from the checking that such calls should not occur from an entry body.
2875 (Resolve_Call): If the return type of an Inline_Always function
2876 requires the secondary stack, create a transient scope for the call
2877 if the body of the function is not available for inlining.
2878 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
2879 that are actuals for in-out formals.
2880 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
2881 primitive operations from base type.
2882 (Analyze_Selected_Component): If the context is a call to a protected
2883 operation the parent may be an indexed component prior to expansion.
2884 (Resolve_Actuals): If an actual is of a protected subtype, use its
2885 base type to determine whether a conversion to the corresponding record
2887 (Resolve_Short_Circuit): Handle pragma Check
2889 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
2890 Use new Is_Standard_Character_Type predicate
2891 (Eval_Relational_Op): Catch more cases of string comparison
2893 2008-04-08 Robert Dewar <dewar@adacore.com>
2894 Gary Dismukes <dismukes@adacore.com>
2896 * s-rident.ads: Add No_Default_Initialization restriction
2899 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
2900 (Set_TSS): Handle No_Default_Initialization case
2902 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
2903 No_Default_Initialization
2904 (Expand_N_Subprogram_Body): Remove redundant initialization of out
2905 parameters when Normalize_Scalars is active.
2906 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
2907 Fix casing error in formal parameter name in call
2908 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
2909 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
2910 dispatching call on VM targets.
2912 2008-04-08 Gary Dismukes <dismukes@adacore.com>
2913 Thomas Quinot <quinot@adacore.com>
2915 * exp_ch7.adb (Find_Final_List): Change the test for generating a
2916 selected component from an access type's Associated_Final_Chain to
2917 check for the presence of that field, rather than assuming it exists
2918 for all named access types.
2919 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
2920 procedure to call at the end of the generated cleanup procedure.
2921 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
2922 and an At_End_Proc already exists in the handled sequence of statements
2923 for which cleanup actions are being expanded, the original cleanup
2924 action must be preserved.
2926 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2927 Ed Schonberg <schonberg@adacore.com>
2928 Robert Dewar <dewar@adacore.com>
2929 Gary Dismukes <dismukes@adacore.com>
2931 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
2932 Build_Unprotected_Subprogram_Body): Generate debug info for
2933 declarations related to the handling of private data in task and
2935 (Debug_Private_Data_Declarations): New subprogram.
2936 (Install_Private_Data_Declarations): Remove all debug info flagging.
2937 This is now done by Debug_Private_Data_Declarations at the correct
2939 (Build_Simple_Entry_Call): If the task name is a function call, expand
2940 the prefix into an object declaration, and make the surrounding block a
2942 (Build_Master_Entity): An internal block is a master if it wraps a call.
2943 Code reformatting, update comments. Code clean up.
2944 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
2945 (Replicate_Entry_Formals): If the formal is an access parameter or
2946 anonymous access to subprogram, copy the original tree to create new
2947 entities for the formals of the subprogram.
2948 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
2949 for tasks to store the value passed using pragma Relative_Deadline.
2950 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
2951 run-time call to create a task.
2952 (Build_Wrapper_Spec): If the controlling argument of the interface
2953 operation is an access parameter with a non-null indicator, use the
2954 non-null indicator on the wrapper.
2956 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
2957 present, which it may not be in the case where the type entity is an
2958 incomplete view brought in by a limited with.
2959 (Analyze_Task_Type): Only retrieve the full view when present, which it
2960 may not be in the case where the type entity is an incomplete view brought
2961 in by a limited with.
2962 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
2963 private components of a protected type, to prevent the generation of freeze
2964 nodes for which there is no proper scope of elaboration.
2966 * exp_util.ads, exp_util.adb
2967 (Remove_Side_Effects): If the expression is a function call that returns a
2968 task, expand into a declaration to invoke the build_in_place machinery.
2969 (Find_Protection_Object): New routine.
2970 (Remove_Side_Effects): Also make a copy of the value
2971 for attributes whose result is of an elementary type.
2972 (Silly_Boolean_Array_Not_Test): New procedure
2973 (Silly_Boolean_Array_Xor_Test): New procedure
2974 (Is_Volatile_Reference): New function
2975 (Remove_Side_Effects): Use Is_Volatile_Reference
2976 (Possible_Bit_Aligned_Component): Handle slice case properly
2978 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
2979 case test to Exp_Util
2980 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
2982 2008-04-08 Thomas Quinot <quinot@adacore.com>
2984 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
2986 (Add_RACW_Features): When processing an RACW in another unit than the
2987 main unit, set Body_Decls to No_List to indicate that the bodies of
2988 the type's TSS must not be generated.
2989 (GARLIC_Support.Add_RACW_Read_Attribute,
2990 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
2991 Body_Decls is No_List.
2992 (PolyORB_Support.Add_RACW_Read_Attribute,
2993 PolyORB_Support.Add_RACW_Write_Attribute,
2994 PolyORB_Support.Add_RACW_From_Any,
2995 PolyORB_Support.Add_RACW_To_Any,
2996 PolyORB_Support.Add_RACW_TypeCode): Same.
2997 (Transmit_As_Unconstrained): New function.
2998 (Build_Ordered_Parameters_List): Use the above to order parameters.
2999 (GARLIC_Support.Build_General_Calling_Stubs):
3000 Use the above to determine which parameters to unmarshall using 'Input
3001 at the point where their temporary is declared (as opposed to later on
3003 (PolyORB_Support.Build_General_Calling_Stubs):
3004 Use the above to determine which parameters to unmarshall using From_Any
3005 at the point where their temporary is declared (as opposed to later on
3006 with an assignment).
3008 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3010 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
3011 an Input function for an access type, do not perform default
3012 initialization on the local variable that receives the value, to
3013 prevent spurious warnings when the type is null-excluding.
3015 2008-04-08 Robert Dewar <dewar@adacore.com>
3016 Ed Schonberg <schonberg@adacore.com>
3018 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
3020 (Size_Known): Generic formal scalar types have known at compile
3021 time size, so remove check.
3022 Fix casing error in formal parameter name in call
3023 (Freeze_Subprogram): If the subprogram is a user-defined operator,
3024 recheck its overriding indication.
3026 2008-04-08 Vincent Celier <celier@adacore.com>
3028 * gnat1drv.adb: Send all messages indicating an error to standard error
3030 2008-04-08 Robert Dewar <dewar@adacore.com>
3032 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
3033 (List_Applicable_Restrictions): Do not list existing restrictions
3035 2008-04-08 Thomas Quinot <quinot@adacore.com>
3037 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
3038 add a pointer to generic sockets literature
3039 do not mention that the given example is "typical" usage.
3040 Remove obsolete comment about multicast not being supported on Windows.
3041 (Connect_Socket): Make Server mode IN rather than IN OUT
3042 since this formal is never modified.
3044 2008-04-08 Robert Dewar <dewar@adacore.com>
3046 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
3047 the declaration for some different entity.
3048 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
3049 list is precent (following the parent subtype indication), display
3050 appropriate "and" keyword.
3052 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
3053 Remove unnecessary calls to Init_Size_Align and Init_Esize.
3054 Add notes on use of Parent field of an Itype
3056 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3057 Robert Dewar <dewar@adacore.com>
3058 Gary Dismukes <dismukes@adacore.com>
3060 * lib-xref.adb (Is_On_LHS): Remove dead code
3061 (Output_Overriden_Op): If the overridden operation is itself inherited,
3062 list the ancestor operation, which is the one whose body or absstract
3063 specification is actually being overridden. For source navigation
3066 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
3067 operation is primitive for the type.
3068 (Declare_Inherited_Private_Subprograms): If the new operation overrides
3069 an inherited private subprogram, set properly the Overridden_Operation
3070 attribute, for better cross-reference information.
3071 (Analyze_Package_Specification): Do late analysis of spec PPCs
3072 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
3073 properly the full view and underlying full views of a private type in a
3074 child unit, whose full view is derived from a private type in a parent
3075 unit, and whose own full view becomes visible in the child body.
3077 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
3078 primitive operation after the type has been frozen, add an explicit
3079 reference to the type and the operation, because other primitive
3080 references have been emitted already.
3081 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3082 dispatching call on VM targets.
3084 2008-04-08 Vincent Celier <celier@adacore.com>
3085 Thomas Quinot <quinot@adacore.com>
3087 * make.adb: (Gnatmake_Called): Remove, no longer necessary
3088 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
3089 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
3090 (Insert_Project_Sources): Take into account index in multi-unit source
3092 After building a library project, delete all temporary files.
3093 (Initialize): Reset current output after parsing project file.
3094 (Collect_Arguments_And_Compile): Never insert in the queue the sources
3095 of library projects that are externally built.
3096 Put file name in error and inform messages if -df is used
3097 (Display): If invoked with -d7, do not display path names, but only
3100 * makeutl.ads (Path_Or_File_Name): New function
3101 (Path_Or_File_Name): New function
3103 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3105 * Make-lang.in: Disable warnings during first stage of bootstrap
3107 Update dependencies.
3109 2008-04-08 Vincent Celier <celier@adacore.com>
3111 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
3112 case to decide if ALI object file is included in library.
3113 (Build_Library): Never attempt to build a library if the project is
3116 2008-04-08 Thomas Quinot <quinot@adacore.com>
3118 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
3119 (No_List) is defined to return Empty.
3121 2008-04-08 Jose Ruiz <ruiz@adacore.com>
3123 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
3126 (Read_Default_Search_Dirs): Do not consider spaces as path separators
3127 because spaces may be part of legal paths.
3129 2008-04-08 Robert Dewar <dewar@adacore.com>
3131 * par-ch11.adb (P_Exception_Handler): Check indentation level for
3134 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3136 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
3137 in a type declaration, if this is not an interface declaration or
3138 private type extension.
3140 2008-04-08 Vincent Celier <celier@adacore.com>
3142 * prj-util.adb (Executable_Of): New String parameter Language. When
3143 Ada_Main is False and Language is not empty, attempt to remove the body
3144 suffix or the spec suffix of the language to get the base of the
3145 executable file name.
3146 (Put): New Boolean parameter Lower_Case, defauilted to False. When
3147 Lower_Case is True, put the value in lower case in the name list.
3148 (Executable_Of): If there is no executable suffix in the configuration,
3149 then do not modify Executable_Extension_On_Target.
3151 * prj-util.ads (Executable_Of): New String parameter Language,
3152 defaulted to the empty string.
3153 (Put): New Boolean parameter Lower_Case, defauilted to False
3155 2008-04-08 Robert Dewar <dewar@adacore.com>
3157 * scng.adb (Scan_Identifier): Handle case of identifier starting with
3158 wide character using UTF-8 encoding.
3160 2008-04-08 Javier Miranda <miranda@adacore.com>
3162 * sem.adb (Analyze): Consider case in which we analyze an empty node
3163 that was generated by a call to a runtime function that is not
3164 available under the configurable runtime.
3166 * sem.ads (Inside_Freezing_Actions): New flag.
3167 (Save_Check_Policy_List): New field in scope stack entry
3169 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3170 Robert Dewar <dewar@adacore.com>
3172 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
3173 the ancestor part of an extension aggregate for a limited type.
3174 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
3175 enumeration index bounds.
3176 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
3177 when array is too short.
3178 (Check_Expr_OK_In_Limited_Aggregate): Move function
3179 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
3181 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
3182 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
3183 component associations.
3184 (Check_Non_Limited_Type): Moved to outer level and renamed.
3185 (Resolve_Record_Aggregate): In an extension aggregate, an association
3186 with a box initialization can only designate a component of the
3187 extension, not a component inherited from the given ancestor
3189 * sem_case.adb: Use new Is_Standard_Character_Type predicate
3191 2008-04-08 Robert Dewar <dewar@adacore.com>
3193 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
3195 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
3196 Properly handle case where Aft > Scale and input number is less than
3199 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3201 * s-stoele.ads, s-soflin.ads: Move the location of
3202 Dummy_Communication_Block from System.Storage_Elements to
3205 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
3206 emulate Communication_Block in certain scenarios.
3208 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3210 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
3212 Add new subtype S_WWC, unchecked conversion routines From_WWC and
3214 (I_WWC, O_WWC): New routines for input and output of
3215 Wide_Wide_Character.
3217 2008-04-08 Robert Dewar <dewar@adacore.com>
3219 * stringt.adb (Write_String_Table_Entry): Handle wide characters
3222 2008-04-08 Robert Dewar <dewar@adacore.com>
3224 * styleg.adb (Check_Comment): Allow special char after -- in
3225 non-end-of-line case
3227 2008-04-08 Robert Dewar <dewar@adacore.com>
3229 * stylesw.adb: Implement -gnaty + - y options
3230 (Set_GNAT_Style_Check_Options): Includ I in style check string
3232 * stylesw.ads: Add comments for new style switch options
3234 2008-04-08 Sergey Rybin <rybin@adacore.com>
3236 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
3237 to the set of the GNAT components needed by ASIS.
3239 2008-04-08 Bob Duff <duff@adacore.com>
3241 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
3243 2008-04-08 Tristan Gingold <gingold@adacore.com>
3245 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
3246 Improve error message generation.
3248 2008-04-08 Vincent Celier <celier@adacore.com>
3250 * a-direct.adb (Start_Search): Check for Name_Error before checking for
3251 Use_Error, as specified in the RM. Check if directory is open and raise
3252 Use_Error if it is not.
3254 2008-04-08 Vincent Celier <celier@adacore.com>
3255 Robert Dewar <dewar@adacore.com>
3257 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
3258 AAMP_On_Target is set.
3260 * vms_data.ads: Add NOxxx to style check switch list
3261 Add entry COMPONENTS for -gnatVe
3262 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
3264 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
3265 Add qualifiers for gnatmetric coupling options
3266 Add note that -gnata enables all checks
3267 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
3268 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
3269 New warning flag -gnatw.e
3271 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
3272 Add entry for -gnatyN (forgotten before)
3273 Line for new warning switch -gnatw.p
3274 New warning flag -gnatw.e
3276 * gnat_ugn.texi: Add documentation fpr project file switch -aP
3277 Document -gnaty - + y
3278 Replace occurences of "package specification" with "package spec"
3279 Define preprocessing symbols in documentation of gnatprep
3280 Clarify reason for distinguishing overflow checking
3281 Add documentation for project-aware tool switches -eL and --subdirs=
3282 Complete list of configuration pragmas
3283 Specify that, even when gnatmake switch -x is used, mains on the command
3284 line need to be sources of project files.
3285 Editing of gnatcheck/gnatmetric doc.
3286 Add documentation for -gnatw.p/-gnatw.P
3287 Add missing documentation for -fno-inline-functions.
3288 Add documentation for -gnatw.e
3290 * gnat_rm.texi: Add documentation for No_Default_Initialization
3291 Replace occurences of "package specification" with "package spec"
3292 Document use of * in Warnings Off string
3293 Update documentation of alignment/component clauses.
3294 Add documentation for Invalid_Value
3295 Document new consistency rule for Optimize_Alignment
3296 Add documentation for Precondition and Postcondition pragmas
3297 Add documentation for Check and Check_Policy pragmas
3298 Document new Enum_Val attribute
3299 Remove requirement for static string in pragma Assert
3300 Add documentation on GNAT.Time_Stamp
3302 * ug_words: add entry for -gnatVe
3303 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
3304 Add entry for -gnatw.e
3306 * debug.adb: Add missing documentation for d.a flag
3307 Document new -gnatd.a switch.
3308 Add documentation for new gnatmake debug switch -df
3310 2008-04-08 Thomas Quinot <quinot@adacore.com>
3312 * gen-soccon.c: Bump year in copyright notices.
3314 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
3316 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3318 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
3321 2008-04-08 Robert Dewar <dewar@adacore.com>
3322 Bob Duff <duff@adacore.com>
3324 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
3325 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
3327 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
3329 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
3331 * g-trasym.ads: Minor comment improvements
3333 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
3335 * a-sequio.ads, a-direio.ads: improve message for tagged type
3337 * a-strunb.ads: Minor reformatting
3339 * a-tifiio.adb: Minor reformatting
3341 * atree.adb (Fix_Parents): Use clearer names for formals
3342 Cleanup and simplify code
3343 Use named notation in calls
3345 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
3348 * uintp.adb: Used named notation for some confusing calls
3350 * bindusg.adb: Minor change in one line of output
3352 * cstand.adb: Minor reformatting of src representation of Standard
3354 * a-assert.ads: Add comment.
3356 * g-decstr.adb: Fix bad indentation
3358 * expander.ads, expander.adb: Code clean up.
3360 * sem_dist.ads: Minor comment improvement
3362 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
3363 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
3365 * i-cstrin.adb: Fix casing error in formal parameter name in call
3367 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3369 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
3370 mentioned in limited_with_clauses to do create semantic dependencies
3371 even though they appear in the ali file.
3373 2008-04-08 Emmanuel Briot <briot@adacore.com>
3375 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
3377 (Get_Configuration): New subprogram.
3379 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
3380 These optional parameters help preserve the casing of the project's name
3381 when pretty-printing.
3383 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
3384 Arnaud Charlet <charlet@adacore.com>
3386 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
3387 then use __gnat_set_exit_status to report the returned status code.
3389 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
3390 messages on .NET, since some constructs of the language are not
3393 * gnatlink.adb (Gnatlink): In case the command line is too long for the
3394 .NET linker, gnatlink now concatenate all .il files and pass this to
3397 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3398 Xavier Grave <grave@ipno.in2p3.fr>
3400 * Makefile.in: Add make ifeq define for mips/mipsel support.
3401 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
3402 system-linux-mips.ads: New files.
3404 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3406 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
3407 detect systems using GNU libc.
3413 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3415 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
3416 constant constant for sysconf call.
3417 (bit_field): New packed boolean type used by cpu_set_t.
3418 (cpu_set_t): New type corresponding to the C type with
3419 the same name. Note that on the Ada side we use a bit
3420 field array for the affinity mask. There is not need
3421 for the C macro for setting individual bit.
3422 (pthread_setaffinity_np): New imported routine.
3423 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
3426 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3428 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
3430 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3432 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
3433 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
3434 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
3435 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
3436 Return by Depressed Stack Pointer.
3438 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
3440 * decl.c (is_variable_size): Do not unconditionally return false
3441 on non-strict alignment platforms.
3443 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
3445 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
3446 used to process all the variants of the specified type.
3447 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
3448 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
3449 (rest_of_type_decl_compilation): Likewise.
3450 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
3452 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
3454 * gigi.h (insert_block): Kill.
3455 * utils.c (insert_block): Kill.
3457 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
3459 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
3460 type has self-referential size, get the size from the initializing
3461 expression directly if it is also a constant whose nominal type
3462 has self-referential size.
3464 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3467 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
3470 * env.c: Always include crt_externs.h if __APPLE__ is defined.
3471 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
3473 2008-04-01 Andreas Jaeger <aj@suse.de>
3475 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
3478 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3480 * g-table.adb, g-tasloc.adb, g-traceb.ads,
3481 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
3482 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
3483 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
3484 gnatlink.adb, gnatmem.adb, gprep.adb,
3485 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
3486 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
3487 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
3488 lib-xref.ads, lib.adb, link.c, live.ads,
3489 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
3490 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
3491 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
3492 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
3493 namet.adb, namet.h, nlists.adb, nlists.ads,
3494 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
3495 osint-c.ads, osint.adb, osint.ads, output.ads,
3496 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
3497 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
3498 par-endh.adb, par-labl.adb, par-prag.adb,
3499 par-sync.adb, par-tchk.adb, par-util.adb,
3500 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
3501 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3502 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
3503 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
3505 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
3507 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
3508 size if it has overflowed.
3510 2008-03-31 Olivier Hainque <hainque@adacore.com>
3511 Eric Botcazou <ebotcazou@adacore.com>
3513 * utils2.c (find_common_type): Document assumption on t1/t2 vs
3514 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
3516 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3518 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
3519 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
3520 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
3521 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
3522 exp_tss.ads, exp_util.adb, exp_util.ads,
3523 exp_vfpt.adb, freeze.adb, freeze.ads,
3524 frontend.adb, g-alleve.adb, g-altcon.adb,
3525 g-altive.ads, g-alveop.ads, g-alvevi.ads,
3526 g-arrspl.adb, g-busorg.ads, g-calend.adb,
3527 g-calend.ads, g-casuti.ads, g-cgideb.adb,
3528 g-comlin.adb, g-comlin.ads, g-curexc.ads,
3529 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
3530 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
3531 g-dyntab.adb, g-encstr.ads, g-excact.ads,
3532 g-except.ads, g-expect.ads, g-heasor.adb,
3533 g-hesora.adb, g-hesorg.adb, g-htable.ads,
3534 g-locfil.ads, g-md5.adb, g-md5.ads,
3535 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
3536 g-pehage.adb, g-pehage.ads, g-regexp.adb,
3537 g-regexp.ads, g-regpat.adb, g-regpat.ads,
3538 g-soccon-aix.ads, g-soccon-darwin.ads,
3539 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
3540 g-soccon-hpux.ads, g-soccon-irix.ads,
3541 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
3542 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
3543 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
3544 g-soccon-solaris.ads, g-soccon-tru64.ads,
3545 g-soccon-vms.ads, g-soccon-vxworks.ads,
3546 g-soccon.ads, g-socket.adb, g-socket.ads,
3547 g-socthi-mingw.adb, g-socthi-vms.adb,
3548 g-socthi-vxworks.adb, g-soliop-mingw.ads,
3549 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
3550 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
3553 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
3555 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
3556 if the procedure is imported.
3558 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3560 * adaint.c: Fix warnings.
3562 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3564 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
3566 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3568 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
3569 Fix problem of status check for null file
3571 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3573 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
3574 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
3575 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
3576 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
3577 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
3580 2008-03-26 Thomas Quinot <quinot@adacore.com>
3583 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
3584 Get_Socket_Option): Add support for Receive_Packet_Info.
3586 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3587 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3588 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
3589 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
3590 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
3591 new constants SO_REUSEPORT and IP_PKTINFO
3593 2008-03-26 Robert Dewar <dewar@adacore.com>
3595 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
3596 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3597 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
3598 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
3599 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
3600 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
3601 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
3602 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3603 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
3604 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
3605 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3606 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
3607 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
3608 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
3609 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
3610 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
3611 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
3612 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
3613 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3614 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
3615 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
3616 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
3617 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
3618 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
3619 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
3620 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
3621 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
3622 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
3623 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
3624 s-tasloc.adb: Minor reformatting.
3626 Remove "used for" sections from comments.
3628 2008-03-26 Robert Dewar <dewar@adacore.com>
3630 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
3631 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
3632 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
3633 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
3634 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
3635 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
3636 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
3637 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
3638 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
3639 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
3640 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
3641 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
3642 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
3643 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
3644 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
3645 double spaced if it fits on one line and otherwise single spaced.
3647 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3649 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
3650 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3651 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
3652 or task info if the thread could not be created.
3654 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3656 * gnatvsn.ads (Library_Version): Bump to 4.4.
3657 (Current_Year): Bump to 2008.
3659 2008-03-26 Robert Dewar <dewar@adacore.com>
3661 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
3663 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
3665 * debug.adb: Add debug flags d.r and d.v
3666 Add debug flag .T (Optimize_Alignment (Time))
3667 Add debug flag .S (Optimize_Alignment (Space))
3669 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
3670 depending on setting of relevant debug flags.
3671 Replace use of Warnings_Off by Has_Warnings_Off
3672 (Freeze_Entity): In circuit for warning on suspicious convention
3673 actuals, do not give warning if subprogram has same entity as formal
3674 type, or if subprogram does not come from source.
3675 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
3676 if Optimize_Alignment set to Space.
3678 * frontend.adb: Add call to Sem_Warn.Initialize
3679 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
3680 Reset Optimize_Alignment mode from debug switches .S and .T
3682 * layout.adb (Layout_Composite_Object): Rewritten for
3683 Optimize_Aligment pragma.
3685 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
3688 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
3690 * par-prag.adb (N_Pragma): Chars field removed, use Chars
3691 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
3692 this change. Add entry for pragma Optimize_Alignment
3694 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
3695 (Pragma_Identifier (..
3696 instead, adjustments throughout to accomodate this change.
3697 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
3698 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
3699 Add implementation of pragma Optimize_Alignment
3701 2008-03-26 Vincent Celier <celier@adacore.com>
3703 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
3704 Improve memory usage to avoid use of stack.
3706 2008-03-26 Robert Dewar <dewar@adacore.com>
3708 * a-teioed.ads: Correct value of Default_Fill
3710 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
3712 2008-03-26 Robert Dewar <dewar@adacore.com>
3714 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
3715 with Current_Output (introduce Self).
3717 2008-03-26 Robert Dewar <dewar@adacore.com>
3719 * checks.adb (Ensure_Valid): Capture valid status if possible
3722 2008-03-26 Robert Dewar <dewar@adacore.com>
3724 * stand.ads: Deal with reordering of package standard declarations
3726 * cstand.adb: Put package Standard declarations in proper order
3728 2008-03-26 Robert Dewar <dewar@adacore.com>
3730 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
3731 (Pragma_Identifier (.. instead.
3732 (OK_To_Reorder_Components): New flag
3733 (Has_Entries): Code cleanup.
3734 (Warnings_Off_Used): New flag
3735 (Warnings_Off_Used_Unmodified): New flag
3736 (Warnings_Off_Used_Unreferenced): New flag
3737 (Has_Warnings_Off): New function
3738 (Has_Unmodified): New function
3739 (Has_Unreferenced): New function
3740 (Is_Trivial_Subprogram): New flag
3741 (Is_Static_Dispatch_Table_Entity): New attribute.
3742 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
3743 (more consistent with other similar names)
3744 (Access_Subprogram_Type): New classification function
3746 2008-03-26 Robert Dewar <dewar@adacore.com>
3748 * errout.ads: Document new !! insertion sequence
3750 * errout.adb (N_Pragma): Chars field removed, use Chars
3751 (Pragma_Identifier (.. instead.
3752 Replace use of Warnings_Off by Has_Warnings_Off
3753 (Error_Msg_Internal): Don't delete warning ending in !!
3755 2008-03-26 Robert Dewar <dewar@adacore.com>
3757 * par.adb (Check_No_Right_Paren): Removed no longer used
3759 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
3760 (Pragma_Identifier (.. instead.
3762 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
3764 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
3765 par-ch4.adb: Minor improvements in error recovery and messages.
3767 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
3770 * par-ch9.adb: Minor improvements in error recovery and messages
3771 (P_Protected): Better error recovery for "protected type x;"
3773 * par-util.adb: Minor improvements in error recovery and messages
3774 (Check_No_Right_Paren): Removed no longer used
3776 2008-03-26 Ed Schonberg <schonberg@adacore.com>
3778 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
3779 that the prefix of an attribute is the type of the aggregate being
3782 2008-03-26 Javier Miranda <miranda@adacore.com>
3783 Robert Dewar <dewar@adacore.com>
3785 * exp_attr.adb (N_Pragma): Chars field removed.
3786 (Expand_N_Attribute_Reference): If the designated type associated with
3787 attribute 'Unrestricted_Access is a subprogram entity then replace it
3788 by an E_Subprogram_Type itype.
3789 Implement attribute Old
3791 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
3793 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
3795 New_Internal_Entity by call to Create_Itype to centralize calls
3796 building itypes, ad propagate the convention of the designated
3797 subprogram. In addition, disable the machinery cleaning constant
3798 indications from all entities in current scope when 'Unrestricted_Access
3799 corresponds with a node initializing a dispatch table slot.
3800 (Analyze_Attribute): Parameterless attributes returning a string or a
3801 type will not be called with improper arguments, so we can remove junk
3802 code that was dealing with this case.
3803 Implement attribute Old
3805 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
3806 Add entry for pragma Optimize_Alignment
3807 New standard names Sync and Synchronize
3809 2008-03-26 Robert Dewar <dewar@adacore.com>
3810 Arnaud Charlet <charlet@adacore.com>
3812 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
3814 (No_Exception_Propagation_Active): New function.
3815 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
3816 Update comments, and review all uses of No_Exception_Propagation, which
3817 are now correct and in sync with what gigi expects.
3819 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
3821 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
3822 Update comments, and review all uses of No_Exception_Propagation, which
3823 are now correct and in sync with what gigi expects.
3825 2008-03-26 Ed Schonberg <schonberg@adacore.com>
3827 * sem_ch3.adb (Access_Definition): If the access type is the return
3828 result of a protected function, create an itype reference for it
3829 because usage will be in an inner scope from the point of declaration.
3830 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
3831 OK_To_Reorder_Components.
3832 (Make_Index): If an overloaded range includes a universal integer
3833 interpretation, resolve to Standard.Integer.
3834 (Analyze_Subtype_Indication): Copy Convention to subtype
3835 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
3836 limited an synchronized progenitors in type declaration and private
3837 extension declarations.
3839 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
3840 protected subprogram body, determine proper scope from subprogram
3843 2008-03-26 Robert Dewar <dewar@adacore.com>
3845 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
3848 2008-03-26 Gary Dismukes <dismukes@adacore.com>
3850 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
3851 of a heap allocator for a limited unconstrained function return when
3852 resstriction No_Allocators is active.
3853 (Analyze_Allocator): The restriction No_Allocators is now only checked
3854 on allocators that have Comes_From_Source set, as per RM-H.4(7).
3856 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
3857 of a heap allocator for a limited unconstrained function return when
3858 resstriction No_Allocators is active.
3859 (Analyze_Allocator): The restriction No_Allocators is now only checked
3860 on allocators that have Comes_From_Source set, as per RM-H.4(7).
3861 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
3862 operands are fixed-point types, the universal_fixed predefined operation
3863 is used, regardless of whether the operand type (s) have a primitive
3864 operation of the same name.
3866 2008-03-26 Javier Miranda <miranda@adacore.com>
3868 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
3869 Is_Static_Dispatch_Table
3870 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
3871 to Exchange_Declarations to exchange the private and full-view. Bug
3872 found working in this issue.
3873 (Expand_Dispatching_Call): Propagate the convention of the subprogram
3874 to the subprogram pointer type.
3875 (Make_Secondary_DT): Replace generation of Prim'Address by
3876 Address (Prim'Unrestricted_Access)
3877 (Make_DT): Replace generation of Prim'Address by
3878 Address (Prim'Unrestricted_Access)
3879 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
3880 simple call form for single entry.
3881 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
3882 tables of predefined primitives).
3883 (Make_Secondary_DT): Add support to handle access to dispatch tables of
3884 predefined primitives.
3885 (Make_Tags): Add entities to Access_Dispatch_Table associated with
3886 access to dispatch tables containing predefined primitives.
3888 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
3889 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
3891 (Register_Predefined_DT_Entry): Updated to handle the new contents
3892 of attribute Access_Disp_Table (pointers to dispatch tables containing
3893 predefined primitives).
3895 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
3897 (Find_Interface_ADT): Updated to skip the new contents of attribute
3898 Access_Dispatch_Table (pointers to dispatch tables containing predefined
3901 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
3903 (Set_Convention): Use new function Is_Access_Subprogram_Type
3904 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
3905 Access_Dispatch_Table (pointers to dispatch tables containing predefined
3908 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
3909 expanded code avoiding calls to Build_Predef_Prims.
3910 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
3911 call to Build_Get_Predefined_Prim_Op_Address.
3913 2008-03-26 Javier Miranda <miranda@adacore.com>
3915 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
3916 subprogram Corresponding_Runtime_Package to know the runtime package
3917 that will provide support to a given protected type.
3919 * exp_ch9.adb (Add_Private_Declarations,
3920 Build_Protected_Subprogram_Call,
3921 Build_Protected_Entry, Build_Simple_Entry_Call,
3922 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
3923 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
3924 cleanup using the new centralized subprogram Corresponding_Runtime
3925 Package to know the runtime package that provides support to
3926 a given protected type.
3928 2008-03-26 Ed Schonberg <schonberg@adacore.com>
3930 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
3931 assignment is within the initialization procedure for a packed array,
3932 and Initialize_Scalars is enabled, compile right-hand side with checks
3933 off, because the value is purposely out of range.
3935 2008-03-26 Vincent Celier <celier@adacore.com>
3937 * gnatcmd.adb: Add processing for GNAT SYNC
3939 * vms_conv.ads: (Command_Type): Add command Sync
3941 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
3943 * vms_data.ads: Add entries for -gnatw.w
3944 Add qualifier for gnatstub --header-file option
3945 Add switches for GNAT SYNC
3947 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
3948 (Add_Package_Name): New procedure
3949 (Package_Name_List): New function
3950 (Initialize): Add known package names to the list
3951 (Register_New_Package): Add the new package name to the list
3953 2008-03-26 Robert Dewar <dewar@adacore.com>
3955 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
3956 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
3957 Raise_Exception by "raise with" construct.
3959 2008-03-26 Pascal Obry <obry@adacore.com>
3961 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
3962 supported platforms.
3964 * Makefile.rtl: Add g-sercom.o.
3966 * impunit.adb: Add g-sercom.adb.
3968 * s-crtl.ads (open): New routine.
3972 * s-osinte-mingw.ads (BYTE): New type.
3974 (OVERLAPPED): Likewise.
3975 (GENERIC_READ): New constant.
3976 (GENERIC_WRITE): Likewise.
3977 (OPEN_EXISTING): Likewise.
3978 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
3980 (CreateFile): New routine.
3981 (WriteFile): Likewise.
3982 (ReadFile): Likewise.
3983 (CloseHandle): Move next to the other file oriented routines.
3985 * g-sercom.ads: New unit.
3987 * g-sercom.adb: Default implementation, calls to this unit will raise
3988 a program error exception.
3990 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
3991 GNU/Linux implementations.
3993 2008-03-26 Robert Dewar <dewar@adacore.com>
3995 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
3997 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
3998 unchecked conversion for different conventions only for subprogram
4001 2008-03-26 Vincent Celier <celier@adacore.com>
4003 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
4004 to check if the specified object file is correct.
4006 2008-03-26 Thomas Quinot <quinot@adacore.com>
4008 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
4009 Comes_From_Source to exclude primitives from being checked. We want to
4010 exclude predefined primitives only, so use the appropriate specific
4011 predicate. Also, flag a formal parameter of an anonymous
4012 access-to-subprogram type as illegal for a primitive operation of a
4013 remote access to class-wide type.
4015 2008-03-26 Vincent Celier <celier@adacore.com>
4017 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
4018 known, check if it may be a missspelling of a known package name. In
4019 not verbose, not mode, issue warnings only if the package name is a
4020 possible misspelling.
4021 In verbose mode, always issue a warning for a not known package name,
4022 plus a warning if the name is a misspelling of a known package name.
4024 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
4025 limited withs or limited withs are parse during one call.
4026 (Parse_Single_Project): Post parse context clause in two passes: non
4027 limited withs before current project and limited withs after current
4030 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
4031 project with the name With_Name, even if it is only extended indirectly.
4032 (Recursive_Process): Process projects in order: first single withs, then
4033 current project, then limited withs.
4035 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
4036 project with the name With_Name, even if it is only extended indirectly.
4038 2008-03-26 Robert Dewar <dewar@adacore.com>
4040 * scn.adb (Initialize_Scanner): Format messages belong on standard error
4042 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4044 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
4045 a generic subprogram that is imported, do not attempt to compile
4048 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
4049 imported, do not generate a raise_program_error for the non-existent
4051 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
4052 perform minimal name resolution on the generic to avoid spurious
4054 (Find_Actual_Type): the designated type of the actual in a child unit
4055 may be declared in a parent unit without being an actual.
4057 2008-03-26 Robert Dewar <dewar@adacore.com>
4059 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
4060 * sinfo.ads, sinfo.adb (From_At_End): New flag
4062 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4064 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
4065 operations that have an interface parameter.
4066 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
4067 Don't treat No_Return call as raise.
4069 * sem_disp.adb (Check_Dispatching_Operations): apply check for
4070 non-primitive interface primitives to access parameters, not to all
4071 parameters of an access type.
4073 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4075 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
4076 declarations of a parent unit are made visible when compiling a child
4077 instance, the parent is not a hidden open scope, even though it may
4078 contain other pending instance.
4080 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
4081 hidden open scope for some child instance, it does affect the
4082 visibility status of other stach entries.
4083 (Analyze_Object_Renaming): Check that a class-wide object cannot be
4084 renamed as an object of a specific type.
4086 2008-03-26 Robert Dewar <dewar@adacore.com>
4088 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
4089 recursion and raise SE directly.
4090 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
4091 set for formal type for IN mode parameter.
4093 2008-03-26 Robert Dewar <dewar@adacore.com>
4095 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
4096 (Initialize): New procedure
4097 (Output_Warnings_Off_Warnings): New procedure
4098 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
4099 (Output_Non_Modifed_In_Out_Warnings): Ditto
4100 (Warn_On_Unreferenced_Entity): Ditto
4102 2008-03-26 Vincent Celier <celier@adacore.com>
4104 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
4107 2008-03-26 Matthew Heaney <heaney@adacore.com>
4109 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
4110 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
4111 Marked with clauses as private, and controlled operations as overriding
4113 2008-03-26 Robert Dewar <dewar@adacore.com>
4115 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
4117 2008-03-26 Robert Dewar <dewar@adacore.com>
4119 * back_end.adb, back_end.ads: Minor reformatting
4121 * bindgen.adb: Minor clarification of comments
4123 * fname.ads: Minor comment fixes
4125 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
4126 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
4128 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
4129 xsnames.adb: Remove warnings off pragma no longer needed
4131 * a-catizo.ads, a-calari.ads, a-calfor.adb,
4132 a-calfor.ads: Fix header.
4134 2008-03-26 Tristan Gingold <gingold@adacore.com>
4136 * init.c: Do not adjust pc for HPARITH on alpha/vms.
4138 2008-03-26 Robert Dewar <dewar@adacore.com>
4140 * lib-xref.adb: (OK_To_Set_Reference): New function
4141 (Generate_Reference): Don't set referenced from occurrence in Warnings,
4142 Unmodified, or Unreferenced pragma
4144 2008-03-26 Robert Dewar <dewar@adacore.com>
4146 * alloc.ads: Add entries for Warnings_Off_Pragmas table
4148 2008-03-26 GNAT Script <nobody@adacore.com>
4150 * Make-lang.in: Makefile automatically updated
4152 2008-03-26 Robert Dewar <dewar@adacore.com>
4154 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
4155 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
4156 removed, use Chars (Pragma_Identifier (.. instead, adjustments
4157 throughout to accomodate this change.
4159 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
4161 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
4162 Einfo.Set_Needs_Debug_Info)
4164 2008-03-26 Robert Dewar <dewar@adacore.com>
4166 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
4167 Add description for the new gnatstub option '--header-file'
4168 clarification of -gnatwz/-gnatwZ
4169 Add a "Irix-Specific Considerations" section to document the need to
4170 set LD_LIBRARY_PATH when using the default shared runtime library.
4171 Added documentation for both gcov and gprof.
4173 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
4174 messages that are not suppressed when clients are compiled.
4175 Add documentation of s-pooglo s-pooloc
4176 Document the new GNAT.Serial_Communications API.
4177 Add documentation for 'Old attribute
4178 Add description of pragma Optimize_Alignment
4180 * ug_words: Add entries for -gnatw.w -gnatw.W
4182 * usage.adb: Add line for -gnatw.w (warn on warnings off)
4184 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
4187 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
4189 * decl.c (maybe_pad_type): Avoid padding an integral type when
4190 bumping its alignment is sufficient.
4192 2008-03-25 Arnaud Charlet <charlet@adacore.com>
4194 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
4195 Fix wrong formatting (lines too long)
4197 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4199 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
4200 a-calend-vms.adb, a-calend.adb, a-calend.ads,
4201 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
4202 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
4203 a-cohama.ads, a-comlin.ads, a-coorse.adb,
4204 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
4205 a-except-2005.ads, a-except.adb, a-except.ads,
4206 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
4207 a-exextr.adb, a-filico.ads, a-finali.ads,
4208 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
4209 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
4210 a-sequio.ads, a-strbou.ads, a-strfix.adb,
4211 checks.adb, exp_ch3.adb, exp_ch4.adb,
4212 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
4213 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
4214 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
4215 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
4216 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
4218 2008-03-24 Robert Dewar <dewar@adacore.com>
4220 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4221 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4222 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4223 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4224 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4225 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4226 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4227 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4228 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4229 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4230 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4231 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4232 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4233 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4234 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4235 double spaced if it fits on one line and otherwise single spaced.
4237 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4239 PR documentation/15479
4240 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
4241 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
4242 (doc/gnat_ugn.info): Renamed from ...
4243 (doc/gnat_ugn_unw.info): ... this.
4244 (doc/gnat_ugn.dvi): Renamed from ...
4245 (doc/gnat_ugn_unw.dvi): ... this.
4246 (doc/gnat_ugn.pdf): Renamed from ...
4247 (doc/gnat_ugn_unw.pdf): ... this.
4248 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
4250 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
4251 unconditionally to gnat_ugn.info. Fix cross references to the
4252 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
4253 and GNU make manuals to be proper texinfo links.
4254 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
4256 2008-03-21 Olivier Hainque <hainque@adacore.com>
4258 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
4259 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
4261 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
4263 * trans.c (addressable_p): Add notes on addressability issues.
4265 2008-03-21 Olivier Hainque <hainque@adacore.com>
4266 Ed Schonberg <schonberg@adacore.com>
4268 * trans.c (addressable_p): Accept COND_EXPR when both arms
4270 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
4271 (call_to_gnu): Do not use name reference in the error message
4272 for a misaligned by_reference_parameter. The actual may be a
4275 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
4277 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4279 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4281 * gnat_rm.texi (Implementation Defined Characteristics)
4282 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
4284 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
4285 (Switches for gnatchop, Installing a library): Likewise.
4287 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
4289 * trans.c (emit_range_check): Do not emit the check if the base type
4290 of the expression is the type against which its range must be checked.
4292 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4294 * decl.c (maybe_pad_type): Use value_factor_p.
4296 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4298 * lang.opt (nostdlib): Move around.
4299 * misc.c (gnat_handle_option): Fix formatting.
4300 (gnat_dwarf_name): Move around.
4301 * trans.c (Case_Statement_to_gnu): Fix formatting.
4302 (gnat_to_gnu): Likewise.
4303 * utils.c (aggregate_type_contains_array_p): Likewise.
4304 (create_subprog_decl): Likewise.
4306 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4308 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
4309 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
4311 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4313 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
4314 BIGGEST_ALIGNMENT when capping the alignment of records with
4315 strict alignment and size clause.
4317 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4319 * lang-specs.h: Pass -gnatwa if -Wall is passed.
4320 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
4321 and -Wuninitialized.
4322 (gnat_post_options): Clear warn_unused_parameter.
4324 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4326 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
4327 aligned bit-fields, bumping the alignment of the record type if deemed
4329 (value_factor_p): Return false instead of 0.
4331 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4333 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
4334 for scalar types with small alignment.
4336 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4338 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
4339 from that of the front-end's end label.
4340 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
4341 from that of the loop label.
4343 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4345 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
4346 comment for the packed array type case.
4347 * utils.c (build_template): Use a loop to strip padding or
4348 containing records for justified modular types.
4350 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4352 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
4353 large alignments specified for types.
4354 (validate_alignment): Minor cleanup.
4356 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4358 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
4359 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
4360 the component for packing, if possible, as well as if a component
4361 size clause is specified.
4362 <E_Record_Subtype>: For an array type used to implement a packed
4363 array, get the component type from the original array type.
4364 Try to get a smaller form of the component for packing, if possible,
4365 as well as if a component size clause is specified.
4366 (round_up_to_align): New function.
4367 (make_packable_type): Add in_record parameter.
4368 For a padding record, preserve the size. If not in_record and the
4369 size is too large for an integral mode, attempt to shrink the size
4370 by lowering the alignment.
4371 Ditch the padding bits of the last component.
4372 Compute sizes and mode manually, and propagate the RM size.
4373 Return a BLKmode record type if its size has shrunk.
4374 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
4375 Use Original_Array_Type to retrieve the type in case of an error.
4376 Adjust call to make_packable_type.
4377 (gnat_to_gnu_field): Likewise.
4378 (concat_id_with_name): Minor tweak.
4379 * trans.c (larger_record_type_p): New predicate.
4380 (call_to_gnu): Compute the nominal type of the object only if the
4381 parameter is by-reference. Do the conversion actual type -> nominal
4382 type if the nominal type is a larger record.
4383 (gnat_to_gnu): Do not require integral modes on the source type to
4384 avoid the conversion for types with identical names.
4385 (addressable_p): Add gnu_type parameter. If it is specified, do not
4386 return true if the expression is not addressable in gnu_type.
4387 Adjust recursive calls.
4388 * utils.c (finish_record_type): Remove dead code.
4390 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
4393 * decl.c (maybe_pad_type): Avoid padding an integral type when
4394 bumping its alignment is sufficient.
4396 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4398 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
4399 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
4401 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
4402 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
4403 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
4404 code output strings.
4405 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
4406 system-vms_64.ads: Fix typos in ada source code comments.
4407 * sinfo-cn.adb: Remove incomplete sentence.
4409 PR documentation/15479
4410 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
4412 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
4415 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
4417 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
4420 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
4421 that underlying type is present.
4423 2008-02-26 Tom Tromey <tromey@redhat.com>
4425 * misc.c (internal_error_function): Remove test of
4426 USE_MAPPED_LOCATION.
4427 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
4428 (Sloc_to_locus): Remove old location code.
4430 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4432 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
4433 `i.e.' by adding comma or `@:' as appropriate.
4434 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
4435 plain characters `C', use `@samp{C}'.
4436 * gnat_ugn.texi (File Naming Rules, About gnatkr)
4437 (Krunching Method): Likewise.
4439 * gnat_ugn.texi (Conventions): List environment variables and
4440 metasyntactic variables.
4441 (Compiling Programs): Fix notation of metasyntactic variables.
4442 Add @file where appropriate. Use @file for file extensions,
4444 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
4445 instead of @file, @env instead of @code.
4447 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4449 PR documentation/15479
4450 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
4451 and `...' with `@dots{}' or `@enddots{}'.
4453 PR documentation/15479
4454 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
4455 use @command instead of @code, @option instead of @samp or @code,
4456 @code instead of @var, @samp instead of @file.
4458 PR documentation/15479
4459 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
4460 in Makefile rules, by using `&&' rather than `;'.
4462 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4464 PR documentation/15479
4465 * gnat_ugn.texi: In non-code, avoid space before colon.
4466 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
4467 (Examples of gnatxref Usage): Use @command{vi} instead of
4469 (Character Set Control): Do not use @code for UTF-8.
4470 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
4472 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
4474 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
4476 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
4479 * env.c: Add __rtems__ to if defined.
4480 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
4481 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
4482 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
4483 pragma Convention as required.
4484 * gsocket.h: Make compile in and out of RTS.
4485 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
4486 Use g-soccon-rtems.ads.
4487 * g-soccon-rtems.ads, system-rtems.ads: New files.
4489 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4492 * Make-lang.in (gnat1): Add $(GMPLIBS).
4494 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
4496 * decl.c (components_to_record): Improve comment.
4498 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
4500 * decl.c (components_to_record): Do not reuse the empty union type
4501 if there is a representation clause on the record.
4502 * trans.c (addressable_p): Return true for INTEGER_CST.
4504 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
4506 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
4507 in pointer arithmetics.
4508 * utils2.c (build_allocator): Likewise.
4510 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
4512 * utils.c (build_function_stub): Properly build the call expression.
4514 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
4516 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
4517 before converting the expression to the type of the object.
4518 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
4519 Stabilize constructors for special wrapping types.
4521 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
4523 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
4524 when necessary. Merge some conditional statements. Update comments.
4525 Rename unchecked_convert_p local variable to suppress_type_conversion.
4526 Do not suppress conversions in the In case.
4527 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
4528 into account on non strict-alignment platforms.
4530 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
4532 * utils.c (aggregate_type_contains_array_p): New predicate.
4533 (create_field_decl): In a packed record, force byte alignment
4534 for fields without specified position that contain an array.
4536 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
4538 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
4540 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
4543 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
4545 (bit_field): New packed boolean type used by cpu_set_t.
4546 (cpu_set_t): New type corresponding to the C type with
4547 the same name. Note that on the Ada side we use a bit
4548 field array for the affinity mask. There is not need
4549 for the C macro for setting individual bit.
4550 (pthread_setaffinity_np): New imported routine.
4552 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
4555 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4556 on OpenBSD as is done on other BSD systems.
4559 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
4560 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
4564 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
4568 * init.c (__gnat_error_handler, __gnat_install_handler,
4569 __gnat_init_float): Define for OpenBSD.
4571 * initialize.c (__gnat_initialize): Define for OpenBSD.
4573 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
4576 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4577 instead of mktemp() or tmpnam() on NetBSD.
4579 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
4581 * trans.c (call_to_gnu): Make the temporary for non-addressable
4582 In parameters passed by reference.
4583 (addressable_p): Return true for STRING_CST and CALL_EXPR.
4585 2007-12-19 Robert Dewar <dewar@adacore.com>
4587 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
4588 Add pragma Warnings (Off) for unassigned IN OUT arguments
4590 * sem_warn.adb (Output_Reference): Suppress messages for internal names
4591 (Check_References): Extensive changes to tune up warnings
4592 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
4593 (Has_Pragma_Unmodifed_Check_Spec): New function
4594 (Check_References): Implement pragma Unmodified
4595 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
4597 * par-prag.adb: Dummy entry for pragma Unmodified
4599 * sem_prag.adb: Implement pragma Unmodified
4601 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
4602 (Proc_Next_Component_Or_Discriminant): Fix typo.
4605 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
4607 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
4608 because the former already takes care of discarding the result.
4609 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
4612 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
4614 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
4616 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
4617 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4618 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
4619 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
4620 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4621 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4622 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4623 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4624 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4625 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
4626 (Dynamic_Trampolines_Used): Delete.
4628 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
4629 Turn on stack probing mechanism on LynxOS.
4631 2007-12-19 Bob Duff <duff@adacore.com>
4633 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
4634 the resulting tail recursion by hand. This prevents running out of
4635 memory on deeply nested concatenations, since Field2 is where the left
4636 operand of concatenations is stored.
4637 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
4638 clarify that it can only return OK or Abandon.
4640 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
4641 operand by iteration, in order to avoid running out of memory on
4642 deeply-nested concatenations. Use the Parent pointer to get back up the
4644 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
4645 Resolve_Op_Concat_Rest): New procedures split out of
4646 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
4649 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
4650 Traverse_Func, because the former already takes care of discarding the
4653 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
4654 because the former already takes care of discarding the result.
4655 (Remove_Warning_Messages): Use appropriate subtype for Status and
4658 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4660 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
4661 discriminants forces expansion of the aggregate into assignments.
4662 (Init_Record_Controller): If the type of the aggregate is untagged and
4663 is not inherently limited, the record controller is not limited either.
4665 2007-12-19 Robert Dewar <dewar@adacore.com>
4667 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
4668 handling compile time known size of record or array (case of front end
4669 layout active, e.g. in GNAAMP).
4671 2007-12-19 Javier Miranda <miranda@adacore.com>
4673 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
4674 that forces the construction of static dispatch tables in case of
4677 2007-12-19 Robert Dewar <dewar@adacore.com>
4679 * exp_ch9.adb (Null_Statements): Moved to library level
4680 (Trivial_Accept_OK): New function
4681 (Expand_Accept_Declaration): Use Trivial_Accept_OK
4682 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
4684 2007-12-19 Robert Dewar <dewar@adacore.com>
4686 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
4687 in complex case where array is Volatile.
4689 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4691 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
4692 properly the Ada2005 rules concerning when the current instance of a
4693 record type is aliased.
4695 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4697 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
4699 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
4701 (P_Variant_Part): Cleaner patch for parenthesized discriminant
4703 2007-12-19 Vincent Celier <celier@adacore.com>
4705 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
4706 package is not known
4708 * prj-attr.ads (Unknown_Package): New constant
4709 Do not crash when an unknown package is in several projects
4711 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
4714 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
4715 existing package Language_Processing.
4717 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4718 Gary Dismukes <dismukes@adacore.com>
4719 Samuel Tardieu <sam@rfc1149.net>
4721 PR ada/15803, ada/15805
4722 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
4723 illegal access subtypes when there is a constrained partial view.
4724 (Check_For_Premature_Usage): New procedure inside
4725 Access_Subprogram_Declaration for checking that an access-to-subprogram
4726 type doesn't reference its own name within any formal parameters or
4727 result type (including within nested anonymous access types).
4728 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
4729 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
4730 context is an access_to_variable, the expression cannot be an
4733 2007-12-19 Bob Duff <duff@adacore.com>
4735 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
4736 (Analyze_Concatenation): Use iteration instead of recursion in order
4737 to avoid running out of stack space for deeply nested concatenations.
4739 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4740 Gary Dismukes <dismukes@adacore.com>
4742 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
4743 whose renamed entity is a subprogram that requires overriding.
4744 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
4745 issuing an error for premature usage and issue a message that says
4746 'type' rather than 'object'.
4748 2007-12-19 Gary Dismukes <dismukes@adacore.com>
4751 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
4752 presence of a statically tagged operand (Present (Static_Tag)) with
4753 test for Indeterm_Ancestor_Call when determining whether to propagate
4754 the static tag to tag-indeterminate operands (which forces dispatching
4756 (Check_Controlling_Formals): Ada2005, access parameters can have
4758 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
4759 not insert subprogram in list of primitive operations if already there.
4761 2007-12-19 Tristan Gingold <gingold@adacore.com>
4763 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
4766 2007-12-19 Thomas Quinot <quinot@adacore.com>
4768 Part of PR ada/33688
4769 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
4770 datagram info on Linux.
4772 2007-12-19 Vincent Celier <celier@adacore.com>
4774 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
4775 that the source path name is always found in the dependencies.
4777 2007-12-19 Robert Dewar <dewar@adacore.com>
4779 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
4780 Fix name of Wide_Wide_Latin_1/9 file names
4781 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
4782 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
4783 Add missing documentation for Ada.Command_Line.Response_File
4784 Update list of warning letters for Warnings pragma
4785 Add documentation for pragma Unmodified
4787 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
4789 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
4791 2007-12-17 Arnaud Charlet <charlet@adacore.com>
4793 * s-vxwork-alpha.ads: Removed, no longer used.
4795 2007-12-15 Jakub Jelinek <jakub@redhat.com>
4797 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
4799 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
4802 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
4803 mlib-tgt-specific.adb.
4805 2007-12-13 Bob Duff <duff@adacore.com>
4807 * trans.c (Attribute_to_gnu): Check for violations of the
4808 No_Implicit_Dynamic_Code restriction. This checking used to be done in
4809 the front end, but is moved here so we can make it more accurate.
4811 2007-12-13 Pascal Obry <obry@adacore.com>
4813 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
4814 version is provided for older GNU/Linux distribution not
4815 supporting thread affinity sets.
4817 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
4819 (bit_field): New packed boolean type used by cpu_set_t.
4820 (cpu_set_t): New type corresponding to the C type with
4821 the same name. Note that on the Ada side we use a bit
4822 field array for the affinity mask. There is not need
4823 for the C macro for setting individual bit.
4824 (pthread_setaffinity_np): New imported routine.
4826 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
4828 (Create_Task): Set the processor affinity mask if information
4831 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
4833 2007-12-13 Robert Dewar <dewar@adacore.com>
4835 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4836 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
4837 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
4838 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
4839 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
4840 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
4841 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
4842 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
4843 for subprogram pointers.
4845 * g-ctrl_c.adb: New file.
4847 * g-ctrl_c.ads (Install_Handler): New body.
4849 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
4850 instead of obsolete function Is_Always_Inlined.
4851 (Freeze_Entity): check for tagged type in imported C subprogram
4852 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
4853 (Freeze_Entity): check for convention Ada subprogram pointer in
4854 imported C subprogram.
4855 (Freeze_Fixed_Point_Type): In the case of a base type where the low
4856 bound would be chopped off and go from negative to zero, force
4857 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
4858 bound) so that the size computation for the base type will take
4859 negative values into account.
4861 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
4862 Bob Duff <duff@adacore.com>
4863 Tristan Gingold <gingold@adacore.com>
4865 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
4866 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4867 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4868 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4869 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4870 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4871 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
4872 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
4873 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
4874 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
4875 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
4876 (Always_Compatible_Rep): New flag to control trampolines globally.
4877 (Dynamic_Trampolines_Used): New flag for implementing the
4878 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
4879 and not yet set correctly for some targets).
4881 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
4882 Simply indirectly call s-stchop when a task is created.
4885 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
4886 appears as an argument (entries A) in an ALI file.
4888 * fe.h (Stack_Check_Limits): Declare new target parameter.
4889 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
4891 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
4892 This variable is declared in C to be sure not subject to elaboration
4894 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
4897 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
4898 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
4900 * s-stchop.ads: Add comments.
4902 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
4903 limit method of stack checking.
4905 * s-stchop-limit.ads: New file.
4907 2007-12-13 Robert Dewar <dewar@adacore.com>
4909 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
4910 a-cihama.adb, g-awk.adb,
4911 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
4914 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
4916 * sem.adb: Update handling of assigned value/unreferenced warnings
4918 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
4920 * lib-xref.ads: Improve documentation for k xref type
4923 Update handling of assigned value/unreferenced warnings
4924 (Generate_Reference): Warning for reference to entity for which a
4925 pragma Unreferenced has been given should be unconditional.
4926 If the entity is a discriminal, mark the original
4927 discriminant as referenced.
4929 * sem_warn.ads, sem_warn.adb
4930 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
4931 no entities referenced in package
4932 (Check_One_Unit): Don't give message about no entities referenced in
4933 a package if a pragma Unreferenced has appeared.
4934 Handle new warning flag -gnatw.a/-gnatw.A
4935 Update handling of assigned value/unreferenced warnings
4937 * atree.h: Add flags up to Flag247
4938 (Flag231): New macro.
4940 2007-12-13 Jose Ruiz <ruiz@adacore.com>
4942 * adaint.h: (__gnat_plist_init): Not defined for RTX.
4944 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
4947 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
4948 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
4949 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
4950 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
4953 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
4955 * sysdep.c (winflush_function for RTX): Procedure that does nothing
4956 since we only have problems with Windows 95/98, which are not
4958 (__gnat_ttyname): Return the empty string on Nucleus, just as
4961 2007-12-13 Robert Dewar <dewar@adacore.com>
4963 * a-textio.adb, a-textio.ads:
4964 Extensive changes to private part for wide character encoding
4966 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
4967 (Look_Ahead): Fix mishandling of encoded sequences
4968 Move declaration of Wch_Con to private part (should not be visible)
4970 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
4971 UTF-8. Probably this is never used, but if it is, brackets is
4974 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
4975 setting wide character encoding for no main program case and when
4976 encoding is specified using -W?
4977 Initialize stack limit of environment task if stack limit method of
4978 stack checking is enabled.
4979 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
4980 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
4981 (Get_Main_Unit_Name): New function.
4982 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
4983 (Gen_Output_File): Set Bind_Main_Program to True for .NET
4985 * bindusg.adb: Add line for -Wx switch
4987 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
4989 Add new useful constant WC_Longest_Sequences
4991 * switch-b.adb: Clean up handling of -Wx switch
4992 For -gnatWx, set Wide_Character_Encoding_Method_Specified
4994 * switch-c.adb: -gnatg activates warning on assertion errors
4995 For -gnatWx, set Wide_Character_Encoding_Method_Specified
4997 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
4999 2007-12-13 Robert Dewar <dewar@adacore.com>
5000 Ed Schonberg <schonberg@adacore.com>
5002 * a-ngcoty.adb: New pragma Fast_Math
5004 * opt.adb: New pragma Fast_Math
5007 Add Implemented_By_Entry to the list of pragmas which do not require any
5009 (Favor_Top_Level): New pragma.
5010 New pragma Fast_Math
5012 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
5013 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5014 Expand_Allocator_Expression): Take into account VM_Target
5015 (Expand_Attribute, case 'Identity): Handle properly the case where
5016 the prefix is a task interface.
5017 New pragma Fast_Math
5019 * par.adb (Next_Token_Is): New function
5020 (P_Pragma): Add Skipping parameter
5021 (U_Left_Paren): New procedure
5022 (U_Right_Paren): New procedure
5023 New pragma Fast_Math
5025 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
5027 New pragma Fast_Math
5029 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
5030 Implemented_By_Entry.
5031 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
5032 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
5033 items, since it can apply to more than one overloadable entity. Set
5034 new flag Has_Pragma_Inline_Always for Inline_Always case.
5035 (Analyze_Pragma, case Complex_Representation): Improve error message.
5036 (Analyze_Pragma, case Assert): When assertions are disabled build the
5037 rewritten code with Sloc of expression rather than pragma, so new
5038 warning about failing is not deleted.
5039 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
5040 protected types and update error message to reflect that. Test whether
5041 the protected type is allowed for the pragma (an error is issued if the
5042 type has any entries, or components that do not have preelaborable
5044 New pragma Fast_Math
5045 (Analyze_Pragma, case No_Return): Handle generic instance
5047 * snames.h, snames.ads, snames.adb:
5048 Add new predefined name for interface primitive _Disp_Requeue.
5049 New pragma Fast_Math
5051 * a-tags.ads, a-tags.adb: New calling sequence for
5052 String_To_Wide_[Wide_]String
5053 (Secondary_Tag): New subprogram.
5055 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
5057 New calling sequence for String_To_Wide_[Wide_]String
5058 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
5059 the use of the secondary stack for image routines.
5061 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
5062 calling sequence for String_To_Wide_[Wide_]String
5064 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
5066 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
5067 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5069 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
5070 (P_Formal_Part): Use Skipping parameter in P_Pragma call
5071 to improve error recovery
5073 * par-util.adb (Next_Token_Is): New function
5074 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
5076 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
5077 semicolon if missing
5078 (P_Pragma): Implement new Skipping parameter
5079 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5080 Fix location of flag for unrecognized pragma message
5082 * par-tchk.adb (U_Left_Paren): New procedure
5083 (U_Right_Paren): New procedure
5085 2007-12-13 Geert Bosch <bosch@adacore.com>
5088 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
5089 the second or later Scaled_Divide would omit leading zeroes,
5090 resulting in too few digits produced and a Layout_Error as result.
5091 (Put): Initialize Pos.
5093 2007-12-13 Robert Dewar <dewar@adacore.com>
5095 atree.ads, atree.adb (Flag231..Flag247): New functions
5096 (Set_Flag231..Set_Flag247): New procedures
5097 (Basic_Set_Convention): Rename Set_Convention to be
5098 Basic_Set_Convention
5099 (Nkind_In): New functions
5100 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5102 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
5104 of obsolete function Is_Always_Inlined
5105 (Register_Predefined_DT_Entry): Initialize slots of the second
5106 secondary dispatch table.
5107 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5108 (Expand_N_Function_Call): Remove special provision for stack checking.
5110 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
5111 Include _Disp_Requeue in the list of predefined operations.
5112 (Find_Interface_ADT): Modified to fulfill the new specification.
5113 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5115 * par-ch4.adb, nlists.ads, nlists.adb:
5116 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5118 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
5119 Fix location of flag for unrecognized pragma message
5121 * sem_ch7.adb: Use Nkind_In
5123 2007-12-13 Vincent Celier <celier@adacore.com>
5126 Indicate what flags are used by the Project Manager, gprbuild and
5128 (Opt.Follow_Links_For_Dirs): New flag
5129 (Warn_On_Assertion_Failure): New flag
5130 (Wide_Character_Encoding_Method_Specified): New flag
5131 (Suppress_All_Inlining): New switch set by -fno-inline
5132 (Real_VMS_Target): New flag
5133 New pragma Fast_Math
5135 2007-12-13 Robert Dewar <dewar@adacore.com>
5137 * back_end.adb: Recognize -fno-inline
5139 2007-12-13 Robert Dewar <dewar@adacore.com>
5141 * checks.adb: Fix optimization problem with short-circuited form
5143 2007-12-13 Bob Duff <duff@adacore.com>
5145 * clean.adb (Usage): Add line for -aP
5146 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
5147 with a parameter "procedure Usage", instead of passing a pointer to a
5148 procedure. This is to eliminate trampolines (since the Usage procedure
5149 is often nested in a main procedure, and it would be inconvenient to
5152 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
5153 to be generic, with a parameter "procedure Callback (...)", instead of
5154 passing a pointer to a procedure. This is to eliminate trampolines
5155 (since the Callback procedure is usually nested).
5157 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
5158 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
5159 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
5161 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
5162 Use the generic Heap_Sort_G instead of Heap_Sort_A.
5164 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5166 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
5167 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
5168 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
5169 (Renamed_In_Spec): New flag
5170 (Has_Pragma_Inline_Always): New flag
5171 Add missing doc for pragma Obsolescent_Warning
5172 Add missing doc for 17 additional unused flags (230-247)
5173 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
5174 Alphabetize with clauses.
5175 Separate Is_Thunk and Has_Thunks flags
5176 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
5177 (Related_Interface): Renamed to Related_Type.
5178 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
5179 (Set_Is_Flag): Restrict the assertion.
5181 2007-12-13 Vincent Celier <celier@adacore.com>
5183 * errout.adb (Output_Source_Line): Do not keep a trailing space after
5184 the source line number if the source line is empty.
5186 2007-12-13 Geert Bosch <bosch@adacore.com>
5188 * eval_fat.adb (Decompose_Int): Handle argument of zero.
5189 (Compose): Remove special casing of zero.
5190 (Exponent): Likewise.
5191 (Fraction): Likewise.
5192 (Machine): Likewise.
5193 (Decompose): Update comment.
5195 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5197 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
5198 limited ancestor part, initialize controllers of enclosing record
5199 before expanding ancestor aggregate.
5200 (Gen_Assign): If a component of the aggregate is box-initialized, add
5201 code to call Initialize if the component is controlled, and explicit
5202 assignment of null if the component is an access type.
5204 Handle properly aggregates for limited types that appear in object
5205 declarations when the aggregate contains controlled values such as
5207 When expanding limited aggregates into individual components, do not
5208 call Adjust on controlled components that are limited.
5210 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5212 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
5214 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5216 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
5217 predefined primitive _Disp_Requeue.
5218 (Make_Predefined_Primitive_Specs): Create the spec for predefined
5219 primitive _Disp_Requeue.
5220 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
5221 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
5222 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
5223 an interface type. In case of limited interfaces we now declare all the
5224 predefined primitives associated with synchronized interfaces as
5226 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
5228 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
5229 tagged type is an interface type and there is no user-defined equality
5231 Add also bodies of predefined primitives associated with synchronized
5233 (Freeze_Record_Type): Do not build bodies of predefined primitives of
5234 interface types because they are now defined abstract.
5235 Add missing documentation.
5236 (Expand_Record_Controller): Update occurrence of Related_Interface
5238 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
5239 (Expand_N_Object_Declaration): Take into account VM_Target when handling
5240 class wide interface object declaration.
5241 (Expand_Previous_Access_Type): Do not create a duplicate master entity
5242 if the access type already has one.
5243 (Expand_N_Object_Declaration): Defend against attempt to validity check
5244 generic types. Noticed for -gnatVcf specified with previous errors.
5246 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5248 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5249 Expand_Allocator_Expression): Take into account VM_Target
5251 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
5252 secondary stack when VM_Target /= No_VM
5254 2007-12-13 Javier Miranda <miranda@adacore.com>
5255 Ed Schonberg <schonberg@adacore.com>
5257 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
5258 Is_Complation_Unit by Is_Library_Level_Entity in the code
5259 that decides if the static dispatch tables need to be built.
5260 (Wrap_Transient_Declaration): Do not generate a finalization call if
5261 this is a renaming declaration and the renamed object is a component
5262 of a controlled type.
5264 2007-12-13 Gary Dismukes <dismukes@adacore.com>
5266 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
5267 In the case where the renamed subprogram is a dereference, call
5268 Force_Evaluation on the prefix.
5270 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5271 Ed Schonberg <schonberg@adacore.com>
5273 * exp_ch9.adb (Expand_N_Asynchronous_Select,
5274 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
5275 comment reformatting.
5276 (Set_Privals): Inherit aliased flag from formal. From code reading.
5277 (Build_Simple_Entry_Call): Out parameters of an access type are passed
5278 by copy and initialized from the actual. This includes entry parameters.
5279 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
5280 and Ada 2005 models of requeue.
5281 (Null_Statements): Still connsider do-end block null if it contains
5282 Unreferenced and Warnings pragmas.
5283 (Expand_N_Accept_Statement): Do not optimize away null do end if
5284 dispatching policy is other than defaulted.
5285 (Expand_N_Timed_Entry_Call): When the triggering statement is a
5286 dispatching call, manually analyze the delay statement.
5287 (Find_Parameter_Type): Move subprogram to Sem_Util.
5289 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5290 Javier Miranda <miranda@adacore.com>
5292 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
5293 _Disp_Requeue occupies dispatch table slot number 15. Move
5294 _Disp_Timed_Select to slot 16.
5295 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
5296 generate the spec and body of _Disp_Reqeueue.
5297 (Make_DT): Build and initialize the second dispatch table.
5298 Handle initialization of RC_Offset when the parent
5299 is a private type with variable size components.
5300 (Make_Secondary_DT): Complete documentation. Add support to
5301 initialize the second dispatch table.
5302 (Make_Tags): Generate the tag of the second dispatch table.
5303 (Register_Primitive): Add support to register primitives in the
5304 second dispatch table.
5306 2007-12-13 Pascal Obry <obry@adacore.com>
5308 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
5309 Windows. This signal is used by gnatmake to kill child processes for
5312 2007-12-13 Javier Miranda <miranda@adacore.com>
5314 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
5315 support for generic dispatching constructor calls in which we need to
5316 locate the tag of a secondary dispatch table associated with an
5317 interface type to properly dispatch the call.
5318 (Expand_N_Attribute_Reference [case Address],
5319 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
5320 handling of VM targets.
5322 2007-12-13 Robert Dewar <dewar@adacore.com>
5323 Ed Schonberg <schonberg@adacore.com>
5325 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
5328 * ug_words: Add entries for -gnatw.a -gnatw.A
5330 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
5331 literal is a subtype with non-static constraints, use the base type of
5332 the context as the base of the string subtype, to prevent type
5334 (Resolve_Actuals): If the actual is an entity name, generate a
5335 reference before the actual is resolved and expanded, to prevent
5336 spurious warnings on formals of enclosing protected operations.
5337 (Analyze_Overloaded_Selected_Component): If type of prefix if
5338 class-wide, use visible components of base type.
5339 (Resolve_Selected_Component): Ditto.
5340 (Resolve_Short_Circuit): Detect case of pragma Assert argument
5341 evaluating to False, and issue warning message.
5343 * usage.adb: Add lines for -gnatw.a and -gnatw.A
5345 2007-12-13 Emmanuel Briot <briot@adacore.com>
5347 * g-calend.ads (No_Time): New constant, to represent an uninitialized
5350 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
5352 (Month_Name_To_Number): New subprogram
5354 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
5355 letter to upper-case.
5357 2007-12-13 Robert Dewar <dewar@adacore.com>
5358 Ed Schonberg <schonberg@adacore.com>
5360 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
5362 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
5363 context is a limited view, use non-limited view when available. If the
5364 non-limited view is an unconstrained array, this enforces consistency
5365 requirements in 3.10.2 (27).
5366 (Layout_Type): For an access type whose designated type is a limited
5367 view, examine its declaration to determine if it is an unconstrained
5368 array, and size the access type accordingly.
5369 (Layout_Type): Do not force 32-bits for convention c subprogram
5370 pointers in -gnatdm mode, only if real vms target.
5372 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
5373 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5374 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
5375 violations of the No_Implicit_Dynamic_Code restriction.
5376 (Resolve_Attribute, case 'Access): If designated type of context is a
5377 limited view, use non-limited view when available. If the non-limited
5378 view is an unconstrained array, this enforces consistency requirements
5380 (Layout_Type): For an access type whose designated type is a limited
5381 view, examine its declaration to determine if it is an unconstrained
5382 array, and size the access type accordingly.
5384 2007-12-13 Vincent Celier <celier@adacore.com>
5386 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
5387 object directory of main project does not exist.
5388 On VMS, correctly set then environment variable for the source
5391 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
5393 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
5394 set to True this procedure will create the value of type REG_EXPAND_SZ.
5395 It was only possible to create REG_SZ values before.
5397 2007-12-13 Robert Dewar <dewar@adacore.com>
5399 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
5400 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
5401 namet-sp.adb, namet-sp.ads: New files.
5403 * g-speche.adb: Use generic routine in g-spchge
5405 * s-wchcnv.ads, s-wchcnv.adb:
5406 Minor code cleanup (make formal type consistent with spec)
5408 * namet.adb: Update comments.
5410 * par-endh.adb (Evaluate_End_Entry): Use new
5411 Namet.Sp.Is_Bad_Spelling_Of function
5413 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
5415 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
5416 ancestor is an access type initialized with a box, set its type
5417 explicitly, for use in subsequent expansion.
5418 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
5421 2007-12-13 Robert Dewar <dewar@adacore.com>
5423 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
5426 2007-12-13 Robert Dewar <dewar@adacore.com>
5428 * inline.adb (Back_End_Cannot_Inline): Use new flag
5429 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5431 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
5432 Has_Pragma_Inline_Always instead.
5433 of obsolete function Is_Always_Inlined
5434 (Build_Body_To_Inline): Same change
5435 (Cannot_Inline): Same change
5436 Do not give warning on exception raise in No_Return function
5438 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
5439 component has two inconsistent component clauses in the same record
5440 representation clause, favor the message that complains about
5441 duplication rather than inconsistency.
5443 (Record_Representation_Clause): Do not warn on missing component
5444 clauses for inherited components of a type extension.
5445 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
5446 an overloadable item if it is a pragma that can apply to multiple
5447 overloadable entities (e.g. Inline) because a pragma cannot be on
5448 more than one chain at a time.
5449 (Validate_Unchecked_Conversion): Add code to warn on unchecked
5450 conversion where one of the operands is Ada.Calendar.Time.
5451 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
5452 For now, ignore Component_Size clause on VM targets, as done for
5455 2007-12-13 Emmanuel Briot <briot@adacore.com>
5456 Vincent Celier <celier@adacore.com>
5458 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
5460 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
5462 (Hash): Move instantiation of System.HTable.Hash from spec to body
5463 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
5464 systems, since we do not need to recompute the Name_Id for the canonical
5466 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5467 as a parameter. This parameter is in fact always "ada" in all calls, and
5468 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
5469 while loading a project with 40000 files
5471 * prj-attr.adb: Fix name of attribute Dependency_Driver
5472 Change the kind of indexing for attribute Root
5474 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
5475 variables already declared, in case constructions.
5477 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
5478 Current_Object_Path_File to No_Path.
5480 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
5481 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
5483 * prj-makr.adb: new parameter Current_Dir
5485 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
5486 Ada sources when language is not Ada.
5487 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5488 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
5489 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
5490 (Locate_Directory): Always resolve links when computing Canonical_Path
5491 (Look_For_Sources): Make sure that Name_Buffer contains the file name
5492 in Source_Files before checking for the presence of a directory
5494 Optimize calls to Name_Find when on case sensitive systems.
5495 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5497 (Prj.Nmsc.Check): new parameter Current_Dir
5498 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
5499 cannot be empty and the spec suffix cannot be the same as the body or
5501 (Get_Unit): When a file name can be of several unit kinds (spec, body or
5502 subunit), always consider the longest suffix.
5503 (Check_Configuration): Do not issue an error if there is no compiler
5504 for a language. Just issue a warning and ignore the sources for the
5506 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
5508 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
5509 (Unit_Exceptions): New hash table
5510 (Check_Naming_Schemes): Check if a file that could be a unit because of
5511 the naming scheme is not in fact a source because there is an exception
5513 (Look_For_Sources): Put the unit exceptions in hash table
5515 (Get_Unit_Exceptions): Give initial value No_Source to local variable
5516 Other_Part to avoid exception when code is compiled with validity
5518 (Get_Sources_From_File): Check that there is no directory information
5520 (Look_For_Sources): Check that there is no directory information in the
5521 list of file names in Source_Files.
5522 (Look_For_Sources): In multi-language mode, do not allow exception file
5523 names that are excluded.
5524 (Excluded_Sources_Htable): New hash table
5525 (Search_Directories.Check_File): New procedure to simplify
5527 (Search_Directories): Do not consider excluded sources
5528 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
5530 (Get_Exceptions): Set component Lang_Kind of Source_Data
5531 (Get_Unit_Exceptions): Ditto
5532 (Search_Directories): Ditto
5534 * prj-pars.adb: new parameter Current_Dir
5536 * prj-part.ads, prj-part.adb:
5537 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5538 (Opt.Follow_Links_For_Dirs): New flag
5539 (Project_Path_Name_Of): Cache information returned by this routine as
5540 Locate_Regular_File is a costly routine. The code to output a log
5541 information and the effective call to Locate_Regular_File is now
5542 factorized into a routine (code clean-up).
5543 (Parse, Parse_Single_Project): new parameter Current_Dir
5544 When main project file cannot be found, indicate in the error
5545 message the project path that was used to do the search.
5547 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
5548 (Prj.Proc.Process*): new parameter Current_Dir
5550 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
5552 2007-12-13 Bob Duff <duff@adacore.com>
5554 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
5555 procedure to be called from the back end to check the
5556 No_Implicit_Dynamic_Code restriction.
5558 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5560 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
5561 Fixes another case where RTE_Available_Call was ignored instead of being
5565 * rtsfind.ads: Add new entries.
5567 2007-12-13 Robert Dewar <dewar@adacore.com>
5569 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
5570 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
5572 * scn.adb: Implement BOM recognition
5574 2007-12-13 Thomas Quinot <quinot@adacore.com>
5575 Ed Schonberg <schonberg@adacore.com>
5577 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
5578 subprogram body that acts as its own spec may not have a non-private
5579 WITH clause on a private sibling.
5580 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
5581 child unit is a renaming, create an implicit with_clause on that
5582 parent, and not on the unit it renames, to prevent visibility errors
5583 in the current unit.
5585 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5587 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
5588 renaming declaration, use the Slocs of the formal parameters from the
5589 declaration of the formal subprogram when creating the formal parameter
5590 entities in the renaming declaration.
5591 (Analyze_Formal_Type_Declaration): Change the placement of the error
5592 message concerning illegal known discriminants. It is now posted on the
5593 type rather than on the first discriminant. This change ensures early
5595 (Freeze_Subprogram_Body): If the generic subprogram is nested within
5596 the package body that contains the instance, do not generate an
5597 out-of-place freeze node for the enclosing package.
5598 (Collect_Previous_Instantiations): Ignore internal instantiations
5599 generated for formal packages.
5600 (Validate_Derived_Type_Instance): Add a check that when a formal
5601 derived type is Known_To_Have_Preelab_Init then the actual type must
5602 have preelaborable initialization, and issue an error when this
5603 condition is violated.
5605 2007-12-13 Robert Dewar <dewar@adacore.com>
5607 * s-imenne.adb, s-imenne.ads: New files.
5609 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
5610 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
5611 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
5612 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
5613 s-imgwch.ads: New calling sequence for Image routines to avoid sec
5616 2007-12-13 Javier Miranda <miranda@adacore.com>
5617 Ed Schonberg <schonberg@adacore.com>
5619 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
5620 generation of spurious error if parent is an interface type; caused
5621 because predefined primitive bodies will be generated later by
5623 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
5625 (Derive_Subprograms): Handle derivations of predefined primitives
5626 after all the user-defined primitives to ensure that they are
5627 found in proper order in instantiations.
5628 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
5629 of Related_Interface to Related_Type.
5630 (Record_Type_Declaration): Minor reordering of calls to decorate the
5631 Tag component because the entity must have set its Ekind attribute
5632 before setting its Is_Tag attribute.
5633 (Analyze_Subtype_Declaration): In the case of subtypes with
5634 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
5636 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5637 Ed Schonberg <schonberg@adacore.com>
5639 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
5640 statement to the list of contexts where a selected component with a
5641 concurrent tagged type prefix should yield a primitive operation.
5642 (Find_Primitive_Operation): Handle case of class-wide types.
5643 (Analyze_Overloaded_Selected_Component): If type of prefix is
5644 class-wide, use visible components of base type.
5645 (Resolve_Selected_Component): Ditto.
5646 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
5647 formal of a generic subprogram. find candidate interpretations by
5648 scanning the list of generic formal declarations.:
5649 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
5650 type from a limited_with_clause, and the full view is available, use it
5651 for subsequent semantic checks.
5652 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
5653 (Find_Primitive_Operation): New function.
5654 (Analyze_Overloaded_Selected_Component): insert explicit dereference
5655 only once if several interpretations of the prefix yield an access type.
5656 (Try_Object_Operation): Code and comment cleanup.
5657 (Analyze_Selected_Component): Reorder local variables. Minot comment and
5658 code reformatting. When the type of the prefix is tagged concurrent, a
5659 correct interpretation might be available in the primitive and
5660 class-wide operations of the type.
5662 2007-12-13 Robert Dewar <dewar@adacore.com>
5663 Ed Schonberg <schonberg@adacore.com>
5665 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
5666 renaming entry as subprogram using rename-as-body if subprogram spec
5668 (Use_One_Type): The clause is legal on an access type whose designated
5669 type has a limited view.
5670 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5671 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5672 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
5673 operation denoted by a selected component.
5674 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
5675 it can be an expression, possibly overloaded, that returns a task or
5678 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5679 Gary Dismukes <dismukes@adacore.com>
5681 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
5682 requeue statement is dispatching. Do not emit an error when the name is
5683 not an entry and the context is a dispatching select. Add code to
5684 perform subtype conformance between the formals of the current entry
5685 and those of the target interface primitive.
5686 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
5687 Timed_Entry_Call): Analyze the triggering statement as the first step of
5688 the processing. If this is a dispatching select, postpone the analysis
5689 of all select statements until the Expander transforms the select. This
5690 approach avoids generating duplicate identifiers after the Expander has
5691 replicated some of the select statements. In case the Expander is
5692 disabled, perform regular analysis.
5693 (Check_Triggering_Statement): New routine.
5694 (Analyze_Requeue): Exclude any interpretations that are not entries when
5695 checking overloaded names in a requeue. Also test type conformance for
5696 matching interpretations rather than requiring subtype conformance at
5697 that point to conform with the RM's resolution rule for requeues.
5699 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5701 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
5702 inherited operation is a defaulted tag-indeterminate call, and there is
5703 a statically tagged actual, use the static tag as a controlling actual
5704 for the defaulted actual.
5706 2007-12-13 Geert Bosch <bosch@adacore.com>
5708 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
5709 context, so do not call Check_Non_Static_Context.
5711 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5713 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
5714 whether formal E is an entity which may have parameters.
5716 2007-12-13 Bob Duff <duff@adacore.com>
5717 Javier Miranda <miranda@adacore.com>
5718 Robert Dewar <dewar@adacore.com>
5720 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
5721 (Set_Convention): New procedure to set the Convention flag, and in
5722 addition make sure the Favor_Top_Level flag is kept in sync (all
5723 foreign-language conventions require Favor_Top_Level = True).
5724 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
5726 (Collect_Interfaces_Info): Minor update to handle the two secondary
5727 dispatch tables. Update occurrence of Related_Interface to Related_Type.
5728 (Generate_Parent_Ref): Add parameter to specify entity to check
5729 (Is_Preelaborable_Expression): Allow the name of a discriminant to
5730 initialize a component of a type with preelaborable initialization.
5731 This includes the case of a discriminal used in such a context.
5732 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
5733 latest Ada 2005 rules about renaming and 'Access of
5734 discriminant-dependent components.
5735 (Check_Nested_Access): Add handling when there are no enclosing
5736 subprograms (e.g. case of a package body).
5737 (Find_Parameter_Type): Factor routine from several other compiler files.
5738 Remove routine from Find_Overridden_Synchronized_Primitive.
5740 2007-12-13 Thomas Quinot <quinot@adacore.com>
5742 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
5743 an invalid access to an uninitialized slot in the
5744 Source_File_Index_Table.
5746 2007-12-13 Thomas Quinot <quinot@adacore.com>
5748 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
5750 2007-12-13 Bob Duff <duff@adacore.com>
5752 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
5753 access-to-subprogram types in this package.
5755 2007-12-13 Olivier Hainque <hainque@adacore.com>
5757 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
5758 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
5759 Stack_Overlay_Address and document that we are using an internal
5761 (Byte_Size, Unsigned_32_Size): Remove, now useless.
5762 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
5763 consistently throughout the various implementation pieces.
5765 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
5766 overlay we are using to fill the stack area with patterns.
5767 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
5768 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
5769 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
5771 2007-12-13 Robert Dewar <dewar@adacore.com>
5773 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
5775 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5778 (Create_Task): Take into account tasks created by foreign threads.
5779 Code clean up: use constants instead of hard coded values.
5781 2007-12-13 Robert Dewar <dewar@adacore.com>
5783 * styleg.adb (Check_Comment): More liberal rules for comment placement
5785 2007-12-13 Olivier Hainque <hainque@adacore.com>
5787 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
5788 of Procedure Value instead of Frame Pointer as the invocation
5789 identifier associated with the instruction pointer in each traceback
5792 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
5793 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
5794 Pointer as the invocation identifier passed to tbk$symbolize.
5796 * s-traent-vms.ads, s-traent-vms.adb
5797 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
5798 Procedure Value instead of Frame Pointer as the invocation identifier
5799 passed to tbk$symbolize.
5801 2007-12-13 Robert Dewar <dewar@adacore.com>
5803 * tbuild.ads, tbuild.adb:
5804 Fix location of flag for unrecognized pragma message
5806 2007-12-13 Robert Dewar <dewar@adacore.com>
5808 * treepr.ads, treepr.adb: (pl): implement use of positive value
5811 2007-12-13 Robert Dewar <dewar@adacore.com>
5813 * xeinfo.adb: Remove warnings
5814 * xnmake.adb: Remove warnings
5815 * xsinfo.adb: Remove warnings
5816 * xtreeprs.adb: Remove warnings
5817 * xsnames.adb: Remove warnings
5819 * a-ngcoar.adb: Fix typo.
5820 * s-interr.adb: Minor reformatting
5821 * env.c: Minor reformatting.
5822 * g-bytswa.adb: Minor reformatting.
5823 * g-rannum.ads: Minor documentation improvements
5824 * s-tasinf-mingw.adb: Minor header fix
5825 * a-clrefi.adb: Minor reformatting
5826 * g-sttsne.ads: Minor documentation improvement
5827 * g-sttsne-locking.ads: Minor documentation improvement
5828 * g-soliop-solaris.ads: Minor documentation improvement
5829 * g-soliop-mingw.ads: Minor documentation improvement
5830 * g-soliop.ads: Minor documentation improvement
5831 * exp_aggr.ads: Minor reformatting
5832 * debug.adb: Add documentation for the gprbuild debug flags
5833 * exp_ch2.adb: Use Nkind_In to simplify code throughout
5834 * exp_pakd.adb: Minor reformatting
5836 * g-altive.ads, g-alleve.adb: Remove assertions.
5837 Add comment about minor differences between targets regarding
5838 floating-point operations.
5840 * g-thread.adb: Remove pragma unreferenced.
5841 * lib.ads: Minor reformatting
5842 * par-ch9.adb: Minor reformatting of error messages
5843 * sem_case.adb: Minor reformatting
5844 * s-fileio.adb: Minor reformattinng
5845 * s-vmexta.ads: Minor typo
5847 Take into account 'Success' value as per new GNAT warning.
5849 2007-12-13 Vincent Celier <celier@adacore.com>
5851 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
5854 2007-12-13 Robert Dewar <dewar@adacore.com>
5855 Bob Duff <duff@adacore.com>
5857 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
5858 Document that suffixes may be terminations of each others
5859 Add doc for -gnatw.a and -gnatw.A
5860 Document gnatbind -Wx switch
5861 Document BOM recognition
5862 Document pragma Implemented_By_Entry.
5865 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
5866 Add doc for pragma Unreferenced suppressing no entities referenced msg
5867 Add documentation of GNAT.Directory_Operations.Iteration
5868 Add documentation of GNAT.Random_Numbers
5869 Add documentation for pragma Shared.
5870 Correct documentation for Bit_Order
5871 Add documentation for the Pool_Address attribute.
5872 Fix and improve documentation of pragma machine_attribute.
5873 New pragma Fast_Math
5874 Document BOM recognition
5876 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
5877 Add /Wide_Character_Encoding for binder
5878 Add qualifier for the new gnatpp option --no-separate-loop-then
5880 2007-12-13 Matthew Heaney <heaney@adacore.com>
5882 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
5883 which generic formal operations are called for each operation.
5885 2007-12-13 Olivier Hainque <hainque@adacore.com>
5887 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
5888 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
5890 2007-12-13 Emmanuel Briot <briot@adacore.com>
5892 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
5893 Reference_Dir unless we actually need it.
5895 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
5896 Tristan Gingold <gingold@adacore.com>
5898 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
5901 a-calend-vms.adb: Remove pragma warning off and add pragma
5904 2007-12-13 Robert Dewar <dewar@adacore.com>
5906 * impunit.adb: Add entries for missing units
5908 * Makefile.rtl: Add new run-time units.
5910 * Make-lang.in: Update dependencies.
5912 2007-12-13 Bob Duff <duff@adacore.com>
5914 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
5915 types, set Can_Use_Internal_Rep appropriately, based on
5916 Always_Compatible_Rep_On_Target.
5918 2007-12-13 Gary Dismukes <dismukes@adacore.com>
5919 Arnaud Charlet <charlet@adacore.com>
5921 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
5922 it to the front end and setting the aamp_target environment variable
5923 to the switch's argument to ensure that gnaampbind and gnaamplink will
5924 take the specified library into account.
5925 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
5926 target, since the CIL compiler supports an "object" file (.il files).
5928 2007-12-13 Vincent Celier <celier@adacore.com>
5930 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
5931 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
5933 2007-12-13 Geert Bosch <bosch@adacore.com>
5935 * s-parame-vxworks.adb:
5936 Update comments to reflect usage of this package by Nucleus.
5938 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5940 * i-vxwork.ads: Kill new warning on Convention C, since changing the
5941 spec would break code.
5943 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
5945 * system-vxworks-alpha.ads: Removed.
5947 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
5949 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
5951 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
5954 * sem_ch3.adb (Designates_T): New function.
5955 (Mentions_T): Factor reusable part of the logic into Designates_T.
5956 Consider non-access parameters and access and non-access result.
5957 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
5958 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
5960 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
5962 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
5965 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
5966 the new implementation of target-specific calls.
5968 2007-12-07 Olivier Hainque <hainque@adacore.com>
5970 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
5971 the designated full view, only follow a second level Full_View link
5972 for Non_Limited_Views of from_limited_with references.
5974 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
5977 * sem_ch6.adb (Process_Formals): Prevent an access type formal
5978 to be initialized with an access to constant object.
5980 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
5981 when an access to constant is used to initialize an access
5985 * a-direct.adb (Compose): Containing_Directory can be an empty string.
5987 2007-12-07 Olivier Hainque <hainque@adacore.com>
5990 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
5991 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
5992 this is from an alignment clause on the GNAT entity.
5993 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
5994 to distinguish the case where we set it from the type's alignment.
5995 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
5996 whether this alignment was set from an explicit alignment clause.
5998 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
6000 * decl.c (make_packable_type): Revert last change.
6001 (gnat_to_gnu_field): Avoid setting size and position multiple times.
6002 * utils.c (finish_record_type): Retrieve the real name of the type.
6004 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
6006 * trans.c (lvalue_required_p): Take base node directly instead
6007 of its parent. Rename second parameter to 'gnu_type'.
6008 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
6009 <N_Slice>: Likewise.
6010 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
6011 Adjust calls to lvalue_required_p.
6013 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
6016 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
6017 parameters of an entry call.
6019 2007-12-03 Robert Dewar <dewar@adacore.com>
6020 Samuel Tardieu <sam@rfc1149.net>
6023 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
6024 of variables declared in a library-level package.
6026 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
6028 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
6029 of Empty_String'Unchecked_Access.
6031 * Makefile.in: Add support for sh4-linux.
6033 * system-linux-sh4.ads: New file.
6035 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
6038 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
6039 and its argument must not be free()ed.
6041 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
6043 * decl.c (make_packable_type): Retrieve the real name of the type.
6044 (maybe_pad_type): Simplify similar code.
6046 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
6049 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
6050 than an identifier is used after "case" in a variant_part.
6053 * par-ch4.adb (Is_Parameterless_Attribute): New map.
6054 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
6055 attribute name or not depending on the new map.
6057 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
6058 returning a string or a type will not be called with improper
6061 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
6063 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
6066 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
6067 Signal an error when attribute argument is a fixed-point value of
6071 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
6072 a derived ordinary fixed point type.
6074 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
6075 RM_Size when a Small clause is found.
6077 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
6080 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
6081 Pass 'false' for the new allocate_struct_function parameter.
6082 * utils.c (build_function_stub): Likewise.
6084 2007-11-25 Richard Guenther <rguenther@suse.de>
6086 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
6087 (gnat_poplevel): Likewise.
6089 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
6091 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
6092 strict alignment, no alignment clause and a known static size, cap
6093 the type alignment to the greatest power of 2 factor of the size.
6094 (gnat_to_gnu_field): If the field has a component clause, is aliased
6095 or of a type with strict alignment, require that its size be equal to
6097 (validate_size): Use the type size as the minimum size for a type with
6100 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
6102 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
6103 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
6104 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
6105 Use 'Access instead of 'Unchecked_Access in second and third
6106 arguments of pthread_sigmask.
6108 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
6110 * decl.c (ceil_alignment): New function.
6111 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
6112 (make_packable_type): Likewise.
6114 2007-11-22 Olivier Hainque <hainque@adacore.com>
6116 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
6117 to fit in 80 columns.
6119 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
6121 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
6122 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
6124 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
6127 * misc.c (gnat_adjust_rli): Delete.
6128 (gnat_init): Do not initialize the translation code here.
6129 Do not call set_lang_adjust_rli.
6130 * trans.c (init_code_table): Make static.
6131 (gnat_init_stmt_group): Delete.
6132 (gigi): Initialize the translation code entirely here.
6133 Emit debug info for the common types here instead of...
6134 * utils.c (gnat_init_decl_processing): ...here.
6135 * gigi.h (init_code_table): Delete.
6136 (gnat_init_stmt_group): Likewise.
6138 2007-11-16 Olivier Hainque <hainque@adacore.com>
6140 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
6141 retrieving an allocator return value from a super-aligned address from
6143 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
6144 expect a super-aligned address for a fat or thin pointer.
6146 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
6148 * trans.c (call_to_gnu): Always set the source location on the call
6149 expression. If the function returns-by-target, also set it on the
6152 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
6154 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
6155 sections of non-supported Interix target.
6157 * s-osinte-interix.ads: Removed.
6159 * i-cstrin.ads (chars_ptr): Make it a C convention type.
6161 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
6163 * a-tasatt.adb: Add a comment at the beginning of the package
6164 explaining why in general 'Unchecked_Access must be used instead
6167 * sem_prag.adb (Process_Convention): Move the test for the
6168 entity on which the Convention pragma applies down to also
6169 forbid pragma Convention on enumeration literals reached
6172 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
6174 * a-tasatt.adb: Revert previous change for this file as it will
6175 generate an error when this package is instantiated from a
6178 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
6180 * a-tasatt.adb: Type Wrapper should be declared in comment instead
6181 of already declared type Node_Access.
6182 Use 'Access instead of 'Unchecked_Access when applicable. Local
6183 lifetime is the one of the package.
6184 (Set_Value): W is allocated on the heap.
6186 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
6188 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
6190 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
6193 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
6195 (elaboration code): Timer_Queue lifetime is the one of the
6198 * tracebak.c (i386 alternative): Remove useless comparaison
6199 which is always false; LOWEST_ADDRESS is 0 and is never greater
6200 than an unsigned integer.
6202 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
6203 embedded check for "Ada_Version >= Ada_05".
6205 2007-11-07 Olivier Hainque <hainque@adacore.com>
6207 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
6208 craft and expand comment.
6210 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
6212 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
6214 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
6216 * misc.c (gnat_handle_option): Replace call to abort with
6217 call to gcc_unreachable.
6218 (gnat_init): Likewise.
6219 (gnat_expand_expr): Likewise.
6220 (fp_prec_to_size): Likewise.
6221 (fp_size_to_prec): Likewise.
6223 2007-10-23 Richard Guenther <rguenther@suse.de>
6226 * tracebak.c: #undef abort after including system.h.
6228 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
6230 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
6231 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
6233 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
6235 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
6237 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
6238 Set the protection status of the guard page based on the value of On.
6240 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
6242 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
6243 (Exit_Task): Pass False to Hide_Yellow_Zone.
6245 2007-10-15 Robert Dewar <dewar@adacore.com>
6247 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6248 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
6249 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
6250 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
6251 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
6252 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
6253 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
6254 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
6255 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
6256 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
6257 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
6258 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
6259 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
6260 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
6261 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
6262 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
6264 Add Unreferenced and Warnings (Off) pragmas for cases of
6265 variables modified calls where they are IN OUT or OUT parameters and
6266 the resulting values are not subsequently referenced. In a few cases,
6267 we also remove redundant code found by the new warnings.
6269 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
6270 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
6271 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
6272 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
6273 warning controlled by -gnatw.o that warns on cases of out parameter
6274 values being ignored.
6276 2007-10-15 Geert Bosch <bosch@adacore.com>
6278 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
6280 * expect.c: Initial port to arm-mentor-nucleus.
6281 Use kill for __gnat_kill() on VMS.
6283 2007-10-15 Emmanuel Briot <briot@adacore.com>
6285 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
6287 (Xref_Record): Change type for Line, since in the case of a reference to
6288 a predefined entity (as happens for array index types), the line is set
6290 Add support for parsing multiple array index types info, or
6291 multiple inherited interfaces info. This information cannot be stored
6292 in Xref_Entity_Record, which only supports a single instance of Tref_*,
6293 and is therefore stored in the list of references instead. It has a
6294 special treatement later on in tools that use this information.
6296 2007-10-15 Tristan Gingold <gingold@adacore.com>
6298 * debug.adb: Document use of -gnatd.a and -gnatd.I
6300 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
6302 2007-10-15 Javier Miranda <miranda@adacore.com>
6304 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
6305 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
6306 care of access to class-wide interface types plus removal of bizarre
6307 conversion of tagged object to access type (reported by Gary
6308 Dismukes). After this patch there is no need to perform any
6309 additional management on these nodes in Expand_Interface_Actuals.
6311 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
6312 that handles use of 'Access and 'Unchecked_Access applied to
6313 actuals covering interface types. Such code is now
6314 centralized in Expand_N_Attribute_Reference.
6316 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6318 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
6319 of tagged types whose ultimate ancestor is a CPP type.
6320 (Freeze_Array_Type): For a packed array type, generate an initialization
6321 procedure if the type is public, to handle properly a client that
6322 specifies Normalize_Scalars.
6324 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6326 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
6327 inside a generic body, retrieve the full view of the entry family
6328 discrete subtype if available.
6330 2007-10-15 Thomas Quinot <quinot@adacore.com>
6332 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
6333 attempt to generate stubs for hidden primitive operations.
6335 2007-10-15 Vincent Celier <celier@adacore.com>
6337 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
6338 returning None, used when there is no platform specific body for
6341 2007-10-15 Bob Duff <duff@adacore.com>
6343 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
6344 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
6345 the generic Heap_Sort_G, in order to avoid trampolines.
6347 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
6348 Jose Ruiz <ruiz@adacore.com>
6350 * vx_stack_info.c: New file.
6352 * i-forbla-unimplemented.ads: New file.
6354 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
6355 for unsupported configurations; use it on VMS targets instead of the
6357 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
6358 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
6359 used by VxWorks targets to have access to task-specific data and be
6360 able to extract the stack boundaries for stack checking.
6361 Use system-vms-ia64.ads on ivms.
6363 * Make-lang.in: Update dependencies.
6365 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
6368 2007-10-15 Vincent Celier <celier@adacore.com>
6370 * snames.adb, snames.ads: Add new standard name runtime_library_dir
6372 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
6374 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
6376 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
6377 the source is unknown.
6379 * prj-ext.adb: Spelling error fix
6381 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
6382 95 reserved word in its name.
6383 (Process_Project_Level_Array_Attributes): Process new attribute
6384 Runtime_Library_Dir.
6386 * prj-part.adb (Parse_Single_Project): Do not check the name of the
6387 config project against the user project names.
6389 * prj-proc.adb (Expression): In multi-language mode, indexes that do
6390 not include a dot are always case insensitive.
6391 (Process_Declarative_Items): Ditto
6392 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
6395 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
6396 True, compare both indexes in lower case.
6398 2007-10-15 Robert Dewar <dewar@adacore.com>
6400 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
6402 2007-10-15 Gary Dismukes <dismukes@adacore.com>
6404 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
6405 association for an access component, add an association with null as
6406 the expression. Remove testing for array subtypes and the setting in
6407 that case of Ctyp to the array component type, which prevented proper
6408 inclusion of an association for null-initialized arrays. Collapse
6409 condition that tests for array subtypes into just a test of
6410 Is_Partially_Initialized_Type (which already covers arrays anyway).
6412 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6414 * sem_ch12.adb: Minor code reformatting.
6415 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
6416 find the parent package which may have been hidden by local
6419 2007-10-15 Gary Dismukes <dismukes@adacore.com>
6421 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
6422 flag of derived concurrent types, taking into account the flag setting
6423 on the parent subtype and any new set of discriminants.
6425 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6427 * sem_ch4.adb: Minor code and comment reformatting.
6428 (Analyze_Allocator): When the designated type of an unconstrained
6429 allocator is a record with unknown discriminants or an array with
6430 unknown range bounds, emit a detailed error message depending on the
6431 compilation mode and whether the designated type is limited.
6433 2007-10-15 Tristan Gingold <gingold@adacore.com>
6435 * system-vms-ia64.ads: New file.
6437 * system-vms_64.ads: Minor comment fix.
6439 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6441 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
6442 body generated for a function with a controlling result that is a null
6443 extension, discard the generated body in favor of the current explicit
6446 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6448 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
6449 examining its original form, to handle properly operator calls that
6450 have been rewritten.
6452 2007-10-15 Olivier Hainque <hainque@adacore.com>
6454 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
6455 instead of a procedure value in each traceback entry.
6457 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
6458 instead of procedure value to TBK$SYMBOLIZE.
6460 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
6462 (TB_Entry_For): Account for the PV/FP renaming.
6464 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
6466 (Null_TB_Entry): Account for change of component name.
6467 (PV_For): Rename as FP_For.
6469 2007-10-15 Tristan Gingold <gingold@adacore.com>
6471 * trans.c (gnat_to_gnu): Remove the padding structure more often.
6472 This optimize assignment to over-aligned record.
6474 2007-10-15 Emmanuel Briot <briot@adacore.com>
6476 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
6479 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
6480 type, for dispatching calls.
6482 2007-10-15 Vincent Celier <celier@adacore.com>
6483 Robert Dewar <dewar@adacore.com>
6485 * gnat_ugn.texi: Add documentation for switches --version and --help
6486 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
6487 gnatxref, gnatfind, gnatls, and gnatclean.
6489 Mention attribute Excluded_Source_Dirs
6490 Replace obsolescent attribute Locally_Removed_Files with attribute
6491 Excluded_Source_Files.
6492 Improve documentation of -u (gnatbind)
6493 Document how to do reliable stack checking for the environmental task
6496 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
6497 Document attribute Excluded_Source_Files and indicate that attribute
6498 Locally_Removed_Files is obsolescent.
6500 2007-10-15 Thomas Quinot <quinot@adacore.com>
6502 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
6505 Update documentation to note that OpenVMS 8.3 or later must be used
6506 to generate g-soccon-vms.ads.
6508 * atree.adb: Add ??? comment
6510 * exp_util.adb: Minor reformatting.
6511 Add ??? comment in Kill_Dead_Code.
6513 2007-10-15 Robert Dewar <dewar@adacore.com>
6515 * errout.ads: Comment clarification
6517 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6518 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
6520 * lib.ads: Comment update
6522 * init.c: Minor reformatting.
6524 * sem_attr.adb: Minor formatting
6526 * osint-b.ads: Minor reformatting
6528 * sem_ch9.adb: Implement -gnatd.I switch
6530 * g-comlin.adb: (Start): Fix handling of empty command line.
6532 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
6533 even when -rules follows the -cargs section.
6535 2007-10-08 Ollie Wild <aaw@google.com>
6537 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
6539 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
6541 (gnat_eh_runtime_type): Removed.
6542 (gnat_return_tree): New function.
6544 2007-10-08 Ben Elliston <bje@au.ibm.com>
6548 2007-08-31 Ben Elliston <bje@au.ibm.com>
6550 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
6551 when compiling for powerpc64-*-linux.
6552 * system-linux-ppc64.ads: New file.
6554 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
6556 Mapped location support
6557 * back_end.adb (Call_Back_End): Pass information about source
6558 files instead of units to gigi.
6559 * gigi.h (struct File_Info_Type): New.
6560 (gigi): Rename and change type of number_units parameter, change
6561 type of file_info_ptr parameter.
6562 * trans.c (number_files): New global variable.
6563 (gigi): Rename and change type of number_units parameter, change
6564 type of file_info_ptr parameter.
6565 If mapped location support is enabled, create the isomorphic mapping
6566 between source files and line maps.
6567 (Sloc_to_locus): If mapped location support is enabled, translate
6568 source location into mapped location.
6569 (annotate_with_node): Rename into set_expr_location_from_node.
6570 Call set_expr_location instead of annotate_with_locus.
6571 (Pragma_to_gnu): Adjust for above change.
6572 (Loop_Statement_to_gnu): Likewise.
6573 (call_to_gnu): Likewise.
6574 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6575 (gnat_to_gnu): Likewise.
6576 (add_stmt_with_node): Likewise.
6577 (add_cleanup): Likewise.
6578 * utils.c (gnat_init_decl_processing): Do not set input_line.
6580 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6582 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
6583 (Applicable_Use): Emit a warning when a package tries to use itself.
6584 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
6585 is already in use or the package where it is declared is in use or is
6586 declared in the current package.
6587 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
6589 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
6590 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
6591 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
6593 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6595 * a-calend-vms.adb, a-calend.adb:
6596 Add a section on leap seconds control along with two entities used to
6597 enable and disable leap seconds support. The array Leap_Second_Times is
6598 now constant and contains hard time values pre-generated. Remove
6599 all elaboration code used to populate the table of leap seconds.
6602 Add entity Leap_Seconds_Support to the list of global run-time variables
6603 along with a comment on its usage and values.
6604 (Gen_Adainit_Ada): Add code to generate the declaration and import of
6605 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
6606 or one (enabled) depending on the presence of binder switch "-y".
6607 (Gen_Adainit_C): Add code to generate the declaration of external int
6608 __gl_leap_seconds_support. Set is value to zero (disabled) or one
6609 (enabled) depending on the presence of binder switch "-y".
6611 * init.c: Add __gl_leap_seconds_support to the list of global values
6612 computed by the binder.
6614 2007-09-26 Jerome Guitton <guitton@adacore.com>
6616 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6617 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
6618 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6619 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
6621 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
6623 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
6624 function which can be called by the debugger to interrupt the tasks of
6625 an Ada application asynchronously, as needed on VxWorks.
6626 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
6628 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
6629 renamed from Stop_All_Tasks. Update comments.
6630 (Stop_All_tasks): New function declaration.
6632 2007-09-26 Olivier Hainque <hainque@adacore.com>
6634 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
6635 #include <utime.h> and #define GCC_RESOURCE_H before
6636 #include <sys/wait.h>.
6637 Add more protections in __gnat_translate_vms.
6639 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
6640 #include <sys/wait.h>.
6642 2007-09-26 Thomas Quinot <quinot@adacore.com>
6643 Sergey Rybin <rybin@adacore.com>
6645 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
6647 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6650 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6652 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6655 * sem_dist.ads: Minor comment fix
6657 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6659 2007-09-26 Javier Miranda <miranda@adacore.com>
6660 Eric Botcazou <ebotcazou@adacore.com>
6663 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
6664 indirection added to the HT_Link component of the TSD. This is required
6665 to statically allocate the TSD.
6668 Minor reordering of the declarations in the private part. Required to
6669 add a level of indirection to the contents of the TSD component HT_Link.
6670 This is required to statically allocate the TSD.
6672 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
6673 Is_Statically_Allocated set from constant objects.
6674 Do not make exported constants created by the compiler volatile.
6675 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
6678 * trans.c (Identifier_to_gnu): For constants, unshare initializers
6679 before returning them.
6681 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
6682 public part of the package.
6683 (Make_DT): Move HT_Link component out of the TSD record. For this
6684 purpose Make_DT now declares a separate object that stores the
6685 HT_Link value, and initializes the TSD component with the address
6686 of this new object. The addition of this level of indirection is
6687 required to statically allocate the TSD because the TSD cannot
6688 have variable components.
6689 (Expand_Interface_Conversion): Improve the expanded code.
6690 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
6692 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
6693 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
6694 if we are building static dispatch tables then we must not generate
6695 extra code to register the primitive because the dispatch table will
6696 be built at the end of the library package; otherwise we notify that
6697 we cannot build the static dispatch table.
6699 2007-09-26 Robert Dewar <dewar@adacore.com>
6701 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
6704 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
6705 (Analyze_Record_Representation_Clause): Suppress junk warning for
6706 missing component clause.
6707 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
6708 tests for controlled type overlay to composites with controlled
6710 (Analyze_Record_Representation_Clause): Add reference for component name
6712 2007-09-26 Javier Miranda <miranda@adacore.com>
6713 Gary Dismukes <dismukes@adacore.com>
6715 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
6716 for thunks associated with interface types.
6718 * einfo.ads: Improve documentatation of Is_Internal
6719 (Is_Thunk): New attribute applicable to subprograms. True for thunks
6720 associated with interface types.
6721 Extensive comment fixes regarding flags that appear in all entities. The
6722 documentation is now consistent for all such flags (there were a number
6723 of errors in the documentation in this regard).
6725 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
6727 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
6728 of these procedures are passed a function call that already has
6729 build-in-place actuals (testing new flag
6730 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
6731 the case where processing continues.
6732 (Expand_Call): If the call is generated from a thunk body then we
6733 propagate the extra actuals associated with the accessibility
6734 level of the access type actuals.
6736 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
6737 of each extra formal of a protected operation to reference the
6738 corresponding extra formal of the subprogram denoted by the
6739 operation's Protected_Body_Subprogram.
6741 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
6742 N_Function_Call nodes.
6744 2007-09-26 Robert Dewar <dewar@adacore.com>
6746 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
6748 * debug.adb: Add d.s flag.
6750 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6752 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
6753 debug variable so that it won't be initialized when pragma
6754 Initialize_Scalars is in effect.
6756 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6758 * freeze.adb (Freeze_Entity): Remove check for preelaborable
6759 initialization of a full view. This is moved to
6760 Analyze_Package_Specification.
6762 * sem_ch7.adb (Analyze_Package_Specification): Add check for
6763 preelaborable initialization of a full view in entity loop.
6764 (Uninstall_Declarations): If entity is a use-visible compilation unit,
6765 its child units are use-visible only if they are visible child units.
6767 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
6768 whether an expression can be used within a type declaration that
6769 requires preelaborable init.
6770 (Check_Components): Replace inline code that does partial checking for
6771 preelaborable default expressions with call to
6772 Is_Preelaborable_Expression.
6773 (Has_Preelaborable_Initialization): In the case of a generic actual
6774 subtype, (that is, Is_Generic_Actual is True), return the result of
6775 applying Has_Preelaborable_Initialization to the generic actual's base
6778 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6780 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
6781 call to Jan_1_Day _Of_Week to optimize its performance.
6782 (Is_Leap): Move the routine to the scope of Week_In_Year.
6783 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
6784 weekday on which January 1 falls of Year - 1 and Year + 1. This function
6785 avoids calling Time_Of and Split, thus making it more efficent.
6786 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
6788 * g-calend.ads (Week_In_Year): Change comment to reflect new
6791 2007-09-26 Emmanuel Briot <briot@adacore.com>
6793 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
6794 Command_Line): New types
6795 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
6796 support for defining how switches can be grouped on a command line (as
6797 is the case for -gnatw... for GNAT), and how simple switches can be
6798 used as aliases for more complex switches (-gnatwa is same as
6800 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
6801 (Start, Current_*): New subprograms
6802 Added support for parsing an array of strings in addition to the real
6804 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
6805 be moved from the body to the private part of the spec.
6806 (*): All subprograms now have an extra parameter with default value to
6807 specify which parser should be used. For backward compatibility, it
6808 defaults to parsing the command line of the application. They were also
6809 modified to properly handle cases where each of the argument does not
6810 start at index 1 (which is always true for Ada.Command_Line, but not
6811 when processing any Argument_List).
6812 (Free): New subprogram
6813 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
6814 Argument): New subprograms
6815 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
6816 special characters like ':', '=',... are now handled in a single place,
6817 which makes the code more extensible eventually.
6818 (Getopt, Full_Switch): When the switch was returned as part of the
6819 special character '*', make sure it is prepended by the switch character
6820 ('-' in general), so that the application knows whether "foo" or "-foo"
6821 was specified on the command line.
6823 2007-09-26 Florian Villoing <villoing@adacore.com>
6825 * g-dirope.adb (Remove_Dir): In case we are removing directories
6826 recursively, make sure that if an exception is raised during the
6827 processing, the current working directory is reset to its initial
6828 value before propagating the exception.
6830 2007-09-26 Vincent Celier <celier@adacore.com>
6832 * gnatbind.adb: If there are several ALI files specified and there is
6833 a main program to bind, the first ALI is expected to contain the main
6834 subprogram and the names of the binder generated files will be derived
6835 from the first ALI file name.
6836 (Gnatbind): Fix insertion character in invocation of Error_Msg
6838 2007-09-26 Vincent Celier <celier@adacore.com>
6840 * gnatcmd.adb (Check_Files): Do not include sources that have been
6841 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
6843 2007-09-26 Ed Schonberg <schonberg@adacore.com>
6845 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
6846 information about each of its index types, following the type
6847 reference for its component type.
6849 2007-09-26 Vincent Celier <celier@adacore.com>
6851 * make.adb: (Kill): New procedure (__gnat_kill imported)
6852 (Running_Compile, Outstanding_Compiles): Global variables that
6853 were previously local to procedure Compile_Sources.
6854 (Sigint_Intercepted): Send signal SIGINT to all outstanding
6855 compilation processes.
6857 (Gnatmake): If project files are used, create the mapping of all the
6858 sources, so that the correct paths will be found.
6860 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
6862 2007-09-26 Vincent Celier <celier@adacore.com>
6864 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
6866 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
6867 Replace components Compiler_Min_Options and Binder_Min_Options with
6868 Compiler_Required_Switches and Binder_Required_Switches in record
6870 Remove components Default_Language and Config in Project_Tree_Data,
6873 * prj-attr.adb: New attributes Required_Switches (<language>) in
6874 packages Compiler and Binder.
6876 * prj-nmsc.adb: Major rewrite of the processing of configuration
6877 attributes for gprbuild. No impact on GNAT tools.
6879 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
6880 process configuration attributes: this is done in Prj.Nmsc.Check.
6881 (Recursive_Process): Make a full copy of packages inherited from project
6882 being extended, instead of a shallow copy.
6883 (Process_Project_Tree_Phase_1): New procedure
6884 (Process_Project_Tree_Phase_1): New procedure
6885 (Process): Implementation now uses the two new procedures
6887 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
6888 from the project config, not the tree config that no longer exists.
6890 2007-09-26 Vincent Celier <celier@adacore.com>
6892 * Make-lang.in: Update dependencies..
6894 2007-09-26 Vincent Celier <celier@adacore.com>
6896 * osint.adb, osint.ads: Minor reformatting
6898 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
6900 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6902 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
6903 message to cite use of <> in aggregate component associations rather
6904 than wrongly indicating use of limited aggregates.
6906 2007-09-26 Robert Dewar <dewar@adacore.com>
6908 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
6911 2007-09-26 Ed Schonberg <schonberg@adacore.com>
6913 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
6914 ancestor of the derived type, the operations are inherited from the
6915 primary dispatch table of the parent.
6916 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
6917 when the context is an explicit type conversion.
6919 2007-09-26 Ed Schonberg <schonberg@adacore.com>
6921 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
6922 rule for qualified expressions properly, to detect improper conversions
6923 and resolve some cases of overloading.
6925 2007-09-26 Ed Schonberg <schonberg@adacore.com>
6927 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
6928 proper kind of reference to the primitive operation, for better source
6930 (Valid_Conversion): A tagged conversion is legal if both operands are
6933 2007-09-26 Robert Dewar <dewar@adacore.com>
6935 * sem_warn.adb (Check_References): Catch more cases of unreferenced
6938 2007-09-26 Vincent Celier <celier@adacore.com>
6940 * snames.adb, snames.ads: Change Include_Option to Include_Switches
6942 2007-09-26 Robert Dewar <dewar@adacore.com>
6944 * s-wchstw.adb: provide messages for run time unit exceptions
6946 * a-witeio.adb: Minor reformatting
6948 * exp_ch13.adb: Minor reformatting
6950 2007-09-26 Sergey Rybin <rybin@adacore.com>
6952 * vms_data.ads: Revise gnatmetric qualifiers.
6953 Add qualified for the new gnatbind option '-y'
6955 * gnat_ugn.texi: Revise the gnatmetric section.
6956 Add entry for new gnatbind option '-y'.
6958 * gnat_rm.texi: Minor spelling correction.
6959 Document restriction on overlaying controlled types
6961 2007-09-26 Vincent Celier <celier@adacore.com>
6963 * makegpr.adb (Link_Executables): Do not fail when the root project has
6964 no sources, but is an extending project.
6966 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
6968 * trans.c: Fix misplaced #define.
6970 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
6972 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
6973 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
6975 2007-09-21 Olivier Hainque <hainque@adacore.com>
6977 * utils.c (type_for_nonaliased_component_p): Return false for
6978 all AGGREGATE_TYPEs.
6980 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
6982 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
6983 object covered by 13.3(19) volatile.
6985 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
6989 * utils.c (unchecked_convert): Use a subtype as the intermediate type
6990 in the special VIEW_CONVERT_EXPR case.
6992 2007-09-12 Robert Dewar <dewar@adacore.com>
6994 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
6996 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
6997 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
6998 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
6999 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
7000 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
7001 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
7002 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
7003 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
7004 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
7005 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
7006 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
7007 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
7008 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
7009 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
7010 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
7011 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
7012 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
7013 pragma Compiler_Unit and adds it to relevant library units.
7015 2007-09-12 Ed Schonberg <schonberg@adacore.com>
7017 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
7018 a box need not correspond to any component.
7020 2007-09-12 Robert Dewar <dewar@adacore.com>
7022 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
7023 the tasking version of the Ada run time when foreign threads are
7024 present and there are no explicit Ada tasks or tasking constructs.
7026 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
7028 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
7030 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
7031 the usage of switch -y.
7033 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
7034 when switch -y is present.
7036 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
7037 leap seconds in Ada.Calendar and its children.
7039 2007-09-12 Jose Ruiz <ruiz@adacore.com>
7041 * a-extiti.ads (Timer): The discriminant is a "not null access
7042 constant" in the Reference Manual.
7043 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
7045 2007-09-12 Robert Dewar <dewar@adacore.com>
7047 * a-swuwha.adb: Remove junk RM header
7049 2007-09-12 Vincent Celier <celier@adacore.com>
7051 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
7054 * g-bytswa.ads: Minor reformatting
7056 2007-09-12 Thomas Quinot <quinot@adacore.com>
7058 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
7059 Add new constant Thread_Blocking_IO, always True by default, set False
7060 on a per-runtime basis.
7061 (Need_Netdb_Buffer): New constant.
7063 2007-09-12 Arnaud Charlet <charlet@adacore.com>
7065 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
7066 Added renames for corresponding functions in System.Partition_Interface.
7068 2007-09-12 Doug Rupp <rupp@adacore.com>
7070 * Makefile.in: Remove VMS specific System.CRTL packages which are no
7073 * s-crtl-vms64.ads: Removed.
7075 2007-09-12 Olivier Hainque <hainque@adacore.com>
7077 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
7078 with discriminant constraints, generalize the code for BIT_FIELDs
7079 to PACKED fields of constant size and propagate DECL_PACKED.
7081 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
7083 * decl.c (array_type_has_nonaliased_component): New predicate.
7084 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
7085 set the TYPE_NONALIASED_COMPONENT flag on the type.
7086 <E_Array_Subtype>: Likewise.
7087 * gigi.h (type_for_nonaliased_component_p): Declare.
7088 * utils.c (type_for_nonaliased_component_p): New predicate.
7089 (create_field_decl): Invoke the above predicate to set the
7090 DECL_NONADDRESSABLE_P flag on the field.
7092 2007-09-11 Javier Miranda <miranda@adacore.com>
7094 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
7095 in library level record type entities if we are generating statically
7096 allocated dispatch tables.
7098 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
7099 importing/exporting the _tag declaration by new code
7100 importing/exporting the dispatch table wrapper. This change allows us
7101 to statically allocate of the TSD.
7102 (Make_DT.Export_DT): New procedure.
7103 (Build_Static_DT): New function.
7104 (Has_DT): New function.
7106 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
7107 True_Constant and Current_Value. Required to statically
7108 allocate the dispatch tables.
7109 (Check_Allocator): Make function iterative instead of recursive.
7110 Also return inner allocator node, when present, so that we do not have
7111 to look for that node again in the caller.
7113 2007-09-11 Jan Hubicka <jh@suse.cz>
7115 * misc.c (gnat_expand_body): Kill.
7116 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
7118 2007-09-10 Robert Dewar <dewar@adacore.com>
7120 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
7121 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
7122 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7123 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
7124 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
7125 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
7126 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
7127 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
7128 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
7129 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
7130 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
7131 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
7132 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
7133 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
7134 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
7135 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
7136 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
7137 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
7138 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
7139 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
7140 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
7141 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
7142 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
7143 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
7144 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
7145 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
7146 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
7147 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
7148 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
7149 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
7150 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
7151 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
7152 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
7153 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
7154 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
7155 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
7156 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
7157 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
7158 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
7159 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
7160 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
7161 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
7162 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
7163 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
7164 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
7165 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
7166 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
7167 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
7168 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
7169 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
7170 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
7171 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
7172 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
7173 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
7174 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
7175 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
7176 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
7177 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7178 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7179 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
7180 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
7181 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
7182 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
7183 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
7184 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
7185 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
7186 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
7187 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
7188 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
7189 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
7190 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
7191 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
7192 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
7193 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
7194 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
7195 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
7196 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
7197 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
7198 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
7199 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
7200 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
7201 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
7202 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
7204 2007-09-10 Emmanuel Briot <briot@adacore.com>
7206 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
7209 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
7211 * adaint.c (__gnat_translate_vms): new function.
7213 2007-09-10 Gary Dismukes <dismukes@adacore.com>
7214 Thomas Quinot <quinot@adacore.com>
7216 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
7217 create an abstract subprogram in the case of 'Input. For 'Output we now
7218 create a real spec/body when the type is abstract, since it can
7219 potentially be called.
7220 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
7221 body for 'Output when the type is abstract (only the creation of the
7222 body for 'Input is excluded when the type is abstract).
7223 (Stream_Operation_OK): Add an additional condition in the return
7224 statement, so that False will be returned for TTS_Stream_Input if the
7225 associated tagged type is an abstract extension. Add comments for
7227 (Expand_N_Object_Declaration): For the case of a shared passive
7228 variable, insert init proc call only after the shared variable
7229 procedures have been processed, because the IP call needs to undergo
7230 shared passive variable reference expansion, which requires these
7231 procedures to be available (and elaborated).
7233 2007-09-10 Vincent Celier <celier@adacore.com>
7235 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
7236 parameter Runtime_Project.
7238 2007-09-10 Ed Schonberg <schonberg@adacore.com>
7240 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
7241 given a box association, the type of the component is discriminated,
7242 and the value of the discriminant is the discriminant of the enclosing
7243 type, retrieve its value from the aggregate itself, where it must have
7246 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
7247 to remove other spurious ambiguities on arithmetic operations involving
7248 literals and addresses, on systems where Address is a visible integer
7249 type, when the operator is called in functional notation.
7250 (Try_Primitive_Operation): Within an instance, a call in prefixed form
7251 is legal when the types match, even if the operation is currently
7254 2007-09-10 Ed Schonberg <schonberg@adacore.com>
7256 * sem_ch12.adb (Build_Local_Package): A formal package with no
7257 associations is legal if all formals have defaults. It is not
7258 equivalent to a formal declared with a box.
7260 2007-09-10 Sergey Rybin <rybin@adacore.com>
7262 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
7264 2007-09-10 Sergey Rybin <rybin@adacore.com>
7266 * gnat_ugn.texi: Add description of the new '-lratio' option
7267 Update 7.3.1 section about availability of the feature.
7269 2007-09-10 Thomas Quinot <quinot@adacore.com>
7271 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
7274 2007-09-10 Olivier Hainque <hainque@adacore.com>
7276 * Makefile.in: (mips-irix section): Activate build of libgmem.
7278 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
7280 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
7283 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
7285 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
7286 a debug renaming declaration specially.
7288 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
7290 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
7291 which a constant renaming is treated as a normal object declaration.
7292 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
7293 the N_Indexed_Component case.
7294 <N_Indexed_Component>: Fall through to above case.
7295 <N_Object_Renaming_Declaration>: Return true for all composite types.
7297 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
7299 * decl.c (make_packable_type): If the new type has been given BLKmode,
7300 try again to get an integral mode for it.
7302 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
7304 Re-apply accidentally reverted change:
7306 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
7308 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7309 get_action_description_for): Replace _Unwind_Word with _uleb128_t
7310 and _Unwind_SWord with _sleb128_t.
7312 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
7314 * trans.c (convert_with_check): Update call to real_2expN.
7316 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
7318 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
7319 * utils.c (end_subprog_body): Likewise.
7321 2007-09-03 Nick Clifton <nickc@redhat.com>
7323 * Make-lang.in: Change copyright header to refer to version 3 of
7324 the GNU General Public License and to point readers at the
7325 COPYING3 file and the FSF's license web page.
7326 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
7327 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
7328 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
7329 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
7332 2007-08-31 Vincent Celier <celier@adacore.com>
7336 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
7337 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
7338 (Check_Version_And_Help): New procedure in package Switch to process
7339 switches --version and --help.
7340 Use Check_Version_And_Help in GNAT tools
7343 (Compile_Sources): Make sure that sources that are "excluded" are not
7345 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
7346 project file is used.
7347 (Version_Switch): Remove, moved to Switch
7348 (Help_Switch): Remove, moved to Switch
7349 (Display_Version): Remove, moved to Switch
7351 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
7352 package Switch to process switches --version and --help.
7353 (Display_Version): New procedure
7355 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
7357 2007-08-31 Javier Miranda <miranda@adacore.com>
7359 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
7362 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7364 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
7365 (Mark_Non_Null): If the node for which we just generated an access check
7366 is a reference to an *in* parameter and the reference appears in the
7367 declarative part of a subprogram body, mark the node as known non null.
7369 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7371 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
7372 structure of E_Exception to reflect the new flag.
7373 (Is_Raised, Set_Is_Raised): New inlined routines.
7374 Update the usage of available flag to reflect the addition of Is_Raised.
7375 (Is_Raised, Set_Is_Raised): Bodies of new routines.
7376 (Write_Entity_Flags): Write the status of flag Is_Raised.
7377 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
7378 spurious ambiguities when integer literals appear in the context of an
7379 address type that is a visible integer type.
7381 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
7382 exceptions never being raised.
7383 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
7386 2007-08-31 Javier Miranda <miranda@adacore.com>
7388 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
7389 statement when compiling under restriction No_Exceptions_Proparation.
7391 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7393 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
7394 initialization aggregate for the type, generate itype references for
7395 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
7397 2007-08-31 Gary Dismukes <dismukes@adacore.com>
7399 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
7400 library-level package renaming, pass the declaration associated with
7401 the renaming's special debug variable to Qualify_Entity_Names to ensure
7402 that its encoded name is properly qualified.
7404 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
7405 occurring in the list of entities to qualify, and do not attempt to
7406 traverse an entity list in that case. Variables associated with
7407 ` library-level package renamings can now occur in the table.
7409 * exp_dbug.ads: Revise documentation of the encoding for renaming
7412 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7414 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
7415 access type points to an unconstrained array.
7417 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7419 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
7422 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
7423 simple redundant qualifications. The check is performed whenever the
7424 expression is a non-overloaded identifier.
7425 (Resolve_Type_Conversion): Enchance the redundant type conversion check
7426 to include loop parameters.
7427 (Valid_Conversion): Avoid generation of spurious error message.
7429 2007-08-31 Bob Duff <duff@adacore.com>
7431 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
7432 concatenations of string literals into a single literal, in order to
7433 avoid very deep recursion in the front end, which was causing stack
7436 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
7437 string, and the right operand is a string literal (the case of "" &
7438 "..."), optimize by avoiding copying the right operand -- just use the
7439 value of the right operand directly.
7441 * stringt.adb (Store_String_Chars): Optimize by growing the
7442 String_Chars table all at once, rather than appending characters one by
7444 (Write_String_Table_Entry): If the string to be printed is very long,
7445 just print the first few characters, followed by the length. Otherwise,
7446 doing "pn(n)" in the debugger can take an extremely long time.
7448 * sem_prag.adb (Process_Interface_Name): Replace loop doing
7449 Store_String_Char with Store_String_Chars.
7451 2007-08-31 Vincent Celier <celier@adacore.com>
7453 * prj-attr.adb: Add new attribute Excluded_Source_Files
7455 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
7456 Locally_Removed_Files.
7458 * snames.ads, snames.adb: New standard name Excluded_Source_Files
7460 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7462 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
7463 clauses of subunits, ignore limited_with_clauses that are illegal and
7464 have not been fully analyzed.
7466 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7468 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
7469 flag, for effiency. It is called when analyzing arithmetic operators
7470 and also for actuals in calls that are universal_integers. The flag is
7471 set for the predefined type address, and for any type or subtype
7474 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
7475 Universal_Integer, when the formal is a descendent of address and the
7476 call appears in user code.
7477 (Analyze_Selected_Component): if the prefix is a private extension, the
7478 tag component is visible.
7480 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
7483 2007-08-31 Robert Dewar <dewar@adacore.com>
7485 * s-fileio.adb (Open): Normalize file name to lower case in non-case
7486 sensitive file name systems to avoid unexpected mismatch in Vista.
7488 2007-08-31 Vincent Celier <celier@adacore.com>
7490 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
7492 2007-08-31 Vincent Celier <celier@adacore.com>
7494 * symbols-vms.adb (Initialize): Read symbol files with continuation
7496 (Finalize): If symbol is long, split the line
7498 2007-08-31 Vincent Celier <celier@adacore.com>
7500 * fmap.ads: Minor comment updates
7502 2007-08-31 GNAT Script <nobody@adacore.com>
7504 * Make-lang.in: Makefile automatically updated
7506 2007-08-31 Bob Duff <duff@adacore.com>
7508 * sinfo.ads: Minor comment fix.
7510 2007-08-31 Thomas Quinot <quinot@adacore.com>
7512 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
7513 with implementation.
7514 Documentation cleanup only.
7516 2007-08-31 Sergey Rybin <rybin@adacore.com>
7518 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
7519 gnatpp '--separate-stmt-name' option.
7520 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
7523 * gnat_ugn.texi: Add description for the new gnatpp
7524 '--separate-stmt-name' and '--use-on-new-line' options.
7526 2007-08-31 Ben Elliston <bje@au.ibm.com>
7528 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7529 when compiling for powerpc64-*-linux.
7530 * system-linux-ppc64.ads: New file.
7532 2007-08-22 Krister Walfridsson <cato@df.lth.se>
7534 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
7537 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7539 * misc.c (gnat_type_max_size): Constify.
7541 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7543 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
7544 associated with Standard_Debug_Renaming_Type, to be used as the type of
7545 the special variables whose names provide debugger encodings for
7546 renaming declarations.
7548 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
7549 (Set_Debug_Renaming_Link): Change to set Node25.
7550 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
7551 (Write_Field25_Name): Add case for E_Variable to output
7552 "Debug_Renaming_Link".
7553 (Write_Field23_Name): Correct the output string for "Limited_View".
7555 * exp_dbug.adb: Add with and use of Tbuild.
7556 (Debug_Renaming_Declaration): Replace creation of an enumeration type
7557 and literal with creation of a variable of type
7558 Standard_Debug_Renaming_Type whose name encodes both the renamed object
7559 and the entity of the renaming declaration.
7560 (Qualify_Entity_Name): Add the delayed qualification of the entity name
7561 part of the name of a variable that has a Debug_Renaming_Link.
7563 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
7564 special type to be associated with variables that provide debugger
7565 encodings for renaming declarations.
7567 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7568 Ed Schonberg <schonberg@adacore.com>
7569 Javier Miranda <miranda@adacore.com>
7571 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
7572 ancestor part given by an aggregate to test for an unchecked conversion,
7573 since this can occur in some cases when the ancestor part is a function
7574 call, and we don't want to fall into the recursive call to this
7575 procedure in that case.
7577 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
7578 stream attributes on limited types to account for user-specified
7579 attributes as well as whether Input (resp. Output) becomes available
7580 due to Read (resp. Write) being available for the type. Change Boolean
7581 variable to the more accurate name
7582 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
7583 double-"not" predicate at beginning of return statement to more
7584 understandable form.
7586 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
7587 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
7588 in a block statement and use that as the first statement of the
7589 expanded return rather than incorrectly using the handled sequence as
7590 the first statement.
7592 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
7593 operation, generate an explicit freeze node for it rather than
7594 generating extra formals, to ensure that gigi has the proper order of
7595 elaboration for anonymous subtypes in the signature of the subprograms.
7596 (Build_In_Place_Formal): Move assertion to beginning of loop.
7597 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
7598 applied to a function call (occurs for some cases of 'Input).
7599 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
7600 applied to a function call (occurs for some cases of 'Input).
7602 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
7603 2005, generate an extended return statement enclosing the result object
7606 * freeze.adb (Freeze_Record_Type): Extend the current management of
7607 components that are access type with an allocator as default value: add
7608 missing support to the use of qualified expressions of the
7609 allocator (which also cause freezing of the designated type!)
7610 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
7611 dispatching operation, since extra formals may be needed by calls to
7612 build-in-place functions (such as stream 'Input).
7614 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
7615 formals for 'Constrained and accessibility level in the case of a
7616 predefined dispatching operation.
7618 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
7619 point, no need to find the parent node.
7621 2007-08-16 Javier Miranda <miranda@adacore.com>
7623 * exp_attr.adb (Attribute_Priority): Add missing support for entries
7626 2007-08-16 Javier Miranda <miranda@adacore.com>
7628 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
7629 is not really required and can introduce regression with the debugger.
7630 The original problem is fixed with the patch written for checks.adb.
7632 2007-08-16 Thomas Quinot <quinot@adacore.com>
7634 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
7635 Range_Check on Allocated_Table.
7637 2007-08-16 Vincent Celier <celier@adacore.com>
7639 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
7640 Including_Non_Switch set to False.
7641 (Gnatmake): For the compiler, call Test_If_Relative_Path with
7642 Including_Non_Switch set to False.
7644 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
7645 parameter Including_Non_Switch, defaulted to True. When
7646 Including_Non_Switch is False, options that are not switches and
7647 appear as relative path are not converted to absolute paths.
7649 2007-08-16 Nicolas Roche <roche@adacore.com>
7651 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
7654 * Make-lang.in: Update dependencies
7656 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
7658 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
7659 currently inspected is a selected component, retrieve the entity of
7661 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
7662 from the immediate ancestor of Main_Unit_Entity.
7663 (Install_Limited_Withed_Unit): Do not install the limited view of
7664 package P if P is reachable through an ancestor chain from package C
7665 and C also has a with clause for P in its body.
7666 (Has_Limited_With_Clause): New routine.
7667 (Has_With_Clause): New routine.
7669 2007-08-16 Ed Schonberg <schonberg@adacore.com>
7671 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
7672 generic for an enclosing instance is a global reference, even though
7673 its scope is the enclosing instance.
7675 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7676 Javier Miranda <miranda@adacore.com>
7678 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
7679 initialize a limited object.
7680 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
7682 Make sure Has_Complex_Representation is inherited by derived type.
7684 2007-08-16 Robert Dewar <dewar@adacore.com>
7686 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
7689 2007-08-16 Ed Schonberg <schonberg@adacore.com>
7691 * sem_disp.adb (Check_Dispatching_Operation): If the operation
7692 implements an operation inherited from a progenitor interface, verify
7693 that they are subtype-conformant.
7695 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
7696 Bob Duff <duff@adacore.com>
7697 Nicolas Setton <setton@adacore.com>
7699 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
7700 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
7701 the statement which is being resolved comes from a predefined library
7702 unit, all non-predefined library interpretations are skipped.
7703 (Resolve_Op_Concat): If string concatenation was folded in the parser,
7704 but the "&" is user defined, give an error, because the folding would
7707 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
7708 the parser has folded a long sequence of concatenations of string
7711 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
7712 and "JMP_BUF" variables as artificial.
7713 (N_String_Literal): Do not use alloca for very long string literals. Use
7714 xmalloc/free instead. Otherwise the stack might overflow.
7716 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
7719 2007-08-16 Vincent Celier <celier@adacore.com>
7721 * vms_conv.adb (Process_Argument): Ensure that project related options
7722 are not put in the -cargs section when using GNAT COMPILE.
7724 2007-08-16 Robert Dewar <dewar@adacore.com>
7726 * gnat_ugn.texi: Add note on preprocessing (output file not written)
7728 2007-08-16 Thomas Quinot <quinot@adacore.com>
7730 * a-tags.adb: Minor reformatting.
7732 2007-08-16 Bob Duff <duff@adacore.com>
7734 * sem_type.ads, sem_ch4.adb: Minor reformatting.
7736 2007-08-14 Thomas Quinot <quinot@adacore.com>
7738 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
7739 s-osinte-interix.ads, system-interix.ads: Removed.
7741 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7743 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
7744 calls to Check_Within_Time_Bounds.
7745 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
7746 (Difference): Account for possible rounding of the resulting difference
7748 2007-08-14 Robert Dewar <dewar@adacore.com>
7750 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
7751 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
7752 s-osinte-solaris.adb, s-osinte-solaris.ads,
7753 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
7755 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
7756 switch -gnatyS. Enable -gnatyS in GNAT style check mode
7758 2007-08-14 Robert Dewar <dewar@adacore.com>
7759 Ed Schonberg <schonberg@adacore.com>
7761 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
7762 Suppress unmodified in-out parameter warning in some cases
7763 This patch is a also fairly significant change to the way suppressible
7766 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
7767 needed for access to concurrent record types generated by the expander.
7768 (Generate_Range_Check): When generating a temporary to capture the
7769 value of a conversion that requires a range check, set the type of the
7770 temporary before rewriting the node, so that the type is always
7771 properly placed for back-end use.
7772 (Apply_Float_Conversion_Check): Handle case where the conversion is
7774 (Get_Discriminal): Code reformatting. Climb the scope stack looking
7775 for a protected type in order to examine its discriminants.
7777 2007-08-14 Robert Dewar <dewar@adacore.com>
7778 Gary Dismukes <dismukes@adacore.com>
7779 Ed Schonberg <schonberg@adacore.com>
7780 Thomas Quinot <quinot@adacore.com>
7782 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
7783 a-stwisu.adb, a-strsup.adb: Fix warnings for range
7784 tests optimized out.
7786 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
7787 (Get_Allocator_Final_List): For the case of an anonymous access type
7788 that has a specified Associated_Final_Chain, do not go up to the
7790 (Expand_N_Type_Conversion): Test for the case of renamings of access
7791 parameters when deciding whether to apply a run-time accessibility
7793 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
7794 aggregate code before allocator, and ahead of declaration for
7795 temporary, to prevent access before elaboration when the allocator is
7796 an actual for an access parameter.
7797 (Expand_N_Type_Conversion): On an access type conversion involving an
7798 access parameter, do not apply an accessibility check when the
7799 operand's original node was an attribute other than 'Access. We now
7800 create access conversions for the expansion of 'Unchecked_Access and
7801 'Unrestricted_Access in certain cases and clearly accessibility should
7802 not be checked for those.
7804 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
7805 includes a type conversion of a packed component that has been expanded,
7806 recover the original expression for the object, and use this expression
7807 in the post-call assignment statement, so that the assignment is made
7808 to the object and not to a back-end temporary.
7809 (Freeze_Subprogram): In case of primitives of tagged types not defined
7810 at the library level force generation of code to register the primitive
7811 in the dispatch table. In addition some code reorganization has been
7812 done to leave the implementation clear.
7813 (Expand_Call): When expanding an inherited implicit conversion,
7814 preserve the type of the inherited function after the intrinsic
7815 operation has been expanded.
7817 * exp_ch2.ads, exp_ch2.adb
7818 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
7819 of an entry formal appearing in an assignment statement does not assign
7821 (Expand_Current_Value): Instead of calling a routine to determine
7822 whether the prefix of an attribute reference should be optimized or
7823 not, prevent the optimization of such prefixes all together.
7825 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
7826 component whose prefix is known to be of an access type is an implicit
7827 dereference and does not assign to the prefix.
7829 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7830 Robert Dewar <dewar@adacore.com>
7832 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
7833 itype is visited, make an entry into table to link associated node and
7835 Add comments and correct harmless error in Build_NCT_Hash_Tables
7836 (Array_Aggr_Subtype): Associate each itype created for an index type to
7837 the corresponding range construct, and not to the aggregate itself. to
7838 maintain a one-to-one correspondence between itype and its associated
7839 node, to prevent errors when complex expression is copied.
7840 Fix mishandling of multiple levels of parens
7842 * sem_aggr.adb: Create a limited view of an incomplete type, to make
7843 treatment of limited views uniform for all visible declarations in a
7844 limited_withed package.
7845 (New_Copy_Tree): If hash table is being used and itype is visited,
7846 make an entry into table to link associated node and new itype.
7847 (Resolve_Record_Aggregate): Do not add an others box association for a
7848 discriminated record component that has only discriminants, when there
7849 is a box association for the component itself.
7851 * par-ch4.adb: Fix mishandling of multiple levels of parens
7853 2007-08-14 Robert Dewar <dewar@adacore.com>
7855 * comperr.adb: Fix problem with suppressing warning messages from gigi
7857 * erroutc.ads, erroutc.adb, errout.ads,
7858 errout.adb (Write_Eol): Remove trailing spaces before writing the line
7859 (Write_Eol_Keep_Blanks): New procedure to write a line, including
7860 possible trailing spaces.
7861 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
7862 Fix problem with suppressing warning messages from back end
7863 Improve handling of deleted warnings
7866 Fix problem with suppressing warning messages from back end
7867 Handle setting of Static_Dispatch_Tables flag.
7870 Fix problem with suppressing warning messages from back end
7872 * exp_intr.adb: Improve handling of deleted warnings
7874 2007-08-14 Robert Dewar <dewar@adacore.com>
7876 * debug.adb: Improve -gnatdI to cover all cases of serialization
7877 Add documentation of dZ, d.t
7879 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
7881 (Sprint_Node_Actual): Generate new output associated with implicit
7882 importation and implicit exportation of object declarations.
7884 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7885 Robert Dewar <dewar@adacore.com>
7886 Javier Miranda <miranda@adacore.com>
7887 Gary Dismukes <dismukes@adacore.com>
7889 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
7890 to make treatment of limited views uniform for all visible declarations
7891 in a limited_withed package.
7892 Improve warnings for in out parameters
7893 (Set_Related_Interaface/Related_Interface): Allow the use of this
7894 attribute with constants.
7895 (Write_Field26_Name): Handle attribute Related_Interface in constants.
7896 Warn on duplicate pragma Preelaborable_Initialialization
7898 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
7899 generation of a freezing node to ensure proper management of null
7900 excluding access types in the backend.
7901 (Create_Extra_Formals): Test base type of the formal when checking for
7902 the need to add an extra accessibility-level formal. Pass the entity E
7903 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
7904 originally being done in a couple of cases), to ensure that the
7905 Extra_Formals list gets set on the entity E when the first entity is
7907 (Conforming_Types): Add missing calls to Base_Type to the code that
7908 handles anonymous access types. This is required to handle the
7909 general case because Process_Formals builds internal subtype entities
7910 to handle null-excluding access types.
7911 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
7912 functions that need it, even when not marked Requires_Overriding.
7913 Improve warnings for in out parameters
7914 (Analyze_Function_Return): Warn for disallowed null return
7915 Warn on return from procedure with unset out parameter
7916 Ensure consistent use of # in error messages
7917 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
7918 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
7919 the implicit conversion of the expression done for anonymous access
7920 types. This is required to generate the code of the null excluding
7921 check (if required).
7923 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
7924 A formal parameter is never publicly referenceable outside of its body.
7925 (Check_References): For an unreferenced formal parameter in an accept
7926 statement, use the same warning circuitry as for subprogram formal
7928 (Warn_On_Unreferenced_Entity): New subprogram, taken from
7929 Output_Unreferenced_Messages, containing the part of that routine that
7930 is now reused for entry formals as described above.
7931 (Goto_Spec_Entity): New function
7932 (Check_References): Do not give IN OUT warning for dispatching operation
7933 Improve warnings for in out parameters
7934 (Test_Ref): Check that the entity is not undefinite before calling
7935 Scope_Within, in order to avoid infinite loops.
7936 Warn on return from procedure with unset out parameter
7937 Improved warnings for unused variables
7939 2007-08-14 Robert Dewar <dewar@adacore.com>
7940 Javier Miranda <miranda@adacore.com>
7941 Gary Dismukes <dismukes@adacore.com>
7943 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
7944 (Expand_N_Attribute_Reference): Further unify the handling of the
7945 three forms of access attributes, using common code now for all three
7946 cases. Add a test for the case of applying an access attribute to
7947 an explicit dereference when the context is an access-to-interface
7948 type. In that case we need to apply the conversion to the prefix
7949 of the explicit dereference rather than the prefix of the attribute.
7950 (Attribute_Version, UET_Address): Set entity as internal to ensure
7951 proper dg output of implicit importation.
7952 (Expand_Access_To_Type): Removed.
7953 (Expand_N_Attribute_Reference): Merge the code from the three cases
7954 of access attributes, since the processing is largely identical for
7955 these cases. The substantive fix here is to process the case of a
7956 type name prefix (current instance case) before handling the case
7957 of interface prefixes.
7959 2007-08-14 Thomas Quinot <quinot@adacore.com>
7960 Ed Schonberg <schonberg@adacore.com>
7961 Javier Miranda <miranda@adacore.com>
7962 Robert Dewar <dewar@adacore.com>
7964 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
7965 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
7966 type that is an anonymous access to controlled object, establish
7967 an associated finalization chain to avoid corrupting the global
7968 finalization list when a dynamically allocated object designated
7969 by such a component is deallocated.
7970 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
7971 functions that need it, even when not marked Requires_Overriding.
7972 (Initialize_Tag): Replace call to has_discriminants by call to
7973 Is_Variable_Size_Record in the circuitry that handles the
7974 initialization of secondary tags.
7975 (Is_Variable_Size_Record): New implementation.
7976 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
7977 Suppress_Initialization pragma for a derived type.
7978 (Is_Variable_Size_Record): New subprogram.
7979 (Build_Offset_To_Top_Functions): New implementation that simplifies the
7980 initial version of this routine and also fixes problems causing
7981 incomplete initialization of the table of interfaces.
7982 (Build_Init_Procedure): Improve the generation of code to initialize the
7983 the tag components of secondary dispatch tables.
7984 (Init_Secondary_Tags): New implementation that simplifies the previous
7985 version of this routine.
7986 (Make_DT): Add parameter to indicate when type has been frozen by an
7987 object declaration, for diagnostic purposes.
7988 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
7989 diagnose attemps to freeze a subprogram when some untagged type of its
7990 profile is a private type whose full view has not been analyzed yet.
7991 (Freeze_Array_Type): Generate init proc for packed array if either
7992 Initialize or Normalize_Scalars is set.
7993 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
7994 constructing the new profile, copy the null_exclusion indicator for each
7995 parameter, to ensure full conformance of the new body with the spec.
7997 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
7998 Create wrappers for constructor functions that need it, even when not
7999 marked Requires_Overriding.
8000 (Covers): Handle properly designated types of anonymous access types,
8001 whose non-limited views are themselves incomplete types.
8002 (Add_Entry): Use an entity to store the abstract operation which hides
8004 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
8005 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
8006 initialization aggregate.
8007 (Function_Interp_May_Be_Hidden): Rename to
8008 Function_Interp_Has_Abstract_Op.
8009 (Has_Compatible_Type): Remove machinery that skips interpretations if
8010 they are labeled as potentially hidden by an abstract operator.
8011 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
8012 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
8013 (Write_Overloads): Output the abstract operator if present.
8014 (Add_Entry): Before inserting a new entry into the interpretation table
8015 for a node, determine whether the entry will be disabled by an abstract
8017 (Binary_Op_Interp_May_Be_Hidden): New routine.
8018 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
8020 (Function_Interp_May_Be_Hidden): New routine.
8021 (Has_Compatible_Type): Do not consider interpretations hidden by
8022 abstract operators when trying to determine whether two types are
8024 (Has_Hidden_Interp): New routine.
8025 (Set_May_Be_Hidden_Interp): New routine.
8026 (Write_Overloads): Write the status of flag May_Be_Hidden.
8028 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8029 Javier Miranda <miranda@adacore.com>
8031 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
8032 types declared in the declarative part of a nested package body or in
8033 the proper body of a stub.
8034 (Set_All_DT_Position): Add missing check to avoid wrong assignation
8035 of the same dispatch table slot to renamed primitives.
8036 (Make_Select_Specific_Data_Table): Handle private types.
8037 (Tagged_Kind): Handle private types.
8038 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
8039 output of implicit importation and exportation.
8040 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
8041 first formal of the thunk is always associated with the controlling
8042 type. In addition perform the following code cleanup: remove formal
8043 Thunk_Alias which is no longer required, cleanup evaluation of the
8044 the controlling type, and update the documentation.
8045 Replace occurrence of Default_Prim_Op_Count by
8046 Max_Predef_Prims. Addition of compile-time check to verify
8047 that the value of Max_Predef_Prims is correct.
8048 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
8049 (Make_DT): Add parameter to indicate when type has been frozen by an
8050 object declaration, for diagnostic purposes.
8051 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
8052 construction of statically allocated dispatch tables.
8053 (Make_DT): In case of library-level tagged types export the declaration
8054 of the primary tag. Remove generation of tags (now done by Make_Tags).
8055 Additional modifications to handle non-static generation of dispatch
8056 tables. Take care of building tables for asynchronous interface types
8057 (Make_Tags): New subprogram that generates the entities associated with
8058 the primary and secondary tags of Typ and fills the contents of Access_
8059 Disp_Table. In case of library-level tagged types imports the forward
8060 declaration of the primary tag that will be declared later by Make_DT.
8061 (Expand_Interface_Conversion): In case of access types to interfaces
8062 replace an itype declaration by an explicit type declaration to avoid
8063 problems associated with the scope of such itype in transient blocks.
8065 2007-08-14 Robert Dewar <dewar@adacore.com>
8066 Ed Schonberg <schonberg@adacore.com>
8067 Javier Miranda <miranda@adacore.com>
8069 * exp_util.ads, exp_util.adb:
8070 This patch replaces a number of occurrences of explicit tests for N_Null
8071 with calls to Known_Null. This improves tracking of null values, since
8072 Known_Null also catches null constants, and variables currently known to
8073 be null, so we get better tracking.
8074 (Ensure_Defined): create an itype reference only in the scope of the
8076 (Side_Effect_Free): A selected component of an access type that
8077 denotes a component with a rep clause must be treated as not
8078 side-effect free, because if it is part of a linked structure its
8079 value may be affected by a renaming.
8080 (Expand_Subtype_From_Expr): For limited objects initialized with build
8081 in place function calls, do nothing; otherwise we prematurely introduce
8082 an N_Reference node in the expression initializing the object, which
8083 breaks the circuitry that detects and adds the additional arguments to
8084 the called function. Bug found working in the new patch for statically
8085 allocated dispatch tables.
8086 (Is_Library_Level_Tagged_Type): New subprogram.
8087 (Remove_Side_Effects): If the expression of an elementary type is an
8088 operator treat as a function call.
8089 (Make_Literal_Range): If the index type of the array is not integer, use
8090 attributes properly to compute the constraint on the resulting aggregate
8093 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
8094 class-wide type whose base type is an incomplete private type, leave
8095 class-wide type unfrozen so that freeze nodes can be generated
8096 properly at a later point.
8097 (Freeze_Entity, array case): Handle case of pragma Pack and component
8098 size attributre clause for same array.
8100 2007-08-14 Vincent Celier <celier@adacore.com>
8102 * prj.ads, prj.adb: Update Project Manager to new attribute names for
8104 Allow all valid declarations in configuration project files
8105 (Reset): Initialize all tables and hash tables in the project tree data
8106 Major update of the Project Manager and of the project aware tools,
8107 including gprmake, so that the same sources in the GNAT repository
8108 can be used by gprbuild.
8109 (Slash_Id): Change type to be Path_Name_Type
8110 (Slash): Return a Path_Name_Type instead of a File_Name_Type
8112 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
8114 Update Project Manager to new attribute names for ghprbuild
8115 Allow all valid declarations in configuration project files
8116 Major update of the Project Manager and of the project aware tools,
8117 including gprmake, so that the same sources in the GNAT repository
8118 can be used by gprbuild.
8121 Major update of the Project Manager and of the project aware tools,
8122 including gprmake, so that the same sources in the GNAT repository
8123 can be used by gprbuild.
8125 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8126 insensitive flag for attributes with optional index.
8127 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8128 array attribute, put the index in lower case.
8129 Update Project Manager to new attribute names for ghprbuild
8130 Allow all valid declarations in configuration project files
8131 Major update of the Project Manager and of the project aware tools,
8132 including gprmake, so that the same sources in the GNAT repository
8133 can be used by gprbuild.
8135 * prj-env.ads, prj-env.adb:
8136 Major update of the Project Manager and of the project aware tools,
8137 including gprmake, so that the same sources in the GNAT repository
8138 can be used by gprbuild.
8139 (Get_Reference): Change type of parameter Path to Path_Name_Type
8141 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
8142 removing '-' from the path to start with the first character of the
8144 Major update of the Project Manager and of the project aware tools,
8145 including gprmake, so that the same sources in the GNAT repository
8146 can be used by gprbuild.
8147 Major update of the Project Manager and of the project aware tools,
8148 including gprmake, so that the same sources in the GNAT repository
8149 can be used by gprbuild.
8151 * prj-nmsc.ads, prj-nmsc.adb:
8152 Update Project Manager to new attribute names for ghprbuild
8153 Allow all valid declarations in configuration project files
8154 (Search_Directories): Detect subunits that are specified with an
8155 attribute Body in package Naming. Do not replace a source/unit in the
8156 same project when the order of the source dirs are known. Detect
8157 duplicate sources/units in the same project when the order of the
8158 source dirs are not known.
8159 (Check_Ada_Name): Allow all identifiers that are not reserved words
8161 Major update of the Project Manager and of the project aware tools,
8162 including gprmake, so that the same sources in the GNAT repository
8163 can be used by gprbuild.
8164 (Look_For_Sources): If the list of sources is empty, set the object
8165 directory of non extending project to nil.
8166 Change type of path name variables to be Path_Name_Type
8167 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
8168 otherwise creating missing directories will fail.
8170 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
8171 prj-part.ads, prj-part.adb:
8172 Major update of the Project Manager and of the project aware tools,
8173 including gprmake, so that the same sources in the GNAT repository
8174 can be used by gprbuild.
8176 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8177 insensitive flag for attributes with optional index.
8178 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8179 array attribute, put the index in lower case.
8180 (Parse_Variable_Reference): Allow the current project name to be used in
8181 the prefix of an attribute reference.
8183 * prj-util.ads, prj-util.adb
8184 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
8185 defaulted to False. When True, always check against indexes in lower
8188 * snames.ads, snames.h, snames.adb:
8189 Update Project Manager to new attribute names for gprbuild
8190 Allow all valid declarations in configuration project files
8192 2007-08-14 Robert Dewar <dewar@adacore.com>
8193 Ed Schonberg <schonberg@adacore.com>
8195 * opt.ads: Warning for non-local exception propagation now off by
8197 New switch -gnatI to disable representation clauses
8198 Implement new pragma Implicit_Packing
8201 Warning for non-local exception propagation now off by default
8202 Add warning for unchecked conversion of pointers wi different
8204 New switch -gnatI to disable representation clauses
8206 * usage.adb: new switch -gnatyS
8208 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
8209 note that aggregates of anonymous array types are not flagged.
8210 -gnatwc now includes membership tests optimized away
8211 -gnatw.x warnings are now off by default
8212 Added conditional compilation Appendix
8213 Add documentation of -gnatI
8214 Add documentation for new -gnatyS style check
8215 Update documentation about SAL and auto-init on Windows.
8218 Add documentation for pragma Check_Name and 'Enabled attribute
8219 Document that Eliminate on dispatching operation is ignored
8220 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
8221 Document pragma Main
8222 Document pragma Implicit_Packing
8224 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
8225 different conventions
8226 New switch -gnatI to disable representation clauses
8228 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
8229 recognized, report the invalid characters including "-gnat" instead of
8230 just the first character in the switch.
8231 New switch -gnatI to disable representation clauses
8232 Set Warn_On_Object_Renames_Function true for -gnatg
8234 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
8235 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
8236 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
8237 to switch -aP (add directory to project search dir).
8239 * par-prag.adb: Implement new pragma Implicit_Packing
8241 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
8242 type as having a non-standard representation, to force expansion on
8243 conversion to related types.
8244 (Analyze_Pragma): Warn on misspelled pragma
8245 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
8246 Ensure consistent use of # in error messages
8247 Implement pragma Implicit_Packing
8249 2007-08-14 Olivier Hainque <hainque@adacore.com>
8250 Eric Botcazou <ebotcazou@adacore.com>
8252 * targtyps.c (get_target_maximum_default_alignment): New function.
8254 that the compiler might choose by default for a type or object.
8255 (get_target_default_allocator_alignment): New function. Alignment known
8256 to be honored by the target default allocator.
8257 (get_target_maximum_allowed_alignment): New function. Maximum alignment
8258 we might accept for any type or object on the target.
8259 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
8261 * gigi.h (get_target_maximum_default_alignment): Declare new function.
8262 (get_target_default_allocator_alignment): Likewise.
8263 (get_target_maximum_allowed_alignment): Likewise.
8266 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
8267 result of a function call, first try to use a stabilized reference for
8268 a constant renaming too.
8269 (validate_alignment): Use target_maximum_allowed_alignment instead of
8270 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
8271 (gnat_to_gnu_entity): Use common nodes directly.
8272 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
8273 alignment and size for the object.
8274 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
8275 and N_Procedure_Call_Statement.
8276 (takes_address): Rename to lvalue_required_p, add third parameter
8277 'aliased' and adjust recursive calls.
8278 <N_Indexed_Component>: Update 'aliased' from the array type.
8279 <N_Selected_Component>: New case.
8280 <N_Object_Renaming_Declaration>: New Likewise.
8281 (Identifier_to_gnu): Adjust for above changes.
8282 (maybe_stabilize_reference) <CONST_DECL>: New case.
8284 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
8285 between type variants.
8286 (build_simple_component_ref): Likewise.
8287 (build_call_alloc_dealloc): Use target_default_allocator_alignment
8288 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
8289 aligning type circuitry for allocations from the default storage pool.
8290 (build_allocator): Likewise.
8291 (build_simple_component_ref): Manually fold the reference for a
8292 constructor if the record type contains a template.
8294 * utils.c (value_zerop): Delete.
8295 (gnat_init_decl_processing): Emit debug info for common types.
8296 (rest_of_record_type_compilation): If a union contains a field
8297 with a non-constant qualifier, treat it as variable-sized.
8298 (finish_record_type): Give the stub TYPE_DECL a name.
8299 (rest_of_record_type_compilation): Likewise.
8300 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
8301 types are equivalent array types.
8302 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
8303 even if the type is not passed by reference.
8304 (static_ctors, static_dtors): Delete.
8305 (end_subprog_body): Do not record constructors and destructors.
8306 (build_global_cdtor): Delete.
8307 (gnat_write_global_declarations): Do not call build_global_cdtor.
8309 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
8310 -fRTS=rtp is specified.
8311 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
8314 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
8315 of the personality function with SJLJ exceptions.
8317 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
8318 the name of the personality function with SJLJ exceptions.
8320 2007-08-14 Robert Dewar <dewar@adacore.com>
8321 Ed Schonberg <schonberg@adacore.com>
8323 * par.ads, par.adb: Improve handling of extra right parens.
8324 (Par): Remove flag From_Limited_With_Clause.
8326 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
8327 Improve handling of extra right parens.
8329 2007-08-14 Robert Dewar <dewar@adacore.com>
8331 * par-tchk.adb (TF_Semicolon): Improve error recovery
8333 2007-08-14 Robert Dewar <dewar@adacore.com>
8334 Ed Schonberg <schonberg@adacore.com>
8336 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
8337 enumeration type, mark all literals as referenced.
8338 (Eval_Attribute, case 'Image): If the argument is an enumeration
8339 literal and names are available, constant-fold but mark nevertheless as
8341 Clean up function names.
8342 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
8344 (Requires_Simple_Name_Prefix): Removed.
8346 2007-08-14 Robert Dewar <dewar@adacore.com>
8347 Ed Schonberg <schonberg@adacore.com>
8349 * sem_ch11.adb: Improved warnings for unused variables
8351 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
8352 is a synchronized interface, the derived type is limited.
8353 (Analyze_Object_Declaration): Mark the potential coextensions in the
8354 definition and expression of an object declaration node.
8355 (Build_Derived_Type): For the completion of a private type declaration
8356 with a derived type declaration, chain the parent type's representation
8357 items to the last representation item of the derived type (not the
8358 first one) if they are not present already.
8359 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
8360 object declaration of forward references to tags.
8361 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
8362 subprogram types can appear as access discriminants of synchronized
8364 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
8365 given in prefixed form as a selected component.
8366 (Process_Discriminants): If not all discriminants have defaults, place
8367 error message on a default that is present.
8368 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
8369 extend a synchronized tagged type.
8370 Improved warnings for unused variables
8371 (Is_Visible_Component): Fix a visibility hole on a component inherited
8372 by a private extension when parent is itself declared as a private
8373 extension, and the derivation is in a child unit.
8374 (Find_Hidden_Interface): Move spec from the package body.
8376 2007-08-14 Robert Dewar <dewar@adacore.com>
8377 Ed Schonberg <schonberg@adacore.com>
8379 * sem_ch5.adb: Improve warnings on redundant assignments
8381 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
8383 (Is_Synchronized_Tagged_Type): New subprogram that returns true
8384 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
8385 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
8386 is set to False. Improves handling of Known_[Not_]Null.
8387 (Wrong_Type): Special case address arithmetic attempt
8388 (Collect_Abstract_Interfaces): Add new formal to allow collecting
8389 abstract interfaces just using the partial view of private types.
8390 (Has_Abstract_Interfaces): Add new formal to allow checking types
8391 covering interfaces using the partial view of private types.
8392 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
8393 component still needs to be defined in this case, but is never
8394 initialized as VMs are using other dispatching mechanisms.
8395 (Abstract_Interface_List): For a protected type, use base type to get
8397 Improve warnings on redundant assignments
8398 (Is_Variable): Handle properly an implicit dereference of a prefixed
8400 (Build_Actual_Subtype): If this is an actual subtype for an
8401 unconstrained formal parameter, use the sloc of the body for the new
8402 declaration, to prevent anomalises in the debugger.
8404 2007-08-14 Robert Dewar <dewar@adacore.com>
8406 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
8407 dispatching operation
8409 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8410 Gary Dismukes <dismukes@adacore.com>
8413 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
8414 expanded aggregate code before allocator, and ahead of declaration for
8415 temporary, to prevent access before elaboration when the allocator is
8416 an actual for an access parameter.
8417 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
8418 the TSD and the table of interfaces.
8419 (Convert_To_Assignments): Augment the test for delaying aggregate
8420 expansion for limited return statements to include the case of extended
8421 returns, to prevent creation of an unwanted transient scope.
8422 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
8423 (Expand_Array_Aggregate): Handle aggregates associated with
8424 statically allocated dispatch tables.
8425 (Expand_Record_Aggregate): Handle aggregates associated with
8426 statically allocated dispatch tables.
8427 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
8428 of anonymous access type.
8430 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8432 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
8433 is a variable that renames a slice, use the variable itself in the
8434 expannsion when the renamed expression itself may be modified between
8435 the declaration of the renaming and the array assignment.
8437 2007-08-14 Jerome Guitton <guitton@adacore.com>
8439 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8440 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
8441 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
8442 New functions; dummy implementations.
8444 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
8445 functions, used to implement the multi-tasks mode routines on VxWorks.
8447 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
8449 binding to the VxWorks routines which have changed between VxWorks 5
8451 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
8452 which are not callable from a RTP.
8454 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
8455 implemented for the multi-tasks mode on VxWorks 5 and 6.
8457 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
8459 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
8462 2007-08-14 Vincent Celier <celier@adacore.com>
8464 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
8465 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
8466 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
8467 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8468 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8469 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
8470 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
8472 (Major_Id_Name): New function.
8473 mlib-tgt.ads/mlib.tgt.adb:
8474 (Library_Major_Minor_Id_Supported): New function, default returns True
8475 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
8476 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
8477 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
8478 Implementation of Library_Major_Minor_Id_Supported returns False
8480 (Clean_Library_Directory): If major/minor ids are supported, clean all
8482 Major update of the Project Manager and of the project aware tools,
8483 including gprmake, so that the same sources in the GNAT repository
8484 can be used by gprbuild.
8486 2007-08-14 Olivier Hainque <hainque@adacore.com>
8488 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
8489 (GCC_ZCX_Support): Switch to True.
8491 * s-intman-solaris.adb (Notify_Exception): Call
8492 Adjust_Context_For_Raise before raising, as expected for signal
8493 handlers in general.
8495 * s-intman-posix.adb (Notify_Exception): Remove declaration of
8496 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
8497 to other implementation bodies.
8499 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
8500 be visible by multiple implementation bodies.
8502 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
8503 only for conditions coming from hardware.
8504 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
8505 adjustments to signal context prior to exception raise from signal
8507 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
8509 Solaris section: (__gnat_adjust_context_for_raise): New function.
8510 Implementation of the machine context adjustments to perform prior to
8511 raise from a signal handler. Version for both sparc and x86.
8512 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
8513 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
8514 prior to raising as expected for any handler, before possible nested
8515 faults to make sure all the contexts in a chain have been adjusted by
8516 the time we propagate.
8518 2007-08-14 Pascal Obry <obry@adacore.com>
8520 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
8521 (SYSTEM_INFO): New record.
8522 (SetThreadIdealProcessor): New imported routine needed for supporting
8523 task_info pragma on Windows.
8525 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
8526 info can be applied to the current host.
8527 (Create_Task): Set the ideal processor if information is present.
8529 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
8530 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
8532 2007-08-14 Olivier Hainque <hainque@adacore.com>
8534 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
8535 stack size and initial stack pointer value for a given task.
8536 (Enter_Task): Get the stack attributes of the task we are entering and
8537 let the stack checking engine know about them.
8539 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
8540 Let the stack-checking engine know about the initial sp value and stack
8541 size associated with the current task.
8542 (Set_Stack_Info): If a stack base has been notified for the current
8543 task, honor it. Fallback to the previous less accurate method otherwise.
8545 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
8547 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8549 * sem_ch10.adb: Create a limited view of an incomplete type, to make
8550 treatment of limited views uniform for all visible declarations in a
8551 limited_withed package.
8552 Set flag indicating that a subprogram body for a child unit has a
8554 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
8555 separate declaration, remove the unit name from visibility after
8556 compilation, so that environment is clean for subsequent compilations.
8557 (Install_Limited_Context_Clauses): Do not install a
8558 limited_private_with_clause unless the current unit is a body or a
8560 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
8561 in the same fashion.
8562 (Install_Limited_Withed_Unit): Do not install a limited with clause if
8563 it applies to the declaration of the current package body.
8564 (Remove_Private_With_Clauses): If there is a regular with_clause for
8565 the unit, delete Private_With_Clause from context, to prevent improper
8566 hiding when processing subsequent nested packages and instantiations.
8568 2007-08-14 Jose Ruiz <ruiz@adacore.com>
8570 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
8571 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
8572 representing absolute path names.
8573 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
8575 * cstreams.c (__gnat_full_name for VxWorks): Use
8576 __gnat_is_absolute_path to detect whether we need to add the current
8577 directory to normalize the path.
8579 2007-08-14 Javier Miranda <miranda@adacore.com>
8582 a-tags.adb (Displace): Associate a message with the raised CE
8584 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
8585 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
8586 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
8588 (Default_Prim_Op_Count): Removed.
8589 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
8590 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
8591 Remove pragma Inline_Always.
8593 * rtsfind.ads (Default_Prim_Op_Count): Removed
8594 (Max_Predef_Prims): New entity
8595 (RE_Expanded_Name): Removed
8596 (RE_HT_Link): Removed
8597 (RE_Iface_Tag): Remmoved
8598 (RE_Ifaces_Table): Removed
8599 (RE_Interfaces_Array): Removed
8600 (RE_Interface_Data_Element): Removed
8601 (RE_Nb_Ifaces): Removed
8602 (RE_RC_Offset): Removed
8603 (RE_Static_Offset_To_Top): Removed
8605 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
8607 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
8608 Prim_Op_Count by Max_Predef_Prims.
8610 2007-08-14 Thomas Quinot <quinot@adacore.com>
8611 Vincent Celier <celier@adacore.com>
8613 * binde.adb (Elab_All_Links): Remove unnecessary call to
8614 Generic_Separately_Compiled (if a unit satisfies this predicate, there
8615 won't be an associated Afile).
8616 (Elab_All_Links): Fail if a referenced unit cannot be found
8619 Fix comments in bindgen regarding consistency checks done in Bcheck:
8620 the checks are made across units within a partition, not across several
8622 Fix generation of C binder file for VxWorks.
8624 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
8625 Generic_May_Lack_ALI, more descriptive of the current use of the
8626 predicate, and update documentation.
8628 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
8629 reorganization and documentation update for the case of predefined
8630 library generics (for which we do not reference an Afile).
8632 2007-08-14 Robert Dewar <dewar@adacore.com>
8634 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
8635 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
8636 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
8637 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
8638 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
8639 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
8640 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
8641 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
8642 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
8643 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
8644 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
8645 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
8646 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
8647 g-altcon.adb: Minor reformatting
8649 ada-tree.h: Delete empty line.
8651 ali.ads: Minor reformatting
8652 Clarification of comments.
8653 Minor spelling correction
8655 * exp_dbug.adb: Add Warnings Off to suppress new warning
8657 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8660 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
8663 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
8665 * a-textio.ads: Reorder the standard input/output/error declarations
8668 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
8670 * par-ch2.adb: Recognize RM specially in errout
8671 Change 'R'M to RM in all error messages
8673 * scng.adb: Recognize RM specially in errout
8675 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
8676 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
8678 * s-direio.adb: Add missing routine header box.
8680 * sem_attr.ads: Add ??? comments
8682 * sem_eval.adb: Recognize RM specially in errout
8683 Change 'R'M to RM in all error messages
8685 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
8687 * s-tasinf.ads: Fix minor comment typo.
8689 * a-cihama.adb: Minor comment addition
8691 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8694 * s-tasinf-tru64.ads: Fix minor comment typo.
8696 * itypes.ads: Comment update.
8698 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
8701 * argv.c: Added protection against null gnat_argv and gnat_envp.
8703 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
8704 warning message when Tolerate_Consistency_Errors is True.
8706 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
8707 Any_Id, as this subprogram is only applicable to *type* entities (it
8708 sets RM_Size). Instead initialize just Esize and Alignment.
8710 2007-08-14 Bob Duff <duff@adacore.com>
8712 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
8713 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
8714 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
8715 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
8716 a-coorse.ads (Next): Applied pragma Inline.
8717 Make all Containers packages Remote_Types (unless they are already
8719 (Previous): applied pragma Inline
8720 (Elements_Type): is now a record instead of an array
8722 2007-08-14 Thomas Quinot <quinot@adacore.com>
8724 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
8726 (Set_Item): When the new item is an element of the currently allocated
8727 table passed by reference, save a copy on the stack if we're going
8728 to reallocate. Also, in Table.Set_Item, make sure we test the proper
8729 variable to determine whether to call Set_Last.
8731 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
8732 symbols-vms.adb, symbols-processing-vms-alpha.adb,
8733 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
8734 some occurrences of the pattern
8736 T.Table (T.Last) := Value;
8737 with a cleaner call to
8740 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8741 Gary Dismukes <dismukes@adacore.com>
8742 Thomas Quinot <quinot@adacore.com>
8744 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
8745 derived type with interface progenitors use the analyzed formal as the
8746 parent of the actual, to create renamings for all the inherited
8747 operations in Derive_Subprograms.
8748 (Collect_Previous_Instances): new procedure within of
8749 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
8750 unit being loaded, to ensure that the generation of global symbols is
8751 consistent in different compilation modes.
8752 (Is_Tagged_Ancestor): New function testing the ancestor relation that
8753 takes progenitor types into account.
8754 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
8755 traversing over the primitives of the formal and actual types to locate
8756 any abstract subprograms of the actual type that correspond to a
8757 nonabstract subprogram of the formal type's ancestor type(s), and issue
8758 an error if such is found.
8759 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
8760 Instantiate_Package_Body, Instantiate_Subprogram_Body):
8761 Remove bogus guard around calls to Inherit_Context.
8762 (Reset_Entity): If the entity is the selector of a selected component
8763 that denotes a named number, propagate constant-folding to the generic
8764 template only if the named number is global to the generic unit.
8765 (Set_Instance_Env): Only reset the compilation switches when compiling
8766 a predefined or internal unit.
8768 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8770 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
8771 parameter to determine whether operation applies to the prefix.
8772 (Complete_Object_Operation): If actual has an access type and
8773 controlling formal is not an in_parameter, reject the actual if it is
8774 an access_to_constant type.
8775 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
8776 type, the candidate operations are found in the scope of declaration of
8777 the type, because the type has no primitive subprograms.
8778 (Analyze_Selected_Component): If prefix is class-wide, and root type is
8779 a private extension, only examine visible components before trying to
8780 analyze as a prefixed call.
8781 Change Entity_List to Type_To_Use, for better readability.
8782 (Has_Fixed_Op): Use base type when checking whether the type of an
8783 operator has a user-defined multiplication/division
8784 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
8785 user-defined operators are available for fixed-point types.
8787 2007-08-14 Thomas Quinot <quinot@adacore.com>
8788 Ed Schonberg <schonberg@adacore.com>
8790 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
8791 formal At_Any_Place indicating, when True, that we want to test for
8792 availability of the stream attribute at any place (as opposed to the
8793 current visibility context only).
8794 (Missing_Read_Write_Attributes): A stream attribute is missing for the
8795 purpose of enforcing E.2.2(8) only if it is not available at any place.
8796 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
8797 when checking the legality of an extension aggregate in a preelaborable
8798 package. Treat the literal null as a valid default expression in a
8799 component declaration for a type with preelaborable initialization.
8800 A limited interface is a legal progenitor for the designated type of a
8801 remote access to class-wide type.
8803 2007-08-14 Thomas Quinot <quinot@adacore.com>
8804 Ed Schonberg <schonberg@adacore.com>
8806 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
8807 reference): Use correct entity as denoted entity for the selector of
8809 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
8810 setting the Referenced_As_LHS flag for entities that are implicitly
8812 (Find_Type): If the type is an internally generated incomplete type,
8813 mark the full view as referenced, to prevent spurious warnings.
8814 (Find_Selected_Component, Has_Components): Handle properly non-limited
8815 views that are themselves incomplete types.
8816 Handle interfaces visible through limited-with clauses.
8817 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
8818 subprogram generic actual for which we have generated a renaming.
8819 Warn when the renaming introduces a homonym of
8820 the renamed entity, and the renamed entity is directly visible.
8822 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8823 Hristian Kirtchev <kirtchev@adacore.com>
8825 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
8826 appear in the subtree to the current allocator if it is not a static
8828 (Resolve_Allocator): Perform cleanup if resolution has determined that
8829 the allocator is not a coextension.
8830 (Resolve): Skip an interpretation hidden by an abstract operator only
8831 when the type of the interpretation matches that of the context.
8832 (Resolve): When looping through all possible interpretations of a node,
8833 do not consider those that are hidden by abstract operators.
8834 (Resolve_Actuals): When verifying that an access to class-wide object
8835 is an actual for a controlling formal, ignore anonymous access to
8836 subprograms whose return type is an access to class_wide type.
8837 (Resolve_Slice): If the prefix of the slice is a selected component
8838 whose type depends on discriminants, build its actual subtype before
8839 applying range checks on the bounds of the slice.
8840 (Valid_Conversion): In an instance or inlined body, compare root types,
8841 to prevent anomalies between private and public views.
8842 (Resolve): Improve error message for ambiguous fixed multiplication
8843 expressions that involve universal_fixed multiplying operations.
8845 2007-08-14 Javier Miranda <miranda@adacore.com>
8846 Hristian Kirtchev <kirtchev@adacore.com>
8848 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
8849 location to allow the correct generation of errors in case of
8850 restrictions applied to the expanded code.
8851 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
8852 function if the condition does not reference them.
8853 (Expand_Entry_Body_Declarations): Mark the index constant as having a
8856 2007-08-14 Thomas Quinot <quinot@adacore.com>
8857 Pablo Oliveira <oliveira@adacore.com>
8859 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
8860 typecode parameters for a union (in a variant record), remove
8861 extraneous layer of Any wrapping for member label.
8862 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
8863 elabration statements, register the package with the name server
8864 at the beginning, not at the end, of the elaboration statements so
8865 that they can create remote access to subprogram values that designate
8866 remote subprograms from the package.
8868 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
8870 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
8871 values to compute the number of seconds since the Unix Epoc in order to
8872 account for Daylight Savings Time. Perform special processing for dates
8873 that are earlier than the Unix Epoc to obtain a negative number.
8875 2007-08-14 Emmanuel Briot <briot@adacore.com>
8877 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
8880 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
8882 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
8883 binder-generated file is not in Ada.
8884 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
8885 recorded in the ALI file.
8886 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
8888 2007-08-14 Vincent Celier <celier@adacore.com>
8890 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
8891 (Output_Source): Do nothing if parameter is No_Sdep_Id
8893 * make.adb (Gnatmake): Do not rebuild an archive simply because a
8894 shared library it imports has a later time stamp.
8895 (Check): Resolve the symbolic links in the path name of the object
8897 Check that the ALI file is in the correct object directory
8898 Check if a file name does not correspond to the mapping of units
8900 (Display_Version): New procedure
8901 (Initialize): Process switches --version and --help
8902 Use type Path_Name_Type for path name
8904 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
8906 * impunit.adb: Re-organize System.Random_Numbers and
8907 GNAT.Random_Numbers and add to builds.
8909 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
8911 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
8913 * a-assert.ads, a-assert.adb: New files.
8915 2007-08-14 Gary Dismukes <dismukes@adacore.com>
8917 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
8918 if AAMP_On_Target is True, then the size of the type encompasses two
8919 addresses (a static link and a subprogram address), except in the case
8920 of library-level access types.
8922 2007-08-14 Vincent Celier <celier@adacore.com>
8924 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
8926 (Write_Eol_Keep_Blanks): New procedure to write a line, including
8927 possible trailing spaces.
8928 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
8930 2007-08-14 Javier Miranda <miranda@adacore.com>
8932 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
8933 null-excluding access types.
8935 2007-08-14 Javier Miranda <miranda@adacore.com>
8937 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
8938 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
8939 of private types add missing check on matching interfaces in the
8940 partial and full declarations.
8941 (Analyze_Protected_Type): Code cleanup.
8942 (Analyze_Task_Type): Code cleanup.
8944 2007-08-14 Javier Miranda <miranda@adacore.com>
8946 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
8947 generated interface thunk.
8949 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8951 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
8952 obsolescent warning on application of 'Class to an incomplete type.
8954 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
8955 prevent obsolescent warning on application of 'Class to an incomplete
8958 2007-08-14 Pascal Obry <obry@adacore.com>
8960 * s-fileio.adb (Is_Open): Add check for usability of the underlying
8963 2007-08-14 Cyrille Comar <comar@adacore.com>
8965 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
8966 since it is potentially used in cases implying double finalization of
8969 2007-08-14 Jose Ruiz <ruiz@adacore.com>
8971 * s-tasini.adb (Get_Stack_Info): Move this function to
8972 System.Soft_Links.Tasking because it is common to the full and the
8973 restricted run times.
8974 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
8975 in SSL.Tasking.Init_Tasking_Soft_Links.
8977 * s-solita.adb (Get_Stack_Info): Function moved from
8978 System.Tasking.Initialization because it is common to the full and the
8979 restricted run times.
8980 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
8982 2007-08-14 Arnaud Charlet <charlet@adacore.com>
8984 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
8985 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
8986 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
8989 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
8992 2007-08-14 Gary Dismukes <dismukes@adacore.com>
8994 * s-veboop.adb (SU): New named number initialized to
8995 System.Storage_Unit.
8996 (True_Val): The initialization expression is revised to use SU (=
8997 Storage_Unit) rather than assuming 8 for the component size of an
8998 unpacked Boolean array.
9000 2007-08-14 Tristan Gingold <gingold@adacore.com>
9002 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
9004 * tb-ivms.c: New file.
9006 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
9008 2007-08-14 Geert Bosch <bosch@adacore.com>
9010 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
9011 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
9012 Add required linker pragmas for automatically linking with the gnalasup
9013 linear algebra support library, and the systems math library.
9014 Rename cdot to cdotu and zdot to zdotu.
9015 Update header comment to describe purpose of package.
9017 2007-08-14 Thomas Quinot <quinot@adacore.com>
9019 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
9020 an explicitly specified Associated_Final_Chain, use that list.
9021 (Expand_N_Package_Body): Build dispatch tables of library level tagged
9023 (Expand_N_Package_Declaration): Build dispatch tables of library level
9024 tagged types. Minor code cleanup.
9026 2007-08-14 Vincent Celier <celier@adacore.com>
9028 * gnatchop.adb (Terminate_Program): Remove exception and use
9029 Types.Terminate_Program instead.
9031 * osint.ads, osint.adb (Current_Exit_Status): New global variable
9032 (Find_Program_Name): Added protection against empty name.
9033 (OS_Exit_Through_Exception): New procedure
9035 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
9036 (OS_Exit_Default): New procedure that contains the previous
9037 implementation of procedure OS_Exit.
9038 (Final_Value): Remove obsolete Interix stuff.
9040 2007-08-14 Thomas Quinot <quinot@adacore.com>
9042 * g-socket.ads: Reorganize example code so that it also works on
9045 2007-08-14 Tristan Gingold <gingold@adacore.com>
9047 * g-trasym.ads: AIX now supports symbolic backtraces.
9049 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9051 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
9052 units being loaded to detect circularities. A circularity may be
9053 present even if the current chain of pending units to load starts from
9054 a limited_with_clause.
9056 * lib-load.ads: Change profile of Load_Unit to use a with_clause
9057 rather than a boolean flag, in order to detect circularities in
9060 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
9061 than propagating the From_Limited_With flag, in order to handle
9062 properly circularities involving with_clauses.
9064 2007-08-14 Nicolas Setton <setton@adacore.com>
9066 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
9069 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9071 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
9072 to build for libgnala.
9073 libgnat: Add rules to build libgnala.a
9074 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
9075 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
9076 Add s-osinte-vxworks-kernel.adb to the target pairs of the
9077 kernel run-time lib for VxWorks 6, which would provide a different
9078 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
9079 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
9080 running ZCX by default.
9081 Add g-sttsne-locking to LynxOS version.
9082 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
9083 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
9085 * system-darwin-x86.ads: New file.
9087 * Make-lang.in: Delete files before copying onto them, so if they are
9088 read-only, the copy won't fail.
9091 2007-08-14 Pascal Obry <obry@adacore.com>
9093 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
9096 2007-08-14 Vincent Celier <celier@adacore.com>
9098 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
9099 (Gcc): Initialize Gcc_Name at the first call
9101 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9103 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
9104 with_clauses of the enclosing unit when analyzing the package
9105 specification of a nested instance.
9107 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9109 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
9110 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
9111 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
9112 layout of N_Allocator.
9114 2007-08-14 Thomas Quinot <quinot@adacore.com>
9116 * rtsfind.adb (Check_RPC): Add PCS version check.
9118 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
9119 (Gnat_Free_Software): New function.
9121 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
9122 the PCS_Version value from s-parint, used to check that it is consistent
9123 with what exp_dist expects.
9125 * s-parint.ads (PCS_Version): New entity for checking consistency
9126 between exp_dist and PCS.
9128 * gen-soccon.c: (SO_REUSEPORT): New constant.
9130 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9132 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
9133 variable Sub_Second to Duration in order to accomodate a larger range
9134 of arithmetic operations.
9136 2007-08-14 Bob Duff <duff@adacore.com>
9138 * g-sttsne-locking.ads: Move comments from spec to body.
9139 * g-sttsne-locking.adb: Move comments from spec to body.
9140 * g-sttsne-vxworks.ads: Removed.
9141 * g-sttsne-vxworks.adb: Removed.
9143 2007-08-11 Ian Lance Taylor <iant@google.com>
9145 * misc.c (gnat_get_alias_set): Change return type to
9148 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9150 * decl.c, utils2.c: Fix whitespace in last change.
9152 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9154 * decl.c (compare_field_bitpos): Constify.
9155 * utils2.c (compare_elmt_bitpos): Likewise.
9157 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
9159 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
9160 anonymous access type.
9161 (pthread_sigmask): Now take an access sigset_t.
9163 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
9165 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
9167 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
9169 PR tree-optimization/25737
9170 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
9172 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
9174 * trans.c (Attribute_to_gnu): When subtracting an
9175 offset from a pointer, use POINTER_PLUS_EXPR with
9176 NEGATE_EXPR instead of MINUS_EXPR.
9177 (gnat_to_gnu): Likewise.
9178 * utils.c (convert): When converting between
9179 thin pointers, use POINTER_PLUS_EXPR and sizetype
9181 * utils2.c (known_alignment): POINTER_PLUS_EXPR
9182 have the same semantics as PLUS_EXPR for alignment.
9183 (build_binary_op): Add support for the semantics of
9184 POINTER_PLUS_EXPR's operands.
9185 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
9187 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
9189 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
9190 of get_signed_or_unsigned_type.
9191 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
9193 2007-06-11 Bob Duff <duff@adacore.com>
9194 Thomas Quinot <quinot@adacore.com>
9196 * g-stsifd-sockets.adb (Create): Work around strange behavior of
9197 'bind' on windows that causes 'connect' to fail intermittently, by
9198 retrying the 'bind'.
9199 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9201 2007-06-10 Duncan Sands <baldrick@free.fr>
9203 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
9204 than to void, for the fields when making a new fat pointer type.
9205 (gnat_substitute_in_type): Now substitute_in_type.
9206 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
9207 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
9208 * utils.c (update_pointer_to): Update fat pointers by updating the
9209 dummy node pointers used for the fields.
9211 2007-06-06 Thomas Quinot <quinot@adacore.com>
9212 Bob Duff <duff@adacore.com>
9214 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
9215 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
9216 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
9217 constant Thread_Blocking_IO, always True by default, set False
9218 on a per-runtime basis.
9219 (Need_Netdb_Buffer): New constant.
9221 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
9222 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
9225 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
9226 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
9227 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
9228 child package Task_Safe_NetDB
9229 (Host_Error_Messages): Add stub body.
9230 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9232 * g-soccon-mingw.ads: Add Windows-specific constants.
9233 (Need_Netdb_Buffer): New constant.
9234 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
9235 wrapper and import inet_addr(3) from the standard sockets library
9237 (In_Addr): Add alignment clause.
9238 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9240 2007-06-06 Robert Dewar <dewar@adacore.com>
9242 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9243 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
9244 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
9245 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
9246 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
9247 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
9248 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
9249 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
9250 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
9251 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
9252 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
9253 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
9254 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
9255 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
9256 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
9257 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
9258 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
9259 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
9260 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
9261 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
9262 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
9263 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
9264 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
9265 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
9266 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
9267 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
9268 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
9269 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
9270 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
9271 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
9272 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
9273 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
9274 Unchecked_* by Ada.Unchecked_*
9276 2007-06-06 Robert Dewar <dewar@adacore.com>
9278 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
9279 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
9280 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
9281 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
9282 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
9283 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
9285 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
9286 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
9287 s-tasloc.adb, s-tasloc.ads: New files.
9289 2007-06-06 Bob Duff <duff@adacore.com>
9292 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
9293 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
9294 (Send_Signal, Close): Raise Invalid_Process if the process id is
9296 (Pattern_Matcher_Access): Is now a general access type to be able to
9299 2007-06-06 Thomas Quinot <quinot@adacore.com>
9300 Arnaud Charlet <charlet@adacore.com>
9302 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
9303 (SIGEMT is now used instead of SIGTERM on AIX).
9305 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
9306 (Time_Slice_Supported): Set to True.
9307 Use SIGEMT instead of SIGTERM as SIGADAABORT.
9309 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9311 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
9312 (Time, Time)): Use To_Relative_Time rather than manual calculation to
9313 express the bounds of Duration as Time. Raise Time_Error when the
9314 result is greater or equal to the higher bound of Duration (on the
9316 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
9318 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
9320 ("-" (Time, Time)): Reorder code.
9321 (All_Leap_Seconds): Removed.
9322 (Arithmetic_Operations.Add): Remove sign related kludge.
9323 (Arithmetic_Operations.Difference): Control the leaps seconds processing
9324 with flag Leap_Support.
9325 (Arithmetic_Operations.Subtract): Remove sign related kludge.
9326 (Check_Within_Time_Bounds): New procedure.
9327 (Clock): Control the leap seconds processing with flag Leap_Support.
9328 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
9329 (Formatting_Operations.Split): Control the leap seconds processing with
9331 (Formatting_Operations.Time_Of): Control the leaps seconds processing
9332 with flag Leap_Support. Adjust the year, month and day (if applicable)
9333 when the value of day seconds designates a new day.
9334 (Split): Use parameter associations for better readability. Integrate
9336 (Time_Of): Use parameter associations for better readability. Integrate
9339 * a-calfor.adb (Split): Use parameter associations for better
9340 readability. Integrate flag Is_Ada_05.
9341 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
9342 better readability. Integrate flag Is_Ada_05.
9344 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9346 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
9347 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
9348 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
9349 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
9350 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
9351 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
9352 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
9353 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
9354 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
9355 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9356 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
9357 time when entering this routine to detect a backward clock setting
9358 (manual setting or DST adjustment), to avoid waiting for a longer delay
9360 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
9361 Remove handling of deferred priority change, and replace by setting the
9362 task priority directly, as required by AI-188.
9364 (Max_Task_Image_Length): New constant.
9365 Replace Warnings (Off) by Unreferenced pragma, cleaner.
9366 (Dynamic_Priority_Support): Removed, no longer needed.
9367 (Poll_Base_Priority_Change): Ditto.
9368 (Set_Ceiling): Add this procedure to change the ceiling priority
9369 associated to a lock. This is a dummy implementation because dynamic
9370 priority ceilings are not supported by the underlying system.
9372 * a-dynpri.adb (Set_Priority): Take into account case where Target is
9373 accepting a RV with its priority boosted.
9374 Remove handling of deferred priority change, and replace by setting the
9375 task priority directly, as required by AI-188.
9377 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
9379 Remove handling of deferred priority change, and replace by setting the
9380 task priority directly, as required by AI-188.
9381 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
9384 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
9385 (Poll_Base_Priority_Change): Removed.
9386 Code clean up: use SSL.Current_Target_Exception.
9388 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
9389 to run as this is a potentially dispatching point.
9390 (Call_Synchronous): Use Local_Defer_Abort.
9391 (Callable): Relax assertion.
9392 (Selective_Wait): Relax assertion in case abort is not allowed.
9393 Remove handling of deferred priority change, and replace by setting the
9394 task priority directly, as required by AI-188.
9396 * s-tasuti.adb (Make_Passive): Adjust assertions.
9397 Remove handling of deferred priority change, and replace by setting the
9398 task priority directly, as required by AI-188.
9400 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9402 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
9403 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
9404 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
9405 system-vxworks-mips.ads, system-vxworks-alpha.ads,
9406 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
9407 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
9408 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
9409 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
9410 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
9411 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
9412 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
9413 This patch changes the largest non-binary modulus from 2**31-1 to
9415 (Compiler_System_Version): Removed, no longer used.
9416 Clean up system files by removing flags only used on a single target.
9417 Also remove obsolete flags, only used during bootstrap from system.ads
9418 (Address): Add a pragma Preelaborable_Initialization.
9420 * system-aix.ads: Ditto.
9421 (GCC_ZCX_Support): Set to true.
9422 Update priority range on AIX and map Ada priorities to target
9423 priorities appropriately for different scheduling policies.
9425 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
9427 2007-06-06 Vincent Celier <celier@adacore.com>
9429 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
9430 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
9432 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
9433 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
9434 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
9435 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
9436 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
9437 MLib.Tgt, containing the default versions of the exported subprograms.
9438 For each platform, create a specific version of the body of new child
9439 package MLib.Tgt.Specific that contains only the body of subprograms
9440 that are different from the default.
9441 (Archive_Builder_Append_Options): New function.
9443 2007-06-06 Matthew Gingell <gingell@adacore.com>
9445 * s-osinte-aix.adb: Map Ada priorities to target priorities
9446 appropriately for different scheduling policies.
9448 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9450 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
9452 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9453 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
9455 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
9457 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
9458 Noop on VMS, added for interface commonality.
9460 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
9461 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9462 Olivier Hainque <hainque@adacore.com>
9464 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
9465 renamed expression of a full renaming at toplevel.
9466 (gnat_to_gnu_entity, case object): If not defining, do not look inside
9467 the values the constant is initialized to if it is an N_Allocator.
9468 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
9469 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
9470 (make_aligning_type): Accept an extra ROOM argument for storage to be
9471 made available before the aligned field, and an extra BASE_ALIGN
9472 argument for callers to pass the alignment guaranteed to be honored for
9473 the whole aligning object. Avoid call to finish_record_type, which only
9474 interferes with the sizes we want to set.
9475 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
9476 make_aligning_type for super-aligned objects on stack.
9477 (components_to_record): Pass the adjusted size of the type when creating
9478 fields in the qualified union for the variant part.
9479 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
9480 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
9482 (maybe_pad_type): Set TYPE_USER_ALIGN.
9483 (make_aligning_type): Likewise.
9484 ALIGN argument is unsigned int.
9485 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
9486 (gnat_to_gnu_param): Likewise, for parameters.
9487 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
9488 if it is constant and stems from a function call.
9489 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
9490 of the record is specified. Adjust accordingly.
9491 (adjust_packed): New static function.
9492 (gnat_to_gnu_field): Use it to adjust the packedness setting.
9493 (components_to_record): Likewise.
9494 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
9495 side-effects if the object is deemed constant.
9496 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
9497 type instead of merely finalizing it. Tidy.
9498 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
9499 <E_Access_Type>: Likewise.
9500 (defer_debug_incomplete_list): Rename to defer_finalize_list.
9501 (defer_debug_level): Delete.
9502 (gnat_to_gnu_entity) <debug_deferred>: Likewise
9503 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
9505 <E_Record_Type>: Do not explicitly defer finalizing the type.
9506 Adjust for write_record_type_debug_info renaming.
9507 <E_Subprogram_Type>: Likewise.
9508 Finalize deferred types right after deferred incomplete types are
9510 (rest_of_type_decl_compilation): New global function.
9511 (components_to_record): Rename defer_debug parameter to do_not_finalize.
9512 (components_to_record): Propagate the packedness to the fields of the
9513 qualified union type if there is a variant part.
9514 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
9515 instead of inline code to adjust the XUT field offsets.
9516 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
9517 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
9518 and write the debug info if the type derives from a discriminated one.
9519 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
9520 <E_Array_Subtype>: Likewise.
9521 <E_String_Literal_Subtype>: Likewise.
9522 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
9523 an alignment clause.
9524 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
9525 before giving warning.
9526 (prepend_one_attribute_to): New function, helper to prepend an attribute
9527 to an attribute list.
9528 (gnat_to_gnu_entity) <E_Procedure>: Use it.
9529 (prepend_attributes): Likewise.
9530 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
9531 <E_Array_Type>: Declare the padding type for the element type, if any.
9532 <E_Array_Subtype>: Likewise.
9533 (defer_limited_with): New variable.
9534 (Gigi_Equivalent_Type): New function.
9535 (gnat_to_gnu_entity): Use it at start and use result throughout.
9536 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
9537 Gigi_Equivalent_Type, support Limited_With, allow two levels of
9538 indirection, precompute if unconstrained array to simplify logic, and
9539 use defer_limited_with to defer elaboration of some types from limited
9541 (finalize_from_with_types): New function.
9543 2007-06-06 Gary Dismukes <dismukes@adacore.com>
9544 Eric Botcazou <ebotcazou@adacore.com>
9545 Tristan Gingold <gingold@adacore.com>
9546 Olivier Hainque <hainque@adacore.com>
9548 * trans.c (Identifier_to_gnu): Change test for deferred constant by
9549 adding guard that the entity is an E_Constant before testing presence
9550 of Full_view (and remove unnecessary test that entity is not a type).
9551 For a CONST_DECL used by reference, manually retrieve
9552 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
9553 (struct language_function): Move from utils.c to here.
9554 (struct parm_attr): New structure.
9555 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
9556 (f_parm_attr_cache): New macro.
9557 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
9558 expressions for the 'First, 'Last and 'Length attributes of the
9559 unconstrained array IN parameters.
9560 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
9561 Allocate the information structure for the function earlier, as well
9562 as the language-specific part.
9563 If the parameter attributes cache has been populated, evaluate the
9564 cached expressions on entry.
9565 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
9566 N_Procedure_Call_Statement and N_Indexed_Component.
9567 (Pragma_to_gnu): Translate inspection_point to an asm statement
9568 containaing a comment and a reference to the object (either its address
9569 for BLKmode or its value).
9570 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
9571 to go to DECL_INITIAL. Together with the size constraint relaxation
9572 in create_var_decl, enlarges the set of situations in which an
9573 identifier may be used as an initializer without implying elaboration
9575 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
9576 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
9578 (maybe_stabilize_reference): Remove lvalues_only parameter.
9579 (gnat_stabilize_reference): Adjust for above change.
9580 (gnat_to_gnu): Do not set location information on the result
9581 if it is a reference.
9582 (add_cleanup): Add gnat_node parameter and set the location of the
9584 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
9585 (Exception_Handler_to_gnu_zcx): Likewise.
9586 (gigi): Remove the cgraph node if the elaboration procedure is empty.
9587 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
9588 the former right after the latter.
9589 (start_stmt_group): Make global.
9590 (end_stmt_group): Likewise.
9591 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
9593 (gnu_program_error_label_stack): Likewise.
9594 (gigi): Initialize them.
9595 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
9596 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
9598 (push_exception_label_stack): New function.
9599 (takes_address): New function.
9601 * utils.c (struct language_function): Move to trans.c from here.
9602 (unchecked_convert): Do not wrap up integer constants in
9604 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
9605 the latter for aggregate types, unexpected by later passes, and relax an
9606 arbitrary size constraint on the former.
9607 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
9608 to compare the sizes.
9609 (convert_vms_descriptor): When converting to a fat pointer type, be
9610 prepared for a S descriptor at runtime in spite of a SB specification.
9611 (shift_unc_components_for_thin_pointers): New function.
9612 (write_record_type_debug_info): For variable-sized fields, cap the
9613 alignment of the pointer to the computed alignment.
9614 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
9615 If REP_LEVEL is 2, do not compute the sizes.
9616 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
9617 (build_unc_object_type): Likewise.
9618 (declare_debug_type): New function.
9620 * ada-tree.def: USE_STMT: removed (not emitted anymore).
9622 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
9623 no statement is expandable anymore.
9624 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
9625 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
9626 when the user requested it explicitely.
9627 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
9629 (get_alias_set): Return alias set 0 for a type if
9630 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
9632 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
9633 (DECL_FUNCTION_STUB): New accessor macro.
9634 (SET_DECL_FUNCTION_STUB): New setter macro.
9636 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
9638 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
9641 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9643 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
9644 Rename to Abort_Task_Interrupt to be able to keep the same interface
9645 as the rest of the targets.
9647 * s-osinte-vxworks.ads s-osinte-vxworks.adb
9648 (To_VxWorks_Priority): Remove explicit "in" mode indicator
9650 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
9653 2007-06-06 Robert Dewar <dewar@adacore.com>
9655 * a-chahan.ads: Remove obsolescent pragmas
9657 * a-chlat1.ads: Minor reformatting
9659 2007-06-06 Robert Dewar <dewar@adacore.com>
9661 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
9664 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
9667 * errout.ads (Finalize): Changed interface
9668 (Output_Messages): New procedure
9669 (Compilation_Errors): New Interface
9671 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
9672 Finalize/Output_Messages interface for Errout
9673 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
9676 2007-06-06 Thomas Quinot <quinot@adacore.com>
9677 Olivier Hainque <hainque@adacore.com>
9678 Robert Dewar <dewar@adacore.com>
9680 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
9682 (Raise_Current_Excep): Call Debug_Raise_Exception just before
9683 propagation starts, to let debuggers know about the event in a reliable
9685 (Local_Raise): Moved to System.Exceptions
9686 More convenient to have this as a separate unit
9688 * s-except.adb, s-except.ads: New files.
9690 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
9691 Debug_Unhandled_Exception in System.Exceptions where it belongs
9692 together with a couple of other debug helpers.
9693 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
9694 the former Unhandled_Exception.
9696 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
9697 (Warn_No_Exception_Propagation): New procedure
9698 (Warn_If_No_Propagation): Rewritten for new warning generation
9699 (Expand_Exception_Handlers): New warning generation
9700 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
9701 (Add_Exception_Label): Use Special_Exception_Package_Used for test
9702 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
9703 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
9704 even if restriction is set (makes life easier in Check_Returns)
9705 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
9706 checking exception identities.
9707 (Expand_Local_Exception_Handlers): Do not optimize when all others case
9708 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
9709 block for handler (used by Check_Returns)
9710 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
9711 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
9712 remove all exception handlers when optimizing local raise statements.
9713 (Find_Local_Handler): Use Get_Renamed_Entity
9714 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
9715 marked analyzed after expanding exception handlers, do not generate
9716 redundant cleanup actions, because they have been constructed already.
9718 2007-06-06 Thomas Quinot <quinot@adacore.com>
9720 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
9721 presence of this categorization pragma is mandated by the language.
9722 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
9725 2007-06-06 Vincent Celier <celier@adacore.com>
9726 Robert Dewar <dewar@adacore.com>
9728 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
9729 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9730 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
9731 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
9732 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
9733 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
9734 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
9735 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
9736 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
9737 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
9738 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
9740 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
9741 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
9742 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
9743 Use variables of types File_Name_Type and Unit_Name_Type in error
9745 (Get_Name): Add parameter Ignore_Special, and set it reading file name
9746 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
9748 Define flags Flag217-Flag230 with associated subprograms
9749 (Flag_Word5): New record type.
9750 (Flag_Word5_Ptr): New access type.
9751 (To_Flag_Word5): New unchecked conversion.
9752 (To_Flag_Word5_Ptr): Likewise.
9753 (Flag216): New function.
9754 (Set_Flag216): New procedure.
9756 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9758 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
9761 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
9763 2007-06-06 Javier Miranda <miranda@adacore.com>
9765 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
9767 (Object_Specific_Data_Array): This is now internal to the package.
9768 (Object_Specific_Data): This is now internal to the package.
9769 (Select_Specific_Data_Element): This is now internal to the package.
9770 (Select_Specific_Data_Array): This is now internal to the package.
9771 (Select_Specific_Data): This is now internal to the package.
9772 (Offset_To_Top_Function_Ptr): This is now public.
9773 (To_Offset_To_Top_Function_Ptr): Removed.
9774 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
9775 local to subprogram Offset_To_Top.
9776 (Predefined_DT): Removed.
9777 (Typeinfo_Ptr): Removed.
9778 (OSD): This function is now internal to this package.
9779 (SSD): This function is now internal to this package.
9780 (DT): New function that displaces the pointer to the table of primitives
9781 to get access to the enclosing wrapper record.
9782 (IW_Membership): Code cleanup.
9783 (Offset_To_Top): Code cleanup.
9784 (Predefined_DT): Removed.
9785 (Register_Interface_Tag): Removed.
9786 (Set_Interface_Table): Removed.
9787 (Set_Offset_Index): Removed.
9788 (Set_Offset_To_Top): Code cleanup.
9790 (Set_Signature): Removed.
9792 (Set_Tagged_Kind): Removed.
9793 (Typeinfo_Ptr): Removed.
9795 (Displace): Add missing check on null actual.
9797 * exp_disp.ads, exp_disp.adb
9798 (Select_Expansion_Utilities): Removed.
9799 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
9800 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
9801 the interface requires a new parameter.
9802 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
9803 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
9804 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
9805 Done to remove package Select_Expansion_Utilities.
9806 (Make_DT): New implementation for statically allocated dispatch tables.
9807 (Make_Secondary_DT): Moved to the scope of Make_DT.
9808 (Register_Primitive): Code cleanup plus incoporate the use of the new
9809 function DT_Address_Attribute.
9810 (Expand_Interface_Thunk): The profile of this subprogram has been
9811 changed to return the Thunk_Id and the corresponding code.
9812 (Fill_DT_Entry): Removed. Its functionality is now provided by
9813 subprogram Register_Primitive.
9814 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
9815 subprogram Register_Primitive.
9816 (Register_Primitive): New subprogram that incorporates the previous
9817 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
9818 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
9819 was only required to call Make_DT_Access_Action, which is now removed.
9820 (Ada_Actions): Removed
9821 (Action_Is_Proc): Removed
9822 (Action_Nb_Arg): Removed
9823 Replace all the calls to Make_DT_Access_Action by direct calls to
9824 Make_Procedure_Call_Statement or Make_Function_Call.
9825 (Set_DTC_Entity_Value): New subprogram.
9826 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
9827 (Expand_Interface_Thunk): Add missing support for primitives that are
9828 functions with a controlling result (case in which there is no need
9829 to generate the thunk).
9831 * exp_atag.ads, exp_atag.adb
9832 (Build_DT): New subprogram that displaces the pointer to reference the
9833 base of the wrapper record.
9834 (Build_Typeinfo_Offset): Removed.
9835 (RTE_Tag_Node): Removed.
9836 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
9837 (Build_Get_RC_Offset): Removed.
9838 (Build_Inherit_Predefined_Prims): Removed.
9839 (Build_Inherit_TSD: Removed.
9840 (Build_New_TSD): Removed.
9841 (Build_Set_External_Tag): Removed.
9842 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
9843 (Build_Set_Prim_Op_Address): Add documentation.
9844 (Build_Set_TSD): Removed.
9846 * rtsfind.ads, rtsfind.adb
9847 (Load_Fail): If load fails and we are not in configurable run-time
9848 mode, then raise Unrecoverable_Error.
9849 (Text_IO_Kludge): Generate an error message if a run-time library is
9850 not available in a given run-time (ie. zfp run-time).
9851 (RTE_Record_Component): Add code to check that the component we search
9852 for is not found in two records in the given run-time package.
9853 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
9854 (RE_DT_Predef_Prims_Offset): New entity
9855 (RE_Static_Offset_To_Top): New entity
9856 (RE_HT_Link): New entity.
9857 (System_Address_Image): Addition of this run-time package.
9858 (RE_Address_Image): New entity.
9859 (RE_Abstract_Interface): Removed.
9860 (RE_Default_Prim_Op_Count): Removed.
9861 (RE_DT_Entry_Size): Removed.
9862 (RE_DT_Min_Prologue_Size): Removed.
9863 (RE_DT_Prologue_Size): Removed.
9864 (RE_Ifaces_Table_Ptr): Removed.
9865 (RE_Interface_Data_Ptr): Removed.
9866 (RE_Type_Specific_Data): Removed.
9867 (RE_Primary_DT): Removed.
9868 (RE_Register_Interface_Tag): Removed.
9869 (RE_Set_Offset_Index): Removed.
9870 (RE_Set_OSD): Removed.
9871 (RE_Set_SSD): Removed.
9872 (RE_Set_Signature): Removed.
9873 (RE_Set_Tagged_Kind): Removed.
9874 (RE_Address_Array): New entity.
9875 (RE_DT): New entity.
9876 (RE_Iface_Tag): New entity.
9877 (RE_Interfaces_Table): New entity.
9878 (RE_No_Dispatch_Table): New entity.
9879 (RE_NDT_Prims_Ptr): New entity.
9880 (RE_NDT_TSD): New entity.
9881 (RE_Num_Prims): New entity.
9882 (RE_Offset_To_Top_Function_Ptr): New entity.
9883 (RE_OSD_Table): New entity.
9884 (RE_OSD_Num_Prims): New entity.
9885 (RE_Predef_Prims): New entity
9886 (RE_Predef_Prims_Table_Ptr): New entity.
9887 (RE_Primary_DT): New entity.
9888 (RE_Signature): New entity.
9889 (RE_SSD): New entity.
9890 (RE_TSD): New entity.
9891 (RE_Type_Specific_Data): New entity.
9892 (RE_Tag_Kind): New entity.
9894 2007-06-06 Thomas Quinot <quinot@adacore.com>
9896 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
9897 C imported variable.
9898 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
9901 2007-06-06 Robert Dewar <dewar@adacore.com>
9903 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
9906 2007-06-06 Vincent Celier <celier@adacore.com>
9908 * a-tifiio.adb (Put, internal): For negative numbers, check that there
9909 is room for at least one digit and the minus sign.
9910 (Put.Put_Character): Never put a character outside of the range of
9913 2007-06-06 Olivier Hainque <hainque@adacore.com>
9914 Eric Botcazou <ebotcazou@adacore.com>
9916 * utils2.c (build_allocator): Provide the extra arguments to
9917 make_aligning_type for super-aligned objects allocated from the default
9918 pool. Leave enough room for a pointer before the aligning field, and
9919 store the system's allocator return value there.
9920 (build_call_alloc_dealloc): When releasing a super-aligned object,
9921 retrieve the system's allocator return value from where build_allocator
9922 has stored it, just ahead of the adjusted address we are passed.
9923 (build_call_raise): Handle properly the generation of line numbers when
9924 the node is marked No_Location.
9925 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
9926 by using DECL_UID on ties.
9927 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
9929 (build_call_raise): Handle converting exception into goto; support new
9931 (build_component_ref): Add new arg to build_call_raise.
9933 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9935 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
9936 "." in the case of nnn.xxx when nnn terminates with an underscore.
9937 Parse the remaining "#" or ":" in the case of nnn#.xxx#
9939 2007-06-06 Robert Dewar <dewar@adacore.com>
9941 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
9943 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9944 Vincent Celier <celier@adacore.com>
9945 Robert Dewar <dewar@adacore.com>
9947 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
9949 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
9950 ((destructor)) for adafinal, even when switch -a is used.
9951 Do not issue pragma Linker_Destructor for adafinal when switch -a is
9953 (Gen_Object_Files_Options): Add formatting of Linker Options, when
9954 Output_Linker_Option_List is set. Suppress this formatting when
9955 Zero_Formatting is set.
9956 Add case for CLI_Target.
9957 (System_Restrictions_Used): New flag, used to avoid generating with of
9958 System_Restrictions and initialization of the data unless there is
9959 some use of System.Restrictions in the partition.
9960 (Check_System_Restrictions_Used): New procedure
9962 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
9963 since we only with this unit in the binder file if it is used elsewhere
9966 2007-06-06 Vincent Celier <celier@adacore.com>
9968 * bindusg.adb: Add line for @<response file>
9969 Add lines for new switches -R and -Z
9971 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
9972 hierarchy in the list of files of the closure when -R is used
9973 (Gnatbind): Accept arguments starting with '@' to indicate response
9974 files and take the arguments from the response files.
9975 If List_Closure is set, display the referenced files
9977 2007-06-06 Javier Miranda <miranda@adacore.com>
9978 Robert Dewar <dewar@adacore.com>
9979 Ed Schonberg <schonberg@adacore.com>
9981 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
9982 which the address-clause is applied to in-mode actuals (allowed by
9984 (Apply_Discriminant_Check): Do not generate a check if the type is
9985 constrained by a current instance.
9986 (Activate_Division_Check): New procedure
9987 (Activate_Overflow_Check): New procedure
9988 (Activate_Range_Check): New procedure
9989 Call these new Activate procedures instead of setting flags directly
9990 (Apply_Array_Size_Check): Removed, no longer needed.
9991 Code clean up: remove obsolete code related to GCC 2.
9992 (Get_E_Length): Protect against bomb in case scope is standard
9993 (Selected_Range_Checks): If the node to be checked is a conversion to
9994 an unconstrained array type, and the expression is a slice, use the
9995 bounds of the slice to construct the required constraint checks.
9996 Improve NOT NULL error messages
9997 (Apply_Constraint_Check): If the context is a null-excluding access
9998 type, diagnose properly the literal null.
10000 2007-06-06 Pascal Obry <obry@adacore.com>
10002 * clean.adb (Clean_Archive): Use untouched casing for the archive name
10003 and the corresponding .deps file.
10004 (Clean_Interface_Copy_Directory): Use untouched casing for the library
10005 src directory. Minor code-clean-up. Use untouched casing for files
10006 read into the library src dir.
10007 (Clean_Library_Directory): Idem.
10008 (Parse_Cmd_Line): Accept new switch -aP
10010 2007-06-06 Javier Miranda <miranda@adacore.com>
10011 Ed Schonberg <schonberg@adacore.com>
10012 Robert Dewar <dewar@adacore.com>
10013 Eric Botcazou <ebotcazou@adacore.com>
10014 Arnaud Charlet <charlet@adacore.com>
10016 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
10017 applicable to types that have the With_Type flag set. Returns the
10018 non-limited view of the type, if available, otherwise the type itself.
10019 For class-wide types, there is no direct link in the tree, so we have
10020 to retrieve the class-wide type of the non-limited view of the Etype.
10021 New attributes Static_Initialization and Static_Elaboration_Desired.
10022 Remove the pragma Thread_Body, and the associated flag
10023 Is_Thread_Body in entities, and all related code.
10024 (Suppress_Value_Tracking_On_Call): New flag
10025 E_Exception has Esize and Alignment fields
10026 (Universal_Aliasing): New function.
10027 (Set_Universal_Aliasing): New procedure.
10028 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
10029 (Check_Nested_Access): New procedure.
10030 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
10031 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10032 (Related_Interface): New attribute. Present in dispatch table pointer
10033 components of records. Set to point to the entity of the corresponding
10035 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
10036 (Original_Access_Type): Remove, not needed.
10037 (Root_Type): Handle properly subtypes of class-wide-types.
10040 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
10041 class-wide types visible through limited-with clauses.
10042 (Try_Primitive_Operation): When examining all primitive operations of a
10043 tagged type, do not consider subprograms labeled as hidden unless they
10044 belong to a private generic type with a tagged parent.
10045 (Try_Object_Operation): Extensive rewriting, to handle properly various
10046 overloading cases, when several ancestors may have class-wide operations
10047 that are possible candidates, and when the overloaded functions return
10048 array types and have defaulted parameters so that the call may be
10049 interpreted as an indexing.
10050 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
10051 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
10052 successive actuals before analyzing the call itself.
10053 (Try_Primitive_Operation): A primitive operation is compatible with the
10054 prefix if the prefix has a synchronized type and the type of the formal
10055 is its corresponding record, as can be the case when the primitive
10056 operation is declared outside of the body of the type.
10057 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
10058 perform homonym traversal, looking for class-wide operation matches
10059 (formerly done in statements of Try_Class_Wide_Operation). Matches on
10060 access parameters are now restricted to anonymous access types.
10061 (Mark_Allocator): An allocator with a discriminant association parent is
10063 (Try_One_Prefix_Interpretation): If the type of the object is
10064 incomplete, as can be happen when it is a limited view obtained through
10065 a limited_with_clause, the selected component is not part of a prefixed
10067 (Complete_Object_Operation): Diagnose properly an object that is not
10068 aliased when the corresponding controlling formal is an access
10070 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
10071 ambiguous calls in prefixed notation, where two primitives differ only
10072 in that the controlling argument of one is an access parameter.
10074 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
10075 whether a function that returns an unconstrained type can be inlined.
10076 (Process_Formals): Diagnose properly the illegal use of an incomplete
10077 type in the profile of an access_to_subprogram declaration.
10078 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
10079 operations are attached to the corresponding record.
10080 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
10081 When processing a primitive of a concurrent type which implements an
10082 interface change the type of all controlling formals to that of the
10083 corresponding record type.
10084 (Check_Synchronized_Overriding): Relax the conditional logic when trying
10085 to determine the tagged type to which a primitive belongs.
10086 (Check_Conventions): Capture condition to ignore a primitive operation
10087 (which is shared between the loop in Check_Conventions and the one in
10088 Check_Convention) in a new local function Skip_Check.
10089 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
10090 confusion with Check_Conventions' own Prim_Op local variable.
10091 (Create_Extra_Formals): Test for a tagged result type rather than a
10092 controlling result when determining whether to add a BIP_Alloc_Form
10093 formal and a BIP_Final_List formal to the function.
10094 (Check_Conformance); For parameters that are anonymous access types,
10095 subtype conformance requires that the not null and the constant
10096 indicators must match
10097 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
10098 to retrieve the appropriate type when processing a concurrent type
10099 declared within a generic. Minor comment reformatting. Change invocation
10100 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
10102 (Analyze_Subprogram_Body): If the return type of a function is an
10103 anonymous access to the limited view of a class-wide type, and the
10104 non-limited view of the type is available, update the type of the
10105 function so that code can be generated.
10106 (Process_Formals): In case of access-subtype itype whose designated
10107 type is also an itype (situation that happens now with access to
10108 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
10109 attribute to avoid backend problems.
10110 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
10111 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
10112 anonymous types' designated types are same before testing
10113 Subtypes_Statically_Match.
10114 (Create_Extra_Formals): Test for a named access parameter that is a
10115 controlling formal as an additional condition for adding an
10116 accessibility level formal. This can occur in the subp type created for
10117 dispatching calls in Expand_Dispatching_Call, and allows calling
10118 Create_Extra_Formals from that procedure rather than special-casing the
10119 extra formals there.
10120 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
10121 when the function has a controlling result.
10122 (Check_Returns): Add much more knowledge of the optimization of local
10123 raise statements to gotos, to retain proper warnings in this case.
10124 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
10125 nodes when looking for last statement.
10127 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
10128 class-wide types visible through limited with clauses.
10129 (Add_One_Interp): If the operands are anonymous access types, the
10130 predefined operator on universal_access is immediately visibles
10131 (Find_Unique_Type): Handle anonymous access to subprogram types just as
10132 other anonymous access types.
10133 (Disambiguate): Take into account CIL convention.
10134 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
10136 2007-06-06 Robert Dewar <dewar@adacore.com>
10138 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
10139 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
10140 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
10141 Fix lower bound of tables.
10144 * nlists.adb: Ditto.
10145 (Prev_Node, Next_Node): Change index type to Int so that it properly
10146 covers the range First_Node_Id - 1 up.
10148 2007-06-06 Javier Miranda <miranda@adacore.com>
10149 Ed Schonberg <schonberg@adacore.com>
10150 Bob Duff <duff@adacore.com>
10151 Hristian Kirtchev <kirtchev@adacore.com>
10153 * exp_aggr.ads, exp_aggr.adb:
10154 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
10155 in extension aggregates.
10156 (Flatten): Other conditions being met, an aggregate is static if the
10157 low bound given by component associations is different from the low
10158 bound of the base index type.
10159 (Packed_Array_Aggregate_Handled): If the component type is itself a
10160 packed array or record, the front-end must expand into assignments.
10161 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
10162 Init_Pr, instead of Ancestor_Is_Expression.
10163 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
10164 coextension chain root, either generate a list controller or use the
10165 already existing one.
10166 (Static_Array_Aggregate): New procedure to construct a positional
10167 aggregate that can be handled by the backend, when all bounds and
10168 components are compile-time known constants.
10169 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
10170 types covering interface types into assignments.
10171 (Replace_Type): move to Build_Record_Aggr_Code.
10172 (Expand_Record_Aggr_Code): if the target of the aggregate is an
10173 interface type, convert to the definite type of the aggregate itself,
10174 so that needed components are visible.
10175 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
10176 components and the context is an extended return statement do not
10177 create a transient block for it, to prevent premature finalization
10178 before the return is executed.
10179 (Gen_Assign): Do not generate a call to deep adjust routine if the
10180 component type is itself an array of controlled (sub)-components
10181 initialized with an inner aggregate.
10182 (Component_Check): New name for Static_Check. This name is now more
10183 appropriate, and documentation is added which was missing.
10184 (Component_Check): Add test for bit aligned component value
10185 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
10186 Tagged_Comps, name is more appropriate given added function below.
10187 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
10189 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10190 Javier Miranda <miranda@adacore.com>
10191 Robert Dewar <dewar@adacore.com>
10193 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
10194 Terminated: Add unchecked type conversion from System.Address to
10195 System.Tasking.Task_Id when calling the predefined primitive
10197 Disable new Ada 05 accessibility check for JVM.NET targets, which
10198 cannot be implemented in a practical way.
10199 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
10200 the sources always references the tag of the actual object. Therefore,
10201 if 'Tag is applied in the sources to class-wide interface objects we
10202 generate code that displaces "this" to reference the base of the object.
10203 (Expand_N_Attribute_Reference, case Size): Return specified size if
10204 known to front end.
10205 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
10206 has code that displaces the pointer of the object to manage interface
10207 types. However this code must not be executed when the prefix is a
10208 subprogram. This bug caused the wrong expansion of the internally
10209 generated assignment that fills the dispatch table when the primitive
10210 is a function returning a class-wide interface type.
10211 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
10212 Set_Attribute_Name for Name_Unaligned_Valid.
10214 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10215 Gary Dismukes <dismukes@adacore.com>
10217 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
10218 If the initialization is the equivalent aggregate of the initialization
10219 procedure of the type, do not remove it.
10220 (Expand_N_Attribute_Definition_Clause): Exclude access variables
10221 initialized to null from having their expression reset to empty and
10222 note this exception in the comment.
10224 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10225 Robert Dewar <dewar@adacore.com>
10226 Ed Schonberg <schonberg@adacore.com>
10227 Gary Dismukes <dismukes@adacore.com>
10229 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
10230 Add "with" and "use" clauses for Sem_Attr.
10231 (Expand_Current_Value): Do not replace occurences of attribute
10232 references where the prefix must be a simple name.
10234 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
10235 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
10236 Attribute_Requires_Simple_Name_Prefix.
10237 (Name_Modifies_Prefix): Body of new function.
10238 (Requires_Simple_Name_Prefix): Body of new function.
10239 (Resolve_Attribute, case Access): Improve error message for case of
10240 mismatched conventions.
10241 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
10243 (Analyze_Attribute, case 'Access): If the type of the prefix is a
10244 constrained subtype for a nominal unconstrained type, use its base type
10245 to check for conformance with the context.
10246 (Resolve_Attribute): Remove test of the access type being associated
10247 with a return statement from condition for performing accessibility
10248 checks on access attributes, since this case is now captured by
10249 Is_Local_Anonymous_Access.
10250 (Analyze_Access_Attribute): Set Address_Taken on entity
10251 (Analyze_Attribute, case Address): Set Address_Taken on entity
10252 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
10253 validating an access attribute whose prefix is a current instance.
10254 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
10255 applied to dispatching operations, if freezing is required then we set
10256 the attribute Has_Delayed_Freeze in the prefix's entity.
10257 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
10258 current scope if access of local subprogram taken
10259 (Analyze_Access_Attribute): Check legality of self-reference even if the
10260 expression comes from source, as when a single component association in
10261 an aggregate has a box association.
10262 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
10263 the prefix if it is a protected operation and the attribute is
10264 Unrestricted_Access.
10265 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
10266 reference to the base type of the context, to force a constraint check
10267 when the context is an access subtype with an explicit constraint.
10268 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
10269 node is rewritten as an interface conversion. leave unanalyzed after
10270 resolution, to ensure that type checking against the context will take
10273 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10274 Javier Miranda <miranda@adacore.com>
10275 Robert Dewar <dewar@adacore.com>
10277 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
10278 wrapper when the full view of the controlling type of an inherited
10279 function that dispatches on result implements interfaces.
10280 (Expand_N_Object_Declaration): In cases where the type of the
10281 declaration is anonymous access, create finalization list for it.
10282 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
10283 if the object has no explicit initialization, to match description of
10284 functionality of pragam Persistent_BSS.
10285 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
10286 new function to build static aggregates, to replace initialization call
10287 when static initialization is desired.
10288 (Freeze_Type): Generate a list controller for an access type whenever
10289 its designated type has controlled anonymous access discriminants.
10290 (Build_Equivalent_Aggregate): New procedure to compute a static
10291 aggregate to be used as default initialization for composite types,
10292 instead of a generating a call to the initialization procedure for the
10294 (Build_Initialization_Call): When available, replace a call to the
10295 initialization procedure with a copy of the equivalent static aggregate
10297 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
10298 declarations for objects of a class-wide interface type, rather than
10299 just identifiers, to prevent visibility problems.
10300 (Expand_N_Object_Declaration): When expanding the declaration for an
10301 object of a class-wide interface type, preserve the homonym chain of
10302 the original entity before exchanging it with that of the generated
10303 renaming declaration.
10304 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
10305 active, because there is no way to handle the exception.
10306 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
10307 to do a minimum decoration of the Access_Disp_Table list.
10308 (Expand_Record_Controller): Avoid the addition of the controller between
10309 the component containing the tag of a secondary dispatch table and its
10310 adjacent component that stores the offset to the base of the object.
10311 This latter component is only generated when the parent type has
10312 discriminants ---documented in Add_Interface_Tag_Components).
10313 (Apply_Array_Size_Check): Removed, no longer needed.
10314 (Expand_N_Full_Type_Declaration): If the type has anonymous access
10315 components, create a Master_Entity for it only if it contains tasks.
10316 (Build_Init_Procedure): Suppress the tag assignment compiling under
10318 (Freeze_Record_Type): Remove code associated with creation of dispatch
10320 (Init_Secondary_Tags): Update type of actuals when generating calls to
10321 Ada.Tags.Set_Offset_To_Top
10322 (Stream_Operation_OK): Disable use of streams compiling under no
10324 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
10325 if Has_Init_Expression set.
10326 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
10327 Register_Primitive, which provides the same functionality.
10328 (Requires_Init_Proc): Return false in case of interface types.
10329 (Add_Secondary_Tables): Use the new attribute Related_Interface to
10331 (Predefined_Primitive_Freeze): Do not assume that an internal entity
10332 is always associated with a predefined primitive because the internal
10333 entities associated with interface types are not predefined primitives.
10334 Therefore, the call to Is_Internal is replaced by a call to the
10335 function Is_Predefined_Dispatching_Operation.
10336 (Make_Eq_If): When generating the list of comparisons for the
10337 components of a given variant, omit the controller component that is
10338 present if the variant has controlled components.
10340 2007-06-06 Javier Miranda <miranda@adacore.com>
10341 Hristian Kirtchev <kirtchev@adacore.com>
10342 Bob Duff <duff@adacore.com>
10344 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
10345 handle the creation of finalization lists and calls for nested
10346 coextensions when the root of the chains is part of a return statement.
10347 (Inside_A_Return_Statement): New function inside Complete_Coextension_
10349 (Expand_Record_Equality): Skip components that are interface types.
10350 (Displace_Allocator_Pointer): Add missing support for interface subtypes
10351 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
10352 with Rewrite_Coextension. Change the condition for detecting coextension
10354 (Is_Local_Access_Discriminant): Removed.
10355 (Rewrite_Coextension): New routine which rewrites a static coextension
10356 as a temporary and uses its unrestricted access in the construction of
10358 (Complete_Coextension_Finalization): New routine. Generate finalization
10359 attachment calls to all delayed coextensions.
10360 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
10361 the allocator is not a coextension itself and has delayed coextensions.
10362 If the current allocator is controlled, but also a coextension, delay
10363 the generation of the finalization attachment call.
10364 Rename local variable "Node" to "Nod" in order to avoid confusion with
10366 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
10367 limited types that are not inherently limited. Such an allocator is
10368 illegal, but is generated by the expander for a return statement, to
10369 copy the result onto the secondary stack. This is the only case where a
10370 limited object can be copied. Generate code to displace the pointer
10371 to the object if the qualified expression is a class-wide interface
10372 object. Such displacement was missing and hence the copy of the object
10374 (Apply_Accessibility_Check): Handle allocated objects initialized in
10376 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
10377 and Expand_Allocator_Expression. Allocating class-wide interface objects
10378 this routine displaces the pointer to the allocated object to reference
10379 the component referencing the corresponding secondary dispatch table.
10380 Expand_Allocator_Expression): Add missing support to allocate class-wide
10381 interface objects initialized with a qualified expression.
10382 (Get_Allocator_Final_List): Test for an anonymous access type that is a
10383 function result type, and use the finalization list associated with the
10384 function scope in that case (such an anonymous type should not be
10385 treated like an access parameter's type).
10387 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10388 Gary Dismukes <dismukes@adacore.com>
10389 Javier Miranda <miranda@adacore.com>
10391 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
10392 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
10393 required exception handler.
10394 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
10395 properly the case of a function whose return type is a limited
10396 class-wide interface type. Modify the code of the accessibility
10397 check to handle class-wide interface objects. In this case we need to
10398 displace "this" to reference the primary dispatch table to get access
10399 to the TSD of the object (to evaluate its accessibility level).
10400 (Expand_N_Extended_Return_Statement): Test for a tagged result type
10401 rather than a controlling result as one of the conditions for
10402 generating tests of the implicit BIP_Alloc_Form formal. The
10403 initialization assignment is also handled according to whether the
10404 result is tagged instead of controlling.
10405 In the case where the init assignment is inserted in the "then" part of
10406 the allocation conditional, rewrite the target to be a dereference of
10407 the implicit BIP_Object_Access formal.
10408 If the returned value is unconstrained and created on the secondary
10409 stack, mark the enclosing block and function so that the secondary
10410 stack is not reclaimed on return.
10411 Treat returns from functions with controlling results similarly to
10412 returns from functions with unconstrained result subtypes.
10413 If the object returned is unconstrained, and an allocator must be
10414 created for it, analyze the allocator once the block for the extended
10415 return is installed, to ensure that finalizable components
10416 of the expression use the proper finalization list. Guard the call to
10417 Move_Final_List with a check that there is something to finalize.
10418 (Make_Tag_Ctrl_Assignment): Use "old" handling
10419 of controlled type assignment for virtual machines, since new code uses
10420 unsupported features (such as direct access to bytes in memory).
10422 2007-06-06 Gary Dismukes <dismukes@adacore.com>
10423 Ed Schonberg <schonberg@adacore.com>
10425 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
10426 accessibility actual, check for the case of an aliased object that has
10427 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
10428 we fall into processing for the attribute rather than the name of the
10430 (Expand_Inline_Call): If an actual is a literal, and the corresponding
10431 formal has its address taken in the body, create a temporary to capture
10432 value. If the return type is a limited interface, do not treat the
10433 return value as Controlled.
10434 (Is_In_Place_Function): If the return type is a limited interface,
10435 treat as returning in place. The actual returned object may not always
10436 be limited, but the caller has to assume that it is returned in place.
10437 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
10438 context of an allocator, use the correct finalization chain (that is,
10439 the chain belonging to the access type, rather than the chain belonging
10440 to the current scope).
10441 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
10442 result type rather than a controlling result as a precondition for
10443 adding an allocation form actual to a build-in-place call.
10444 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
10445 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
10446 primitive in the dispatch tables. This work is now done by Make_DT when
10447 the type is frozen.
10448 (Register_Predefined_DT_Entry): Removed.
10449 (Add_Return): If end label is not present, use sloc of last statement
10450 for generated return statement in procedure, for better gdb behavior
10452 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
10453 object address nodes to ensure proper processing by routines like
10455 (Expand_Call): Fix generation of validity check for parameter
10456 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
10457 the allocation form parameter if the result subtype is constrained,
10458 except when the function has a controlling result.
10459 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
10460 rather than Is_Controlled and Has_Controlled_Component, since we want to
10461 include class-wide result types in this treatment. Also test for a
10462 controlling result, since that also requires passing a finalization
10464 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
10465 even when the result subtype is constrained, to handle calls involving
10466 controlling results.
10467 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
10468 is now called even when the result subtype is constrained, to handle
10469 calls involving controlling results.
10470 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
10471 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
10472 now performs the test).
10473 (Make_Build_In_Place_Call_In_Object_Declaration):
10474 Add_Alloc_Form_Actual_* is now called even when the result subtype is
10475 constrained, to handle calls involving controlling results.
10476 (Add_Return): Accomodate rewritten pattern from local raise to goto
10477 transformation, so that we still recognize an transfer statement
10478 and do the right thing here in that case.
10479 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
10480 and end of subprogram code.
10481 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
10482 support for primitives that are functions (without formals) with a
10483 controlling result.
10484 (Inherited_From_Formal): If the actual subtype has not generic parent
10485 type, it is not an actual for a formal derived type, and there is no
10486 operation to inherit from the formal.
10488 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10489 Thomas Quinot <quinot@adacore.com>
10491 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
10492 inserted cleanup code appropriately for GDB use.
10493 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
10494 exception handler for Deep_Adjust or Deep_Finalize.
10495 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
10496 Raise_From_Controlled_Operation is available, use a call to that
10497 subprogram instead of a plain "raise Program_Error" node to raise
10498 Program_Error if an exception is propagated from an Adjust or Finalize
10500 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
10501 appears in the optional statement list of a triggering alternative, the
10502 scope actions can be inserted directly there, and not in the list that
10503 includes the asynchronous select itself.
10505 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10506 Robert Dewar <dewar@adacore.com>
10507 Hristian Kirtchev <kirtchev@adacore.com>
10509 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
10510 generated exception handler appropriately when debugging generated code.
10511 Deal properly with No_Exception_Propagation restriction mode.
10512 (Expand_N_Abort_Statement): Add an unchecked type conversion from
10513 System.Address to System.Tasking.Task_Id when processing the result of
10514 the predefined primitive _disp_get_task_id.
10515 (Expand_N_Asynchronous_Select): Clarify comment.
10516 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
10517 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
10518 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
10519 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
10520 privals and for generated call to Complete_Entry_Body, for better gdb
10522 (Copy_Result_Type): Utility to construct a parameter and result profile
10523 for protected functions whose return type is an anonymous access to
10525 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
10527 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
10528 point when the local-raise-to-goto transformation has taken place.
10530 2007-06-06 Javier Miranda <miranda@adacore.com>
10531 Nicolas Setton <setton@adacore.com>
10533 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
10534 functionality when the backend is generating code.
10535 Otherwise any serious error
10536 reported by the backend calling the frontend routine Error_Msg
10537 changes the Compilation_Mode to Check_Semantics, disables the
10538 functionality of this routine and causes the generation of
10539 spureous additional errors.
10541 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
10542 debugging information now generated by the compiler for fat-pointer
10544 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
10546 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
10548 2007-06-06 Thomas Quinot <quinot@adacore.com>
10550 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
10551 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10552 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
10553 For a remote call to a function with a classwide return type, apply an
10554 E.4(18) check to the returned value.
10555 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
10556 stream attributes of the designated type of an RACW, as they are not
10557 dispatching primitive operations.
10559 2007-06-06 Geert Bosch <bosch@adacore.com>
10561 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
10563 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
10565 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
10566 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
10568 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
10570 2007-06-06 Javier Miranda <miranda@adacore.com>
10572 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
10573 attribute compiling package Ada.Tags under No_Run_Time_Mode.
10575 2007-06-06 Javier Miranda <miranda@adacore.com>
10577 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
10578 deallocation of class-wide interface objects.
10579 (Expand_Dispatching_Constructor_Call): Take into account that if the
10580 result of the dispatching constructor is an interface type, the
10581 function returns a class-wide interface type; otherwise the returned
10582 object would be actual. The frontend previously accepted returning
10583 interface types because Expand_Interface_Actuals silently performed
10584 the management of the returned type "as if" it were a class-wide
10586 (Expand_Dispatching_Constructor_Call): Replace call to
10587 Make_DT_Access_Action by direct call to Make_Function_Call.
10589 2007-06-06 Robert Dewar <dewar@adacore.com>
10590 Ed Schonberg <schonberg@adacore.com>
10592 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
10593 compute masking constant, since we now set Esize properly to the
10595 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
10596 to match the alignment.
10597 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
10598 packed arrays of 8 bits or less.
10600 * freeze.adb (Freeze_Entity): When freezing the formals of a
10601 subprogram, freeze the designated type of a parameter of an access type
10602 only if it is an access parameter.
10603 Increase size of C convention enumeration object
10604 (Freeze_Entity, array type case): Make sure Esize value is properly
10605 adjusted for the alignment if it is known.
10606 (Freeze_Entity, array type case): When checking bit packed arrays for
10607 the size being incorrect, check RM_Size, not Esize.
10608 (Freeze_Record_Type): Check for bad discriminated record convention
10609 (In_Exp_Body): Return true if the body is generated for a subprogram
10610 renaming, either an attribute renaming or a renaming as body.
10611 (Check_Itype): If the designated type of an anonymous access component
10612 is a non-protected subprogram type, indicate that it is frozen, to
10613 prevent out-of-scope freeze node at some subsequent call.
10614 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
10615 only if the subprogram is neither imported nor exported, as well as the
10616 NCA descriptor class if the subprogram is exported.
10618 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10619 Arnaud Charlet <charlet@adacore.com>
10620 Robert Dewar <dewar@adacore.com>
10621 Gary Dismukes <dismukes@adacore.com>
10623 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
10624 default initialization on an imported object, when there is no
10625 initialization call generated for it.
10626 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
10629 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
10630 Static_Elaboration_Desired.
10631 Remove pragma Thread_Body.
10632 Implement a new pragma No_Body
10633 Removes the Explicit_Overriding pragma
10634 Remove Optional_Overriding pragma
10635 (Prag): Deal with Universal_Aliasing.
10636 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
10637 Pragma_CIL_Constructor): New names.
10639 * sem_cat.adb (Validate_Object_Declaration): An initialization that
10640 uses the equivalent aggregate of a type must be treated as an implicit
10642 (Get_Categorization): Check a unit for pragma Preelaborate only if it
10643 has none of the other categories.
10644 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
10645 to apply Import to an object renaming declaration.
10647 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
10648 from a C++ class should be declared as limited and that it will be
10649 considererd limited.
10650 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
10651 should be declared as limited and that it will be considererd limited.
10652 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
10653 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
10654 (Analyze_Pragma): Deal with Universal_Aliasing.
10655 (Sig_Flags): Likewise.
10656 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
10657 (Overflow_Checks_Unsuppressed): New flag.
10658 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10659 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
10660 case of JVM or .NET targets, and compiling user code.
10661 Add debugging convenience routine rv
10663 2007-06-06 Robert Dewar <dewar@adacore.com>
10665 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
10666 are interface type.
10667 (Build_Elementary_Input_Call): For floating-point use right type in the
10668 absence of strange size or stream size clauses.
10669 (Build_Elementary_Write_Call): Same fix
10670 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
10671 set to value that does not match base type size.
10673 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10675 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
10676 object of a limited type can be initialized with a call to a function
10677 that returns in place. If the limited type has unknown discriminants,
10678 and the underlying type is a constrained composite type, build an actual
10679 subtype from the function call, as is done for private types.
10680 (Side_Effect_Free): An expression that is the renaming of an object or
10681 whose prefix is the renaming of a object, is not side-effect free
10682 because it may be assigned through the renaming and its value must be
10683 captured in a temporary.
10684 (Has_Controlled_Coextensions): New routine.
10685 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
10686 as is done for other limited types.
10687 (Non_Limited_Designated_Type): new predicate.
10688 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
10690 Remove all handling of with_type clauses.
10692 * par-ch10.adb: Remove all handling of with_type clauses.
10694 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
10695 checksum if the main source could not be parsed.
10696 (Loat_Unit): When processing a child unit, determine properly whether
10697 the parent unit is a renaming when the parent is itself a child unit.
10698 Remove handling of with_type clauses.
10700 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
10701 (Set_Is_Static_Coextension): New procedure.
10702 (Has_Local_Raise): New function
10703 (Set_Has_Local_Raise): New procedure
10704 (Renaming_Exception): New field
10705 (Has_Init_Expression): New flag
10706 (Delay_Finalize_Attach): Remove because flag is obsolete.
10707 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
10708 Remove all handling of with_type clauses.
10709 (Exception_Junk): Can now be set in N_Block_Statement
10711 2007-06-06 Vincent Celier <celier@adacore.com>
10712 Robert Dewar <dewar@adacore.com>
10714 * frontend.adb (Frontend): Return immediately if the main source could
10715 not be parsed, because of preprocessing errors.
10717 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
10718 (Gnat1drv): Exit with errors if the main source could not be parsed,
10719 because of preprocessing errors.
10720 (Check_Rep_Info): New procedure
10722 2007-06-06 Robert Dewar <dewar@adacore.com>
10724 * g-hesorg.ads, g-heasor.ads,
10725 g-busorg.ads, g-bubsor.ads: Update documentation
10726 GNAT.Heap/Bubble_Sort_G is now pure
10728 2007-06-06 Robert Dewar <dewar@adacore.com>
10730 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
10732 2007-06-06 Robert Dewar <dewar@adacore.com>
10733 Ed Schonberg <schonberg@adacore.com>
10735 * g-comlin.ads, g-comlin.adb:
10736 Add new warning for renaming of function return objects
10738 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
10739 (Tree_Read): Use size of object instead of type'object_size, since the
10740 latter is incorrect for packed array types.
10741 (Tree_Write): Same fix
10743 * opt.ads: Add new warning for renaming of function return objects
10744 (Generating_Code): New boolean variable used to indicate that the
10745 frontend as finished its work and has called the backend to process
10746 the tree and generate the object file.
10747 (GCC_Version): Is now private
10748 (Static_Dispatch_Tables): New constant declaration.
10749 (Overflow_Checks_Unsuppressed): New flag.
10750 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10751 (List_Closure): New flag for gnatbind (-R)
10752 Zero_Formatting: New flag for gnatbind (-Z)
10753 (Special_Exception_Package_Used): New flag.
10754 (Warn_On_Unrepped_Components): New flag.
10756 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
10757 unit is a compilation unit, rather than relying on its scope, so that
10758 Standard can be renamed.
10759 (Analyze_Object_Renaming): Add new warning for renaming of function
10761 Also reject attempt to rename function return object in Ada 83 mode.
10762 (Attribute_Renaming): In case of tagged types, add the body of the
10763 generated function to the freezing actions of the type.
10764 (Find_Type): A protected type is visible right after the reserved word
10765 "is" is encountered in its type declaration. Set the entity and type
10766 rather than emitting an error message.
10767 (New_Scope): Properly propagate Discard_Names to inner scopes
10768 (Check_Nested_Access): New procedure.
10769 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
10770 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10772 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
10773 Add new warning for renaming of function return objects
10774 (Check_References): Suppress warnings for objects whose type or
10775 base type has Warnings suppressed.
10776 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
10777 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
10779 2007-06-06 Vincent Celier <celier@adacore.com>
10780 Emmanuel Briot <briot@adacore.com>
10781 Olivier Hainque <hainque@adacore.com>
10783 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
10784 absolute value of Header.Block_Size when displaying the freed physical
10786 (Allocate): Compute Storage_Address using Integer_Address, not
10787 Storage_Offset, because the range of Storage_Offset may not be large
10789 (Configure): New parameter Low_Level_Traces
10790 (Allocate, Deallocation, Free_Physically): Added low-level traces
10791 (Configure): new parameter Errors_To_Stdout.
10792 (Output_File): new subprogram
10793 (Deallocate, Dereference): Send error messages to the proper stream
10794 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
10795 documented. Previous code would send it to the current output file
10796 defined in GNAT.IO, which might not be stdout
10797 (Is_Valid): Adjust comment to mention that a positive reply means that
10798 Header_Of may be used to retrieve the allocation header associated with
10799 the subprogram Storage address argument. Return False early if this
10800 address argument is misaligned.
10802 2007-06-06 Vincent Celier <celier@adacore.com>
10804 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
10806 (ASIS_Main): New global variable
10807 (Get_Closure): New procedure
10808 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
10809 check, metric or pretty. Call Get_Closure in this case.
10810 (Check_Files): For GNAT LIST, check all sources of all projects when
10811 All_Projects is True.
10812 (GNATCmd): Accept -U for GNAT LIST
10814 2007-06-06 Vincent Celier <celier@adacore.com>
10816 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
10818 Correct error message when invocation of the linker fails
10819 Add explicit size clause for the C imported variables
10820 Object_List_File_Supported and Using_GNU_Linker to emphasize that
10821 we expect char size.
10822 Read target parameters earlier, since this is needed to set
10823 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
10826 2007-06-06 Vincent Celier <celier@adacore.com>
10829 Add 3 spaces before the default project directory when displaying
10830 the project search path.
10831 Add new command line switch '-l' to display license information.
10833 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
10835 * gmem.c: Add support for timestamps on memory operations.
10837 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
10838 operations (not used currently, just foundation for future
10839 enhancements). Add possibility to perform full dump of gmem.out file.
10840 (Print_Back_Traces): Declare accesses to root arrays constants since
10841 they aren't modified.
10842 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
10844 2007-06-06 Vincent Celier <celier@adacore.com>
10846 * gnatsym.adb: Update Copyright notice
10847 (Parse_Cmd_Line): Accept new switch -D
10848 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
10851 * prj.ads (Policy): New policy Direct
10852 (Yes_No_Unknown): New enumeration type
10853 (Project_Data): New component Libgnarl_Needed
10855 * prj-nmsc.adb (Check_For_Source): When recording a source file make
10856 use the untouched pathname casing.
10857 (Get_Directories): Ensure that the Display_Exec_Directory is using the
10858 proper casing on non case-sensitive platforms like Windows.
10859 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
10860 on all platforms, as it is not possible to know which one is allowed
10861 before processing the project files.
10862 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
10863 specified when symbol policy is Direct. Check that when there is a
10864 symbol file defined (either by default or with attribute
10865 Library_Symbol_File) it is not the same as the reference symbol file.
10866 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
10867 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
10868 extending projects.
10869 (Record_Ada_Source): Record a source that has been locally removed in an
10872 * symbols.ads (Policy): New policy Direct
10874 * symbols-vms.adb (Initialize): Take new policy Direct in case
10877 2007-06-06 Vincent Celier <celier@adacore.com>
10879 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
10880 Correct obvious bug (return Dir; instead of return Directory;).
10881 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
10883 2007-06-06 Thomas Quinot <quinot@adacore.com>
10885 * g-pehage.adb (Produce): Open output files in Binary mode, so that
10886 they have UNIX line endings (LF only) even on Windows, and thus pass
10887 all GNAT style checks.
10889 2007-06-06 Emmanuel Briot <briot@adacore.com>
10891 * g-regpat.adb (Quote): Fix improper quoting of '.'
10893 2007-06-06 Thomas Quinot <quinot@adacore.com>
10895 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
10896 default, set False on a per-runtime basis.
10897 (Need_Netdb_Buffer): New constant.
10899 * g-socket.ads, g-socket.adb: Import new package
10900 GNAT.Sockets.Thin.Task_Safe_NetDB.
10901 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
10902 binding to obtain proper message.
10903 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
10904 Replace various occurrences of Arry (Arry'First)'Address with the
10905 equivalent Arry'Address (GNAT always follows implementation advice from
10907 (Get_Host_By_Address, Get_Host_By_Name,
10908 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
10909 instead, rely on platform-specific task safe netdb operations provided
10912 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
10913 parameter Process_Blocking_IO.
10914 (Host_Error_Messages): Add stub body.
10915 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10916 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
10917 Safe_Getservbyport): Move functions into new child package
10919 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
10920 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
10921 (In_Addr): Add alignment clause.
10923 2007-06-06 Robert Dewar <dewar@adacore.com>
10925 * g-trasym.ads, g-traceb.ads: Update list of supported targets
10926 Add note about symbolic traceback
10928 2007-06-06 Pascal Obry <obry@adacore.com>
10930 * hostparm.ads (Normalized_CWD): Use the host directory separator
10931 instead of the hardcoded forward slash which is not the proper
10932 character on Windows for example.
10933 (Java_VM): Removed.
10935 2007-06-06 Vincent Celier <celier@adacore.com>
10936 Arnaud Charlet <charlet@adacore.com>
10938 * a-clrefi.adb, a-clrefi.ads: New files
10940 * impunit.adb: Add s-os_lib in the list of user visible units.
10941 (Non_Imp_File_Names_95): Add a-clrefi to this list
10942 Remove obsolete run-time entries.
10943 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
10944 "a-exetim" -- Ada.Execution_Time
10945 "a-extiti" -- Ada.Execution_Time.Timers
10947 * mlib-prj.ads, mlib-prj.adb
10948 (Build_Library): Use untouched object dir and library dir. At the
10949 same time makes sure that the checks are done using the canonical
10950 form. Removes hard-coded directory separator and use the proper host
10952 (Process_Project): Do not look in object directory to check if libgnarl
10953 is needed for a library, if there is no object directory.
10954 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
10956 (Build_Library): When invoking gnatbind, use a response file if the
10957 total size of the arguments is too large.
10959 * Makefile.rtl: (g-sttsne): New object file.
10960 Add entry for a-clrefi, s-utf_32, System.Exceptions
10962 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
10963 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
10964 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
10965 Change g-string to s-string, g-os_lib to s-os_lib
10966 Change all g-utf_32 references to s-utf_32
10968 2007-06-06 Tristan Gingold <gingold@adacore.com>
10969 Olivier Hainque <hainque@adacore.com>
10971 * init.c: Do not adjust IP of an imported VMS exception of ia64.
10972 LIB$STOP is called to raise an exception and the IP of the exception
10973 is the instruction right after the call.
10974 (__gnat_adjust_context_for_raise, AIX): Implement.
10975 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
10976 adjust_context_for_raise before Raise_From_Signal_Hanler.
10977 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
10978 siginfo is passed to the handler, necessary to let the zcx propagation
10979 engine unwind past it.
10981 2007-06-06 Olivier Hainque <hainque@adacore.com>
10983 * initialize.c (__gnat_initialize for vxworks): Update documentation
10984 on the ZCX support, using different sets of crtstuff objects than with
10987 2007-06-06 Robert Dewar <dewar@adacore.com>
10989 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
10991 (Layout_Type): Fix recomputation of size from alignment.
10993 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10994 Javier Miranda <miranda@adacore.com>
10996 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
10997 association in an instance.
10998 (Copy_Generic_Node): If the node is a string literal, no need to copy
11000 (Is_Generic_Formal): For a formal subprogram, the declaration is the
11001 grandparent of the entity.
11002 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
11003 to simplify handling of formal interfaces that derive from other formal
11005 (Instantiate_Subprogram_Body): The defining unit name of the body of
11006 the instance should be a defining identifier.
11007 (Install_Formal_Packages): make global to the package, for use in
11008 instantiations of child units.
11009 (Analyze_Package_Instantiation): Do not attempt to set information on an
11010 enclosing master of an entry when expansion is disabled.
11011 (Instantiate_Type): If the actual is a tagged synchronized type and the
11012 generic ancestor is an interface, create a generic actual for the
11013 corresponding record.
11014 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
11015 declaration, to ensure that the interface list is processed correctly.
11016 (Inline_Instance_Body): If enclosing scope is an instance body, remove
11017 its entities from visibiility as well.
11018 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
11019 given with a named association, analyze the expression only, not the
11020 discriminant association itself.
11021 (Reset_Entity): If the analysis of a selected component is transformed
11022 into an expanded name in the prefix of a call with parameters, do not
11023 transform the original node into an expanded name, to prevent visibility
11024 errors in the case of nested generics.
11025 (Check_Private_View): For an array type, check whether the index types
11026 may need exchanging.
11028 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11029 Vincent Celier <celier@adacore.com>
11031 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
11032 since both are separated.
11033 Add support for imported CIL packages.
11034 Add further special handling of "value_type" for CIL.
11035 Add special handling of pragma Import for CIL.
11037 * make.ads, make.adb: When switch -eS is used, direct all outputs to
11038 standard output instead of standard error, except errors.
11039 (Absolute_Path): Use untouched casing for the parent directory.
11040 (Add_Library_Search_Dir): Use the untouched directory name.
11041 (Add_Source_Search_Dir): Idem.
11042 (Change_To_Object_Directory): Update output to use proper casing.
11043 (Create_Binder_Mapping_File): Use the untouched filename to set
11045 (Gnatmake): Use untouched library and executable directory names.
11046 (Insert_Project_Sources): Use untouched filename for spec and body.
11047 (Is_In_Object_Directory): Use untouched object directory.
11048 (Mark_Directory): Idem.
11049 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
11050 contains the non-canonical filename in all cases.
11051 (Change_To_Object_Directory): In verbose mode, display the name of the
11052 object directory we're changing to.
11053 (Compile_Sources): Make sure, when a project file is used, to compile
11054 the body of the unit, when there is one, even when only the spec is
11055 recorded in an ALI file.
11056 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
11058 (Report_Compilation_Failed): New procedure
11059 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
11060 procedures moved from the spec to the body.
11061 (Extract_Failure): Removed, not used
11062 Replace explicit raises of exception Bind_Failed and Link_Failed with
11063 calls to Make_Failed with the proper message.
11064 Replace explicit raises of exception Compilation_Failed with calls to
11065 procedure Report_Compilation_Failed.
11066 (Initialize): Create mapping files unconditionally when using project
11069 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11070 Pragma_CIL_Constructor): New names.
11072 * targparm.ads, targparm.adb
11073 (Compiler_System_Version): Removed, no longer used.
11074 (Get_Target_Parameters): Relax checks on system.ads validity. Add
11075 handling of two new system flags: JVM and CLI.
11077 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11078 Arnaud Charlet <charlet@adacore.com>
11080 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
11081 time, use the default s-interr body that provides interrupt support
11083 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
11084 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
11085 g-soccon.ads, and s-taprop.adb for the marte run time.
11086 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
11087 timers are supported on marte.
11088 (EH_MECHANISM for marte): Do not use ZCX.
11089 (THREADSLIB for marte): Use -lmarte.
11090 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
11091 Add mlib-tgt-specific.o to gnatmake objects
11092 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
11093 longer of MLib.Tgt.
11094 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
11095 6, either kernel or rtp, use a specialized version of s-osinte.ads.
11097 2007-06-06 Pascal Obry <obry@adacore.com>
11099 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
11101 2007-06-06 Vincent Celier <celier@adacore.com>
11103 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
11104 separator, use instead the proper host directory separator.
11105 (Copy_ALI_Files): Make sure that an already existing ALI file in the
11106 ALI copy dir is writable, before doing the copy.
11108 * mlib-utl.ads, mlib-utl.adb:
11109 (Gcc): If length of command line is too long, put the list of object
11110 files in a response file, if this is supported by the platform.
11111 (Ar): If invocation of the archive builder is allowed to be done in
11112 chunks and building it in one shot would go above an OS dependent
11113 limit on the number of characters on the command line, build the archive
11116 2007-06-06 Vincent Celier <celier@adacore.com>
11118 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
11119 of specified object file is not equal to base name of source.
11121 2007-06-06 Javier Miranda <miranda@adacore.com>
11122 Hristian Kirtchev <kirtchev@adacore.com>
11123 Ed Schonberg <schonberg@adacore.com>
11125 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
11126 the full type declaration.
11127 (Analyze_Component_Declaration): Add local variable E to capture the
11128 initialization expression of the declaration. Replace the occurences of
11129 Expression (N) with E.
11130 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
11131 limited interface object with a function call.
11132 (Array_Type_Declaration): If the declaration lacks subtype marks for
11133 indices, create a simple index list to prevent cascaded errors.
11134 (Is_Null_Extension): Ignore internal components created for secondary
11135 tags when checking whether a record extension is a null extension.
11136 (Check_Abstract_Interfaces): Add missing support for interface subtypes
11137 and generic formals.
11138 (Derived_Type_Declaration): Add missing support for interface subtypes
11139 and generic formals.
11140 (Analyze_Object_Declaration): If an initialization expression is
11141 present, traverse its subtree and mark all allocators as static
11143 (Add_Interface_Tag_Component): When looking for components that may be
11144 secondary tags, ignore pragmas that can appear within a record
11146 (Check_Abstract_Overriding): an inherited function that dispatches on
11147 result does not need to be overriden if the controlling type is a null
11149 (Mentions_T): Handle properly a 'class attribute in an anonymous access
11150 component declaration, when the prefix is an expanded name.
11151 (Inherit_Component): If the derivation is for a private extension,
11152 inherited components remain visible and their ekind should not be set
11154 (Find_Type_Of_Object): In the case of an access definition, always set
11155 Is_Local_Anonymous_Access. We were previously not marking the anonymous
11156 access type of a return object as a local anonymous type.
11157 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
11158 range with character literal bounds.
11159 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
11160 (Access_Subprogram_Declaration): Indicate that the type declaration
11161 depends on an incomplete type only if the incomplete type is declared
11163 (Analyze_Subtype_Declaration): Handle properly subtypes of
11164 synchronized types that are tagged, and that may appear as generic
11166 (Access_Subprogram_Declaration): An anonymous access to subprogram can
11167 appear as an access discriminant in a private type declaration.
11168 (Add_Interface_Tag_Components): Complete decoration of the component
11169 containing the tag of a secondary dispatch table and the component
11170 containing the offset to the base of the object (this latter component
11171 is only generated when the parent type has discriminants --as documented
11173 (Inherit_Components): Use the new decoration of the tag components to
11174 improve the condition that avoids inheriting the components associated
11175 with secondary tags of the parent.
11176 (Build_Discriminanted_Subtype): Indicate to the backend that the
11177 size of record types associated with dispatch tables is known at
11179 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
11180 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
11181 to include task, protected, and synchronized interfaces as limited
11183 (Process_Discriminants): Remove the setting of
11184 Is_Local_Anonymous_Access on the type of (anonymous) access
11185 discriminants of nonlimited types.
11186 (Analyze_Interface_Type_Declaration): Complete the decoration of the
11187 class-wide entity it is is already present. This situation occurs if
11188 the limited-view has been previously built.
11189 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
11191 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
11194 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11196 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
11197 of the type that specify the position of interface tags when the type
11198 inherits discriminated array components from the parent type.
11199 If a component is initialized with a box, check for the presence of a
11200 default expression in its declaration before using its default
11201 initialization procedure.
11202 (Resolve_Record_Aggregate): If a component is box-initialized, and the
11203 component type has a discriminants, create a partial aggregate for it
11204 by copying the discriminants of the component subtype.
11205 Reject attempt to initialize a discriminant with a box.
11206 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
11207 associated with dispatch tables is known at compile time.
11208 (Get_Value): If an association in a record aggregate has a box
11209 association, and the corresponding record component has a default
11210 expression, always copy the default expression, even when the
11211 association has a single choice, in order to create a proper
11212 association for the expanded aggregate.
11214 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11215 Robert Dewar <dewar@adacore.com>
11217 * par-ch12.adb (P_Generic_Associations): The source position of an
11218 Others association is that of the others keyword, not that of the token
11219 that follows the box.
11220 (P_Formal_Type_Definition): Handle formal access types that carry a
11221 not null indicator.
11223 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
11224 multiple identifier are present, save Scan_State before scanning the
11225 colon, to ensure that separate trees are constructed for each
11227 (P_Identifier_Declarations): For object declaration, set new flag
11228 Has_Init_Expression if initialization expression present.
11229 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
11230 Improve NOT NULL error messages
11232 2007-06-06 Robert Dewar <dewar@adacore.com>
11234 * par-ch4.adb: (P_Name): Recover from literal used as name
11236 2007-06-06 Vincent Celier <celier@adacore.com>
11238 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
11239 defaulted to False.
11240 In the "not" case, recursive call with Complemented set to True.
11241 Do not allow "or" or "and" operators when Complemented is True.
11243 2007-06-06 Vincent Celier <celier@adacore.com>
11245 * prj.adb (Project_Empty): Gives default value for new component
11248 * prj-attr.ads: Minor reformatting
11250 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
11251 directory using the untouched casing.
11252 (For_All_Source_Dirs): Idem.
11254 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
11255 directories specified with switches -aP.
11256 (Add_Search_Project_Directory): New procedure
11257 (Initialize_Project_Path): Put the directories in table
11258 Search_Directories in the project search path.
11259 (Initialize_Project_Path): For VMS, transform into canonical form the
11262 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11264 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
11265 true if configurable run-time or No_Run_Time is set.
11266 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
11267 processing an unit which is not the one being compiled.
11269 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11271 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
11272 Replace UC by Ada.UC
11274 * s-bitops.adb: Get rid of System.Pure_Exceptions.
11275 Replace UC by Ada.UC
11277 2007-06-06 Robert Dewar <dewar@adacore.com>
11279 * scng.adb: (Check_End_Of_Line): Deal with very long lines
11281 2007-06-06 Robert Dewar <dewar@adacore.com>
11283 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
11284 Remove no longer used nodes.
11286 2007-06-06 Javier Miranda <miranda@adacore.com>
11287 Ed Schonberg <schonberg@adacore.com>
11288 Robert Dewar <dewar@adacore.com>
11290 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
11291 on obsolescent withed unit in case of limited-withed units.
11292 (Analyze_Compilation_Unit): Add guard to code that removed an
11293 instantiation from visibility, to prevent compiler aborts when
11294 instantiation is abandoned early on.
11295 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
11296 current unit being analyzed, and Distinguish local incomplete types
11297 from limited views of types declared elsewhere.
11298 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
11299 to state that the class-wide entity is shared by the limited-view
11301 (Analyze_With_Clause): Improve placement of flag for case of
11302 unimplemented unit.
11303 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
11304 manner similar to GNAT.Current_Exception. This is a violation of
11305 restriction (No_Exception_Propagation), and also inhibits the
11306 optimization of local raise to goto.
11307 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
11308 and if so set Most_Recent_Exception_Used flag in Opt, and also check
11309 for violation of restriction No_Exception_Propagation.
11311 2007-06-06 Javier Miranda <miranda@adacore.com>
11312 Hristian Kirtchev <kirtchev@adacore.com>
11313 Gary Dismukes <dismukes@adacore.com>
11315 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
11316 use of entity Exception_Occurrence if it is not available in the
11319 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
11320 concurrent types are declared within an Ada 2005 generic, build their
11321 corresponding record types since they are needed for overriding-related
11323 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
11324 protected type does not implement a task interface or a nonlimited
11326 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
11327 type does not implement a protected interface or a nonlimited interface.
11328 (Single_Task_Declaration, Single_Protected_Declaration): use original
11329 entity for variable declaration, to ensure that debugging information
11330 is correcty generated.
11331 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
11332 routines if the expander is not active.
11333 (Analyze_Task_Body): Mark all handlers to stop optimization of local
11334 raise, since special things happen for task exception handlers.
11336 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
11337 concurrent types declared within a generic.
11338 (Check_Dispatching_Operation): Do not emit warning about late interface
11339 operations in the context of an instance.
11340 (Check_Dispatching_Call): Remove restriction against calling a
11341 dispatching operation with a limited controlling result.
11342 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
11343 Register_Interface_DT_Entry by calls to Register_Primitive.
11344 (Check_Dispatching_Formals): Handle properly a function with a
11345 controlling access result.
11347 2007-06-06 Robert Dewar <dewar@adacore.com>
11348 Arnaud Charlet <charlet@adacore.com>
11350 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
11351 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
11352 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
11353 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
11354 message when using a VM, since this attribute is not supported.
11355 (Analyze_Record_Representation_Clause): Give unrepped component warnings
11357 * usage.adb: Add new warning for renaming of function return objects
11358 Indicate that -gnatwp and -gnatwP concern front-end inlining
11359 Add line for -gnatyg
11360 Add usage information for -gnatw.c/C
11362 2007-06-06 Robert Dewar <dewar@adacore.com>
11363 Ed Schonberg <schonberg@adacore.com>
11366 (Find_Var): Do not consider function call in test for infinite loop
11367 warning if warnings set off for function entity.
11368 (One_Bound): Do not create a temporary for a loop bound if it is a
11370 (Analyze_Assignment): Traverse the right hand side of an assignment and
11371 mark all allocators as static coextensions.
11372 (Analyze_Assignment): Exempt assignments involving a dispatching call
11373 to a function with a controlling access result from the check requiring
11374 the target to be class-wide.
11376 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11377 Ed Schonberg <schonberg@adacore.com>
11378 Robert Dewar <dewar@adacore.com>
11379 Javier Miranda <miranda@adacore.com>
11381 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
11382 chain of coextensions when an allocator serves as the root of such a
11384 (Propagate_Coextensions): Remove the test for the root being an
11386 (Resolve_Allocator): Add condition to ensure that all future decoration
11387 occurs on an allocator node. Add processing and cleanup for static
11389 (Valid_Conversion): If the operand type is the limited view of a
11390 class-wide type, use the non-limited view is available to determine
11391 legality of operation.
11392 (Ambiguous_Character): move to spec, for use elsewhere.
11393 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
11394 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
11395 character literals.
11396 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
11397 Do_Division_Check flag explicitly.
11398 (Resolve_Actuals): If the actual is of a synchronized type, and the
11399 formal is of the corresponding record type, this is a call to a
11400 primitive operation of the type, that is declared outside of the type;
11401 the actual must be unchecked-converted to the type of the actual
11402 (Resolve_Call): Kill all current values for any subprogram call if
11403 flag Suppress_Value_Tracking_On_Call is set.
11404 (Resolve_Type_Conversion): Generate error message the the operand
11405 or target of interface conversions come from a limited view.
11406 (Check_Infinite_Recursion): Ignore generated calls
11407 (Check_Allocator_Discrim_Accessibility): New procedure for checking
11408 that an expression that constrains an access discriminant in an
11409 allocator does not denote an object with a deeper level than the
11410 allocator's access type.
11411 (Resolve_Allocator): In the case of an allocator initialized by an
11412 aggregate of a discriminated type, check that associations for any
11413 access discriminants satisfy accessibility requirements by calling
11414 Check_Allocator_Discrim_Accessibility.
11415 (Resolve_Equality_Op): Handle comparisons of anonymous access to
11416 subprogram types in the same fashion as other anonymous access types.
11417 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
11418 message that is not a continuation message.
11419 (Resolve_Type_Conversion): Add missing support for conversion to
11421 (Resolve_Actuals): Introduce a transient scope around the call if an
11422 actual is a call to a function returning a limited type, because the
11423 resulting value must be finalized after the call.
11424 (Resolve_Actuals): If the call was given in prefix notations, check
11425 whether an implicit 'Access reference or implicit dereference must be
11426 added to make the actual conform to the controlling formal.
11428 2007-06-06 Robert Dewar <dewar@adacore.com>
11429 Javier Miranda <miranda@adacore.com>
11431 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
11432 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
11433 overriding of an inherited private subprogram now there is no need to
11434 inherit its dispatching slot and reduce the size of the dispatch table.
11435 Set_All_DT_Position now ensures that the same slot is now assigned to
11436 both entities. This is required to statically build the dispatch table.
11437 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
11438 of calling Set_All_DT_Position to re-evaluate the position of the
11439 entries in the dispatch table. Such reevaluation is not desired if
11440 the tagged type is already frozen.
11442 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11443 Gary Dismukes <dismukes@adacore.com>
11444 Robert Dewar <dewar@adacore.com>
11445 Javier Miranda <miranda@adacore.com>
11447 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
11448 reference acts as an lvalue when the attribute name modifies the prefix
11449 (Is_Coextension_Root): New routine.
11450 (Mark_Static_Coextensions): New routine.
11451 (Type_Access_Level): Revise code for checking the level of the
11452 anonymous access type of a return object.
11453 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
11454 (Matches_Prefixed_View_Profile): Remove the no longer necessary
11455 retrieval of the corresponding controlling record type.
11456 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
11457 concurrent types declared within a generic as well as class wide types.
11458 Emit a mode incompatibility error whenever a protected entry or routine
11459 override an interface routine whose first parameter is not of mode
11460 "out", "in out" or access to variable.
11461 (Overrides_Synchronized_Primitive): Rename to
11462 Find_Overridden_Synchronized_Primitive.
11463 (Collect_Interface_Components): New subprogram that collects all the
11464 components of a tagged record containing tags of secondary dispatch
11466 (Add_Global_Declaration): New procedure
11467 (Abstract_Interface_List): Handle properly the case of a subtype of a
11469 (Type_Access_Level): In the case of a type whose parent scope is a
11470 return statement, call Type_Access_Level recursively on the enclosing
11471 function's result type to determine the level of the return object's
11473 (Build_Elaboration_Entity): Build name of elaboration entity from the
11474 scope chain of the entity, rather than the unit name of the file name.
11475 (Check_Nested_Access): New procedure.
11476 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11477 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11478 (Get_Renamed_Entity): Utility routine for performing common operation
11479 of chasing the Renamed_Entity field of an entity.
11481 2007-06-06 Robert Dewar <dewar@adacore.com>
11483 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
11485 (Check_A_Call): Add check for entry call which was causing blowup
11487 2007-06-06 Olivier Hainque <hainque@adacore.com>
11489 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
11490 special code on ia64-vms to handle major incompatibilities between the
11491 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
11492 this routine with a very different set of arguments and expectations on
11495 2007-06-06 Thomas Quinot <quinot@adacore.com>
11497 * socket.c (__gnat_close_signalling_fd): New function.
11498 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
11499 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
11500 New supporting functions for task safe Netdb operations.
11502 2007-06-06 Thomas Quinot <quinot@adacore.com>
11503 Olivier Hainque <hainque@adacore.com>
11505 * a-except-2005.ads, a-except-2005.adb
11506 (Raise_From_Controlled_Operation): New procedure in
11507 (private part of) Ada.Exceptions (standard runtime version). Used to
11508 provide informational exception message when Program_Error is raised as
11509 a result of an Adjust or Finalize operation propagating an exception.
11510 (Rmsg_28): Fix description for E.4(18) check.
11511 (Raise_Current_Excep): Call Debug_Raise_Exception just before
11512 propagation starts, to let debuggers know about the event in a reliable
11514 Take the address of E and dereference to make sure it is homed on stack
11515 and prevent the stores from being deleted, necessary for proper
11516 debugger behavior on "break exception" hits.
11517 (Local_Raise): Moved to System.Exceptions
11519 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
11520 exception message from the current occurrence and raise Program_Error
11521 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
11523 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11524 Arnaud Charlet <charlet@adacore.com>
11526 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
11529 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
11530 priority associated to a lock.
11532 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
11533 assertion to take into account case of no abort restriction.
11534 (Initialize_Protection_Entries): Add initialization for the field
11535 New_Ceiling associated to the protected object.
11536 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
11539 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11540 since this function needs to be set consistently with Update_Exception.
11542 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11543 since this function needs to be set consistently with Update_Exception.
11545 * s-taskin.ads: Update comments on
11546 Interrupt_Server_Blocked_On_Event_Flag.
11547 (Unbind_Handler): Fix handling of server_task wakeup
11548 (Server_Task): Set self's state so that Unbind_Handler can take
11549 appropriate actions.
11550 (Common_ATCB): Now use a constant from System.Parameters to determine
11551 the max size of the Task_Image field.
11553 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
11554 Initialize_Analyzer function.
11555 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
11556 take into account case of no abort restriction.
11557 ([Vulnerable_]Complete_Master): Modify assertion.
11559 * s-tataat.adb (Finalize): Use the nestable versions of
11560 Defer/Undefer_Abort.
11562 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
11564 * s-tpobop.ads: Update comments.
11566 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
11567 of locking the object manually, to avoid inconsistencies between
11568 Lock/Unlock_Entry assertions.
11570 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
11572 application and System.Parameters.No_Abort is True.
11573 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
11574 (Unbind_Handler): Fix handling of server_task wakeup
11575 (Server_Task): Set self's state so that Unbind_Handler can take
11576 appropriate actions.
11578 2007-06-06 Thomas Quinot <quinot@adacore.com>
11580 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
11581 declarations instead of an explicit null body, for conciseness.
11583 2007-06-06 Robert Dewar <dewar@adacore.com>
11585 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
11586 illegal aggregate and the type is still Any_Composite.
11587 (Subtypes_Statically_Match): Fix problem of empty discriminant list
11589 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11591 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
11592 to prevent subsequent expansion.
11594 2007-06-06 Robert Dewar <dewar@adacore.com>
11596 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
11598 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11599 Robert Dewar <dewar@adacore.com>
11601 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
11603 (Write_Itype): Handle case of string literal subtype, which
11604 comes up in this context.
11605 (Update_Itype): when debugging expanded code, update sloc of itypes
11606 associated with defining_identifiers and ranges, for gdb use.
11607 (Sprint_Node_Actual): Add static keyword to object or exception
11608 declaration output if Is_Statically_Allocated is True.
11609 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
11610 or task body, so that the tree carries the proper Sloc information for
11612 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
11614 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11616 * s-secsta.adb (Chunk): Ensure this object has a static size known at
11617 compile time, to avoid dynamic memory allocation
11618 (Elaboration code): Only use dynamic memory allocation when needed.
11620 2007-06-06 Quentin Ochem <ochem@adacore.com>
11622 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
11624 (Stack_Analyzer): Added field "Overflow_Guard"
11625 (Task_Result): Added field "Overflow_Guard".
11626 (Index_Str): New constant.
11627 (Task_Name_Str): New constant.
11628 (Actual_Size_Str): New constant.
11629 (Pattern_Array_Element_Size): New constant.
11630 (Get_Usage_Range): New subprogram.
11631 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
11632 Now align the output.
11634 (Initialize): Added value for Overflow_Guard.
11635 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
11636 Update the value of the overflow guard according to the actual
11637 beginning of the pattern array.
11638 (Initialize_Analyzer): Added parameter Overflow_Guard.
11639 Take this parameter into accound when computing the max size.
11640 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
11641 (Report_Result): Removed extra useless procedure.
11642 Updated call to Output_Result.
11643 Moved full computation of the Task_Result here.
11645 2007-06-06 Thomas Quinot <quinot@adacore.com>
11647 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
11648 Thread_Blocking_IO, always True by default, set False on a per-runtime
11650 Add Windows-specific constants
11651 Add new constant Need_Netdb_Buffer.
11652 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11653 not, whether to use getXXXbyYYY_r.
11655 * gsocket.h: Add new constant Need_Netdb_Buffer.
11656 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11657 not, whether to use getXXXbyYYY_r.
11659 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
11661 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
11662 than their first call.
11663 Add type Dummy_Communication_Block used in the generation of the pre-
11664 defined dispatching primitive _disp_asynchronous_select.
11665 (Storage_Element): Put Pragma Universal_Aliasing on it.
11667 2007-06-06 Vincent Celier <celier@adacore.com>
11669 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
11672 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
11673 letter if it is not followed by a '/' or a '\'.
11674 (Windows): New Boolean function
11676 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
11678 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
11680 (Containing_Directory): Raise Use_Error when the directory is a root
11682 (Extension): When returning the result, use a conversion to Result_Type,
11683 not a qualification.
11685 2007-06-06 Robert Dewar <dewar@adacore.com>
11687 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
11688 (Set_Style_Check_Options): Recognize new -gnatyg style switch
11690 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
11691 Warn_On_Non_Local_Exception to False, to turn off warnings for
11692 No_Exception_Propagation in ZFP runtime.
11693 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
11695 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
11697 2007-06-06 Vincent Celier <celier@adacore.com>
11699 * switch-b.adb (Scan_Binder_Switches): Add processing for new
11702 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
11703 (Scan_Make_Switches): Recognize new switch -aP
11705 2007-06-06 Matthew Gingell <gingell@adacore.com>
11706 Jose Ruiz <ruiz@adacore.com>
11708 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
11709 VxWorks task descriptor in the Ada run time, call a C subprogram
11710 (__gnat_get_stack_info) that extracts the required information.
11712 * sysdep.c: Back out temporary lynxos workaround.
11713 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
11714 time the stack information associated to the currently executing task.
11715 Only VxWorks systems require this function.
11717 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
11719 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
11720 add the stack bias if the offset is computed from a frame address.
11721 (__gnat_backtrace): Adjust for above change.
11723 2007-06-06 Thomas Quinot <quinot@adacore.com>
11725 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
11726 PE_Non_Transportable_Actual.
11727 (By_Descriptor_Last): New constant.
11728 (By_Copy_Return): Likewise.
11730 2007-06-06 Vincent Celier <celier@adacore.com>
11732 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
11735 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
11736 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
11737 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
11738 Add missing comment for /OPTIMIZE=SPACE
11739 Add entry for OPTIMIZE=SPACE
11740 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
11741 Add documentation for new qualifiers corresponding to -gnatw.c/.C
11743 2007-06-06 Vincent Celier <celier@adacore.com>
11744 Robert Dewar <dewar@adacore.com>
11746 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
11749 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
11750 Document gnatbind switch -a
11751 (case Constructions): Document that variables declarations are allowed
11752 for previously declared variables.
11753 Fix external lib project example
11754 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
11755 Indicate that "#if not X or Y then" is not allowed in input files to
11757 Document gnatw.x and gnatw.X warning flags
11758 Mention -Winline switch to activate warnings when back-end inlining is
11760 Add gnatcheck rule descriptions
11761 Describe how to use the GNAT driver to call a tool on a closure.
11762 Describe how to run project-wide checks or metrics.
11763 Document gnatbind's -R option
11764 Updated to account for Ada 2005 support
11766 * gnat_rm.texi (Case Construction): Allow variable declarations for
11767 previously declared variables.
11768 (Representation Clauses and Pragmas): Lift restriction on alignment
11769 clauses for record types.
11770 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
11771 Document No_Exception_Propagation restriction
11772 Document No_Body pragma
11773 Updated to account for Ada 2005 support; corrected some typos
11774 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
11776 * gnat-style.texi: Make it clear that we never use mode IN for
11777 procedures or functions
11779 * ug_words: Add entries for -gnatw.x and -gnatw.X
11780 Add entries for -gnatw.c/.C
11782 2007-06-06 Pascal Obry <obry@adacore.com>
11783 Vincent Celier <celier@adacore.com>
11785 * makegpr.adb (Add_Archive_Path): Use untouched object and library
11786 dirs and library name.
11787 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
11789 (Build_Library): Idem.
11790 (Compile_Individual_Sources): Idem.
11791 (Compile_Link_With_Gnatmake): Idem.
11792 (Compile_Sources): Idem.
11793 (Get_Imported_Directories): Idem.
11794 (Link_Executables): Idem. Same change for the executable dir.
11795 (Check_Compilation_Needed): C_Source_Path new variable containing
11796 the canonical form of Source_Path to check against the source names
11797 in the dependency file.
11798 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
11799 verbose mode, display the name of the object directory we're changing
11801 (Saved_Switches): New name of table X_Switches
11802 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
11803 (Usage): New line for switch -aP
11804 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
11805 testing if a directory should be added to the search path.
11807 2007-06-06 Javier Miranda <miranda@adacore.com>
11809 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
11810 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
11811 declaration after freezing point of all its associated tagged types;
11812 otherwise such types are frozen too early.
11814 2007-06-06 Robert Dewar <dewar@adacore.com>
11816 * a-reatim.adb: Documentation addition
11818 * g-cgideb.adb: Minor code reorganization
11820 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
11821 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
11822 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
11824 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
11825 function. Change name New_Scope to Push_Scope
11826 (Get_Debug_Flag_K): Remove unused obsolete function.
11828 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
11831 * makeusg.adb: Update Copyright notice
11832 Add line for switch -aP
11834 * makeusg.adb: Fix wording of some usage messages
11836 * s-assert.adb (Raise_Assert_Failure): Add call to
11837 Debug_Raise_Assert_Failure.
11839 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
11840 (2, Standard'Alignment) for compatibility with AAMP (where alignment
11841 is restricted to 1).
11843 * s-wchjis.adb: Remove use of System.Pure_Exceptions
11845 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
11846 node location to No_Location when we're not debugging the expanded
11849 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
11851 * misc.c (enumerate_modes): Consider log2_b to always be one.
11853 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
11855 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
11857 2007-05-02 Pascal Obry <obry@adacore.com>
11859 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
11860 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
11861 encoding support of Stream_IO.
11862 (Write_Unit): Idem.
11864 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
11865 filename and corresponding encoding to match the OS requirement.
11866 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
11867 routine will fail on specific devices like CON: AUX: ...
11869 PR ada/29856: Add missing braces
11871 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
11874 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
11876 2007-04-21 Jan Hubicka <jh@suse.cz>
11878 * misc.c (gnat_expand_body): Don't call target for destructors,
11879 avoid redundant check on syntax errors.
11881 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
11883 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
11884 instead of checking GIMPLE_STMT_P in chain_next.
11886 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
11889 * system-linux-alpha.ads: Disable constant condition warning for the
11890 Default_Bit_Order variable.
11891 * system-linux-s390.ads: Likewise.
11892 * system-linux-s390x.ads: Likewise.
11893 * system-linux-sparc.ads: Likewise.
11895 2007-04-06 Javier Miranda <miranda@adacore.com>
11896 Matt Heaney <heaney@adacore.com>
11897 Robert Dewar <dewar@adacore.com>
11899 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
11900 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
11901 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
11902 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
11903 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
11904 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
11905 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
11906 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
11907 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
11908 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
11909 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
11910 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
11911 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
11912 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
11913 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
11914 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
11915 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
11916 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
11917 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
11918 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
11919 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
11920 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
11921 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
11922 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
11923 s-taprop-tru64.adb, s-taprop-irix.adb,
11924 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
11925 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
11926 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
11927 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
11928 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
11929 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
11930 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
11931 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
11932 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
11933 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
11934 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
11935 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
11936 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
11937 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
11938 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
11939 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
11940 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
11941 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
11942 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
11943 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
11945 Update documentation.
11948 2007-04-06 Robert Dewar <dewar@adacore.com>
11950 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
11951 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
11952 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
11953 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
11954 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
11955 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
11956 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
11957 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
11958 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
11959 system-hpux-ia64.ads, targparm.adb,
11960 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
11962 * system.ads: Move Functions_Return_By_DSP to obsolete section,
11963 kept for bootstrap purposes only.
11965 2007-04-06 Arnaud Charlet <charlet@adacore.com>
11967 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11968 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
11969 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
11970 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
11972 2007-04-06 Robert Dewar <dewar@adacore.com>
11974 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
11975 (Local_Raise): New dummy procedure called when a raise is converted
11976 to a local goto. Used for debugger to detect that the exception
11979 * debug.adb: Document new d.g flag (expand local raise statements to
11980 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
11982 * exp_sel.adb: Use Make_Implicit_Exception_Handler
11984 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
11985 suppress warnings for unused handlers.
11986 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
11987 warnings for raise statements not handled locally.
11988 (Get_RT_Exception_Entity): New function
11989 (Get_Local_Call_Entity): New function
11990 (Find_Local_Handler): New function
11991 (Warn_If_No_Propagation): New procedure
11992 (Expand_At_End_Handler): Call Make_Implicit_Handler
11993 (Expand_Exception_Handlers): Major additions to deal with local handlers
11994 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
11995 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
11998 * exp_ch11.ads (Get_RT_Exception_Entity): New function
11999 (Get_Local_Call_Entity): New function
12001 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
12002 of restrictions that the binder will never suggest adding.
12004 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
12007 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
12008 be with'ed in the presence of pragma Restriction
12009 (No_Exception_Propagation).
12011 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
12013 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
12014 parameter, then the handler is not a suitable target for a local raise,
12015 and this is a violation of restriction No_Exception_Propagation.
12016 (Analyze_Handled_Statements): Analyze choice parameters in exception
12017 handlers before analyzing statement sequence (needed for proper
12018 detection of local raise statements).
12019 (Analyze_Raise_Statement): Reraise statement is a violation of the
12020 No_Exception_Propagation restriction.
12022 * s-rident.ads: Add new restriction No_Exception_Propagation
12024 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
12025 function, like Make_Exception_Handler but sets Local_Raise_Statements
12027 (Add_Unique_Serial_Number): Deal with case where this is called during
12028 processing of configuration pragmas.
12030 2007-04-06 Thomas Quinot <quinot@adacore.com>
12031 Pat Rogers <rogers@adacore.com>
12032 Pascal Obry <obry@adacore.com>
12034 * g-stsifd-sockets.adb: New file.
12036 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
12037 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
12038 g-socthi-vms.adb: Move signalling
12039 fd management to a nested package, so that they can conveniently be
12040 moved to a subunit that is shared across Windows, VMS, and VxWorks
12041 (Ada implementation) or completed with imported bodies from socket.c
12043 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
12045 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
12046 the signalling file descriptor.
12047 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
12048 signalling file descriptor.
12049 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
12050 instead of creating a pair of sockets for signalling here.
12052 * g-socthi.adb: Ditto.
12053 Set the runtime process to ignore SIGPIPEs on platforms that support
12054 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12056 * g-socthi-mingw.adb: Ditto.
12057 (WS_Version): Use Windows 2.2.
12058 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12060 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
12061 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12063 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
12064 added GNAT byte swapping facility
12065 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
12067 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
12069 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
12071 (__gnat_create_signalling_fds): New subprogram.
12072 Set the runtime process to ignore SIGPIPEs on platforms that support
12073 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12075 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
12076 Vincent Celier <celier@adacore.com>
12078 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
12079 New version of Ada.Calendar which supports the new upper bound of Ada
12080 time (2399-12-31 86_399.999999999).
12081 The following modifications have been made to the package:
12082 - New representation of time as count of nanoseconds since the start of
12083 Ada time (1901-1-1 0.0).
12084 - Target independent Split and Time_Of routines which service both
12085 Ada 95 and Ada 2005 code.
12086 - Target independent interface to the Ada 2005 children of Calendar.
12087 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
12088 - Handling of non-leap centenial years.
12089 - Updated clock function.
12090 - Updated arithmetic and comparison operators.
12092 * a-caldel.adb (To_Duration): Add call to target independent routine in
12093 Ada.Calendar to handle the conversion of time to duration.
12095 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
12097 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
12099 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
12100 targets do not have a natural time zone, GMT is used as a default.
12101 (__gnat_get_task_options): New.
12103 * a-direct.adb (Modification_Time): Add with and use clauses for
12104 Ada.Calendar and Ada.
12105 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
12106 since it is no longer needed.
12107 (Duration_To_Time): Removed.
12108 (OS_Time_To_Long_Integer): Removed.
12109 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
12110 Formatting Time_Of routines which automatically handle time zones,
12111 buffer periods and leap seconds.
12113 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
12114 target independent routines in Ada.Calendar.
12116 * a-calfor.ads, a-calfor.adb:
12117 Code cleanup and addition of validity checks in various routines.
12118 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
12121 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
12122 independent routine in Ada.Calendar.
12124 2007-04-06 Olivier Hainque <hainque@adacore.com>
12127 (convert_addresses): Adjust prototype and dummy definition to expect an
12128 extra file_name argument.
12130 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
12131 filling the now expected file_name argument with the appropriate
12133 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
12134 (tracebk): Array of void * instead of char *, corresponding to what
12135 convert_addresses expects.
12136 (exename): New static global, to hold the executable file name to be
12137 used in all convert_addresses invocations.
12138 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
12140 (__gnat_gmem_a2l_initialize): Resolve exename.
12141 (__gnat_convert_addresses): Use exename as the convert_addresses
12142 file_name argument.
12144 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
12145 "convert_addresses", now expecting a filename argument. Import the
12146 necessary entities to compute the filename to use and pass it to
12149 2007-04-06 Matt Gingell <gingell@adacore.com>
12151 * system-aix.ads: Back out previous change.
12152 (Functions_Return_By_DSP): Removed
12154 2007-04-06 Pascal Obry <obry@adacore.com>
12156 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
12157 or the monotonic used by Ada.Real_Time) to compute the sleep duration
12160 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12162 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
12163 function. Its value changes in different VxWorks versions, and it is
12164 now handled by the function __gnat_get_task_options.
12166 * s-taprop-vxworks.adb (Create_Task): Call the function
12167 __gnat_get_task_options to get the required options for creating a task.
12169 2007-04-06 Pascal Obry <obry@adacore.com>
12170 Thomas Quinot <quinot@adacore.com>
12172 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
12173 dealing with filename.
12174 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
12175 filename from a standard string to a wide-string depending on the
12177 (__gnat_freopen): Idem.
12178 (__gnat_current_time): New function (wrapper for time(3) standard C
12181 * g-os_lib.ads (Current_Time): New function. Returns the current
12182 system time as an OS_Time value.
12184 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
12185 (Monotonic_Clock): Same.
12187 2007-04-06 Quentin Ochem <ochem@adacore.com>
12189 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
12191 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
12193 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12195 * a-retide.adb: Add elaboration code to ensure that the tasking run
12196 time is initialized when using delay operations even when no task is
12199 2007-04-06 Javier Miranda <miranda@adacore.com>
12201 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
12202 component Num_Prim_Ops.
12203 (Set_Num_Prim_Ops): Removed.
12204 Remove all the assertions because all the routines of this
12205 package are inline always.
12206 (Get_Offset_Index): Add support to primary dispatch tables.
12207 Move the documentation about the dispatch table to a-tags.ads
12208 (Set_External_Tag): Removed
12209 (Inherit_TSD): Removed.
12210 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
12211 moved to a-tags.ads
12212 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
12213 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
12214 of the TSD field "Table" because this field has been renamed to
12216 (Inherit_CPP_DT): Removed.
12217 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
12218 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
12219 declarations have been moved to a-tags.ads
12220 (Check_Size): Removed.
12221 (Expanded_Name): Updated to get access to the new field of TSD
12222 containing the address of the expanded name.
12223 (Get_Access_Level/Set_Access_Level): Removed.
12224 (Get_Predefined_Prim_Op_Address): Removed.
12225 (Set_Predefined_Prim_Op_Address): Removed.
12226 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
12227 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
12228 (Set_Expanded_Name): Removed.
12229 (Inherit_DT): Removed.
12230 (Inherit_CPP_DT): Removed.
12231 (Set_RC_Offset): Removed.
12232 (Set_TSD): Removed.
12233 (Base_Address): New function that displaces "this" to point to the base
12234 of the object (that is, to point to the primary tag of the object).
12236 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12237 Javier Miranda <miranda@adacore.com>
12239 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
12240 anonymous access component, do not create a master_id if type already
12241 has one, as may happen if the type is a subcomponent of a packed array
12243 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
12244 Initialize_Tag): Remove code associated with the old CPP pragmas.
12245 CPP_Virtual and CPP_Vtable are no longer supported.
12246 (Build_Offset_To_Top_Internal): Add support for concurrent record types
12247 (Build_Offset_To_Top_Functions): Add support for concurrent record types
12248 (Freeze_Record_Type): Remove call to
12249 Init_Predefined_Interface_Primitives.
12250 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
12251 code required to initialize the tags of the secondary dispatch tables.
12252 This leaves the algoritm more clear.
12253 (Init_Secondary_Tags): Add support for concurrent record types
12254 (Make_Predefined_Primitive_Specs): Code cleanup.
12255 (Predefined_Primitive_Bodies): Code cleanup.
12256 (Build_Master_Renaming): New local subprogram.
12257 (Expand_N_Full_Type_Declaration): Build the master_id associated with
12258 anonymous access to task type components.
12259 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
12260 subtype indication are resolved during analysis, and must not be done
12262 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
12264 2007-04-06 Geert Bosch <bosch@adacore.com>
12265 Ed Schonberg <schonberg@adacore.com>
12266 Javier Miranda <miranda@adacore.com>
12267 Bob Duff <duff@adacore.com>
12269 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
12270 for conversion of a Float_Type'Truncation to integer.
12272 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
12273 check if a node is an attribute that can be handled directly by the
12275 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
12276 attributes that can be handled directly by the back end.
12277 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
12278 use new predicate Is_Access_Protected_Subprogram_Type.
12279 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
12280 and Unchecked_Union if it is generated as part of the default Output
12281 procedure for a type with default discriminants.
12282 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
12283 if we are compiling under restriction No_Dispatching_Calls.
12284 (Constrained): Use Underlying_Type, in case the type is private without
12285 discriminants, but the full type has discriminants.
12286 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
12287 call to Build_Get_Access_Level.
12288 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
12289 interface objects requires a call to the run-time subprogram that
12290 returns the base address of the object.
12291 (Valid_Conversion): Improve error message on illegal attempt to store
12292 an anonymous access to subprogram value into a record component.
12294 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
12296 (Simplify_Type_Conversion): New procedure that performs simplification
12297 of Int_Type (Float_Type'Truncation (X)).
12298 (Resolve_Type_Conversion): Call above procedure after resolving operand
12299 and before performing checks. This replaces the existing ineffective
12301 (Set_String_Literal_Subtype): When creating the internal static lower
12302 bound subtype for a string literal, use a newly created copy of the
12303 subtree representing the lower bound.
12304 (Resolve_Call): Exclude build-in-place function calls from transient
12305 scope treatment. Update comments to describe this exception.
12306 (Resolve_Equality_Op): In case of dispatching call check violation of
12307 restriction No_Dispatching_Calls.
12308 (Resolve_Call): If the call returns an array, the context imposes the
12309 component type of the array, and the function has one non-defaulted
12310 parameter, rewrite the call as the indexing of a call with a single
12311 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
12313 (Resolve_Actuals): If an actual is an allocator for an access parameter,
12314 the master of the created object is the innermost enclosing statement.
12315 (Remove_Conversions): For a binary operator, check if type of second
12316 formal is numeric, to check if an abstract interpretation is present
12317 in the case of exponentiation as well.
12319 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12320 Bob Duff <duff@adacore.com>
12322 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
12323 copying a parameter list in a call, set properly the First_Named_Formal
12324 and Next_Named_Formal fields in the new list and in the enclosing call.
12325 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
12326 names, to ease typing in the debugger. Improve comments.
12327 (Watch_Node): New variable, intended to be set in the debugger.
12328 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
12329 called when the watched node is created.
12330 (New_Node_Debugging_Output): Combined version of local procedures
12331 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
12332 with a parameter so that conditional breakpoints like "if Node = 12345"
12334 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
12335 Add Elist1 function
12337 2007-04-06 Thomas Quinot <quinot@adacore.com>
12338 Ed Schonberg <schonberg@adacore.com>
12339 Gary Dismukes <dismukes@adacore.com>
12341 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
12342 required for a conversion between two access-to-unconstrained-array
12344 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
12345 to discriminant constraints on discriminant objects. This rule must
12346 apply as well to discriminants of protected types in private components.
12347 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
12348 object of a null-excluding access type then don't require the
12349 the object declaration to have an expression and don't emit a
12352 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12353 Eric Botcazou <botcazou@adacore.com>
12355 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
12358 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
12359 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
12362 * fe.h (Compiler_Abort): Add third parameter.
12364 * misc.c (internal_error_function): Build third argument from current
12365 input location and pass it to Compiler_Abort.
12367 2007-04-06 Gary Dismukes <dismukes@adacore.com>
12369 * cstand.adb (Create_Standard): When the target's storage unit size is
12370 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
12373 2007-04-06 Nicolas Roche <roche@adacore.com>
12375 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
12376 absolute path can have the following form: device:/a/b. In this case
12377 '/' should be inserted between the path and the filename.
12379 2007-04-06 Olivier Hainque <hainque@adacore.com>
12380 Eric Botcazou <botcazou@adacore.com>
12382 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
12383 VAR_DECL to a CONST_DECL we make for a public constant when we know the
12384 corresponding definition has created the so made visible variable.
12385 Handle anonymous access to protected subprogram.
12386 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
12387 object with an address clause volatile. Re-enable original fix.
12388 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
12390 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
12391 associated with either the Equivalent or Root type, instead of the
12393 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
12394 subtree for every field of a global record type.
12395 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
12396 discriminants, invoke again variable_size on its newly computed sizes.
12398 2007-04-06 Robert Dewar <dewar@adacore.com>
12399 Thomas Quinot <quinot@adacore.com>
12400 Ed Schonberg <schonberg@adacore.com>
12401 Bob Duff <duff@adacore.com>
12403 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
12404 (Next_Component_Or_Discriminant): New function and procedure
12405 (First_Index, First_Literal, Master_Id,
12406 Set_First_Index, Set_First_Literal, Set_Master_Id):
12407 Add missing Ekind assertions.
12408 (Is_Access_Protected_Subprogram_Type): New predicate.
12409 (Has_RACW): New entity flag, set on package entities to indicate that
12410 the package contains the declaration of a remote accecss-to-classwide
12412 (E_Return_Statement): This node type has the Finalization_Chain_Entity
12413 attribute, in case the result type has controlled parts.
12414 (Requires_Overriding): Add this new flag, because "requires
12415 overriding" is subtly different from "is abstract" (see AI-228).
12416 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
12417 Is_Abstract_Type. Make sure these are called only when appropriate.
12418 (Has_Pragma_Unreferenced_Objects): New flag
12420 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
12421 class-wide, the tag of the right-hand side must be an exact match, not
12422 an ancestor of that of the object on left-hand side.
12423 (Move_Activation_Chain): New procedure to create the call to
12424 System.Tasking.Stages.Move_Activation_Chain.
12425 (Expand_N_Extended_Return_Statement): Generate code to call
12426 System.Finalization_Implementation.Move_Final_List at the end of a
12427 return statement if the function's result type has controlled parts.
12428 Move asserts to Build_In_Place_Formal.
12429 (Move_Final_List): New function to create the call statement.
12430 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
12431 tagged type, replace generation of call to the run-time subprogram
12432 CW_Membership by call to Build_CW_Membership.
12433 (Expand_N_Return_Statement): Replace generation of call to the run-time
12434 subprogram Get_Access_Level by call to Build_Get_Access_Level.
12435 (Expand_N_Simple_Function_Return): Replace generation of call to the
12436 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12438 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
12439 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
12440 access to protected operations.
12441 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
12442 master and chain actual parameters to a build-in-place function call
12444 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
12446 (Make_Build_In_Place_Call_In_Allocator,
12447 Make_Build_In_Place_Call_In_Anonymous_Context,
12448 Make_Build_In_Place_Call_In_Assignment,
12449 Make_Build_In_Place_Call_In_Object_Declaration): Call
12450 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
12451 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
12452 stubbed procedure with a null body, replace the call with a null
12453 statement without using the full inlining machinery, for efficiency
12454 and to avoid invalid values in source file table entries.
12456 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
12457 renamings of calls to build-in-place functions.
12459 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
12460 provides the functionality of RTE_Available to record components.
12461 (RTU_Entity): The function Entity has been renamed to RTU_Entity
12462 to avoid undesired overloading.
12463 (Entity): New subprogram that returns the entity for the referened
12464 unit. If this unit has not been loaded, it returns Empty.
12465 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
12466 Remove no longer used entities.
12467 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
12468 (RE_Type_Specific_Data): New entity.
12469 (RE_Move_Any_Value): New entity.
12470 (RE_TA_A, RE_Get_Any_Type): New entities.
12471 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
12472 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
12473 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
12474 (Entity): New subprogram that returns the entity for the referened
12475 unit. If this unit has not been loaded, it returns Empty.
12476 (RTE): Addition of a new formal that extends the search to the scopes
12477 of the record types found in the chain of the package.
12479 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
12480 "abstract subprograms must be visible" message, whether or not the type
12481 is an interface; that is, remove the special case for interface types.
12482 (Analyze_Function_Return): Remove error message "return of task objects
12483 is not yet implemented" because this is now implemented.
12484 (Create_Extra_Formals): Add the extra master and activation chain
12485 formals in case the result type has tasks.
12486 Remove error message "return of limited controlled objects is not yet
12488 (Create_Extra_Formals): Add the extra caller's finalization list formal
12489 in case the result type has controlled parts.
12490 (Process_Formals): In case of access formal types there is no need
12491 to continue with the analysis of the formals if we already notified
12493 (Check_Overriding_Indicator): Add code to check overriding of predefined
12495 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
12496 flags for formals that do not require them,.
12497 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
12498 hidden entity is use visible or directly visible.
12499 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
12500 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
12501 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
12502 New_Overloaded_Entity): Split Is_Abstract flag into
12503 Is_Abstract_Subprogram and Is_Abstract_Type.
12505 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
12506 a return statement's finalization list to the caller's list, used for
12507 build-in-place functions with result type with controlled parts.
12508 Remove no longer used entities.
12510 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
12511 longer needed, because the full type is now limited, and therefore a
12512 pass-by-reference type.
12513 (Foreign_Task_Level): New constant.
12515 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
12516 move tasks from the activation chain belonging to a return statement to
12517 the one passed in by the caller, and update the master to the one
12518 passed in by the caller.
12519 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
12520 of unactivated tasks, so we don't kill the ones that are being returned
12521 by a build-in-place function.
12522 (Create_Task): Ignore AI-280 for foreign threads.
12524 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12525 Robert Dewar <dewar@adacore.com>
12526 Bob Duff <duff@adacore.com>
12527 Gary Dismukes <dismukes@adacore.com>
12529 * errout.adb (Unwind_Internal_Type): Use predicate
12530 Is_Access__Protected_Subprogram_Type.
12532 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
12533 (Freeze_Entity, packed array case): Do not override explicitly set
12534 alignment and size clauses.
12535 (Freeze_Entity): An entity declared in an outer scope can be frozen if
12536 the enclosing subprogram is a child unit body that acts as a spec.
12537 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
12538 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
12539 Remove all code for DSP option
12541 * layout.adb (Layout_Record_Type): Use First/
12542 Next_Component_Or_Discriminant
12543 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
12544 to handle properly the anonymous access case.
12546 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
12547 for all access attributes, because overload resolution should work the
12548 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
12549 causes the error message for the ambiguous "X'Access = Y'Access" and
12550 "X'Unrestricted_Access = Y'Access" and so forth to match.
12551 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
12552 now that anonymous access to protected operations have their own kind.
12553 (Resolve_Attribute): In case of dispatching call check the violation of
12554 restriction No_Dispatching_Calls.
12555 (Check_Array_Type): Check new -gnatyA array index style option
12557 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
12558 attempt to derive from a synchronized tagged type.
12559 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
12560 type, inherit the class-wide type already created, because it may
12561 already have been used in a self-referential anonymous access component.
12562 (Mentions_T): Recognize self-referential anonymous access components
12563 that use (a subtype of) the class-wide type of the enclosing type.
12564 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
12565 Derived_Type for Prev formal on call to
12566 Check_Anonymous_Access_Components rather than Empty.
12567 (Make_Incomplete_Type_Declaration): Add test for case where the type has
12568 a record extension in deciding whether to create a class-wide type,
12569 rather than just checking Tagged_Present.
12570 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
12571 to stand-alone object declarations as well as component declarations.
12572 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
12573 prevent accidental overwriting when enclosing package appears in
12574 a limited_with_clause.
12575 (Array_Type_Declaration): If the component type is an anonymous access,
12576 the associated_node for the itype is the type declaration itself.
12577 (Add_Interface_Tag_Components): Modified to support concurrent
12578 types with abstract interfaces.
12579 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
12580 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
12581 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
12582 to complete the decoration of synchronized interface types. Add also
12583 a call to Check_Abstract_Interfaces to verify the ARM rules.
12584 (Derive_Interface_Subprograms): Modified to support concurrent types
12585 with abstract interfaces.
12586 (Analyze_Subtype_Indication): Resolve the range with the given subtype
12587 mark, rather than delaying the full resolution depending on context.
12588 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
12589 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
12590 Array_Type_Declaration,Build_Derived_Record_Type,
12591 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
12592 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
12593 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
12594 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
12595 called only when appropriate.
12596 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
12598 (Analyze_Subtype_Declaration): For an access subtype declaration, create
12599 an itype reference for the anonymous designated subtype, to prevent
12600 scope anonmalies in gigi.
12601 (Build_Itype_Reference): New utility, to simplify construction of such
12604 2007-04-06 Vincent Celier <celier@adacore.com>
12606 * errutil.adb (Initialize): Initialize warnings table, if all warnings
12607 are suppressed, supply an initial dummy entry covering all possible
12610 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
12611 and start with only one, such as "-RTS=none".
12612 (Collect_Arguments): Do not check for sources outside of projects.
12613 Do not collect arguments if project is externally built.
12614 (Compile_Sources): Do nothing, not even check if the source is up to
12615 date, if its project is externally built.
12616 (Compile): When compiling a predefined source, add -gnatpg
12617 as the second switch, after -c.
12618 (Compile_Sources): Allow compilation of Annex J renames without -a
12619 (Is_In_Object_Directory): Check if the ALI file is in the object
12620 even if there is no project extension.
12621 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
12622 gnatbind if the ALI file effectively exists.
12623 (Initialize): Add the directory where gnatmake is invoked in front of
12624 the path if it is invoked from a bin directory, even without directory
12625 information, so that the correct GNAT tools will be used when spawned
12626 without directory information.
12628 * makeusg.adb: Change switch -S to -eS
12629 Add lines for new switches -we, -wn and -ws
12630 Add line for new switch -p
12632 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
12633 Treat_As_Error and there are warnings.
12635 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
12636 -gnatww Change gnatmake switch -S to -eS
12637 (Scan_Make_Switches): Code reorganisation. Process separately multi
12638 character switches and single character switches.
12639 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
12640 False when switch is not recognized by gnatmake.
12641 (Scan_Make_Switches): Set Setup_Projects True when -p or
12642 --create-missing-dirs is specified.
12644 * fname.adb (Is_Predefined_File_Name): Return True for annex J
12645 renamings Calendar, Machine_Code, Unchecked_Conversion and
12646 Unchecked_Deallocation only when Renamings_Included is True.
12648 * par.adb: Allow library units Calendar, Machine_Code,
12649 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
12650 when -gnatg is not specified.
12651 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
12652 there is no need to generate always a record_definition_node in case
12653 of synchronized interface types.
12654 (SIS_Entry_Active): Initialize global variable to False
12655 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
12656 indicate cases where AI-447 says "not null" is legal.
12658 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
12660 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
12661 files with with several lines starting with the object fileb name.
12662 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
12664 (Initialize): Add the directory where gprmake is invoked in front of the
12665 path, if it is invoked from a bin directory or with directory
12666 information, so that the correct GNAT tools will be used when invoked
12668 (Check_Compilation_Needed): Process correctly backslashes on Windows.
12670 * vms_data.ads: Update switches/qualifiers
12672 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12673 Thomas Quinot <quinot@adacore.com>
12676 If the array component is a discriminated record, the array aggregate
12677 is non-static even if the component is given by an aggregate with
12679 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
12680 (Convert_Aggr_In_Allocator): If the allocator is for an access
12681 discriminant and the type is controlled. do not place on a finalization
12682 list at this point. The proper list will be determined from the
12684 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
12685 initialize record controller if needed, before the components, to ensure
12686 that they are properly finalized.
12687 (Build_Record_Aggr_Code): For the case of an array component that has a
12688 corresponding array aggregate in the record aggregate, perform sliding
12691 2007-04-06 Javier Miranda <miranda@adacore.com>
12692 Gary Dismukes <dismukes@adacore.com>
12693 Ed Schonberg <schonberg@adacore.com>
12695 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
12696 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
12698 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
12699 accessibility on class-wide allocators if the allocator occurs at the
12700 same scope level as the allocator's type. The check is guaranteed to
12701 succeed in that case, even when the expression originates from a
12702 parameter of the containing subprogram.
12703 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
12704 under No_Dispatching_Calls restriction. During the semantic analysis
12705 we already notified such violation.
12706 (Tagged_Membership): Constant folding. There is no need to check
12707 the tag at run-time if the type of the right operand is non
12708 class-wide abstract.
12709 Replace call to Is_Ancestor by call to Is_Parent
12710 to support concurrent types with interface types.
12711 (Expand_N_Allocator): Add an assertion associated with the generation
12713 (Expand_N_Slice): Do not enable range check to nodes associated
12714 with the frontend expansion of the dispatch table.
12715 (Is_Local_Access_Discriminant): Subsidiary function to
12716 Expand_N_Allocator.
12717 (Tagged_Membership): Replace generation of call to the run-time
12718 subprogram CW_Membership by call to Build_CW_Membership.
12719 (Expand_Allocator_Expression): Replace generation of call to the
12720 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12722 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
12723 initialize most the TSD components by means of an aggregate.
12724 Modify the declaration of the object containing the TSD
12725 because we now expand code that has a higher level of abstraction.
12726 The TSD has a discriminant containing the Inheritance Depth Level,
12727 value that is used in the membership test but also to fix the size
12728 of the table of ancestors.
12729 (Expand_Interface_Conversion): Insert function body at the closest place
12730 to the conversion expression, to prevent access-before-elaboration
12731 errors in the backend.
12732 Code improved to reduce the size of the dispatch table if
12733 compiling under restriction No_Dispatching_Calls plus code cleanup.
12734 Code reorganization plus removal of calls to Set_Num_Prim_Ops
12735 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
12736 (Expand_Dispatching_Call): Minor code reorganization plus addition of
12737 code to return immediately if compiling under No_Dispatching_Calls
12739 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
12740 CPP_Virtual and CPP_Vtable are no longer supported.
12741 (Expand_Interface_Conversion): Add missing support for interface type
12743 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
12744 Is_Parent to support concurrent types with interfaces.
12745 (Init_Predefined_Interface_Primitives): Removed.
12746 (Make_Secondary_DT): Modified to support concurrent record types.
12747 (Set_All_DT_Position): Modified to support concurrent record types.
12748 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12749 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
12750 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
12751 with CW_Membership.
12752 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12753 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
12754 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
12755 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
12756 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
12757 (Expand_Dispatching_Call): Replace generation of call to the run-time
12758 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
12759 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
12761 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
12762 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
12763 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
12764 Build_Set_Prim_Op_Address.
12765 (Get_Remotely_Callable): Subprogram removed.
12766 (Init_Predefined_Interface_Primitives): Replace generation of call to
12767 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
12770 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
12771 First (Parameter_Associations ()) with the call to First_Actual that
12772 returns an actual parameter expression for both named and positional
12775 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
12776 check violation of restriction No_Dispatching_Calls.
12777 (Check_Controlling_Type): A formal of a tagged incomplete type is a
12778 controlling argument.
12780 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
12781 First/Next_Component_Or_Discriminant
12782 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
12783 (Find_Implemented_Interface): Removed. All the calls to this subprogram
12784 specify Any_Limited_Interface, and this functionality is already
12785 provided by the function Has_Abstract_Interfaces.
12786 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
12787 support concurrent types implementing interfaces.
12788 (Find_Implemented_Interface): Removed. All the calls to this subprogram
12789 specify kind Any_Limited_Interface, and this functionality is already
12790 provided by the function Has_Abstract_Interfaces.
12791 (Remove_Side_Effects): replace Controlled_Type by
12792 CW_Or_Controlled_Type whenever the issue is related to
12793 using or not the secondary stack.
12795 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
12796 P_Interface_Type_Definition to fulfill the new interface (the formal
12797 Is_Synchronized is no longer required).
12799 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
12800 Update dependencies.
12802 * exp_atag.ads, exp_atag.adb: New file
12804 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12805 Bob Duff <duff@adacore.com>
12806 Cyrille Comar <comar@adacore.com>
12808 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
12809 anonymous, use finalization list of enclosing dynamic scope.
12810 (Expand_N_Package_Declaration): For a library package declaration
12811 without a corresponding body, generate RACW subprogram bodies in the
12812 spec (just as we do for the task activation call).
12813 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
12814 Is_Abstract_Type. Make sure these are called only when appropriate.
12815 Remove all code for DSP option
12816 (CW_Or_Controlled_Type): new subprogram.
12818 2007-04-06 Eric Botcazou <botcazou@adacore.com>
12819 Ed Schonberg <schonberg@adacore.com>
12820 Gary Dismukes <dismukes@adacore.com>
12822 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
12823 parameter. If it is set to true, return a result capped according to
12824 the global upper bound for the index of an entry family.
12825 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
12826 (Build_Find_Body_Index): Adjust for above change.
12827 (Entry_Index_Expression): Likewise.
12828 (Is_Potentially_Large_Family): New function extracted from...
12829 (Collect_Entry_Families): ...here. Call it to detect whether the family
12830 is potentially large.
12831 (Build_Entry_Count_Expression): If the family is potentially large, call
12832 Family_Size with 'Cap' set to true.
12833 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
12834 a protected version of an operation declared in the private part of
12835 a protected object, because they may be invoked through a callback.
12836 (Set_Privals): If the type of a private component is an anonymous access
12837 type, do not create a new itype for each protected body.
12838 If the body of a protected operation creates
12839 controlled types (including allocators for class-widetypes), the
12840 body of the corresponding protected subprogram must include a
12842 (Build_Activation_Chain_Entity): Build the chain entity for extended
12844 (Type_Conformant_Parameters): Use common predicate Conforming_Types
12845 to determine whether operation overrides an inherited primitive.
12846 (Build_Wrapper_Spec): Add code to examine the parents while looking
12847 for a possible overriding candidate.
12848 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
12849 hold an actual parameter value since its initialization is separated
12850 from the the declaration. Prevents errors on null-excluding access
12853 2007-04-06 Thomas Quinot <quinot@adacore.com>
12854 Pablo Oliveira <oliveira@adacore.com>
12856 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
12857 Do an Unchecked_Conversion to handle the passage from the Underlying
12858 Type to the Base Type when calling Build_To_Any_Call and
12859 Build_From_Any_Call.
12860 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
12861 E_Constant, depending upon Variable formal.
12862 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12863 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
12864 parameter that requires an extra constrained parameter, declare
12865 temporary for actual as a variable, not a constant.
12866 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
12867 the unit being compiled is the one that contains the stub type.
12868 Change primitive operation name for the RACW associated with a RAS
12869 from Call to _Call so it cannot clash with any legal identifier.
12870 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
12872 (Append_RACW_Bodies): New subprogram.
12873 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
12874 Add_Receiving_Stubs_To_Declarations functions.
12875 When expanding a package body, this list correspond to the
12876 statements in the HSS at the end of the pacakge.
12877 When expanding a package spec, this list correspond to the
12879 (Add_Receiving_Stubs_To_Declarations): Append the function
12880 registering the receiving stubs at the end of the 'Stmts' list.
12881 (RCI_Package_Locator): Pass the new Version generic formal when
12882 instantiating a RCI_Locator package.
12883 (Build_From_Any_Function): To compute the High bound for an
12884 unconstrained array actual, we add the Low bound with the length.
12885 Thus we must convert the low bound and the length to an appropriate
12886 type before doing the sum.
12887 (Build_Subprogram_Receiving_Stubs, PolyORB):
12888 * Retrieve the extra formals parameters at the
12889 end of the parameter stream.
12890 * Use Move_Any_Value to write back out parameters
12891 after executing the request as it is more efficient
12892 than Copy_Any_Value.
12893 * Build the any containing Extra Formals with the
12894 appropriate typecode.
12895 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
12896 empty Component_List.
12897 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
12898 the tree the declaration for an object that serves as actual parameter
12899 in server-side stubs.
12900 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12901 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
12902 Use Build_Actual_Object_Declaration to prepare the actuals.
12903 (Add_Parameter_To_NVList): Set the parameter mode to In for
12904 Extra Constrained Parameters.
12905 (Build_General_Calling_Stubs): Set the parameter type to boolean for
12906 Extra Constrained parameters.
12907 (Build_To_Any_Function, Build_From_Any_Function,
12908 Built_TypeCode_Function): When Typ is implicit, call the correct
12909 function with the first not implicit parent type.
12910 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
12911 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
12912 typecode from the Etype. Therefore we retrieve the correct typecode
12913 with a call to Get_Any_Type.
12914 (Copy_Specification): Do controlling formal type substitution based on
12915 Is_Controlling_Formal flag, instead of caller-provided object type.
12916 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
12917 a RACW primitive operation, we might get a subprogram declaration for an
12918 ancestor of the RACW designated type (not for the designated type
12919 itself), in the case where this operation is inherited. In this case we
12920 have no easy means of determining the original tagged type for which
12921 the primitive was declared, so instead we now rely on
12922 Copy_Specification to use the Is_Controlling_Formal flag to determine
12923 which formals require type substitution.
12925 2007-04-06 Robert Dewar <dewar@adacore.com>
12926 Ed Schonberg <schonberg@adacore.com>
12928 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
12929 GNAT.Current_Exception are not allowed if pragma Restrictions
12930 (No_Exception_Propagation) is set and in any case make the associated
12931 handler unsuitable as a target for a local raise statement.
12932 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
12933 run-time subprogram CW_Membership by call to Build_CW_Membership.
12934 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
12935 by a function call, a temporary must be created before expanding the
12936 Constructor_Call itself, to prevent out-of-order elaboration in the
12937 back-end when stack checking is enabled..
12939 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12941 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
12942 result are the bounds of the left operand, not the right.
12944 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12947 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
12948 discriminant defaults.
12949 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
12950 (Make_Component_List_Attributes): Ditto.
12952 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12953 Bob Duff <duff@adacore.com>
12955 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
12956 an association with a box as providing a value even though the
12957 initialization procedure for the type is not available.
12958 (Resolve_Record_Aggregate): Check that a choice of an association with a
12959 box corresponds to a component of the type.
12960 (Resolve_Record_Aggregate): Split Is_Abstract flag into
12961 Is_Abstract_Subprogram and Is_Abstract_Type.
12963 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
12966 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
12967 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
12968 called only when appropriate.
12970 2007-04-06 Olivier Hainque <hainque@adacore.com>
12972 * g-alleve.ads (Low Level Vector type definitions): Map each to the
12973 associated vector view instead of all to the unsigned char view.
12975 * g-altcon.adb (Generic_Conversions): New internal generic package,
12976 offering facilities for all the Vector/View conversion routines
12977 implemented by this unit.
12978 (To_View/To_Vector - all versions): Reimplemented in a systematic
12979 manner, using the internal Generic_Conversions facilities.
12981 2007-04-06 Pascal Obry <obry@adacore.com>
12983 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
12985 (Create): Free the source string before storing the new one.
12987 2007-04-06 Vincent Celier <celier@adacore.com>
12989 * g-debpoo.adb (Validity): New package with a complete new
12990 implementation of subprograms Is_Valid and Set_Valid.
12991 (Is_Valid): Move to local package Validity
12992 (Set_Valid): Move to local package Validity
12994 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12995 Pablo Oliveira <oliveira@adacore.com>
12997 * g-expect.adb (Get_Command_Output): When expanding the output buffer
12998 we must ensure that there is enough place for the new data we are going
13001 2007-04-06 Thomas Quinot <quinot@adacore.com>
13003 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
13006 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13007 Vincent Celier <celier@adacore.com>
13009 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
13010 (Stack_String): Add this String that contains the name of the Stack
13011 package in the project file.
13012 (Packages_To_Check_By_Stack): Add this list that contains the packages
13013 to be checked by gnatstack, which are the naming and the stack packages.
13014 (Check_Files): If no .ci files were specified for gnatstack we add all
13015 the .ci files belonging to the projects, including binder generated
13017 (Non_VMS_Usage): Document that gnatstack accept project file switches.
13018 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
13019 Add gnatstack to the list of commands that use project file related
13020 switches, and get the single attribute Switches from the stack package
13021 in a project file when calling gnatstack. Parse the -U flag for
13022 processing files belonging to all projects in the project tree.
13023 Remove all processing for command Setup
13025 * prj-attr.adb: Add new package Stack with single attribute Switches
13027 * vms_conv.ads (Command_Type): Add command Stack.
13028 Move to body declarations that are only used in the body: types Item_Id,
13029 Translation_Type, Item_Ptr, Item and its subtypes.
13031 * vms_conv.adb: (Initialize): Add data for new command Stack.
13032 Add declarations moved from the spec: types Item_Id, Translation_Type,
13033 Item_Ptr, Item and its subtypes.
13034 (Cargs_Buffer): New table
13035 (Cargs): New Boolean global variable
13036 (Process_Buffer): New procedure to create arguments
13037 (Place): Put character in table Buffer or Cargs_Buffer depending on the
13039 (Process_Argument): Set Cargs when processing qualifiers for GNAT
13041 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
13042 empty, for table Cargs_Buffer.
13043 (Initialize): Remove component Setup in Command_List
13045 2007-04-06 Vincent Celier <celier@adacore.com>
13047 * gprep.adb (Process_Files.Process_One_File): Use full file name when
13048 issuing pragma Source_Reference.
13050 2007-04-06 Emmanuel Briot <briot@adacore.com>
13052 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
13053 [[:xdigit:]] character class.
13054 Also raise an exception when an invalid character class is used.
13056 2007-04-06 Pascal Obry <obry@adacore.com>
13058 * i-cstrea.ads: (fopen): Add encoding parameter.
13060 Change reference from a-sysdep.c to sysdep.c in comment.
13061 Update copyright notice.
13062 This set of patch add support for the encoding form parameter.
13064 * mingw32.h (S2WSU): New macro to convert from a string to a
13065 wide-string using the UTF-8 encoding. The S2WS macro supports now only
13066 standard 8bits encoding.
13067 (WS2SU): As above but converting from wide-sring to string.
13068 This is needed as it is necessary to have access to both versions in the
13069 runtime for the form parameter encoding support.
13070 This set of patch add support for the encoding form parameter.
13071 (S2WS): Improve implementation to handle cases where the filename is not
13072 UTF-8 encoded. In this case we default to using the current code page
13073 for the conversion.
13075 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
13076 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
13077 the constants defined in adaint.h.
13078 (fopen): Add encoding parameter.
13081 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
13082 encoding. This is needed for the Reset routine (freopen low level-call).
13084 * s-fileio.adb (Open): Decode encoding form parameter and set the
13085 corresponding encoding value into AFCB structure.
13086 (Reset): Pass the encoding value to freopen.
13087 (Close): Move the call to Lock_Task to the beginning of the procedure.
13089 2007-04-06 Geert Bosch <bosch@adacore.com>
13090 Robert Dewar <dewar@adacore.com>
13092 * i-fortra.ads: Add Double_Complex type.
13094 * impunit.adb: (Is_Known_Unit): New function
13095 Add Gnat.Byte_Swapping
13097 Add new Ada 2005 units
13098 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
13099 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
13100 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
13101 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
13103 * impunit.ads (Is_Known_Unit): New function
13105 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
13106 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
13107 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
13108 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
13109 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
13110 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
13113 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
13115 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
13117 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13118 Arnaud Charlet <charlet@adacore.com>
13120 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
13121 __gnat_adjust_context_for_raise.
13122 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
13123 implementation of floating point operations as native x86 targets.
13124 So the FPU should be initialized in the same way using finit. Fix
13125 floating point operations accuracy issues.
13126 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
13127 member in struct sigaction, so as to avoid warning for incompatible
13130 2007-04-06 Serguei Rybin <rybin@adacore.com>
13132 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
13133 switches from previously loaded tree
13135 2007-04-06 Thomas Quinot <quinot@adacore.com>
13137 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
13138 cases where a given dependency has a body or not.
13139 (Write_With_File_Names): New subprogram, common code for the two cases
13142 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13143 Javier Miranda <miranda@adacore.com>
13145 * lib-xref.ads, lib-xref.adb:
13146 Modify the loop that collects type references, to include interface
13147 types that the type implements. List each of these interfaces when
13148 building the entry for the type.
13149 (Generate_Definition): Initialize component Def and Typ of new entry
13150 in table Xrefs, to avoid to have these components unitialized.
13151 (Output_References): Split Is_Abstract flag into
13152 Is_Abstract_Subprogram and Is_Abstract_Type.
13153 (Generate_Reference): Add barrier to do not generate the warning
13154 associated with Ada 2005 entities with entities generated by the
13157 2007-04-06 Robert Dewar <dewar@adacore.com>
13158 Arnaud Charlet <charlet@adacore.com>
13159 Vincent Celier <celier@adacore.com>
13161 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
13162 Update 'Exception Handling Control' chapter which was outdated.
13163 Minor fix to documentation of -gnatwq
13164 Remove section "Adapting the Run Time to a New C++ Compiler" because
13165 it is now obsolete.
13166 Add passage on need of -nostart-files in some non-ada-main cases.
13167 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
13168 Update documentation about Interfacing with C++
13169 Add documentation for new gnatmake switch -p
13170 Add missing protocol part in URLs.
13172 Document pragma Compile_Time_Error
13173 Add documentation for Object_Size indicating that stand alone
13174 objects can have a larger size in some cases.
13175 Add node for GNAT.Byte_Swapping, GNAT.SHA1
13176 Update reference to the Ravenscar profile.
13177 Document pragma Unreferenced_Objects
13179 * gnat-style.texi: Fix typo
13181 2007-04-06 Vincent Celier <celier@adacore.com>
13183 * mlib.adb (Building_Library): Only output "building a library..." in
13186 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
13187 files in verbose mode.
13189 * mlib-utl.adb (Ar): Only output the first object files when not in
13191 (Gcc): Do not display all the object files if not in verbose mode, only
13194 2007-04-06 Robert Dewar <dewar@adacore.com>
13196 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
13197 it no longer destroys the contents of Name_Buffer or Name_Len and
13198 non-standard and invalid names are handled better.
13199 (Get_Decoded_Name_String): Improve performance by using
13200 Name_Has_No_Encodings flag in the name table.
13201 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
13202 Used for debugging printouts.
13204 2007-04-06 Robert Dewar <dewar@adacore.com>
13205 Javier Miranda <miranda@adacore.com>
13206 Bob Duff <duff@adacore.com>
13208 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
13209 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13210 there is no need to generate always a record_definition_node in case
13211 of synchronized interface types.
13212 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
13213 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
13214 illegal in Ada 95, in cases where it is legal. Change the warnings to
13215 errors in other cases. Don't give the error unless the "not null"
13216 parses properly. Correct the source position at which the error occurs.
13217 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
13218 P_Null_Exclusion, to suppress "not null" warnings.
13219 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
13220 associated goto statements.
13222 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
13225 * scans.ads (Type_Token_Location): New flag
13227 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
13228 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
13229 P_Null_Exclusion, to suppress "not null" warnings.
13231 2007-04-06 Robert Dewar <dewar@adacore.com>
13232 Javier Miranda <miranda@adacore.com>
13233 Bob Duff <duff@adacore.com>
13234 Vincent Celier <celier@adacore.com>
13236 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
13237 (Extensions_Allowed): No longer sets Ada_Version
13238 Entry for pragma Unreferenced_Objects
13240 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
13241 system.tasking if pragma priority used in a procedure
13242 (Analyze_Pragma, case Warning): Handle dot warning switches
13243 (Process_Compile_Time_Warning_Or_Error): New procedure
13244 (Analyze_Pragma): Add processing for Compile_Time_Error
13245 Add support for extra arguments External_Name and Link_Name.
13246 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
13247 (Process_Import_Or_Interface): Add support for the use of pragma Import
13249 (Extensions_Allowed): No longer affects Ada_Version
13250 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
13251 Is_Abstract_Type. Make sure these are called only when appropriate.
13252 Add processing for pragma Unreferenced_Objects
13254 * snames.h, snames.ads, snames.adb: Add entry for pragma
13256 Add new standard name Minimum_Binder_Options for new gprmake
13257 Add new standard names for gprmake: Archive_Suffix,
13258 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
13259 Library_Support, Library_Version_Options,
13260 Shared_Library_Minimum_Options,
13261 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
13262 Change Name_Call to Name_uCall so that it cannot clash with a legal
13264 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
13265 Append C_Plus_Plus to convention identifiers as synonym for CPP
13266 Add new standard names Stack and Builder_Switches
13267 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
13268 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
13269 Run_Path_Option, Toolchain_Version.
13270 Entry for pragma Unreferenced_Objects
13272 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
13273 switches, without repetition of "eD". Make sure that last character of
13274 -gnatep= switch is not taken as -gnat switch character.
13275 Complete rewrite of circuit for handling saving compilation options
13276 Occasioned by need to support dot switchs for -gnatw, but cleans up
13278 -gnatX does not affect Ada_Version
13279 Include -gnatyA in -gnatg style switches
13281 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
13282 warnings on return objects.
13283 (Warn_On_Useless_Assignment): Exclude warnings on return objects
13284 (Set_Dot_Warning_Switch): New procedure
13285 (Check_References): Add missing case of test for
13286 Has_Pragma_Unreferenced_Objects
13287 (Output_Unreferenced_Messages): Implement effect of new pragma
13288 Unreferenced_Objects, remove special casing of limited controlled
13291 2007-04-06 Vincent Celier <celier@adacore.com>
13293 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
13294 the default project path, initially done during elaboration of the
13296 If the prefix returned by Sdefault is null, get the prefix from a call
13297 to Executable_Prefix_Path.
13298 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
13301 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
13302 canonical directory name to open the directory from which files are
13304 (Record_Other_Sources): Idem.
13305 (Locate_Directory): Add the possibility to create automatically missing
13306 directories when Setup_Projects is True.
13307 Call Locate_Directory so that the directory will be created when
13308 Setup_Projects is True, for object dir, library dir, library ALI dir,
13309 library source copy dir and exec dir.
13311 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
13314 2007-04-06 Robert Dewar <dewar@adacore.com>
13316 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
13317 Use First/Next_Component_Or_Discriminant
13318 (Analyze_Record_Representation_Clause):
13319 Use First/Next_Component_Or_Discriminant
13320 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
13321 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
13322 definition if type is unconstrained.
13323 (Adjust_Record_For_Reverse_Bit_Order): New procedure
13324 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
13325 Is_Abstract_Subprogram and Is_Abstract_Type.
13326 (Adjust_Record_For_Reverse_Bit_Order): New procedure
13328 * repinfo.adb (List_Record_Info): Use First/
13329 Next_Component_Or_Discriminant.
13331 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
13334 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
13335 Include -gnatyA in default switches
13337 * opt.ads: (Warn_On_Non_Local_Exception): New flag
13338 (Warn_On_Reverse_Bit_Order): New flag
13339 (Extensions_Allowed): Update the documentation.
13340 (Warn_On_Questionable_Missing_Parens): Now on by default
13342 * usage.adb: Add documentation of -gnatw.x/X switches
13343 Document new -gnatyA style switch
13344 -gnatq warnings are on by default
13346 2007-04-06 Ed Falis <falis@adacore.com>
13348 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
13349 full word is no longer compared twice.
13351 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13353 * sem_ch10.adb (Install_Limited_Context_Clauses.
13354 Expand_Limited_With_Clause): Use a new copy of selector name in the
13355 call to Make_With_Clause. This fixes the tree structure for ASIS
13356 purposes. Nothing is changed in the compiler behaviour.
13357 (Process_Body_Clauses): Handle properly use clauses whose prefix is
13358 a package renaming.
13359 (Install_Limited_With_Clauses): Do not install non-limited view when it
13360 is still incomplete.
13362 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13363 Gary Dismukes <dismukes@adacore.com>
13365 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
13366 when capturing size information, instead of base type, which for a
13367 formal array type will be the unconstrained type.
13368 (Analyze_Formal_Object_Declaration): Add check for illegal default
13369 expressions for a formal in object of a limited type.
13370 (Instantiate_Object): Ditto.
13371 (Check_Formal_Package_Instance): Skip entities that are formal objects,
13372 because they were defaulted in the formal package and no check applies
13374 (Check_Formal_Package_Instance): Extend conformance check to other
13375 discrete types beyond Integer.
13376 (Process_Default): Copy directly the unmatched formal. A generic copy
13377 has already been performed in Analyze_Formal_Package.
13378 (Analyze_Associations): If a formal subprogram has no match, check for
13379 partial parametrization before looking for a default, to prevent
13381 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
13382 not set the instantiation environment before analyzing the actuals.
13383 Fixes regression on 8515-003 with implementation of AI-133.
13384 Set_Instance_Env checks whether the generic unit is a predefined
13385 unit, in which case the instance must be analyzed with the latest Ada
13386 mode. This setting must take place after analysis of the actuals,
13387 because the actuals must be analyzed and frozen in the Ada mode extant
13388 outside of the current instantiation.
13389 (Save_Env, Restore_Env): Preserve and restore the configuration
13390 parameters so that predefined units can be compiled in the proper Ada
13392 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
13393 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
13394 and Is_Abstract_Type.
13395 (Analyze_Formal_Package): For better error recovery, Add exception
13396 handler to catch Instantion_Error, which can be raised in
13397 Analyze_Associations
13399 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13400 Bob Duff <duff@adacore.com>
13401 Gary Dismukes <dismukes@adacore.com>
13403 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
13404 prefix type is a discriminated subtype of the type of the formal.
13405 (Analyze_Allocator): Collect all coextensions regardless of the context.
13406 Whether they can be allocated statically is determined in exp_ch4.
13407 (Analyze_Selected_Component): If the prefix is a limited view and the
13408 non-limited view is available, use the non-limited one.
13409 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
13410 therefore illegal), suggest a qualified expression rather than a type
13411 conversion, because a type conversion would be illegal in this context.
13412 (Anayze_Allocator): Trace recursively all nested allocators so that all
13413 coextensions are on the corresponding list for the root. Do no mark
13414 coextensions if the root allocator is within a declaration for a stack-
13415 allocated object, because the access discriminants will be allocated on
13417 (Analyze_Call): Remove restriction on calls to limited functions for the
13418 cases of generic actuals for formal objects, defaults for formal objects
13419 and defaults for record components.
13420 (Analyze_Allocator): Before analysis, chain coextensions on the proper
13421 element list. Their expansion is delayed until the enclosing allocator
13422 is processed and its finalization list constructed.
13423 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
13424 for an operation with the given name among the primitive operations of
13425 the corresponding record type.
13426 (Analyze_Selected_Component): If the prefix is a task type that
13427 implements an interface, and there is no entry with the given name,
13428 check whether there is another primitive operation (e.g. a function)
13430 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
13431 properly the indexing of a function call written in prefix form, where
13432 the function returns an array type, and all parameters of the function
13433 except the first have defaults.
13434 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
13435 the original operands, rather than relocating them, for efficiency and
13436 to work properly when an operand is overloaded.
13437 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
13438 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
13439 (Analyze_Selected_Component): If the prefix is a private extension, only
13440 scan the visible components, not those of the full view.
13441 (Try_Primitive_Operation): If the operation is a procedure, collect all
13442 possible interpretations, as for a function, because in the presence of
13443 classwide parameters several primitive operations of the type can match
13444 the given arguments.
13446 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13447 Robert Dewar <dewar@adacore.com>
13449 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
13450 tag-indeterminate call to an abstract function, when the left-hand side
13452 (Analyze_Loop_Statement): Improve detection of infinite loops
13454 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13455 Thomas Quinot <quinot@adacore.com>
13457 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
13458 out of Analyze_Package_Declaration, because processing must be applied
13459 to package bodies as well, for deferred constants completed by pragmas.
13460 (Analyze_Package_Declaration): When the package declaration being
13461 analyzed does not require an explicit body, call Check_Completion.
13462 (May_Need_Implicit_Body): An implicit body is required when a package
13463 spec contains the declaration of a remote access-to-classwide type.
13464 (Analyze_Package_Body): If the package contains RACWs, append the
13465 pending subprogram bodies generated by exp_dist at the end of the body.
13466 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
13467 Is_Abstract_Subprogram and Is_Abstract_Type.
13468 (Preserve_Full_Attributes): The full entity list is not an attribute
13469 that must be preserved from full to partial view.
13471 * sem_dist.adb (Add_RAS_Dereference_TSS):
13472 Change primitive name to _Call so it cannot clash with any legal
13473 identifier, and be special-cased in Check_Completion.
13474 Mark the full view of the designated type for the RACW associated with
13475 a RAS as Comes_From_Source to get proper view switching when installing
13476 private declarations.
13477 Provite a placeholder nested package body along with the nested spec
13478 to have a place for Append_RACW_Bodies to generate the calling stubs
13479 and stream attributes.
13481 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13482 Robert Dewar <dewar@adacore.com>
13484 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
13485 that is a limited view, check the non-limited view if available.
13486 (Undefined): Refine error message for missing with of Text_IO
13487 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
13488 to distinguish real missing with cases.
13489 Fix format of all missing with messages
13490 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
13491 renaming as body when renamed entity is abstract.
13493 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13494 Javier Miranda <miranda@adacore.com>
13496 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
13497 predicate recursive, to handle complex expressions on literals whose
13498 spurious ambiguity comes from the abstract interpretation of some
13500 (Interface_Present_In_Ancestor): Add support to concurrent record
13502 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
13503 Is_Abstract_Subprogram and Is_Abstract_Type.
13505 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13506 Javier Miranda <miranda@adacore.com>
13508 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
13509 dereference of a local object R created as a reference to another
13510 object O, use the access level of O.
13511 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
13512 rather than local Same_Formal_Type, to check whether protected operation
13513 overrides an inherited one.
13514 (Same_Formal_Type): New predicate, used when matching signatures of
13515 overriding synchronized operations, to handle the case when a formal
13516 has a type that is a generic actual.
13517 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
13518 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
13519 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
13520 syntactic ambiguities involving indexing of function calls that return
13522 (Abstract_Interface_List): New subprogram that returns the list of
13523 abstract interfaces associated with a concurrent type or a
13524 concurrent record type.
13525 (Interface_Present_In_Parent): New subprogram used to check if a
13526 given type or some of its parents implement a given interface.
13527 (Collect_Abstract_Interfaces): Add support for concurrent types
13528 with interface types.
13529 (Has_Abstract_Interfaces): Add support for concurrent types with
13531 (Is_Parent): New subprogram that determines whether E1 is a parent
13532 of E2. For a concurrent type its parent is the first element of its
13533 list of interface types; for other types this function provides the
13534 same result than Is_Ancestor.
13535 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
13536 (Collect_Synchronized_Interfaces): Removed because the subprogram
13537 Collect_Abstract_Interfaces provides this functionality.
13538 (Collect_Abstract_Interfaces): Minor update to give support to
13539 concurrent types and thus avoid undesired code duplication.
13540 (Get_Subprogram_Entity): Handle entry calls.
13541 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
13543 (Enter_Name): Do not give -gnatwh hiding warning for record component
13544 entities, they never result in hiding.
13546 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13547 Robert Dewar <dewar@adacore.com>
13549 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
13550 to chain nested components that are allocators for access discriminants
13551 of the enclosing object.
13552 Add N_Push and N_Pop nodes
13553 New field Exception_Label added
13554 (Local_Raise_Statements): New field in N_Exception_Handler_Node
13555 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
13556 (Is_Coextension): New flag for allocators, to mark allocators that
13557 correspond to access discriminants of dynamically allocated objects.
13558 (N_Block_Statement): Document the fact that the corresponding entity
13559 can be an E_Return_Statement.
13560 (Is_Coextension): New flag for allocators.
13561 Remove all code for DSP option
13563 * sprint.ads, sprint.adb: Display basic information for class_wide
13564 subtypes. Add handling of N_Push and N_Pop nodes
13566 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13568 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
13569 before propagating exception.
13571 2007-04-06 Olivier Hainque <hainque@adacore.com>
13573 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
13574 an address always within the call instruction from a return address.
13576 2007-04-06 Olivier Hainque <hainque@adacore.com>
13577 Eric Botcazou <botcazou@adacore.com>
13579 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
13580 expression with a COMPOUND_EXPR including the call instead of emitting
13581 the call directly here.
13582 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
13583 high bound is constant and the slice is empty. Tidy.
13584 (tree_transform, case N_Op_Not): Handle properly the case where the
13585 operation applies to a private type whose full view is a modular type.
13586 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
13587 Address_Clause, use the associated Expression as the GNAT tree
13588 representing the choice value to ensure the corresponding GCC tree is
13589 of the proper kind.
13590 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
13591 instead of just the operands, as the base GCC stabilize_reference does.
13592 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
13593 requested; otherwise fail.
13594 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
13596 2007-04-06 Thomas Quinot <quinot@adacore.com>
13598 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
13599 implementation of UI_Div.
13600 (UI_Div): Reimplement as a call to UI_Div_Rem.
13601 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
13602 remainder, avoiding the cost of a multiplication and a subtraction.
13603 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
13604 provides both quotient and remainder in a single computation.
13605 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
13606 functions for uint.
13607 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
13608 is undefined if the given n is not inversible.
13610 2007-04-06 Olivier Hainque <hainque@adacore.com>
13612 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
13613 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
13616 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13617 Olivier Hainque <hainque@adacore.com>
13619 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
13620 when updating the contents of the old pointer to an unconstrained array.
13621 (end_subprog_body): Set error_gnat_node to Empty.
13622 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
13623 (unchecked_convert): For subtype to base type conversions, require that
13624 the source be a subtype if it is an integer type.
13625 (builtin_decls): New global, vector of available builtin functions.
13626 (gnat_pushdecl): Add global builtin function declaration nodes to the
13627 builtin_decls list.
13628 (gnat_install_builtins): Adjust comments.
13629 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
13630 calling gnat_pushdecl, so that it knows when it handed a builtin
13631 function declaration node.
13632 (builtin_decl_for): Search the builtin_decls list.
13634 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13636 * s-stchop-vxworks.adb:
13637 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
13639 2007-04-06 Robert Dewar <dewar@adacore.com>
13640 Arnaud Charlet <charlet@adacore.com>
13642 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
13644 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
13646 Add mention of -Sev (set initialize_scalars option from environment
13647 variable at run time) in gnatbind usage message.
13649 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
13651 * fname-uf.ads: Minor comment fix
13653 * osint.ads: Change pragma Elaborate to Elaborate_All
13655 * par-load.adb: Add documentation.
13657 * sem_cat.ads, sem_cat.adb: Minor code reorganization
13659 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
13661 * s-secsta.ads: Extra comments
13663 * s-soflin.ads: Minor comment fixes
13665 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
13667 * s-wchcon.ads: Minor comment addition
13669 * treepr.adb: Minor change in message
13670 (Print_Name,Print_Node): Make these debug printouts more robust: print
13671 "no such..." instead of crashing on bad input.
13673 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
13675 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
13676 instead of gnat_signed_or_unsigned_type.
13677 * utils.c (gnat_signed_or_unsigned_type): Remove.
13678 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
13679 * gigi.h (gnat_signed_or_unsigned_type): Remove
13681 2007-03-09 Roger Sayle <roger@eyesopen.com>
13683 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
13684 fold with the result of buildN.
13685 * decl.c (gnat_to_gnu_entity): Likewise.
13686 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
13687 * utils.c (finish_record_type, merge_sizes, max_size, convert):
13689 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
13690 nonbinary_modular_operation, build_binary_op, build_unary_op,
13691 build_cond_expr): Likewise.
13693 * utils.c (convert): Use fold_build1 when casting values to void.
13694 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
13695 fold_convert instead of convert when appropriate.
13697 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
13699 * Make-lang.in: Add install-pdf target as copied from
13700 automake v1.10 rules.
13702 2007-02-28 Andreas Schwab <schwab@suse.de>
13704 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
13705 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
13706 (doc/gnat-style.info): Likewise.
13708 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
13710 * gnat-style.texi: Standardize title page.
13711 * gnat_rm.texi: Likewise.
13712 * gnat_ugn.texi: Likewise.
13714 2007-02-25 Mark Mitchell <mark@codesourcery.com>
13716 * decl.c (annotate_value): Adjust for refactoring of tree_map
13719 2007-02-24 Mark Mitchell <mark@codesourcery.com>
13721 * decl.c (annotate_value): Adjust for refactoring of tree_map
13724 2007-02-21 Ed Schonberg <schonberg@adacore.com>
13727 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
13728 untagged derived type, add hidden components to keep discriminant
13729 layout consistent, when a given discriminant of the derived type
13730 constraints several discriminants of the parent type.
13732 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
13733 Sandra Loosemore <sandra@codesourcery.com>
13735 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
13736 build the call expression.
13737 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
13738 * utils.c (max_size) <tcc_exceptional>: Delete.
13739 <tcc_vl_exp>: New case.
13740 <tcc_expression>: Delete CALL_EXPR subcase.
13741 (build_global_cdtor): Use build_call_nary instead of build3.
13742 * utils2.c (build_call_1_expr): Likewise.
13743 (build_call_2_expr): Likewise.
13744 (build_call_0_expr): Likewise.
13745 (build_call_alloc_dealloc): Likewise.
13747 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
13749 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13750 get_action_description_for): Replace _Unwind_Word with _uleb128_t
13751 and _Unwind_SWord with _sleb128_t.
13753 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
13755 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
13756 * decl.c: Include gt-ada-decl.h.
13757 (annotate_value_cache): New.
13758 (annotate_value): Use it instead of TREE_COMPLEXITY.
13760 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
13762 * misc.c, utils2.c: Fix comment typos.
13764 2007-01-24 Roger Sayle <roger@eyesopen.com>
13766 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
13767 TREE_CONSTANT_OVERFLOW.
13768 (allocatable_size_p, annotate_value): Likewise.
13769 * trans.c (gnat_to_gnu): Likewise.
13770 * utils.c (unchecked_convert): Likewise.
13771 * utils2.c (build_simple_component_ref): Likewise.
13773 2007-01-23 Richard Guenther <rguenther@suse.de>
13776 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
13777 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
13778 (gnatboot3): Likewise.
13779 (GNATBIND): Do not define.
13780 * Makefile.in (GNATBIND): Do not define.
13782 2007-01-08 Richard Guenther <rguenther@suse.de>
13784 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
13785 * trans.c (gnat_to_gnu): Likewise.
13787 2006-12-07 Geoffrey Keating <geoffk@apple.com>
13789 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
13790 * adaint.c: Likewise.
13792 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
13794 Merge from gimple-tuples-branch:
13795 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
13797 * ada-tree.h (lang_tree_node): Handle gimple tuples.
13798 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
13799 GIMPLE_MODIFY_STMT.
13801 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
13803 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
13804 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
13807 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
13810 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
13811 if the initializer takes into account the padding.
13813 2006-11-11 Richard Guenther <rguenther@suse.de>
13815 * trans.c (maybe_stabilize_reference): Remove handling of
13816 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
13818 2006-11-05 Arnaud Charlet <charlet@adacore.com>
13821 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
13822 (To_Target_Priority): New function.
13824 2006-10-31 Robert Dewar <dewar@adacore.com>
13826 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
13827 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
13828 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
13829 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
13830 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
13831 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
13832 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
13833 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
13834 a-szbzha.adb: Minor reformatting. Fix header.
13836 * a-numaux-x86.adb: Add parentheses for use of unary minus
13837 * a-ngcefu.adb: Supply missing parentheses for unary minus
13838 * a-ngcoty.adb: Add parens for use of unary minus
13839 * a-ngelfu.adb: Add missing parens for unary minus
13840 * a-tifiio.adb: Add parentheses for uses of unary minus
13842 2006-10-31 Robert Dewar <dewar@adacore.com>
13843 Bob Duff <duff@adacore.com>
13844 Ed Schonberg <schonberg@adacore.com>
13846 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
13847 with multiplying operator.
13848 (Expected_Type_Is_Any_Real): New function to determine from the Parent
13849 pointer whether the context expects "any real type".
13850 (Resolve_Arithmetic_Op): Do not give an error on calls to the
13851 universal_fixed "*" and "/" operators when they are used in a context
13852 that expects any real type. Also set the type of the node to
13853 Universal_Real in this case, because downstream processing requires it
13854 (mainly static expression evaluation).
13855 Reword some continuation messages
13856 Add some \\ sequences to continuation messages
13857 (Resolve_Call): Refine infinite recursion case. The test has been
13858 sharpened to eliminate some false positives.
13859 Check for Current_Task usage now includes entry barrier, and is now a
13860 warning, not an error.
13861 (Resolve): If the call is ambiguous, indicate whether an interpretation
13862 is an inherited operation.
13863 (Check_Aggr): When resolving aggregates, skip associations with a box,
13864 which are priori correct, and will be replaced by an actual default
13865 expression in the course of expansion.
13866 (Resolve_Type_Conversion): Add missing support for conversion from
13867 a class-wide interface to a tagged type. Minor code cleanup.
13868 (Valid_Tagged_Converion): Add support for abstact interface type
13870 (Resolve_Selected_Component): Call Generate_Reference here rather than
13871 during analysis, and use May_Be_Lvalue to distinguish read/write.
13872 (Valid_Array_Conversion): New procedure, abstracted from
13873 Valid_Conversion, to incorporate accessibility checks for arrays of
13874 anonymous access types.
13875 (Valid_Conversion): For a conversion to a numeric type occurring in an
13876 instance or inlined body, no need to check that the operand type is
13877 numeric, since this has been checked during analysis of the template.
13878 Remove legacy test for scope name Unchecked_Conversion.
13880 * sem_res.ads: Minor reformatting
13882 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
13883 (PE_Current_Task_In_Entry_Body): New exception code
13884 (SE_Restriction_Violation): Removed, not used
13886 * a-except.ads: Update comments.
13888 * types.h, types.ads: Add definition for Validity_Check
13889 (PE_Current_Task_In_Entry_Body): New exception code
13890 (SE_Restriction_Violation): Removed, not used
13892 2006-10-31 Thomas Quinot <quinot@adacore.com>
13894 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
13897 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13898 Jose Ruiz <ruiz@adacore.com>
13900 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
13901 part of Ada.Calendar: all subprogram raise Unimplemented.
13902 (Split_W_Offset): Temp function body, raising Unimplemented
13904 * a-calend.ads, a-calend-vms.ads:
13905 Add imported variable Invalid_TZ_Offset used to designate targets unable
13906 to support time zones.
13907 (Unimplemented): Temporary function raised by the body of new
13909 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
13910 unit provides handling of leap seconds and is used by the new Ada 2005
13911 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
13912 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
13913 version returns an extra value which is the offset to UTC.
13915 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
13916 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
13917 (Split_W_Offset): New function body.
13918 (Time_Of): When a date is close to UNIX epoch, compute the time for
13919 that date plus one day (that amount is later substracted after
13920 executing mktime) so there are no problems with time zone adjustments.
13922 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
13924 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
13925 a-catizo.ads, a-catizo.adb: New files.
13927 * impunit.adb: Add new Ada 2005 entries
13929 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
13930 Rename all occurences of "__gnat_localtime_r" to
13931 "__gnat_localtime_tzoff".
13932 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
13933 zone data and calculate the GMT offset.
13934 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
13935 Use the field "tm_gmtoff" to extract the GMT offset.
13936 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
13937 the external variable "timezone" to calculate the GMT offset.
13939 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13940 Jose Ruiz <ruiz@adacore.com>
13942 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
13943 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
13944 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
13945 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
13946 System.Any_Priority to a POSIX priority on the target.
13948 * system-linux-ia64.ads:
13949 Extend range of Priority types on Linux to use the whole range made
13950 available by the system.
13952 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
13953 function maps from System.Any_Priority to a POSIX priority on the
13955 (PTHREAD_PRIO_PROTECT): Set real value.
13956 (PTHREAD_PRIO_INHERIT): Now a function.
13957 (SIGCPUFAIL): New signal.
13958 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
13959 are documented as reserved by the OS.
13961 * system-aix.ads: Use the full range of priorities provided by the
13964 * s-taprop-posix.adb: Call new function To_Target_Priority.
13965 (Set_Priority): Take into account Task_Dispatching_Policy and
13966 Priority_Specific_Dispatching pragmas when determining if Round Robin
13967 must be used for scheduling the task.
13969 * system-linux-x86_64.ads, system-linux-x86.ads,
13970 system-linux-ppc.ads: Extend range of Priority types on Linux to use
13971 the whole range made available by the system.
13973 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
13974 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
13975 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
13976 when deallocating the TCB in order to avoid potential references to
13978 (Set_Priority): Take into account Task_Dispatching_Policy and
13979 Priority_Specific_Dispatching pragmas when determining if Round Robin
13980 or FIFO within priorities must be used for scheduling the task.
13982 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
13983 the Thread field (to be used internally by the run-time system) and the
13984 kernel-level task id in the LWP field (to be used by the debugger).
13985 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
13986 instance, and propagate the current task options to the spawned task.
13987 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
13988 (Initialize): Set Round Robin dispatching when the corresponding pragma
13991 2006-10-31 Robert Dewar <dewar@adacore.com>
13993 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
13994 system-linux-hppa.ads, system-hpux-ia64.ads,
13995 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
13996 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
13997 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
13998 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
13999 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14000 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14001 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
14002 Default_Bit_Order) to kill constant condition warnings for references
14005 2006-10-31 Vincent Celier <celier@adacore.com>
14006 Eric Botcazou <ebotcazou@adacore.com>
14008 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
14009 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
14010 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
14011 Ext_To, when building the library file name
14013 * mlib-tgt-vxworks.adb: ditto.
14014 (Get_Target_Suffix): Add support for x86 targets.
14016 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
14018 * mlib-tgt-darwin.adb:
14019 Use Append_To, instead of Ext_To, when building the library file name
14020 (Flat_Namespace): New global variable.
14021 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
14022 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
14023 (Link_Shared_Libgcc): Delete.
14024 (Build_Dynamic_Library): Adjust for above changes.
14026 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
14028 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14030 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
14031 (Initialize): Add type conversions required by above change.
14033 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14035 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
14036 (getpid): New body for this function that uses the underlying taskIdSelf
14037 function for VxWorks 5 and VxWorks 6 in kernel mode.
14038 (unsigned_int): New type, modular to allow logical bit operations.
14039 (taskOptionsGet): New imported function.
14041 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
14042 field to be compliant with the type used by the corresponding operating
14045 2006-10-31 Pascal Obry <obry@adacore.com>
14046 Eric Botcazou <ebotcazou@adacore.com>
14047 Vincent Celier <celier@adacore.com>
14049 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
14050 ASCII version of the registry API. This is needed as the GNAT runtime
14051 is now UNICODE by default.
14053 (get_gcc_version): Do not hardcode the return value.
14054 (__gnat_file_time_name): On Windows properly set the default returned
14055 value to -1 which corresponds to Invalid_Time.
14056 (__gnat_fopen): New routine. A simple wrapper on all plateforms
14057 except on Windows where it does conversion for unicode support.
14058 (__gnat_freopen): Idem.
14059 (__gnat_locate_exec_on_path): If environment variable PATH does not
14060 exist, return a NULL pointer
14062 * adaint.h: (__gnat_fopen): Declare.
14063 (__gnat_freopen): Likewise.
14065 * mingw32.h (_tfreopen): Define this macro here for older MingW
14067 Activate the unicode support on platforms using a MingW runtime
14068 version 3.9 or newer.
14070 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
14071 This is needed for proper unicode support on Windows.
14074 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14075 Nicolas Setton <setton@adacore.com>
14076 Olivier Hainque <hainque@adacore.com>
14077 Gary Dismukes <dismukes@adacore.com>
14079 * gigi.h: (tree_code_for_record_type): Declare.
14080 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
14081 (get_global_renaming_pointers): Rename to
14082 invalidate_global_renaming_pointers.
14083 (static_ctors): Delete.
14084 (static_dtors): Likewise.
14085 (gnat_write_global_declarations): Declare.
14086 (create_var_decl): Adjust descriptive comment to indicate that the
14087 subprogram may return a CONST_DECL node.
14088 (create_true_var_decl): Declare new function, similar to
14089 create_var_decl but forcing the creation of a VAR_DECL node.
14090 (get_global_renaming_pointers): Declare.
14091 (add_global_renaming_pointer): Likewise.
14093 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
14095 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
14096 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
14098 (gnat_to_gnu_entity): Remove From_With_Type from computation for
14100 <E_Access_Type>: Use the Non_Limited_View as the full view of the
14101 designated type if the pointer comes from a limited_with clause. Make
14102 incomplete designated type if it is in the main unit and has a freeze
14104 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
14105 Underlying_Full_View similarly. Return earlier if the full view already
14106 has an associated tree.
14107 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
14108 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
14109 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
14110 reference type built for objects with an address clause.
14111 Use create_true_var_decl with const_flag set for
14112 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
14114 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
14115 for Character and Wide_Character types. This info is read by the
14116 dwarf-2 writer, and is needed to be able to use the command "ptype
14117 character" in the debugger.
14118 (gnat_to_gnu_entity): When generating a type representing
14119 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
14120 so that debug writers can distinguish it from ordinary integers.
14121 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
14122 addition to TREE_READONLY to assert the constantness of variables for
14123 elaboration purposes.
14124 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
14125 parameters to call new Einfo function First_Formal_With_Extras.
14126 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
14127 protected type with its corresponding discriminant, to obtain a usable
14129 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
14130 for a multiple elaboration of the "equivalent" type.
14131 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
14132 into record_global_renaming_pointer.
14133 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
14134 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
14135 <E_Array_Subtype>: Likewise.
14136 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
14137 incomplete subtypes and incomplete subtypes of incomplete types visible
14138 through a limited with clause.
14139 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
14140 the base index type for the maximum size of the array only if they are
14142 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
14143 expression into a SAVE_EXPR if stabilization failed.
14145 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
14146 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
14147 by lower level compilation passes.
14148 (gnat_genericize): New function, lowering a function body to GENERIC.
14149 Turn the type of RESULT_DECL into a real reference type if the decl
14150 has been marked DECL_BY_REFERENCE, and adjust references to the latter
14152 (gnat_genericize_r): New function. Tree walking callback for
14154 (convert_from_reference, is_byref_result): New functions. Helpers for
14156 (create_type_decl): Call gnat_pushdecl before calling
14157 rest_of_decl_compilation, to make sure that field TYPE_NAME of
14158 type_decl is properly set before calling the debug information writers.
14159 (write_record_type_debug_info): The heuristics which compute the
14160 alignment of a field in a variant record might not be accurate. Add a
14161 safety test to make sure no alignment is set to a smaller value than
14162 the alignment of the field type.
14163 (make_dummy_type): Use the Non_Limited_View as the underlying type if
14164 the type comes from a limited_with clause. Do not loop on the full view.
14165 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
14166 (dummy_node_table): New global variable, moved from decl.c.
14167 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
14168 (save_gnu_tree): Use above macros.
14169 (get_gnu_tree): Likewise.
14170 (present_gnu_tree): Likewise.
14171 (init_dummy_type): New function, moved from decl.c. Use above macros.
14172 (make_dummy_type): Likewise.
14173 (tree_code_for_record_type): New function extracted from make_dummy_type
14174 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
14175 (static_ctors): Change it to a vector, make static.
14176 (static_dtors): Likewise.
14177 (end_subprog_body): Adjust for above change.
14178 (build_global_cdtor): Moved from trans.c.
14179 (gnat_write_global_declarations): Emit global constructor and
14180 destructor, and call cgraph_optimize before emitting debug info for
14181 global declarations.
14182 (global_decls): New global variable.
14183 (gnat_pushdecl): Store the global declarations in global_decls, for
14185 (gnat_write_global_declarations): Emit debug information for global
14187 (create_var_decl_1): Former create_var_decl, with an extra argument to
14188 state whether the creation of a CONST_DECL is allowed.
14189 (create_var_decl): Behavior unchanged. Now a wrapper around
14190 create_var_decl_1 allowing CONST_DECL creation.
14191 (create_true_var_decl): New function, similar to create_var_decl but
14192 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
14193 (create_field_decl): Do not always mark the field as addressable
14194 if its type is an aggregate.
14195 (global_renaming_pointers): New static variable.
14196 (add_global_renaming_pointer): New function.
14197 (get_global_renaming_pointers): Likewise.
14199 * misc.c (gnat_dwarf_name): New function.
14200 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
14201 (gnat_post_options): Add comment about structural alias analysis.
14202 (gnat_parse_file): Do not call cgraph_optimize here.
14203 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
14205 * trans.c (process_freeze_entity): Don't abort if we already have a
14206 non dummy GCC tree for a Concurrent_Record_Type, as it might
14207 legitimately have been elaborated while processing the associated
14208 Concurrent_Type prior to this explicit freeze node.
14209 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
14210 exception handler volatile if it is of variable size.
14211 (process_type): Remove bypass for types coming from a limited_with
14213 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
14214 actual, convert the corresponding gnu_actual to the real destination
14215 type when necessary.
14216 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
14217 originally TREE_READONLY but whose elaboration cannot be performed
14219 Part of fix for F504-021.
14220 (tree_transform, subprogram cases): Change loops on formal parameters to
14221 call new Einfo function First_Formal_With_Extras.
14222 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
14223 stemming from type conversion for the lhs.
14224 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
14225 number of bits per unit for components of records.
14226 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
14227 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
14228 with At_End_Proc after the SJLJ EH cleanup.
14229 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
14231 (elaborate_all_entities): Do not retest type_annotate_only.
14232 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
14233 result type of an abstract subprogram, which may be an itype associated
14234 with an anonymous access result (related to AI-318-02).
14235 (build_global_cdtor): Move to utils.c.
14236 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
14237 this choice is not a null tree nor an integer constant.
14238 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
14239 on the body of elaboration routines instead of mark_unvisited.
14240 (add_stmt): Do not mark the tree.
14241 (add_decl_expr): Tweak comment.
14242 (mark_unvisited): Delete.
14243 (unshare_save_expr): New static function.
14244 (call_to_gnu): Issue an error when making a temporary around a
14245 procedure call because of non-addressable actual parameter if the
14246 type of the formal is by_reference.
14247 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
14248 after building the elaboration routine.
14250 2006-10-31 Bob Duff <duff@adacore.com>
14252 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
14253 as finalization-started, so we can raise Program_Error on 'new'.
14255 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
14256 collection has already started.
14258 * s-finimp.ads (Collection_Finalization_Started): Added new special
14259 flag value for indicating that a collection's finalization has started.
14261 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
14262 create a task whose master has already waited for dependent tasks.
14264 2006-10-31 Robert Dewar <dewar@adacore.com>
14266 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
14268 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
14269 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
14270 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
14271 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
14272 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
14273 a-except-2005.ads: Add pragma Preelaborable_Warning
14275 2006-10-31 Robert Dewar <dewar@adacore.com>
14276 Jose Ruiz <ruiz@adacore.com>
14278 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
14280 * ali.adb (Get_Name): Properly handle scanning of wide character names
14281 encoded with brackets notation.
14282 (Known_ALI_Lines): Add S lines to this list.
14283 (Scan_ALI): Acquire S (priority specific dispatching) lines.
14284 New flag Elaborate_All_Desirable in unit table
14286 * ali.ads (Priority_Specific_Dispatching): Add this range of
14287 identifiers to be used for Priority_Specific_Dispatching table entries.
14288 (ALIs_Record): Add First_Specific_Dispatching and
14289 Last_Specific_Dispatching that point to the first and last entries
14290 respectively in the priority specific dispatching table for this unit.
14291 (Specific_Dispatching): Add this table for storing each S (priority
14292 specific dispatching) line encountered in the input ALI file.
14293 New flag Elaborate_All_Desirable in unit table
14295 * bcheck.adb: (Check_Configuration_Consistency): Add call to
14296 Check_Consistent_Dispatching_Policy.
14297 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
14298 verifying that the use of Priority_Specific_Dispatching,
14299 Task_Dispatching_Policy, and Locking_Policy is consistent across the
14302 * bindgen.adb: (Public_Version_Warning): function removed.
14303 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
14304 required information from ALI files in order to initialize the table
14305 containing the specific dispatching policy.
14306 (Gen_Adainit_Ada): Generate the variables required for priority specific
14307 dispatching entries (__gl_priority_specific_dispatching and
14308 __gl_num_specific_dispatching).
14309 (Gen_Adainit_C): Generate the variables required for priority specific
14310 dispatching entries (__gl_priority_specific_dispatching and
14311 __gl_num_specific_dispatching).
14312 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
14314 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
14315 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
14317 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
14318 a call to gnat_set_globals.
14319 Generate a string containing settings from
14320 Priority_Specific_Dispatching pragma entries.
14321 (Gen_Object_Files_Options): Do not include the runtime libraries when
14322 pragma No_Run_Time is specified.
14324 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
14325 consistency with s-intman-posix.adb.
14326 (__gnat_error_handler, case FreeBSD): Account for the fact that the
14327 handler is installed with SA_SIGINFO.
14328 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
14329 FreeBSD ZCX support, copied from Linux version.
14330 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
14331 sigfillset, and sigemptyset so the routines defined by MaRTE.
14332 (__gl_priority_specific_dispatching): Add this variable that stores the
14333 string containing priority specific dispatching policies in the
14335 (__gl_num_specific_dispatching): Add this variable that indicates the
14336 highest priority for which a priority specific dispatching pragma
14338 (__gnat_get_specific_dispatching): Add this routine that returns the
14339 priority specific dispatching policy, as set by a
14340 Priority_Specific_Dispatching pragma appearing anywhere in the current
14341 partition. The input argument is the priority number, and the result
14342 is the upper case first character of the policy name.
14343 (__gnat_set_globals): Now a dummy function.
14344 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
14345 mechargs instead of sigargs, as the latter can be retrieved from the
14346 former and sigargs is not what we want on ia64.
14347 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
14349 (__gnat_adjust_context_for_raise, ia64-vms): New function.
14350 (tasking_error): Remove unused symbol.
14351 (_abort_signal): Move this symbol to the IRIX specific part since this
14352 is the only target that uses this definition.
14353 (Check_Abort_Status): Move this symbol to the IRIX specific part since
14354 this is the only target that uses this definition.
14355 (Lock_Task): Remove unused symbol.
14356 (Unlock_Task): Remove unused symbol.
14358 * lib-writ.adb (Write_ALI): Output new S lines for
14359 Priority_Specific_Dispatching pragmas.
14360 Implement new flag BD for elaborate body desirable
14362 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
14363 (Specific_Dispatching): Add this table for storing the entries
14364 corresponding to Priority_Specific_Dispatching pragmas.
14365 Document new BD flag for elaborate body desirable
14367 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
14370 2006-10-31 Javier Miranda <miranda@adacore.com>
14372 * a-tags.ads, a-tags.adb:
14373 (Predefined_DT): New function that improves readability of the code.
14374 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
14375 Inherit_DT): Use the new function Predefined_DT to improve code
14377 (Register_Interface_Tag): Update assertion.
14378 (Set_Interface_Table): Update assertion.
14379 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
14380 determining progenitor interfaces in Tags.
14381 (Inherit_CPP_DT): New subprogram.
14383 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
14384 analysis of the thunk code.
14385 (Expand_Interface_Conversion): Handle run-time conversion of
14386 access to class wide types.
14387 (Expand_Dispatching_Call): When generating the profile for the
14388 subprogram itype for a dispatching operation, properly terminate the
14389 formal parameters chaind list (set the Next_Entity of the last formal
14391 (Collect_All_Interfaces): Removed. This routine has been moved to
14392 sem_util and renamed as Collect_All_Abstract_Interfaces.
14393 (Set_All_DT_Position): Hidden entities associated with abstract
14394 interface primitives are not taken into account in the check for
14395 3.9.3(10); this check is done with the aliased entity.
14396 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
14397 interfacing with CPP by default.
14398 (Expand_Interface_Conversion): Add missing support for static conversion
14399 from an interface to a tagged type.
14400 (Collect_All_Interfaces): Add new out formal containing the list of
14401 abstract interface types to cleanup the subprogram Make_DT.
14402 (Make_DT): Update the code to generate the table of interfaces in case
14403 of abstract interface types.
14404 (Is_Predefined_Dispatching_Alias): New function that returns true if
14405 a primitive is not a predefined dispatching primitive but it is an
14406 alias of a predefined dispatching primitive.
14407 (Make_DT): If the ancestor of the type is a CPP_Class and we are
14408 compiling under full ABI compatibility mode we avoid the generation of
14409 calls to run-time services that fill the dispatch tables because under
14410 this mode we currently inherit the dispatch tables in the IP subprogram.
14411 (Write_DT): Emit an "is null" indication for a null procedure primitive.
14412 (Expand_Interface_Conversion): Use an address as the type of the formal
14413 of the internally built function that handles the case in which the
14414 target type is an access type.
14416 2006-10-31 Robert Dewar <dewar@adacore.com>
14418 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
14420 2006-10-31 Robert Dewar <dewar@adacore.com>
14422 * bindusg.ads, bindusg.adb:
14423 Change to package and rename procedure as Display, which
14424 now ensures that it only outputs usage information once.
14426 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14428 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
14431 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
14434 2006-10-31 Robert Dewar <dewar@adacore.com>
14435 Ed Schonberg <schonberg@adacore.com>
14437 * treepr.adb: Use new subtype N_Membership_Test
14439 * checks.ads, checks.adb: Add definition for Validity_Check
14440 (Range_Or_Validity_Checks_Suppressed): New function
14441 (Ensure_Valid): Test Validity_Check suppressed
14442 (Insert_Valid_Check): Test Validity_Check suppressed
14443 (Insert_Valid_Check): Preserve Do_Range_Check flag
14444 (Validity_Check_Range): New procedure
14445 (Expr_Known_Valid): Result of membership test is always valid
14446 (Selected_Range_Checks): Range checks cannot be applied to discriminants
14447 by themselves. Disabling those checks must also be done for task types,
14448 where discriminants may be used for the bounds of entry families.
14449 (Apply_Address_Clause_Check): Remove side-effects if address expression
14450 is non-static and is not the name of a declared constant.
14451 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
14452 Code cleanup and new error messages.
14453 (Enable_Range_Check): Test for some cases of suppressed checks
14454 (Generate_Index_Checks): Suppress index checks if index checks are
14455 suppressed for array object or array type.
14456 (Apply_Selected_Length_Checks): Give warning for compile-time detected
14457 length check failure, even if checks are off.
14458 (Ensure_Valid): Do not generate a check on an indexed component whose
14459 prefix is a packed boolean array.
14460 * checks.adb: (Alignment_Checks_Suppressed): New function
14461 (Apply_Address_Clause_Check): New procedure, this is a completely
14462 rewritten replacement for Apply_Alignment_Check
14463 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
14464 we request a discriminal value only in case of discriminants.
14465 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
14466 assignments where the target subtype is unconstrained and the target
14467 object is a parameter or dereference (other aliased cases are known
14468 to be unconstrained).
14470 2006-10-31 Robert Dewar <dewar@adacore.com>
14472 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
14473 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
14474 vms_conv.adb: Fix bad table increment values (much too small)
14476 * table.adb (Realloc): Make sure we get at least some new elements
14477 Defends against silly small values for table increment
14479 2006-10-31 Robert Dewar <dewar@adacore.com>
14480 Ed Schonberg <schonberg@adacore.com>
14481 Bob Duff <duff@adacore.com>
14483 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
14484 entities. Move other fields around to make this possible
14485 (Is_Derived_Type): Add missing call to Is_Type.
14486 (Extra_Formals): New function for subprograms, entries, subprogram
14488 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
14489 (First_Formal_With_Extras): New function for subprogs, entries, subp
14491 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
14492 Add node information for E_Return_Statement.
14493 (Elaborate_Body_Desirable): New flag
14494 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
14495 to be Is_Inherently_Limited_Type, because return-by-reference has
14496 no meaning in Ada 2005.
14497 (E_Return_Statement): New entity kind.
14498 (Return_Applies_To): Field of E_Return_Statement.
14499 (Is_Return_Object): New flag in object entities.
14500 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
14501 (Must_Have_Preelab_Init): New flag
14502 (Known_To_Have_Preelab_Init): New flag
14503 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
14504 (Is_Visible_Formal): New flag on entities in formal packages.
14505 (Low_Bound_Known): New flag
14506 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
14508 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
14509 output when Id is an incomplete subtype.
14511 2006-10-31 Robert Dewar <dewar@adacore.com>
14513 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
14514 Avoid abbreviation Creat
14515 (Finalize): List all sources in extended mail source if -gnatl
14517 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
14518 (Finalize): Implement new -gnatl=xxx switch to output listing to file
14519 (Set_Specific_Warning_On): New procedure
14520 (Set_Specific_Warning_Off): New procedure
14521 Add implementation of new insertion \\
14522 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
14523 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
14525 (Error_Msg_Internal): Make sure that we set Last_Killed to
14526 True when a message from another package is suppressed.
14527 Implement insertion character ~ (insert string)
14528 (First_Node): Minor adjustments to get better placement.
14531 Implement new -gnatl=xxx switch to output listing to file
14534 Implement new -gnatl=xxx switch to output listing to file
14536 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
14537 (Commands_To_Stdout): New flag
14538 Implement new -gnatl=xxx switch to output listing to file
14539 New switch Dump_Source_Text
14540 (Warn_On_Deleted_Code): New warning flag for -gnatwt
14541 Define Error_Msg_Line_Length
14542 (Warn_On_Assumed_Low_Bound): New switch
14544 * osint.ads, osint.adb
14545 (Normalize_Directory_Name): Fix bug.
14546 Implement new -gnatl=xxx switch to output listing to file
14547 (Concat): Removed, replaced by real concatenation
14548 Make use of concatenation now allowed in compiler
14549 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
14550 we find the 'lib' or 'bin' directory even when the tool has been
14551 invoked with a relative path.
14552 (Executable_Name): New function taking string parameters.
14554 * osint-c.ads, osint-c.adb:
14555 Implement new -gnatl=xxx switch to output listing to file
14557 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
14560 Implement new -gnatl=xxx switch to output listing to file
14561 Recognize new -gnatL switch
14562 (no longer keep in old warning about old style usage)
14563 Use concatenation to simplify code
14564 Recognize -gnatjnn switch
14565 (Scan_Front_End_Switches): Clean up handling of -gnatW
14566 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
14568 2006-10-31 Robert Dewar <dewar@adacore.com>
14570 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
14571 (Set_Specific_Warning_Off): New procedure
14572 (Warning_Specifically_Suppressed): New function
14573 (Validate_Specific_Warnings): New procedure
14574 (Output_Msg_Text): Complete rewrite to support -gnatjnn
14576 * err_vars.ads: Implement insertion character ~ (insert string)
14578 2006-10-31 Bob Duff <duff@adacore.com>
14579 Ed Schonberg <schonberg@adacore.com>
14581 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
14582 the parent part is a build-in-place function call, generate assignments.
14583 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
14584 are build-in-place function calls.
14585 (Replace_Self_Reference): New subsidiary of
14586 Make_OK_Assignment_Statement, to replace an access attribute that is a
14587 self-reference into an access to the appropriate component of the
14588 target object. Generalizes previous mechanism to handle self-references
14589 nested at any level.
14590 (Is_Self_Referential_Init): Remove, not needed.
14591 (Is_Self_Referential_Init): New predicate to simplify handling of self
14592 referential components in record aggregates.
14593 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
14594 check for presence of entity before checking for self-reference.
14595 (Has_Default_Init_Comps): Return True if a component association is a
14596 self-reference to the enclosing type, which can only come from a
14597 default initialization.
14598 (Make_OK_Assignment_Statement): If the expression is of the form
14599 Typ'Acc, where Acc is an access attribute, the expression comes from a
14600 default initialized self-referential component.
14601 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
14602 that has been derived from several abstract interfaces we must also
14603 initialize the tags of the secondary dispatch tables.
14605 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14606 Thomas Quinot <quinot@adacore.com>
14607 Javier Miranda <miranda@adacore.com>
14608 Robert Dewar <dewar@adacore.com>
14611 (Expand_Access_To_Protected_Op): If the context indicates that an access
14612 to a local operation may be transfered outside of the object, create an
14613 access to the wrapper operation that must be used in an external call.
14614 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
14615 target, pass the Valid attribute applied to a floating-point prefix on
14616 to the back end without expansion.
14617 (Storage_Size): Use the new run-time function Storage_Size to retrieve
14618 the allocated storage when it is specified by a per-object expression.
14619 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
14620 Nothing to do here, the attribute has been rewritten during semantic
14622 (Expand_Attribute_Reference): Handle expansion of the new Priority
14624 (Find_Fat_Info): Handle case of universal real
14625 (Expand_Access_To_Protected_Op): Fix use of access to protected
14626 subprogram from inside the body of a protected entry.
14627 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
14628 'Access and 'Unrestricted_Access, to transform the attribute reference
14629 into a fat pointer.
14630 (Is_Constrained_Aliased_View): New predicate to help determine whether a
14631 subcomponent's enclosing variable is aliased with a constrained subtype.
14632 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
14633 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
14634 an aliased prefix must be known to be constrained in order to use True
14635 for the attribute value, and now it's possible for some aliased views
14636 to be unconstrained.
14638 2006-10-31 Robert Dewar <dewar@adacore.com>
14640 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
14641 (Expand_Entity_Reference): Correct error of not handling subprogram
14642 formals in current_value processing.
14644 2006-10-31 Javier Miranda <miranda@adacore.com>
14645 Robert Dewar <dewar@adacore.com>
14646 Ed Schonberg <schonberg@adacore.com>
14647 Gary Dismukes <dismukes@adacore.com>
14649 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
14650 register in the final list objects containing class-wide interfaces;
14651 otherwise we incorrectly register the tag of the interface in the final
14653 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
14654 generate the wrapper if the parent primitive is abstract. This is
14655 required to report the correct error message.
14656 (Expand_N_Subtype_Indication): Do validity checks on range
14657 (Clean_Task_Names): If an initialization procedure includes a call to
14658 initialize a task (sub)component, indicate that the procedure will use
14659 the secondary stack.
14660 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
14661 compatibility for interfacing with CPP by default.
14662 (Expand_N_Object_Declaration): Only build an Adjust call when the
14663 object's type is a nonlimited controlled type.
14664 * exp_ch3.adb: Add with and use of Exp_Ch6.
14665 (Expand_N_Object_Declaration): Check for object initialization that is a
14666 call to build-in-place function and apply Make_Build_In_Place_Call_In_
14667 Object_Declaration to the call.
14668 (Freeze_Type): When the designated type of an RACW was not frozen at the
14669 point where the RACW was declared, validate the primitive operations
14670 with respect to E.2.2(14) when it finally is frozen.
14671 (Build_Initialization_Call,Expand_Record_Controller): Rename
14672 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
14673 return-by-reference has no meaning in Ada 2005.
14674 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
14675 to register tag of the immediate ancestor interfaces in the
14676 run-time structure.
14677 (Init_Secondary_Tags): Moved to the specification to allow the
14678 initialization of extension aggregates with abstract interfaces.
14679 (Build_Master_Renaming): Make public, for use by function declarations
14680 whose return type is an anonymous access type.
14681 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
14682 Insert_List_Before_And_Analyze after the generation of the specs
14683 associated with null procedures.
14684 (Expand_Tagged_Root): Update documentation in its specification.
14685 (Init_Secondary_Tags): Update documentation.
14686 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
14687 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
14688 then generate code to inherit the contents of the dispatch table
14689 directly from the ancestor.
14690 (Expand_Record_Controller): Insert controller component after tags of
14691 implemented interfaces.
14692 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
14693 create null procedure overridings when null procedures are inherited
14695 (Make_Null_Procedure_Specs): New procedure to generate null procedure
14696 declarations for overriding null primitives inherited from interfaces.
14697 (Is_Null_Interface_Procedure): New function in
14698 Make_Null_Procedure_Specs.
14699 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
14700 immediate ancestor of a tagged type is an abstract interface type we
14701 must generate the specification of the predefined primitives associated
14702 with controlled types (because the dispatch table of the ancestor is
14703 null and hence these entries cannot be inherited). This is required to
14704 elaborate well the dispatch table.
14706 2006-10-31 Javier Miranda <miranda@adacore.com>
14707 Ed Schonberg <schonberg@adacore.com>
14708 Bob Duff <duff@adacore.com>
14709 Gary Dismukes <dismukes@adacore.com>
14710 Robert Dewar <dewar@adacore.com>
14712 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
14714 (Expand_N_In): Do validity checks on range
14715 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
14716 (Expand_N_Allocator): For "new T", if the object is constrained by
14717 discriminant defaults, allocate the right amount of memory, rather than
14718 the maximum for type T.
14719 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
14720 when the allocator is initialized by a build-in-place call, since the
14721 allocator is already rewritten as a reference to the function result,
14722 and this prevents an unwanted duplication of the function call.
14723 Add with and use of Exp_Ch6.
14724 (Expand_Allocator_Expresssion): Check for an allocator whose expression
14725 is a call to build-in-place function and apply
14726 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
14727 untagged designated types).
14728 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
14729 optimization if source or target is biased.
14730 (Expand_N_Allocator): Add comments for case of an allocator within a
14731 function that returns an anonymous access type designating tasks.
14732 (Expand_N_Allocator): apply discriminant checks for access
14733 discriminants of anonymous access types (AI-402, AI-416)
14735 2006-10-31 Bob Duff <duff@adacore.com>
14736 Robert Dewar <dewar@adacore.com>
14737 Gary Dismukes <dismukes@adacore.com>
14738 Ed Schonberg <schonberg@adacore.com>
14740 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
14742 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
14743 (Expand_N_Assignment_Statement): Call
14744 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
14745 build-in-place function call. Currently, this can happen only for
14746 assignments that come from aggregates.
14747 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
14748 in order to alleviate the upward compatibility introduced by AI-318.
14749 (Expand_N_Extended_Return_Statement): Add support for handling the
14750 return object as a build-in-place result.
14751 (Expand_Non_Function_Return): Implement simple return statements nested
14752 within an extended return.
14753 (Enable_New_Return_Processing): Turn on the new processing of return
14755 (Expand_Non_Function_Return): For a return within an extended return,
14756 don't raise Program_Error, because Sem_Ch6 now gives a warning.
14757 (Expand_N_Extended_Return_Statement): Implement AI-318
14758 (Expand_Simple_Function_Return): Ditto.
14759 (Expand_N_If_Statement): Handle new -gnatwt warning
14760 (Expand_N_Case_Statement): Handle new -gnatwt warning
14761 (Expand_N_Assignment): Handle assignment to the Priority attribute of
14762 a protected object.
14763 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
14764 validity checking of assignments to elementary record components.
14765 (Expand_N_Return_Statement): return Class Wide types on the secondary
14766 stack independantly of their controlled status since with HIE runtimes,
14767 class wide types are not potentially controlled anymore.
14769 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
14772 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
14773 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
14774 it expects a block, procedure, or task. The return statement will get
14775 turned into a block, and Expand_Cleanup_Actions will happen then.
14777 2006-10-31 Robert Dewar <dewar@adacore.com>
14778 Ed Schonberg <schonberg@adacore.com>
14779 Bob Duff <duff@adacore.com>
14780 Gary Dismukes <dismukes@adacore.com>
14782 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
14784 (Expand_Inlined_Call): Tagged types are by-reference types, and
14785 therefore should be replaced by a renaming declaration in the expanded
14786 body, as is done for limited types.
14787 (Expand_Call): If this is a call to a function with dispatching access
14788 result, propagate tag from context.
14789 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
14791 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
14792 build-in-place when the right-hand side of an assignment is a
14793 build-in-place function call.
14794 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
14795 of the explicit dereference of the allocator to the result subtype of
14796 the build-in-place function. This is needed to satisfy type checking
14797 in cases where the caller's return object is created by an allocator for
14798 a class-wide access type and the type named in the allocator is a
14800 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
14801 conversion of the reference to the declared object to the result subtype
14802 of the build-in-place function. This is needed to satisfy type checking
14803 in cases where the declared object has a class-wide type. Also, in the
14804 class-wide case, change the type of the object entity to the specific
14805 result subtype of the function, to avoid passing a class-wide object
14806 without explicit initialization to the back end.
14807 (Register_Interface_DT_Entry): Moved outside the body of
14808 Freeze_Subprogram because this routine is now public; it is called from
14809 Check_Dispatching_Overriding to handle late overriding of abstract
14810 interface primitives.
14811 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
14812 adding an implicit access actual on a call to a build-in-place function.
14813 (Expand_Actuals): Test for an actual parameter that is a call to a
14814 build-in-place function and apply
14815 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
14816 (Is_Build_In_Place_Function): New function to determine whether an
14817 entity is a function whose calls should be handled as build-in-place.
14818 (Is_Build_In_Place_Function_Call): New function to determine whether an
14819 expression is a function call that should handled as build-in-place.
14820 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
14821 calls to build-in-place functions as the initialization of an allocator.
14822 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
14823 handling calls to build-in-place functions in contexts that do not
14824 involve init of a separate object (for example, actuals of subprogram
14826 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
14827 handling calls to build-in-place functions as the initialization of an
14828 object declaration.
14829 (Detect_Infinite_Recursion): Add explicit parameter Process to
14830 instantiation of Traverse_Body to avoid unreferenced warning.
14831 (Check_Overriding_Inherited_Interfaces): Removed.
14832 (Register_Interface_DT_Entry): Code cleanup.
14833 (Register_Predefined_DT_Entry): Code cleanup.
14834 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
14835 inlined statements if within a transient scope.
14836 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
14837 formal parameters with occurrences of actuals in inlined body, establish
14838 visibility on the proper view of the actual's subtype for the body's
14840 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
14841 compatibility mode and we have an imported CPP subprogram because
14842 for now we assume that imported CPP primitives correspond with
14843 objects whose constructor is in the CPP side (and therefore we
14844 don't need to generate code to register them in the dispatch table).
14845 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
14846 aligned selected component.
14847 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
14848 the actual of an in-mode parameter is a type conversion.
14849 (Expand_Actuals): If the call does not come from source and the actual
14850 is potentially misaligned, let gigi handle it rather than rejecting the
14851 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
14852 Class Wide types as returning by reference independantly of their
14853 controlled status since with HIE runtimes class wide types are not
14854 potentially controlled anymore.
14856 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14858 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
14859 references that are private components of the protected object.
14860 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
14861 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
14862 instantiation to deal with warnings.
14863 (Initialize_Protection): If expression for priority is non-static, use
14864 System_Priority as its expected type, in case the expression has not
14867 2006-10-31 Robert Dewar <dewar@adacore.com>
14869 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
14870 initialization of Homonym_Len.
14871 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
14872 names from fully qualified name. Fixes problem of duplicate
14873 external names differing only in the presence of such a block name.
14875 2006-10-31 Thomas Quinot <quinot@adacore.com>
14876 Pablo Oliveira <oliveira@adacore.com>
14878 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
14879 subprogram Ids, even if they are not yet assigned.
14880 (Build_Subprogram_Id): It is now this function that will take care of
14881 calling Assign_Subprogram_Ids if necessary.
14882 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
14883 should be done only once they are assigned.
14884 (Build_From_Any_Function, case of tagged types): Add missing call to
14886 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
14887 type for an RACW type.
14888 (Add_RACW_Features): When processing an RACW declaration for which the
14889 designated type is already frozen, enforce E.2.2(14) rules immediately.
14890 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
14891 special reordering of controlling formals.
14893 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
14894 associated stub type for an RACW type.
14896 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14898 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
14899 fixed-point operations in an integer context, i.e. as operands of a
14900 conversion to an integer type, indicate that result must be rounded.
14902 2006-10-31 Robert Dewar <dewar@adacore.com>
14904 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
14905 cases, pass the encoding method, since it is now required by the run
14908 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
14909 assumption that Str'First = 1.
14910 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
14911 it on to the Value_Wide_Wide_Character call.
14912 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
14913 properly handles a string of the form quote-encoded_wide_char-quote.
14915 * s-wchcnv.adb: Minor reformatting
14917 2006-10-31 Javier Miranda <miranda@adacore.com>
14919 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
14920 run-time membership test to ensure that the constructed object
14921 implements the target abstract interface.
14923 2006-10-31 Robert Dewar <dewar@adacore.com>
14925 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
14926 Machine_Attribute pragma internally to implement the user pragma.
14927 Add processing for pragma Interface so that it is now completely
14928 equivalent to pragma Import.
14930 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
14931 so that it can be applied to all entities, including record components
14932 and enumeration literals.
14933 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
14934 priority ranges are correct, verify compatibility against task
14935 dispatching and locking policies, and if everything is correct an entry
14936 is added to the table containing priority specific dispatching entries
14937 for this compilation unit.
14938 (Delay_Config_Pragma_Analyze): Delay processing
14939 Priority_Specific_Dispatching pragmas because when processing the
14940 pragma we need to access run-time data, such as the range of
14941 System.Any_Priority.
14942 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
14943 Allow pragma Unreferenced as a context item
14944 Add pragma Preelaborable_Initialization
14945 (Analyze_Pragma, case Interface): Interface is extended so that it is
14946 now syntactically and semantically equivalent to Import.
14947 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
14948 insertion characters.
14949 Add handling for Pragma_Wide_Character_Encoding
14950 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
14951 never supercedes a real restriction, and that a real restriction
14952 always supercedes a warning.
14953 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
14956 2006-10-31 Bob Duff <duff@adacore.com>
14957 Ed Schonberg <schonberg@adacore.com>
14958 Robert Dewar <dewar@adacore.com>
14960 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
14961 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
14962 Is_Inherently_Limited_Type, because return-by-reference has no meaning
14964 (Find_Node_To_Be_Wrapped): Use new method of determining the result
14965 type of the function containing a return statement, because the
14966 Return_Type field was removed. We now use the Return_Applies_To field.
14968 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
14969 (Build_Task_Image_Decl): If procedure is not called from an
14970 initialization procedure, indicate that function that builds task name
14971 uses the sec. stack. Otherwise the enclosing initialization procedure
14972 will carry the indication.
14973 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
14974 N_Object_Declaration instead.
14975 (Kill_Dead_Code): New interface to implement -gnatwt warning for
14976 conditional dead code killed, and change implementation accordingly.
14977 (Insert_Actions): Add N_Return_Object_Declaration case.
14978 Correct comment to mention N_Extension_Aggregate node.
14979 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
14980 attempts to save information for global variables which cannot be
14982 (Get_Current_Value_Condition): Handle conditions the other way round
14983 (constant on left). Also handle right operand of AND and AND THEN
14984 (Set_Current_Value_Condition): Corresponding changes
14985 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
14986 (Get_Current_Value_Condition): Handle simple boolean operands
14987 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
14988 (Get_Current_Value_Condition): If the variable reference is within an
14989 if-statement, does not appear in the list of then_statments, and does
14990 not come from source, treat it as being at unknown location.
14991 (Get_Current_Value_Condition): Enhance to allow while statements to be
14992 processed as well as if statements.
14993 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
14995 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
14996 of loop. This is safe now that we fixed Kill_Current_Values.
14997 (OK_To_Do_Constant_Replacement): Check whether current scope is
14998 Standard, before examining outer scopes.
15000 2006-10-31 Vincent Celier <celier@adacore.com>
15002 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
15003 When True, apply VMS treatment to children of packages A, G, I and S.
15006 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
15008 2006-10-31 Robert Dewar <dewar@adacore.com>
15009 Ed Schonberg <schonberg@adacore.com>
15011 * freeze.adb: Add handling of Last_Assignment field
15012 (Warn_Overlay): Supply missing continuation marks in error msgs
15013 (Freeze_Entity): Add check for Preelaborable_Initialization
15015 * g-comlin.adb: Add Warnings (Off) to prevent new warning
15017 * g-expect.adb: Add Warnings (Off) to prevent new warning
15019 * lib-xref.adb: Add handling of Last_Assignment field
15020 (Generate_Reference): Centralize handling of pragma Obsolescent here
15021 (Generate_Reference): Accept an implicit reference generated for a
15022 default in an instance.
15023 (Generate_Reference): Accept a reference for a node that is not in the
15024 main unit, if it is the generic body corresponding to an subprogram
15027 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
15029 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
15031 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
15033 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
15034 use clauses, to avoid messages on packages used to qualify, and also
15035 to avoid messages from obsolescent units.
15036 (Warn_On_Useless_Assignments): Don't generate messages for imported
15037 and exported variables.
15038 (Warn_On_Useless_Assignments): New procedure
15039 (Output_Obsolescent_Entity_Warnings): New procedure
15040 (Check_Code_Statement): New procedure
15042 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
15043 Change name Is_Ada_2005 to Is_Ada_2005_Only
15044 (Last_Assignment): New field for useless assignment warning
15046 2006-10-31 Olivier Hainque <hainque@adacore.com>
15048 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
15049 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
15051 2006-10-31 Bob Duff <duff@adacore.com>
15052 Robert Dewar <dewar@adacore.com>
15053 Ed Schonberg <schonberg@adacore.com>
15055 * g-awk.adb (Default_Session, Current_Session): Compile this file in
15056 Ada 95 mode, because it violates the new rules for AI-318.
15058 * g-awk.ads: Use overloaded subprograms in every case where we used to
15059 have a default of Current_Session. This makes the code closer to be
15060 correct for both Ada 95 and 2005.
15062 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
15063 code, relying on the fact that the compiler generates a warning
15064 instead of an error in -gnatg mode.
15066 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
15067 E_Return_Statement entity kind.
15068 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
15070 * par.adb (P_Interface_Type_Definition): Addition of one formal to
15071 report an error if the reserved word abstract has been previously found.
15072 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
15074 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
15075 parenthesized range attribute usage
15076 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
15078 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
15079 in the syntax for extended_return_statement. This is not in the latest
15080 RM, but the ARG is expected to issue an AI allowing this.
15081 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
15082 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
15083 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
15084 P_Return_Statement): Parse the new syntax for extended_return_statement.
15086 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
15087 Output_End_Missing): Add error-recovery code for the new
15088 extended_return_statement syntax; that is, the new E_Return entry on
15091 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
15092 limited to nonlimited, because otherwise we violate the new Ada 2005
15093 rules about returning limited types in function Create_AST_Handler in
15096 * sem.adb (Analyze): Add cases for new node kinds
15097 N_Extended_Return_Statement and N_Return_Object_Declaration.
15099 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
15100 type is in the same category as type of context before applying check,
15101 to prevent anomalies in instantiations.
15102 (Resolve_Aggregate): Remove test for limited components in aggregates.
15103 It's unnecessary in Ada 95, because if it has limited components, then
15104 it must be limited. It's wrong in Ada 2005, because limited aggregates
15106 (Resolve_Record_Aggregate): Move check for limited types later, because
15107 OK_For_Limited_Init requires its argument to have been resolved.
15108 (Get_Value): When copying the component default expression for a
15109 defaulted association in an aggregate, use the sloc of the aggregate
15110 and not that of the original expression, to prevent spurious
15111 elaboration errors, when the expression includes function calls.
15112 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
15113 were missing. We also didn't handle qualified expressions. Now also
15114 allow function calls. Use new common routine OK_For_Limited_Init.
15115 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
15116 with space can upper case letter).
15118 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
15119 Has_Static_Discriminants flag
15120 (Record_Type_Declaration): Diagnose an attempt to declare an interface
15121 type with discriminants.
15122 (Process_Range_Expr_In_Decl): Do validity checks on range
15123 (Build_Discriminant_Constraints): Use updated form of
15124 Denotes_Discriminant.
15125 (Process_Subtype): If the subtype is a private subtype whose full view
15126 is a concurrent subtype, introduce an itype reference to prevent scope
15128 (Build_Derived_Record_Type, Collect_Interface_Primitives,
15129 Record_Type_Declaration): The functionality of the subprograms
15130 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
15131 is now performed by a single routine.
15132 (Build_Derived_Record_Type): If the type definition includes an explicit
15133 indication of limitedness, then the type must be marked as limited here
15134 to ensure that any access discriminants will not be treated as having
15135 a local anonymous access type.
15136 (Check_Abstract_Overriding): Issue a detailed error message when an
15137 abstract subprogram was not overridden due to incorrect mode of its
15139 (Analyze_Private_Extension_Declaration): Add support for the analysis of
15140 synchronized private extension declarations. Verify that the ancestor is
15141 a limited or synchronized interface or in the generic case, the ancestor
15142 is a tagged limited type or synchronized interface and all progenitors
15143 are either limited or synchronized interfaces.
15144 Derived_Type_Declaration): Check for presence of private extension when
15145 dealing with synchronized formal derived types.
15146 Process_Full_View): Enchance the check done on the usage of "limited" by
15147 testing whether the private view is synchronized.
15148 Verify that a synchronized private view is completed by a protected or
15150 (OK_For_Limited_Init_In_05): New function.
15151 (Analyze_Object_Declaration): Move check for limited types later,
15152 because OK_For_Limited_Init requires its argument to have been resolved.
15153 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15154 in order to alleviate the upward compatibility introduced by AI-318.
15155 (Constrain_Corresponding_Record): If the constraint is for a component
15156 subtype, mark the itype as frozen, to avoid out-of-scope references to
15157 discriminants in the back-end.
15158 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
15159 this subprogram against wrong sources.
15160 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
15161 discriminant of limited type completed with a protected type, when the
15162 discriminant is used to constrain a private component of the type, and
15163 expansion is disabled.
15164 (Find_Type_Of_Object): Do not treat a return subtype that is an
15165 anonymous subtype as a local_anonymous_type, because its accessibility
15166 level is the return type of the enclosing function.
15167 (Check_Initialization): In -gnatg mode, turn the error "cannot
15168 initialize entities of limited type" into a warning.
15169 (OK_For_Limited_Init): Return true for generated nodes, since it
15170 sometimes violates the legality rules.
15171 (Make_Incomplete_Declaration): If the type for which an incomplete
15172 declaration is created happens to be the currently visible entity,
15173 preserve the homonym chain when removing it from visibility.
15174 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
15175 inherited subprograms.
15176 (Access_Definition): If this is an access to function that is the return
15177 type of an access_to_function definition, context is a type declaration
15178 and the scope of the anonymous type is the current one.
15179 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
15180 incomplete subtype to the set of private dependents of the original
15182 (Constrain_Discriminated_Type): Emit an error message whenever an
15183 incomplete subtype is being constrained.
15184 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
15185 corresponding subtype of the full view of the original incomplete type.
15186 (Check_Incomplete): Properly detect invalid usage of incomplete types
15189 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15191 * g-catiio.ads, g-catiio.adb (Value): New function.
15192 Given an input String, try and parse a valid Time value.
15194 2006-10-31 Vincent Celier <celier@adacore.com>
15196 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
15197 Integer_Address arithmetic, as in Set_Valid.
15199 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15200 Robert Dewar <dewar@adacore.com>
15202 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
15203 handling executable extension manually and duplicating code.
15205 * make.adb: Implement new -S switch
15206 (Gnatmake): Use new function Osint.Executable_Name instead
15207 of handling executable extension manually.
15209 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
15210 is specified, the executable name ends with this suffix.
15211 Take advantage of Osint.Executable_Name instead of duplicating code.
15213 * switch-m.adb: Recognize new gnatmake -S switch
15215 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
15217 (Get_Target_Parameters): Set Executable_Extension_On_Target if
15220 * makeusg.adb: Add line for gnatmake -S switch
15222 2006-10-31 Vincent Celier <celier@adacore.com>
15224 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
15225 call it with -static-libgcc, as there are some platforms, such as
15226 Darwin, where one of these two switches is compulsory to link.
15228 2006-10-31 Vincent Celier <celier@adacore.com>
15230 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
15231 instead of ADA_PROJECT_PATH, for the project path.
15232 (Gnatls): When displaying the project path directories, use host dir
15235 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
15236 names in the project path, as absolute paths may correspond to
15237 multi-valued VMS logical names.
15239 2006-10-31 Vincent Celier <celier@adacore.com>
15241 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
15242 absolute path name.
15243 (Locate_Regular_File): Ditto
15244 (Change_Dir): Remove, no longer used
15245 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
15246 on Windows. Get it calling Get_Current_Dir.
15247 (OpenVMS): Remove imported boolean, no longer needed.
15248 (Normalize_Pathname)[VMS]: Do not resolve directory names.
15249 (Pid_To_Integer): New function to convert a Process_Id to Integer
15251 2006-10-31 Thomas Quinot <quinot@adacore.com>
15253 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
15254 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
15256 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
15259 2006-10-31 Robert Dewar <dewar@adacore.com>
15261 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
15262 initial letter o as a zero.
15264 2006-10-31 Robert Dewar <dewar@adacore.com>
15266 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
15268 2006-10-31 Robert Dewar <dewar@adacore.com>
15270 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
15272 (Layout_Variant_Record): Retrieve the discriminants from the entity
15273 rather than from the type definition, because in the case of a full
15274 type for a private type we need to take the discriminants from the
15276 (Layout_Component_List): When applying the Max operator to variants with
15277 a nonstatic size, check whether either operand is static and scale that
15278 operand from bits to storage units before applying Max.
15279 (Layout_Type): In VMS, if a C-convention access type has no explicit
15280 size clause (and does not inherit one in the case of a derived type),
15281 then the size is reset to 32 from 64.
15283 2006-10-31 Vincent Celier <celier@adacore.com>
15285 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
15286 its file has already been loaded, according to the unit being loaded,
15287 not to the current value of Multiple_Unit_Index.
15289 2006-10-31 Thomas Quinot <quinot@adacore.com>
15290 Eric Botcazou <ebotcazou@adacore.com>
15291 Arnaud Charlet <charlet@adacore.com>
15293 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
15294 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
15296 (a-except.o): Pass it to the compiler.
15297 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
15298 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
15299 a-calend-mingw.adb version.
15301 * Makefile.rtl: Added s-dsaser.
15302 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
15303 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
15304 Ada.Dispatching.Round_Robin.
15305 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
15307 * Make-lang.in: Remove all references to gt-ada-decl.h.
15308 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
15310 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
15311 Update dependencies.
15313 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
15315 2006-10-31 Vincent Celier <celier@adacore.com>
15317 * mlib-utl.adb (Initialized): Remove, no longer used
15318 (Initialize): Remove, no longer used
15319 (Ar): If Ar_Exec is null, get the location of the archive builder and,
15320 if there is one, the archive indexer. Fail if the archive builder cannot
15322 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
15325 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15327 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
15328 Process_Body_Clauses): If the context of a body includes a use clause
15329 for P.Q then a with_clause for P in the same body is not redundant,
15330 even if the spec also has a with_clause on P.
15331 Add missing continuation mark to error msg
15332 (Build_Limited_Views): A limited view of a type is tagged if its
15333 declaration includes a record extension.
15334 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
15335 node, even if the subunit has errors. This avoids malfunction by
15336 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
15337 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
15338 generation of obsolescent messages for with statements (cannot do
15339 this too early, or we cannot implement avoiding the messages in the
15340 case of obsolescent units withing obsolescent units).
15341 (Install_Siblings): If the with_clause is on a remote descendant of
15342 an ancestor of the current compilation unit, find whether there is
15343 a sibling child unit that is immediately visible.
15344 (Remove_Private_With_Clauses): New procedure, invoked after completing
15345 the analysis of the private part of a nested package, to remove from
15346 visibility the private with_clauses of the enclosing package
15348 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
15349 now centralized in Generate_Reference.
15350 (Install_Limited_Context_Clauses): Remove superfluous error
15351 message associated with unlimited view visible through use
15352 and renamings. In addition, at the point in which the error
15353 is reported, we add the backslash to the text of the error
15354 to ensure that it is reported as a single error message.
15355 Use new // insertion for some continuation messages
15356 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
15357 to create implicit with_clause for parent unit mentioned in original
15358 limited_with_clause.
15359 (Install_Limited_With_Unit): Set entity of parent identifiers if the
15360 unit is a child unit. For ASIS queries.
15361 (Analyze_Subunit): If the subunit appears within a child unit, make all
15362 ancestor child units directly visible again.
15364 2006-10-31 Robert Dewar <dewar@adacore.com>
15366 * par-ch10.adb (P_Context_Clause): Minor error message fix
15368 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15369 Javier Miranda <miranda@adacore.com>
15371 * par-ch12.adb: Grammar update and cleanup.
15372 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
15373 support for synchronized derived type definitions.
15374 Add the new actual Abstract_Present to every call to
15375 P_Interface_Type_Definition.
15376 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
15377 a formal object declaration with an access definition or a subtype mark
15378 with a null exclusion.
15379 (P_Generic_Association): Handle association with box, and others_choice
15380 with box, to support Ada 2005 partially parametrized formal packages.
15382 2006-10-31 Robert Dewar <dewar@adacore.com>
15383 Javier Miranda <miranda@adacore.com>
15385 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
15386 (P_Type_Declaration): Remove barrier against the reserved word "limited"
15387 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
15388 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
15389 private extensions.
15390 (P_Type_Declaration): Add the new actual Abstract_Present to every call
15391 to P_Interface_Type_Definition.
15392 (P_Interface_Type_Definition): Addition of one formal to report an error
15393 if the reserved word abstract has been previously found.
15394 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
15395 object renaming declaration with an access definition or subtype mark
15396 with a possible null exclusion.
15398 * par-ch9.adb: Minor error msg fix
15400 * par-load.adb: Add missing continuation mark to error msg
15402 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
15404 2006-10-31 Vincent Celier <celier@adacore.com>
15406 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
15407 unknown attribute in unknown package or in package that does not need
15409 (Parse_Package_Declaration): Do not issue warning for unknown package in
15412 2006-10-31 Vincent Celier <celier@adacore.com>
15414 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
15415 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
15418 2006-10-31 Vincent Celier <celier@adacore.com>
15420 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
15421 on VMS, change "__" to '.' before checking the name.
15422 (Record_Ada_Source): Always add the source file name in the list of
15423 of sources, even if it is not the first time, as it is for another
15425 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
15426 dot, instead of replacing only the first '_'.
15428 * prj-part.adb (Parse): Convert project file path to canonical form
15430 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
15431 extended, the project id of the project extending it is recorded in its
15432 data, even when it has already been processed as an imported project.
15434 2006-10-31 Robert Dewar <dewar@adacore.com>
15436 * repinfo.adb (List_Entities): Don't list entities from renaming
15439 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15440 Robert Dewar <dewar@adacore.com>
15442 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
15443 only a restriction warning is active for the given restriction. This is
15444 desirable because we do not want to modify code in the case where only
15446 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
15447 causes overriding of real restrictions.
15448 Take advantage of new No_Restrictions constant.
15450 * raise.h: (__gnat_set_globals): Change profile.
15452 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15454 * rtsfind.adb: Remove s-polint from comment as it exists no more.
15457 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
15458 Move all the entities in obsolete package System.PolyORB_Interface to
15459 System.Partition_Interface.
15460 (RE_Storage_Size): New function in System.Tasking.
15461 (RE_Get_Ceiling): New entity.
15462 (RE_Set_Ceiling): New entity.
15463 (RO_PE_Get_Ceiling): New entity.
15464 (RO_RE_Set_Ceiling): New entity.
15465 (Inherit_CPP_DT): New entity
15467 2006-10-31 Robert Dewar <dewar@adacore.com>
15469 * scng.adb (Scan, case of numeric literal): Better msg for identifier
15470 starting with a digit.
15472 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15473 Thomas Quinot <quinot@adacore.com>
15474 Javier Miranda <miranda@adacore.com>
15475 Gary Dismukes <dismukes@adacore.com>
15477 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
15478 properly an attempt to apply Unchecked_Access to a protected operation.
15479 (OK_Self_Reference): New subprogram to check the legality of an access
15480 attribute whose prefix is the type of an enclosing aggregate.
15481 Generalizes previous mechanism to handle attribute references nested
15482 arbitrarily deep within the aggregate.
15483 (Analyze_Access_Attribute): An access attribute whose prefix is a type
15484 can appear in an aggregate if this is a default-initialized aggregate
15485 for a self-referential type.
15486 (Resolve_Attribute, case Access): Ditto.
15487 Add support for new implementation defined attribute Stub_Type.
15488 (Eval_Attribute, case Attribute_Stub_Type): New case.
15489 (Analyze_Attribute, case Attribute_Stub_Type): New case.
15490 (Stream_Attribute_Available): Implement using new subprogram from
15491 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
15492 Has_Specified_Stream_Attribute flag.
15493 Disallow Storage_Size and Storage_Pool for access to subprogram
15494 (Resolve_Attribute, case 'Access et al): Take into account anonymous
15495 access types of return subtypes in extended return statements. Remove
15496 accessibility checks on anonymous access types when Unchecked_Access is
15498 (Analyze_Attribute): Add support for the use of 'Class to convert
15499 a class-wide interface to a tagged type.
15500 Add support for the attribute Priority.
15501 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
15502 whether the designated type is discriminated with a constrained partial
15503 view and require static matching in that case.
15504 Add local variable Des_Btyp. The Designated_Type
15505 of an access to incomplete subtype is either its non-limited view if
15506 coming from a limited with or its etype if regular incomplete subtype.
15508 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
15509 Fix predicate to identify and allow cases of (expander-generated)
15510 references to tag of designated object of a RACW.
15511 (Validate_Static_Object_Name): In Ada 2005, a formal object is
15512 non-static, and therefore cannot appear as a primary in a preelaborable
15514 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
15515 Has_Read_Write_Attributes.
15516 (Has_Read_Write_Attributes): Reimplement in termes of
15517 Has_Stream_Attribute_Definition.
15518 (Missing_Read_Write_Attributes): When checking component types in a
15519 record, unconditionally call Missing_Read_Write_Attributes recursively
15520 (remove guard checking for Is_Record_Type / Is_Access_Type).
15522 2006-10-31 Robert Dewar <dewar@adacore.com>
15524 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
15525 useless assignments here and conditionalize it on absence of exception
15527 (Analyze_Exception_Handlers): Small code reorganization of error
15528 detection code, for new handling of formal packages.
15530 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15531 Hristian Kirtchev <kirtchev@adacore.com>
15533 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
15534 that has been constant-folded, preserve information of original tree,
15536 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
15537 generated private extension declaration if the formal derived type is
15538 synchronized. Carry synchronized present over to the generated private
15540 (Validate_Derived_Type_Instance): Ensure that the actual of a
15541 synchronized formal derived type is a synchronized tagged type.
15542 (Instantiate_Formal_Package): When creating the instantiation used to
15543 validate the actual package of a formal declared without a box, check
15544 whether the formal itself depends on a prior actual.
15545 (Instantiate_Formal_Subprogram): Create new entities for the defining
15546 identifiers of the formals in the renaming declaration, for ASIS use.
15547 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
15548 a renaming declaration or a subtype declaration for an actual in an
15549 instance, capture location information of declaration in generic, for
15551 (Instantiate_Formal_Package): Add comments on needed additional tests.
15552 AI-317 (partial parametrization) is fully implemented.
15553 (Validate_Private_Type_Instance): Add check for actual which
15554 must have preelaborable initialization
15555 Use new // insertion for some continuation messages
15556 (Analyze_Formal_Object_Declaration): Change usage of Expression to
15557 Default_Expression. Add type retrieval when the declaration has an
15558 access definition. Update premature usage of incomplete type check.
15559 (Check_Access_Definition): New subsidiary routine. Check whether the
15560 current compilation version is Ada 05 and the supplied node has an
15562 (Instantiate object): Alphabetize local variables. Handle the creation
15563 of new renaming declarations with respect to the kind of definition
15564 used - either an access definition or a subtype mark. Guard against
15565 unnecessary error message in the context of anonymous access types after
15566 they have been resolved. Add check for required null exclusion in a
15567 formal object declaration.
15568 (Switch_View): A private subtype of a non-private type needs to be
15569 switched (the base type can have been switched without its private
15570 dependents because of the last branch of Check_Private_View.
15571 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
15573 (Instantiate_Type): Emit an error message whenever a class-wide type of
15574 a tagged incomplete type is used as a generic actual.
15575 (Find_Actual_Type): Extend routine to handle a component type in a child
15576 unit that is imported from a formal package in a parent.
15577 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
15578 agree on constrainedness, rather than checking against ultimate ancestor
15579 (Instantiate_Subprogram_Body): Create a cross-reference link to the
15580 generic body, for navigation purposes.
15582 2006-10-31 Robert Dewar <dewar@adacore.com>
15583 Thomas Quinot <quinot@adacore.com>
15585 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
15587 (New_Stream_Subprogram): When processing an attribute definition clause
15588 for a stream-oriented subprogram, record an entity node occurring at
15589 the point of clause to use for checking the visibility of the clause,
15590 as defined by 8.3(23) as amended by AI-195.
15591 (New_Stream_Subprogram): New procedure, factoring behaviour from both
15592 New_Stream_Function and New_Stream_Procedure.
15593 (New_Stream_Function, New_Stream_Procedure): Removed.
15594 (Analyze_Attribute_Definition_Clause, case Address): Check new
15595 Alignment_Check check
15597 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15598 Javier Miranda <miranda@adacore.com>
15599 Robert Dewar <dewar@adacore.com>
15601 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
15602 generate the same errors compiling under -gnatc.
15603 (Try_Object_Operation): If no candidate interpretation succeeds, but
15604 there is at least one primitive operation with the right name, report
15605 error in call rather than on a malformed selected component.
15606 (Analyze_Selected_Component): If the prefix is an incomplete type from
15607 a limited view, and the full view is available, use the full view to
15608 determine whether this is a prefixed call to a primitive operation.
15609 (Operator_Check): Verify that a candidate interpretation is a binary
15610 operation before checking the type of its second formal.
15611 (Analyze_Call): Add additional warnings for function call contexts not
15613 (Analyze_Allocator): Move the check for "initialization not allowed for
15614 limited types" after analyzing the expression. This is necessary,
15615 because OK_For_Limited_Init looks at the structure of the expression.
15616 Before analysis, we don't necessarily know what sort of expression it
15617 is. For example, we don't know whether F(X) is a function call or an
15618 indexed component; the former is legal in Ada 2005; the latter is not.
15619 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
15620 were missing. We also didn't handle qualified expressions. Now also
15621 allow function calls. Use new common routine OK_For_Limited_Init.
15622 (Analyze_Type_Conversion): Do not perform some legality checks in an
15623 instance, because the error message will be redundant or spurious.
15624 (Analyze_Overloaded_Selected_Component): Do not do style check when
15625 setting an entity, since we do not know it is the right entity yet.
15626 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
15627 (Analyze_Overloaded_Selected_Component): Same change
15628 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
15629 since regular incomplete subtypes are transformed into corresponding
15630 subtypes of their full views.
15631 (Complete_Object_Operation): Treat name of transformed subprogram call
15632 as coming from source, for browsing purposes.
15633 (Try_Primitive_Operation): If formal is an access parameter, compare
15634 with base type of object to determine whether it is a primitive
15636 (Operator_Check): If no interpretation of the operator matches, check
15637 whether a use clause on any candidate might make the operation legal.
15638 (Try_Class_Wide_Operation): Check whether the first parameter is an
15639 access type whose designated type is class-wide.
15641 2006-10-31 Robert Dewar <dewar@adacore.com>
15642 Ed Schonberg <schonberg@adacore.com>
15643 Gary Dismukes <dismukes@adacore.com>
15645 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
15646 warn on infinite loops.
15647 Add \\ to some continuation messages
15648 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
15649 (Process_Bounds): If the bounds are integer literals that result from
15650 constant-folding, and they carry a user-defined type, preserve that type
15651 rather than treating this as an integer range.
15652 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
15653 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
15654 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
15655 left hand side of assignment.
15656 (Analyze_Assignment): Add suport to manage assigments to the attribute
15657 priority of a protected object.
15658 (Check_Possible_Current_Value_Condition): Allow fully qualified names
15659 not just identifiers.
15660 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
15661 or AND THEN for possible tracking.
15662 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
15663 case of while loops so we can track values in the loop body.
15665 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15666 Hristian Kirtchev <kirtchev@adacore.com>
15667 Bob Duff <duff@adacore.com>
15669 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
15670 procedure cannot be a protected operation (it is a basic_declaration,
15671 not a subprogram_declaration).
15672 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
15673 Subp. Add logic for entry processing.
15674 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
15675 Determine whether an entry or subprogram of a protected or task type
15676 override an inherited primitive of an implemented interface.
15677 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
15678 Update the actual used in calls to Check_Overriding_Indicator.
15679 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
15680 generate the proper reference to the parent unit, for cross-reference.
15681 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
15683 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15684 (Add_Extra_Formal): Revise procedure to allow passing in associated
15685 entity, scope, and name suffix, and handle setting of the new
15686 Extra_Formals field.
15687 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
15688 pass new parameters. Add support for adding the new extra access formal
15689 for functions whose calls are treated as build-in-place.
15690 (Analyze_A_Return_Statement): Correct casing in error message.
15691 Move Pop_Scope to after Analyze_Function_Return, because an extended
15692 return statement really is a full-fledged scope. Otherwise, visibility
15693 doesn't work right. Correct use of "\" for continuation messages.
15694 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
15695 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
15696 the node doesn't get properly marked as analyzed.
15697 (Analyze_Subprogram_Body): If subprogram is a function that returns
15698 an anonymous access type that denotes a task, build a Master Entity
15700 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
15701 proper usage of null exclusion in a result definition.
15702 (Process_Formals): Code cleanup and new error message.
15703 (Process_Formals): Detect incorrect application of null exclusion to
15705 (Conforming_Types): Handle conformance between [sub]types and itypes
15706 generated for entities that have null exclusions applied to them.
15707 (Maybe_Primitive_Operation): Add an additional type retrieval when the
15708 base type is an access subtype. This case arrises with null exclusions.
15709 (New_Overloaded_Entity): Do not remove the overriden entity from the
15710 homonym chain if it corresponds with an abstract interface primitive.
15711 (Process_Formals): Replace membership test agains Incomplete_Kind with a
15712 call to the synthesized predicate Is_Incomplete_Type.
15713 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
15715 (Analyze_Subprogram_Declaration): Check that abstract interface
15716 primitives are abstract or null.
15717 (Analyze_Subprogram_Specification): Remove previous check for abstract
15718 interfaces because it was not complete.
15719 (Has_Interface_Formals): Removed.
15721 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15722 Javier Miranda <miranda@adacore.com>
15724 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
15725 of Analyze_Package_Body, to create Itype references for anonymous
15726 access types created in the package declaration, whose designated types
15727 may have only a limited view.
15728 (Analyze_Package_Specification): For the private part of a nested
15729 package, install private_with_clauses of enclosing compilation unit if
15730 we are in its visible part.
15731 (Declare_Inherited_Private_Subprograms): Complete barrier
15732 to ensure that the primitive operation has an alias to some parent
15733 primitive. This is now required because, after the changes done for the
15734 implementation of abstract interfaces, the contents of the list of
15735 primitives has entities whose alias attribute references entities of
15736 such list of primitives.
15737 (Analyze_Package_Specification): Simplify code that handles parent units
15738 of instances and formal packages.
15739 (Uninstall_Declarations): Check the convention consistency among
15740 primitive overriding operations of a tagged record type.
15742 2006-10-31 Robert Dewar <dewar@adacore.com>
15743 Hristian Kirtchev <kirtchev@adacore.com>
15744 Javier Miranda <miranda@adacore.com>
15745 Ed Schonberg <schonberg@adacore.com>
15747 * sem_ch8.adb: Minor error msg rewording
15748 (Undefined): When checking for misspellings, invert arguments (to get
15749 expected and found set right)
15750 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
15751 (Analyze_Generic_Renaming): Same fix
15752 (Use_One_Package): Do not take into account the internal entities of
15753 abstract interfaces during the analysis of entities that are marked
15754 as potentially use-visible.
15755 (Find_Type): Handle the case of an attribute reference for
15756 implementation defined attribute Stub_Type (simply let the analysis of
15757 the attribute reference rewrite it).
15758 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
15759 type that appears in a Use_Type clause.
15760 (Analyze_Object_Renaming): Add support for renaming of the Priority
15762 (Find_Type): In Ada 2005, a task type can be used within its own body,
15763 when it appears in an access definition.
15764 (Analyze_Object_Renaming): Remove warning on null_exclusion.
15765 (Analyze_Object_Renaming): Introduce checks for required null exclusion
15766 in a formal object declaration or in a subtype declaration.
15767 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
15768 (Check_Null_Exclusion): New local routine to
15769 Analyze_Subprogram_Renaming. Check whether the formals and return
15770 profile of a renamed subprogram have required null exclusions when
15771 their counterparts of the renaming already impose them.
15772 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
15773 Determine whether an entity is inside a generic scope.
15774 (In_Open_Scope): First pass of documentation update.
15775 (Find_Expanded_Name): Add support for shadow entities associated with
15776 limited withed packages. This is required to handle nested packages.
15777 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
15778 that makes a renaming of a limited withed package illegal.
15780 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15781 Ed Schonberg <schonberg@adacore.com>
15783 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
15784 Check_Overriding_Indicator.
15785 (Analyze_Task_Definition): Ditto.
15786 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
15787 (Check_Overriding_Indicator): To find overridden interface operation,
15788 examine only homonyms that have an explicit subprogram declaration, not
15789 inherited operations created by an unrelated type derivation.
15790 (Check_Overriding_Indicator): When checking for the presence of "null"
15791 in a procedure, ensure that the queried node is a procedure
15793 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
15794 type when the formal is an access to variable.
15795 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
15796 (Analyze_Task_Type): Same addition
15797 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
15798 provide navigation capabilities for entries.
15800 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15801 Ed Schonberg <schonberg@adacore.com>
15802 Javier Miranda <miranda@adacore.com>
15803 Gary Dismukes <dismukes@adacore.com>
15805 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
15806 inherited from an interface ancestor by another interface in the
15807 context of an instance as 'late'.
15808 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
15809 of a call to a function that dispatches on access result.
15810 (Check_Dispatching_Operation): In case of late overriding of a primitive
15811 that covers abstract interface subprograms we register it in all the
15812 secondary dispatch tables associated with abstract interfaces.
15813 (Check_Dispatching_Call): Add check that a dispatching call is not made
15814 to a function with a controlling result of a limited type. This is a
15815 current implementation restriction.
15816 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
15817 (Check_Dispatching_Operation): Do no emit a warning if the controlling
15818 argument is an interface type that is a generic formal.
15819 (Is_Interface_Subprogram): Removed.
15820 (Check_Dispatching_Operation): If the subprogram is not a dispatching
15821 operation, check the formals to handle the case in which it is
15822 associated with an abstract interface type.
15824 2006-10-31 Robert Dewar <dewar@adacore.com>
15825 Ed Schonberg <schonberg@adacore.com>
15827 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
15828 Add new calls to this procedure during traversal
15829 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
15830 another unit if expansion is disabled.
15832 2006-10-31 Robert Dewar <dewar@adacore.com>
15834 * sem_eval.adb (Compile_Time_Compare): Make use of information from
15835 Current_Value in the conditional case, to evaluate additional
15836 comparisons at compile time.
15838 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15839 Hristian Kirtchev <kirtchev@adacore.com>
15840 Javier Miranda <miranda@adacore.com>
15842 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
15843 subprogram type to provide better diagnostics in case of ambiguity.
15844 (Covers): Handle coverage of formal and actual anonymous access types in
15845 the context of generic instantiation.
15846 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
15847 abstract interface types; this is required to handle concurrent types
15848 with discriminants and abstract interface types.
15849 (Covers): Include type coverage of both regular incomplete subtypes and
15850 incomplete subtypes of incomplete type visibles through a limited with
15853 2006-10-31 Robert Dewar <dewar@adacore.com>
15854 Hristian Kirtchev <kirtchev@adacore.com>
15855 Ed Schonberg <schonberg@adacore.com>
15857 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
15858 messages for entities in packages which are not used.
15859 (Collect_Synchronized_Interfaces): New procedure.
15860 (Overrides_Synchronized_Primitive): New function.
15861 (Denotes_Discriminant): Extend predicate to apply to task types.
15862 Add missing continuation marks in error msgs
15863 (Unqualify): New function for removing zero or more levels of
15864 qualification from an expression. There are numerous places where this
15865 ought to be used, but we currently only deal properly with zero or one
15867 (In_Instance); The analysis of the actuals in the instantiation of a
15868 child unit is not within an instantiation, even though the parent
15869 instance is on the scope stack.
15870 (Safe_To_Capture_Value): Exclude the case of variables that are
15872 (Check_Obsolescent): Removed
15873 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
15874 is an aliased view, even when rewritten as a reference to the target
15875 object in an assignment.
15876 (Get_Subprogram_Entity): New function
15877 (Known_To_Be_Assigned): New function
15878 (Type_Access_Level): Compute properly the access level of a return
15879 subtype that is an anonymous access type.
15880 (Explain_Limited_Type): Correct use of "\" for continuation messages.
15881 (Is_Transfer): The new extended_return_statement causes a transfer of
15883 (Has_Preelaborable_Initialization): New function
15884 (Has_Null_Exclusion): New function. Given a node N, determine whether it
15885 has a null exclusion depending on its Nkind.
15886 Change Is_Lvalue to May_Be_Lvalue
15887 (May_Be_Lvalue): Extensive additional code to deal with subprogram
15888 arguments (IN parameters are not Lvalues, IN OUT parameters are).
15889 (Safe_To_Capture_Value): Extend functionality so it can be used for
15890 the current value condition case.
15891 (Has_Compatible_Alignment): New function
15892 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
15893 objects to handle the Ada 2005 case, where aliasedness no longer implies
15894 that the object is constrained. In particular, for dereferenced names,
15895 the designated object must be assumed to be unconstrained.
15896 (Kill_Current_Values): Properly deal with the case where we encounter
15897 a loop in the scope chain.
15898 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
15900 (Compile_Time_Constraint_Error): Improve error message in error case
15902 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
15903 associated with entities of abstract interface primitives.
15904 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
15906 2006-10-31 Robert Dewar <dewar@adacore.com>
15908 * s-osinte-tru64.adb:
15909 Mark Asm statements Volatile to prevent warnings (seems a
15910 reasonable change anyway)
15913 * s-mastop-irix.adb: Add Volatile to Asm statements
15914 Suppresses warning, and seems appropriate in any case
15916 * s-osinte-vms.adb: Add Volatile to Asm statement
15918 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
15920 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
15922 Add call to Check_Code_Statement
15924 2006-10-31 Robert Dewar <dewar@adacore.com>
15925 Ed Schonberg <schonberg@adacore.com>
15926 Bob Duff <duff@adacore.com>
15928 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
15929 Synchronized_Present): Add Formal_Derived_Type_Definition and
15930 Private_Extension_Declaration to the list of assertions.
15931 (Is_Entry_Barrier_Function): New flag
15932 (Has_Self_Reference): New flag on aggregates, to indicate that they
15933 contain a reference to the enclosing type, inserted through a default
15935 (Next_Rep_Item): Move from Node4 to Node5.
15936 (Entity): Add this field for N_Attribute_Definition_Clause.
15937 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
15938 (N_Return_Object_Declaration): Remove this node kind. We now use
15939 N_Object_Declaration instead.
15940 (Actual_Designated_Subtype): Move to a different place to make room in
15941 N_Extended_Return_Statement.
15942 (Procedure_To_Call): Move to a different place to make room in
15943 N_Extended_Return_Statement.
15944 (Return_Type): Removed this field to make room in return statements
15946 (Return_Statement_Entity): New field in return statements, in part to
15947 replace Return_Type, and in part to support the fact that return
15948 statements are now pushed on the scope stack during semantic analysis.
15949 (Return_Object_Declarations): New field to support extended return
15951 (N_Extended_Return_Statement): New node for extended_return_statement
15953 (N_Return_Object_Declaration): New node for part of
15954 extended_return_statement nonterminal. Needed because all the necessary
15955 fields won't fit in N_Extended_Return_Statement.
15956 Generic_associations now carry the Box_Present flag, to indicate a
15957 default for an actual in a partially parametrized formal package.
15959 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
15960 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
15961 and for the new predefined dispatching policies: EDF_Across_Priorities,
15962 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
15963 Introduce new name Stub_Type for implementation defined attribute.
15964 Add pragma Preelaborable_Initialization
15965 Add entry for Priority attribute.
15966 Add Pragma_Wide_Character_Encoding
15967 (Get_Convention_Name): Given a convention id, this function returns the
15968 corresponding name id from the names table.
15970 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15971 Robert Dewar <dewar@adacore.com>
15972 Bob Duff <duff@adacore.com>
15974 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
15975 print null exclusion twice in the case of an access definition,
15976 Implement new -gnatL switch
15977 Remove N_Return_Object_Declaration. We now use
15978 N_Object_Declaration instead. Implement the case for
15979 N_Extended_Return_Statement. Alphabetize the cases.
15980 Add cases for new nodes N_Extended_Return_Statement and
15981 N_Return_Object_Declaration. The code is not yet written.
15982 Update the output for N_Formal_Object_Declaration
15983 and N_Object_Renaming_Declaration.
15984 (Write_Itype): Account for the case of a modular integer subtype whose
15985 base type is private.
15987 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15989 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
15990 Remove elaboration code, now done in the binder.
15992 * s-rident.ads: Make this unit Preelaborate.
15993 (No_Restrictions): New constant used to clean up code and follow
15994 preelaborate constraints.
15997 Add System.Restrictions dependence, referenced directly from the
15998 binder generated file.
16000 2006-10-31 Gary Dismukes <dismukes@adacore.com>
16002 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
16003 True when AAMP extended floating-point is in use (48-bit). Change type
16004 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
16005 the two byte array types on AFloat. Change type of IV_Ilf overlay
16006 variable from Byte8 to ByteLF. Add appropriate initializations of
16007 floating-point overlays for AAMP cases.
16009 2006-10-31 Javier Miranda <miranda@adacore.com>
16011 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
16012 (Get_Ceiling): New subprogram that returns
16013 the ceiling priority of the protected object.
16014 (Set_Ceiling): New subprogram that sets the new ceiling priority of
16015 the protected object.
16017 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
16019 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
16021 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16023 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
16024 requeuing to the same protected object to give higher priority tasks
16025 the opportunity to execute.
16027 2006-10-31 Robert Dewar <dewar@adacore.com>
16029 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
16030 add more precise check for the character sequence that follows '[' to
16031 avoid possible confusion in case if '[' is the last character of a
16033 (Scan_Wide): Always allow brackets encoding
16035 2006-10-31 Olivier Hainque <hainque@adacore.com>
16037 * s-stchop.ads: make this unit preelaborate. This is desirable in
16038 general and made mandatory by the use of this unit by s-taprop which
16039 is itself preelaborate.
16041 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
16042 Td_Events component.
16044 2006-10-31 Vincent Celier <celier@adacore.com>
16046 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
16049 2006-10-31 Vincent Celier <celier@adacore.com>
16051 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
16053 2006-10-31 Vincent Celier <celier@adacore.com>
16055 * makegpr.adb (Check_Compilation_Needed): Take into account path names
16057 (Check_Compilation_Needed): When checking a C or C++ source, do not
16058 resolve symbolic links.
16059 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
16060 When not in verbose mode and Ellipse is True, display "..." for the
16061 first argument with Display set to False.
16062 (Build_Global_Archive): Always set Display True for the first object
16063 file. Call Display_Command with Ellipse set to True.
16065 2006-10-31 Matt Heaney <heaney@adacore.com>
16067 * a-crbtgo.ads: Commented each subprogram
16069 * a-crbtgo.adb: Added reference to book from which algorithms were
16072 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
16073 indicate which child.
16074 (Generic_Conditional_Insert): changed parameter name from "Success" to
16076 (Generic_Unconditional_Insert_With_Hint): improved algorithm
16078 * a-coorse.adb (Replace_Element): changed parameter name in call to
16079 conditional insert operation.
16081 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
16083 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
16086 * a-ciorse.adb (Replace_Element): changed parameter name in call to
16087 conditional insert operation.
16089 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
16092 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
16093 instead of mode inout.
16095 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
16097 (Generic_Read): preserve existing buckets array if possible
16098 (Generic_Write): don't send buckets array length anymore
16100 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
16101 instead of mode inout.
16103 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
16104 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16106 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
16107 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16108 (Replace_Element): local operation is now an instantiation
16110 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
16111 check current length.
16112 (Generic_Replace_Element): new operation
16114 2006-10-31 Doug Rupp <rupp@adacore.com>
16116 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
16117 Call TBK$SYMBOLIZE without omitting parameters.
16119 2006-10-31 Vincent Celier <celier@adacore.com>
16121 * symbols-processing-vms-ia64.adb,
16122 symbols-processing-vms-alpha.adb (Process): Do not include symbols
16123 that come from generic instantiations in bodies.
16125 2006-10-31 Pat Rogers <rogers@adacore.com>
16127 * a-rttiev.ads, a-rttiev.adb:
16128 This is a significant redesign primarily for the sake of automatic
16129 timer task termination but also to fix a design flaw.
16130 Therefore we are now using an RTS lock, instead of a protected
16131 object, to provide mutual exclusion to the queue of pending events
16132 and the type Timing_Event is no longer a protected type.
16134 2006-10-31 Robert Dewar <dewar@adacore.com>
16135 Cyrille Comar <comar@adacore.com>
16136 Ben Brosgol <brosgol@adacore.com>
16138 * debug.adb: Update flags documentation
16140 * gnat_ugn.texi: Add documentation for new -gnatwq switch
16141 Clean up documentation for several other warning switches
16142 Clarify how task stack size can be specified with various
16143 versions of Windows.
16144 Add note that -gnatVo includes ranges including loops
16145 Add documentation for -gnatL switch
16146 Add note on elaboration warning for initializing variables
16147 Add documentation for new -gnatwt warning switch
16148 Document new form of pragma Warnings (On|Off, string)
16149 Add comment on use of pragma Warnings to control warnings
16150 Add documentation for -gnatjnn switch
16151 Modify section on interfacing with C for VMS 64-bit.
16152 Add doc for -gnatVe/E
16153 Add documentation of new warning flags -gnatww/-gnatwW
16154 Add warnings about address clause overlays to list of warnings
16155 (Exception Handling Control): Document that the option --RTS must be
16156 used consistently for gcc and gnatbind.
16157 Clarify that inlining is not always possible
16158 Update documentation on pragma Unchecked_Union.
16161 Add documentation for new extended version of pragma Obsolescent
16162 Add documentation for implementation defined attribute 'Stub_Type.
16163 Add note on use of Volatile in asm statements
16164 Add documentation on use of pragma Unreferenced in context clause
16165 Document new form of pragma Warnings (On|Off, pattern)
16166 Document pragma Wide_Character_Encoding
16167 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
16168 enforced if code generation is active.
16169 Add section on pragma Suppress to document GNAT specific check
16171 Clarify difference between No_Dispatching_Calls & No_Dispatch.
16172 Add documentation for pragma Restrictions (No_Elaboration_Code)
16175 Add comments on layout of subprogram local variables in the
16176 presence of nested subprograms.
16178 * ug_words: Resync.
16180 * elists.ads: Minor reformatting
16181 Node returns Node_Or_Entity_Id (doc change only)
16183 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
16185 * g-arrspl.ads (Create): Update comments.
16187 * sem.ads: Add details on the handling of the scope stack.
16189 * usage.adb: Update documentation.
16191 * validsw.ads, validsw.adb:
16192 Add definition of Validity_Check_Components and implement -gnatVe/E
16194 * vms_data.ads: Add missing VMS qualifiers.
16196 * s-addope.ads: Add documentation on overflow and divide by zero
16198 2006-10-31 Robert Dewar <dewar@adacore.com>
16199 Thomas Quinot <quinot@adacore.com>
16200 Arnaud Charlet <charlet@adacore.com>
16202 * fmap.adb: Put routines in alpha order
16204 * g-boumai.ads: Remove redundant 'in' keywords
16206 * g-cgi.adb: Minor reformatting
16208 * g-cgi.ads: Remove redundant 'in' keywords
16210 * get_targ.adb: Put routines in alpha order
16212 * prj-attr.ads: Minor reformatting
16214 * s-atacco.ads: Minor reformatting
16216 * scn.adb: Put routines in alpha order
16218 * sinput-l.adb: Minor comment fix
16220 * sinput-p.adb: Minor comment fix
16222 * s-maccod.ads: Minor reformatting
16224 * s-memory.adb: Minor reformatting
16226 * s-htable.adb: Fix typo in comment.
16228 * s-secsta.adb: Minor comment update.
16230 * s-soflin.adb: Minor reformatting
16233 Add comment about odd qualification in Storage_Offset declaration
16236 Remove unnecessary 'in' keywords for formal parameters.
16238 * treeprs.adt: Minor reformatting
16240 * urealp.adb: Put routines in alpha order
16242 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
16245 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16247 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
16249 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
16250 workaround as on other platforms.
16252 * g-eacodu-vms.adb: Remove redundant 'in' keywords
16253 * g-expect-vms.adb: Remove redundant 'in' keywords
16255 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
16256 clear error message if the list-of-files file cannot be opened.
16258 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
16259 equality operator is always visible.
16261 * lang.opt: Woverlength-strings: New option.
16264 Update copyright, since nmake.ads and nmake.adb have changed.
16266 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
16267 (Binder_Output_Time_Stamps_Set): removed.
16268 (Old_Binder_Output_Time_Stamp): idem.
16269 (New_Binder_Output_Time_Stamp): idem.
16270 (Recording_Time_From_Last_Bind): idem.
16271 (Recording_Time_From_Last_Bind): Make constant.
16273 * output.ads, output.adb (Write_Str): Allow LF characters
16274 (Write_Spaces): New procedure
16276 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
16278 * inline.adb: Minor reformatting
16280 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16282 * s-mastop-vms.adb: Remove redundant 'in' keywords
16284 * s-osprim-vms.adb: Remove redundant 'in' keywords
16286 * s-trafor-default.adb: Remove redundant 'in' keywords
16288 * 9drpc.adb: Remove redundant 'in' keywords
16290 * s-osinte-mingw.ads: Minor reformatting
16292 * s-inmaop-posix.adb: Minor reformatting
16294 * a-direio.ads: Remove quotes from Compile_Time_Warning message
16296 * a-exexda.adb: Minor code reorganization
16298 * a-filico.adb: Minor reformatting
16300 * a-finali.adb: Minor reformatting
16302 * a-nudira.ads: Remove quote from Compile_Time_Warning message
16304 * a-numeri.ads: Minor reformatting
16306 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
16308 * exp_pakd.ads: Fix obsolete comment
16310 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
16311 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
16312 Probably not a bug, but certainly neater and more efficient.
16314 * a-tienio.adb: Minor reformatting
16316 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
16317 Avoid assuming low bound of string is 1.
16319 * gnatbind.adb: Change Bindusg to package and rename procedure as
16320 Display, which now ensures that it only outputs usage information once.
16321 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
16323 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
16326 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
16328 (Match): Add pragma Assert to ensure that Matches'First is zero
16330 * g-regpat.ads (Match): Document that Matches lower bound must be zero
16332 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
16333 documented preconditions (also kills warnings about bad indexes).
16335 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
16337 (Build_Import_Library): Ditto;
16339 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
16341 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
16343 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
16344 lower bound of choice table is 1.
16346 * sem_case.ads (Analyze_Choices): Document that lower bound of
16349 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
16352 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
16353 and add appropriate Assert pragma to suppress warnings.
16355 * atree.h, atree.ads, atree.adb
16356 Change Elist24 to Elist25
16357 Add definitions of Field28 and Node28
16358 (Traverse_Field): Use new syntactic parent table in sinfo.
16360 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16362 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16364 * exp_tss.adb: Put routines in alpha order
16366 * fe.h: Remove redundant declarations.
16368 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
16370 * utils.c (builtin_function): Rename to gnat_builtin_function.
16371 Move common code to add_builtin_function.
16372 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
16373 gnat_builtin_function.
16374 * gigi.h (builtin_function): Rename to gnat_builtin_function.
16375 Change the signature.
16377 2006-10-16 Brooks Moses <bmoses@stanford.edu>
16379 * Makefile.in: Add TEXI2PDF definition.
16380 * Make-lang.in: Add "ada.pdf" target.
16382 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
16384 * decl.c, utils.c: Fix comment typos.
16385 * utils.c: Fix a typo.
16387 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
16389 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
16390 on "pure" Ada subprograms if SJLJ exceptions are used.
16391 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
16392 on the declaration node of JMPBUF_SAVE.
16393 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
16394 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
16395 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
16397 2006-08-20 Laurent Guerby <laurent@guerby.net>
16400 g-socket.adb (Bind_Socket): Call Set_Address.
16402 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
16405 * decl.c (same_discriminant_p): New static function.
16406 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
16407 subtype and we have discriminants, fix up the COMPONENT_REFs
16408 for the discriminants to make them reference the corresponding
16409 fields of the parent subtype after it has been built.
16411 2006-09-15 Roger Sayle <roger@eyesopen.com>
16414 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
16415 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
16417 2006-09-13 Olivier Hainque <hainque@adacore.com>
16420 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
16421 of a SAVE_EXPR, just make the operand addressable/not-readonly and
16422 let the common gimplifier code make and propagate a temporary copy.
16423 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
16424 out/in-out actuals and defer setting the addressable/readonly bits
16427 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
16430 * decl.c (components_to_record): Defer emitting debug info for the
16431 record type associated with the variant until after we are sure to
16434 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
16437 * gigi.h (gnat_internal_attribute_table): Declare.
16438 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
16439 * utils.c (gnat_internal_attribute_table): New global variable.
16440 (builtin_function): Always call decl_attributes on the builtin.
16441 (handle_const_attribute): New static function.
16442 (handle_nothrow_attribute): Likewise.
16444 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
16446 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
16448 2006-06-23 Olivier Hainque <hainque@adacore.com>
16450 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
16451 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
16453 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
16454 Eric Botcazou <ebotcazou@adacore.com>
16457 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
16458 check-gnat into check-acats.
16460 2006-06-17 Karl Berry <karl@gnu.org>
16462 * gnat-style.texi (@dircategory): Use "Software development"
16463 instead of "Programming", following the Free Software Directory.
16465 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16468 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
16470 2006-06-06 Laurent Guerby <laurent@guerby.net>
16473 mlib-utl.adb: Use Program_Name.
16475 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
16477 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
16478 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
16479 trans.c, utils.c: Fix comment typos. Follow spelling
16481 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
16484 2006-05-19 Nicolas Setton <setton@adacore.com>
16486 * misc.c (gnat_dwarf_name): New function.
16487 (LANG_HOOKS_DWARF_NAME): Define to it.
16489 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
16491 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
16492 (ada/misc.o): Likewise.
16493 (ada/utils.o): Likewise.
16495 2006-04-08 Aurelien Jarno <aurel32@debian.org>
16497 * Makefile.in: Add Ada support for GNU/kFreeBSD.
16498 * s-osinte-kfreebsd-gnu.ads: New file.
16500 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
16502 * Make-lang.in: Rename docdir to gcc_docdir.
16504 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
16506 * gigi.h (get_ada_base_type): Delete.
16507 * utils2.c (get_ada_base_type): Likewise.
16508 * trans.c (convert_with_check): Operate in the real base type.
16510 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16512 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
16514 2006-03-02 Richard Sandiford <richard@codesourcery.com>
16516 * utils.c (create_var_decl): Use have_global_bss_p when deciding
16517 whether to make the decl common.
16519 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
16521 * Make-lang.in (Ada): Remove.
16522 (.PHONY): Remove Ada
16524 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16526 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
16527 aggregate, check the interpretations of the other operand to find one
16528 that may be a boolean array.
16530 (Analyze_Selected_Component): Fix flow-of-control typo in case where
16531 the prefix is a private extension.
16533 2006-02-17 Eric Botcazou <botcazou@adacore.com>
16536 * utils2.c (find_common_type): If both input types are BLKmode and
16537 have the same constant size, keep using the first one.
16539 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
16541 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
16543 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
16545 2006-02-17 Jose Ruiz <ruiz@adacore.com>
16547 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16548 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
16549 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
16550 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
16551 Abort_Defer/Undefer pairs to avoid the possibility of a task being
16552 aborted while owning a lock.
16554 2006-02-17 Javier Miranda <miranda@adacore.com>
16555 Robert Dewar <dewar@adacore.com>
16557 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
16558 through an access to class-wide interface we force the displacement of
16559 the pointer to the allocated object to reference the corresponding
16560 secondary dispatch table.
16561 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
16562 if Long_Shifts are supported on the target, even if 64 bit divides
16563 are not supported (configurable run time mode).
16564 (Expand_N_Type_Conversion): Do validity check if validity checks on
16565 operands are enabled.
16566 (Expand_N_Qualified_Expression): Do validity check if validity checks
16567 on operands are enabled.
16569 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16571 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
16572 must be materialized when the renamed expression is an explicit
16575 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16577 * freeze.adb (Statically_Discriminated_Components): Return false if
16578 the bounds of the type of the discriminant are not static expressions.
16580 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
16581 the bounds of the discriminant type are not static.
16583 2006-02-17 Robert Dewar <dewar@adacore.com>
16585 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
16586 then we close To if it is valid.
16588 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
16590 * init.c (facility_resignal_table): new array
16591 (__gnat_default_resignal_p): enhance default predicate to resignal if
16592 VMS condition has one of the predefined facility codes.
16594 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
16596 * Makefile.in: Use VMS64 specialized versions of several units in
16597 Interfaces.C hierarchy to be compatible with HP C default size choices.
16598 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
16600 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16602 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
16603 instantiation, the corresponding entity is the related_instance of the
16604 wrapper package created for the instance.
16606 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16608 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
16609 the current instance is nested within another instance in a child unit.
16611 2006-02-17 Javier Miranda <miranda@adacore.com>
16612 Ed Schonberg <schonberg@adacore.com>
16614 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
16615 type we cannot inherit the primitive operations; we inherit the
16616 Corresponding_Record_Type (which has the list of primitive operations).
16617 (Check_Anonymous_Access_Types): When creating anonymous access types for
16618 access components, use Rewrite in order to preserve the tree structure,
16620 (Analyze_Object_Declaration): For limited types with access
16621 discriminants with defaults initialized by an aggregate, obtain
16622 subtype from aggregate as for other mutable types.
16623 (Derived_Type_Declaration): If the derived type is a limited interface,
16624 set the corresponding flag (Is_Limited_Record is not sufficient).
16626 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16628 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
16629 to inline a function that returns an unconstrained type, the return
16630 expression must be the first variable declared in the body of the
16633 2006-02-17 Javier Miranda <miranda@adacore.com>
16635 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
16636 abstract interface type, the static analysis is not enough to know if
16637 the interface is implemented or not by the source tagged type. Hence
16638 we must pass the work to the expander to generate the required code to
16639 evaluate the conversion at run-time.
16640 (Resolve_Equality_Op): Do not apply previous
16641 transformation if expansion is disasbled, to prevent anomalies when
16642 locating global references in a generic unit.
16644 2006-02-17 Vincent Celier <celier@adacore.com>
16646 * snames.ads, snames.adb: New standard names for new project attributes:
16647 archive_builder, archive_indexer, compiler_pic_option,
16648 config_body_file_name, config_body_file_name_pattern,
16649 config_file_switches, config_file_unique, config_spec_file_name,
16650 config_spec_file_name_pattern, default_builder_switches,
16651 default_global_compiler_switches, default_language,
16652 dependency_file_kind, global_compiler_switches, include_path,
16653 include_path_file, language_kind, linker_executable_option,
16654 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
16655 roots, runtime_project.
16657 2006-02-17 Matthew Heaney <heaney@adacore.com>
16659 * a-convec.ads, a-convec.adb:
16660 (operator "&"): handle potential overflow for large index types
16661 (Insert): removed Contraint_Error when using large index types
16662 (Insert_Space): removed Constraint_Error for large index types
16663 (Length): moved constraint check from Length to Insert
16665 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
16666 as not null access.
16667 Explicit raise statements now include an exception message.
16668 (operator "&"): handle potential overflow for large index types
16669 (Insert): removed Contraint_Error when using large index types
16670 (Insert_Space): removed Constraint_Error for large index types
16671 (Length): moved constraint check from Length to Insert
16673 2006-02-17 Robert Dewar <dewar@adacore.com>
16675 * s-wchcnv.adb: Document handling of [ on output (we do not change
16676 this to ["5B"] and the new comments say why not.
16679 Add note for -gnatVo that this now includes the cases of type
16680 conversions and qualified expressions.
16681 Add comments on handling of brackets encoding for Text_IO
16683 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
16684 Thomas Quinot <quinot@adacore.com>
16685 Robert Dewar <dewar@adacore.com>
16686 Javier Miranda <miranda@adacore.com>
16688 * expander.adb: Fix typo in comment
16690 * exp_pakd.adb: Fix typo
16691 Minor comment reformatting.
16693 * g-dyntab.adb: Minor reformatting
16695 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
16696 aliased subprograms to look for the abstract interface subprogram.
16698 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
16700 * env.c (__gnat_setenv): Use size_t.
16701 (__gnat_unsetenv): Likewise.
16702 (__gnat_clearenv): Likewise.
16704 2006-02-16 Arnaud Charlet <charlet@adacore.com>
16706 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
16708 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16710 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
16711 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
16712 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
16713 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
16714 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
16715 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
16716 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
16717 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
16718 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
16721 2006-02-13 Jose Ruiz <ruiz@adacore.com>
16723 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
16724 protection against race conditions is not needed.
16725 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
16727 (Set_Specific_Handler): Add mutual exclusive access to the specific
16729 (Specific_Handler): Add mutual exclusive access for retrieving the
16732 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
16735 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
16736 Fall_Back_Handler and Specific_Handler.
16738 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
16739 termination handlers.
16740 Set two different owerflow depending on the maximal stack size.
16742 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
16743 protection against race conditions is not needed when executing the
16744 task termination handler.
16746 2006-02-13 Robert Dewar <dewar@adacore.com>
16748 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
16749 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
16750 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
16751 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
16752 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
16753 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
16754 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
16755 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
16756 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
16757 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
16758 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
16759 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
16760 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
16761 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
16762 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
16763 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
16764 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
16765 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
16766 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
16767 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
16768 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
16769 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
16770 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
16771 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
16772 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
16773 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
16774 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
16775 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
16776 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
16777 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
16778 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
16779 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
16780 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
16781 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
16784 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
16786 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
16787 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
16788 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
16789 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
16790 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
16791 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
16792 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
16793 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
16794 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
16796 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16798 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
16799 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
16800 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
16801 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
16802 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
16803 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
16804 replaced by anonymous access type.
16805 (pthread_sigmask): Now take an access sigset_t
16807 * s-osinte-hpux.ads: Ditto.
16808 (pthread_mutex_t, pthread_cond_t): Update definitions to support
16809 properly 32 and 64 bit ABIs.
16811 2006-02-13 Pascal Obry <obry@adacore.com>
16813 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
16814 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
16815 s-taprop-linux.adb, s-taprop-solaris.adb,
16816 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
16817 adjustement is already done when calling this routine.
16819 2006-02-13 Pascal Obry <obry@adacore.com>
16821 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
16822 table to take advantage of the 16 priority levels available on Windows
16823 2000 and XP. On NT4 there are only 7 priority levels, this is properly
16824 supported by this new mapping.
16826 2006-02-13 Nicolas Setton <setton@adacore.com>
16828 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
16829 (get_encoding): New subprogram. Extracts the encodings from an encoded
16832 2006-02-13 Pascal Obry <obry@adacore.com>
16833 Nicolas Roche <roche@adacore.com>
16834 Arnaud Charlet <charlet@adacore.com>
16836 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
16838 (__gnat_try_lock): Add unicode support by using a specific section on
16840 (__gnat_get_current_dir): Idem.
16841 (__gnat_open_read): Idem.
16842 (__gnat_open_rw): Idem.
16843 (__gnat_open_create): Idem.
16844 (__gnat_create_output_file): Idem.
16845 (__gnat_open_append): Idem.
16846 (__gnat_open_new): Idem.
16847 (__gnat_file_time_name): Idem.
16848 (__gnat_set_file_time_name): Idem.
16849 (__gnat_stat): Idem.
16850 (win32_no_block_spawn): Idem.
16851 (__gnat_locate_exec_on_path): Idem.
16852 (__gnat_opendir): New routine.
16853 (__gnat_closedir): Idem.
16854 (__gnat_readdir): Add new parameter length (pointer to int). Update
16855 implementation to use it and add specific Win32 code for Unicode
16857 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
16858 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
16859 (convert_addresses): Do not define this dummy routine on VMS.
16861 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
16862 runtime Unicode support will be activated.
16863 (S2WS): String to Wide-String conversion. This version just copy a
16864 string in non Unicode version.
16865 (WS2S): Wide-String to String conversion. This version just copy a
16866 string in non Unicode version.
16868 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
16869 (Open): Now import __gnat_opendir from adaint.c.
16870 (Read): Change the implementation to support unicode characters. It is
16871 not possible to use strlen() on Windows as this version supports only
16872 standard ASCII characters. So the length of the directory entry is now
16873 returned from the imported __gnat_readdir routine.
16874 Update copyright notice.
16876 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
16877 (opendir): Moved to adaint.c.
16879 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
16880 (Get_Directory): Fix wrong indexing.
16881 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
16882 __gnat_getenv from env.c
16883 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
16886 * env.h, env.c: New file.
16888 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
16889 adaint.c by __gnat_getenv from env.c
16891 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
16892 adaint.c by __gnat_getenv from env.c
16894 * Make-lang.in: Add env.o in the list of C object needed by gnat1
16896 Update dependencies.
16898 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16899 Olivier Hainque <hainque@adacore.com>
16900 Eric Botcazou <ebotcazou@adacore.com>
16902 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
16904 * gigi.h (value_factor_p): Add prototype and description, now public.
16906 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
16907 promotion for field with rep clause if the associated size was proven
16909 Expand comments describing attempts to use a packable type.
16910 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
16911 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
16912 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
16913 necessary since these are not different types and pointers may
16914 actually designate any subtype in this hierarchy.
16915 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
16916 discriminants but put them into record only if not Unchecked_Union;
16917 pass flag to components_to_record showing Unchecked_Union.
16918 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
16919 components before variants; don't set TYPE_UNCHECKED_UNION_P.
16920 (components_to_record): New argument UNCHECKED_UNION.
16921 Remove special case code for Unchecked_Union and instead use main code
16922 with small changes.
16925 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
16926 variable with the expression being built, only its inner field.
16928 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
16929 emit_sequence_entry_statements.
16930 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
16931 (establish_gnat_vms_condition_handler): Move before
16932 Subprogram_Body_to_gnu.
16933 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
16934 for a subprogram if it has a foreign convention or is exported.
16935 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
16936 substituted for a CONST_DECL.
16937 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
16938 Etype to assoc_to_constructor.
16939 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
16940 discriminants of Unchecked_Union.
16941 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
16942 don't need cluttering preprocessor directives.
16943 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
16944 condition handler as current in the compiled function.
16945 (body_with_handlers_p): New function. Tell whether a given sequence of
16946 statements node is attached to a package or subprogram body and involves
16947 exception handlers possibly nested within inner block statements.
16948 (emit_sequence_entry_statements): New function, to emit special
16949 statements on entry of sequences when necessary. Establish GNAT
16950 condition handler in the proper cases for VMS.
16951 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
16952 emit_sequence_entry_statements.
16954 * utils2.c (find_common_type): If both input types are BLKmode and
16955 have a constant size, use the smaller one.
16956 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
16959 * utils.c (value_factor_p): Make public, to allow uses from other gigi
16961 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
16962 (convert, case UNION_TYPE): Remove special treatment for unchecked
16966 (update_pointer_to): Update variants of pointer types to unconstrained
16967 arrays by attaching the list of fields of the main variant.
16969 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16970 Robert Dewar <dewar@adacore.com>
16972 * a-exexpr.adb, a-exexpr-gcc.adb
16973 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
16974 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
16975 Remove code unused for exception propagation for the compiler itself
16976 from a-except.adb and update to still share separate packages.
16978 * a-except.ads, a-except.adb: Ditto.
16979 Add comments that this version is now used only by the compiler and
16980 other basic tools. The full version that includes the Ada 2005 stuff
16981 is in separate files a-except-2005.ads/adb. The reason is that we do
16982 not want to cause bootstrap problems with compilers not recognizing
16984 Add exception reason code PE_Implicit_Return
16985 Add new exception reason code (Null Exception_Id)
16987 * a-except-2005.adb, a-except-2005.ads: New files.
16989 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
16991 * s-wchcon.adb: New file.
16993 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
16994 (traceback.o deps): Likewise.
16995 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
16996 Activate build of GMEM instrumentation library on VMS targets.
16997 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
16998 Use a-except-2005.ads/adb for all run-time library builds unless
16999 specified otherwise.
17000 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
17001 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
17002 Use s-parame.adb on all native platforms.
17003 Use s-parame-vxworks.adb on all vxworks platforms.
17004 Add env.c env.h in LIBGNAT_SRCS
17005 Add env.o in LIBGNAT_OBJS
17006 (GNATMAKE_OBJS): Remove ctrl_c.o object.
17007 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
17008 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17009 supports VxWorks 6 RTPs.
17010 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
17011 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17013 * types.h, types.ads (Terminate_Program): New exception
17014 Add comment on modifying multiple versions of a-except.adb when the
17015 table of exception reasons is modified.
17016 Add exception reason code PE_Implicit_Return
17017 Add new exception reason code (Null Exception_Id)
17019 * clean.adb (Initialize): Get the target parameters before checking
17020 if target is OpenVMS. Move the OpenVMS specific code here from package
17021 body elaboration code.
17023 2006-02-13 Thomas Quinot <quinot@adacore.com>
17024 Vincent Celier <celier@adacore.com>
17025 Robert Dewar <dewar@adacore.com>
17027 * ali-util.adb (Get_File_Checksum): Update to account for change in
17028 profile of Initialize_Scanner.
17030 * gprep.adb (Gnatprep): Update to account for change in profile of
17031 Initialize_Scanner.
17032 (Process_One_File): Same.
17034 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
17035 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
17036 that behaviour using the new Unit information recorded in the source
17037 files table, rather than going through all units every time.
17038 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
17039 (Get_Source_Unit): Same.
17041 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
17042 change in profile of Initialize_Scanner.
17043 (Prepare_To_Preprocess): Same.
17045 * lib.ads: Fix typo in comment (templace -> template).
17047 * prj-part.adb (Parse_Single_Project): Update to account for change in
17048 profile of Initialize_Scanner.
17050 * scn.adb (Initialize_Scanner): Account for change in profile of
17051 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
17052 Also record the association of the given Source_File_Index to the
17053 corresponding Unit_Number_Type.
17055 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
17057 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
17058 Remove Unit formal for generic scanner: this formal
17059 is only relevant to Scn (the scanner instance used to parse Ada source
17060 files), not to other instances. Update comment accordingly.
17061 (Scan): Use new function Snames.Is_Keyword_Name.
17063 * sinfo-cn.adb: Fix typo in comment.
17065 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
17068 * sinput.ads (Source_File_Record): New component Unit, used to capture
17069 the unit identifier (if any) associated to a source file.
17071 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
17072 Unit in Source_File_Record.
17074 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
17075 in profile of Initialize_Scanner.
17077 * scans.adb (Initialize_Ada_Keywords): New procedure
17079 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
17080 Ada keywords in the Namet table, without the need to call
17081 Initialize_Scanner.
17083 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
17084 (Is_Keyword_Name): New function
17086 * snames.ads: Add subtype Configuration_Pragma_Names
17087 Add pragma Ada_2005 (synonym for Ada_05)
17088 (Is_Keyword_Name): New function
17090 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
17092 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17094 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
17097 * a-stwima.adb (To_Set): Add extra check when N = 0.
17099 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
17101 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17103 * s-parame-mingw.adb, s-parame-linux.adb,
17104 s-parame-solaris.adb: Removed, replaced by s-parame.adb
17106 * s-parame-vxworks.ads: Fix typo.
17108 * s-parame-vxworks.adb: New file.
17110 * s-parame.adb: Version now used by all native platforms.
17111 (Default_Stack_Size): Use 2 megs for default stack size and use
17112 __gl_default_stack_size when available.
17113 (Minimum_Stack_Size): Use 12K.
17115 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
17116 (Create_Task): Refine implementation taking advantage of the XP stack
17117 size support. On XP, we now create the thread using the flag
17118 STACK_SIZE_PARAM_IS_A_RESERVATION.
17120 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
17122 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
17123 XP and 0 on older Windows versions.
17125 * interfac-vms.ads: Removed, no longer used.
17127 2006-02-13 Matthew Heaney <heaney@adacore.com>
17129 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
17130 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
17131 a-cohase.adb: All explicit raise statements now include an exception
17134 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
17135 (Update_Element_Preserving_Key): renamed op to just Update_Element.
17136 Explicit raise statements now include an exception message
17138 * a-cihase.ads, a-cohase.ads: Removed comment.
17140 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
17141 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
17142 a-szbzha.adb, a-szfzha.ads: New files.
17144 2006-02-13 Matthew Heaney <heaney@adacore.com>
17146 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
17149 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
17151 * lang.opt: Wvariadic-macros: New option.
17152 Wold-style-definition: Likewise.
17153 Wmissing-format-attribute: Likewise.
17155 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
17156 -Wold-style-definition and -Wmissing-format-attribute.
17158 2006-02-13 Robert Dewar <dewar@adacore.com>
17160 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
17162 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
17164 2006-02-13 Nicolas Roche <roche@adacore.com>
17166 * a-envvar.adb, a-envvar.ads: New files.
17168 2006-02-13 Douglas Rupp <rupp@adacore.com>
17170 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
17172 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
17174 2006-02-13 Pat Rogers <rogers@adacore.com>
17176 * a-rttiev.adb, a-rttiev.ads: New files.
17178 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17180 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
17181 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
17183 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
17185 2006-02-13 Robert Dewar <dewar@adacore.com>
17187 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
17188 sem_case.adb: Minor code reorganization (not Present should be No)
17190 2006-02-13 Geert Bosch <bosch@adacore.com>
17191 Gary Dismukes <dismukes@adacore.com>
17193 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
17194 0, since the lower bound of the actual string may be greater than one.
17197 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
17198 layout is requested.
17200 2006-02-13 Vincent Celier <celier@adacore.com>
17202 * back_end.adb (Scan_Compiler_Arguments): Check if
17203 Search_Directory_Present is True and, if it is, add the argument in
17204 the source search directory path.
17206 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
17207 Search_Directory_Present to True.
17209 2006-02-13 Joel Brobecker <brobecke@adacore.com>
17211 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
17212 volatile, to tell the compiler to preserve this variable at any level
17214 (Gen_Versions_Ada): Temporarily work around codegen bug.
17216 2006-02-13 Vincent Celier <celier@adacore.com>
17218 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
17219 gcc to link with option -shared-libgcc.
17220 (Gnatlink): Remove duplicate switches -shared-libgcc
17222 2006-02-13 Robert Dewar <dewar@adacore.com>
17224 * gnatvsn.ads (Current_Year): New constant, used to easily update
17225 copyright on all GNAT tools.
17227 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
17230 2006-02-13 Robert Dewar <dewar@adacore.com>
17232 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
17233 after hyphen (small aesthetic change useful for a range of numbers
17235 Suppress range checks for a couple of assignments which otherwise
17236 cause validity checks with validity checking turned on.
17238 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
17239 Improvement in error message for object.
17240 (Rep_Item_Too_Late): Remove '!' in warning message.
17242 2006-02-13 Robert Dewar <dewar@adacore.com>
17243 Eric Botcazou <ebotcazou@adacore.com>
17245 * err_vars.ads: Suppress range checks for a couple of assignments
17246 which otherwise cause validity checks with validity checking turned on.
17249 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
17250 Make message unconditional if it is a warning.
17251 (Error_Msg_NEL): Always output warning messages.
17252 Suppress range checks for a couple of assignments which otherwise
17253 cause validity checks with validity checking turned on.
17255 * errout.ads (Message Insertion Characters): Document that '!' is
17256 implied by '?' in error messages.
17258 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
17259 (Gnat1drv): Use a goto to end of main subprogram instead of
17260 Exit_Program (E_Success) so that finalization can occur normally.
17262 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
17264 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
17267 2006-02-13 Vincent Celier <celier@adacore.com>
17269 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
17270 Unchecked_Conversion functions.
17271 (Modification_Time): Use direct conversion of OS_Time to Calendar time
17272 when OpenVMS returns False.
17274 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
17275 a-dirval.adb (OpenVMS): New Boolean function
17277 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17278 Thomas Quinot <quinot@adacore.com>
17280 * checks.adb (Build_Discriminant_Checks): If the expression being
17281 checks is an aggregate retrieve the values of its discriminants to
17282 generate the check, rather than creating a temporary and a reference
17284 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
17285 (Install_Null_Excluding_Check): Ditto
17286 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
17287 not for the renamed object, so that the actual itype is attached in the
17290 2006-02-13 Robert Dewar <dewar@adacore.com>
17291 Vincent Celier <celier@adacore.com>
17293 * debug.adb: Eliminate numeric switches for binder/gnatmake
17295 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
17296 switches for the compiler.
17297 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
17298 (Scan_Make_Switches): When failing with an illegal switch, output an
17299 error message with the full switch.
17300 Eliminate numeric switches for binder/gnatmake
17302 * switch.ads, switch.adb (Bad_Switch): New procedure
17304 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
17305 Remove 0-9 as debug flag character possibilities
17306 -d is now controlling the primary stack size when its value is a
17307 positive. Also add checks against invalid values, and support for kb,
17308 mb. Ditto for -D switch.
17310 2006-02-13 Robert Dewar <dewar@adacore.com>
17311 Serguei Rybin <rybin@adacore.com>
17313 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
17314 save/restore routines.
17315 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17316 were not always properly handled previously.
17317 Since we are changing the tree format anyway, also get rid of the
17318 junk obsolete Immediate_Errors flag.
17319 (Tree_Read): Change the way of reading Tree_Version_String - now we
17320 read the version string from the tree even if its length is not the
17321 same as the length of the version string computed from Gnatvsn.
17322 (Search_Directory_Present): New Boolean flag for the compiler.
17323 Define Tree_Version_String as a dynamic string.
17324 (Default_Stack_Size): new variable, used to handle switch -d.
17327 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
17328 only for main unit.
17329 Add pragma Ada_2005 (synonym for Ada_05)
17330 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17331 were not always properly handled previously.
17333 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
17334 explicit Ada_95 to Ada_2005.
17336 2006-02-13 Javier Miranda <miranda@adacore.com>
17337 Robert Dewar <dewar@adacore.com>
17338 Ed Schonberg <schonberg@adacore.com>
17340 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
17341 against errors in the source program: a private types for which the
17342 corresponding full type declaration is missing and pragma CPP_Virtual
17344 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
17345 (Is_Known_Null): New flag
17346 (Has_Pragma_Pure): New flag
17347 (No_Return): Present in all entities, set only for procedures
17348 (Is_Limited_Type): A type whose ancestor is an interface is limited if
17349 explicitly declared limited.
17350 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
17351 entities. Only used for component marked Is_Tag. If present it stores
17352 the Offset_To_Top function used to provide this value in tagged types
17353 whose ancestor has discriminants.
17355 * exp_ch2.adb: Update status of new Is_Known_Null flag
17357 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
17359 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
17360 the categorization sense if Is_Pure was set by pragma Pure_Function.
17362 2006-02-13 Quentin Ochem <ochem@adacore.com>
17363 Olivier Hainque <hainque@adacore.com>
17365 * bindusg.adb: Updated documentation for -d and -D switches.
17367 * raise.h (__gnat_set_globals): added new parameter for
17368 Default_Stack_Size.
17370 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
17371 (__gnat_handle_vms_condition): Adjust context before raise.
17372 (__gnat_install_handler): Restore the global vector setup for GCC
17373 versions before 3.4, as the frame based circtuitry is not available
17375 (__gnat_set_globals): added a parameter default_stack_size
17376 (__gl_default_stack_size): new variable.
17378 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17380 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
17381 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
17382 does not exist in the Ada RM.
17383 (Compatible_Int_Bounds): Determine whether two integer range bounds
17384 are of equal length and have the same start and end values.
17385 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
17386 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
17387 aggregate when it is part of an object declaration.
17388 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
17389 constrains discriminants of its parent, add explicitly the discriminant
17390 constraints of the ancestor by retrieving them from the
17391 stored_constraint of the parent.
17393 2006-02-13 Robert Dewar <dewar@adacore.com>
17395 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
17396 attribute Mechanism_Code is applied to renamed subprogram, modify
17397 prefix to point to base subprogram.
17398 Max/Min attributes now violate Restriction No_Implicit_Conditionals
17400 * sinfo.ads: Document that Mechanism_Code cannot be applied to
17401 renamed subprograms so that the front-end must replace the prefix
17404 2006-02-13 Javier Miranda <miranda@adacore.com>
17405 Gary Dismukes <dismukes@adacore.com>
17407 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
17408 availability of RE_Interface_Tag.
17409 (Build_Initialization_Call): Fix wrong access to the discriminant value.
17410 (Freeze_Record_Type): Do not generate the tables associated with
17411 timed and conditional dispatching calls through synchronized
17412 interfaces if compiling under No_Dispatching_Calls restriction.
17413 When compiling for Ada 2005, for a nonabstract
17414 type with a null extension, call Make_Controlling_Function_Wrappers
17415 and insert the wrapper function declarations and bodies (the latter
17416 being appended as freeze actions).
17417 (Predefined_Primitive_Bodies): Do not generate the bodies of the
17418 predefined primitives associated with timed and conditional
17419 dispatching calls through synchronized interfaces if we are
17420 compiling under No_Dispatching_Calls.
17421 (Build_Init_Procedure): Use RTE_Available to check if a run-time
17422 service is available before generating a call.
17423 (Make_Controlling_Function_Wrappers): New procedure.
17424 (Expand_N_Full_Type_Declaration): Create a class-wide master for
17425 access-to-limited-interfaces because they can be used to reference
17426 tasks that implement such limited interface.
17427 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
17428 procedure spec and body of the Offset_To_Top function that is generated
17429 when the parent of a type with discriminants has secondary dispatch
17431 (Init_Secondary_Tags): Handle the case in which the parent of the type
17432 containing secondary dispatch tables has discriminants to generate the
17433 correct arguments to call Set_Offset_To_Top.
17434 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
17436 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
17437 Add Wide_[Wide_]Expanded_Name.
17438 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
17439 the same functionality of Get_Prim_Op_Address but applied to predefined
17440 primitive operations because the pointers to the predefined primitives
17441 are now saved in a separate table.
17442 (Parent_Size): Modified to get access to the separate table of primitive
17443 operations or the parent type.
17444 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
17445 functionality of Set_Prim_Op_Address but applied to predefined primitive
17447 (Set_Signature): New subprogram used to store the signature of a DT.
17448 (Displace): If the Offset_To_Top value is not static then call the
17449 function generated by the expander to get such value; otherwise use
17450 the value stored in the table of interfaces.
17451 (Offset_To_Top): The type of the actual has been changed to Address to
17452 give the correct support to tagged types with discriminants. In this
17453 case this value is stored just immediately after the tag field.
17454 (Set_Offset_To_Top): Two new formals have been added to indicate if the
17455 offset_to_top value is static and hence pass this value to the run-time
17456 to store it in the table of interfaces, or else if this value is dynamic
17457 and then pass to the run-time the address of a function that is
17458 generated by the expander to provide this value for each object of the
17461 * rtsfind.ads (Default_Prin_Op_Count): Removed.
17462 (Default_Prim_Op_Count): New entity
17463 (Get_Predefined_Prim_Op_Address): New entity
17464 (Set_Predefined_Prim_Op_Address): New entity
17465 (RE_Set_Signature): New entity
17467 2006-02-13 Thomas Quinot <quinot@adacore.com>
17468 Ed Schonberg <schonberg@adacore.com>
17470 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
17471 Make_Adjust_Call done for a newly-allocated object.
17473 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
17474 in a subprogram are wrapped in a cleanup block, indicate that the
17475 subprogram contains an inner block with an exception handler.
17476 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
17477 Adjust call is for a newly-allocated object. In that case we must not
17478 assume that the finalization list chain pointers are correct (since they
17479 come from a bit-for-bit copy of the original object's pointers) so if
17480 the attach level would otherwise be zero (no change), we set it to 4
17481 instead to cause the pointers to be reset to null.
17483 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
17484 reset chain pointers to null.
17486 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17488 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
17489 string, and the context requires a loop for the assignment (e.g.
17490 because the left-hand side is packed), generate a unique name for the
17491 temporary that holds the string, to prevent spurious name clashes.
17493 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17494 Javier Miranda <miranda@adacore.com>
17495 Robert Dewar <dewar@adacore.com>
17496 Gary Dismukes <dismukes@adacore.com>
17498 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
17499 return unconstrained arrays.
17501 (Expand_Call): An indirect call through an access parameter of a
17502 protected operation is not a protected call.
17503 Add circuit to raise CE in Ada 2005 mode following call
17504 to Raise_Exception.
17505 (Register_DT_Entry): Do nothing if
17506 the run-time does not give support to abstract interfaces.
17507 (Freeze_Subprogram): In case of dispatching operations, do not generate
17508 code to register the operation in the dispatch table if the source
17509 is compiled with No_Dispatching_Calls.
17510 (Register_Predefined_DT_Entry): Generate code that calls the new
17511 run-time subprogram Set_Predefined_Prim_Op_Address instead of
17512 Set_Prim_Op_Address.
17514 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
17515 on array assignments if the right-hand side is a function call that has
17516 been inlined. Check is performed on the assignment in the block.
17517 (Process_Bounds): If bounds and range are overloaded, apply preference
17518 rule for root operations to disambiguate, and diagnose true ambiguity.
17519 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
17520 a tag-indeterminate right-hand side even when Expander_Active is True.
17521 Needed to ensure that dispatching calls to T'Input are allowed and
17522 get the tag of the target class-wide object.
17524 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
17525 an inherited primitive operation that already overrides several
17526 abstract interface primitives. For transitivity, the new entity must
17527 also override all the abstract interface primitives covered by the
17528 inherited overriden primitive.
17529 Emit warning if new entity differs from homograph in same scope only in
17530 that one has an access parameter and the other one has a parameter of
17531 a general access type with the same designated type, at the same
17532 position in the signature.
17533 (Make_Inequality_Operator): Use source locations of parameters and
17534 subtype marks from corresponding equality operator when creating the
17535 tree structure for the implicit declaration of "/=". This does not
17536 change anything in behaviour except that the decoration of the
17537 components of the subtree created for "/=" allows ASIS to get the
17538 string images of the corresponding identifiers.
17539 (Analyze_Return_Statement): Remove '!' in warning message.
17540 (Check_Statement_Sequence): Likewise.
17541 (Analyze_Subprogram_Body): For an access parameter whose designated type
17542 is an incomplete type imported through a limited_with clause, use the
17543 type of the corresponding formal in the body.
17544 (Check_Returns): Implicit return in No_Return procedure now raises
17545 Program_Error with a compile time warning, instead of beging illegal.
17546 (Has_Single_Return): Function returning unconstrained type cannot be
17547 inlined if expression in unique return statement is not an identifier.
17548 (Build_Body_To_Inline): It is possible to inline a function call that
17549 returns an unconstrained type if all return statements in the function
17550 return the same local variable. Subsidiary procedure Has_Single_Return
17551 verifies that the body conforms to this restriction.
17553 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
17554 same type, and one of them is of an anonymous access type, convert
17555 the other operand to it, so that this is a valid binary operation for
17557 (Resolve_Type_Conversion): Handle subtypes of protected types and
17558 task types when accessing to the corresponding record type.
17559 (Resolve_Allocator): Add '\' in 2-line warning message.
17560 Remove '!' in warning message.
17561 (Resolve_Call): Add '\' in 2-line warning message.
17562 (Valid_Conversion): Likewise.
17563 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
17564 resulting type may be an access type with an implicit dereference.
17565 Obtain the proper component from the designated type.
17566 (Make_Call_Into_Operator): Handle properly a call to predefined equality
17567 given by an expanded name with prefix Standard, when the operands are
17568 of an anonymous access type.
17569 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
17570 Explicit_Dereference and Resolve_Selected_Component, to verify that the
17571 prefix of the expression is not of an incomplete type. Allows full
17572 diagnoses of all semantic errors.
17573 (Resolve_Actuals): If the actual is an allocator whose directly
17574 designated type is a class-wide interface we build an anonymous
17575 access type to use it as the type of the allocator. Later, when
17576 the subprogram call is expanded, if the interface has a secondary
17577 dispatch table the expander will add a type conversion to force
17578 the displacement of the pointer.
17579 (Resolve_Call): If a function that returns an unconstrained type is
17580 marked Inlined_Always and inlined, the call will be inlined and does
17581 not require the creation of a transient scope.
17582 (Check_Direct_Boolean_Op): Removed
17583 (Resolve_Comparison_Op): Remove call to above
17584 (Resolve_Equality_Op): Remove call to above
17585 (Resolve_Logical_Op): Inline above, since this is only call.
17586 (Valid_Conversion): Handle properly conversions between arrays of
17587 convertible anonymous access types.
17590 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
17591 the literal in an unchecked conversion, because GCC 4.x needs a static
17592 value for a string bound.
17594 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17595 Hristian Kirtchev <kirtchev@adacore.com>
17597 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
17598 components of the corresponding record, take into account component
17599 definitions that are access definitions.
17600 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
17601 procedure is not considered a dispatching call and will be expanded
17604 2006-02-13 Javier Miranda <miranda@adacore.com>
17606 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
17607 controlling argument of the dispatching call is an abstract interface
17608 class-wide type then we use it directly.
17609 Check No_Dispatching_Calls restriction.
17610 (Default_Prim_Op_Position): Remove the code that looks for the last
17611 entity in the list of aliased subprograms. This code was wrong in
17613 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
17614 when the source is compiled with the No_Dispatching_Calls restriction.
17615 (Init_Predefined_Interface_Primitives): No need to inherit primitives
17616 if we are compiling with restriction No_Dispatching_Calls.
17617 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
17618 subprograms if we are compiling under No_Dispatching_Calls restriction.
17619 (Make_DT): Generate a dispatch table with a single dummy entry if
17620 we are compiling with the No_Dispatching_Calls restriction. In
17621 addition, in this case we don't generate code that calls to the
17622 following run-time subprograms: Set_Type_Kind, Inherit_DT.
17623 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
17624 of this subprogram if compiling with the No_Dispatching_Calls
17626 (Expand_Type_Conversion): Instead of using the actual parameter,
17627 the argument passed as parameter to the conversion function was
17628 erroneously referenced by the expander.
17629 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
17630 Set_Predefined_Primitive_Op_Address and Set_Signature.
17631 (Expand_Dispatching_Call): Generate call to
17632 Get_Predefined_Prim_Op_Address for predefined primitives.
17633 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
17634 predefined primitives.
17635 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
17636 primitives we reserve one dummy entry to ensure that the tag does not
17637 point to some memory that is associated with some other object. In
17638 addition, remove all the old code that generated the assignments
17639 associated with the signature of the dispatch table and replace them
17640 by a call to the new subprogram Set_Signature.
17641 (Set_All_DT_Position): Change the algorithm because now we have a
17642 separate dispatch table associated with predefined primitive operations.
17643 (Expand_Interface_Conversion): In case of non-static offset_to_top
17644 add explicit dereference to get access to the object after the call
17645 to displace the pointer to the object.
17646 (Expand_Interface_Thunk): Modify the generation of the actual used
17647 in the calls to the run-time function Offset_To_Top to fulfil its
17649 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
17651 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17653 * exp_dist.adb (Copy_Specification): For access parameters, copy
17654 Null_Exclusion flag, which will have been set for stream subprograms
17657 2006-02-13 Pascal Obry <obry@adacore.com>
17659 * expect.c (__gnat_expect_portable_execvp): New implementation. The
17660 previous implementation was using the C runtime spawnve routine but
17661 the corresponding wait was using directly the Win32 API. This was
17662 causing some times a lock when waiting for an event using
17663 WaitForSingleObject in __gnat_waitpid. This new implementation uses
17664 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
17665 API fixes this problem.
17667 2006-02-13 Robert Dewar <dewar@adacore.com>
17669 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
17672 2006-02-13 Thomas Quinot <quinot@adacore.com>
17674 * exp_pakd.ads: Fix typos in comments.
17676 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
17677 array reference that is an explicit dereference, mark the converted
17678 (packed) array reference as analyzed to prevent a forthcoming
17679 reanalysis from resetting its type to the original (non-packed) array
17682 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17683 Javier Miranda <miranda@adacore.com>
17684 Eric Botcazou <ebotcazou@adacore.com>
17686 * exp_util.ads, exp_util.adb (Find_Prim_Op,
17687 Is_Predefined_Primitive_Operation): When
17688 searching for the predefined equality operator, verify that operands
17689 have the same type.
17690 (Is_Predefined_Dispatching_Operation): Remove the code that looks
17691 for the last entity in the list of aliased subprograms. This code
17692 was wrong in case of renamings.
17693 (Set_Renamed_Subprogram): New procedure
17694 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
17695 Exp_Type constant computed when entering this subprogram.
17696 (Known_Null): New function
17697 (OK_To_Do_Constant_Replacement): New function
17698 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
17699 (Side_Effect_Free): An attribute reference 'Input is not free of
17700 side effect, unlike other attributes that are functions. (from code
17702 (Remove_Side_Effects): Expressions that involve packed arrays or records
17703 are copied at the point of reference, and therefore must be marked as
17704 renamings of objects.
17705 (Is_Predefined_Dispatching_Operation): Return false if the operation is
17706 not a dispatching operation.
17709 (Remove_Side_Effects): Lift enclosing type conversion nodes for
17710 elementary types in all cases.
17712 2006-02-13 Javier Miranda <miranda@adacore.com>
17714 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
17715 task types when accessing to the corresponding record type.
17716 Remove '!' in warning message.
17718 2006-02-13 Olivier Hainque <hainque@adacore.com>
17720 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
17721 to avoid useless and space inefficient overalignments on targets where
17722 Max_Alignment is larger than 16.
17724 2006-02-13 Pascal Obry <obry@adacore.com>
17726 * g-catiio.adb (Sec_Number): New type used to compute the number of
17727 seconds since 1-1-1970.
17728 (Image) [Natural]: The parameter was an Integer, as we can't deal with
17729 negative numbers (years, months...) it is better to have a Natural here.
17731 (Image) [Number]: Change parameter from Long_Integer to Number.
17732 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
17733 overflow for dates past year 2038.
17735 2006-02-13 Matthew Heaney <heaney@adacore.com>
17737 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
17740 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17742 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
17744 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
17745 finalization can occur normally.
17747 2006-02-13 Vincent Celier <celier@adacore.com>
17749 * gnatcmd.adb (Rules_Switches): New table
17750 (Add_To_Rules_Switches): New procedure
17751 (GNATCmd): For command CHECK, put all options following "-rules" in the
17752 Rules_Switches table. Append these -rules switches after the -cargs
17755 2006-02-13 Robert Dewar <dewar@adacore.com>
17757 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
17758 These two cases were generating incorrect output, and if this unit
17759 was built with checks on, generated a discriminant mismatch constraint
17762 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17763 Robert Dewar <dewar@adacore.com>
17765 * lib-xref.adb (Get_Type_Reference): For a private type whose full
17766 view is an array type, indicate the component type as well, for
17767 navigation purposes.
17768 (Generate_Reference): Don't consider array ref on LHS to be a case
17769 of violating pragma Unreferenced.
17770 Do not give Ada 2005 warning except on real reference.
17772 2006-02-13 Vincent Celier <celier@adacore.com>
17774 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
17775 main source, add switch -mdebug-main=_ada_ so that the executable can
17776 be debugged by the standard VMS debugger.
17777 (Gnatmake): Set No_Main_Subprogram to True when there is no main
17778 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
17779 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
17780 of the last source, as the binding and linking phases are never
17782 Set all executable obsolete when rebuilding a library.
17784 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
17787 2006-02-13 Javier Miranda <miranda@adacore.com>
17790 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
17791 code to improve the error message reported when the program has
17792 declarations of abstract interface types and it is not compiled with
17793 the -gnat05 switch.
17794 (P_Access_Definition): Reorganize the code to improve the error
17795 message reported when the new Ada 2005 syntax for anonymous
17796 access types is used and the program is not compiled with the
17799 2006-02-13 Robert Dewar <dewar@adacore.com>
17801 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
17802 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
17805 2006-02-13 Javier Miranda <miranda@adacore.com>
17807 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
17808 against source containing syntax errors.
17810 2006-02-13 Vincent Celier <celier@adacore.com>
17812 * prj.adb (Reset): Initialize the first element of table Namings with
17813 the standard naming data.
17815 2006-02-13 Vincent Celier <celier@adacore.com>
17817 * prj.ads (Error_Warning): New enumeration type
17819 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
17820 unknown, use the location of the project to report the error.
17821 (When_No_Sources): New global variable
17822 (Report_No_Ada_Sources): New procedure
17823 (Check): New parameter When_No_Sources. Set value of global variable
17825 (Find_Sources): Call Report_No_Ada_Sources when appropriate
17826 (Get_Sources_From_File): Ditto
17827 (Warn_If_Not_Sources): Better warning messages indicating the unit name
17830 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
17831 Call Prj.Proc.Process with parameter When_No_Sources.
17833 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
17834 Call Recursive_Check with parameter When_No_Sources.
17835 (Recursive_Check): New parameter When_No_Sources. Call itself and
17836 Prj.Nmsc.Check with parameter When_No_Sources.
17837 (Process): New parameter When_No_Sources. Call Check with parameter
17839 (Copy_Package_Declarations): New procedure to copy renamed parameters
17840 and setting the location of the declared attributes to the location
17841 of the renamed package.
17842 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
17845 2006-02-13 Vincent Celier <celier@adacore.com>
17847 * prj-makr.adb (Make): Preserve the comments from the original project
17849 When removing nodes (attributes Source_Dirs, Source_Files,
17850 Source_List_File and package Naming), save the comments and attach the
17851 saved comments to the newly created nodes.
17852 Do not add a with clause for the naming package if one already exists.
17854 2006-02-13 Javier Miranda <miranda@adacore.com>
17855 Gary Dismukes <dismukes@adacore.com>
17856 Robert Dewar <dewar@adacore.com>
17858 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
17860 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
17861 aliased entities to look for the overriden abstract interface
17863 (Is_Interface_Subprogram): Complete documentation.
17864 (Check_Dispatching_Operation): Do not generate code to register the
17865 operation in the dispatch table if the source is compiled with
17866 restriction No_Dispatching_Calls.
17867 (Override_Dispatching_Operation): Check for illegal attempt to override
17868 No_Return procedure with procedure that is not No_Return
17869 (Check_Dispatching_Call): Suppress the check for an abstract operation
17870 when the original node of an actual is a tag-indeterminate attribute
17871 call, since the attribute, which must be 'Input, can never be abstract.
17872 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
17873 call to the Input attribute (even when rewritten).
17874 (Propagate_Tag): Augment comment to indicate the possibility of a call
17875 to an Input attribute.
17877 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
17878 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
17880 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
17881 No_Wide_Characters is no longer partition-wide
17882 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
17885 2006-02-13 Douglas Rupp <rupp@adacore.com>
17887 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
17889 2006-02-13 Javier Miranda <miranda@adacore.com>
17891 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
17892 handles default-initialized components to keep separate the management
17893 of this feature but also avoid the unrequired resolution and
17894 expansion of components that do not have partially initialized
17896 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
17897 (Check_Bounds): Likewise.
17898 (Check_Length): Likewise.
17900 2006-02-13 Javier Miranda <miranda@adacore.com>
17901 Ed Schonberg <schonberg@adacore.com>
17903 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
17904 abstract interface type call analyze_and_resolve to expand the type
17905 conversion into the corresponding displacement of the
17906 reference to the base of the object.
17907 (Eval_Attribute, case Width): For systems where IEEE extended precision
17908 is supported, the maximum exponent occupies 4 decimal digits.
17909 (Accessibility_Message): Add '\' in 2-line warning message.
17910 (Resolve_Attribute): Likewise.
17911 (case Attribute_Access): Significantly revise checks
17912 for illegal access-to-subprogram Access attributes to properly enforce
17913 the rules of 3.10.2(32/2).
17914 Diagnose use of current instance with an illegal attribute.
17916 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
17918 (Enclosing_Generic_Unit): New function to return a node's innermost
17919 enclosing generic declaration node.
17920 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
17921 (Type_Access_Level): The accessibility level of anonymous acccess types
17922 associated with discriminants is that of the current instance of the
17923 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
17924 (Compile_Time_Constraint_Error): Handle case of conditional expression.
17925 (Kill_Current_Values_For_Entity): New function
17926 (Enter_Name): Change formal type to Entity_Id
17928 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17929 Ed Schonberg <schonberg@adacore.com>
17930 Gary Dismukes <dismukes@adacore.com>
17932 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
17933 Analyze_Compilation_Unit.
17934 Detect and warn on redundant with clauses detected in a package spec
17935 and/or body when -gnatwr is used.
17936 (Analyze_Context): Analyze config pragmas before other items
17937 (Install_Context_Items): Don't analyze config pragmas here
17938 (Install_Limited_Withed_Unit): Set limited entity of package in
17939 with_clause so that cross-reference information or warning messages on
17940 unused packages can be properly generated
17941 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
17942 has Error_Posted set. Prevent infinite loops in illegal programs.
17943 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
17944 to the point of the error test requiring the current unit to be private.
17945 This ensures that private with clauses are not exempted from the basic
17946 checking for being a descendant of the same library unit parent as a
17947 withed private descendant unit.
17948 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
17949 handle private with clauses properly, as well as to account for cases
17950 where the withed unit is a public descendant of a private ancestor
17951 (in which case the current unit must be a descendant of the private
17952 ancestor's parent). The spec comments were updated accordingly. Also,
17953 the old error message in this subprogram was replaced with error
17954 messages that mirror the errors tested and reported by
17955 Check_Private_Child_Unit.
17956 Parameter and variable names improved for readability.
17957 (Install_Limited_Context_Clauses): Remove test for a withed unit being
17958 private as the precondition for calling
17959 Check_Private_Limited_Withed_Unit since that subprogram has been
17960 revised to test public units as well as private units.
17962 2006-02-13 Thomas Quinot <quinot@adacore.com>
17963 Robert Dewar <dewar@adacore.com>
17964 Ed Schonberg <schonberg@adacore.com>
17965 Javier Miranda <miranda@adacore.com>
17967 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
17968 that Scope_Stack.First = 1.
17969 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17970 were not always properly handled previously.
17971 (Formal_Entity): Complete rewrite, to handle properly some complex case
17972 with multiple levels of parametrization by formal packages.
17973 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
17974 to the corresponding derived type declaration for proper semantics.
17976 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
17977 (Check_Component): Enforce restriction on components of
17978 unchecked_unions: a component in a variant cannot contain tasks or
17980 (Unchecked_Union): Allow nested variants and multiple discriminants, to
17982 Add pragma Ada_2005 (synonym for Ada_05)
17983 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17984 were not always properly handled previously.
17985 Document that pragma Propagate_Exceptions has no effect
17986 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
17987 (Set_Convention_From_Pragma): Check that if a convention is
17988 specified for a dispatching operation, then it must be
17989 consistent with the existing convention for the operation.
17990 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
17991 longer required to specify an vtable-ptr component in the record. For
17992 compatibility reasons we leave the support for the previous definition.
17993 (Analyze_Pragma, case No_Return): Allow multiple arguments
17995 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
17996 non-overrideen inherited operation with a controlling result as
17997 illegal only its implicit declaration comes from the derived type
17998 declaration of its result's type.
17999 (Check_Possible_Deferred_Completion): Relocate the object definition
18000 node of the subtype indication of a deferred constant completion rather
18001 than directly analyzing it. The analysis of the generated subtype will
18002 correctly decorate the GNAT tree.
18003 (Record_Type_Declaration): Check whether this is a declaration for a
18004 limited derived record before analyzing components.
18005 (Analyze_Component_Declaration): Diagnose record types not explicitly
18006 declared limited when a component has a limited type.
18007 (Build_Derived_Record_Type): Code reorganization to check if some of
18008 the inherited subprograms of a tagged type cover interface primitives.
18009 This check was missing in case of a full-type associated with a private
18011 (Constant_Redeclaration): Check that the subtypes of the partial and the
18012 full view of a constrained deferred constant statically match.
18013 (Mentions_T): A reference to the current type in an anonymous access
18014 component declaration must be an entity name.
18015 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
18016 class_wide type to refer to full type, not to the incomplete one.
18017 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
18018 available. Required to give support to the certified run-time.
18019 (Analyze_Component_Declaration): In case of anonymous access components
18020 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
18021 (Process_Discriminants): For an access discriminant, use the
18022 discriminant specification as the associated_node_for_itype, to
18023 simplify accessibility checks.
18025 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18026 Javier Miranda <miranda@adacore.com>
18028 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
18029 abstract interpretations on an operator, remove interpretations that
18030 yield Address or a type derived from it, if one of the operands is an
18032 (Try_Object_Operation.Try_Primitive_Operation,
18033 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
18034 location when creating the new reference to a primitive or class-wide
18035 operation as a part of rewriting a subprogram call.
18036 (Try_Primitive_Operations): If context requires a function, collect all
18037 interpretations after the first match, because there may be primitive
18038 operations of the same type with the same profile and different return
18039 types. From code reading.
18040 (Try_Primitive_Operation): Use the node kind to choose the proper
18041 operation when a function and a procedure have the same parameter
18043 (Complete_Object_Operation): If formal is an access parameter and prefix
18044 is an object, rewrite as an Access reference, to match signature of
18045 primitive operation.
18046 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
18047 by an expanded name with prefix Standard, when the operands are of an
18048 anonymous access type.
18049 (Remove_Abstract_Operations): If the operation is abstract because it is
18050 inherited by a user-defined type derived from Address, remove it as
18051 well from the set of candidate interpretations of an overloaded node.
18052 (Analyze_Membership_Op): Membership test not applicable to cpp-class
18055 2006-02-13 Bob Duff <duff@adacore.com>
18057 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
18058 redundant use clauses.
18059 In particular, if the scope of two use clauses overlaps, but one is not
18060 entirely included in the other, we should not warn. This can happen
18061 with nested packages.
18062 (Analyze_Subprogram_Renaming): Protect the compiler against previously
18063 reported errors. The bug was reported when the compiler was built
18064 with assertions enabled.
18065 (Find_Type): If the node is a 'Class reference and the prefix is a
18066 synchronized type without a corresponding record, return the type
18069 2006-02-13 Javier Miranda <miranda@adacore.com>
18071 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
18072 if this is the full-declaration associated with a private declaration
18073 that implement interfaces, then the private type declaration must be
18075 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
18076 as aliased. The use of the 'access attribute is not available for such
18077 object (for this purpose the object should be explicitly marked as
18078 aliased, but being an anonymous type this is not possible).
18080 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18081 Robert Dewar <dewar@adacore.com>
18083 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
18084 compilation unit is an elaboration scope.
18085 (Add_Task_Proc): Add '\' in 2-line warning message.
18086 (Activate_All_Desirable): Deal with case of unit with'ed by parent
18088 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18089 Javier Miranda <miranda@adacore.com>
18091 * sem_type.adb (Write_Overloads): Improve display of candidate
18093 (Add_One_Interp): Do not add to the list of interpretations aliased
18094 entities corresponding with an abstract interface type that is an
18095 immediate ancestor of a tagged type; otherwise we have a dummy
18096 conflict between this entity and the aliased entity.
18097 (Disambiguate): The predefined equality on universal_access is not
18098 usable if there is a user-defined equality with the proper signature,
18099 declared in the same declarative part as the designated type.
18100 (Find_Unique_Type): The universal_access equality operator defined under
18101 AI-230 does not cover pool specific access types.
18102 (Covers): If one of the types is a generic actual subtype, check whether
18103 it matches the partial view of the other type.
18105 2006-02-13 Thomas Quinot <quinot@adacore.com>
18107 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
18108 line. This is necessary to allow In_Extended_Main_Unit to provide
18109 correct results for itypes while writing out expanded source.
18110 (Close_File): No need to update the source_index_table here since it's
18111 now done for each line.
18113 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18114 Robert Dewar <dewar@adacore.com>
18116 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
18117 preserve the source unit where the itype is declared, and prevent a
18119 (Note_Implicit_Run_Time_Call): New procedure
18120 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
18123 * sprint.ads: Document use of $ for implicit run time routine call
18125 2006-02-13 Quentin Ochem <ochem@adacore.com>
18127 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
18130 2006-02-13 Bob Duff <duff@adacore.com>
18132 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
18133 Scan_Unsigned, so we do not scan leading blanks and sign twice.
18134 Integer'Value("- 5") and Integer'Value("-+5") now correctly
18135 raise Constraint_Error.
18137 * s-vallli.adb (Scan_Long_Long_Integer): Call
18138 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
18139 do not scan leading blanks and sign twice.
18140 Integer'Value("- 5") and Integer'Value("-+5") now correctly
18141 raise Constraint_Error.
18143 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
18144 Scan_Long_Long_Unsigned): Split out most of the processing from
18145 Scan_Long_Long_Unsigned out into
18146 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
18147 This prevents scanning leading blanks and sign twice.
18148 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
18151 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
18152 out most of the processing from Scan_Unsigned out into
18153 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
18154 This prevents scanning leading blanks and sign twice.
18156 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
18157 use with Modular'Value attribute.
18158 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
18161 2006-02-13 Robert Dewar <dewar@adacore.com>
18163 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
18165 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18167 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
18168 (PPC VxWorks): Likewise.
18169 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
18170 (forced_callee): Make non-inlinable and non-pure.
18171 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
18173 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18174 Ben Brosgol <brosgol@adacore.com>
18175 Robert Dewar <dewar@adacore.com>
18177 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
18179 Document that gnatbind -M option is for cross environments only.
18180 Added description of using gnatmem to trace gnat rtl allocs and deallocs
18181 Add note on use of $ to label implicit run time calls
18182 Add documentation for -gnatyI (check mode IN)
18183 Updated chapter on compatibility with HP Ada
18184 VMS-oriented edits.
18185 Ran spell and corrected errors
18186 Add documentation for gnatbind -d and rework documentation of -D
18188 Add subprogram/data elimination section.
18189 Minor editing of annex A.
18190 Add section for gnatcheck.
18191 Add documentation for restriction No_Dispatching_Calls
18192 Add documentation for pragma Ada_2005
18193 Remove mention of obsolete pragma Propagate_Exceptions
18194 Document that pragma Unreferenced can appear after DO in ACCEPT
18195 Clarify Pure_Function for library level units
18196 Mention Max/Min in connection with No_Implicit_Conditionals
18197 No_Wide_Characters restriction is no longer partition-wide
18198 Add a nice example for Universal_Literal_String attribute
18199 Document that pragma No_Return can take multiple arguments
18201 * ug_words: Added entry for gnatcheck
18203 * g-ctrl_c.ads (Install_Handler): Enhance comments
18205 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
18207 * g-trasym.ads: Add documentation on how to do off line symbolic
18208 traceback computation.
18210 * s-fatgen.adb: Add comments for Unaligned_Valid
18212 * stand.ads: Fix typo in comment
18214 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18216 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
18218 2006-02-06 Roger Sayle <roger@eyesopen.com>
18220 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
18222 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18225 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
18226 implementation that calls __main.
18228 2006-01-25 Peter O'Gorman <peter@pogma.com>
18231 * Makefile.in (GCC_LINK): Remove quotes.
18232 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
18235 (powerpc-darwin): Pass -shared-libgcc when building shared library.
18237 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18240 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
18242 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18244 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
18246 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18248 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
18251 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18253 * Make-lang.in: Update dependencies
18255 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18257 * Make-lang.in: Add rule for ada/exp_sel.o
18259 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18261 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
18263 2005-12-09 Arnaud Charlet <charlet@adacore.com>
18265 * gnatvsn.ads (Library_Version): Bump to version 4.2
18266 (ASIS_Version_Number): Bumped.
18268 2005-12-09 Doug Rupp <rupp@adacore.com>
18270 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
18271 Ada bind file prefix on VMS from b$ to b__.
18272 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
18275 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
18276 Targparm.OpenVMS_On_Target.
18277 (Object_Suffix): Initialize with target object suffix.
18278 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
18280 * butil.adb: Change some Hostparm.OpenVMS checks to
18281 Targparm.OpenVMS_On_Target.
18283 * clean.adb: Change some Hostparm.OpenVMS checks to
18284 Targparm.OpenVMS_On_Target.
18285 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
18286 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
18287 Ada bind file prefix on VMS from b$ to b__.
18289 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
18290 --GCC so that Get_Target_Parameters can find system.ads.
18291 (Gnatlink): Call Get_Target_Parameters in mainline.
18292 Initialize standard packages for Targparm.
18293 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18294 (Process_Args): Also Check for object files with target object
18296 (Make_Binder_File_Names): Create with target object extension.
18297 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
18300 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
18301 Targparm.OpenVMS_On_Target.
18302 ({declaration},Build_Library,Check_Library): Change Ada bind file
18303 prefix on VMS from b$ to b__.
18305 * osint-b.adb: Change some Hostparm.OpenVMS checks to
18306 Targparm.OpenVMS_On_Target.
18307 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
18310 * targext.c: New file.
18312 * Makefile.in: add support for vxworks653 builds
18313 (../../vxaddr2line): gnatlink with targext.o.
18314 (TOOLS_LIBS): Move targext.o to precede libgnat.
18315 (init.o, initialize.o): Minor clean up in dependencies.
18316 (GNATLINK_OBJS): Add targparm.o, snames.o
18317 Add rules fo building targext.o and linking it explicitly with all
18319 Also add targext.o to gnatlib.
18321 * Make-lang.in: Add rules for building targext.o and linking it in
18322 with gnat1 and gnatbind.
18323 Add entry for exp_sel.o.
18325 * osint.adb Change some Hostparm.OpenVMS checks to
18326 Targparm.OpenVMS_On_Target.
18327 (Object_File_Name): Use target object suffix.
18329 * osint.ads (Object_Suffix): Remove, no longer used.
18330 (Target_Object_Suffix): Initialize with target object suffix.
18332 * rident.ads: Add special exception to license.
18334 * targparm.adb (Get_Target_Parameters): Set the value of
18335 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
18337 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
18339 * targparm.ads: Add special exception to license.
18341 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
18343 (Copy_File): Make sure from file is closed if error on to file
18344 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
18346 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
18347 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
18349 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
18350 target object suffix.
18352 2005-12-09 Jose Ruiz <ruiz@adacore.com>
18353 Quentin Ochem <ochem@adacore.com>
18354 Florian Villoing <villoing@adacore.com>
18356 * a-taster.ads, a-taster.adb: New files.
18358 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
18359 link to the version that does nothing. This way the task termination
18360 routine is not executed twice for the environment task when finishing
18361 because of an unhandled exception.
18363 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
18364 handler because of an unhandled exception.
18366 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
18367 System.Tasking.Utilities instead of that in System.Tasking.Stages.
18369 * s-finimp.adb (initialization code): Modify the soft link for the
18370 finalization of the global list instead of Adafinal.
18372 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
18373 non-tasking version of the soft link for task termination. We do
18374 nothing since if we are using the non-tasking version it
18375 means that the task termination functionality is not used.
18376 (Null_Finalize_Global_List): Add this null version for the procedure
18377 in charge of finalizing the global list for controlled objects.
18378 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
18379 instead for handling run-time termination in a more flexible way.
18380 (Adafinal_NT): This new procedure will take care of finalizing the
18381 global list for controlled objects if needed, but no tasking
18384 * s-tarest.adb (Task_Lock): Do not try to lock again the
18385 Global_Task_Lock if we already own it. Otherwise, we get blocked in
18386 some run-time operations.
18387 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
18388 until all nested locks have been released.
18389 (Task_Wrapper): Call the fall-back task termination handler. It
18390 applies to all tasks but the environment task.
18391 (Finalize_Global_Tasks): Add the call for the task termination
18392 procedure for the environment task.
18393 (Task_Wrapper): suppress warnings around declaration of
18394 Secondary_Stack_Address.
18396 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
18397 moved to the Common_ATCB record.
18398 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
18399 Common_ATCB record.
18400 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
18401 Common_ATCB record.
18403 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
18404 Fall_Back_Handler, and Specific_Handler.
18406 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
18407 defined in Ada.Task_Termination, to avoid circular dependencies.
18408 (Termination_Handler): Redefine this type here, alredy defined in
18409 Ada.Task_Termination, for avoiding circular dependencies.
18410 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
18411 for storing task termination handlers. In addition,
18412 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
18413 Common_ATCB because it is used by both the regular and the restricted
18415 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
18416 Common_ATCB because it is used by both the regular and the restricted
18418 (Common_ATCB): Added a dynamic task analyzer field.
18420 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
18421 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
18422 (Task_Wrapper): Call the task termination handler. It applies to all
18423 tasks but the environment task.
18424 (Finalize_Global_Tasks): Call the task termination procedure for the
18425 environment task. The call to Finalize_Global_List is now performed
18426 using the soft links mechanism.
18427 (Task_Wrapper): added dynamic stack analysis.
18429 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
18430 potentially blocking operations has been moved from
18431 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
18432 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
18433 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
18434 this run-time check.
18436 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
18437 of task termination procedure.
18438 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
18439 link for the task termination procedure.
18441 * bindusg.adb: (Bindusg): Added documentation for -u option.
18443 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
18444 (Get_Main_C): Add handling of dynamic stack analysis.
18445 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
18447 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
18448 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
18449 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
18451 * opt.ads: Added flags used by dynamic stack measurement.
18452 (Max_Line_Length): Remove (not used anymore)
18454 * s-io.ads, s-io.adb (Standard_Error): new subprogram
18455 (Standart_Output): new subprogram
18456 (Set_Output): new subprogram
18457 (Put): now uses the value of Current_Out to know if the output has to be
18458 send to stderr or stdout.
18460 * s-stausa.ads: Complete implementation.
18462 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
18464 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
18465 list of Ada 05 files.
18466 (GNAT Library Units): Add AltiVec files.
18468 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
18469 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
18470 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
18472 2005-12-09 Nicolas Setton <setton@adacore.com>
18474 * adaint.c (__gnat_locate_regular_file): Return immediately if
18475 file_name is empty.
18477 2005-12-09 Javier Miranda <miranda@adacore.com>
18478 Hristian Kirtchev <kirtchev@adacore.com>
18480 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
18481 to the specification because the frontend generates code that uses this
18483 (Set_Interface_Table): Add missing assertion.
18484 Update documentation describing the run-time structure.
18485 (Displace): New subprogram that displaces the pointer to the object
18486 to reference one of its secondary dispatch tables.
18487 (IW_Membership): Modified to use the new table of interfaces.
18488 (Inherit_TSD): Modified to use the new table of interfaces.
18489 (Register_Interface_Tag): Use the additional formal to fill the
18490 contents of the new table of interfaces.
18491 (Set_Interface_Table): New subprogram that stores in the TSD the
18492 pointer to the table of interfaces.
18493 (Set_Offset_To_Top): Use the additional formal to save copy of
18494 the offset value in the table of interfaces.
18495 Update structure of GNAT Primary and Secondary dispatch table diagram.
18496 Add comment section on GNAT dispatch table prologue.
18497 (Offset_To_Signature): Update the constant value of the Signature field.
18498 (Dispatch_Table): Update comment on hidden fields in the prologue.
18499 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
18500 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
18501 the type of formal parameter T to Tag, introduce additional assertions.
18502 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
18504 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
18506 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
18507 in all the calls to Expand_Interface_Thunk. Instead of referencing the
18508 record component containing the tag of the secondary dispatch table we
18509 have to use the Offset_To_Top run-time function to get this information;
18510 otherwise if the pointer to the base of the object has been displace
18511 we get a wrong value if we use the 'position attribute.
18513 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
18514 all the calls to Expand_Interface_Thunk.
18515 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
18516 interfaces; hence the call to Set_Interface_Table was clearly wrong.
18517 (Collect_All_Interfaces): Modify the internal subprogram Collect to
18518 ensure that the interfaces implemented by the ancestors are placed
18519 at the header of the generated list.
18520 (Expand_Interface_Conversion): Handle the case in which the displacement
18521 associated with the interface conversion is not statically known. In
18522 this case we generate a call to the new run-time subprogram Displace.
18523 (Make_DT): Generate and fill the new table of interfaces.
18524 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
18525 Get_Tagged_Kind and Set_Tagged_Kind.
18526 (Tagged_Kind): New function that determines the tagged kind of a type
18527 with respect to limitedness and concurrency and returns a reference to
18529 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
18530 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
18531 primary dispatch table for a type.
18532 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
18533 secondary dispatch table respectively of a tagged type.
18535 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
18536 (Expand_Interface_Conversion): New subprogram to indicate if the
18537 displacement of the type conversion is statically known.
18538 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
18540 * rtsfind.ads (RE_Offset_To_Top): New entity
18541 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
18542 accessible to users.
18543 (Re_Displace): New entity
18544 (RE_Interface_Data): New entity
18545 (RE_Set_Interface_Data): New_Entity
18546 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
18547 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
18548 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
18549 RE_TK_Tagged, RE_TK_Task.
18551 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
18552 Init_Secondary_Tags_Internal to allow its use with interface types and
18553 also to generate the code for the new additional actual required
18554 by Set_Offset_To_Top.
18555 (Build_Init_Statements): In case of components associated with abstract
18556 interface types there is no need to generate a call to its IP.
18557 (Freeze_Record_Type): Generate Select Specific Data tables only for
18559 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
18560 the bodies and specifications of the predefined primitive operations
18561 dealing with dispatching selects and abort, 'Callable, 'Terminated only
18562 for concurrent types.
18564 * exp_sel.ads, exp_sel.adb: New files.
18566 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
18567 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
18568 properly protected objects and attach handler in the case of the
18569 restricted profile.
18570 Move embeded package Select_Expansion_Utilities into a separate external
18572 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
18573 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
18574 (Build_K, Build_S_Assignment): New subprograms, part of the select
18575 expansion utilities.
18576 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
18577 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
18578 where the trigger is a dispatching procedure of a limited tagged type.
18580 2005-12-09 Olivier Hainque <hainque@adacore.com>
18582 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
18583 pointer initialization values. Make a SAVE_EXPR instead. Add comments
18584 about the use and expansion of SAVE_EXPRs in the various possible
18585 renaming handling cases.
18586 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
18587 abusing DECL_FCONTEXT.
18589 2005-12-09 Matthew Heaney <heaney@adacore.com>
18591 * a-convec.adb (Merge): Added assertions to check whether vector params
18594 * a-coinve.adb (Merge): Added assertions to check whether vector params
18597 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
18599 (Cursor'Read): raises PE
18601 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
18602 to its default value.
18604 * a-cihama.adb: Manually check whether cursor's key and elem are
18607 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
18608 (Merge): Assert that target and source lists are in order
18609 (Swap): Declare non-const temporaries, to pass to Splice
18611 * a-cdlili.ads: (Splice): Changed param name and param mode
18613 * a-cdlili.adb: (Splice): Changed param name and param mode
18614 (Merge): Assert that target and source lists are in order
18615 (Swap): Declare non-const temporaries, to pass to Splice
18617 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
18618 (Write): declare Stream param as not null
18620 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
18621 an exception message.
18623 2005-12-09 Thomas Quinot <quinot@adacore.com>
18624 Robert Dewar <dewar@adacore.com>
18626 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
18627 which is the absolute maximum length we can support.
18629 * frontend.adb: For the processing of configuration pragma files,
18630 remove references to Opt.Max_Line_Length, which is not checked anymore.
18632 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
18635 * scn.adb, scng.adb:
18636 Always check line length against the absolute supported maximum,
18637 Hostparm.Max_Line_Length.
18639 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
18640 value for the maximum line length is Max_Line_Length (not
18641 Column_Number'Last).
18642 Minor error msg update
18643 (Set_Style_Check_Options): New interface returning error msg
18644 Minor code reorganization (processing for 'M' was out of alpha order)
18646 * switch-c.adb: New interface for Set_Style_Check_Options
18648 * stylesw.ads (Set_Style_Check_Options): New interface returning error
18651 2005-12-09 Javier Miranda <miranda@adacore.com>
18653 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
18654 with IP subprogram were only supported if there were limited types.
18656 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
18657 records with IP subprogram were only supported if there were limited
18660 2005-12-09 Olivier Hainque <hainque@adacore.com>
18661 Eric Botcazou <ebotcazou@adacore.com>
18663 * trans.c (tree_transform, emit_check): Adjust calls to
18664 build_call_raise, passing the now expected GNAT_NODE argument.
18666 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
18667 source line information than what the current global locus indicates
18670 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
18671 field has overflowed.
18672 (build_call_raise): Add a GNAT_NODE argument to convey better source
18673 line information than what the current global locus indicates when
18675 (build_component_ref): Adjust call to build_call_raise.
18677 2005-12-09 Pascal Obry <obry@adacore.com>
18679 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
18680 the iterator is quitting iteration on parent directory.
18682 2005-12-09 Javier Miranda <miranda@adacore.com>
18684 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
18685 and the assignment to a class-wide object, before the assignment we
18686 generate a run-time check to ensure that the tag of the Target is
18687 covered by the tag of the source.
18689 2005-12-09 Robert Dewar <dewar@adacore.com>
18691 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
18692 parameter in call to Image_Wide_Character.
18694 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
18695 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
18696 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
18697 annoying FFFE/FFFF inconsistency.
18699 2005-12-09 Robert Dewar <dewar@adacore.com>
18700 Javier Miranda <miranda@adacore.com>
18701 Ed Schonberg <schonberg@adacore.com>
18703 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
18704 of type conversion.
18705 (Find_Interface): New subprogram that given a tagged type and one of its
18706 component associated with the secondary table of an abstract interface
18707 type, return the entity associated with such abstract interface type.
18708 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
18709 base type to create anonymous subtype, because entity may be a locally
18710 declared subtype or generic actual.
18711 (Find_Interface): New subprogram that given a tagged type and one of its
18712 component associated with the secondary table of an abstract interface
18713 type, return the entity associated with such abstract interface type.
18715 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
18716 conversion cannot be handled at compile time. In this case we pass this
18717 information to the expander to generate the appropriate code.
18719 2005-12-09 Robert Dewar <dewar@adacore.com>
18720 Ed Schonberg <schonberg@adacore.com>
18721 Gary Dismukes <dismukes@adacore.com>
18722 Javier Miranda <miranda@adacore.com>
18723 Hristian Kirtchev <kirtchev@adacore.com>
18725 * einfo.adb (Itype_Printed): New flag
18726 (Is_Limited_Type): Derived types do not inherit limitedness from
18727 interface progenitors.
18728 (Is_Return_By_Reference_Type): Predicate does not apply to limited
18731 * einfo.ads (Itype_Printed): New flag
18732 Move Is_Wrapper_Package to proper section
18733 Add missing Inline for Is_Volatile
18735 * output.ads, output.adb (Write_Erase_Char): New procedure
18736 (Save/Restore_Output_Buffer): New procedures
18737 (Save/Restore_Output_Buffer): New procedures
18739 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
18740 Add missing support for anonymous access type
18741 (Write_Id): Insert calls to Write_Itype
18742 (Write_Itype): New procedure to output itypes
18744 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
18745 use of "limited" in declaration.
18747 * sinfo.ads, sinfo.adb:
18748 Formal derived types can carry an explicit "limited" indication.
18750 * sem_ch3.adb: Add with and use of Targparm.
18751 (Create_Component): If Frontend_Layout_On_Target is True and the
18752 copied component does not have a known static Esize, then reset
18753 the size and positional fields of the new component.
18754 (Analyze_Component_Declaration): A limited component is
18755 legal within a protected type that implements an interface.
18756 (Collect_Interfaces): Do not add to the list the interfaces that
18757 are implemented by the ancestors.
18758 (Derived_Type_Declaration): If the parent of the full-view is an
18759 interface perform a transformation of the tree to ensure that it has
18760 the same parent than the partial-view. This simplifies the job of the
18761 expander in order to generate the correct object layout, and it is
18762 needed because the list of interfaces of the full-view can be given in
18764 (Process_Full_View): The parent of the full-view does not need to be
18765 a descendant of the parent of the partial view if both parents are
18767 (Analyze_Private_Extension_Declaration): If declaration has an explicit
18768 "limited" the parent must be a limited type.
18769 (Build_Derived_Record_Type): A derived type that is explicitly limited
18770 must have limited ancestor and progenitors.
18771 (Build_Derived_Type): Ditto.
18772 (Process_Full_View): Verify that explicit uses of "limited" in partial
18773 and full declarations are consistent.
18774 (Find_Ancestor_Interface): Remove function.
18775 (Collect_Implemented_Interfaces): New procedure used to gather all
18776 implemented interfaces by a type.
18777 (Contain_Interface): New function used to check whether an interface is
18779 (Find_Hidden_Interface): New function used to determine whether two
18780 lists of interfaces constitute a set equality. If not, the first
18781 differing interface is returned.
18782 (Process_Full_View): Improve the check for the "no hidden interface"
18783 rule as defined by AI-396.
18785 2005-12-09 Robert Dewar <dewar@adacore.com>
18787 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
18788 types, not on record subtypes.
18789 (Freeze_Entity): Code cleanup. Add barrier to the loop
18790 that generates the references for primitive operations. This allows to
18791 remove an unnecessary exception handler.
18792 Code reformatting and comment clean ups.
18794 2005-12-09 Vincent Celier <celier@adacore.com>
18796 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
18797 If GNAT CHECK is called with a project file, but with no
18798 source on the command line, call gnatcheck with all the compilable
18799 sources of the project.
18800 Take into account the new command Check, for gnatcheck. Treat as for
18801 other ASIS tools: take into account project, specific package Check and
18803 For ASIS tools, add the switches in package Compiler for
18804 the invocation of the compiler.
18806 * prj-attr.adb: Add package Check and its attributes
18808 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
18810 * vms_conv.adb (Initialize): Change Params of command Check to
18812 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18813 Add data for new command Check
18815 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
18817 Add qualifiers for Check command options
18818 (Command_Type): New command Check
18820 2005-12-09 Thomas Quinot <quinot@adacore.com>
18822 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
18823 command line switch overruns the output buffer.
18825 2005-12-09 Robert Dewar <dewar@adacore.com>
18827 * sem_prag.adb: Processing for new pragma Complete_Representation
18828 (Analyze_Pragma, case Debug): Implement two argument form.
18830 * par-prag.adb: Entry for new pragma Complete_Representation
18831 (Prag, case Debug): Recognize two argument form of pragma Debug
18832 New interface for Set_Style_Check_Options.
18834 * sem_ch13.adb: Implement new pragma Complete_Representation.
18836 * snames.adb, snames.ads, snames.h: Entry for new pragma
18837 Complete_Representation.
18839 2005-12-09 Gary Dismukes <dismukes@adacore.com>
18841 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
18842 available user-specified stream attributes on limited parameters to
18843 also test the type directly rather than only its underlying type (for
18844 Ada 95) and, in the case of Ada 2005, to check that the user-specified
18845 attributes are visible at the point of the subprogram declaration.
18846 For Ada 2005, the error message is modified to indicate that the
18847 type's stream attributes must be visible (again, only for -gnat05).
18849 2005-12-09 Ed Schonberg <schonberg@adacore.com>
18851 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
18852 anonymous access types.
18854 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
18855 matching of anonymous access types and anonymous access to subprogram
18856 types. 'R'M 4.9.1 (2/2).
18858 2005-12-09 Ed Schonberg <schonberg@adacore.com>
18860 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
18861 rule prematurely when operands are universal, remaining ambiguities
18862 will be removed during resolution.
18865 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
18866 that are Ada 2005 functions.
18867 (Has_Abstract_Interpretation): Subsidiary to
18868 Remove_Conversions, to remove ambiguities caused by abstract operations
18869 on numeric types when operands are universal.
18871 2005-12-09 Robert Dewar <dewar@adacore.com>
18873 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
18874 for case where spec is categorized.
18876 2005-12-09 Javier Miranda <miranda@adacore.com>
18878 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
18879 types use the corresponding record type. This was not needed before
18880 the implementation of Ada 2005 synchronized types because
18881 concurrent types were never tagged types in Ada 95.
18883 2005-12-09 Ed Schonberg <schonberg@adacore.com>
18885 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
18886 first subtype of the type of the expression to verify that it is a
18889 2005-12-09 Robert Dewar <dewar@adacore.com>
18891 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
18894 2005-12-09 Quentin Ochem <ochem@adacore.com>
18895 Robert Dewar <dewar@adacore.com>
18896 Ed Falis <falis@adacore.com>
18897 Florian Villoing <villoing@adacore.com>
18898 Thomas Quinot <quinot@adacore.com>
18899 Arnaud Charlet <charlet@adacore.com>
18901 * gnat_ugn.texi: Created section "Stack Related Tools"
18902 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
18903 "Stack Related Tools"
18904 Added subsection "Static Stack Usage Analysis"
18905 Added subsection "Dynamic Stack Usage Analysis"
18906 Include documentation of itypes in sprint listing (-gnatG)
18907 Documented gnatbind -D switch (default sec stack size for fixed sec
18909 Added Interrupt_State and Persistent_BSS to list of configuration
18911 Add missing doc for maximum value of nnn in -gnatyMnnn
18913 * gnat_rm.texi: Document the AltiVec binding.
18914 Add documentation for pragma Complete_Representation
18915 Shortened an overly long line (> 79 chars)
18916 Clarify documentation of unchecked conversion in implementation
18918 Document two argument form of pragma Debug
18920 * types.ads (Column_Number): Update documentation.
18922 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
18923 library level Finalize_Storage_Only objects (these are not attached to
18924 any finalization list).
18926 * system-mingw.ads: (Underlying_Priorities): Update comment.
18928 2005-12-09 Robert Dewar <dewar@adacore.com>
18930 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
18931 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
18932 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
18933 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
18934 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
18935 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
18936 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
18937 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
18940 2005-12-09 Robert Dewar <dewar@adacore.com>
18942 * s-vaflop-vms-alpha.adb: (Ne_F): New function
18943 (Ne_G): New function
18945 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
18946 for tag assignment.
18947 (Rewrite_Comparison): Handle case where operation is not a comparison
18948 and ignore, and also handle type conversion case.
18950 2005-12-09 Thomas Quinot <quinot@adacore.com>
18952 * exp_aggr.ads: Fix typo in comment.
18953 ???-mark Convert_Aggr_In_Assignment as needing documentation.
18955 2005-12-09 Gary Dismukes <dismukes@adacore.com>
18957 * layout.adb: Replace various uses of byte by storage unit throughout.
18958 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
18959 static size, convert to storage units before returning, to conform to
18962 2005-12-09 Matthew Gingell <gingell@adacore.com>
18964 * g-exctra.ads: Fix typo in comment.
18966 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18968 * utils.c: Minor reformatting.
18970 2005-12-09 Robert Dewar <dewar@adacore.com>
18973 Further comment fixes to make the status of the default file clear
18975 * s-bitops.adb: Clarify comment for Bits_Array
18977 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
18979 * Make-lang.in (ada.install-normal): Remove.
18981 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
18983 * Make-lang.in: Remove all dependencies on s-gtype.
18985 2005-12-05 Richard Guenther <rguenther@suse.de>
18987 * utils.c (convert): Use fold_convert where appropriate.
18989 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
18991 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
18994 2005-12-02 Richard Guenther <rguenther@suse.de>
18996 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
18998 2005-12-01 Roger Sayle <roger@eyesopen.com>
19000 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
19003 2005-11-23 Laurent Guerby <laurent@guerby.net>
19005 * mlib-prj.adb (Build_Library): Initialize Delete.
19007 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
19009 * socket.c: Add extern int h_errno for rtems since networking header
19010 files are not available at this point in a tool bootstrap. Newlib
19011 only has basic C library header files.
19013 2005-11-19 Richard Guenther <rguenther@suse.de>
19014 Roger Sayle <roger@eyesopen.com>
19017 * misc.c (internal_error_function): Don't use vsprintf to format
19018 the error message text, instead use pp_format_text and the new
19019 pretty printer APIs. This allows handling of %qs, %w, etc.
19021 2005-11-18 Laurent Guerby <laurent@guerby.net>
19024 * Makefile.in: Use s-auxdec-empty for RTEMS.
19026 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19029 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
19030 a temporary if taking the address of something that is neither
19031 reference, declaration, or constant, since the gimplifier
19032 can't handle that case.
19034 2005-11-17 Laurent Guerby <laurent@guerby.net>
19037 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
19039 2005-11-16 Richard Guenther <rguenther@suse.de>
19041 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
19043 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
19046 * raise-gcc.c: Add missing stdarg.h include.
19048 2005-11-16 Richard Guenther <rguenther@suse.de>
19050 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
19051 (ada/misc.o): Likewise.
19053 2005-11-14 Thomas Quinot <quinot@adacore.com>
19055 * g-soccon.ads: Minor reformatting. Update comments.
19057 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
19058 gain visibility on the declaration of struct timeval.
19060 * g-soccon-freebsd.ads,
19061 g-soccon-darwin.ads,
19062 g-soccon-tru64.ads,
19066 g-soccon-solaris.ads,
19068 g-soccon-mingw.ads,
19069 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
19071 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
19072 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
19073 g-soccon-linux-x86.ads: New files.
19075 * g-socthi-mingw.adb:
19076 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
19078 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
19079 (time_t, suseconds_t): New types constructed to match the tv_sec
19080 and tv_usec fields of C struct timeval.
19081 (Timeval): Construct structure in terms of the new types.
19082 (Host_Errno): New function (imported from socket.c), returns last hosts
19085 * g-socthi-vxworks.adb: Add error handling circuitry.
19087 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
19088 components of struct timeval.
19089 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
19090 (Check_Selector): In error conditions, clear internal socket sets to
19091 avoid a memory leak.
19092 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
19093 Send_Timeout, Receive_Timeout.
19095 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
19096 the tv_sec and tv_usec fields of C struct timeval.
19097 (Timeval): Construct structure in terms of the new types.
19098 (Host_Errno): New function (imported from socket.c), returns last hosts
19101 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
19102 hosts database last error code.
19104 * gen-soccon.c: Complete value expansion should not be performed on
19105 TARGET, as it has the form of a math expression, and some components
19106 may be platform-defined macros.
19107 For VxWorks, generate the OK and ERROR values.
19108 New constants giving the sizes of the components of C struct timeval.
19110 2005-11-14 Robert Dewar <dewar@adacore.com>
19111 Ed Schonberg <schonberg@adacore.com>
19114 * types.ads: Include All_Checks in Suppress_Array
19116 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
19117 not(a=b), since we no longer do this rewriting, and hence it is not
19119 (Elaboration_Checks_Suppressed): Add special casing to
19120 deal with different cases of static and dynamic elaboration checks (all
19121 checks does not count in the first case, but does in the second).
19122 (Expr_Known_Valid): Do not assume that the result of any arbitrary
19123 function call is valid, since this is not the case.
19124 (Ensure_Valid): Do not apply validity check to a real literal
19125 in a universal or fixed context
19127 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
19128 elementary types using the operator in standard. It is cleaner not to
19129 modify the programmers intent, especially in the case of floating-point.
19130 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
19131 it did not matter because we always rewrote a/=b to not(a=b).
19132 (Expand_Allocator_Expression): For an allocator expression whose nominal
19133 subtype is an unconstrained packed type, convert the expression to its
19134 actual constrained subtype.
19135 Implement warning for <= or >= where < or > not possible
19136 Fix to Vax_Float tests (too early in many routines, causing premature
19137 Vax_Float expansions.
19139 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
19140 to be used with packages and generic packages as well as with
19142 (Suppress): Set All_Checks, but not Elaboration_Check, for case
19143 of pragma Suppress (All_Checks)
19144 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
19145 a string literal for precise control over warnings.
19146 Avoid raise of pragma in case of unrecognized pragma and just return
19149 * sem_prag.ads: Minor reformatting
19151 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
19152 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19153 Switch. Do not handle any exception.
19154 Include -gnatwx as part of -gnatg (warn on redundant parens)
19155 Allow optional = after -gnatm
19156 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
19157 longer sets Elaboration_Checks.
19158 Code to set warning mode moved to Sem_Warn
19159 so that it can be shared by pragma processing.
19161 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
19164 * s-taprop-solaris.adb:
19165 Change some <= to =, to avoid new warning
19167 * a-exexda.adb, prj-proc.adb:
19168 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
19169 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
19171 2005-11-14 Robert Dewar <dewar@adacore.com>
19173 * exp_vfpt.adb: Handle /= case
19174 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
19175 so that we do not get duplicate scaling for fixed point conversions.
19177 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
19179 2005-11-14 Matthew Gingell <gingell@adacore.com>
19181 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
19182 Increase default priority on Lynx from 15 to 17, and meet the Ada
19183 requirement that Default_Priority be ((Priority'First +
19184 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
19186 2005-11-14 Vincent Celier <celier@adacore.com>
19188 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19189 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
19190 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
19191 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
19192 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
19193 mlib-tgt-lynxos.adb (DLL_Prefix): New function
19195 2005-11-14 Doug Rupp <rupp@adacore.com>
19197 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
19200 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19202 * s-traces-default.adb, s-trafor-default.ads,
19203 s-tratas-default.adb: Fix compilation errors.
19205 2005-11-14 Jose Ruiz <ruiz@adacore.com>
19207 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
19208 raising the exception so the memory used is freed.
19210 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19212 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
19213 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
19214 (convert_address): Update comments and list of platforms using this.
19216 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
19219 2005-11-14 Pascal Obry <obry@adacore.com>
19220 Vincent Celier <celier@adacore.com>
19222 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
19225 * memroot.adb: Remove redundant with/use clause on
19226 System.Storage_Elements.
19228 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19230 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
19231 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
19232 related code to a-exexpr.adb
19233 (Save_Occurrence_And_Private): Move GCC EH related code to
19235 (Raise_Current_Excep): Add new variable Id with pragma
19236 volatile, to ensure that the variable lives on stack.
19238 * a-exexpr-gcc.adb, raise-gcc.c: New file.
19240 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
19242 Move GCC EH related code to a-exexpr-gcc.adb
19244 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
19246 Split the Linux version of g-soccon into separate variants for 32 and 64
19248 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
19249 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
19250 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
19251 of host variable $(RANLIB_FLAGS).
19252 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
19253 Code clean up: remove unused/obsolete targets.
19254 (EH_MECHANISM): New variable introduced to differenciate between the
19255 two EH mechanisms statically.
19256 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
19257 (LIBGNAT_OBJS): Add raise-gcc.o
19258 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
19259 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19260 supports VxWorks 6 RTPs.
19261 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
19262 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19264 * raise.c: Move all GCC EH-related routines to raise-gcc.c
19266 2005-11-14 Jose Ruiz <ruiz@adacore.com>
19268 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
19269 deferral level, when abort is not allowed, to a later stage (the
19271 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
19272 it will not get changed by the generated code. It was previously done
19275 2005-11-14 Thomas Quinot <quinot@adacore.com>
19276 Olivier Hainque <hainque@adacore.com>
19277 Eric Botcazou <ebotcazou@adacore.com>
19280 Factor common code to build a storage type for an unconstrained object
19281 from a fat or thin pointer type and a constrained object type.
19282 (annotate_value): Handle BIT_AND_EXPR.
19283 (annotate_rep): Don't restrict the back annotation of inherited
19284 components to the type_annotate_only case.
19285 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
19286 we are not defining the type.
19287 <E_Record_Type>: Likewise.
19288 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
19289 to get advantage of the new maybe_stabilize_reference interface, to
19290 ensure that what we reference is indeed stabilized instead of relying
19291 on assumptions on what the stabilizer does.
19292 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
19293 type imported through a limited_with clause, use its non-limited view.
19294 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
19296 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
19297 of #if sections + explicit comparisons of convention identifiers.
19298 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
19299 before early-returning for certain types when code generation is
19301 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
19302 nullification of gnu_expr we do for objects with address clause and
19303 that we are not defining.
19304 (elaborate_expression_1): Do not create constants when creating
19305 variables needed by the debug info: the dwarf2 writer considers that
19306 CONST_DECLs is used only to represent enumeration constants, and emits
19308 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
19309 object with an address clause into an indirect reference, drop the
19310 initializing expression.
19312 (STACK_CHECK_BUILTIN): Delete.
19313 (STACK_CHECK_PROBE_INTERVAL): Likewise.
19314 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
19315 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
19316 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
19317 corresponding to the renamed object as ignored for debugging purposes.
19319 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
19320 related): For a prefix that is a dereference of a fat or thin pointer,
19321 if there is an actual subtype provided by the front-end, use that
19322 subtype to build an actual type with bounds template.
19323 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
19324 is provided by the front-end, use that subtype to compute the size of
19325 the deallocated object.
19326 (gnat_to_gnu): When adding a statement into an elaboration procedure,
19327 check for a potential violation of a No_Elaboration_Code restriction.
19328 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19329 with extra arguments to control whether to recurse through non-values
19330 and to let the caller know if the stabilization has succeeded.
19331 (gnat_stabilize_reference): Now a simple wrapper around
19332 maybe_stabilize, for common uses without restriction on lvalues and
19333 without need to check for the success indication.
19334 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
19335 pass false instead of 0 as the FORCE argument which is a bool.
19336 (Identifier_to_gnu): Remove checks ensuring that an renamed object
19337 attached to a renaming pointer has been properly stabilized, as no such
19338 object is attached otherwise.
19339 (call_to_gnu): Invoke create_var_decl to create the temporary when the
19340 function uses the "target pointer" return mechanism.
19341 Reinstate conversion of the actual to the type of the formal
19342 parameter before any other specific treatment based on the passing
19343 mechanism. This turns out to be necessary in order for PLACEHOLDER
19344 substitution to work properly when the latter type is unconstrained.
19346 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
19348 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19349 with extra arguments to control whether to recurse through non-values
19350 and to let the caller know if the stabilization has succeeded.
19352 * utils2.c (gnat_build_constructor): Only sort the fields for possible
19353 static output of record constructor if all the components are constant.
19354 (gnat_build_constructor): For a record type, sort the list of field
19355 initializers in increasing bit position order.
19356 Factor common code to build a storage type for an unconstrained object
19357 from a fat or thin pointer type and a constrained object type.
19358 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
19359 types variants, and process special cases of VIEW_CONVERT expressions
19360 as their NOP_EXPR counterpart to ensure we get to the
19361 CORRESPONDING_VARs associated with CONST_DECls.
19362 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
19363 on the right-hand side.
19365 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
19367 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
19368 are converting back to its original type.
19369 (convert) <JM input>: Fallthrough regular conversion code instead of
19370 extracting the object if converting to a type variant.
19371 (create_var_decl): When a variable has an initializer requiring code
19372 generation and we are at the top level, check for a potential violation
19373 of a No_Elaboration_Code restriction.
19374 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
19375 SIZE and SIZE_UNIT which we need for later back-annotations.
19376 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
19377 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
19378 is an unchecked union.
19379 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
19380 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
19381 main variant, just replace the VIEW_CONVERT_EXPR.
19382 <UNION_TYPE>: Revert 2005-03-02 change.
19384 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
19386 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
19388 2005-11-14 Matthew Heaney <heaney@adacore.com>
19390 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
19391 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
19392 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
19393 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
19394 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
19395 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
19396 Compiles against the spec for ordered maps described in sections
19397 A.18.6 of the most recent (August 2005) AI-302 draft.
19399 2005-11-14 Olivier Hainque <hainque@adacore.com>
19401 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
19402 to ensure bias adjustments take place when need be and to prevent
19403 occurrences of intermediate overflows.
19405 2005-11-14 Matthew Gingell <gingell@adacore.com>
19406 Olivier Hainque <hainque@adacore.com>
19408 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
19411 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
19412 tracebacks on ia64 HP-UX and provide explanatory comment.
19413 Enable backtraces on ia64 GNU/Linux.
19414 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
19415 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
19417 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
19418 Javier Miranda <miranda@adacore.com>
19420 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
19421 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
19422 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
19423 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
19425 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
19426 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
19429 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
19430 subprogram that generates the external name associated with a
19431 secondary dispatch table.
19432 (Get_Secondary_DT_External_Name): New subprogram that generates the
19433 external name associated with a secondary dispatch table.
19435 2005-11-14 Emmanuel Briot <briot@adacore.com>
19437 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
19438 line in the ALI file to include both an instantiation reference, and a
19441 2005-11-14 Vincent Celier <celier@adacore.com>
19443 * clean.adb (Check_Project): Look for Ada code in extending project,
19444 even if Ada is not specified as a language.
19445 Use new function DLL_Prefix for DLL_Name
19446 (Clean_Interface_Copy_Directory): New procedure
19447 (Clean_Library_Directory): New procedure
19448 (Clean_Directory): Remove procedure, no longer used
19449 (Clean_Project): Do not delete any file in an externally built project
19451 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
19452 directory of an extending project, even when there are no Ada source
19454 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
19455 (Set_Ada_Paths.Add.Recursive_Add): Ditto
19457 * mlib-prj.adb (Check_Library): For all library projects, get the
19458 library file timestamp.
19459 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
19460 (Build_Library): Use new function DLL_Prefix for the DLL_Name
19461 (Clean): Remove procedure, no longer used
19462 (Ultimate_Extension_Of): New function
19463 (Build_Library): When cleaning the library directory, only remove an
19464 existing library file and any ALI file of a source of the project.
19465 When cleaning the interface copy directory, remove any source that
19466 could be a source of the project.
19468 * prj.ads, prj.adb (Project_Empty): Add values of new components
19469 Library_TS and All_Imported_Projects.
19470 (Project_Empty): Add values for new components of Project_Data:
19471 Library_ALI_Dir and Display_Library_ALI_Dir
19473 * prj-attr.adb: New project level attribute name Library_ALI_Dir
19475 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
19476 attribute Library_ALI_Dir.
19477 (Check_Library_Attributes): The library directory cannot be the same as
19478 any source directory of the project tree.
19479 (Check_Stand_Alone_Library): The interface copy directory cannot be
19480 the same as any source directory of the project tree.
19482 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
19483 all temporary files.
19485 2005-11-14 Robert Dewar <dewar@adacore.com>
19486 Ed Schonberg <schonberg@adacore.com>
19488 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19489 (Check_Elab_Call): A call within a protected body is never an
19490 elaboration call, and does not require checking.
19491 (Same_Elaboration_Scope): Take into account protected types for both
19493 (Activate_Elaborate_All_Desirable): New procedure
19495 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
19498 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
19499 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
19501 * lib-writ.ads, lib-writ.adb:
19502 Implement new AD/ED for Elaborate_All/Elaborate desirable
19503 Use new Elaborate_All_Desirable flag in N_With_Clause node
19505 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
19506 N_Free_Statement nodes.
19507 Define new class N_Subprogram_Instantiation
19508 Add Elaborate_Desirable flag to N_With_Clause node
19509 Add N_Delay_Statement (covering two kinds of delay)
19511 * debug.adb: Introduce d.f flag for compiler
19512 Add -da switch for binder
19514 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19515 Cyrille Comar <comar@adacore.com>
19517 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
19518 for task component, in the case of a limited aggregate. The enclosed
19519 object declaration will create it earlier. Otherwise, in the case of a
19520 nested aggregate, the object may appear in the wrong scope.
19521 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
19522 (Gen_Assign): If the component being assigned is an array type and the
19523 expression is itself an aggregate, wrap the assignment in a block to
19524 force finalization actions on the temporary created for each row of the
19526 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
19527 structures are initialized after all discriminants are set so that
19528 they can be accessed even when their offset is dynamic.
19530 2005-11-14 Robert Dewar <dewar@adacore.com>
19531 Hristian Kirtchev <kirtchev@adacore.com>
19533 * sem_attr.adb: Implement Machine_Rounding attribute
19534 (Analyze_Access_Attribute): The access attribute may appear within an
19535 aggregate that has been expanded into a loop.
19536 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
19537 'Terminated whenever the prefix is of a task interface class-wide type.
19538 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
19539 the prefix is of a task interface class-wide type.
19541 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
19544 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
19545 Remove pragma Inline for [Unaligned_]Valid.
19546 Add comments that Valid routines do not work for Vax_Float
19548 * exp_attr.adb: Implement Machine_Rounding attribute
19550 * snames.h: Add entry for Machine_Rounding attribute
19552 2005-11-14 Javier Miranda <miranda@adacore.com>
19553 Robert Dewar <dewar@adacore.com>
19554 Hristian Kirtchev <kirtchev@adacore.com>
19556 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
19557 and related): For a prefix that is an explicit dereference of an
19558 access to unconstrained packed array type, annotate the dereference
19559 with an actual subtype so GIGI can make a correct size computation.
19560 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
19561 'Unrestricted_Access, if the designated type is an interface we
19562 add a type conversion to force the displacement of the pointer
19563 to the secondary dispatch table.
19564 Use Universal_Real instead of Long_Long_Float when we need a high
19565 precision float type for the generated code (prevents gratuitous
19566 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
19567 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
19568 'Terminated for task interface class-wide objects. Generate a call to
19569 the predefined dispatching routine used to retrieve the _task_id from
19570 a task corresponding record.
19571 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
19573 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19574 (Check_Dispatching_Operation): Protect the frontend againts
19575 previously detected errors.
19577 * Makefile.rtl: Add new instantiations of system.fat_gen
19579 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
19580 Change name of instantiated package for better consistency
19581 with newly added system.fat_gen instantiations.
19583 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
19584 s-fvagfl.ads: New files.
19586 2005-11-14 Cyrille Comar <comar@adacore.com>
19587 Thomas Quinot <quinot@adacore.com>
19589 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
19590 assignment of a value of a tagged type that has been rewritten to a
19591 block statement, it is known by construction that no checks are
19592 necessary for the statements within the block: analyze it with checks
19594 (Expand_N_If_Statement): When killing a dead then-branch in an
19595 if-statement that has elsif_parts, recompute the Current_Value node
19596 for any entity whose value is known from the condition of the first
19598 (Expand_N_Return_Statement): When returning a mutable record, convert
19599 the return value into its actual subtype in order to help the backend
19600 to return the actual size instead of the maximum. This is another
19601 aftermath of not returning mutable records on the sec-stack anymore.
19603 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
19604 handling of error msg for suspicious reverse range iteration.
19605 (Check_Possible_Current_Value_Condition): Move declaration from body to
19606 spec, to allow this subprogram to be called from exp_ch5.
19608 2005-11-14 Thomas Quinot <quinot@adacore.com>
19610 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
19611 generate a set of nested array aggregates instead of a single flat
19612 aggregate for multi-dimensional arrays.
19614 2005-11-14 Pascal Obry <obry@adacore.com>
19616 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
19617 by spawnve is a process handle, no need to convert. Add a parameter
19618 close to control wether the process handle must be closed.
19619 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
19620 a process handle, not need to convert.
19621 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
19623 * g-expect.adb: (Kill): Document the new close parameter.
19624 (Close): Do not release the process handle in the kill there as
19625 waitpid() is using it.
19626 (Send_Signal): Release the process handle.
19628 2005-11-14 Robert Dewar <dewar@adacore.com>
19630 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
19631 need a high precision float type for the generated code (prevents
19632 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19635 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
19636 need a high precision float type for the generated code (prevents
19637 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19639 (Expand_Width_Attribute): In configurable run-time, the attribute is not
19640 allowed on non-static enumeration subtypes. Force a load error to emit
19641 the correct diagnostic.
19643 2005-11-14 Thomas Quinot <quinot@adacore.com>
19644 Robert Dewar <dewar@adacore.com>
19645 Ed Schonberg <schonberg@adacore.com>
19647 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
19648 subtype to compute the size of the designated object at run-time,
19649 create such a subtype and store it in the Actual_Designated_Subtype
19650 attribute of the N_Free_Statement.
19651 Generate itype for classwide designated object in both cases of
19652 user-specified storage pool: specific and class-wide, not only in the
19654 Raise CE when trying to set a not null access type object to null.
19655 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
19656 an explicit loop, because freeze nodes make its position variable.
19658 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
19661 2005-11-14 Javier Miranda <miranda@adacore.com>
19663 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
19664 Build_Stream_Procedure): Add the null-excluding attribute to the first
19666 This has no semantic meaning under Ada95 mode but it is a
19667 requirement under Ada05 mode.
19669 * par-ch3.adb (P_Access_Definition): Addition of warning message if
19670 the null exclusion is used under Ada95 mode
19671 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
19672 (P_Access_Definition): Remove assertion that forbids the use of
19673 the null-exclusion feature in Ada95.
19675 2005-11-14 Robert Dewar <dewar@adacore.com>
19677 * impunit.adb: Exclude container helper units not intended for use by
19680 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19682 * freeze.adb (Freeze_Entity): For an access formal that is an access
19683 to subprogram, freeze the anonymous subprogram type at the same time,
19684 to prevent later freezing in the wrong scope, such as the enclosing
19686 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
19687 subprogram whenever available.
19689 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19692 * gnatvsn.ads (Library_Version): Bump to 4.1
19694 2005-11-14 Robert Dewar <dewar@adacore.com>
19696 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
19697 Storage_Offset to avoid wrap around causing invalid results.
19699 2005-11-14 Pascal Obry <obry@adacore.com>
19701 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
19703 (Scan_Bind_Arg): Fail with an error message if -M option is used
19704 on a native compiler.
19706 2005-11-14 Robert Dewar <dewar@adacore.com>
19707 Vincent Celier <celier@adacore.com>
19709 * gprep.adb: Implement -C switch to scan comments
19711 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
19713 * scans.ads: Comment updates (including new use of Tok_Comment in
19716 * opt.ads: Add documentation for flags that are used by gprmake,
19717 currently and in the next version of gprmake.
19718 (Verbosity_Level): New variable
19719 Add Replace_In_Comments switch
19721 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
19723 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
19725 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19727 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
19728 message, friendlier.
19730 2005-11-14 Robert Dewar <dewar@adacore.com>
19732 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
19734 2005-11-14 Doug Rupp <rupp@adacore.com>
19736 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
19738 2005-11-14 Robert Dewar <dewar@adacore.com>
19740 * interfac.ads: Change declarations of IEEE float types so that we no
19741 longer need a separate version of this package for VMS.
19743 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19745 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
19746 internal entity created for the declaration of a child subprogram body
19747 with no spec as coming from source, to generate proper cross-reference
19750 2005-11-14 Vincent Celier <celier@adacore.com>
19752 * make.adb (Compile_Sources): Change verbose message to minimum
19753 verbosity level High for "is in an Ada library", "is a read-only
19754 library" and "is an internal library",
19755 (Create_Binder_Mapping_File): Path name of ALI file for library project
19756 must include the library directory, not the object directory.
19757 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
19758 for new switches -vl, -vm and -vh.
19759 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
19760 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
19761 (Compile_Sources): Do not attempt to compile if an ALI file is missing
19762 in a project that is externally built.
19763 (Compute_All_Imported_Projects): New procedure
19764 (Gnatmake): Check if importing libraries should be regenerated because
19765 at least an imported library is more recent.
19766 (Initialize): For each project compute the list of the projects it
19767 imports directly or indirectly.
19768 (Add_Library_Search_Dir): New procedure, used in place of
19769 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19770 put in the search paths.
19771 (Add_Source_Search_Dir): New procedure, used in place of
19772 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19773 put in the search paths.
19774 (Mark_Directory): Resolve the absolute path the directory before marking
19777 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
19778 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19779 Switch. Do not handle any exception.
19780 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
19781 so that the switch is recognized as valid.
19782 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
19784 2005-11-14 GNAT Script <nobody@adacore.com>
19786 * Make-lang.in: Makefile automatically updated
19788 2005-11-14 Pascal Obry <obry@adacore.com>
19790 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
19792 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
19793 In both cases the last argument was dropped.
19795 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
19797 * namet.h: (Column_Numbe): New type.
19798 (Get_Column_Number): Define to sinput__get_column_number.
19799 (Instantiation): Define to sinput__instantiation.
19800 (Get_Column_Number): Declare.
19801 (Instantiation): Likewise.
19803 2005-11-14 Robert Dewar <dewar@adacore.com>
19805 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
19806 syntax, which could cause compiler hangs.
19808 2005-11-14 Vincent Celier <celier@adacore.com>
19810 * prj-ext.adb: Take into account new environment variable
19811 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
19813 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
19814 normalize its path name, making it absolute and resolving symbolic
19815 links, and replace the original if resolved path is different.
19817 2005-11-14 Vincent Celier <celier@adacore.com>
19819 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
19820 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
19822 2005-11-14 Emmanuel Briot <briot@adacore.com>
19824 * prj-pp.adb (Print): Do not output the with statement if the
19825 associated name is empty, which happens for virtual extending projects.
19826 (Print): Preserve the "extends all" attribute when printing the project.
19828 * prj-tree.ads (String_Value_Of): Add comment about returned value for
19829 a virtual extending project.
19831 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19833 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
19834 rhs of an assignment even if the type is unconstrained, when the
19835 context is non-expanding.
19836 In an inlined body, if the context type is private,
19837 resolve with its full view, which must be a composite type.
19839 2005-11-14 Robert Dewar <dewar@adacore.com>
19840 Ed Schonberg <schonberg@adacore.com>
19842 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19843 Do not give obsolescent warning on with of subprogram (since we
19845 (Analyze_With_Clause): Add test for obsolescent package
19846 (Install_Context_Clauses): If the unit is the body of a child unit, do
19847 not install twice the private declarations of the parents, to prevent
19848 circular lists of Use_Clauses in a parent.
19849 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
19850 compiling body of child unit.
19851 Use new class N_Subprogram_Instantiation
19852 (Expand_With_Clause): If this is a private with_clause for a child unit,
19853 appearing in the context of a package declaration, then the implicit
19854 with_clauses generated for parent units are private as well.
19855 (License_Check): Do not generate message if with'ed unit is internal
19857 2005-11-14 Gary Dismukes <dismukes@adacore.com>
19858 Ed Schonberg <schonberg@adacore.com>
19859 Thomas Quinot <quinot@adacore.com>
19861 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
19862 names are internal, because they will not have a corresponding partner
19863 in the actual package.
19864 (Analyze_Formal_Package): Move the setting of the formal package spec's
19865 Generic_Parent field so that it occurs prior to analyzing the package,
19866 to allow proper operation of Install_Parent_Private_Declarations.
19867 (Analyze_Package_Instantiation): Set the instantiated package entity's
19868 Package_Instantiation field.
19869 (Get_Package_Instantiation_Node): Move declaration to package spec.
19870 Retrieve the N_Package_Instantiation node when the Package_Instantiation
19872 (Check_Generic_Child_Unit): Within an inlined call, the only possible
19873 instantiation is Unchecked_Conversion, for which no parents are needed.
19874 (Inline_Instance_Body): Deinstall and record the use_clauses for all
19875 parent scopes of a scope being removed prior to inlining an instance
19877 (Analyze_Package_Instantiation): Do not perform front-end inlining when
19878 the current context is itself an instance within a non-instance child
19879 unit, to prevent scope stack errors.
19880 (Save_References): If the node is an aggregate that is an actual in a
19881 call, rewrite as a qualified expression to preserve some type
19882 information, to resolve possible ambiguities in the instance.
19883 (Instance_Parent_Unit): New global variable to record the ultimate
19884 parent unit associated with a generic child unit instance (associated
19885 with the existing Parent_Unit_Visible flag).
19886 (type Instance_Env): New component Instance_Parent_Unit for stacking
19887 parents recorded in the global Instance_Parent_Unit.
19888 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
19890 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
19891 it's not a top-level unit, and only do this if Instance_Parent_Unit is
19892 not already set. Replace test of Is_Child_Unit with test of parent's
19893 scope against package Standard. Add comments and a ??? comment.
19894 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
19895 on a child instance parent to test that the parent equals
19896 Instance_Parent rather than simply checking that the unit is not a
19898 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
19899 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
19900 a formal interface are ancestors of the corresponding actual.
19901 (Validate_Formal_Interface_Type): Additional legality checks.
19902 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
19903 interface types with ancestors.
19904 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
19905 to diagnose attempts to use generic within its own declaration.
19907 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19908 Javier Miranda <miranda@adacore.com>
19910 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
19912 (Build_Private_Derived_Type): The entity of the created full view of the
19913 derived type does not come from source. If after installing the private
19914 declarations of the parent scope the parent is still private, use its
19915 full view to construct the full declaration of the derived type.
19916 (Build_Derived_Record_Type): Relax the condition that controls the
19917 execution of the check that verifies that the partial view and
19918 the full view agree in the set of implemented interfaces. In
19919 addition, this test now only takes into account the progenitors.
19920 (Derive_Interface_Subprograms): No need to derive subprograms
19921 of ancestors that are interfaces.
19922 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
19924 Change name Is_Package to Is_Package_Or_Generic_Package
19925 (Complete_Subprograms_Derivation): Handle the case in which the full
19926 view is a transitive derivation of the ancestor of the partial view.
19927 (Process_Full_View): Rename local subprogram Find_Interface_In_
19928 Descendant to Find_Ancestor_Interface to leave the code more clear.
19929 Remove wrong code that avoids the generation of an error message
19930 when the immediate ancestor of the partial view is an interface.
19931 In addition some minor reorganization of the code has been done to
19932 leave it more clear.
19933 (Analyze_Type_Declaration): If type has previous incomplete tagged
19934 partial view, inherit properly its primitive operations.
19935 (Collect_Interfaces): Make public, for analysis of formal
19937 (Analyze_Interface_Declaration): New procedure for use for regular and
19938 formal interface declarations.
19939 (Build_Derived_Record_Type): Add support for private types to the code
19940 that checks if a tagged type implements abstract interfaces.
19941 (Check_Aliased_Component_Type): The test applies in the spec of an
19943 (Access_Type_Declaration): Clean up declaration of malformed type
19944 declared as an access to its own classwide type, to prevent cascaded
19946 (Collect_Interfaces): For private extensions and for derived task types
19947 and derived protected types, the parent may be an interface that must
19948 be included in the interface list.
19949 (Access_Definition): If the designated type is an interface that may
19950 contain tasks, create Master_Id for it before analyzing the expression
19951 of the declaration, which may be an allocator.
19952 (Record_Type_Declaration): Set properly the interface kind, for use
19953 in allocators, the creation of master id's for task interfaces, etc.
19955 2005-11-14 Javier Miranda <miranda@adacore.com>
19956 Ed Schonberg <schonberg@adacore.com>
19958 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
19959 omitted in case of stream attribute subprograms.
19960 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
19961 appear immediately after a subprogram body, when there is no previous
19962 subprogram declaration.
19963 Change name Is_Package to Is_Package_Or_Generic_Package
19964 (Process_Formals): A non null qualifier on a non null named access
19965 type is not an error, and is a warning only if Redundant_Constructs
19968 2005-11-14 Gary Dismukes <dismukes@adacore.com>
19969 Ed Schonberg <schonberg@adacore.com>
19971 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
19972 nested within Analyze_Package_Specification to install the private
19973 declarations and use clauses within each of the parent units of a
19974 package instance of a generic child package.
19975 (Analyze_Package_Specification): When entering a private part of a
19976 package associated with a generic instance or formal package, the
19977 private declarations of the parent must be installed (by calling new
19978 procedure Install_Parent_Private_Declarations).
19979 Change name Is_Package to Is_Package_Or_Generic_Package
19980 (Preserve_Full_Attributes): For a synchronized type, the corresponding
19981 record is absent in a generic context, which does not indicate a
19984 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19986 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
19987 not try to rewrite a renamed stream attribute, because the operations
19988 on the type may not have been generated.
19989 Handle properly a renaming_as_body generated for a stream operation
19990 whose default is abstract because the object type itself is abstract.
19991 (Find_Type): If the type is incomplete and appears as the prefix of a
19992 'Class reference, it is tagged, and its list of primitive operations
19993 must be initialized properly.
19994 (Chain_Use_Clauses): When chaining the use clauses that appear in the
19995 private declaration of a parent unit, prior to compiling the private
19996 part of a child unit, find on the scope stack the proper parent entity
19997 on which to link the use clause.
19998 (Note_Redundant_Use): Emit a warning when a redundant use clause is
20000 (Analyze_Object_Renaming): An attribute reference is not a legal object
20001 if it is not a function call.
20003 2005-11-14 Robert Dewar <dewar@adacore.com>
20004 Ed Schonberg <schonberg@adacore.com>
20006 * sem_eval.adb: Implement d.f flag
20007 (Subtype_Statically_Match): A generic actual type has unknown
20008 discriminants when the corresponding actual has a similar partial view.
20009 If the routine is called to validate the signature of an inherited
20010 operation in a child instance, the generic actual matches the full view,
20012 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20013 Ed Schonberg <schonberg@adacore.com>
20014 Robert Dewar <dewar@adacore.com>
20015 Thomas Quinot <quinot@adacore.com>
20017 * sem_res.adb (Resolve_Call): Provide a better error message whenever
20018 a procedure call is used as a select statement trigger and is not an
20019 entry renaming or a primitive of a limited interface.
20020 (Valid_Conversion): If the operand has a single interpretation do not
20021 remove address operations.
20022 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
20023 statement to inhibit warning.
20024 (Resolve_Unary_Op): Do not produce a warning when
20025 processing an expression of the form -(A mod B)
20026 Use Universal_Real instead of Long_Long_Float when we need a high
20027 precision float type for the generated code (prevents gratuitous
20028 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20029 (Resolve_Concatenation_Arg): Improve error message when argument is an
20030 ambiguous call to a function that returns an array.
20031 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
20032 there is an implicit operator in the given scope if we are within an
20033 instance: legality check has been performed on the generic.
20034 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
20035 after resolving operand, to avoid false warnings on overloaded calls.
20037 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20038 Javier Miranda <miranda@adacore.com>
20041 * sem_type.adb (Covers): In an inlined body, a composite type matches
20042 a private type whose full view is a composite type.
20043 (Interface_Present_In_Ancestor): Protect the frontend against
20044 previously detected errors to ensure that its compilation
20045 with assertions enabled gives the same output that its
20046 compilation without assertions.
20047 (Interface_Present_In_Ancestor): Add support for private types.
20048 Change name In_Actual to In_Generic_Actual (clean up)
20049 (Disambiguate): New predicate In_Actual, to recognize expressions that
20050 appear in the renaming declaration generated for generic actuals, and
20051 which must be resolved in the outer context.
20053 2005-11-14 Robert Dewar <dewar@adacore.com>
20054 Thomas Quinot <quinot@adacore.com>
20055 Hristian Kirtchev <kirtchev@adacore.com>
20056 Ed Schonberg <schonberg@adacore.com>
20058 * sem_util.ads, sem_util.adb: Change name Is_Package to
20059 Is_Package_Or_Generic_Package.
20060 (Check_Obsolescent): New procedure.
20061 (Set_Is_Public): Remove obsolete junk test.
20062 (Set_Public_Status): Do not set Is_Public on an object whose declaration
20063 occurs within a handled_sequence_of_statemets.
20064 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
20065 for a parameterless procedure.
20066 (Enter_Name): Recognize renaming declarations created for private
20067 component of a protected type within protected operations, so that
20068 the source name of the component can be used in the debugger.
20070 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20071 Robert Dewar <dewar@adacore.com>
20073 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
20074 of a generic subprogram are not visible outside the body.
20075 (Set_Warning_Switch): New procedure (code to set warning mode moved
20076 here from Switch.C so that it can be shared by pragma processing.
20077 (Check_References): Special case warning for non-modified non-imported
20079 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
20080 form with a string literal argument
20082 2005-11-14 Javier Miranda <miranda@adacore.com>
20084 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
20086 (Write): Addition of "not null" to the anonymous access.
20087 (Read): Addition of "not null" to the anonymous access.
20088 (Write): Addition of "not null" to the anonymous access.
20090 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
20091 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
20092 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
20093 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
20094 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
20095 "not null" to the anonymous access.
20097 2005-11-14 Robert Dewar <dewar@adacore.com>
20099 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
20102 2005-11-14 Vincent Celier <celier@adacore.com>
20104 * switch.adb (Bad_Switch): New procedure
20105 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
20106 message when in error.
20108 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
20109 Too_Many_Output_Files): Remove declarations, no longer used.
20110 (Scan_Nat): New parameter Switch
20112 (Bad_Switch): New procedure
20114 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
20115 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
20116 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
20117 to Osint.Fail. Do not handle any exception.
20119 2005-11-14 Vincent Celier <celier@adacore.com>
20121 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
20122 designates a non existent directory.
20124 2005-11-14 Robert Dewar <dewar@adacore.com>
20126 * xgnatugn.adb: Replace invalid membership test by 'Valid
20128 2005-11-14 Vincent Celier <celier@adacore.com>
20130 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
20131 there is no object directory.
20133 2005-11-14 Robert Dewar <dewar@adacore.com>
20135 * usage.adb: Minor adjustment to output format, use nn instead of nnn
20136 (so that -gnateInnn does not run into next column)
20138 2005-11-14 Ed Falis <falis@adacore.com>
20140 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
20143 2005-11-14 Cyrille Comar <comar@adacore.com>
20145 * s-chepoo.ads: Add comments on Dereference.
20146 Remove unnecessary inherited abstract primitives.
20149 2005-11-14 Robert Dewar <dewar@adacore.com>
20151 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
20152 node parameter, not needed, since it is available as Declaration_Node.
20154 2005-11-14 Geert Bosch <bosch@adacore.com>
20156 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
20157 grammatically correct.
20159 2005-11-14 Vincent Celier <celier@adacore.com>
20161 * s-fileio.ads: Correct spelling error in comment
20163 2005-11-14 Cyrille Comar <comar@adacore.com>
20164 Robert Dewar <dewar@adacore.com>
20165 Vincent Celier <celier@adacore.com>
20166 Ben Brosgol <brosgol@adacore.com>
20167 Jose Ruiz <ruiz@adacore.com>
20168 Pascal Obry <obry@adacore.com>
20171 Document that -fstack-check is needed for strict compliance with the
20172 Ada 95 Reference Manual.
20173 Correct reference to VAX systems to meet HP guidelines
20174 Add documentation for new gnatmake switches -vl, -vm and -vh
20175 Replace DEC Ada by HP Ada
20176 Replace DIGITAL by HP
20177 Remove empty section on tools in compatibility section
20178 Clarify the Windows convention semantics.
20179 Document the Win32 calling convention.
20180 The Stdcall, Win32 and DLL convention are synonyms.
20181 Add a note in -gnatR description about zero size record components
20182 Note on new >= and <= warnings for -gnatwc
20183 Document that equal sign after -gnatm is optional.
20184 Note that strip is working fine on DLL built with a Library
20185 Project. The restriction apply only to DLL built with gnatdll.
20186 Update section about the way to debug a DLL.
20187 Update information about the DLL convention.
20188 Document -C switch for gnatprep
20189 Document new attribute Library_ALI_Dir
20190 Update elaboration doc to include implicit Elaborate pragmas now
20191 generated for subprogram instantiations.
20192 Document limitation on executable names that include spaces for --GCC,
20193 --GNATBIND, and --GNATLINK switches.
20194 Document that -w causes -gnatws to be added at start of gcc switches
20196 * gnat_rm.texi: Document that -mieee is needed for generating infinite
20197 and NaN values in case of overflow on machines that are not fully
20198 compliant with the IEEE floating-point standard.
20199 Create a section describing the set of compiler options needed for
20200 strict compliance with the Ada 95 Reference Manual.
20201 Add documentation for pragma Obsolescent applied to a package
20202 Clarify potential issues of mixed language programs related to the
20203 I/O buffering enabling in the elaboration of the GNAT runtime.
20204 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
20205 This documentation only patch adds extra documentsion for pragma
20206 Restrictions (No_Elaboration_Code), explaining why it is not possible
20207 to document this restriction in terms of allowed source constructs.
20208 Document string literal form of pragma Warnings
20209 Document new attribute Library_ALI_Dir
20210 Add documentation on stable attributes in project files that was missing
20212 * gnat-style.texi: Indicate that paragraphs within a single comment
20213 should be separated by empty comment lines
20215 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
20218 * bindusg.adb: Minor cleanup, put -m before -M for consistency
20220 2005-11-14 Robert Dewar <dewar@adacore.com>
20222 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
20223 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
20224 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
20225 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
20226 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
20227 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
20228 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
20229 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
20230 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
20231 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
20232 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
20233 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
20234 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
20235 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
20236 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
20237 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
20238 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
20239 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
20240 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
20241 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
20242 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20243 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
20244 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
20245 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
20246 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
20247 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
20248 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
20249 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
20250 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
20251 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
20252 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
20253 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
20254 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
20255 system-interix.ads, system-solaris-sparc.ads,
20256 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
20257 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
20258 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
20259 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
20260 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
20261 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
20262 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
20263 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20264 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20265 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
20266 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
20267 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
20268 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
20269 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
20270 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
20271 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20272 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
20273 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
20274 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
20275 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
20276 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
20277 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
20278 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
20279 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
20280 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
20281 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20282 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20283 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
20284 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
20285 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
20286 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
20287 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
20288 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20289 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
20290 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
20291 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
20292 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
20293 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
20294 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
20295 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
20296 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
20297 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
20298 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
20299 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
20300 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
20301 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
20302 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
20303 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
20304 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
20305 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
20306 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
20307 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
20308 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
20309 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
20310 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
20311 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
20312 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
20313 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
20314 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
20315 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
20316 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
20317 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
20318 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20319 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
20320 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
20321 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
20322 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
20323 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
20324 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
20325 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
20326 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
20327 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
20328 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
20329 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
20330 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
20331 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
20332 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
20333 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
20334 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
20335 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
20336 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
20337 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
20338 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
20339 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
20340 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
20341 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
20342 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
20343 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
20344 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
20345 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
20346 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
20347 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
20348 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
20349 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
20350 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
20351 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
20352 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
20353 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
20354 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
20355 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
20356 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
20357 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
20358 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
20359 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
20360 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
20361 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
20362 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
20363 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
20364 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
20365 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
20366 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
20367 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
20368 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
20369 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
20370 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
20371 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
20372 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
20373 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
20374 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
20375 a-numaux-darwin.ads, a-numaux-darwin.adb,
20376 a-swuwha.ads, a-stunha.ads: Minor reformatting
20378 2005-11-14 Robert Dewar <dewar@adacore.com>
20381 * osint-m.adb: Add pragma Elaborate_All for Osint
20383 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
20386 * trans.c (call_to_gnu): Restore statement lost in translation.
20388 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
20390 * init.c: Use the Linux-specific section for the IA-64/Linux target.
20391 (__gnat_adjust_context_for_raise): Add conditional code so that the
20392 IA-64 is also supported.
20394 2005-11-03 James E Wilson <wilson@specifix.com>
20397 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
20398 TREE_OVERFLOW check.
20400 2005-09-21 Olivier Hainque <hainque@adacore.com>
20403 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
20404 as we create them to store a size in bits.
20406 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
20414 * utils2.c (build_return_expr): New helper function.
20415 * gigi.h (build_return_expr): Declare it.
20416 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
20417 of manually building the RETURN_EXPR tree.
20418 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
20419 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
20420 build_binary_op for the "target pointer" case. Use build_return_expr
20421 instead of manually building the RETURN_EXPR tree.
20423 2005-09-16 Laurent Guerby <laurent@guerby.net>
20426 * s-tpinop.ads: Make this unit Preelaborate.
20428 2005-09-16 Andreas Jaeger <aj@suse.de>
20430 * socket.c: Add string.h for memcpy.
20432 2005-09-05 Arnaud Charlet <charlet@adacore.com>
20434 * dec-io.ads, dec-io.adb: Removed, no longer used.
20436 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20438 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
20440 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20441 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
20442 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
20443 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
20444 dependent units are Preelaborate.
20445 (Initialize): Call Interrupt_Managemeent.Initialize and
20446 OS_Primitives.Initialize to ensure proper initialization of this unit.
20447 Remove use of System.Soft_Links
20448 Make this unit Preelaborate.
20450 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20451 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
20452 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
20453 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
20454 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
20455 s-tratas.ads, s-tasinf.ads: Minor reformatting.
20456 Add pragma Preelaborate, since these packages are suitable for this
20460 * s-traent-vms.ads, s-intman-dummy.adb,
20461 s-taprop-dummy.adb: Make this unit Preelaborate.
20463 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
20464 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
20465 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
20466 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
20467 s-intman-solaris.adb, s-intman-irix-athread.adb,
20468 s-intman-irix.adb: Mark this unit Preelaborate.
20469 (Initialize): New procedure.
20472 * s-taspri-linux.ads: Removed.
20474 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
20475 as done by other implementations (e.g. posix).
20477 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
20478 responsible for deferring abort.
20479 Mark this unit Preelaborate.
20481 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
20482 proper initialization of the tasking run-time.
20484 * s-tasdeb.ads: Mark this unit Preelaborate.
20485 (Known_Tasks): Add explicit default value to avoid elaboration code.
20487 * s-inmaop-vms.adb (Elaboration code): Add call to
20488 Interrupt_Management.Initialize since the elaboration code depends on
20489 proper initialization of this package.
20491 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
20492 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
20493 s-osprim-posix.adb: Make this unit Preelaborate.
20495 * a-calend.adb: Add call to OS_Primitives.Initialize
20497 * a-elchha.adb: Update use of Except.Id.Full_Name.
20498 Minor reformatting.
20499 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
20501 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
20502 Move with clauses outside Warnings Off now that dependent units are
20504 Use raise xxx with "..."; Ada 2005 form.
20506 * a-taside.ads, a-taside.adb:
20507 Remove some dependencies, to make it easier to make this unit truly
20509 Rewrite some code to be conformant with Preelaborate rules.
20511 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
20512 marked Preelaborate in the future.
20514 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
20515 these units Preelaborate.
20517 * s-exctab.adb: Update use of Except.Id.Full_Name.
20519 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
20520 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
20521 Set_Exc_Stack_Addr): Removed, no longer used.
20522 Remove reference to *Machine_State_Addr*, no longer needed.
20524 * s-stalib.ads: Mark this unit as Preelaborate[_05].
20525 (Exception_Data): Full_Name is now a System.Address so that this unit
20526 can be made Preelaborate.
20527 Clean up/simplify code thanks to Full_Name being a System.Address.
20528 Remove obsolete pragma Suppress (All_Checks), no longer needed.
20530 * s-taskin.ads, s-taskin.adb:
20531 Move with clauses outside Warnings Off now that dependent units are
20533 Make this unit Preelaborate.
20534 (Initialize): New proceduure, replace elaboration code and makes the
20535 set up of the tasking run-time cleaner.
20536 (Detect_Blocking): Now a function instead of a deferred boolean, to
20537 obey Preelaborate rules.
20539 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
20540 soft links, no longer used.
20542 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
20543 packages are suitable for this categorization.
20545 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
20546 since we compile run-time sources in Ada 2005 mode.
20547 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
20548 avoid having s-taprop*.adb depend on s-soflin and to avoid code
20550 Remove reference to *Machine_State_Addr*, no longer needed.
20552 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20554 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
20555 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20556 Remove reference to System.Exceptions.
20558 * s-mastop-x86.adb: Removed, no longer used.
20560 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
20562 * a-excach.adb: Minor reformatting.
20564 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
20565 instead fix new warnings that were hidden by this change.
20566 (AAA, ZZZ): Removed, replaced by...
20567 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
20568 are used instead of constants, to help make Ada.Exception truly
20570 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
20571 Raise_Storage_Error): File is now a System.Address, to simplify code.
20572 (Elab code): Removed, no longer used.
20573 (Null_Occurrence): Remove Warnings Off and make this construct
20575 Remove code related to front-end zero cost exception handling, since
20576 it is no longer used.
20577 Remove -gnatL/-gnatZ switches.
20579 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
20580 Update use of Except.Msg.
20582 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
20583 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
20584 to front-end zero cost exception handling, since it is no longer used.
20585 Remove -gnatL/-gnatZ switches.
20587 * lib-writ.ads: Minor reformatting
20590 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
20592 * Make-lang.in: Remove references to s-except.ads
20594 * s-except.ads: Removed, no longer used.
20596 * s-mastop.ads, s-mastop.adb:
20597 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20598 Remove reference to System.Exceptions.
20600 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
20601 switch-b.adb: Remove code related to front-end zero cost exception
20602 handling, since it is no longer used.
20603 Remove -gnatL/-gnatZ switches.
20605 2005-09-01 Robert Dewar <dewar@adacore.com>
20606 Gary Dismukes <dismukes@adacore.com>
20607 Javier Miranda <miranda@adacore.com>
20609 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
20610 type by valid test and generate warning.
20611 (Tagged_Membership): Generate call to the run-time
20612 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
20613 Change formal name Subtype_Mark to Result_Definition in several calls to
20614 Make_Function_Specification.
20615 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
20616 check for proper accessibility of the operand of a class-wide allocator.
20617 The check can be left out if checks are suppressed or if the expression
20618 has a specific tagged type whose level is known to be safe.
20620 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
20621 generates the run-time check associated with null-excluding entities.
20622 (Expand_N_Return_Statement): Add tests to determine if the accessibility
20623 check on the level of the return expression of a class-wide function
20624 can be elided. The check usually isn't needed if the expression has a
20625 specific type (unless it's a conversion or a formal parameter). Also
20626 add a test for whether accessibility checks are suppressed. Augment
20627 the comments to describe the conditions for performing the check.
20629 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
20630 Javier Miranda <miranda@adacore.com>
20631 Gary Dismukes <dismukes@adacore.com>
20632 Ed Schonberg <schonberg@adacore.com>
20634 * a-tags.adb (IW_Membership): Give support to
20635 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
20636 subprogram has been extended to look for the tag in the ancestors tag
20638 Update the structure of the GNAT Dispatch Table to reflect the
20639 additional two tables used in dispatching selects.
20640 Introduce appropriate array types and record components in
20641 Type_Specific_Data to reflect the two tables.
20642 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
20643 the TSD of a tag, indexed by position.
20644 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
20645 operation kind in the TSD of a tag, indexed by position.
20647 * a-tags.ads: Introduce an enumeration type to capture different
20648 primitive operation kinds. Define a constant reflecting the number of
20649 predefined primitive operations.
20650 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
20651 of an entry wrapper.
20652 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
20653 callable entity of a primitive operation.
20655 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
20656 primitive operations used in dispatching selects for limited
20657 interfaces, limited tagged, task and protected types what implement a
20659 (Freeze_Type): Generate the bodies of the primitive operations used in
20660 dispatching selects for limited tagged, task and protected types that
20661 implement a limited interface. Generate statements to populate the two
20662 auxiliary tables used for dispatching in select statements.
20663 (Freeze_Record_Type): Add call to initialize the dispatch table entries
20664 associated with predefined interface primitive operations.
20665 (Build_Dcheck_Function): Change Set_Subtype_Mark to
20666 Set_Result_Definition.
20667 (Build_Variant_Record_Equality): Change Subtype_Mark to
20669 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
20670 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
20671 (Build_Assignment): Simplify the code that adds the run-time-check.
20672 (Expand_N_Object_Declaration): Code cleanup.
20674 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
20675 entries when there is a protected type that implements a limited
20678 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
20679 common routines used in expansion of dispatching selects.
20680 (Add_Private_Declarations): Select the appropriate protection type when
20681 there is a protected type that implements a limited interface.
20682 (Build_Parameter_Block): Generate a wrapped parameter block.
20683 (Build_Protected_Subprogram_Body): Select the appropriate type for
20684 locking entries when there is a protected type that implements a
20686 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
20687 classified as entry wrappers.
20688 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
20689 asynchronous selects.
20690 (Expand_N_Conditional_Entry_Call): Add support for expansion of
20691 dispatching conditional selects.
20692 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
20693 protection when there is a protected type that implements limited
20695 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
20697 (Extract_Dispatching_Call): Extract the entity of the name of a
20698 dispatching call, the object parameter, actual parameters and
20699 corresponding formals.
20700 (Make_Initialize_Protection): Correct logic of protection initialization
20701 when there is a protected type that implements a limited interface.
20702 (Parameter_Block_Pack): Populate a wrapped parameter block with the
20703 values of actual parameters.
20704 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
20705 block and assign them to the original actual parameters.
20707 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
20708 (Build_Protected_Sub_Specification): Change the type and name of the
20709 last formal to account for the increased variety of protection modes.
20711 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
20712 entities. Used to save the value of the Is_Hidden attribute when the
20713 limited-view is installed.
20714 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
20715 the attribute of procedures classified as entry wrappers.
20716 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
20717 entity of a primitive wrapper.
20718 (Write_Entity_Flags): Output the name and value of the
20719 Is_Primitive_Wrapper attribute.
20720 (Write_Field27_Name): Output the name and entity of the field Wrapped_
20722 (Underlying_Type): If we have an incomplete entity that comes from
20723 the limited view then we return the Underlying_Type of its non-limited
20724 view if it is already available.
20725 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
20726 including operators.
20727 (Write_Field26_Name): Add entry for Overridden_Operation
20728 (Overridden_Operation): New attribute of functions and procedures.
20730 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
20731 predefined position in the dispatch table for the primitive operations
20732 used in dispatching selects.
20733 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
20734 predefined primitive operations and replace it with
20735 Default_Prim_Op_Count.
20736 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
20737 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
20738 the names of the generated primitive operations used in dispatching
20740 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
20741 case of abstract interface types. They will be inherit by the objects
20742 implementing the interface.
20743 (Make_DT): There is no need to inherit the dispatch table of the
20744 ancestor interface for the elaboration of abstract interface types.
20745 The dispatch table will be inherited by the object implementing the
20747 (Copy_Secondary_DTs): Add documentation.
20748 (Validate_Position): Improve this static check in case of
20749 aliased subprograms because aliased subprograms must have
20751 (Init_Predefined_Interface_Primitives): New subprogram that initializes
20752 the entries associated with predefined primitives of all the secondary
20754 (Build_Anonymous_Access_Type): Removed.
20755 (Expand_Interface_Actuals): With the previous cleanup there is no need
20756 to build an anonymous access type. This allows further cleanup in the
20757 code generated by the expander.
20758 (Expand_Interface_Conversion): If the actual is an access type then
20759 build an internal function to handle the displacement. If the actual
20760 is null this function returns null because no displacement is
20761 required; otherwise performs a type conversion that will be
20762 expanded in the code that returns the value of the displaced actual.
20763 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
20764 conversions that have no effect in the generated code because no
20765 displacement is required. Code cleanup; use local variables to
20766 avoid repeated calls to the subprogram directly_designated_type().
20768 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
20769 Classify the primitive operations used in dispatching selects as
20771 (Implements_Limited_Interface): Determine whether some type either
20772 directly implements a limited interface or extends a type that
20773 implements a limited interface.
20774 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
20775 (Expand_Subtype_From_Expr): Do not build actual subtype if the
20776 expression is limited.
20777 (Find_Interface_Tag): Add code to handle class-wide types and
20778 entities from the limited-view.
20780 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
20781 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
20782 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
20783 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
20786 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
20787 of procedure name or prefix that appears as a trigger in a triggering
20790 * uintp.ads: Introduce constants Uint_11 and Uint_13.
20792 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20794 * s-tataat.adb, a-tasatt.adb:
20795 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
20797 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
20798 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
20799 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
20802 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20803 Jose Ruiz <ruiz@adacore.com>
20805 * s-taprop-vxworks.adb:
20806 Move with clauses outside Warnings Off now that dependent units are
20808 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
20809 initialization of this unit.
20810 (Specific): Add new procedures Initialize and Delete so that this
20811 package can be used for VxWorks 5.x and 6.x
20812 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
20813 differences between VxWorks 5.x and 6.x
20814 Minor reformatting.
20815 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
20817 Use only Preelaborate-compatible constructs.
20819 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
20820 Primitives.Operations.
20821 (Delete, Initialize): New procedures.
20823 * s-osinte-vxworks.adb: Body used to handle differences between
20824 VxWorks 5.x and 6.x
20825 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
20827 * s-osinte-vxworks.ads: Minor reformatting.
20828 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
20829 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
20831 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
20832 between Vxworks 5 and 6.
20833 (taskLock, taskUnlock): Removeed, no longer used.
20835 * adaint.c: The wait.h header is not located in the sys directory on
20836 VxWorks when using RTPs.
20837 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
20839 (__gnat_dup): dup is available on Vxworks when using RTPs.
20840 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
20842 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
20844 * expect.c: The wait.h header is not located in the sys directory on
20845 VxWorks when using RTPs.
20847 2005-09-01 Thomas Quinot <quinot@adacore.com>
20849 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
20851 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
20853 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
20854 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
20855 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
20856 g-soccon-freebsd.ads: Add new constants:
20858 SO_RCVTIMEO/SO_SNDTIMEO
20862 Move all target-specific file inclusions and macro definitions to
20863 gsocket.h, in order to ensure that any C code in socket.c will see a
20864 set of constants that is consistent with the contents of g-soccon.ads.
20866 * gsocket.h: Code imported from gen-soccon.c:
20867 Move all target-specific file inclusions and macro definitions to
20868 gsocket.h, in order to ensure that any C code in socket.c will see a set
20869 of constants that is consistent with the contents of g-soccon.ads.
20870 This change also makes gen-soccon self-contained (removing dependencies
20871 upon GCC internal headers).
20873 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
20875 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
20877 * socket.c: Minor reformatting.
20879 2005-09-01 Ed Schonberg <schonberg@adacore.com>
20880 Thomas Quinot <quinot@adacore.com>
20882 * fname-sf.adb, mlib-tgt.ads,
20883 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
20884 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
20885 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
20886 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
20887 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
20888 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
20889 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
20890 makegpr.adb: Remove redundant use_clauses.
20892 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20894 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
20895 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
20896 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
20897 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
20898 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
20899 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
20900 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
20901 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
20902 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20903 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
20904 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
20905 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
20906 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
20907 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
20908 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
20909 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
20910 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20911 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
20912 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
20913 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
20914 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
20915 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
20916 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
20917 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
20918 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
20919 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
20920 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
20921 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
20922 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
20923 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
20924 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
20925 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
20926 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
20927 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
20928 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
20929 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
20930 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
20931 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
20932 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
20933 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
20934 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
20935 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
20936 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
20937 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
20938 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
20939 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
20940 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
20941 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
20942 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
20943 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
20944 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
20945 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
20946 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
20947 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
20948 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
20949 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
20950 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
20951 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
20952 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
20953 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
20954 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
20955 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
20956 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
20957 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
20958 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
20959 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
20960 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
20961 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
20962 and always use the no parameter form for consistency.
20964 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
20966 2005-09-01 Robert Dewar <dewar@adacore.com>
20968 * binde.adb: Minor reformatting
20969 (Find_Elab_Order): Output warning if -p used with static elab order
20971 2005-09-01 Robert Dewar <dewar@adacore.com>
20973 * checks.adb (Check_Needed): New procedure, deals with removing checks
20974 based on analysis of short-circuited forms. Also generates warnings for
20975 improper use of non-short-circuited forms.
20978 2005-09-01 Robert Dewar <dewar@adacore.com>
20980 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
20983 2005-09-01 Robert Dewar <dewar@adacore.com>
20985 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
20987 Implement new insertion char < (conditional warning)
20988 * errutil.adb, erroutc.adb: Implement new insertion char <
20989 (conditional warning).
20990 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
20991 (Error_Msg_Warn): New variable for < insertion char.
20992 * prj-nmsc.adb: Implement new errout insertion char < (conditional
20994 (Check_For_Source): Change value of Source_Id only after the current
20995 source has been dealt with.
20997 2005-09-01 Robert Dewar <dewar@adacore.com>
20998 Doug Rupp <rupp@adacore.com>
21000 * exp_attr.adb: Handle vax fpt for 'Valid attribute
21001 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
21002 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
21003 (Valid_D, Valid_F, Valid_G): New functions
21005 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21006 Hristian Kirtchev <kirtchev@adacore.com>
21007 Javier Miranda <miranda@adacore.com>
21009 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
21010 from object notation, the original node is unanalyzed and carries no
21011 semantic information, so that accessiblity checks must be performed on
21012 the type of the actual itself.
21013 (Expand_N_Subprogram_Declaration): Change last actual parameter for
21014 compatibility with Build_Protected_Sub_Specification.
21015 (Check_Overriding_Inherited_Interfaces): Add suport to handle
21016 overloaded primitives.
21017 (Register_Interface_DT_Entry): Use the new name of the formal
21018 the the calls to Expand_Interface_Thunk
21020 * exp_dbug.ads: Augment comments on encoding of protected types to
21021 include the generation of dispatching subprograms when the type
21022 implements at least one interface.
21024 * lib.ads: Extend information in Load_Stack to include whether a given
21025 load comes from a Limited_With_Clause.
21027 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
21028 whether a potential circularity is harmless, because it includes units
21029 loaded through a limited_with clause. Extends previous treatment which
21030 did not handle properly arbitrary combinations of limited and
21031 non-limited clauses.
21033 2005-09-01 Nicolas Setton <setton@adacore.com>
21035 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
21036 to be encoded as typ___XBLU_lowerbound__upperbound instead of
21037 typ___XB_lowerbound__upperbound.
21039 2005-09-01 Thomas Quinot <quinot@adacore.com>
21041 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
21042 dummy access formal for RACW/RAS TypeCode TSS.
21043 (Build_TypeCode_Call): Do not generate dummy null access actual for
21044 calls to the TypeCode TSS.
21046 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21048 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
21049 fully qualified name, to distinguish instances with the same local name.
21051 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
21054 2005-09-01 Robert Dewar <dewar@adacore.com>
21056 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
21059 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
21061 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
21062 (Free): New deallocation procedure for filter elements
21063 (Close): Deallocate any existing filter for the concerned connection
21065 2005-09-01 Laurent Pautet <pautet@adacore.com>
21067 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
21068 position set is provided, we compute one in order to reduce the maximum
21069 length of the keys. This computation first selects a character
21070 position between 1 and the minimum length of the keys in order to
21071 avoid reducing one of the keys to an empty string.
21072 (Initialize, Compute): When the ratio V to K is too low, the algorithm
21073 does not converge. The initialization procedure now comes with a
21074 maximum number of iterations such that when exceeded, an exception is
21075 raised in Compute. The user can initialize this ratio to another value
21077 Reformating and updated headers.
21079 2005-09-01 Javier Miranda <miranda@adacore.com>
21081 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
21082 that given an entity T creates and returns an Itype that duplicates the
21083 contents of T. The returned Itype has the null-exclusion
21084 attribute set to True, and its Etype attribute references T
21085 to keep the association between the two entities.
21086 Update copyright notice
21088 * sem_aggr.adb (Check_Can_Never_Be_Null,
21089 Aggregate_Constraint_Checks, Resolve_Aggregate,
21090 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
21092 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
21094 2005-09-01 Gary Dismukes <dismukes@adacore.com>
21095 Robert Dewar <dewar@adacore.com>
21096 Hristian Kirtchev <kirtchev@adacore.com>
21098 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
21101 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
21103 Call Set_Result_Definition instead of Set_Subtype_Mark.
21104 (P_Subprogram_Specification): Add parsing of anonymous access result
21105 plus null exclusions. Call Set_Result_Definition instead of
21108 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21109 (P_Access_Type_Definition): Add parsing for an anonymous access result
21110 subtype, plus parsing for null exclusions. Call Set_Result_Definition
21111 instead of Set_Subtype_Mark.
21113 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21114 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
21115 (Result_Definition): New function for N_Function_Specifications.
21116 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
21117 N_Function_Specification.
21118 (Set_Null_Exclusion_Present): Allow this flag for
21119 N_Function_Specification.
21120 (Set_Result_Definition): New procedure for N_Function_Specifications.
21121 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
21122 and N_Function_Specification.
21124 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
21125 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
21126 Add support for LIMITED NEW for Ada 2005 AI-419
21127 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
21128 syntax for anonymous access results.
21129 Replace Subtype_Mark field by Result_Definition in
21130 N_Function_Specification and N_Access_Definition specs.
21131 Add Null_Exclusion_Present to spec of N_Function_Specification.
21132 (Result_Definition): New function for N_Function_Specification and
21133 N_Access_Function_Definition.
21134 (Set_Result_Definition): New procedure for N_Function_Specification and
21135 N_Access_Function_Definition.
21137 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
21138 Result_Definition for cases of N_Access_Function_Definition and
21139 N_Function_Specification.
21140 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
21142 2005-09-01 Vincent Celier <celier@adacore.com>
21144 * lib-writ.adb: Update Copyright notice
21145 (Write_With_Lines): On platforms where file names are case-insensitive,
21146 record the file names in lower case.
21147 (Write_ALI): For D lines, on platforms where file names are
21148 case-insensitive, record the file names in lower case.
21150 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21151 Emmanuel Briot <briot@adacore.com>
21153 * lib-xref.adb (Output_Overridden_Op): Display information on
21154 overridden operation.
21156 * lib-xref.ads: Add documentation on overridden operations.
21158 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
21161 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
21162 overriding entity information.
21164 2005-09-01 Vincent Celier <celier@adacore.com>
21166 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
21167 including those that are inherited.
21169 2005-09-01 Robert Dewar <dewar@adacore.com>
21171 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
21173 * par-prag.adb: Implement new pragma Debug_Policy
21175 * sem_prag.adb Implement new pragma Debug_Policy
21176 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
21177 Component_Size attribute specification. Give warning for ignored pragma
21180 * snames.h, snames.ads, snames.adb: Introduce entries in
21181 Preset_Names for Name_Disp_Asynchronous_Select,
21182 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
21183 Name_Disp_Timed_Select.
21184 New pragma Debug_Policy
21186 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
21188 Switch -gnata also sets Debug_Pragmas_Enabled
21190 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
21191 handle an explicit -gnata when compiling predefined files.
21193 2005-09-01 Vincent Celier <celier@adacore.com>
21195 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
21196 directories of projects that have no Ada sources.
21198 2005-09-01 Robert Dewar <dewar@adacore.com>
21200 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
21201 (makes a difference for wide characters)
21203 * widechar.adb, widechar.ads:
21204 Add Wide_Char_Byte_Count feature to count chars vs bytes
21206 2005-09-01 Thomas Quinot <quinot@adacore.com>
21207 Ed Schonberg <schonberg@adacore.com>
21208 Robert Dewar <dewar@adacore.com>
21210 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
21211 'Address attribute reference with an overloaded prefix, use the
21212 location of the prefix (not the location of the attribute reference) as
21213 the error location.
21214 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
21215 a function renaming thereof, is a valid prefix for 'Size (where it is
21216 intepreted as a function call).
21217 (Statically_Denotes_Entity): New predicate to determine whether the
21218 prefix of an array attribute can be considered static.
21221 (Eval_Attr): Fix failure to evaluate Component_Size for
21222 unconstrained arrays (resulted in wrong value in packed case, since
21223 back end cannot handle this case)
21225 2005-09-01 Robert Dewar <dewar@adacore.com>
21227 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
21228 error msgs for most common cases.
21229 Use new errout insertion char < (conditional warning)
21231 2005-09-01 Javier Miranda <miranda@adacore.com>
21232 Ed Schonberg <schonberg@adacore.com>
21234 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
21235 become local to the whole package.
21236 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
21237 the package was already analyzed the new algorithm "replaces" the
21238 real entities by the shadow ones. This is required to ensure that
21239 the order of these entities in the homonym chains does not change;
21240 otherwise we can have undefined references at linking time because
21241 in case of conflicts the external name of the entities will have
21242 a suffix that depends on the order of the entities in the chain.
21243 (Remove_Limited_With_Clause): Complementary code that completes the
21244 new algorithm and replaces the shadow entities by the real ones.
21245 (Install_Limited_Withed_Unit): When unchaining entities before the
21246 installation of the shadow entities, only regular entities of the
21247 public part must be taken into account. This is required to
21248 keep this routine in synch with the work done by Remove_Limited_
21250 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
21251 even if unit is analyzed, because the analysis of the unit is
21252 idempotent in any case, and the limited view of the unit may have to
21253 be installed for proper visibility.
21254 (Expand_Limited_With_Clause): Even if the unit in the implicit
21255 with_clause has been analyzed already, a limited view of the package
21256 must be built for the current context, if it does not exist yet.
21258 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21259 Javier Miranda <miranda@adacore.com>
21260 Gary Dismukes <dismukes@adacore.com>
21262 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
21263 defining entity for the instance body, make a new defining identifier
21264 rather than copying the entity of the spec, to prevent accidental
21265 sharing of the entity list.
21266 (Check_Private_View): When exchanging views of private types, build the
21267 list of exchanged views as a stack, to ensure that on exit the exchanges
21268 are undone in the proper order.
21269 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
21270 Restore the compilation environment in case of instantiation_error.
21271 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
21272 for an anonymous access result.
21273 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
21274 (Formal_Entity): Handle properly the case of a formal package that
21275 denotes a generic package renaming.
21277 2005-09-01 Thomas Quinot <quinot@adacore.com>
21279 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
21280 clause if the array aggregate is surrounded by parentheses.
21282 2005-09-01 Cyrille Comar <comar@adacore.com>
21283 Gary Dismukes <dismukes@adacore.com>
21284 Ed Schonberg <schonberg@adacore.com>
21285 Javier Miranda <miranda@adacore.com>
21287 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
21289 to check if a type is Constrained in cases related to code generation
21290 (rather than semantic checking) since otherwise we do not generate
21291 similar code for mutable private types depending if their
21292 discriminants are visible or not.
21293 (Check_Abstract_Overriding): Do not complain about failure to override
21294 the primitive operations used in dispatching selects since they will
21295 always be overriden at the freeze point of the type.
21296 (Access_Definition): Separate out handling for resetting the scope
21297 of an anonymous access function result type. Retrieve the scope
21298 of the associated function rather than using Current_Scope, which
21299 does not have a consistent value (depends on whether we're in the
21300 middle of analyzing formal parameters). Add ??? comment about
21301 finding a cleaner way to handle the special cases of scope setting.
21302 (Process_Incomplete_Dependents): A protected operation is never a
21303 dispatching operation (only its wrapper may be).
21304 (Build_Derived_Record_Type): In case of tagged private types that
21305 implement interfaces add derivation of predefined primitive
21307 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
21308 by two parameters that are used in case of derivation from abstract
21309 interface types: No_Predefined_Prims is used to avoid the derivation
21310 of predefined primitives from the interface, and Predefined
21311 Prims_Only is used to complete the derivation predefined primitives
21312 in case of private tagged types implementing interfaces.
21313 Fix typo in comments
21314 (Find_Interface_In_Descendant): Protect the frontend against
21315 wrong code with large circularity chains.
21316 (Is_Private_Overriding): Add support for entities overriding interface
21317 subprograms. The test failed because Entities associated with overriden
21318 interface subprograms are always marked as hidden (and used to build
21319 the secondary dispatch table); in this case the overriden entity is
21320 available through the field abstract_interface_alias (cf. override_
21321 dispatching_operation)
21322 (Access_Definition): Set the scope of the type to Current_Scope for the
21323 case of a function with an anonymous access result type.
21324 (Access_Subprogram_Declaration): Handle creation of the type entity for
21325 an access-to-function type with an anonymous access result.
21326 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
21327 in handling for N_Access_Function_Definition.
21328 (Analyze_Subtype_Declaration): Modify the text of error message.
21329 (Derived_Type_Declaration): Modify the text of error message.
21330 (Process_Subtype): Modify the text of error message plus cleanup
21331 of one redundant error message.
21332 (Analyze_Component_Declaration): Code cleanup.
21333 (Analyze_Object_Declaration): Code cleanup.
21334 (Analyze_Subtype_Declaration): Propagate the null-exclusion
21335 attribute in case of access types. Code cleanup.
21336 (Array_Type_Declaration): Code cleanup.
21337 (Process_Discriminants): Create the new null-excluding itype
21338 if required. Code cleanup.
21339 (Process_Subtype): Create the new null-excluding itype if
21340 required. Code cleanup.
21341 (Build_Derived_Record_Type): Code cleanup to avoid calling
21342 twice the subprogram derive_subprograms in case of private
21343 types that implement interfaces. In this particular case the
21344 subprogram Complete_Subprograms_Derivation already does the
21345 job associated with the second call.
21347 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
21348 conversion to the full view when generating an operation for a
21349 discriminant whose type may currently be private.
21351 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21352 Javier Miranda <miranda@adacore.com>
21354 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
21355 V (Obj.F), the rewriting does not involve the indexed component, but
21356 only the selected component itself.
21357 Do not apply the transformation if the analyzed node is an actual of a
21358 call to another subprogram.
21359 (Complete_Object_Operation): Retain the entity of the
21360 dispatching operation in the selector of the rewritten node. The
21361 entity will be used in the expansion of dispatching selects.
21362 (Analyze_One_Call): Improve location of the error message associated
21364 (Analyze_Selected_Component): No need to resolve prefix when it is a
21365 function call, resolution is done when parent node is resolved, as
21367 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
21368 when attempting to resolve a call transformed from its object notation.
21369 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
21370 of the argument list for each interpretation of the operation.
21371 (Try_Object_Operation): The designated type of an access parameter may
21372 be an incomplete type obtained through a limited_with clause, in which
21373 case the primitive operations of the type are retrieved from its full
21375 (Analyze_Call): If this is an indirect call, and the return type of the
21376 access_to_subprogram is incomplete, use its full view if available.
21378 2005-09-01 Javier Miranda <miranda@adacore.com>
21379 Gary Dismukes <dismukes@adacore.com>
21381 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
21382 access types the null-exclusion and access-to-constant attributes must
21384 (Analyze_Return_Statement): When the result type is an anonymous access
21385 type, apply a conversion of the return expression to the access type
21386 to ensure that appropriate accessibility checks are performed.
21387 (Analyze_Return_Type): For the case of an anonymous access result type,
21388 generate the Itype and set Is_Local_Anonymous_Access on the type.
21389 Add ??? placeholder for check to disallow returning a limited object
21390 in Ada 2005 unless it's an aggregate or a result of a function call.
21391 Change calls from Subtype_Mark to Result_Definition.
21392 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
21393 Result_Definition in call to Make_Function_Specification.
21394 (Build_Body_To_Inline): Change Set_Subtype_Mark to
21395 Set_Result_Definition.
21396 (Make_Inequality_Operator): Change formal Subtype_Mark to
21397 Result_Definition in call to Make_Function_Specification.
21398 (Process_Formals): Create the new null-excluding itype if required.
21399 (New_Overloaded_Entity): For an entity overriding an interface primitive
21400 check if the entity also covers other abstract subprograms in the same
21401 scope. This is required to handle the general case, that is, overriding
21402 other interface primitives and overriding abstract subprograms inherited
21403 from some abstract ancestor type.
21404 (New_Overloaded_Entity): For an overriding entity that comes from
21405 source, note the operation that it overrides.
21406 (Check_Conformance, Type_Conformant): Addition of one new formal
21407 to skip controlling formals in the analysis. This is used to
21408 handle overloading of abstract interfaces.
21409 (Base_Types_Match): Add missing case for types imported from
21410 limited-with clauses
21411 (New_Overloaded_Entity): Add barrier to protect the use of
21412 the "alias" attribute.
21414 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21416 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
21417 verify that the procedure and the entry are mode conformant.
21418 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
21419 as a different operator, which is often a cut-and-paste error.
21421 2005-09-01 Javier Miranda <miranda@adacore.com>
21422 Ed Schonberg <schonberg@adacore.com>
21424 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
21425 used in controlling parameters exclude null because it is necessary to
21426 read the tag to dispatch, and null has no tag.
21427 (Override_Dispatching_Operation): If the previous operation is inherited
21428 from an interface, it becomes hidden and does not participate in later
21431 2005-09-01 Javier Miranda <miranda@adacore.com>
21432 Ed Schonberg <schonberg@adacore.com>
21433 Gary Dismukes <dismukes@adacore.com>
21435 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
21436 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
21437 the expander will generate the corresponding run-time check to evaluate
21439 (Resolve_Call): Check for legal type of procedure name or prefix that
21440 appears as a trigger in a triggering alternative.
21441 (Valid_Conversion): If expression is ambiguous and the context involves
21442 an extension of System, remove System.Address interpretations.
21443 (Resolve_Qualified_Expression): Reject the case of a specific-type
21444 qualification applied to a class-wide argument. Enhance comment
21445 to explain checking of Original_Node.
21446 (Resolve_Type_Conversion): The location of the error message was not
21447 general enough to handle the general case and hence it has been removed.
21448 In addition, this patch improves the text of the message.
21449 (Resolve_Type_Conversion): Add missing support for access to interface
21451 (Resolve_Type_Conversion): If the target is a class-wide interface type,
21452 do not expand if the expression is the actual in a call, because proper
21453 expansion will take place when the call itself is expanded.
21454 (Resolve_Allocator): If the context is an unchecked conversion, the
21455 allocator inherits its storage pool, if any, from the target type of
21458 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21459 Javier Miranda <miranda@adacore.com>
21461 * sem_type.adb (Add_One_Interp): If a candidate operation is an
21462 inherited interface operation that has an implementation, use the
21463 implementation to avoid spurious ambiguities.
21464 (Interface_Present_In_Ancestor): In case of concurrent types we can't
21465 use the Corresponding_Record_Typ attribute to look for the interface
21466 because it is set by the expander (and hence it is not always
21467 available). For this reason we traverse the list of interfaces
21468 (available in the parent of the concurrent type).
21469 (Interface_Present_In_Ancestor): Handle entities from the limited view
21471 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21473 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
21474 from the list of required components.
21475 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
21476 primitive procedure of a limited interface with a controlling first
21478 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
21480 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
21481 capture if it is generated in the second operand of a short-circuit
21483 Do not capture values for variables with address clauses.
21484 (Is_Object_Reference): Treat a function call as an object reference only
21485 if its type is not Standard_Void_Type.
21487 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21489 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
21490 to a variable that is statically known to be constant.
21492 2005-09-01 Geert Bosch <bosch@adacore.com>
21493 Robert Dewar <dewar@adacore.com>
21495 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
21496 (VAXGF_Safe_First): Idem.
21498 2005-09-01 Robert Dewar <dewar@adacore.com>
21499 Arnaud Charlet <charlet@adacore.com>
21501 * g-dirope.ads: Minor reformatting
21502 Document that bounds of result of Base_Name match the input index
21504 Add documentation on environment variable syntax for Expand_Path
21506 * gnat_ugn.texi: Update documentation to include mention of -m switches
21507 Document new treatment of wide characters in max line length
21509 Remove -gnatL/-gnatZ switches, no longer used.
21510 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
21513 * gnat_rm.texi: Add doc for two argument form of pragma
21514 Float_Representation.
21515 Add documentation for pragma No_Strict_Aliasing
21516 Add note that explicit component clause overrides pragma Pack.
21517 Add documentation of pragma Debug_Policy
21519 2005-09-01 Matthew Heaney <heaney@adacore.com>
21521 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
21522 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
21523 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
21524 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
21525 draft (Draft 13, August 2005) of Ada Amendment 1.
21527 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21529 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
21530 Note that the platform-specific version of g-soccon.ads for VMS is now
21531 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
21532 really is a package spec).
21533 Replace s-taspri-linux.ads by s-taspri-posix.ads
21534 Remove references to s-mastop-x86.adb
21536 * system-vxworks-xscale.ads: Removed, no longer used.
21537 * s-vxwork-xscale.ads: Removed, no longer used.
21539 2005-09-01 Robert Dewar <dewar@adacore.com>
21541 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
21542 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
21543 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
21544 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
21545 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
21546 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
21547 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
21548 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
21549 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
21550 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
21551 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
21552 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
21553 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
21554 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
21555 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
21556 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
21557 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
21558 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
21559 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
21560 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
21561 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
21563 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21567 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
21569 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21570 Doug Rupp <rupp@adacore.com>
21572 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
21574 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
21575 this code in the GNAT run-time.
21577 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
21580 * init.c (__gnat_error_handler [many]): Mark "msg" as const
21581 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
21583 (__gnat_inside_elab_final_code): Moved here from
21584 Standard_Library and only defined for the compiler.
21585 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
21586 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
21587 using RTPs because directly vectored Interrupt routines are not
21588 supported on this configuration.
21589 (getpid): Do not redefine this function on VxWorks when using RTPs
21590 because this primitive is well supported by the RTP libraries.
21591 (copy_msg): Correct the code that checks for buffer overflow.
21592 Discovered during code reading.
21594 2005-08-29 Olivier Hainque <hainque@adacore.com>
21596 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
21597 a library level mutable variable with an initializer, tell
21598 build_allocator to ignore the initializer's size. It may not be large
21599 enough for all the values that might be assigned to the variable later
21602 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21603 Eric Botcazou <ebotcazou@adacore.com>
21605 * trans.c: Protect < in error msg with quote
21606 Replace GCC_ZCX by Back_End_Exceptions.
21607 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
21608 has been sufficiently aligned in the record.
21610 2005-08-15 James E. Wilson <wilson@specifix.com>
21612 * system-linux-alpha.ads: Change ia64 to alpha.
21614 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
21616 * decl.c, utils.c: Fix comment typos.
21618 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
21620 * decl.c, init.c, initialize.c: Fix comment typos.
21622 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
21624 Make CONSTRUCTOR use VEC to store initializers.
21625 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
21627 * trans.c (extract_values): Likewise.
21628 * utils.c (convert, remove_conversions): Likewise.
21629 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
21630 gnat_build_constructor): Likewise.
21632 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
21634 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
21636 (compare_field_bitpos): Likewise.
21638 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
21640 * utils.c (create_var_decl): Only set DECL_COMMON on
21641 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
21642 VAR_OR_FUNCTION_DECL_P.
21644 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
21646 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
21649 2005-07-07 Pascal Obry <obry@adacore.com>
21651 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
21652 returned type on Windows.
21654 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
21657 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
21658 exception in this case.
21659 Simplify the code as "Image (Image'Range)" = "Image".
21661 2005-07-07 Vincent Celier <celier@adacore.com>
21663 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
21664 the destructor/constructor attributes for <lib>final/<lib>init.
21666 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
21668 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
21670 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
21671 type if the parameter is not passed by copy but reference by default.
21673 2005-07-07 Javier Miranda <miranda@adacore.com>
21675 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
21676 Reimplementation of the support for abstract interface types in order
21677 to leave the code more clear and easy to maintain.
21679 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
21680 abstract interface types in order to leave the code clearer and easier
21683 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
21684 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
21685 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
21686 appropriate entry of the secondary dispatch table.
21687 (Make_DT): Add code to inherit the secondary dispatch tables of
21690 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
21691 implementing both functionalities by means of a common routine, each
21692 routine has its own code.
21694 2005-07-07 Javier Miranda <miranda@adacore.com>
21696 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
21698 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
21701 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21704 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
21705 use of tag incomplete types.
21707 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
21708 give support to tagged incomplete types.
21710 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
21711 expression is a discriminant reference and its type is private, as can
21712 happen within a stream operation for a mutable record, use the full
21713 view of the type to resolve the case alternatives.
21714 (Analyze_Assignment): Check wrong dereference of incomplete types.
21716 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
21719 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
21722 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
21723 N_Incomplete_Type_Declaration nodes.
21725 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
21726 Tag_Present to give support to tagged incomplete types:
21728 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21731 2005-07-07 Olivier Hainque <hainque@adacore.com>
21734 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
21735 definitions for the Unwind wrappers in the compiler case.
21737 2005-07-07 Ed Schonberg <schonberg@adacore.com>
21738 Javier Miranda <miranda@adacore.com>
21740 * par-load.adb (Load): If a child unit is loaded through a limited_with
21741 clause, each parent must be loaded as a limited unit as well.
21743 * sem_ch10.adb (Previous_Withed_Unit): Better name for
21744 Check_Withed_Unit. Return true if there is a previous with_clause for
21745 this unit, whether limited or not.
21746 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
21748 (Is_Visible_Through_Renamings): New local subprogram of install_limited
21749 _withed_unit that checks if some package installed through normal with
21750 clauses has a renaming declaration of package whose limited-view is
21751 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
21752 of the current Draft document for Ada 2005.
21753 (Analyze_Context): Complete the list of compilation units that
21754 are allowed to contain limited-with clauses. It also contains
21755 checks that were previously done by Install_Limited_Context_Clauses.
21756 This makes the code more clear and easy to maintain.
21757 (Expand_Limited_With_Clause) It is now a local subprogram of
21758 Install_Limited_Context_Clauses, and contains the code that adds
21759 the implicit limited-with clauses for parents of child units.
21760 This functionality was prevously done by Analyze_Context.
21762 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
21765 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
21766 been erroneously named in a limited-with clause of its own context.
21767 In this case the error has been previously notified by Analyze_Context.
21769 2005-07-07 Ed Schonberg <schonberg@adacore.com>
21771 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
21772 generic package that contains local declarations with the same name.
21773 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
21775 2005-07-07 Bernard Banner <banner@adacore.com>
21777 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
21778 ia64 platform only on platforms that you the GCC unwind library
21779 rather than the system unwind library.
21781 2005-07-07 Thomas Quinot <quinot@adacore.com>
21783 * expect.c: Minor reformatting
21785 2005-07-07 Sergey Rybin <rybin@adacore.com>
21787 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
21790 * gnat_ugn.texi: Add description for new gnatpp option
21793 2005-07-04 Thomas Quinot <quinot@adacore.com>
21795 * g-expect-vms.adb, g-expect.ads, g-expect.adb
21796 (Get_Command_Output): New subprogram to launch a process and get its
21797 standard output as a string.
21799 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
21800 Olivier Hainque <hainque@adacore.com>
21802 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
21803 fetch a code-range descriptor associated with the machine state. On
21804 failure set the machine state's PC to 0; on success, pass the
21805 descriptor to exc_virtual_unwind.
21807 * init.c (Tru64 section): New function __gnat_set_code_loc.
21809 2005-07-04 Vincent Celier <celier@adacore.com>
21811 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21812 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21813 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
21814 Remove all auto-initialization code, as this is now done through the
21815 constructor mechanism.
21817 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
21818 __gnat_sals_init_using_constructors): New functions.
21820 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
21821 Linker_Constructor and Linker_Destructor when switch -a is used.
21823 * bindusg.adb: Add line for new switch -a
21825 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
21826 (Gnatbind): When switch -a is used, check if it is allowed
21828 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
21830 2005-07-04 Joel Brobecker <brobecker@adacore.com>
21832 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
21833 This prevents us from hitting a limitation during the debug info
21834 generation when using stabs.
21835 (Prims_Ptr): Likewise.
21837 2005-07-04 Gary Dismukes <dismukes@adacore.com>
21838 Ed Schonberg <schonberg@adacore.com>
21839 Javier Miranda <miranda@adacore.com>
21841 * checks.adb (Null_Exclusion_Static_Checks): In the case of
21842 N_Object_Declaration, only perform the checks if the Object_Definition
21843 is not an Access_Definition.
21845 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
21846 where the parent of an the access definition is an N_Object_Declaration
21847 when determining the Associated_Node_For_Itype and scope of an
21848 anonymous access-to-subprogram type.
21850 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
21851 Corresponding_Spec on the body created for a null procedure. Add ???
21852 comment. Remove New_Copy_Tree call on body argument to
21853 Set_Body_To_Inline.
21855 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
21856 discriminants, use the type of the actual as well, because the
21857 discriminants may be read by the called subprogram.
21859 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
21860 access type we do not need to handle non-limited views.
21861 (Build_Derived_Record_Type): Additional check to check that in case of
21862 private types, interfaces are only allowed in private extensions.
21864 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
21866 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
21867 <Pragma_Linker_Destructor>: Likewise.
21869 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
21870 Pragma_Linker_Destructor.
21872 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
21873 ATTR_LINK_DESTRUCTOR.
21874 (static_ctors, static_dtors): New variables.
21876 * misc.c (gnat_expand_body): Output current function as constructor
21877 and destructor if requested.
21879 * par-prag.adb: Add processing for pragma Linker_Constructor and
21882 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
21883 extracted from Check_Interrupt_Or_Attach_Handler.
21884 (Check_Interrupt_Or_Attach_Handler): Invoke it.
21885 Implement pragma Linker_Constructor and Linker_Destructor with the
21886 help of Find_Unique_Parameterless_Procedure.
21887 Replace Name_Alias with Name_Target for pragma Linker_Alias.
21889 * snames.h, snames.ads, snames.adb:
21890 Add Name_Linker_Constructor and Name_Linker_Destructor.
21891 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
21892 * snames.adb: Remove Name_Alias.
21894 * trans.c: Include cgraph.h.
21895 (build_global_cdtor): New function.
21896 (Compilation_Unit_to_gnu): Build global constructor and destructor if
21898 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
21900 (addressable_p) <COMPONENT_REF>: Unconditionally test
21901 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
21903 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
21904 variable if it is external.
21906 (static_ctors, static_dtors): New global variables.
21907 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
21908 <ATTR_LINK_DESTRUCTOR>: Likewise.
21909 (end_subprog_body): Chain function as constructor and destructor
21912 * exp_util.adb (Force_Evaluation): Unconditionally invoke
21913 Remove_Side_Effects with Variable_Ref set to true.
21914 (Remove_Side_Effects): Handle scalar types first. Use a renaming
21915 for non-scalar types even if Variable_Ref is true and for class-wide
21918 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21920 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
21921 to prevent spurious warnings.
21923 2005-07-04 Thomas Quinot <quinot@adacore.com>
21925 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
21926 Itypes. Itypes are really unexpected there.
21927 (Build_TypeCode_Function): Generalise special processing for Itypes to
21928 handle the case of numeric implicit base types as well as enumerated
21931 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21933 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
21934 controlled, indicate the expected type of the dereference that is
21935 created for the call to Deep_Finalize, to prevent spurious errors when
21936 the designated type is private and completed with a derivation from
21937 another private type.
21939 2005-07-04 Vincent Celier <celier@adacore.com>
21941 * make.adb (Change_To_Object_Directory): When unable to change the
21942 current dir to the object directory, output the full path of the
21945 2005-07-04 Matthew Gingell <gingell@adacore.com>
21947 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
21949 * indepsw-linux.adb: Replace by...
21951 * indepsw-gnu.adb: ...this new file
21953 2005-07-04 Vincent Celier <celier@adacore.com>
21955 * mlib-prj.adb (Auto_Initialize): New constant String
21956 (SALs_Use_Constructors): New Boolean function
21957 (Build_Library): Call gnatbind with Auto_Initialize switch when
21958 SALs_Use_Constructors returns True.
21960 * mlib-tgt.ads: Minor reformatting
21962 * mlib-utl.ads: Minor reformatting
21964 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
21966 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21968 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
21969 single protected declarations can have an interface list.
21970 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
21971 with seriously malformed entry declarations, and lead to compilation
21972 abandoned messages.
21974 2005-07-04 Javier Miranda <miranda@adacore.com>
21976 * par-load.adb: Load the context items in two rounds.
21978 2005-07-04 Robert Dewar <dewar@adacore.com>
21980 * scng.adb: Do not consider Mod used as an attribute to be a keyword
21982 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21983 Javier Miranda <miranda@adacore.com>
21985 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
21986 type extension needs a limited view.
21987 Remove previous restriction on private types available through the
21988 limited-view (only tagged private types were previously allowed).
21989 (Install_Withed_Unit): In the code that implements the
21990 legality rule given in AI-377, exclude a child unit with the name
21991 Standard, because it is a homonym of the Standard environment package.
21993 2005-07-04 Thomas Quinot <quinot@adacore.com>
21995 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
21996 overloaded function call, carry interpretations from the original tree
21999 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22001 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
22002 types check whether some designated type is a limited view, and use
22003 the non-limited view if available.
22005 2005-07-04 Gary Dismukes <dismukes@adacore.com>
22007 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
22008 constraint of full view of a private view T1 if present, when T2 is a
22009 discriminated full view.
22011 2005-07-04 Thomas Quinot <quinot@adacore.com>
22013 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
22014 actual that is a view conversion of a bit packed array reference.
22016 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22018 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
22019 present before checking whether an interface type covers a synchronized
22022 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22024 * sem_util.adb (Is_Object_Reference): An indexed or selected component
22025 whose prefix is an implicit dereference is an object reference. Removes
22026 spurious errors when compiling with -gnatc.
22028 2005-07-04 Robert Dewar <dewar@adacore.com>
22031 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
22033 2005-07-04 Matthew Gingell <gingell@adacore.com>
22035 * tracebak.c: Enable tracebacks on ia64 platforms
22037 2005-07-04 Vincent Celier <celier@adacore.com>
22039 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
22040 the GNAT BIND command, as gnatbind accepts multiples ALI files with
22041 the -L or -n switches.
22043 2005-07-04 Vincent Celier <celier@adacore.com>
22045 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
22046 correctly computed and the main project data is not modified while
22048 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
22049 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
22050 c++linker as this does not work on some platforms.
22052 2005-07-04 Matthew Heaney <heaney@adacore.com>
22054 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
22056 * a-coinve.adb: Perform constraint checks explicitly.
22058 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22059 Thomas Quinot <quinot@adacore.com>
22061 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
22062 new target gen-soccon.
22064 2005-07-04 Robert Dewar <dewar@adacore.com>
22066 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
22068 2005-07-04 Thomas Quinot <quinot@adacore.com>
22070 * g-socket.ads (Check_Selector): Minor rewording of comment.
22072 2005-07-04 Vincent Celier <celier@adacore.com>
22074 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
22076 2005-07-04 Thomas Quinot <quinot@adacore.com>
22078 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
22080 2005-07-04 Sergey Rybin <rybin@adacore.com>
22082 * gnat_ugn.texi: Add description of --eol gnatpp option
22084 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22085 Thomas Quinot <quinot@adacore.com>
22087 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
22088 if the user wants all calls of a subprogram to be flagged,
22089 independently of whether they are made from within the same unit or
22091 Mention restriction for pragma Linker_Alias on some platforms.
22092 Document pragma Linker_Constructor and Linker_Destructor.
22093 Rewrite documentation of Weak_External, Linker_Section and
22094 Linker_Alias pragmas.
22096 2005-07-04 Arnaud Charlet <charlet@adacore.com>
22098 * s-stausa.ads, s-stausa.adb: New files.
22100 2005-06-30 Kelley Cook
22102 * all files: Update FSF address in copyright headers.
22103 * gen-soccon.co (main): Output new FSF address in generated files.
22105 2005-06-28 Paul Brook <paul@codesourcery.com>
22107 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
22109 2005-06-14 Olivier Hainque <hainque@adacore.com>
22110 Eric Botcazou <ebotcazou@adacore.com>
22112 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
22113 exc_unwind, now that we are generating proper .debug_frame output for
22116 * tracebak.c: Remove the mips-irix section, as we are now using the
22117 s-mastop based unwinder again.
22118 Under SPARC/Solaris, take into account the stack bias to compute the
22119 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
22122 2005-06-14 Doug Rupp <rupp@adacore.com>
22124 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
22126 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
22128 2005-06-14 Pascal Obry <obry@adacore.com>
22130 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
22131 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
22132 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
22135 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
22136 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
22137 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
22138 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22139 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
22140 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
22141 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
22142 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
22143 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
22144 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
22145 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
22146 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
22147 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
22148 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
22149 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
22150 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
22151 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
22152 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
22153 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
22154 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
22155 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
22156 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
22157 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
22158 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
22159 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
22160 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
22161 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
22162 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
22163 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
22164 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
22165 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
22166 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
22167 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
22168 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
22169 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
22170 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
22171 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
22172 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
22173 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
22174 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
22175 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
22176 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
22177 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
22178 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
22179 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
22180 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
22181 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
22182 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
22183 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
22184 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
22185 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22186 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
22187 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
22188 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
22189 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
22190 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22191 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
22192 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
22193 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
22194 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
22195 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
22196 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
22197 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
22198 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
22199 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
22200 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
22201 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
22202 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
22203 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
22204 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22205 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
22206 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
22207 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
22208 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
22209 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
22210 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
22211 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
22212 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
22213 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
22214 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
22215 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
22216 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
22217 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
22218 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
22219 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
22220 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
22221 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
22222 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
22223 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
22224 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
22225 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
22226 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
22227 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
22228 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
22229 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
22230 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
22231 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
22232 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
22233 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
22234 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
22235 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
22236 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
22237 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
22238 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
22239 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
22240 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
22241 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
22242 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
22243 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
22244 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
22245 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
22246 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
22247 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
22248 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
22249 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
22250 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
22251 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
22252 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
22253 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
22254 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
22255 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
22256 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
22257 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
22258 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
22259 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
22260 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
22261 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
22262 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
22263 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
22264 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
22265 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
22266 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
22267 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
22269 2005-06-14 Jose Ruiz <ruiz@adacore.com>
22270 Arnaud Charlet <charlet@adacore.com>
22272 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
22273 longer protected objects. They have been replaced by lower-level
22274 suspension objects made up by a mutex and a condition variable (or
22275 their equivalent given a particular OS) plus some internal data to
22276 reflect the state of the suspension object.
22277 (Initialize, Finalize): Add this initialization procedure for
22278 Suspension_Object, which is a controlled type.
22279 (Finalize): Add the finalization procedure for Suspension_Object,
22280 which is a controlled type.
22282 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
22283 Ada.Synchronous_Task_Control because there is no longer a need for a
22284 VxWorks specific version of this package. Target dependencies
22285 has been moved to System.Task_Primitives.Operations.
22287 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
22289 (InitializeCriticalSection, EnterCriticalSection,
22290 LeaveCriticalSection, DeleteCriticalSection): Replace the type
22291 pCriticalSection by an anonymous access type so that we avoid problems
22292 of accessibility to local objects.
22294 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
22295 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22296 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
22297 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
22298 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
22299 set the environment task mask here.
22300 (Current_State): Add this function that returns the state of the
22302 (Set_False): Add this procedure that sets the state of the suspension
22304 (Set_True): Add this procedure that sets the state of the suspension
22305 object to True, releasing the task that was suspended, if any.
22306 (Suspend_Until_True): Add this procedure that blocks the calling task
22307 until the state of the object is True. Program_Error is raised if
22308 another task is already waiting on that suspension object.
22309 (Initialize): Add this procedure for initializing the suspension
22310 object. It initializes the mutex and the condition variable which are
22311 used for synchronization and queuing, and it sets the internal state
22313 (Finalize): Add this procedure for finalizing the suspension object,
22314 destroying the mutex and the condition variable.
22316 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22317 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
22318 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
22319 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
22320 which provides a low-level abstraction (using operating system
22321 primitives) for Ada.Synchronous_Task_Control.
22322 This object is made up by a mutex (for ensuring mutual exclusion), a
22323 condition variable (for queuing threads until the condition is
22324 signaled), a Boolean (State) indicating whether the object is open,
22325 and a Boolean (Waiting) reflecting whether there is a task already
22326 suspended on this object.
22328 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
22329 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
22330 s-intman-vms.ads, s-intman-mingw.adb,
22331 (Initialize_Interrupts): Removed, no longer used.
22333 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
22334 (Setup_Interrupt_Mask): New procedure.
22336 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
22338 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
22340 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
22341 this is no longer done in the body of s-taprop
22342 (Server_Task): Explicitely test for Pending_Action in case
22343 System.Parameters.No_Abort is True.
22345 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
22346 is no longer done in the body of s-taprop
22348 2005-06-14 Robert Dewar <dewar@adacore.com>
22350 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22351 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22352 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22353 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22354 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22355 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
22356 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
22357 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22358 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
22359 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
22360 system-linux-hppa.ads, system-vms_64.ads,
22361 system-vxworks-alpha.ads: Minor comment update for
22362 AI-362 (unit is Pure).
22364 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
22365 Add pragma Pure_05 for AI-362
22366 Make remaining conversion functions obsolescent in Ada 95
22368 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22369 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
22370 Add entries for a-wichun and a-zchuni
22371 Add a-widcha a-zchara for AI-395
22372 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
22374 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22375 Add entries for a-wichun.o and a-zchuni.o
22376 Entries for a-widcha.o and a-zchara.o
22377 Add entry for a-chacon.o
22379 * a-ztenau.adb: Add with of Ada.Characters.Conversions
22381 * a-chacon.ads, a-chacon.adb: New files.
22383 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
22384 categorization violations.
22386 * a-strmap.ads: Add pragma Pure_05 for AI-362
22387 * a-strmap.ads: Add note on implicit categorization for AI-362
22389 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
22391 * par-prag.adb: Dummy entry for pragma Persistent_BSS
22392 Set Ada_Version_Explicit, for implementation of AI-362
22393 Add processing for pragma Pure_05 and Preelaborate_05
22394 Add entry for Assertion_Policy pragma
22396 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
22397 when needed for proper processing of categorization stuff
22400 For several cases, make errors in preealborate units warnings,
22401 instead of errors, if GNAT_Mode is set. For AI-362.
22403 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
22404 preelaborate unit is now warning if in GNAT mode
22406 * s-stoele.ads: Document AI-362 for pragma preelaborate
22408 2005-06-14 Doug Rupp <rupp@adacore.com>
22410 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
22411 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
22412 Default_Exception_Msg_Max_Length: new parameter.
22414 * a-except.ads: (Exception_Msg_Max_Length): Set to
22415 System.Parameters.Default_Exception_Msg_Max_Length
22416 Add pragma Preelaborate_05 for AI-362
22417 Add warnings off to allow categorization violations for AI-362
22419 2005-06-14 Vincent Celier <celier@adacore.com>
22421 * gnatsym.adb: Adapt to modification of package Symbols: procedure
22422 Process is now in package Processing.
22424 * symbols.ads, symbols.adb:
22425 (Processing): New package, containing procedure Process
22427 * symbols-vms-alpha.adb:
22428 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
22430 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
22431 symbols-processing-vms-ia64.adb: New files.
22433 2005-06-14 Pascal Obry <obry@adacore.com>
22435 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
22436 implementation. This new version generates the proper DllMain routine
22437 to initialize the SAL. The DllMain is generated in Ada and compiled
22438 before being added as option to the library build command.
22440 2005-06-14 Doug Rupp <rupp@adacore.com>
22441 Pascal Obry <obry@adacore.com>
22443 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
22444 call to decc$translate_vms.
22445 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
22446 need to remove those quotes before catenating the filename.
22447 (__gnat_locate_exec_on_path): improvements to the Win32 section:
22448 * avoid allocating the memory twice for better efficiency;
22449 * allocate 32K buffer for environment expansion as suggested by MSDN;
22450 * prepend ".;" to the path so that current directory is searched too.
22452 2005-06-14 Robert Dewar <dewar@adacore.com>
22454 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
22455 instead of raising CE (AI-241)
22456 Add warnings off to allow categorization violations for AI-362
22458 2005-06-14 Robert Dewar <dewar@adacore.com>
22460 * ali-util.adb, gnatbind.adb: Remove references to
22461 Force_RM_Elaboration_Order.
22463 * switch-b.adb: Remove recognition of -f switch
22465 2005-06-14 Pascal Obry <obry@adacore.com>
22467 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
22468 implementation which is slightly more efficient.
22470 2005-06-14 Gary Dismukes <dismukes@adacore.com>
22471 Javier Miranda <miranda@adacore.com>
22472 Ed Schonberg <schonberg@adacore.com>
22473 Hristian Kirtchev <kirtchev@adacore.com>
22475 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
22476 allocator's designated type is a class-wide type, and compiling for
22477 Ada 2005, emit a run-time check that the accessibility level of the
22478 type given in the allocator's expression is not deeper than the level
22479 of the allocator's access type.
22481 (Tagged_Membership): Modified to gives support to abstract interface
22484 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
22486 (Descendant_Tag): New predefined function
22487 (Is_Descendant_At_Same_Level): New predefined function
22488 (Get_Access_Level): New private function
22489 (Set_Access_Level): New private procedure
22490 (IW_Membership): New function. Given the tag of an object and the tag
22491 associated with an interface, evaluate if the object implements the
22493 (Register_Interface_Tag): New procedure used to initialize the table of
22494 interfaces used by the IW_Membership function.
22495 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
22496 of the dispatch table.
22497 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
22498 table of interfaces of the parent.
22499 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
22500 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
22501 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
22502 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
22503 Ada 2005 semantics for the new predefined function.
22505 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
22506 call to Descendant_Tag rather than Internal_Tag.
22507 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
22508 the accessibility level of the attribute's Item parameter is not deeper
22509 than the level of the attribute's prefix type. Tag_Error is raised if
22510 the check fails. The check is only emitted for Ada_05.
22511 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
22512 requested stream attribute, use it.
22513 (Expand_N_Attribute_Reference): If the designated type is an interface
22514 then rewrite the referenced object as a conversion to force the
22515 displacement of the pointer to the secondary dispatch table.
22516 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
22517 is a dereference of an object with a constrained partial view.
22519 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
22520 type is a class-wide type, emit a run-time check that the accessibility
22521 level of the returned object is not deeper than the level of the
22522 function's master (only when compiling for Ada 2005).
22524 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
22525 Action_Nb_Arg): Add entries for new Get_Access_Level and
22526 Set_Access_Level routines in these tables.
22527 (Make_DT): Generate a call to set the accessibility level of the
22528 tagged type in its TSD.
22529 (Make_DT): Code cleanup. The functionality of generating all the
22530 secondary dispatch tables has been moved to freeze_record_type.
22531 (Make_Abstract_Interface_DT): Minor code cleanup.
22532 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
22533 this subprogram implements a new algorithm that provides the
22534 same functionality and it is more clear in case of primitives
22535 associated with abstract interfaces.
22536 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
22537 clean up, the functionality of this subprogram is now provided
22538 by Set_All_DT_Position.
22539 (Write_DT): New subprogram: a debugging procedure designed to be called
22540 within gdb to display the dispatch tables associated with a tagged
22542 (Collect_All_Interfaces): New subprogram that collects the whole list
22543 of interfaces that are directly or indirectly implemented by a tagged
22545 (Default_Prim_Op_Position): New subprogram that returns the fixed
22546 position in the dispatch table of the default primitive operations.
22547 (Expand_Interface_Actuals): New subprogram to generate code that
22548 displaces all the actuals corresponding to class-wide interfaces to
22549 reference the interface tag of the actual object.
22550 (Expand_Interface_Conversion): New subprogram. Reference the base of
22551 the object to give access to the interface tag associated with the
22552 secondary dispatch table.
22553 (Expand_Interface_Thunk): New subprogram that generates the code of the
22554 thunk. This is required for compatibility with the C+ ABI.
22555 (Make_Abstract_Interface_DT): New subprogram that generate the
22556 declarations for the secondary dispatch tables associated with an
22557 abstract interface.
22558 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
22559 attribute for each primitive operation covering interface subprograms
22560 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
22561 These subprograms were upgraded to give support to abstract interfaces
22563 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
22564 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
22565 RE_Set_Access_Level.
22566 (RE_Unit_Table): Add entries for new Ada.Tags operations.
22567 Add support to call the followig new run-time subprograms:
22568 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
22570 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
22571 match its full declaration when both have an access definition with
22572 statically matching designated subtypes.
22573 (Analyze_Component_Declaration): Delete commented out code that was
22574 incorrectly setting the scope of an anonymous access component's type.
22575 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
22576 an access discriminant when the containing type is nonlimited.
22577 (Make_Incomplete_Type_Declaration): Create an incomplete type
22578 declaration for a record type that includes self-referential access
22580 (Check_Anonymous_Access_Types): Before full analysis of a record type
22581 declaration, create anonymous access types for each self-referential
22583 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
22584 an access component in this context is a Local_Anonymous_Access, for
22585 proper accessibility checks.
22586 (Access_Definition): Set properly the scope of the anonymous access type
22587 created for a stand-alone access object.
22588 (Find_Type_Of_Object): An object declaration may be given with an access
22590 (Complete_Subprograms_Derivation): New subprogram used to complete
22591 type derivation of private tagged types implementing interfaces.
22592 In this case some interface primitives may have been overriden
22593 with the partial-view and, instead of re-calculating them, they
22594 are included in the list of primitive operations of the full-view.
22595 (Build_Derived_Record_Type): Modified to give support to private
22596 types implemening interfaces.
22597 (Access_Definition): Reject ALL on anonymous access types.
22598 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
22599 type derivation to occur at a deeper accessibility level than the
22601 For the case of derivation within a generic body however, disallow the
22602 derivation if the derived type has an ancestor that is a formal type
22603 declared in the formal part of an enclosing generic.
22604 (Analyze_Object_Declaration): For protected objects, remove the check
22605 that they cannot contain interrupt handlers if not declared at library
22607 (Add_Interface_Tag_Components): New subprogram to add the tag components
22608 corresponding to all the abstract interface types implemented by a
22609 record type or a derived record type.
22610 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22611 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22612 Process_Full_View, Record_Type_Declaration): Modified to give
22613 support to abstract interface types
22614 (Collect_Interfaces): New subprogram that collects the list of
22615 interfaces that are not already implemented by the ancestors
22616 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
22617 when partial view has no discriminants and full view has defaults.
22618 (Constrain_Access): Reject a constraint on a general access type
22619 if the discriminants of the designated type have defaults.
22620 (Access_Subprogram_Declaration): Associate the Itype node with the inner
22621 full-type declaration or subprogram spec. This is required to handle
22622 nested anonymous declarations.
22623 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22624 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22625 Process_Full_View, Record_Type_Declaration): Modified to give
22626 support to abstract interface types
22627 (Derive_Subprograms): Addition of a new formal to indicate if
22628 we are in the case of an abstact-interface derivation
22629 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
22630 to the specification because it is requied to analyze all the
22631 identifiers found in a list of interfaces
22633 * debug.adb: Complete documentation of flag "-gnatdZ"
22635 * exp_ch3.adb: Implement config version of persistent_bss pragma
22636 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
22637 testing for TSS presence to properly enforce visibility rules.
22638 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
22639 Make_Abstract_Interfaces_DT to generate the secondary tables
22640 associated with abstract interfaces.
22641 (Build_Init_Procedure): Modified to initialize all the tags
22643 (Component_Needs_Simple_Initialization): Similar to other tags,
22644 interface tags do not need initialization.
22645 (Freeze_Record_Type): Modified to give support to abstract interface
22647 (Expand_N_Object_Declaration): Do not generate an initialization for
22648 a scalar temporary marked as internal.
22650 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
22651 in-out parameter that is a component in an initialization procedure,
22652 whose constraint might depend on discriminants, and that may be
22653 misaligned because of packing or representation clauses.
22654 (Is_Legal_Copy): New predicate to determine whether a possibly
22655 misaligned in-out actual can actually be passed by copy/return. This
22656 is an error in case the type is by_reference, and a warning if this is
22657 the consequence of a DEC import pragma on the subprogram.
22658 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
22660 (Expand_Inlined_Call): Mark temporary generated for the return value as
22661 internal, so that no useless scalar normalization is generated for it.
22662 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
22663 null procedure can always be inlined.
22664 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
22665 procedure, generate an explicit empty body for it.
22667 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
22668 Given a type implementing an interface, returns the corresponding
22669 access_disp_table value.
22670 (Find_Interface_Tag): New subprogram. Given a type implementing an
22671 interface, returns the record component containing the tag of the
22673 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
22674 previous ones that return the corresponding tag and access_disp_table
22676 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
22677 is a predefined primitive operation.
22678 (Expand_Subtype_From_Expr): If the expression is a selected component
22679 within an initialization procedure, compute its actual subtype, because
22680 the component may depend on the discriminants of the enclosing record.
22682 * i-cpp.ads, i-cpp.adb:
22683 This package has been left available for compatibility with previous
22684 versions of the frontend. As part of the new layout this is now a
22685 dummy package that uses declarations available at a-tags.ads
22687 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
22688 "constant access" and "aliased [constant] access" when not compiling
22690 Suppress Ada 2005 keyword warning if -gnatwY used
22691 (P_Identifier_Declarations): Add support for object declarations with
22692 access definitions.
22693 (Private_Extension_Declaration): Complete the documentation
22694 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
22695 attribute in case of private extension declaration
22696 (P_Type_Declaration): Mark as "abstract" the type declarations
22697 corresponding with protected, synchronized and task interfaces
22698 (P_Declarative_Items): "not" and "overriding" are overriding indicators
22699 for a subprogram or instance declaration.
22701 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
22702 instantiation that is a dispatching operation has controlling access
22703 parameters that are null excluding.
22704 Save and restore Ada_Version_Explicit, for implementation of AI-362
22705 (Validate_Derived_Type_Instance): Add check for abstract interface
22707 (Analyze_Formal_Package): Establish Instantiation source for the copy of
22708 the generic that is created to represent the formal package.
22709 (Analyze_Package_Instantiation): Instantiate body immediately if the
22710 package is a predefined unit that contains inlined subprograms, and
22711 we are compiling for a Configurable_Run_Time.
22712 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
22713 If the program has a null default, generate an empty body for it.
22715 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
22716 error message condition, null procedures are correctly detected now.
22717 (New_Overloaded_Entity): Bypass trivial overriding indicator check
22718 for subprograms in the context of protected types. Instead, the
22719 indicator is examined in Sem_Ch9 while analysing the subprogram
22721 (Check_Overriding_Indicator): Check consistency of overriding indicator
22722 on subprogram stubs as well.
22723 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
22725 (Analize_Subprogram_Specification): When analyzing a subprogram in which
22726 the type of the first formal is a concurrent type, replace this type
22727 by the corresponding record type.
22728 (Analyze_Subprogram_Body): Undo the previous work.
22729 (Analyze_Procedure_Call): If the call has the form Object.Op, the
22730 analysis of the prefix ends up analyzing the call itself, after which
22732 (Has_Interface_Formals): New subprogram subsidiary to analyze
22733 subprogram_specification that returns true if some non
22734 class-wide interface subprogram is found
22735 (New_Overloaded_Entity): Modified to give support to abstract
22737 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
22738 access to subprograms must be recursive.
22739 (Is_Unchecked_Conversion): Improve the test that recognizes
22740 instantiations of Unchecked_Conversion, and allows them in bodies that
22741 are to be inlined by the front-end. When the body comes from an
22742 instantiation, a reference to Unchecked_Conversion will be an
22743 Expanded_Name, even though the body has not been analyzed yet.
22744 Replace Is_Overriding and Not_Overriding in subprogram_indication with
22745 Must_Override and Must_Not_Override, to better express intent of AI.
22746 (Analyze_Subprogram_Body): If an overriding indicator is given, check
22747 that it is consistent with the overrinding status of the subprogram
22749 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
22751 If the subprogram is a null procedure, indicate that it does not need
22754 * sem_disp.adb (Check_Controlling_Type): Give support to entities
22755 available through limited-with clauses.
22756 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
22757 allowed as the last primitive of a tagged type if it has no previous
22759 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
22760 to give support to abstract interface types
22762 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
22763 in the case where the target type is an anonymous access type of an
22764 object or component (that is, when Is_Local_Anonymous_Access is true).
22765 Prevent the special checks for conversions of access discriminants in
22766 the case where the discriminant belongs to a nonlimited type, since
22767 such discriminants have their accessibility level defined in the same
22768 way as a normal component of an anonymous access type.
22769 (Resolve_Allocator): When an allocator's designated type is a class-wide
22770 type, check that the accessibility level of type given in the
22771 allocator's expression or subtype indication is not statically deeper
22772 than the level of the allocator's access type.
22773 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
22774 name in a discriminant constraint of a record component.
22775 (Resolve_Explicit_Dereference): Do not check whether the type is
22776 incomplete when the dereference is a use of an access discriminant in
22777 an initialization procedure.
22778 (Resolve_Type_Conversion): Handle conversions to abstract interface
22780 (Valid_Tagged_Conversion): The conversion of a tagged type to an
22781 abstract interface type is always valid.
22782 (Valid_Conversion): Modified to give support to abstract interface types
22783 (Resolve_Actuals): Enable full error reporting on view conversions
22784 between unrelated by_reference array types.
22785 The rule for view conversions of arrays with aliased components is
22786 weakened in Ada 2005.
22787 Call to obsolescent subprogram is now considered to be a violation of
22788 pragma Restrictions (No_Obsolescent_Features).
22789 (Check_Direct_Boolean_Operator): If the boolean operation has been
22790 constant-folded, there is nothing to check.
22791 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
22792 check on possible violation of restriction No_Direct_Boolean_Operators
22793 until after expansion of operands, to prevent spurious errors when
22794 operation is constant-folded.
22796 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
22797 Has_Compatible_Type): Modified to give support to abstract interface
22799 (Interface_Present_In_Ancestor): New function to theck if some ancestor
22800 of a given type implements a given interface
22802 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
22803 prefix is a parameterless function that returns an access_to_procedure.
22804 (Transform_Object_Operation): Handle properly function calls of the
22805 form Obj.Op (X), which prior to analysis appear as indexed components.
22806 (Analyze_One_Call): Complete the error notification to help new Ada
22808 (Analyze_Allocator): For an allocator without an initial value, where
22809 the designated type has a constrained partial view, a discriminant
22810 constraint is illegal.
22812 2005-06-14 Robert Dewar <dewar@adacore.com>
22814 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
22815 do with treatment of Set_Col when positioned at end of line character.
22817 2005-06-14 Robert Dewar <dewar@adacore.com>
22819 * atree.adb: (Elist*): Protect against uninitialized field
22821 2005-06-14 Ed Schonberg <schonberg@adacore.com>
22823 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
22824 for an attribute reference that returns an access type.
22825 (Apply_Discriminant_Check): No need for check if (designated) type has
22826 constrained partial view.
22828 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
22829 both bound checks, rather than a conjunction.
22830 (Insert_Valid_Check): If the expression is an actual that is an indexed
22831 component of a bit-packed array, force expansion of the packed element
22832 reference, because it is specifically inhibited elsewhere.
22834 2005-06-14 Vincent Celier <celier@adacore.com>
22836 * clean.adb (Clean_Project): Correctly delete executable specified as
22837 absolute path names.
22839 * make.adb (Gnatmake): Allow relative executable path names with
22840 directory information even when project files are used.
22841 (Change_To_Object_Directory): Fail gracefully when unable to change
22842 current working directory to object directory of a project.
22843 (Gnatmake): Remove exception handler that could no longer be exercized
22844 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
22845 may be deallocated by Normalize_Arguments.
22846 (Collect_Arguments): Eliminate empty arguments
22848 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
22849 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
22850 (Check_Project): Return False when Project is No_Project. Return True
22851 when All_Projects is True.
22852 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
22853 All_Projects to True.
22856 2005-06-14 Ed Schonberg <schonberg@adacore.com>
22857 Javier Miranda <miranda@adacore.com>
22858 Thomas Quinot <quinot@adacore.com>
22859 Robert Dewar <dewar@adacore.com>
22860 Hristian Kirtchev <kirtchev@adacore.com>
22861 Gary Dismukes <dismukes@adacore.com>
22863 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
22864 anonymous access types, to indicate that the accessibility level of
22865 the type is determined by that of the enclosing declaration.
22866 (Has_Persistent_BSS): New flag
22867 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
22868 of this attribute with functions.
22869 (Is_Primitive_Wrapper): Remove the barrier.
22870 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
22871 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
22873 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
22874 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
22876 (Is_Pure_Unit_Access_Type): New flag
22877 (Abstract_Interfaces): Complete the assertion to cover all usages.
22878 (Set_Is_Interface): Complete the assertion to cover all usages.
22879 (Is_Primitive_Wrapper): New attribute.
22880 (Is_Obsolescent): Now applies to all entities (though it is only set
22881 for subprograms currently)
22882 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
22883 which solves various problems concerning access subtypes.
22884 (Has_Persistent_BSS): New flag
22885 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
22886 Remove these subprograms because this attribute is currently
22889 Has_Specified_Stream_Input (Flag190)
22890 Has_Specified_Stream_Output (Flag191)
22891 Has_Specified_Stream_Read (Flag192)
22892 Has_Specified_Stream_Write (Flag193)
22893 Present in all type and subtype entities. Set for a given view if the
22894 corresponding stream-oriented attribute has been defined by an
22895 attribute definition clause. When such a clause occurs, a TSS is set
22896 on the underlying full view; the flags are used to track visibility of
22897 the attribute definition clause for partial or incomplete views.
22898 (Is_Pure_Unit_Access_Type): New flag
22899 Clarify use of Is_Internal.
22900 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
22901 internally generated to wrap the invocation of tasks and protected
22902 types that implement interfaces.
22903 (Implementation_Base_Type): Documentation correction
22904 (Is_Obsolescent): Now applies to all entities (though it is only set
22905 for subprograms currently)
22906 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
22907 which solves various problems concerning access subtypes.
22909 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
22910 for examined parameters. Identify unequal parameter list lengths as
22911 non-conformant parameters.
22912 (Overriding_Possible): Do not check for "All" qualifier in declaration
22913 of controlling access parameter, following prescription of AI-404.
22914 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
22915 that build the procedure body that wraps an entry invocation
22916 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
22917 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
22918 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
22919 give support to abstract interface types
22921 * freeze.adb (Freeze_Entity): Issue error message if
22922 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
22923 type has no storage pool (Ada 2005) AI-366.
22924 Also modified to give support to abstract interface types
22925 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
22926 Inline_Always pragma.
22928 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
22929 now begin an entry declaration.
22930 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
22931 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
22932 a subprogram declaration preceded by an overriding indicator.
22933 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
22934 declarations or subprogram declarations preceded by reserved words
22935 "not" or "overriding".
22936 (P_Entry_Declaration): Update comment. Parse and check overriding
22937 indicator, set semantic flags of entry declarations.
22938 (P_Task): New error message in case of private applied
22939 to a task type declaration.
22940 (P_Protected): New error message in case of private applied
22941 to a task type declaration.
22943 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
22944 in which the full view of a type implementing an interface is a
22946 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
22947 Declare_Inherited_Private_Subprograms): If an explicit operation
22948 overrides an operation that is inherited in the private part, mark the
22949 explicit one as overriding, to enable overriding indicator checks.
22950 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
22951 full view to partial view, to simplify handling in back-end.
22953 * sprint.adb: Print interface lists where needed: derived types,
22954 protected types, task types.
22955 output "is null" for null procedures. Part of implementation of
22957 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
22958 relaxation of rules for access types in pure, shared passive partitions.
22960 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
22961 first read discriminants into temporary objects, performing checks on
22962 the read values, then possibly performing discriminant checks on the
22963 actual (if it is constrained), and only finally reading the components
22964 into a constrained temporary object.
22965 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
22966 case of reading discriminants of a mutable record type to recognize
22967 the new form of the code generated by
22968 Build_Mutable_Record_Read_Procedure.
22970 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
22971 of a simple call to Make_TSS_Name.
22972 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
22973 buffer, in order for Is_TSS to work correctly on local TSS names.
22975 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
22976 Is_Local_Anonymous_Access to check legaliy of attributes in the
22977 context of access components and stand-alone access objects.
22978 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
22979 treated as available for a limited private type if there is an
22980 attribute_definition_clause that applies to its full view, but not in
22981 other cases where the attribute is available for the full view
22982 (specifically, the sole fact that the full view is non-limited does not
22983 make the attribute available for the partial view).
22984 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
22985 non-overloaded intrinsic subprogram.
22986 (Check_Stream_Attribute): Reject an attribute reference for an
22987 unavailable stream attribute even if the prefix is not a limited type
22988 (case of a 'Input attribute reference for an abstract, non-classwide
22990 (Stream_Attribute_Available): New function to determine whether a stream
22991 attribute is available at a place.
22992 (Check_Attribute): Use Stream_Attribute_Available instead of just
22993 testing for TSS presence on the implementation base type.
22994 (Analyze_Attribute): Modified to give support to task interfaces.
22995 (Analyze_Access_Attribute): Add error check for use of an Access (or
22996 Unrestricted_Access) attribute with a subprogram marked as
22998 (Analyze_Attribute, case Attribute_Address): Add error check for use of
22999 an Address attribute with a subprogram marked as Inline_Always.
23000 Update Eval_Attribute to handle new value of Width from AI-395
23002 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
23003 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
23004 Factor common code across the stream-oriented attribute circcuits into
23005 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
23006 processing is functionally identical to the previous duplicated one,
23007 except that an expression that denotes an abstract subprogram will now
23008 be rejected, as mandated by AI-195 item 5.
23010 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
23011 Is_Local_Anonymous_Access to apply accessibility checks to access
23012 components and stand-alone access objects.
23013 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
23015 (Is_Potentially_Persistent_Type): New function
23016 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
23017 a heap-object whose type has a constrained partial view, the object is
23018 unconstrained and the component may depend on a discriminant, making its
23021 * sinfo.ads, sinfo.adb
23022 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
23023 (Must_Override): Flag applicable to N_Entry_Declaration.
23024 Indicate that interface_list can appear in single task and single
23025 protected declarations.
23026 Replace Is_Overriding and Not_Overriding with Must_Override and
23027 Must_Not_Override, to better express intent of AI.
23028 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
23029 of an overriding indicator in a subprogram or instance.
23030 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
23031 Add the overriding indicator [[not] overriding] construct to the
23032 following grammar productions:
23034 GENERIC_INSTANTIATION
23035 SUBPROGRAM_SPECIFICATION
23037 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
23038 can start with an overriding indicator.
23040 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
23041 flags accordingly on subrogram specifications or instances.
23044 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
23045 overriding_indicator, if present, is consistent with status of spec.
23046 Improve error message for null-excluding checks on controlling access
23048 (Check_In_Previous_With_Clause): Protect the frontend against
23049 previously reported critical errors in the context clauses.
23050 Save and restore Ada_Version_Explicit, for implementation of AI-362
23051 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
23052 operation verify that controlling formals of the renamed entity that
23053 are access parameters are explicitly non-null.
23054 (Find_Expanded_Name): Improve error message when prefix is an illegal
23055 reference to a private child unit.
23057 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
23058 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
23059 Rewrite to correspond to new wide character names in AI-395
23061 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
23062 default procedures.
23064 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23065 Robert Dewar <dewar@adacore.com>
23067 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
23068 code, not on the bodies of predefined operations, to cut down on
23071 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23073 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
23074 be expanded in place. The size computation does not require a
23075 subtraction, which would raise an exception on a compiler built with
23076 assertions when the upper bound is Integer'first.
23077 (Flatten): For an array of composite components, take into account the
23078 size of the components to determine whether it is safe to expand the
23079 array into a purely positional representation.
23081 2005-06-14 Thomas Quinot <quinot@adacore.com>
23083 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
23084 denoting a formal parameter into account.
23086 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23088 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
23089 the entry_call alternative of a conditional entry call, wrap the
23090 conditional entry call itself.
23092 2005-06-14 Nicolas Setton <setton@adacore.com>
23093 Ed Schonberg <schonberg@adacore.com>
23095 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
23096 the "simple_choice" member in a variant record, in accordance with the
23097 description in the package spec: the information output for a constant
23098 should be "S number", not "SS number".
23099 (Get_Encoded_Name): Return at once if not generating code. Avoids name
23100 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
23102 2005-06-14 Thomas Quinot <quinot@adacore.com>
23104 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
23105 RACW without any primitives, do not generate the if statement for
23106 dispatching by name in the PolyORB/DSA case, as it would be malformed
23107 (it would have an Elsif_Parts list that is not No_List, but with a
23110 2005-06-14 Robert Dewar <dewar@adacore.com>
23112 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
23114 2005-06-14 Jose Ruiz <ruiz@adacore.com>
23116 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
23117 can determine whether pragma Suppress_Exception_Locations is in effect.
23119 * utils2.c (build_call_raise): Do not pass the file name to the
23120 exception handler if pragma Suppress_Exception_Locations is in effect.
23121 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
23123 2005-06-14 Emmanuel Briot <briot@adacore.com>
23125 * g-debpoo.adb (Deallocate, Dereference): Improve output.
23127 2005-06-14 Nicolas Roche <roche@adacore.com>
23129 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
23131 (Next_Level): Fix minor bug in handling of ../dir case
23132 (Read): Add dir separator to Directory name so that "" is understood as
23135 2005-06-14 Pascal Obry <obry@adacore.com>
23137 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
23138 releasing the items.
23140 2005-06-14 Vincent Celier <celier@adacore.com>
23141 Cyrille Comar <comar@adacore.com>
23143 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
23144 with output file descriptor and with output file name.
23145 (Dup, Dup2): Now global procedures as they are used by two subprograms
23146 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
23148 2005-06-14 Thomas Quinot <quinot@adacore.com>
23151 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
23153 (Create_Selector): Bind listening socket used to create the signalling
23154 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
23155 Set listen backlog to 1 to ensure that we detect socket theft by a
23156 failure of our own connect(2) call.
23157 (Check_Selector): Improve documentation of the selector mechanism.
23158 (Broadcast_Inet_Addr): New constant.
23160 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23162 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
23163 type which turns out to be an incomplete and incorrect fix.
23164 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
23165 of the type is declared in a record (for determination of insertion
23167 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
23168 a private type and ensure that the primary entity is used for the type
23169 of the newly created function's V formal by taking the Etype of the
23172 2005-06-14 Javier Miranda <miranda@adacore.com>
23173 Jose Ruiz <ruiz@adacore.com>
23174 Robert Dewar <dewar@adacore.com>
23175 Ed Schonberg <schonberg@adacore.com>
23177 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
23178 that indicates if we are parsing a compilation unit found in a
23179 limited-with clause.
23180 It is use to avoid the circularity check.
23182 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
23183 we are parsing a compilation unit found in a limited-with clause. This
23184 is use to avoid the circularity check.
23186 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
23187 unit as a consequence of parsing a limited-with clause. This is used
23188 to avoid the circularity check.
23190 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
23191 (Analyze_Context): Limited-with clauses are now allowed
23192 in more compilation units.
23193 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
23194 againts previously reported critical errors in context clauses
23195 (Install_Limited_Withed_Unit): Code cleanup plus static detection
23196 of two further errors: renamed subprograms and renamed packages
23197 are not allowed in limited with clauses.
23198 (Install_Siblings): Do not install private_with_clauses on the package
23199 declaration for a non-private child unit.
23200 (Re_Install_Parents): When a parent of the subunit is reinstalled,
23201 reset visibility of child units properly.
23202 (Install_Withed_Unit): When a child unit appears in a with_clause of its
23203 parent, it is immediately visible.
23205 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23206 Emmanuel Briot <briot@adacore.com>
23208 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
23209 declared within an inlined body as referenced, to prevent spurious
23211 (Output_One_Ref): If an entity renames an array component, indicate in
23212 the ALI file that this aliases (renames) the array. Capture as well
23213 function renamings that rename predefined operations.
23214 Add information about generic parent for package and subprogram
23216 (Get_Type_Reference): For a subtype that is the renaming of an actual in
23217 an instantiation, use the first_subtype to ensure that we don't generate
23218 cross-reference information for internal types.
23219 For objects and parameters of a generic private type, retain the '*'
23220 indicator to distinguish such an entity from its type.
23222 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
23223 to store information about instantiated entities.
23225 * ali.adb (Scan_ALI): Add support for parsing the reference to the
23228 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
23229 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
23232 2005-06-10 Doug Rupp <rupp@adacore.com>
23233 Arnaud Charlet <charlet@adacore.com>
23234 Olivier Hainque <hainque@adacore.com>
23235 Jose Ruiz <ruiz@adacore.com>
23237 * Make-lang.in: Add initialize.o when needed.
23238 Remove obsolete references to RT_FLAGS.
23239 Add missing dependencies for sdefault.o
23241 * initialize.c: New file.
23243 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
23244 [VMS] cond_signal_table: Fix problem in declaration.
23245 [VMS] __gnat_error_handler: rewrite.
23246 Move all __gnat_initialize() routines to initialize.c
23247 Specialize the former "hpux" section to "hppa hpux", as this is what the
23248 section really is here for and we now have other hpux ports that need
23249 different contents.
23250 (__gnat_adjust_context_for_raise) i386-linux: First version of this
23251 function for this target. Adjust PC by one in the machine context. This
23252 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
23253 it is more reliable to do that in the signal handler itself.
23254 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
23255 flags, so that the handler is passed the context structure to adjust
23256 prior to the raise.
23257 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
23258 SA_SIGINFO sigaction should look like. Call
23259 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
23260 Machine_State_Operations stuff.
23261 Add conditional code so that the x86_64 is also supported.
23263 2005-06-14 Pascal Obry <obry@adacore.com>
23265 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
23268 2005-06-14 Robert Dewar <dewar@adacore.com>
23270 * opt.ads, opt.adb: New flags for persistent_bss mode
23271 Add Ada_Version_Explicit, for implementation of AI-362
23272 Add Assertions_Enabled_Config and associated handling
23273 Needed since setting can be changed with Assertion_Policy pragma
23274 Add new flag Warn_On_Ada_2005_Compatibility
23276 * switch-c.adb: Recognize -gnatwy/Y
23277 Set Ada_Version_Explicit, for implementation of AI-362
23278 The -gnatg switch now includes -gnatyu
23280 * usage.adb: Add -gnatwy/Y
23281 Remove wrong asterisk on -gnatwX line
23282 Add line for -gnatyu switch
23284 2005-06-14 Vincent Celier <celier@adacore.com>
23286 * osint.adb (Add_Default_Search_Dirs): Put source and object
23287 directories of project files before directories coming from
23288 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
23290 2005-06-14 Robert Dewar <dewar@adacore.com>
23293 * par-ch2.adb (Scan_Pragma_Argument): New procedure
23294 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
23296 2005-06-14 Vincent Celier <celier@adacore.com>
23298 * prep.adb (Preprocess): Ignore error when scanning the first token of
23301 2005-06-14 Vincent Celier <celier@adacore.com>
23303 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
23304 (Check_Stand_Alone_Library): If the specified reference symbol file does
23305 not exist, only issue a warning when the symbol policy is not
23306 Controlled. And, when symbol policy is Compliant, set the symbol
23307 policy to Autonomous.
23309 2005-06-14 Vincent Celier <celier@adacore.com>
23311 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
23312 when the project file in a with clause is not the last one, that is the
23313 project file name is followed by a comma.
23314 * prj-pp.adb: (First_With_In_List): New Boolean global variable
23315 (Print): Issue list of project files separated by commas in with clauses
23316 according to the values returned by Is_Not_Last_In_List.
23317 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
23318 (Set_Is_Not_Last_In_List): New procedure
23320 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
23322 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
23324 2005-06-14 Robert Dewar <dewar@adacore.com>
23326 * scng.adb: Add call to new Check_EOF routine
23327 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
23328 Add some comments regarding wide character handling
23330 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
23332 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
23334 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
23335 characters are now considered graphic characters and hence yield false
23338 * nmake.adt: Modify header so that xnmake does not generate output
23339 files with multiple blank lines.
23341 * treeprs.adt: Remove a blank line so that output from xtreeprs does
23342 not have an extra blank line
23344 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23346 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
23347 expression when the component type is an anonymous access type to
23348 ensure that appropriate accessibility checks are done.
23350 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
23351 expression of an assignment when the target object is of an anonymous
23352 access type. This ensures that required accessibility checks are done.
23353 (One_Bound): Move the check for type Universal_Integer to
23355 (Process_Bounds): Check whether the type of the preanalyzed range is
23356 Universal_Integer, and in that case set Typ to Integer_Type prior
23357 to setting the type of the original range and the calls to One_Bound.
23359 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23361 * sem_case.adb (Expand_Others_Choice): Improve warning.
23363 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23365 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
23366 constraint of full view if present, when other type is discriminated.
23367 (Eval_Relational_Op): Recognize tests of pointer values against Null,
23368 when the pointer is known to be non-null, and emit appropriate warning.
23370 2005-06-14 Robert Dewar <dewar@adacore.com>
23371 Ed Schonberg <schonberg@adacore.com>
23374 * sem_prag.adb: Implement pragma Persistent_BSS
23375 Remove obsolete pragma Persistent_Data, Persistent_Object
23376 Set Ada_Version_Explicit, for implementation of AI-362
23377 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
23378 Add processing for pragma Pure_05 and Preelaborate_05
23379 Add processing for Assertion_Policy pragma
23380 Add pragma identifiers for Assert
23381 (Analyze_Pragma, case Assert): Check number of arguments
23382 (Process_Inline): Additional guard against an illegal program, where the
23383 argument of the pragma is undefined, and warnings on redundant
23384 constructs are enabled.
23385 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
23386 Ada_05 to this pragma, specifying that the pragma is only active in
23388 (Check_Arg_Order): New procedure
23389 Add appropriate calls to this procedure throughout
23390 Also throughout, check entity name before doing any other checks
23392 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
23393 Remove obsolete pragma Persistent_Data, Persistent_Object
23394 Add entries for pragma Pure_05 and Preelaborate_05
23395 Add entries for Assertion_Policy pragma and associated names
23396 Add some names for pragma argument processing
23398 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
23400 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23402 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
23403 appears within a negation (either from source or as a rewriting of
23404 inequality) adjust text of warning accordingly.
23406 2005-06-14 Thomas Quinot <quinot@adacore.com>
23408 * s-strxdr.adb: Follow AI95-00132
23410 2005-06-14 Arnaud Charlet <charlet@adacore.com>
23412 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
23414 2005-06-14 Arnaud Charlet <charlet@adacore.com>
23415 Jose Ruiz <ruiz@adacore.com>
23417 * s-tposen.adb, s-tpobop.adb
23418 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
23420 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
23421 there is no violation of the Max_Entry_Queue_Length restriction (if it
23422 has been set); Program_Error is raised otherwise.
23423 (Requeue_Call): Before requeuing the task on the target entry queue we
23424 check that there is no violation of the Max_Entry_Queue_Length
23425 restriction (if it has been set); Program_Error is raised otherwise.
23427 2005-06-14 Robert Dewar <dewar@adacore.com>
23429 * styleg.adb: Fix several remaining problems in -gnatyu switch
23430 Blank line count not reset at start
23431 Scanning outside source buffer in some cases
23432 Confusing message for blanks at end of file
23433 Non-empty blank lines not recognized
23435 * nmake.adt: Modify header so that xnmake does not generate output
23436 files with multiple blank lines.
23438 * treeprs.adt: Remove a blank line so that output from xtreeprs does
23439 not have an extra blank line
23441 2005-06-14 Sergey Rybin <rybin@adacore.com>
23443 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
23445 2005-06-14 Doug Rupp <rupp@adacore.com>
23446 Vincent Celier <celier@adacore.com>
23448 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
23451 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23452 Remove "Library" command.
23453 Change keyword for style check -gnatyd from NOCRLF to
23455 Remove useless second style check keyword NONE
23456 Remove help documentation for inexistent style check keyword
23458 Add help documentation for style check keywords DOS_LINE_ENDINGS,
23459 UNNECESSARY_BLANK_LINES and XTRA_PARENS
23460 Add UNNECESSARY_BLANK_LINES for -gnatyu
23461 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
23463 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23465 2005-06-14 Vincent Celier <celier@adacore.com>
23467 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
23468 gprmake was invoked with -d.
23469 (Compile_Sources): If -d was used, output the "completed ..." message
23470 for each compilation.
23471 (Scan_Arg): Recognize new switch -d
23472 When -c and at least one main is specified, set
23473 Unique_Compile to True to guarantee that no other sources will be
23476 2005-06-14 Matthew Heaney <heaney@adacore.com>
23478 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
23479 * a-swuwha.ads, a-swuwha.adb: New files
23481 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
23482 * a-szuzha.ads, a-szuzha.adb: New files.
23484 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23485 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
23486 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
23487 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
23488 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
23489 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
23490 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
23491 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
23492 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
23493 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
23496 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
23497 Olivier Hainque <hainque@adacore.com>
23498 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23499 Pascal Obry <obry@adacore.com>
23501 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
23503 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
23504 making a temporary around a procedure call because of non-addressable
23506 (process_freeze_entity): If entity is a private type, capture size
23507 information that may have been computed for the full view.
23508 (tree_transform, case N_Allocator): If have initializing expression,
23509 check type for Has_Constrained_Partial_View and pass that to
23511 (tree_transform, case N_Return_Statement): Pass extra arg to
23514 * decl.c (annotate_value): Remove early return if -gnatR is not
23516 (gnat_to_gnu_field): Don't make a packable type for a component clause
23517 if the position is byte aligned, the field is aliased, and the clause
23518 size isn't a multiple of the packable alignment. It serves no useful
23519 purpose packing-wise and would be rejected later on.
23520 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
23523 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
23524 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
23526 (create_concat_name): Idem.
23528 2005-06-10 Robert Dewar <dewar@adacore.com>
23529 Eric Botcazou <ebotcazou@adacore.com>
23530 Ben Brosgol <brosgol@adacore.com>
23531 Cyrille Comar <comar@adacore.com>
23532 Sergey Rybin <rybin@adacore.com>
23533 Pascal Obry <obry@adacore.com>
23535 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
23536 Document second argument (Ada_05) of pragma Obsolescent
23537 Add note that call to subprogram marked with pragma Obsolescent
23538 is now considered to be a violation of program Restrictions
23539 (No_Obsolescent_Features).
23540 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
23541 that only machine-dependent attributes are supported.
23544 Commented out menu lines and empty section for gnatclean examples
23546 Fix some over long lines
23547 Clarify and enhance documentation of ADA_PROJECT_PATH.
23548 Rework section 2.11.2(3) about linking with a non-GNU compiler.
23549 Mention new switch -fcallgraph-info.
23550 Mention new switch -fstack-usage.
23551 For gnatpp, replace '-notab' with '-N' and add this option to Index
23552 Corrected VMS example.
23553 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
23555 Add documentation for -gnatyu switch (unnecessary blank lines)
23556 Document new switch -U for GNAT PRETTY and GNAT METRIC
23557 Add note about Stdcall being handled as C convention on non Windows OS.
23558 Remove some junk typo in description of gnatbind -S switch
23559 Remove reference to Extensions_Allowed pragma
23560 Document the new order of the directories to be searched (source and
23561 object directories of project files before directories in ADA_*_PATH
23562 environment variables.
23564 * g-trasym.ads: Document that IRIX is supported
23566 2005-06-10 Arnaud Charlet <charlet@adacore.com>
23568 * Makefile.in: Add initialize.o when needed.
23569 Adapt to new VMS package body Symbols and subunits
23570 No specialized version of a-sytaco is needed for VxWorks.
23572 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
23573 * a-zchara.ads, a-widcha.ads: New files.
23575 * system-hpux-ia64.ads: New file.
23577 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
23578 is imported from the VxWorks kernel.
23580 2005-06-14 Robert Dewar <dewar@adacore.com>
23582 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
23583 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
23584 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
23585 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
23586 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
23587 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
23588 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
23589 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
23590 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
23591 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
23592 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
23593 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
23595 2005-06-14 Thomas Quinot <quinot@adacore.com>
23597 * xeinfo.adb: Fix typo in comment
23599 2005-06-14 Javier Miranda <miranda@adacore.com>
23601 * repinfo.ads: Fix typo in comment
23603 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23605 * s-finimp.adb (Parent_Tag): Delete this imported function (function
23606 Parent_Tag is now in the visible part of Ada.Tags).
23607 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
23608 using imported function.
23610 2005-06-14 Bernard Banner <banner@adacore.com>
23612 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
23613 also apply for handling support for VxSim 653.
23615 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
23617 * xsnames.adb: Add automatic generation of snames.h.
23619 2005-06-14 Thomas Quinot <quinot@adacore.com>
23621 * gen-soccon.c: Add IP_MULTICAST_IF constant
23622 Minor reformatting and adjustments to prevent warnings.
23624 2005-06-14 Pascal Obry <obry@adacore.com>
23626 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
23628 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
23630 * trans.c (gnat_gimplify_expr): Call
23631 recompute_tree_invarant_for_addr_expr when we change
23632 the operand of the ADDR_EXPR.
23634 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23636 * misc.c: Don't include errors.h.
23638 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23640 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
23642 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
23644 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
23646 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
23648 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
23651 * Makefile.in: Make TGT_LIB behave correctly.
23653 2005-04-23 DJ Delorie <dj@redhat.com>
23655 * misc.c: Adjust warning() callers.
23657 2005-04-16 Laurent Guerby <laurent@guerby.net>
23660 * a-nudira.adb (Value): Check for valid string.
23661 * a-nuflra.adb (Value): Likewise.
23663 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
23665 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
23667 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
23669 * adaint.c, init.c, tracebak.c: Fix comment typos.
23670 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
23672 2005-04-07 Laurent Guerby <laurent@guerby.net>
23673 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23675 * Makefile.in: Add make ifeq define for hppa linux tasking support.
23676 * system-hpux.ads: Define Signed_Zeros to be True.
23677 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
23679 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
23681 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
23682 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
23685 2005-03-30 Tom Tromey <tromey@redhat.com>
23687 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
23689 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
23691 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
23693 2005-03-29 Robert Dewar <dewar@adacore.com>
23695 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
23696 fixed-point expression has value that is not a multiple of the Small
23699 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
23701 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
23704 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
23706 2005-03-29 Vincent Celier <celier@adacore.com>
23708 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
23709 (Build_Dynamic_Library.Version_String): Return the empty string when
23710 Lib_Version is empty or when the symbol policy is not Autonomous.
23712 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
23713 a symbol is not in the reference symbol file, increase the Major ID
23714 and set the Minor ID to 0.
23715 Use gsmatch=lequal instead of gsmatch=equal
23717 2005-03-29 Doug Rupp <rupp@adacore.com>
23719 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
23720 name and translate.
23722 2005-03-29 Javier Miranda <miranda@adacore.com>
23724 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
23725 (Inherit_DT): The first formal has been redefined as a Tag.
23726 This allows us the removal of the subprogram Get_TSD.
23727 (TSD): Replace the call to Get_TSD by the actual code.
23729 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
23730 (Make_DT): Upgrade the call to Inherit_TSD according to the
23731 new interface: the first formal is now a Tag.
23733 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
23734 redefined as a Tag.
23735 This change allows us to remove the subprogram Get_TSD.
23736 (CPP_Get_TSD): Subprogram removed.
23737 (TSD): Replace the call to CPP_Get_TSD by the actual code.
23739 * rtsfind.ads: Remove support to call the run-time
23742 2005-03-29 Robert Dewar <dewar@adacore.com>
23744 * errutil.adb, errout.adb:
23745 Minor comment updates on Line_Terminator references
23747 * par-ch10.adb: Add ??? comment about line terminator
23749 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
23750 (check dos line terminator).
23751 (Check_Line_Max_Length): New procedure, split off from the existing
23752 Check_Line_Terminator routine. Separating this out allows -gnatyf to
23753 be properly recognized.
23755 * styleg.adb: Add ??? comment for line terminator reference
23757 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
23758 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
23760 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
23761 (check dos line terminator).
23762 (Check_Line_Max_Length): New procedure, split off from the existing
23763 Check_Line_Terminator routine. Separating this out allows -gnatyf to
23764 be properly recognized.
23766 * stylesw.ads, stylesw.adb:
23767 Add handling for new -gnatyd switch (check dos line terminator)
23769 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
23770 Recognize -gnatwb/-gnatwB switches
23771 Include Warn_On_Bad_Fixed_Value for -gnatg
23774 Add line for new -gnatyd switch (check dos line terminator)
23776 * usage.adb: Add lines for -gnatwb/-gnatwB
23778 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
23780 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
23782 * gnat_ugn.texi: Fix overlong lines
23783 Document new -gnatyd switch
23784 Document new -gnatwb/-gnatwB switches
23786 2005-03-29 Ed Schonberg <schonberg@adacore.com>
23788 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
23789 order to retrieve the component list of the type, before examining
23790 individual components.
23792 * sem_type.adb (Covers): Types are compatible if one is the base type
23793 of the other, even though their base types might differ when private
23794 views are involved.
23796 2005-03-29 Thomas Quinot <quinot@adacore.com>
23798 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
23799 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
23800 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
23801 analyzed if expansion is disabled (which could otherwise cause spurious
23802 error messages if expansion has been disabled due to previous
23803 (unrelated) errors).
23805 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
23806 is disabled, the entity denoted by the argument is the access type
23807 itself, not an underlying record type, so there is no need to go back
23808 to the Corresponding_Remote_Type.
23810 2005-03-29 Gary Dismukes <dismukes@adacore.com>
23811 Robert Dewar <dewar@adacore.com>
23813 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
23814 expand a call to an instance of
23815 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
23816 Constructor actual of the instance. A class-wide membership
23817 check is also generated, to ensure that the tag passed to the instance
23818 denotes a type in the class.
23819 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
23820 of Name_Generic_Dispatching_Constructor.
23822 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
23823 05 unit for AI-260-02).
23825 * a-tgdico.ads: New file.
23827 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
23828 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
23830 * snames.ads, snames.adb (Preset_Names): Add entry for
23831 Generic_Dispatching_Constructor.
23834 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
23835 character type cases.
23836 (Analyze_Subprogram_Renaming): Add special handling for
23837 the case of renaming of stream attributes when the renaming denotes a
23838 generic formal subprogram association for an abstract formal subprogram.
23839 Check that the attribute is a primitive stream attribute (and not
23840 a class-wide stream attribute) and then rewrite the attribute name
23841 as the name of the appropriate compiler-generated stream primitive.
23843 2005-03-29 Robert Dewar <dewar@adacore.com>
23845 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
23847 (Is_Possibly_Unaligned_Object): Correct typo that
23848 resulted in inaccurate result for unaligned scalars within records.
23850 2005-03-29 Ed Schonberg <schonberg@adacore.com>
23852 * freeze.adb (Freeze_Record_Type): If the type of the component is an
23853 itype whose parent is controlled and not yet frozen, do not create a
23854 freeze node for the itype if expansion is disabled.
23856 2005-03-29 Vincent Celier <celier@adacore.com>
23858 * make.adb (Gnatmake): Don't fail if the main project file is declared
23859 as having no Ada sources. Do not display message "no sources to
23860 compile" in quiet output.
23862 2005-03-29 Doug Rupp <rupp@adacore.com>
23864 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
23867 2005-03-29 Robert Dewar <dewar@adacore.com>
23869 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
23872 2005-03-29 Robert Dewar <dewar@adacore.com>
23874 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
23875 missing TYPE Improve the error message generated when compiling a
23876 limited interface in Ada83 or Ada95 mode.
23878 2005-03-29 Robert Dewar <dewar@adacore.com>
23880 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
23881 rather than proceed ahead using a junk attribute name.
23883 2005-03-29 Vincent Celier <celier@adacore.com>
23885 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
23887 * prj-part.adb (Parse_Single_Project): Set the location of a project
23888 on its defining identifier, rather than on the reserved word "project".
23890 * prj-proc.adb (Expression): Adapt to the fact that default of external
23891 references may be string expressions, not always literal strings.
23892 (Recursive_Process): Set Display_Name equal to Name
23893 when Location is No_Location, that is when there is no actual file.
23894 Get the Display_Name of the project from the source, when it is not a
23896 (Process): Use the Display_Name in error messages
23898 * prj-strt.adb (External_Reference): Allow default to be string
23899 expressions, not only literal strings.
23901 2005-03-29 Vincent Celier <celier@adacore.com>
23903 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
23904 file and the reference symbol file to be the same file.
23906 2005-03-29 Thomas Quinot <quinot@adacore.com>
23908 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
23909 forbid conversion of a local access-to-subprogram type to a remote one.
23911 * sem_util.adb (Wrong_Type): For a record type that is the expanded
23912 equivalent type for a remote access-to-subprogram type, go back to the
23913 original RAS entity when displaying an error message, so the casing is
23914 the original source casing.
23916 2005-03-29 Robert Dewar <dewar@adacore.com>
23918 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
23921 2005-03-29 Ed Schonberg <schonberg@adacore.com>
23923 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
23924 subtype if code is being pre-analyzed, to prevent un-expanded
23925 references to protected formals, among others.
23926 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
23927 interpretation that can be a call, include the result of the call as a
23928 possible interpretation of the dereference.
23930 * sem_ch5.adb (Process_Bounds): Determine type of range by
23931 pre-analyzing a copy of the original range, and then analyze the range
23932 with the expected type.
23934 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
23935 with an overloaded prefix where not all interpretations yield an
23936 access to subprogram, do not rewrite node as a call.
23937 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
23938 the node as a call once the context identifies the interpretation of
23939 the prefix whose call yields the context type.
23940 (Valid_Conversion): For the case of a conversion between
23941 local access-to-subprogram types, check subtype conformance using
23942 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
23943 detailed error message.
23945 2005-03-29 Ed Schonberg <schonberg@adacore.com>
23947 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
23948 indicator, indicate that the formal can never be null.
23949 (Process_Formals): If a formal has a non_null indicator, insert the
23950 resulting subtype immediately before the enclosing subprogram decl,
23951 and not at the beginning of the corresponding declarative part, to
23952 prevent access before elaboration (Ada2005).
23954 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23957 * utils.c (finish_record_type): Use variable_size when setting sizes.
23959 2005-03-29 Robert Dewar <dewar@adacore.com>
23961 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
23962 guarantee Unix style line terminators for the output files, even when
23963 running on windows.
23965 2005-03-29 Robert Dewar <dewar@adacore.com>
23967 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
23968 buffer if an exception is raised.
23970 2005-03-29 Ed Falis <falis@adacore.com>
23972 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
23975 2005-03-29 Robert Dewar <dewar@adacore.com>
23977 * sem_util.ads: Minor reformatting
23978 * gnat_rm.texi: Minor editing.
23980 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
23982 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
23983 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
23985 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
23987 * adaint.c (__gnat_portable_spawn): Adjust cast.
23989 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
23991 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
23993 2005-03-17 Pascal Obry <obry@adacore.com>
23995 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
23998 * expect.c (__gnat_waitpid): Moved here from adaint.c.
23999 Reimplement under Win32 using Win32 API.
24001 (__gnat_kill) [Win32]: Properly close the process handle before leaving
24004 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
24006 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
24007 (DECL_RENAMED_OBJECT): New accessor macro.
24008 (SET_DECL_RENAMED_OBJECT): New setter macro.
24010 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
24011 object in all cases. Attach the renamed object to the VAR_DECL.
24012 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
24013 field is not prescribed.
24015 * misc.c (gnat_handle_option): Handle -gnatO separately.
24016 (gnat_print_decl) <VAR_DECL>: New case.
24017 Print the DECL_RENAMED_OBJECT node.
24019 * lang.opt: Declare separate -gnatO option.
24021 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
24022 pointer, replace it with the renamed object.
24023 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
24024 pointer type if the source is not a fat pointer type whose underlying
24025 array has the same non-zero alias set as that of the destination array.
24027 2005-03-17 Javier Miranda <miranda@adacore.com>
24029 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
24030 (Get_Inheritance_Depth): Removed.
24031 (Set_Inheritance_Depth): Removed.
24033 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
24034 subprogram Get_Expanded_Name because it is not referenced by the
24037 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
24038 (CPP_Get_Inheritance_Depth): Removed.
24039 (CPP_Set_Inheritance_Depth): Removed.
24041 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
24043 2005-03-17 Robert Dewar <dewar@adacore.com>
24045 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
24046 3, since we now expect GCC 3 to do all the work.
24048 2005-03-17 Javier Miranda <miranda@adacore.com>
24050 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
24051 of one barrier to avoid wrong usage of this attribute.
24053 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
24054 First_Private_Entity.
24056 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
24057 the subprogram against wrong usage.
24058 Adapt the code to traverse the entities in the
24059 scope of a record_type because in addition to its usage regarding
24060 packages, this subprogram is also called by Expand_N_Freeze_Entity
24061 to install the visible declarations of the enclosing scope of a
24062 record_type_with_private to establish the proper visibility before
24063 freezing the entity and related subprograms.
24065 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24067 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
24070 2005-03-17 Thomas Quinot <quinot@adacore.com>
24072 * exp_ch3.adb (Check_Attr): New subprogram.
24073 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
24074 into a new Check_Attr subprogram, in order to provide a more
24075 explanatory error message (including the name of the missing attribute).
24076 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
24077 subprogram determines whether a default implementation exists for a
24078 given stream attribute.
24079 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
24080 Determine whether to generate a default implementation for each stream
24081 attribute separately, as this depends on the specific attribute.
24083 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
24084 limited extension where a stream attribute is missing for a limited
24085 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
24086 generate a bogus reference to the missing attribute to prevent
24087 cascaded errors. Instead, generate a null statement.
24089 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
24090 available for a limited type if it has been specified for an ancestor
24093 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24095 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
24096 entity is an operator.
24098 2005-03-17 Thomas Quinot <quinot@adacore.com>
24100 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24101 spec, to make this predicate available to other units.
24103 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
24106 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
24107 when no distribution runtime library is available.
24109 * sem_res.adb, sem_dist.adb: Disable expansion of remote
24110 access-to-subprogram types when no distribution runtime library is
24112 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
24113 predicate available to other units.
24115 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24116 spec, to make this predicate available to other units.
24118 2005-03-17 Vincent Celier <celier@adacore.com>
24120 * make.adb (Insert_Project_Sources): Make sure the Q is always
24123 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
24124 the default for the tree, not the global default naming.
24126 * prj-proc.adb (Recursive_Process): No need to put the default naming
24127 in the project data, it's already there.
24129 2005-03-17 Doug Rupp <rupp@adacore.com>
24131 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
24133 * 5xcrtl.ads: Renamed to...
24134 * s-crtl-vms64.ads: ...this new file
24136 2005-03-17 Robert Dewar <dewar@adacore.com>
24139 * namet.adb (Copy_One_Character): Set proper wide character encoding
24140 for upper half character if we have upper half encoding.
24142 2005-03-17 Robert Dewar <dewar@adacore.com>
24144 * par.adb (Par): Improved msg for attempt to recompile predefined unit
24146 2005-03-17 Thomas Quinot <quinot@adacore.com>
24148 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
24149 tagged limited type, the TSS is a newly built renaming declaration:
24150 insert it using Set_TSS, not Copy_TSS.
24152 2005-03-17 Javier Miranda <miranda@adacore.com>
24154 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
24155 Try_Object_Operation): Analyze the object that is accessible
24156 through the prefix of the subprogram call before we apply
24157 the transformation of the object-operation notation.
24159 2005-03-17 Jose Ruiz <ruiz@adacore.com>
24161 * s-taprob.adb (Initialize_Protection): Initialize the protected
24162 object's owner to Null_Task.
24163 (Lock): If pragma Detect_Blocking is in effect and the caller of this
24164 procedure is already the protected object's owner then Program_Error
24165 is raised. In addition the protected object's owner is updated.
24166 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
24167 of this procedure is already the protected object's owner then
24168 Program_Error is raised.
24169 In addition the protected object's owner is updated.
24170 (Unlock): Remove the ownership of the protected object.
24172 * s-taprob.ads (Protection): Add the field Owner, used to store the
24173 protected object's owner.
24174 This component is needed for detecting one type of potentially blocking
24175 operations (external calls on a protected subprogram with the same
24176 target object as that of the protected action). Document the rest of
24179 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
24180 Initialize the protected object's owner to Null_Task.
24181 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
24182 caller of this procedure is already the protected object's owner then
24183 Program_Error is raised.
24184 Do not raise Program_Error when this procedure is called from a
24186 (Unlock_Entries): Remove the ownership of the protected object.
24187 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
24188 of this procedure is already the protected object's owner then
24189 Program_Error is raised.
24190 Do not raise Program_Error when this procedure is called from
24191 a protected action.
24193 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
24194 used to store the protected object's owner.
24196 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
24197 effect and this procedure (a potentially blocking operation) is called
24198 from whithin a protected action, Program_Error is raised.
24199 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
24200 and this procedure (a potentially blocking operation) is called from
24201 whithin a protected action, Program_Error is raised.
24203 2005-03-17 Vincent Celier <celier@adacore.com>
24204 Nicolas Setton <setton@adacore.com>
24206 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
24207 switch, not supported by the linker on Darwin. Add '_' before
24208 <library>init, as this character is added unconditionally by the
24210 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
24211 correct one ".dylib". This fixes detection of the archive files when
24212 building library projects.
24214 2005-03-17 Vincent Celier <celier@adacore.com>
24216 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
24217 -gnat83, -gnat95 and -gnat05.
24219 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
24221 * gnat_ugn.texi: Document gnatmem restriction
24223 2005-03-17 Thomas Quinot <quinot@adacore.com>
24225 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
24228 2005-03-17 Robert Dewar <dewar@adacore.com>
24230 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
24231 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
24232 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
24234 * casing.adb: Comment improvements
24236 2005-03-17 Pascal Obry <obry@adacore.com>
24238 * g-expect.adb: Minor reformatting.
24240 2005-03-15 Zack Weinberg <zack@codesourcery.com>
24242 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
24243 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
24246 2005-03-15 Vincent Celier <celier@adacore.com>
24248 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
24249 Add new parameter In_Tree to specify the project tree: needed
24250 by the project manager. Adapt to changes in project manager
24251 using new parameter In_Tree.
24253 2005-03-15 Jakub Jelinek <jakub@redhat.com>
24255 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
24256 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
24257 ada/bldtools to avoid make -jN failures.
24259 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24261 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
24262 to NULL_TREE on entry.
24264 2005-03-15 Robert Dewar <dewar@adacore.com>
24266 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24267 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24268 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24269 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24270 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24271 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
24272 system-interix.ads, system-solaris-sparc.ads,
24273 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24274 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
24275 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24276 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
24277 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
24278 Compiler_System_Version to be False.
24280 * opt.ads: Add new flag Opt.Address_Is_Private
24282 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
24283 Add new parameter Compiler_System_Version to avoid checking for
24284 completeness of parameters when compiler is compiling itself.
24285 Allows old versions of GNAT to be compiled with new compiler.
24287 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24289 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
24290 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
24292 (Stack_Base_Available): New flag.
24293 (Get_Page_Size): New overloaded functions imported from C.
24294 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
24295 PROT_ON, PROT_OFF): New constants.
24296 (mprotect): New function imported from C.
24297 (pthread_teb_t): New record type.
24299 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
24300 (Create_Task): Account for the Yellow Zone and the guard page.
24302 2005-03-15 Vincent Celier <celier@adacore.com>
24304 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24305 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24306 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
24307 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
24308 Library_File_Name_For): Add new parameter In_Tree
24309 to specify the project tree: needed by the project manager.
24310 Adapt to changes in project manager using new parameter In_Tree.
24311 Remove local imports, use functions in System.CRTL.
24313 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
24314 to use the project manager.
24316 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
24317 In_Tree to designate the project tree. Adapt to changes in the project
24318 manager, using In_Tree.
24320 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
24321 Copy_Interface_Sources): Add new parameter In_Tree to specify the
24322 project tree: needed by the project manager.
24323 (Build_Library): Check that Arg'Length >= 6 before checking if it
24324 contains "--RTS=...".
24326 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
24327 Library_File_Name_For): Add new parameter In_Tree to specify the
24328 project tree: needed by the project manager.
24330 * prj.ads, prj.adb: Major modifications to allow several project trees
24331 in memory at the same time.
24332 Change tables to dynamic tables and hash tables to dynamic hash
24333 tables. Move tables and hash tables from Prj.Com (in the visible part)
24334 and Prj.Env (in the private part). Move some constants from the visible
24335 part to the private part. Make other constants deferred.
24336 (Project_Empty): Make it a variable, not a function
24337 (Empty_Project): Add parameter Tree. Returns the data with the default
24338 naming data of the project tree Tree.
24339 (Initialize): After updating Std_Naming_Data, copy its value to the
24340 component Naming of Project Empty.
24341 (Register_Default_Naming_Scheme): Use and update the default naming
24342 component of the project tree, instead of the global variable
24344 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
24345 Tree is not defaulted, return the default naming data of the Tree.
24346 (Initial_Buffer_Size): Constant moved from private part
24347 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
24348 variables initialized in procedure Initialize.
24349 (Add_To_Buffer): Add two in out parameters to replace global variables
24350 Buffer and Buffer_Last.
24351 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
24353 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
24355 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24356 for the project tree.
24357 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
24358 constant at the beginning of the package spec, so that they cane be used
24359 in subprograms before their full declarations.
24360 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
24361 (Empty_Project): Add parameter of type Project_Node_Ref
24362 (Private_Project_Tree_Data): Add component Default_Naming of type
24364 (Buffer, Buffer_Last): remove global variables
24365 (Add_To_Buffer): Add two in out parameters to replace global variables
24366 Buffer and Buffer_Last.
24367 (Current_Packages_To_Check): Remove global variable
24368 (Empty_Name): Move to private part
24369 (No-Symbols): Make it a constant
24370 (Private_Project_Tree_Data): New type for the private part of the
24372 (Project_Tree_Data): New type for the data of a project tree
24373 (Project_Tree_Ref): New type to designate a project tree
24374 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24375 for the project tree.
24377 * prj-attr.ads: Add with Table; needed, as package Prj no longer
24378 imports package Table.
24380 * prj-com.adb: Remove empty, no longer needed body
24382 * prj-com.ads: Move most of the content of this package to package Prj.
24384 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
24385 designate the project node tree and Packages_To_Check to replace
24386 global variable Current_Packages_To_Check.
24387 Add new parameters In_Tree and Packages_To_Check to local subprograms,
24388 when needed. Adapt to changes in project manager with project node tree
24391 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
24392 project tree to most subprograms. Move tables and hash tables to
24393 private part of package Prj.
24394 Adapt to changes in project manager using project tree In_Tree.
24396 * prj-makr.adb (Tree): New constant to designate the project node tree
24397 Adapt to change in project manager using project node tree Tree
24399 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
24400 display the Library_Src_Dir and the Library_Dir.
24401 Add new parameter In_Tree to designate the project node tree to most
24402 subprograms. Adapt to changes in the project manager, using project tree
24404 (Check_Naming_Scheme): Do not alter the casing on platforms where
24405 the casing of file names is not significant.
24406 (Check): Add new parameter In_Tree to designate the
24408 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
24409 designate the project tree.
24410 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
24412 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
24413 to replace those that were in the private part of package Prj.
24414 Add new parameter In__Tree to designate the project node tree to most
24415 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24416 (Post_Parse_Context_Clause): When specifying the project node of a with
24417 clause, indicate that it is a limited with only if there is "limited"
24418 in the with clause, not necessarily when In_Limited is True.
24419 (Parse): Add new parameter In_Tree to designate the project node tree
24421 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
24422 designate the project node tree. Adapt to change in Prj.Tree with
24423 project node tree In_Tree.
24425 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
24426 tree In_Tree in the call to function Empty_Process to give its initial
24427 value to the project data Processed_Data.
24428 Add new parameters In_Tree to designate the project tree and
24429 From_Project_Node_Tree to designate the project node tree to several
24430 subprograms. Adapt to change in project manager with project tree
24431 In_Tree and project node tree From_Project_Node_Tree.
24433 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
24434 to replace those that were in the private part of package Prj.
24435 Add new parameter In_Tree to designate the project node tree to most
24436 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24438 * prj-tree.ads, prj-tree.adb: Add new parameter of type
24439 Project_Node_Tree_Ref to most subprograms.
24440 Use this new parameter to store project nodes in the designated project
24442 (Project_Node_Tree_Ref): New type to designate a project node tree
24443 (Tree_Private_Part): Change table to dynamic table and hash tables to
24444 dynamic hash tables.
24446 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
24447 the project tree to most subprograms. Adapt to changes in project
24448 manager using project tree In_Tree.
24450 * makegpr.adb (Project_Tree): New constant needed to use project
24453 2005-03-15 Olivier Hainque <hainque@adacore.com>
24455 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
24456 for sigactions with SA_SIGINFO set. Call
24457 __gnat_adjust_context_for_raise before raising, to perform the
24458 potentially required adjustments to the machine context for the GCC
24461 * raise.h (__gnat_adjust_context_for_raise): New prototype.
24463 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
24464 Adjust PC by one in the provided machine context.
24465 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
24466 so that the handler is passed the context structure to adjust prior to
24468 (__gnat_error_handler) HPUX: Adjust the signature to match what an
24469 SA_SIGINFO sigaction should look like. Call
24470 __gnat_adjust_context_for_raise before actually raising.
24471 (__gnat_adjust_context_for_raise): Default noop to help PC
24472 adjustments before raise from signal handlers.
24473 (__gnat_error_handler): Indirectly call a predicate function to
24474 determine if a condition should be resignaled or not.
24475 (__gnat_set_resignal_predicate): User interface to modify the predicate.
24476 (__gnat_default_resignal_p): Default GNAT predicate.
24478 2005-03-15 Doug Rupp <rupp@adacore.com>
24480 * adaint.c: Prefix #include of VMS system header files with vms/
24481 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
24482 Do not define a dummy function "convert_addresses" under Darwin,
24485 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
24488 2005-03-15 Nicolas Setton <setton@adacore.com>
24490 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
24493 2005-03-15 Robert Dewar <dewar@adacore.com>
24495 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
24498 * a-retide.ads: Minor comment changes
24500 2005-03-15 Robert Dewar <dewar@adacore.com>
24502 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
24503 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
24504 Realloc_For_Chunk to private part of package.
24505 New subprograms for AI-301
24507 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
24508 Get_Line procedure.
24509 Avoid unnecessary use of Get/Set_Wide_String
24511 2005-03-15 Robert Dewar <dewar@adacore.com>
24514 * a-stunau.ads, a-stunau.adb:
24515 Change interface to allow efficient (and correct) implementation
24516 The previous changes to allow extra space in unbounded strings had
24517 left this interface a bit broken.
24519 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
24521 * g-spipat.ads, g-spipat.adb: New interface for Get_String
24522 Minor reformatting (function specs)
24524 * g-spitbo.adb: New interface for Get_String
24526 * g-spitbo.ads: Minor reformatting
24528 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
24530 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
24532 2005-03-15 Javier Miranda <miranda@adacore.com>
24533 Robert Dewar <dewar@adacore.com>
24534 Thomas Quinot <quinot@adacore.com>
24535 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24537 * atree.ads, atree.adb: Add support for Elist24 field
24539 * atree.h: Fix wrong definition of Field27
24540 Add support for Elist16 field
24541 Add support for Elist24 field
24543 * einfo.ads, einfo.adb (Abstract_Interfaces,
24544 Set_Abstract_Interfaces): New subprograms.
24545 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
24547 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
24548 entities rather than a single node.
24549 (Is_Interface, Set_Is_Interface): New subprogram
24550 (First_Tag_Component): New syntesized attribute
24551 (Next_Tag_Component): New synthesized attribute
24552 (Write_Entity_Flags): Upgraded to write Is_Interface
24553 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
24554 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
24555 (Task_Body_Procedure): New subprogram to read this attribute.
24556 (Set_Task_Body_Procedure): New subprogram to set this attribute.
24557 (Has_Controlled_Component): Now applies to all entities.
24558 This is only a documentation change, since it always worked to apply
24559 this to other than composite types (yielding false), but now this is
24561 Update documentation on Must_Be_Byte_Aligned for new spec
24563 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
24564 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
24565 uses of the Access_Disp_Table attribute to reference the first dispatch
24566 table associated with a tagged type. As
24567 part of the implementation of abstract interface types,
24568 Access_Disp_Table has been redefined to contain a list of dispatch
24569 tables (rather than a single dispatch table).
24570 Similarly, upgrade all the references to Tag_Component by the
24571 new attribute First_Tag_Component.
24572 (Find_Inherited_TSS): Moved to exp_tss.
24573 Clean up test in Expand_N_Object_Declaration for cases
24574 where we need to do a separate assignment of the initial value.
24575 (Expand_N_Object_Declaration): If the expression in the
24576 declaration of a tagged type is an aggregate, no need to generate an
24577 additional tag assignment.
24578 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
24580 Bit packed array ops are only called if operands are known to be
24582 (Component_Equality): When returning an N_Raise_Program_Error statement,
24583 ensure that its Etype is set to Empty to avoid confusing GIGI (which
24584 expects that only expressions have a bona fide type).
24585 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
24586 determine the amount of data to be copied.
24588 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
24589 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
24590 INTERFACE_TYPE_DEFINITION ::=
24591 [limited | task | protected | synchronized] interface
24592 [AND interface_list]
24594 * par-ch3.adb (P_Type_Declaration): Modified to give support to
24596 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
24598 (P_Interface_Type_Definition): New subprogram that parses the new
24599 syntax rule of Ada 2005 interfaces
24600 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
24601 messages by the correct RENAMES (quotes removed).
24603 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
24604 attribute First_Tag_Component.
24606 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
24607 (Interface_List, Set_Interface_List): New subprograms.
24608 (Interface_Present, Set_Interface_Present): New subprograms.
24609 (Limited_Present, Set_Limited_Present): Available also in derived
24610 type definition nodes.
24611 (Protected_Present, Set_Protected_Present): Available also in
24612 record type definition and
24613 derived type definition nodes.
24614 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
24615 (Task_Present, Set_Task_Present): New subprogram.
24616 (Task_Body_Procedure): Removed.
24617 (Set_Task_Body_Procedure): Removed.
24618 These subprogram have been removed because the attribute
24619 Task_Body_Procedure has been moved to the corresponding task type
24620 or task subtype entity to leave a field free to store the list
24621 of interfaces implemented by a task (for AI-345)
24622 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
24623 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
24624 expression flag Do_Range_Check
24625 (Exception_Junk): Change to Flag7 to accomodate above change
24626 (Box_Present, Default_Name, Specification, Set_Box_Present,
24627 Set_Default_Name, Set_Specification): Expand the expression
24628 "X in N_Formal_Subprogram_Declaration" into the corresponding
24629 two comparisons. Required to use the csinfo tool.
24631 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
24632 "with string" given.
24634 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
24637 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
24640 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
24641 attribute Task_Body_Procedure rather than the old semantic field that
24642 was available in the task_type_declaration node.
24644 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
24645 interface type definitions.
24646 (P_Formal_Derived_Type_Definition): Modified to handle the list of
24649 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
24650 task type declaration.
24651 (P_Protected): Modified to handle the list of interfaces in a
24652 protected type declaration.
24654 2005-03-15 Doug Rupp <rupp@adacore.com>
24655 Vincent Celier <celier@adacore.com>
24657 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
24658 (Gen_Output_File_C): Likewise.
24659 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
24661 2005-03-15 Thomas Quinot <quinot@adacore.com>
24663 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
24664 is an N_Raise_Constraint_Error node, create a new copy of it without
24665 going through a call to Duplicate_Subexpr.
24667 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24668 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24669 Nicolas Setton <setton@adacore.com>
24670 Ed Schonberg <schonberg@adacore.com>
24676 * decl.c (gnat_to_gnu_field): Reject aliased components with a
24677 representation clause that prescribes a size not equal to the rounded
24678 size of their types.
24679 (gnat_to_gnu_entity, case E_Component): Always look at
24680 Original_Record_Component if Present and not the entity.
24681 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
24682 of tagged extension types by not making field for components that are
24684 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
24685 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
24686 expression to the type of the object when the object is constant.
24687 Reverse defer_debug_incomplete_list before traversing it, so that trees
24688 are processed in the order at which they were added to the list. This
24689 order is important when using the stabs debug format.
24690 If we are deferring the output of debug information, also defer this
24691 output for a function return type.
24692 When adding fields to a record, prevent emitting debug information
24693 for incomplete records, emit the information only when the record is
24695 (components_to_record): New parameter defer_debug.
24696 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
24697 (gnat_to_gnu_field_decl): New function.
24698 (substitution_list, annotate_rep): Call it.
24699 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
24700 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
24701 No longer update discriminants to not be a COMPONENT_REF.
24702 (copy_alias_set): Strip padding from input type; also handle
24703 unconstrained arrays properly.
24705 * gigi.h (write_record_type_debug_info): New function.
24706 Convert to use ANSI-style prototypes. Remove unused
24707 declarations for emit_stack_check, elab_all_gnat and
24708 set_second_error_entity.
24709 (gnat_to_gnu_field_decl): New decl.
24711 * utils.c (write_record_type_debug_info): New function.
24712 (finish_record_type): Delegate generation of debug information to
24713 write_record_type_debug_info.
24714 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
24715 (update_pointer_to): Fix pasto.
24716 (convert) <UNION_TYPE>: Accept slight type variations when
24717 converting to an unchecked union type.
24719 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
24720 replace the N_Freeze_Entity with a null statement.
24722 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
24723 within a constrained subcomponent of an enclosing record, place the
24724 freeze nodes in the scope stack entry for the enclosing record.
24725 (Undelay_Type): New Subprogram.
24726 (Set_Small_Size): Pass T, the type to modify; all callers changed.
24727 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
24728 within records; allow them to have freeze nodes if their base types
24731 * exp_util.adb (Remove_Side_Effects): Properly test for
24732 Expansion_Delayed and handle case when it's inside an
24733 N_Qualified_Expression.
24735 * sem_ch3.adb (Derived_Type_Declaration): New predicate
24736 Comes_From_Generic, to recognize accurately that the parent type in a
24737 derived type declaration can be traced back to a formal type, because
24738 it is one or is derived from one, or because its completion is derived
24740 (Constrain_Component_Type): If component comes from source and has no
24741 explicit constraint, no need to constrain in in a subtype of the
24743 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
24744 Minor change to propagate Is_Ada_2005 flag
24746 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
24747 Expansion_Delayed is False.
24748 (assoc_to_constructor): Ignore fields that have a
24749 Corresponding_Discriminant.
24750 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
24751 function returns "by target", dereference the target pointer using the
24752 type of the actual return value.
24753 <all>: Be prepared for a null gnu_result.
24754 (processed_inline_subprograms): Check flag_really_no_inline
24755 instead of flag_no_inline.
24756 (set_second_error_entity): Remove unused function.
24757 (gnat_to_gnu, case N_Selected_Component): Call
24758 gnat_to_gnu_field_decl.
24759 (assoc_to_constructor): Likewise.
24761 2005-03-15 Robert Dewar <dewar@adacore.com>
24762 Ed Schonberg <schonberg@adacore.com>
24763 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24765 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
24766 Must_Be_Byte_Aligned for cases where we do not need to use a
24767 System.Pack_nn unit.
24769 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
24771 Needed now that we do some processing for IN parameters as well. This
24772 may well fix some unrelated errors.
24773 (Expand_Call): Handle case of unaligned objects (in particular those
24774 that come from packed arrays).
24775 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
24776 renamed entity is an inherited operation, re-expand the call using the
24777 original operation, which is the one to call.
24778 Detect attempt to inline parameterless recursive subprogram.
24779 (Represented_As_Scalar): Fix to work properly with private types
24780 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
24781 accurate estimate. Yields True in far fewer cases than before,
24782 improving the quality of code that depends on this test.
24784 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
24785 over both visible and private declarations to remove them from tree,
24786 and mark subprograms declared in package as eliminated, to prevent
24787 spurious use in subsequent compilation of generic units in the context.
24789 * exp_util.ads: Minor cleanup in variable names
24791 * sem_eval.ads, sem_eval.adb: Minor reformatting
24792 (Compile_Time_Known_Bounds): New function
24794 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24796 * exp_ch7.adb (Convert_View): Use base types of underlying types when
24797 determining whether an unchecked conversion is needed for the argument
24798 of an initialization call.
24800 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24802 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
24803 that appears in the instantiation rather than the internal subtype
24804 generated in the wrapper package, to avoid anomalies in gigi when the
24805 target is derived from a private type whose full view is an access type.
24807 2005-03-15 Robert Dewar <dewar@adacore.com>
24809 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
24811 Add documentation to replace the use of this flag
24812 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
24815 2005-03-15 Thomas Quinot <quinot@adacore.com>
24817 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
24818 here from exp_attr so it can be shared between exp_attr and exp_dist.
24819 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
24820 all TSS names, not a subset thereof, and the previous name introduced
24821 an unnecessarily confusion that a distinction might exist between
24822 "OK" TSS names and some "not OK" TSS names.
24824 2005-03-15 Doug Rupp <rupp@adacore.com>
24826 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
24829 2005-03-15 Pascal Obry <obry@adacore.com>
24830 Eric Botcazou <ebotcazou@adacore.com>
24834 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
24835 when IN_RTS. This is to work around a bootstrap path problem.
24837 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
24838 table and pass it to __gnat_install_SEH_handler().
24839 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
24841 * lang.opt: Fix specification of -fRTS=.
24843 2005-03-15 Doug Rupp <rupp@adacore.com>
24844 Bernard Banner <banner@adacore.com>
24845 Vincent Celier <celier@adacore.com>
24846 Arnaud Charlet <charlet@adacore.com>
24849 This change works fine when gnatlib is built from the gcc directory,
24850 but does not work when using the libada Makefile, since GCC_FOR_TARGET
24851 is not passed to ada/Makefile.in, so more work is needed by a
24852 Makefile/configure expert.
24854 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
24855 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
24856 Setup gnatlink switch -M for x86_64 linux, as it is already setup
24858 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
24859 Run ranlib on libgccprefix.a
24860 Define PREFIX_OBJS for Darwin, to build libgccprefix.
24861 (ADA_INCLUDE_SRCS): Split Ada packages.
24863 2005-03-15 Robert Dewar <dewar@adacore.com>
24865 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
24867 * impunit.adb: Add GNAT.UTF_32
24869 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
24871 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
24872 now uses GNAT.UTF_32).
24874 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
24875 capabilities for categorizing characters using Unicode categories
24877 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24879 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
24880 instantiation that has been rewritten as a package body, retrieve spec
24881 to generate proper name for implicit_with_clause.
24882 (Install_Parents): Recognize a parent that is an instantiation but has
24883 been rewritten as a package declaration during analysis.
24885 2005-03-15 Javier Miranda <miranda@adacore.com>
24886 Ed Schonberg <schonberg@adacore.com>
24888 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
24889 parameter reported some error we immediately return. This improves the
24890 behaviour of the frontend in case of errors.
24891 (Install_Parent, Remove_Parent): Introduce new flag
24892 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
24893 ancestor of a generic child unit, when the child is being instantiated.
24894 (Inline_Instance_Body): If we are compiling the private
24895 part or the body of a child unit, restore the proper visibility of the
24896 parents after compiling the instance body.
24898 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24899 Javier Miranda <miranda@adacore.com>
24902 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
24903 of a private type, in which case it is underlying_type that denotes
24904 the proper task. Also modified to use the new entity attribute
24905 that is directly available in the task type and task subtype entities
24906 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
24907 arrays when other dimensions than the first are constrained by
24908 discriminants of an enclosing record.
24909 (Insert_Explicit_Dereference): If the prefix is an indexed component or
24910 a combination of indexed and selected components, find ultimate entity
24911 and generate the appropriate reference for it, to suppress spurious
24913 (Note_Possible_Modification): If an entity name has no entity, return.
24914 (Is_Variable): A function call never denotes a variable.
24915 (Requires_Transient_Scope): For record types, recurse only on
24916 components, not on internal subtypes that may have been generated for
24917 constrained components.
24919 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24921 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
24922 Eliminated as candidates for resolution. Both efficient, and avoids
24923 anomalies with operators declared in deleted code.
24924 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
24925 expansion is disabled (as when compiling a generic) to prevent spurious
24926 warnings on prefixes of selected components.
24928 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24930 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
24931 attached to a list before checking whether it appears in the private
24932 declarations of the current package.
24933 (Make_Inequality_Operator): Insert declaration in proper declarative
24934 list rather than just setting the Parent field, so that
24935 Is_Private_Declaration can handle it properly.
24937 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24939 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
24940 a renaming a body, check that the renamed subprogram in not intrinsic.
24941 (Find_Direct_Name): If several use_visible entities hide
24942 each other, and the context is a predefined file compiled through
24943 rtsfind, keep only the entity that comes from a predefined file.
24945 2005-03-15 Geert Bosch <bosch@adacore.com>
24947 * s-fatgen.adb (Valid): Extend special exceptions to account for long
24948 long float padding to also cover AMD64 and IA64.
24950 2005-03-15 Gary Dismukes <dismukes@adacore.com>
24952 * s-imgwch.adb: Add with and use of Interfaces.
24953 (Img_Wide_Character): Change type of Val to Unsigned_16.
24954 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
24956 2005-03-15 Matthew Gingell <gingell@adacore.com>
24958 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
24960 2005-03-15 Robert Dewar <dewar@adacore.com>
24962 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
24964 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
24966 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
24968 2005-03-15 Robert Dewar <dewar@adacore.com>
24970 * s-bitops.adb, s-bitops.ads,
24971 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
24972 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
24973 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
24974 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
24975 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
24976 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
24977 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
24978 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
24981 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24983 * utils2.c (build_binary_op): Fix typo.
24985 2005-03-15 Doug Rupp <rupp@adacore.com>
24987 * s-crtl.ads (popen,pclose): New imports.
24989 2005-03-15 Cyrille Comar <comar@adacore.com>
24991 * comperr.adb (Compiler_Abort): remove references to obsolete
24992 procedures in the bug boxes for various GNAT builds.
24994 2005-03-15 Vincent Celier <celier@adacore.com>
24996 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
24998 2005-03-15 Geert Bosch <bosch@adacore.com>
24999 Arnaud Charlet <charlet@adacore.com>
25000 Robert Dewar <dewar@adacore.com>
25001 Cyrille Comar <comar@adacore.com>
25002 Sergey Rybin <rybin@adacore.com>
25004 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
25005 too specific and long-winded to be appropriate for the GNAT User's
25007 Warn about use of GCC switches not documented in the GNAT User's Guide,
25008 as these may cause generated code to not conform to Ada semantics.
25009 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
25010 Add documentation for -gnat95 and -gnat05 switches
25011 Remove paragraph documenting obsolete way to refer to third party
25013 Add a few references to Ada_05 that were missing.
25014 Update documentation on -gnatZ/-gnatL.
25015 Document limitation when using -m64 under Solaris.
25016 Change the "Name Casing" subsection of the pretty-printer section
25017 according to the changes in the dictionary processing.
25019 * gnat_rm.texi: Document the Ada_05 pragma.
25020 Section on record representation clauses describes the new more
25021 relaxed rules about placement of large packed bit array components.
25022 Add documentation of GNAT.UTF_32
25024 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
25026 * misc.c (gnat_post_options): Turn off structural
25029 2005-03-08 Laurent Guerby <laurent@guerby.net>
25031 * system-linux-sparc.ads: Fix typo in previous commit.
25033 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
25034 Laurent Guerby <laurent@guerby.net>
25037 * system-linux-sparc.ads: New.
25038 * Makefile.in: Add sparc linux entry.
25040 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
25042 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
25043 parameters as unused.
25045 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
25046 Partial merge from libada-gnattools-branch:
25048 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25049 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
25050 into code in gnattools/Makefile.in. Remove direct dependencies on
25051 stamp-tools by tools clauses.
25052 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25053 * config-lang.in: Add gnattools to $lang_dirs.
25055 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
25058 * utils.c (gnat_type_for_mode): Return null instead of ICE because
25059 we asked for an unknown mode.
25061 2005-02-12 Richard Henderson <rth@redhat.com>
25063 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
25064 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
25066 2005-02-10 Andreas Jaeger <aj@suse.de>
25068 * init.c (__gnat_initialize): Mark parameter as unused.
25070 2005-02-09 Doug Rupp <rupp@adacore.com>
25072 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
25073 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
25075 2005-02-09 Doug Rupp <rupp@adacore.com>
25077 * gnatchop.adb (dup, dup2),
25078 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
25080 * gnatlbr.adb (mkdir),
25081 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
25083 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
25085 2005-02-09 Doug Rupp <rupp@adacore.com>
25087 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
25089 2005-02-09 Robert Dewar <dewar@adacore.com>
25090 Thomas Quinot <quinot@adacore.com>
25091 Javier Miranda <miranda@adacore.com>
25092 Pascal Obry <obry@adacore.com>
25093 Ed Schonberg <schonberg@adacore.com>
25094 Doug Rupp <rupp@adacore.com>
25095 Gary Dismukes <dismukes@adacore.com>
25096 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25098 * g-zstspl.ads: New file.
25100 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
25102 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
25104 Add definition of Wide_Wide_Space for AI-285
25106 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
25107 interface (to support Ada 95 and Ada 2005 units).
25108 Add Unbounded_IO files
25109 Add entries for Wide_Wide packages for AI-285
25110 Add list of containers packages to Ada 2005 unit list
25112 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
25113 support new Unbounded_IO package cleanly.
25115 * g-utf_32.ads, g-utf_32.adb: New files.
25117 * Makefile.rtl: Add entry for g-utf_32
25118 Add new files for Unbounded_IO
25119 Adjust make file for new AI-285 wide wide packages
25120 Add AI-302 containers to the run time.
25122 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
25123 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
25124 subprograms for AI-301.
25126 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
25128 * a-stunau.ads: Minor comment correction
25130 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
25132 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
25133 (Check_RPC): Update to match changes in expanded code.
25134 Clean up unused entity.
25136 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
25137 was not taken into account.
25138 This includes proper initialization with Normalize_Scalars.
25139 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
25140 normalize scalars cases (particularly the latter) to do a better job
25141 of finding invalid representations.
25143 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
25145 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
25148 * exp_dist.adb: Add support for wide wide character type
25149 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
25150 private part, generate stub bodies at the end of the private part,
25151 not the visible part.
25152 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
25154 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
25155 generic wrapper to execute final processing after completing the
25156 expansion of the RPC receiver for an RACW.
25158 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
25159 packages and attributes.
25160 (Preset_Names): Addition of the new reserved words of Ada 2005,
25161 that is interface, overriding and synchronized.
25162 (Get_Pragma_Id): Give support to the use of the new reserved word
25163 "interface" as a pragma name.
25164 (Is_Pragma_Name): Give support to the use of the new reserved word
25165 "interface" as a pragma name.
25166 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
25167 attribute implementation.
25169 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
25170 checks to entities that are output parameters of Asm operations.
25171 Handle the Stream_Size attribute.
25172 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
25174 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
25176 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
25177 for second parameter being 0.0.
25178 Add support for wide wide character type.
25179 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
25181 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
25182 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
25183 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
25184 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
25185 for wide wide character cases.
25187 * cstand.adb: Create entities for Wide_Wide_Character and
25190 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
25191 accordance with AI-258.
25192 Add new declarations for 16/32 bit C character types (Part of AI285)
25194 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
25195 (Obsolescent_Warning): New field
25196 (Rep_Clause): New local subprogram used to share code. Returns the rep
25197 clause for which the name is given in parameter.
25198 (Has_Stream_Size_Clause): New routine.
25199 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
25200 (Address_Clause): Implementation is now using Rep_Clause.
25201 (Alignment_Clause): Idem.
25202 (Size_Clause): Idem.
25204 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
25205 entity in non-Ada 2005 mode and generate warning.
25207 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
25208 (Prag): Code cleanup. Remove old gnat pragma "overriding"
25210 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
25211 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
25212 on the named unit if the pragma is not in the current compilation unit,
25213 so that elaboration calls in the current unit can set up an elaboration
25214 dependency on the named unit, as needed.
25215 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
25216 subprogram as well as for subprograms declared within a package.
25217 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
25220 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
25221 to z) to avoid some instances of duplication for Wide_Wide packages.
25223 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
25226 * scn.adb: Char_Literal_Value field is now a Uint
25228 * scng.adb: Significant rewrite to handle new Ada 2005 features
25229 allowing wide and wide wide characters in program text, e.g. for
25230 identifiers, as described in AI-285.
25231 (Set_Reserved): New procedure, makes setting up keywords cleaner.
25232 (Initialize_Scanner): Register the new reserved words of Ada 2005.
25233 (Scan): Give support to the new reserved words.
25235 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
25236 warning notifying that interface, overriding, and synchronized are
25237 new reserved words.
25238 (P_Pragma): Allow the use of the new reserved word "interface" as
25241 * gnatls.adb, gnatbind.adb,
25242 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
25243 identifiers named "interface" to "SAL_Interface".
25245 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
25246 (Structured Exception handling).
25247 (Gen_Main_C): Idem.
25250 (Gen_Main_Ada): Set the default exit code if specified.
25251 (Gen_Main_C): Likewise.
25253 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
25254 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
25256 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
25259 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
25260 has a collision with the new Ada 2005 "interface" reserved word.
25262 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
25263 generate a warning notifying that interface, overriding, and
25264 synchronized are new reserved words.
25266 * scans.ads (Token_Type): Addition of the tokens corresponding to the
25267 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
25268 and Tok_Synchronized.
25270 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
25271 "dispatching" rather than "primitive" operations, since dispatching
25272 calls are now allowed to abstract formal subprograms (which are not
25274 Char_Literal_Value field is now a Uint
25275 (Resolve_Slice): If the prefix is an access to an unconstrained array,
25276 compute the actual subtype of the designated object to impose the proper
25278 (Resolve_Selected_Component): Do not insert an access check if the
25279 prefix is an access type: such a node is expanded into an explicit
25280 dereference, on which the access check is performed anyway. Removes
25281 expensive duplicate checks.
25282 (Resolve_Call): Use new flag Is_Obsolescent and field
25283 Obsolescent_Warning so that pragma Obsolescent works on library
25285 Add support for wide wide character type
25286 (Resolve_Allocator): Replace the error message on wrong null-exclusion
25287 value by a warning message.
25288 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
25289 as fixed-point, and one of the operands is non-static and universal, it
25290 can only be an illegal exponentiation operation, in which case there is
25291 no real value to retrieve.
25293 * exp_strm.adb: Add support for wide wide character type
25294 (Build_Elementary_Input_Call): Compute the size of the stream element by
25295 querying the rep chain to find the Stream_Attribute attribute value.
25296 (Build_Elementary_Write_Call): Ditto.
25298 * sem_aggr.adb: Char_Literal_Value field is now a Uint
25299 Add support for wide wide character type
25300 Replace the error messages on wrong null-exclusion value by warnings
25301 as described in Ada 2005.
25302 (Resolve_Extension_Aggregate): Document the fact that the error
25303 message on class-wide expressions in extensions aggregates.
25305 * sem_case.adb: Add support for wide wide character type
25307 * sem_ch13.adb: Add support for wide wide character type
25308 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
25310 * sem_ch3.adb: Add support for wide wide character type
25311 (Process_Subtype): If constraint is illegal for the type, set Ekind of
25312 now-useless Itype, to prevent cascaded errors on a compiler built
25315 * sem_ch8.adb: Add with and use of Sem_Disp.
25316 (Analyze_Subprogram_Renaming): Replace unclean uses of
25317 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
25318 of Corresponding_Spec to Empty).
25319 (Attribute_Renaming): Replace use of Corresponding_Spec with
25320 Corresponding_ Formal_Spec and simplify condition.
25321 (Use_One_Package): Check that scope of homonym of identifier is defined,
25322 before checking whether it is a wrapper package.
25323 Add support for wide wide character type
25325 * sem_eval.adb: Add support for wide wide character type.
25326 (Eval_Arithmetic_Op): Check for compile time known signed integer
25327 overflow in the non-static case.
25328 (Subtypes_Statically_Match): A formal scalar type and its base type do
25329 not statically match.
25331 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
25332 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
25334 (Unit_Declaration_Node): Ditto.
25335 (Is_Variable_Prefix): For the case of an indexed component whose prefix
25336 has a packed array type, the prefix has been rewritten into a type
25337 conversion. Determine variable-ness from the converted expression.
25338 Handle wide wide character cases.
25340 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
25342 * stringt.ads, stringt.adb: Handle full UTF-32 range.
25343 Remove ["0A"] from comment, since it can look like a line terminator.
25344 Currently we don't permit this, but this is under discussion by the
25345 ARG, and it is easy enough to use a different example.
25347 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
25348 handling UTF-32 encoding for wide wide character.
25349 Implement new brackets coding ["hhhhhhhh"]
25350 Add UTF-8 encodings for full UTF-32 range
25352 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
25354 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
25355 bit range Add full UTF-32 support.
25356 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
25357 notify that constraint error will be raised at run-time
25358 because a null value is assigned to a null-excluding object.
25359 Remove some obsolete declarations and make Char_Code
25362 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
25363 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
25364 Rcheck subprograms.
25366 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
25367 wrong null-exclusion value by a warning message.
25368 (Enable_Range_Check): Do range check if the prefix is an
25369 explicit dereference whose designated object is an unconstrained array.
25370 Current algorithm for removing duplicate checks is over-eager in this
25373 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
25374 null-exclusion value by a warning message
25376 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
25377 completely. Add support for Uint2 field
25379 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
25380 exp_prag.adb: Char_Literal_Value field is now a Uint.
25382 * exp_util.adb (Insert_Actions): Replace
25383 N_Formal_Subprogram_Declaration by
25384 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
25385 Char_Literal_Value field is now a Uint.
25387 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
25388 defined for subprogram renaming declarations. When set, the field
25389 indicates the defining entity of a corresponding formal subprogram
25390 when the renaming corresponds to a formal subprogram association in an
25392 (Set_Corresponding_Formal_Spec): New procedure to return
25393 Corresponding_Formal_Spec field.
25394 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
25395 (which is now a subtype).
25396 Char_Literal_Value field is now a Uint
25398 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
25399 pointer to the base of the dispatch table.
25400 Minor changes to comments.
25401 (Controlling_Type): New function for determining the tagged type
25402 associated with a tagged primitive subprogram.
25403 (Expand_Dispatching_Call): Add support for a controlling actual that is
25404 directly a value of type Ada.Tag rather than a tagged object.
25406 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
25407 describing the new layout.
25408 (Dispatch_Table): The expander computes the actual array size, allocates
25409 the Dispatch_Table record accordingly, and generates code that displaces
25410 the base of the record after the Typeinfo_Ptr component. The access to
25411 these components is done by means of local functions.
25412 (Offset_To_Top): New function.
25413 (Typeinfo_Ptr): New function.
25414 (Get_TSD): Modified to access the new position of the TSD.
25415 (Set_TSD): Modified to save the TSD in its new position.
25417 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
25418 case of formal abstract subprograms. Add check and message for -gnat05.
25421 * sem_ch12.adb: Add with and use for Sem_Disp.
25422 (Analyze_Associations): Minor change from "=" to "in" for use of
25423 N_Formal_Subtype_Declaration (which is now a subtype).
25424 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
25425 N_Formal_Subtype_Declaration (which is now a subtype).
25426 (Analyze_Formal_Subprogram): Add handling for
25427 N_Formal_Abstract_Subprogram, marking the formal as abstract and
25428 dispatching, setting the controlling status of the formal parameters
25429 and result, and issuing an error if there is no controlling type for
25430 the formal subprogram.
25431 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
25432 which is an unclean use of that field, we set the new field
25433 Corresponding_Formal_Spec to make the formal subprogram available to
25434 processing in Analyze_Subprogram_Declaration.
25435 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
25436 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
25437 Constrained, so that it is is does not statically match its anonymous
25440 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
25441 abstract formal subprograms in error check for functions returning
25442 abstract types. Set scope of new designator for
25443 a parameterless subprogram, so that it is available when checking the
25444 body for nested subprograms, before full analysis of said body.
25445 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
25446 subprogram only if inner one comes from source.
25447 (Analyze_Function_Call): If the call is given in object notation, the
25448 analysis of the name rewrites the node and analyzes it with the proper
25449 argument list. After analyzing the name, if the call has been rewritten
25450 and the result type is set, no further analysis is needed.
25451 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
25452 mark in function specification, in a context where the formals are
25453 visible and hide outer homographs.
25455 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
25456 as the tagged type for the cases of abstract formal subprograms and
25457 renamings of those. Clean up spec comments.
25458 (Check_Dispatching_Context): Add error message to indicate "abstract
25459 procedure", covering the case of a call to a formal abstract procedure
25460 that has statically tagged operands.
25461 (Check_Dispatching_Call): Check for the case of an actual given by
25462 a tag-indeterminate function call whose type is an ancestor of the
25463 containing call's associated tagged type. This situation can occur
25464 for inherited primitives with function defaults. In this case we
25465 use the tagged type's tag directly as the controlling argument for
25467 (Expand_Call): Name change on call to Expand_Dispatch_Call.
25469 * sprint.adb (Sprint_Node_Actual): Split
25470 N_Formal_Subprogram_Declaration into two alternatives for the new
25471 cases N_Formal_Abstract_Subprogram_Declaration and
25472 N_Formal_Concrete_Subprogram_Declaration.
25473 Char_Literal_Value field is now a Uint.
25475 * trans.c: Get rid of junk Uint2 reference.
25476 Char_Literal_Value field is now a Uint.
25477 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
25478 (gigi): Correct third arg to gimplify_body.
25480 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
25481 (TYPE_LANG_FLAG_0): Check for record or union.
25483 * treepr.adb: Char_Literal_Value field is now a Uint
25485 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
25488 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
25489 Add full UTF-32 support
25490 Char_Code is now 32 bits
25492 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
25493 wide character UTF_32 line terminators.
25494 Initialize Main_Source_File to avoid error when no main
25497 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
25498 (Main_Source_File) when no main source has been loaded, to avoid
25501 2005-02-09 Robert Dewar <dewar@adacore.com>
25503 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
25504 Fix name of Set routine
25506 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
25509 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
25510 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
25513 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
25514 forms of Get_Line subprograms for AI-301.
25516 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25517 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
25518 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
25519 a-stwima.ads: Minor reformatting.
25521 2005-02-09 Doug Rupp <rupp@adacore.com>
25522 Thomas Quinot <quinot@adacore.com>
25524 * adaint.c, adaint.h
25525 [VMS] (to_ptr32): New function.
25526 (MAYBE_TO_PTR32): New macro.
25527 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
25529 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
25530 [VMS] (#define fork()): Remove since unneccessary.
25531 (__gnat_set_close_on_exec): New routine to support
25532 GNAT.OS_Lib.Set_Close_On_Exec.
25534 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
25535 the parent side as close-on-exec so that they are not inherited by the
25538 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
25539 set or clear the FD_CLOEXEC flag on a file descriptor.
25541 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
25542 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25546 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
25547 on the field if Pragma Component_Alignment (Storage_Unit).
25548 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
25549 side-effects as if it were a constant; also make SAVE_EXPR to protect
25551 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
25553 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
25554 (components_to_record): Test it.
25555 Fix improper usage of REFERENCE_CLASS_P.
25557 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
25560 * utils2.c: Minor reformatting.
25562 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
25563 handle other cases like RECORD_TYPE.
25565 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
25567 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25569 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
25570 component of an array of arrays in an assignment context, and the
25571 aggregate has component associations that require sliding on
25572 assignment, force reanalysis of the aggregate to generate a temporary
25573 before the assignment.
25574 (Must_Slide): Make global to the package, for use in Gen_Assign.
25576 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25578 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
25579 unchecked union with no inferable discriminants, return a
25580 Raise_Program_Error node, rather than inserting it at the point the
25582 (Expand_Record_Equality, Component_Equality): Handle properly the case
25583 where some subcomponent is an unchecked union whose generated equality
25584 code raises program error.
25586 2005-02-09 Doug Rupp <rupp@adacore.com>
25588 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
25589 [VMS] (#define exit hack): Remove.
25591 2005-02-09 Pascal Obry <obry@adacore.com>
25592 Arnaud Charlet <charlet@adacore.com>
25594 * init.c (__gnat_initialize): Add a new parameter eh which contains the
25595 address of the exception registration. The Win32 version of this
25596 routine calls __gnat_install_SEH_handler() to initialize the SEH
25597 (Structured Exception Handling) handler.
25598 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
25599 SEH (Structured Exception Handling) now.
25600 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
25601 (__gnat_initialize for ppc-vxworks): Adjust comments and the
25602 preprocessor condition protecting the call to the extra eh setup
25603 subprogram, which is only available for the ppc target.
25604 (__gnat_clear_exception_count): replaced reference to
25605 variable taskIdCurrent by call to taskIdSelf(), cleaner.
25607 * seh_init.c: New file.
25609 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
25610 (GNATBIND_OBJS): Idem.
25612 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
25613 routine takes a new parameter (a pointer to the exception registration
25614 for the SEH (Structured Exception Handling) support.
25616 * raise.h: (__gnat_install_SEH_handler): New prototype.
25617 Update copyright notice.
25619 * s-tassta.adb (Task_Wrapper): Declare the exception registration
25620 record and initialize it by calling __gnat_install_SEH_handler.
25622 2005-02-09 Vincent Celier <celier@adacore.com>
25624 * make.adb (Gnatmake): Do not fail when the main project has no object
25627 2005-02-09 Doug Rupp <rupp@adacore.com>
25629 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
25630 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
25631 [VMS]: Add translations for g-enblsp.adb.
25633 * s-asthan-vms.adb: Removed.
25634 * s-asthan-vms-alpha.adb: Added.
25636 2005-02-09 Pascal Obry <obry@adacore.com>
25638 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
25639 (LIBGNAT_OBJS): Add seh_init.o.
25641 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25644 * Makefile.in: Link all gnat tools with -static-libgcc, since
25645 -shared-libgcc is now used by default on some systems (e.g. linux with
25647 Remove references to Makefile.prolog/generic, no longer used.
25649 2005-02-09 Vincent Celier <celier@adacore.com>
25651 * prj-makr.adb (Process_Directory): Put file name in canonical case
25652 before matching against the patterns.
25653 If gnatname has been invoked as <prefix>-gnatname
25654 then invoke the compiler as <prefix>-gcc, not just "gcc".
25656 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25658 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
25659 with expansion disabled. The actual subtype is needed among other
25660 places when the selected component appears in the context of a loop
25661 bound, and denotes a packed array.
25662 (Operator_Check): Always use the first subtype in the
25663 error message, to avoid the appearance of internal base types.
25664 (Transform_Object_Operation): Copy each actual in full
25665 to the parameter associations of the constructed call, rather than
25666 using the shallow copy mechanism of New_Copy_List. This ensures that
25667 the chaining of named associations is done properly.
25668 (Complete_Object_Operation): Rewrite node, rather than
25669 replacing it, so that we can trace back to the original selected
25672 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
25673 and calls that use object notation, if the called function is not
25674 declared in a withed unit, place the elaboration constraint on the
25675 unit in the context that makes the function accessible.
25676 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
25677 imposes an elaboration constraint between two packages.
25679 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25681 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
25682 views of a private type after handling its private dependents, to
25683 maintain proper stack discipline between entry and exit from the
25686 2005-02-09 Cyrille Comar <comar@adacore.com>
25688 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
25689 Minor reformatting.
25691 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25693 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
25694 fields for foreign threads.
25696 2005-02-09 Doug Rupp <rupp@adacore.com>
25698 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
25699 recursion warnings when compiled with -gnatdm.
25701 2005-02-09 Robert Dewar <dewar@adacore.com>
25703 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
25704 Slight fix to documentation of -gnaty with no parameters
25706 * xr_tabls.ads: Add ??? comment for missing overall comment
25708 * xsinfo.adb: Make default file name be sinfo.h, since this is what
25709 we now use by default.
25711 * xsnames.adb: Adjust end of file test to look for five space followed
25712 by '#' instead of six spaces. The format of xsnames.adb was modified
25713 in the last update.
25715 * a-numeri.ads: Add reference to AI-388 for greek letter pi
25718 * clean.adb: Minor reformatting.
25720 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
25721 gnatname.adb: Minor reformatting
25722 Add 2005 to copyright output when utility is run
25724 * csets.adb: Eliminate obsolete comment
25726 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
25729 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
25731 2005-02-09 Sergey Rybin <rybin@adacore.com>
25733 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
25734 the difference between compact and incompact layout and add the record
25735 representation clause to the example illustrating different layouts.
25736 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
25737 component clauses").
25739 2005-02-09 Florian Villoing <villoing@adacore.com>
25741 * gnat_ugn.texi: Fix typos.
25742 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
25744 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
25745 in the generated documentation.
25747 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25749 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
25751 Update linker wrapper when linking with non GNU C++.
25753 2005-02-09 Pascal Obry <obry@adacore.com>
25756 Document the procedure to debug the DllMain routine on Windows.
25757 Add note about -funwind-tables and mixed Ada and C/C++ programming in
25759 Document new BIND qualifer /RETURN_CODES=VMS.
25761 2005-02-09 Ben Brosgol <brosgol@adacore.com>
25763 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25764 Edited gnatmetric chapter
25766 2005-02-09 Robert Dewar <dewar@adacore.com>
25769 Changes to document new wide wide character support
25771 Update documentation on Normalize_Scalars and Initialize_Scalars
25773 2005-02-09 Pascal Obry <obry@adacore.com>
25775 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
25777 2005-02-09 Jose Ruiz <ruiz@adacore.com>
25779 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
25780 from the VxWorks kernel) that is needed for getting the active
25781 priority of the different tasks.
25783 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
25784 Use a pragma Elaborate_Body in the spec file instead.
25785 Noticed by code reading.
25787 2005-02-09 Thomas Quinot <quinot@adacore.com>
25789 * exp_util.ads: Minor correction in comment.
25791 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25793 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
25794 since this procedure is now too complex to be worth inlining.
25796 2005-02-09 Richard Henderson <rth@redhat.com>
25798 * utils.c (gnat_define_builtin): Remove.
25799 (gnat_install_builtins): Use build_common_builtin_nodes.
25801 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25803 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
25804 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
25805 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
25806 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
25807 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
25808 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
25809 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
25810 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
25811 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
25812 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25813 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
25814 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
25815 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
25816 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
25817 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
25818 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
25819 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
25820 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
25821 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
25822 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
25823 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
25824 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
25825 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
25826 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
25827 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
25828 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
25829 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
25830 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
25831 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
25832 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
25833 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
25834 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
25835 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
25836 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
25839 2005-01-27 Laurent Guerby <laurent@guerby.net>
25841 * Makefile.in: Fix a-intnam.ads from previous commit,
25842 add 2005 to copyright.
25843 * a-intman-rtems.ads: Renamed to...
25844 * a-intnam-rtems.ads:
25846 2005-01-27 Laurent Guerby <laurent@guerby.net>
25848 * Makefile.in: Rename GNAT RTEMS specific files.
25849 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
25850 5rosinte.ads, 5rparame.adb: Replaced by files below.
25851 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
25852 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
25854 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
25855 Laurent Guerby <laurent@guerby.net>
25858 * 5rosinte.ads: Add No_Key constant.
25859 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
25860 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
25862 2005-01-26 Laurent Guerby <laurent@guerby.net>
25865 * i-cobol.adb (Valid_Numeric): Handle zero length case.
25867 2005-01-20 Richard Henderson <rth@redhat.com>
25869 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
25870 a-intnam-linux.ads and system-linux-alpha.ads.
25871 * a-intnam-linux-alpha.ads: Remove file.
25872 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
25873 * system-linux-alpha.ads: New file.
25875 2005-01-18 Jakub Jelinek <jakub@redhat.com>
25878 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
25879 set to the new string.
25881 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
25883 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
25886 2005-01-18 Richard Henderson <rth@redhat.com>
25888 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
25889 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
25891 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
25893 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
25895 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
25896 (GCC_ZCX_Support): Likewise.
25898 2005-01-11 Bastian Blank <waldi@debian.org>
25900 * system-linux-s390.ads: Define Preallocated_Stacks.
25901 * system-linux-s390x.ads: Likewise.
25903 2005-01-04 Arnaud Charlet <charlet@adacore.com>
25905 * gnat_ugn.texi: Fix texi errors with null variables.
25907 2005-01-03 Thomas Quinot <quinot@adacore.com>
25909 * gen-soccon.c: New utility program to generate g-soccon.ads
25912 * socket.c, gsocket.h: Split inclusion of system header files into a
25913 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
25915 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
25916 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
25917 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
25918 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
25919 should not be edited by hand anymore, but should be regenerated using
25922 2005-01-03 Robert Dewar <dewar@adacore.com>
25923 Ed Schonberg <schonberg@adacore.com>
25924 Vincent Celier <celier@adacore.com>
25926 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
25927 on/off, since this is an obsolescent feature, for which we now generate
25930 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
25931 warning mode is set and obsolescent usage of this attribute occurs.
25932 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
25933 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
25934 predates, and partly motivates, the adoption of the AI.
25935 Implement new Ada 2005 attribute Mod
25937 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
25940 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
25942 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
25943 pragma restrictions.
25944 New entry for Ada 2005 attribute Mod.
25947 Add recognition of new pragma Restrictions No_Dependence
25948 Recognize restriction No_Obsolescent_Features at parse time
25950 * bcheck.adb: Add circuitry for checking for consistency of
25951 No_Dependence restrictions.
25953 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
25956 * restrict.ads, restrict.adb: Add subprograms to deal with
25957 No_Dependence restrictions.
25959 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
25962 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
25963 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
25965 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
25966 dummy parameter to scng instantiation.
25967 Needed for new restriction No_Obsolescent_Features
25969 * scn.adb: (Obsolescent_Check): New procedure
25970 Needed for new restriction No_Obsolescent_Features
25972 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
25973 specified by AI-285, needed for implementation of AI-388 (adding greek
25974 pi to Ada.Numerics).
25975 Add new generic formal to scng, needed for new restriction
25976 No_Obsolescent_Features.
25978 * s-rident.ads: Add new restriction No_Obsolescent_Features.
25980 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
25981 restrictions lines.
25982 (Scan_ALI): When finding an unexpected character on an R line, raise
25983 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
25984 Ignore_Errors is True, default restrictions are set and scanning of the
25985 ALI file continues with the next line. Also, when Bad_R_Line is raised
25986 and Ignore_Errors is True, skip to the end of le line.
25988 * sem_ch10.adb: Check that explicit with's do not violate
25989 No_Dependence restrictions.
25990 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
25991 illegal context clauses containing child units of instance.
25993 * sem_prag.adb: Processing and checking for new No_Dependence
25995 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
25996 analyze and check the External argument.
25998 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
26000 2005-01-03 Robert Dewar <dewar@adacore.com>
26002 * atree.adb: Add a fifth component to entities
26003 This allows us to add 32 flags and four new fields
26005 * atree.ads: Add a fifth component to entities
26006 This allows us to add 32 flags and four new fields
26008 * einfo.ads, einfo.adb: Document new fields and new flags now available
26009 Add routines for printing new fields
26011 * treepr.adb: Call routines to print out additional fields if present
26013 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26015 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
26016 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
26018 * Makefile.in: Add support to build shared Ada libraries on solaris x86
26019 Remove gpr2make, replaced by gprmake.
26020 Remove references to gnatmem and libaddr2line.
26021 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
26022 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
26023 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
26024 a-numaux-darwin.ads and a-numaux-darwin.adb
26025 Enable mlib-tgt-lynxos.adb on lynxos.
26027 * Make-lang.in: Remove rules for gpr2make.
26028 When generating sdefault.adb, do not call Relocate_Path
26029 on S3 for function Target_Name, as it is not a path.
26030 Remove references to gnatmem and libaddr2line.
26032 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
26035 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
26037 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
26038 address is incompatible with its base type alignment constraints when
26039 this can be decided statically.
26041 2005-01-03 Olivier Hainque <hainque@adacore.com>
26043 * decl.c (compatible_signatures_p): New function. The intended purpose
26044 is to check if two function signatures for a call-site and a callee are
26045 compatible enough for the call to be valid. The underlying purpose is
26046 to check if a call to a mapped builtin is using the right interface.
26047 The current code actually does not check antyhing - this a placeholder
26048 for future refinements.
26049 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
26050 builtin calls for convention Intrinsic.
26052 * gigi.h (builtin_decl_for): Declare (new function).
26054 * utils.c (gnat_install_builtins): Install the target specific builtins.
26055 (builtin_decl_for): New function, provide a dummy body for now.
26057 2005-01-03 Geert Bosch <bosch@adacore.com>
26059 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
26060 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
26061 (Pred): Implement in terms of Succ.
26063 * trans.c (convert_with_check): Reimplement conversion of float to
26066 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26067 Vincent Celier <celier@adacore.com>
26069 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
26070 bounds can be negative, and must be declared Int, not Nat.
26072 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
26073 array is checked after using the index in the array.
26075 * makegpr.adb (Add_Switches): Check if there is a package for the
26076 processor. If there is no package, do not look for switches.
26078 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26080 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
26081 generation of predefined stream operations (specs and bodies) should
26082 proceed. Under various restrictions these subprograms must not be
26085 2005-01-03 Thomas Quinot <quinot@adacore.com>
26088 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
26089 amount of PCS-specific code in RACW stubs generation.
26090 (Copy_Specification): Set Etype on copied formal parameter entities, as
26091 this information is needed for PolyORB stubs generation.
26092 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
26093 variable Dynamic_Async.
26094 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
26095 (Build_RPC_Receiver_Specification): Make generic again, as recent
26096 changes have allowed RPC receivers to have the same profile for both
26097 variants of the PCS.
26098 Reorganise RPC receiver generation to reduce differences between the
26099 structure of GARLIC and PolyORB RPC receivers.
26100 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
26102 Simplify elaboration code for RCI packages.
26104 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
26105 generation to reduce differences between the structure of GARLIC and
26106 PolyORB RPC receivers.
26108 * s-stratt.adb: Fix typo in comment.
26110 2005-01-03 Thomas Quinot <quinot@adacore.com>
26112 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
26113 copied from Make_Init_Call).
26115 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
26116 reads and assignments on a temporary variable declared with appropriate
26119 2005-01-03 Robert Dewar <dewar@adacore.com>
26121 * i-c.adb (To_C): Raise CE if string is null and Append_Null
26123 2005-01-03 Robert Dewar <dewar@adacore.com>
26125 * i-cstrin.adb (Update): Do not append a null in form called with a
26126 String. This avoids unintended behavior.
26128 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26131 * init.c: Fix warnings on Free BSD section.
26133 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26136 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
26139 2005-01-03 Vincent Celier <celier@adacore.com>
26141 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
26142 libraries when Unique_Compile is True (-u switch).
26145 2005-01-03 Robert Dewar <dewar@adacore.com>
26147 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
26148 upper case letter or underscore after W, as allowed by spec.
26150 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26152 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
26153 darwin port by using proper type definitions from header files.
26154 Use SIGTERM instead of SIGABRT for SIGADAABORT.
26156 2005-01-03 Robert Dewar <dewar@adacore.com>
26158 * par.adb: Enhance error message handling for configuration file
26161 2005-01-03 Robert Dewar <dewar@adacore.com>
26163 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
26164 removed during the previous update (test properly for case of dividing
26165 largest negative number by -1, which generates overflow).
26167 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26168 Sergey Rybin <rybin@adacore.com>
26170 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
26171 to use as the defining identifier for a formal package.
26172 (Remove_Parent): If the instance takes place within (an instance of)
26173 a sibling, preserve private declarations of common parent.
26175 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26177 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
26178 to determine whether one of the operands is a fixed-point type for
26179 which a user-defined multiplication or division operation might be
26182 * sem_res.adb (Valid_Conversion): The legality rules for conversions
26183 of access types are symmetric in Ada 2005: either designated type can
26186 2005-01-03 Vincent Celier <celier@adacore.com>
26188 * s-fileio.adb (Temp_File_Record): Change length of string component
26189 Name from L_tmpnam + 1 to max_path_len + 1.
26191 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26193 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
26194 Self_Id.Deferral_Level = 0.
26195 (Do_Pending_Action): Move this function to the spec.
26197 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
26198 Do_Pending_Action explicitely when needed, in case we're using
26199 No_Abort restrictions.
26201 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
26202 deferral level since it will not get changed by the generated code.
26203 Keeping a default value of 1 would prevent some operations (e.g.
26204 select or delay) to proceed successfully.
26206 2005-01-03 Ben Brosgol <brosgol@adacore.com>
26207 Robert Dewar <dewar@adacore.com>
26208 Cyrille Comar <comar@adacore.com>
26210 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
26211 porting guide chapter (vms version).
26212 Revised doc title (removed "for native platforms") and subtitle.
26213 Add discussion on warning flag for obsolescent features. First we
26214 note that it applies to obsolete GNAT features, which was previously
26215 omitted. Second we contrast the behavior with that of the new
26216 Ada 2005 AI-368 restriction No_Obsolescent_Features.
26217 Preliminary rewriting of GNAT & libraries chapter in order to take
26218 into account default project locations & new project manager
26221 2005-01-03 Robert Dewar <dewar@adacore.com>
26223 * cstand.adb (Create_Operators): Clean up format and documentation of
26224 unary and binary operator result tables. No change in code, just
26225 reformatting and addition of comments.
26227 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
26228 sem_ch2.adb: Minor reformatting
26230 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
26231 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
26232 comments for Tree_Read and Tree_Write.
26234 2005-01-03 Pascal Obry <obry@adacore.com>
26236 * exp_attr.ads: Minor reformatting.
26238 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
26240 * comperr.adb (Compiler_Abort): Add specialized message for GAP
26243 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26245 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
26246 whether the ancestor type is private, as may be the case with nested
26249 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
26252 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
26254 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
26256 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
26257 * utils2.c (build_unary_op): Likewise.
26259 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26261 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
26263 2004-12-19 Richard Henderson <rth@redhat.com>
26265 * trans.c (gigi): Update gimplify_body call.
26267 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
26269 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
26271 2004-12-07 Ed Falis <falis@adacore.com>
26273 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
26274 current task being suspended.
26276 * init.c (__gnat_clear_exception): added to reset VxWorks exception
26278 (__gnat_map_signal): removed test for current task being suspended.
26280 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26282 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
26283 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
26284 targets (such as AAMP).
26286 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26288 * atree.adb (Visit_Itype): Create a new name for the generated itype,
26289 because the back-end may otherwise treat it as a redefinition of the
26292 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
26294 * back_end.adb (Scan_Back_End_Switches): Accept --param.
26296 * lang-specs.h: Accept --param.
26298 2004-12-07 Vincent Celier <celier@adacore.com>
26300 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
26301 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
26302 Current_Body_Suffix => Ada_Body_Suffix).
26303 Take into account Externally_Built attribute.
26305 * clean.adb (In_Extension_Chain): Always return False when one of the
26306 parameter is No_Project.
26307 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
26308 Ada_Language_Index).
26309 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
26310 Process_Languages for procedure Parse).
26312 * gnatcmd.adb (Carg_Switches): New table.
26313 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
26314 Adapt to name changes in package Prj (Current_Spec_Suffix =>
26315 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
26317 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
26318 Header_Num and function Hash are now declared in package Prj,
26321 * prj.adb (Suffix_Of): New function.
26322 (Set (Suffix)): New procedure.
26323 (Hash): One function moved from Prj.Com
26324 (Is_Present, Language_Processing_Data_Of): New functions
26325 (Set): Two new procedures
26326 (Add_Language_Name, Display_Language_Name): New procedures
26328 * prj.ads: (Suffix_Of): New function
26329 (Set (Suffix)): New procedure
26330 Add several types and tables for multi-language support.
26331 (Header_Num): Type moved from Prj.Com
26332 (Hash): Two functions moved from Prj.Com
26333 (Is_Present, Language_Processing_Data_Of): New functions
26334 (Set): Two new procedures
26335 (Add_Language_Name, Display_Language_Name): New procedures
26336 (Naming): Component name changes:
26337 Current_Spec_Suffix => Ada_Spec_Suffix,
26338 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
26339 Impl_Suffixes, Supp_Suffixes.
26340 (Project_Data): New components: Externally_Built, Supp_Languages,
26341 First_Language_Processing, Supp_Language_Processing, Default_Linker,
26342 Default_Linker_Path.
26344 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
26345 new package Language_Processing with its attributes (Compiler_Driver,
26346 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
26347 Binder_Driver, Default_Linker).
26349 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
26350 (Header_Num): Type moved to package Prj
26352 * prj-env.adb: Adapt to name changes in package Prj
26353 (Current_Spec_Suffix => Ada_Spec_Suffix,
26354 Current_Body_Suffix => Ada_Body_Suffix).
26356 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
26357 default to the project path, except the "-" is one of the directories
26358 in env var ADA_PROJECT_PATH.
26359 (Current_Project_Path): Global variable, replacing Project_Path
26360 that was in the body of Prj.Part.
26361 (Project_Path): New function
26362 (Set_Project_Path): New procedure
26363 Initialize Current_Project_Path during elaboration of the package
26364 Remove dependency on Prj.Com, no longer needed
26366 * prj-ext.ads (Project_Path): New function
26367 (Set_Project_Path): New procedure
26369 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
26370 suffix is defined for language <lang>.
26371 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
26372 accessing directly the components of Naming.
26373 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
26374 Reorganise of this package.
26375 Break procedure Check in several procedures.
26377 * prj-nmsc.ads: Replace all procedures (Ada_Check,
26378 Other_Languages_Check and Language_Independent_Check) with a single
26381 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
26382 Process_Languages, no longer needed.
26384 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
26385 Current_Project_Path.
26386 Remove elaboration code, moved to the body of Prj.Ext
26387 Use new function Prj.Ext.Project_Path instead of old variable
26389 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
26390 When comparing with project paths on the stack, first put the resolved
26391 path in canonical case.
26392 (Parse_Single_Project): Set the path name of the project file in the
26393 tree to the normalized path.
26395 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
26396 parameter Process_Languages, no longer needed.
26397 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
26398 Other_Languages_Check.
26400 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
26401 to store the resolved canonical path of the project file.
26402 Remove dependency to Prj.Com, no longer needed
26404 * prj-util.adb: Adapt to name changes in package Prj
26405 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
26408 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
26409 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
26410 Externally_Built, Include_Option, Language_Processing.
26412 * makegpr.adb: Numerous changes due to changes in packages
26415 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
26416 default to the project path, except whe "-" is one of the directories
26417 in env var ADA_PROJECT_PATH.
26418 (Gnatls): In verbose mode, add the new section "Project Search Path:"
26420 2004-12-07 Robert Dewar <dewar@adacore.com>
26422 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
26424 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
26427 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
26428 flag. No longer needed now that we handle this in gnat1drv.adb.
26430 * repinfo.ads: Minor reformatting
26432 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26433 Olivier Hainque <hainque@adacore.com>
26434 Eric Botcazou <ebotcazou@adacore.com>
26436 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
26437 TYPE_SIZE_UNIT of result type if SIZE is not specified.
26438 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
26439 of a bitfield, which we know is useless and causes trouble because of
26440 alignment implications.
26442 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
26444 (process_attributes): Clear DECL_COMMON again when a section attribute
26446 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
26447 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
26448 (create_field_decl): Special case ADDRESSABLE negative to mean
26449 "no bitfield creation", to be used by make_aligning_type. Don't
26450 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
26451 fields claimed addressable still have to be bitfields. Use
26452 value_factor_p instead of a raw binop construction to check for the
26453 position's alignment.
26455 2004-12-07 Geert Bosch <bosch@adacore.com>
26457 * eval_fat.adb: Revert previous change.
26459 2004-12-07 Thomas Quinot <quinot@adacore.com>
26460 Ed Schonberg <schonberg@adacore.com>
26462 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
26463 with an implicit dereference as its prefix, use
26464 Insert_Explicit_Dereference instead of merely rewriting the prefix into
26465 an explicit dereference. This ensures that a reference to the original
26466 prefix is generated, if appropriate.
26468 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
26469 dereference is rewritten to an explicit one, generate a reference to
26470 the entity denoted by its prefix using the original prefix node, so
26471 the dereference can be properly recorded as a read of the denoted
26472 access value, if appropriate.
26474 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
26475 emitting 'assigned but never read' warning on a variable on the basis
26476 that it has an access type.
26477 (Check_References): Emit unreferenced warning when the scope is a
26480 2004-12-07 Robert Dewar <dewar@adacore.com>
26481 Ed Schonberg <schonberg@adacore.com>
26483 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
26486 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
26487 leaving call unchanged.
26488 This deals with the case where the pragma Import specified
26489 an external name, to be handled by the back end.
26491 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
26492 subprogram which is Imported with convention Intrinsic if an
26493 External_Name argument is specified.
26494 (Process_Import_Or_Interface): Properly diagnose link name argument.
26495 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
26496 with Sem_Ch6.Cannot_Inline.
26497 (Process_Inline): Provide separate warning for inapplicable inline
26499 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
26500 treatment is uniform on different targets.
26502 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26504 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
26505 construct is rewritten, preserve end label to permit source navigation.
26507 2004-12-07 Thomas Quinot <quinot@adacore.com>
26509 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
26510 Specific_Build_Stub_Target): New subprograms.
26511 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
26512 the PCS implementation used, using the above PCS-customized subprograms.
26513 Minor reformatting.
26514 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
26515 for generation of DSA code targeted to the PolyORB PCS.
26516 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
26517 implementation of the partition communication subsystem in ancillary
26519 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
26520 PolyORB_Support.Build_Stub_Type): New subrograms containing the
26521 PCS-specific part of Add_Stub_Type.
26522 (Insert_Partition_Check): Use runtime library function to perform
26525 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
26526 (RE_Same_Partition): New entity, from s-parint.
26528 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
26530 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26532 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
26533 Output the copyright message on a separate line from the version
26536 2004-12-07 Joel Brobecker <brobecker@adacore.com>
26538 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
26539 compile-time warning.
26541 2004-12-07 Robert Dewar <dewar@adacore.com>
26543 * g-regpat.adb: (Match): Change a misuse of or to or else
26545 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26548 (Generate_Reference): Handle properly a reference to an entry formal,
26549 when an accept statement has a pragma Unreferenced for it.
26551 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
26552 and the Has_Pragma_Unreferenced flag for each formal before analyzing
26553 the body, to ensure that warnings are properly emitted for each accept
26554 statement of a given task entry.
26556 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
26558 * Makefile.in: Add support for foreign threads on VMS.
26560 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26562 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
26564 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
26566 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
26568 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
26570 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
26572 2004-12-07 Robert Dewar <dewar@adacore.com>
26574 * nlists.adb (Prepend_Debug): Remove parameters and nest within
26576 (Remove_Next_Debug): Same fix
26578 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
26579 maintain back pointers now, though we did not used to, and comments
26581 (Prepend): Remove pragma Inline.
26582 (Remove_Next): Same cleanup
26584 2004-12-07 Thomas Quinot <quinot@adacore.com>
26586 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
26587 used to record an implicit dereference as a read operation on its
26588 prefix when operating under -gnatc. Necessary to avoid spurious
26589 'variable assigned but never read' warnings in that mode.
26590 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
26591 is a non-overloaded implicit dereference, call the above subprogram to
26592 ensure proper recording of references.
26594 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26596 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
26597 to be resolved later as part of Analyze_Iteration_Scheme's call to
26600 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26602 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
26603 prefix is not a scalar type, place error message on prefix, not on
26606 2004-12-07 Bernard Banner <banner@adacore.com>
26608 * vxaddr2line.adb: Add support for x86 vxworks
26610 2004-12-07 Thomas Quinot <quinot@adacore.com>
26612 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
26613 documentation of the behaviour of these functions when passed an IP
26614 address that has no record in the system hosts database and no reverse
26617 * cstand.adb, a-tags.ads: Fix typos in comment.
26619 2004-12-07 Robert Dewar <dewar@adacore.com>
26621 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
26622 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
26623 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
26624 s-poosiz.ads: Minor reformatting
26626 * make.adb: Minor reformatting
26627 Add some ??? comments asking for more comments
26629 * s-poosiz.adb: Minor reformatting
26630 Add comments on alignment requirement
26632 * sinfo.ads: Remove obsolete comment and fix typo.
26634 2004-12-07 Vincent Celier <celier@adacore.com>
26635 Sergey Rybin <rybin@adacore.com>
26637 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
26638 Files" with the new tool and package names.
26639 Reformatting to suppress most of the warnings for line too long
26640 Document the new section "Project Search Path:" in the output of
26642 Add gnatmetric section
26644 2004-12-07 Vincent Celier <celier@adacore.com>
26646 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
26647 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
26648 and -eit to -ept. Added qualifier
26649 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
26651 2004-11-27 Andreas Schwab <schwab@suse.de>
26653 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
26655 2004-11-25 Arnaud Charlet <charlet@adacore.com>
26657 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
26658 internal implementation unit GNAT.Sockets.Thin,
26659 as their usage for sockets is non-portable (using the read and write
26660 functions from the system runtime library is fine on UNIX but won't
26661 work under Windows).
26663 * mingw32.h: Update copyright notice.
26665 2004-11-25 Arnaud Charlet <charlet@adacore.com>
26667 * ada-tree.h: Minor reformatting of previous change to avoid lines
26668 longer than 79 characters.
26670 2004-11-25 Olivier Hainque <hainque@adacore.com>
26672 * tb-gcc.c: GCC infrastructure based implementation of
26675 2004-11-24 Steven Bosscher <stevenb@suse.de>
26677 * misc.c (gnat_post_options): Don't clear
26678 flag_inline_functions.
26680 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
26683 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
26686 2004-11-21 Andreas Jaeger <aj@suse.de>
26688 * stylesw.adb: Change Style_Check_Subprogram_Order to
26689 Style_Check_Order_Subprograms.
26691 2004-11-18 Arnaud Charlet <charlet@adacore.com>
26693 * adaint.h, adaint.c
26694 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
26696 Add also a cast to kill another warning.
26697 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
26698 parameter with the priority class of the parent process instead of
26699 always using the NORMAL_PRIORITY_CLASS.
26700 (__gnat_dup): New function.
26701 (__gnat_dup2): New function.
26702 (__gnat_is_symbolic_link): Enable the effective body of this
26703 function when __APPLE__ is defined.
26705 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
26708 2004-11-18 Olivier Hainque <hainque@adacore.com>
26710 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
26711 address of which may be used to represent "others" and "all others"
26712 choices in exception tables, instead of the current harcoded
26713 (void *)0 and (void *)1.
26714 (Setup_Exception): Do nothing in the GNAT SJLJ case.
26716 * gigi.h (others_decl, all_others_decl): New decls representing the
26717 new Others_Value and All_Others_Value objects.
26718 (struct attrib): Rename "arg" component as "args", since GCC expects a
26719 list of arguments in there.
26721 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
26722 corresponding objects exported by a-exexpr, instead of hardcoded dummy
26725 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
26726 others_decl and all_others_decl instead of hardcoded dummy addresses
26727 to represent "others" and "all others" choices, which is cleaner and
26728 more flexible with respect to the possible eh pointer encoding policies.
26730 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
26731 (process_attributes): Account for the naming change of the "args"
26732 attribute list entry component.
26734 * decl.c (build_attr_list): Rename into prepend_attributes to allow
26735 cumulating attributes for different entities into a single list.
26736 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
26737 attributes for the current entity and propagate first subtype
26738 attributes to other subtypes.
26739 <E_Procedure>: Attribute arguments are attr->args and not
26740 attr->arg any more.
26741 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
26742 argument provided, as this is what GCC expects. Use NULL_TREE instead
26745 2004-11-18 Robert Dewar <dewar@adacore.com>
26747 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
26748 Minor reformatting througout (including new function specs)
26749 Add ??? comments asking for clarification.
26751 2004-11-18 Thomas Quinot <quinot@adacore.com>
26753 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
26754 incomplete duplicate implementation of this subprogram from butil.
26756 2004-11-18 Thomas Quinot <quinot@adacore.com>
26758 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
26759 procedures factors the common processing for building an RPC receiver
26760 for an RCI package or an RACW type.
26761 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
26762 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
26763 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
26765 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
26767 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
26769 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
26770 distribution subprogram identifiers that are either subprogram numbers
26772 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
26773 string distribution identifiers assigned to a given subprogram.
26774 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
26775 (Add_RAS_Dereference_TSS): Add comments.
26776 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
26777 is not referenced yet because it will be used by the PolyORB DSA
26779 (Insert_Partition_Check): Remove fossile code.
26780 (First_RCI_Subprogram_Id): Document this constant.
26781 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
26783 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
26784 replaced with calls to Get_Library_Unit_Name_String. Previously there
26785 were several instances of the same code in different locations in the
26786 compiler; this checkin completes the replacement of all of these
26787 instances with calls to a common subprogram.
26788 Minor reformatting.
26790 * sem_dist.adb: Remove comment noting that RPC receiver generation
26791 should be disabled for RACWs that implement RASs.
26792 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
26794 * sem_util.ads, sem_util.adb (Has_Stream): New function
26795 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
26796 qualified name of a library unit into the name buffer.
26797 (Note_Possible_Modification): Generate a reference only
26798 if the context comes from source.
26800 * snames.ads (PCS_Names): New subtype corresponding to names of
26801 supported implementations of the Partition Communication Subsystem
26802 (PCS) (i.e. the runtime library support modules for the distributed
26805 2004-11-18 Robert Dewar <dewar@adacore.com>
26806 Ed Schonberg <schonberg@adacore.com>
26808 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
26809 (Has_Rep_Pragma): New function
26810 (Has_Attribute_Definition_Clause): New function
26811 (Record_Rep_Pragma): Moved here from sem_ch13.adb
26812 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
26814 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
26816 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
26817 (Expand_Pragma_Psect_Object): New procedure
26818 These procedures contain the revised and cleaned up processing for
26819 these two pragmas. This processing was formerly in Sem_Prag, but
26820 is more appropriately moved here. The cleanup involves making sure
26821 that the pragmas are properly attached to the tree, and that no
26822 nodes are improperly shared.
26824 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
26825 pragmas to Exp_Prag, which is more appropriate.
26826 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
26827 check for duplicates Remove use of Is_Psected flag, no longer needed.
26828 Use new Make_String_Literal function with string.
26830 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
26831 that are functions return universal values, that have to be converted
26832 to the context type.
26833 Use new Make_String_Literal function with string.
26834 (Get_Stream_Convert_Pragma): New function, replaces the use of
26835 Get_Rep_Pragma, which had to be kludged to work in this case.
26837 * freeze.adb: Use new Has_Rep_Pragma function
26839 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
26840 function with string.
26841 Use new Has_Rep_Pragma function.
26843 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
26846 2004-11-18 Robert Dewar <dewar@adacore.com>
26848 * errout.ads, errout.adb: (First_Sloc): New function
26850 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
26851 check (-gnatyx) instead of being included as a redundant construct
26854 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
26855 Style_Check_Order_Subprograms.
26857 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
26858 stylesw.adb: Add Style_Check_Xtra_Parens
26860 * usage.adb: Add line for -gnatyx (check extra parens)
26862 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
26864 2004-11-18 Ed Schonberg <schonberg@adacore.com>
26865 Robert Dewar <dewar@adacore.com>
26867 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
26868 discriminant of a constrained subtype, analyze the copy of the
26869 corresponding constraint, because in some cases it may be only
26870 partially analyzed.
26871 Removes long-lived ??? comments.
26873 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
26874 handled controlled or secondary-stack expressions within the
26875 iteration_scheme of a loop.
26877 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
26878 bounds that may contain functions calls, to prevent memory leaks when
26879 the bound contains a call to a function that uses the secondary stack.
26880 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
26881 generate temporaries for loop bounds that might contain function calls
26882 that require secondary stack and/or finalization actions.
26884 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
26885 selected component and the selector is overloadable (not just a
26886 function) treat as function call, Analyze_Call will disambiguate if
26888 (Analyze_Selected_Component): Do not generate an actual subtype for the
26889 selected component if expansion is disabled. The actual subtype is only
26890 needed for constraint checks.
26891 (Analyze_Allocator): If restriction No_Streams is set, then do
26892 not permit objects to be declared of a stream type, or of a
26893 composite type containing a stream.
26895 * restrict.ads: Remove the a-stream entry from Unit_Array, since
26896 No_Streams no longer prohibits with'ing this package.
26898 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
26899 discriminants, but the parent base has unknown discriminants, there is
26900 no discriminant constraint to inherit. Such a discrepancy can arise
26901 when the actual for a formal type with unknown discriminants is a
26902 similar private type whose full view has discriminants.
26903 (Analyze_Object_Declaration): If restriction No_Streams is set, then
26904 do not permit objects to be declared of a stream type, or of a
26905 composite type containing a stream.
26907 2004-11-18 Ed Schonberg <schonberg@adacore.com>
26909 * exp_dbug.ads: Update documentation to reflect simpler encoding for
26910 protected operations.
26912 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
26913 generated name, it complicates decoding in gdb and hinders debugging
26914 of protected operations.
26915 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
26916 flag for the protected entry barrier function.
26917 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
26918 flag for the protected entry function.
26920 2004-11-18 Nicolas Setton <setton@adacore.com>
26922 * expect.c: Define __unix__ when __APPLE__ is defined.
26924 * Makefile.in: Inform the value of the variable GMEM_LIB in the
26925 Darwin-specific section.
26927 * lang-specs.h: Change the placement of the %1 marker.
26928 Works around the fact that gcc adds -fPIC by default under Darwin.
26930 2004-11-18 Ed Schonberg <schonberg@adacore.com>
26932 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
26933 type of the object with the packed array type, set the Analyzed flag
26934 on the object if it is an entity or simple indexed component, to avoid
26935 spurious type errors.
26937 2004-11-18 Gary Dismukes <dismukes@adacore.com>
26939 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
26940 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
26941 separate line from the version message.
26943 2004-11-18 Ed Falis <falis@adacore.com>
26945 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
26947 (init_float): Eliminate initialization of floating point status for
26948 AE653. The instructions have no effect for vThreads.
26950 2004-11-18 Vincent Celier <celier@adacore.com>
26952 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
26953 gnatbind is invoked with -shared.
26955 2004-11-18 Jose Ruiz <ruiz@adacore.com>
26957 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
26958 for Detect_Blocking which is redundant with the check done within the
26959 procedure Protected_Single_Entry_Call.
26960 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
26961 Detect_Blocking which is redundant with the check done within the
26962 procedure Protected_Single_Entry_Call.
26964 2004-11-18 Vincent Celier <celier@adacore.com>
26966 * makegpr.adb (Compile): Put the compiling switches (in package
26967 Compiler and on the command line) immediately after "-c", instead of
26968 at the end of the command line invocation of the compiler, when
26969 compiling a non-Ada file.
26970 (Build_Global_Archive): When there is no need to rebuild the archive,
26971 set Global_Archive_Exists, so that the archive is passed to the linker
26974 2004-11-18 Robert Dewar <dewar@adacore.com>
26975 Sergey Rybin <rybin@adacore.com>
26978 Remove extra paren check from list of checks for redundant constructs
26979 Add documentation of new -gnatyx style check (check extra parens)
26980 Remove paragraph about gnatelim debug options.
26982 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
26983 objects rather than forbidding dependencies on the package Ada.Streams.
26985 * sinfo.ads: Add ??? note that we should document pragmas passed to
26988 * g-expect.ads: Fix a few typos in the comments.
26990 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
26992 * misc.c (gnat_handle_option): Use %< and %> for quoting in
26995 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26997 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
26999 2004-11-07 Andreas Schwab <schwab@suse.de>
27001 * Makefile.in (install-gnatlib): Remove spurious hyphen.
27003 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
27006 * Makefile.in (darwin): Set soext to .dylib.
27008 2004-10-26 Vincent Celier <celier@gnat.com>
27009 Thomas Quinot <quinot@act-europe.fr>
27011 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
27012 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
27013 there is no use of GNAT.Sockets.Constants.
27014 Remove remaining pragma Import for C_Write
27015 Remove C_Read and C_Write from internal implementation unit
27016 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
27017 the read and write functions from the system runtime library is fine
27018 on UNIX but won't work under Windows).
27020 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
27021 (Check_Selector): Use C_Recv instead of C_Read.
27022 Selectors are the GNAT.Sockets abstraction to perform a select()
27023 call on a set of descriptors. To allow abortion of an ongoing
27024 select operation, some data is written to a dedicated socket that
27025 is always monitored.
27026 Under Windows, the write and read library functions cannot operate
27027 on sockets, so we need to use send and recv instead, which is portable
27028 across all supported platforms.
27030 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
27031 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
27032 (using the read and write functions from the system runtime library is
27033 fine on UNIX but won't work under Windows).
27035 2004-10-26 Nicolas Setton <setton@act-europe.fr>
27037 * mlib-tgt-darwin.adb: New file.
27039 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27040 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27041 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27042 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
27045 * Makefile.in: Add support for building shared libraries under Darwin.
27046 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
27047 the low level EH init subprogram to be called from __gnat_initialize.
27049 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
27050 indicates which options to pass to the archive indexer.
27052 * mlib-utl.adb: Add support for calling ranlib with additional
27053 options. This is needed for instance under Mac OS X.
27054 (Ranlib_Options): New global variable, used to store the potential
27055 options to pass to ranlib.
27056 (Ar): Use Ranlib_Options when spawning ranlib.
27057 (Initialize): Set the value of ranlib option.
27059 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27061 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
27062 instead of 8K, to reflect the real potential needs for stack-checking
27065 2004-10-26 Pascal Obry <obry@gnat.com>
27067 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
27069 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
27070 Windows only the initial thread stack size can be set so it is good to
27071 start we a low stack size.
27072 The OS will adjust the size as needed.
27074 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27075 Nicolas Setton <setton@act-europe.fr>
27077 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
27078 "__unix__" instead of "unix".
27079 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
27080 sections were just mistakenly ignored. The former is
27081 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
27082 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
27083 of hpux. This prevents an unwanted definition of the symbol
27084 convert_addresses in adaint.o.
27086 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27088 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
27089 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
27091 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27093 * a-filico.ads, a-filico.adb: fix incorrect header.
27095 2004-10-26 Javier Miranda <miranda@gnat.com>
27097 * a-ststio.ads: Fix typo in identifier
27099 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27101 * sem_ch4.adb: Minor reformatting.
27103 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27105 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
27106 enabled, check the result of unary and binary operations when the
27107 expression is the right-hand side of an assignment.
27109 2004-10-26 Vincent Celier <celier@gnat.com>
27111 * clean.adb (Delete): Do not output warnings when in quiet output and
27112 not in verbose mode.
27113 (Force_Deletions): New Boolean flag, defaulted to False
27114 (Delete): Only delete a file if it is writable, and when
27115 Force_Deletions is True.
27116 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
27117 (Usage): Line for new switch -f
27118 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
27121 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
27123 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
27124 JM type only if its size matches that of the wrapper. When a size is
27125 prescribed and the field is not aliased, remove the wrapper of a JM
27126 type only if the size is not greater than that of the packed array.
27127 (gnat_to_gnu_entity): Change the extension of packed array wrappers
27130 2004-10-26 Geert Bosch <bosch@gnat.com>
27132 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
27133 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27134 (Pred): Implement in terms of Succ.
27136 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27138 * exp_aggr.adb (Safe_Component): An aggregate component that is an
27139 unchecked conversion is safe for in-place use if the expression of the
27140 conversion is safe.
27141 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
27142 be expandable in place even if the aggregate does not come from source.
27143 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
27144 designated object of an allocator in place, rather than building it
27145 first on the stack. The previous scheme forces a full copy of the array,
27146 and may be altogether unsusable if the size of the array is too large
27147 for stack allocation.
27149 2004-10-26 Robert Dewar <dewar@gnat.com>
27151 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
27152 compares if the component is atomic.
27154 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
27155 array assignment if the component type is atomic.
27157 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27158 Eric Botcazou <ebotcazou@act-europe.fr>
27160 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
27161 is aliased and is a by_reference type, do not pass by copy.
27162 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
27163 detect whether the call is in the right side of an assignment or
27164 the expression of an object declaration. Recurse on component
27165 association within aggregates.
27166 Call it in the condition that determines whether the temporary is
27167 necessary for correct stack-checking.
27169 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27171 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
27172 RACW_Type, used in the PolyORB version.
27173 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
27174 version and the GARLIC version.
27176 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
27177 Rename RCI_Info to RCI_Locator for better consistency between the
27178 GARLIC and PolyORB versions of the distributed systems annex.
27179 (DSA_Implementation_Name): This enumeration lists the possible
27180 implementations of the Partition Communication Subsystem for the
27181 Distributed Systems Annex (DSA). The three available implementations
27182 are the dummy stub implementation (No_DSA), and two versions based on
27183 two different distribution runtime libraries: GARLIC and PolyORB. Both
27184 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
27186 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
27189 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
27190 between the GARLIC and PolyORB versions of the distributed systems
27192 Remove RE_Unbounded_Reclaim_Pool since it is unused.
27194 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27196 * gnat1drv.adb: Suppress calling the back end when
27197 Frontend_Layout_On_Target is true.
27199 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27201 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
27202 Set_Read_Only): New subprograms.
27203 These new routines allow the user to set or unset the Owner execute
27204 and Owner write permission flags on a file.
27206 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
27207 GNAT.OS_Lib.Set_Executable instead of rolling our own.
27209 2004-10-26 Matthew Gingell <gingell@gnat.com>
27211 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
27213 2004-10-26 Pascal Obry <obry@gnat.com>
27215 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
27216 memory before the faulting page we properly test the process read
27217 access for this address using appropriate Win32 routine.
27218 (HPUX sections): guard with "__hpux__" instead of "hpux".
27220 2004-10-26 Robert Dewar <dewar@gnat.com>
27222 * lib-xref.adb (Generate_Reference): Don't complain about reference to
27223 entry parameter if pragma Unreferenced set, since we do not properly
27224 handle the case of multiple parameters.
27226 2004-10-26 Vincent Celier <celier@gnat.com>
27228 * prj-env.adb: (Contains_ALI_Files): New Boolean function
27229 (Ada_Objects_Path.Add): For a library project, add to the object path
27230 the library directory only if there is no object directory or if the
27231 library directory contains ALI files.
27232 (Set_Ada_Paths.Add.Recursive_Add): Ditto
27234 2004-10-26 Vincent Celier <celier@gnat.com>
27236 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
27237 extension of library projects.
27239 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
27240 path defaults to ".:<prefix>/lib/gnat".
27241 (Parse): For an extending all project, allow direct import of a project
27242 that is virtually extended.
27244 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
27245 the specified name is directly imported, return its ID. Otherwise, if
27246 an extension of this project is imported, return the ID of the
27249 2004-10-26 Robert Dewar <dewar@gnat.com>
27251 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
27252 (Sub3): New procedure, used by Scaled_Divide
27253 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
27254 correct more than one instance of failure to propagate carries
27256 (Double_Divide): Handle overflow case of largest negative number
27257 divided by minus one.
27259 * s-arit64.ads (Double_Divide): Document that overflow can occur in
27260 the case of a quotient value out of range.
27263 2004-10-26 Robert Dewar <dewar@gnat.com>
27265 * s-bitops.adb (Bit_Eq): Remove redundant check.
27267 * s-bitops.ads: Minor comment updates
27268 Change some occurrences of Address to System.Address
27270 * s-carsi8.ads: Fix minor cut-and-paste error in comments
27272 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27274 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
27275 accessibility check to prefix that is a protected operation.
27277 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27279 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
27280 empty, post message on stub.
27282 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27283 Javier Miranda <miranda@gnat.com>
27285 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
27286 current instance appears within a unit that is directly in the context
27288 Used to determine whether the body of the instance should be analyzed
27289 immediately after its spec, to make its subprogram bodies available
27290 for front-end inlining.
27291 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
27292 constraint is not allowed on the component type (AARM 12.5.3(3))
27294 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27296 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
27297 'Storage_Pool): enhance, document & limit detection of non-sharable
27300 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
27302 * s-pooglo.ads: Add more documentation now that this pool is properly
27305 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27307 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
27308 or protected type with discriminants, do not constrain the
27309 corresponding record type if the subtype declaration has no
27310 discriminant constraints. This can be the case in source code, or in
27311 the subtype declaration created to rename an actual type within an
27314 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27316 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
27317 different kind of stub (possibly wrong name for file), do not check
27319 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
27320 includes call to some function that returns an unconstrained type, do
27323 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27325 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
27326 appear in the code for the main unit. Dependencies among units in the
27327 context of the main unit are established when those other units are
27328 compiled. Otherwise spurious elaboration constraints can generate
27329 incorrect elaboration circularities.
27331 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27332 Ed Schonberg <schonberg@gnat.com>
27334 * sem_util.adb (Is_Aliased_View): Defend against the case where this
27335 subprogram is called with a parameter that is not an object name. This
27336 situation arises for some cases of illegal code, which is diagnosed
27337 later, and in this case it is wrong to call Is_Aliased, as that might
27338 cause a compiler crash.
27339 (Explain_Limited_Type): Refine previous fix to include
27340 inherited components of derived types, to provide complete information.
27342 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
27343 is the prival for a protected object.
27344 It is necessary to mark this entity as a variable, in addition to
27345 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
27346 modified to avoid checking the Aliased flag on entities that are not
27347 objects. (Checking that flag for non-objects is erroneous and could
27348 lead to a compiler crash).
27350 2004-10-26 Robert Dewar <dewar@gnat.com>
27352 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
27353 X_Frac = 0.5, then we know that the number X must be positive.
27354 (Succ): Remove the same redundant test, and also fix the primary test
27355 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
27357 (Decompose): Add fuller comments to spec
27359 2004-10-26 Pascal Obry <obry@gnat.com>
27361 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
27362 validity (process must have read access). Set to 0 in all other cases.
27363 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
27364 violation on Win32.
27365 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
27366 segmentation violation.
27368 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
27370 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
27371 whose type is a constructed subtype of an aliased object with an
27372 unconstrained nominal subtype, convert the actual to the constructed
27373 subtype before taking its address.
27375 2004-10-26 Vincent Celier <celier@gnat.com>
27377 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
27378 (Is_Path_Name_Case_Sensitive): New function
27380 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
27381 (Base_Name, Simple_Name, Current_Directory, Compose,
27382 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
27385 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27386 Vasiliy Fofanov <fofanov@act-europe.fr>
27387 Vincent Celier <celier@gnat.com>
27389 * gnat_ugn.texi: Generalize "finding memory problems" section into a
27390 "memory management issues" section and document some of the useful
27391 memory pools provided as part of the GNAT library.
27392 Remove "virtual" from declaration of A::method2 in
27393 the simple example of Ada/C++ mixed system.
27394 Library Projects may be virtually extended: their virtual extensions
27395 are not Library Projects.
27396 Added section on extending project hierarchies.
27398 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27400 * adaint.c (__gnat_get_libraries_from_registry): Cast value
27402 (__gnat_portable_spawn): Remove const.
27404 * mingw32.h (MAXPATHLEN): Check for previous definition.
27406 2004-10-17 Matthias Klose <doko@debian.org>
27408 * gnatvsn.ads: Set gnat library version to 4.0.
27410 2004-10-05 Vincent Celier <celier@gnat.com>
27412 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
27414 2004-10-04 Laurent Guerby <laurent@guerby.net>
27417 * Makefile.in: Define and use RANLIB_FLAGS.
27419 2004-10-04 Pascal Obry <obry@gnat.com>
27421 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
27422 other x86 platforms).
27424 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
27426 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
27427 in general and triggers stack alignment adjustment for thread entry
27428 points on targets where this is necessary.
27430 2004-10-04 Bernard Banner <banner@gnat.com>
27433 * Makefile.in: Add section for powerpc linux
27434 Add variant i-vxwork-x86.ads
27436 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
27438 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
27440 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
27441 table registration calls when need be. Ensures no reference to the crt
27442 ctors symbol are issued in the SJLJ case, which avoids possible
27443 undefined symbol errors in the case of modules to be statically linked
27446 2004-10-04 Javier Miranda <miranda@gnat.com>
27448 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
27449 in-line the code corresponding to subprogram Analyze_Actuals. In
27450 addition, analyze the actuals only in case of subprogram call.
27452 2004-10-04 Ed Falis <falis@gnat.com>
27454 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
27456 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
27458 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
27459 in the documentation.
27461 2004-10-04 Robert Dewar <dewar@gnat.com>
27463 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
27465 (Analyze_Block_Statement): Add circuitry to detect following dead code
27466 (Check_Unreachable_Code): Handle case of block exit
27468 2004-10-04 Robert Dewar <dewar@gnat.com>
27470 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
27471 (XMatchD): Avoid warning for Logic_Error call
27473 2004-10-04 Robert Dewar <dewar@gnat.com>
27475 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
27476 consider expressions buried within a procedure actual to be an actual.
27477 This caused some blowups with uses of packed slices within a procedure
27480 2004-10-04 Robert Dewar <dewar@gnat.com>
27482 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
27483 longer need to be initialized to zero.
27484 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
27485 initialized to zero.
27487 * checks.adb (Expr_Known_Valid): Packed arrays are now always
27488 considered valid, even if the representation is modular. That's correct
27489 now that we no longer initialize packed modular arrays to zero.
27491 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
27492 suffixes. These are now documented as the only cases in which the
27493 debugger ignores outer records.
27494 Previously, the spec allowed arbitrary suffixes for this purpose.
27495 Change name of LJM to JM for packed array pad records
27496 Create separate section on packed array handling, and add a whole new
27497 set of comments to this section describing the situation with packed
27498 modular types and justification requirements depending on endianness.
27500 2004-10-04 Robert Dewar <dewar@gnat.com>
27502 * a-except.adb: Add a comment for last change
27504 * einfo.ads: Minor spelling correction in comment
27506 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
27508 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
27511 * sem_util.ads: Minor comment update
27513 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27515 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
27516 Inline_Always when in Configurable_Run_Time mode.
27518 * sem_prag.adb (Process_Convention): If entity is an inherited
27519 subprogram, apply convention to parent subprogram if in same scope.
27520 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
27521 when in Configurable_Run_Time mode.
27523 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27525 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
27526 class_wide type after component list has been inherited.
27528 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27530 * sem_ch12.adb (Check_Generic_Actuals): New predicate
27531 Denotes_Previous_Actual, to handle properly the case of a private
27532 actual that is also the component type of a subsequent array actual.
27533 The visibility status of the first actual is not affected when the
27534 second is installed.
27535 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
27536 make fully recursive the treatment of formals of packages declared
27538 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
27539 the above on exit from an instantiation.
27540 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
27541 current instantiation which is now complete.
27542 (Analyze_Package_Instantiation): No instantiated body is needed if the
27543 main unit is generic. Efficient, and avoid anomalies when a instance
27544 appears in a package accessed through rtsfind.
27546 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27548 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
27549 do not generate a declaration for a temporary if the call is part of a
27550 library-level instantiation.
27552 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27554 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
27555 searching for a limited component to flag.
27557 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
27558 expansion of Input, to account for the fact that the implicit call
27559 generated by the attribute reference must freeze the user-defined
27560 stream subprogram. This is only relevant to 'Input, because it can
27561 appear in an object declaration, prior to the body of the subprogram.
27563 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
27564 expansion can proceed and further errors uncovered.
27565 (Minor clean up): Fix cases of using | instead of \ for continuation
27568 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27570 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
27572 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
27573 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
27574 Use gcc_assert and gcc_unreachable.
27576 * decl.c (gnat_to_gnu_entity, case object): Check and process a
27577 specified alignment before validating size.
27578 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
27579 stripped-down declaration for the type of the inner field when making
27582 * utils.c (finish_record_type): Do not compute the size in units
27583 incrementally. Instead compute it once for the rep clause case.
27584 Use gcc_assert and gcc_unreachable.
27586 2004-10-04 Vincent Celier <celier@gnat.com>
27588 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
27590 (Is_Valid_Path_Name): Take '/' as a directory separator.
27592 2004-10-04 Vincent Celier <celier@gnat.com>
27594 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
27595 (Extended_Project) only if Extended_Project is defined, to avoid
27597 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
27599 (Parse_Single_Project): Ditto.
27601 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
27602 Add_To_Project_Path for virtual projects.
27604 2004-10-04 Vincent Celier <celier@gnat.com>
27606 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27607 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27608 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27609 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
27610 parameter Options_2.
27612 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
27613 Build_Dynamic_Library with an empty Options_2.
27615 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
27618 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
27619 directory separator, if any.
27620 (Gprmake): Do not allow mains on the command line for library projects.
27621 Do not attempt to link when the project is a library project.
27622 (Library_Opts): New table to store Library_Options.
27623 (Build_Library): If Library_Options is specified, pass these options
27624 when building a shared library.
27626 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
27628 * s-tposen.adb (Service_Entry): The object must be always unlocked at
27629 the end of this procedure now that the unlock operation was inserted
27632 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
27634 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
27635 corresponding to the Preallocated_Stacks flags in System.
27636 (Get_Target_Parameters): Including the processing for
27637 Preallocated_Stacks.
27639 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
27640 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
27641 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
27642 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
27643 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
27644 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27645 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
27646 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
27647 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
27648 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
27649 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
27650 used to signal whether the compiler creates the required stacks and
27651 descriptors for the different tasks (when True) or it is done by the
27652 underlying operating system at run time (when False).
27653 It is initially set to False in all targets.
27655 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
27656 if it is supported by the target.
27657 (Make_Task_Create_Call): Pass the stack address if it has been
27658 previously created. Otherwise pass a Null_Address.
27660 * snames.adb: Add _stack.
27662 * snames.ads: Add Name_uStack. Required to allow the expander to
27663 statically allocated task stacks.
27665 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
27666 Stack_Address argument.
27667 Check that its value is equal to Null_Address because this target does
27668 not support the static stack allocation.
27670 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27672 * usage.adb: Change "pragma inline" to "pragma Inline" in information
27675 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27677 * exp_dist.adb: Split declaration of asynchronous flag out of
27678 Add_RACW_Read_Attribute.
27679 Minor reformatting for better alignment with PolyORB version.
27680 Store the entity for the asynchronous flag of an RACW, rather than the
27681 expression, in the asynchronous flags table. This will allow this flag
27682 to be used in other subprograms beside Add_RACW_Read_Attribute.
27684 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27686 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
27687 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27688 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
27689 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
27690 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
27691 sockets constant MSG_NOSIGNAL (Linux-specific).
27692 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
27693 all Send operations.
27694 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
27695 from trigerring SIGPIPE.
27696 Rename components to avoid clash with Ada 2005 possible reserved
27698 (Check_Selector): When the select system call returns with an error
27699 condition, propagate Socket_Error to the caller.
27701 2004-10-01 Jan Hubicka <jh@suse.cz>
27703 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
27705 2004-09-23 Robert Dewar <dewar@gnat.com>
27708 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
27709 instead do this at freeze time (we won't do it if there is an address
27711 Change "pragma inline" to "pragma Inline" in information and error
27713 Minor reformatting.
27715 * freeze.adb (Check_Address_Clause): Remove previous change, not the
27716 right way of doing things after all.
27717 (Freeze_Entity): For object, set Is_Public for imported entities
27718 unless there is an address clause present.
27720 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
27722 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
27723 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
27724 ensures proper handling of types with rep clauses, which might have
27725 their TYPE_SIZE set already.
27727 2004-09-21 Robert Dewar <dewar@gnat.com>
27729 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
27730 packed array types in both little- and big-endian cases. This change
27731 ensures that we no longer count on the unused bits being initialized
27732 for such types (and in particular ensures that equality testing will
27733 only read the relevant bits).
27734 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27735 These changes mean that we no longer need to initialize small packed
27737 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
27738 optimization to an LJM field as to its parent field.
27740 * ada-tree.h, trans.c, utils.c, utils2.c:
27741 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27743 2004-09-20 Jan Hubicka <jh@suse.cz>
27745 * utils.c (gnat_finalize): Remove.
27746 (end_subprog_body): Directly call cgraph_finalize_function;
27747 do not lower the nested functions.
27749 2004-09-20 Robert Dewar <dewar@gnat.com>
27752 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
27753 if an address clause is present, since that means that the Import
27756 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
27758 * 5tsystem.ads: Removed, no longer used.
27760 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
27761 Zack Weinberg <zack@codesourcery.com>
27763 * ada-tree.def: Use tree_code_class enumeration constants
27764 instead of code letters.
27765 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
27766 Update for new tree-class enumeration constants.
27768 2004-09-17 Vincent Celier <celier@gnat.com>
27770 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
27771 capabilities of the general project manager.
27773 2004-09-09 Vincent Celier <celier@gnat.com>
27775 * a-direct.ads: Add pragma Ada_05
27776 (Directory_Entry_Type): Give default value to component Kind to avoid
27777 not initialized warnings.
27779 * a-direct.adb (Current_Directory): Remove directory separator at the
27781 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
27782 an existing directory.
27783 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
27784 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
27785 Convert the result to File_Size.
27787 * prj.ads: (Project_Error): New exception
27789 * prj-attr.adb: Except in procedure Initialize, Fail comes from
27790 Prj.Com, not from Osint.
27791 (Attrs, Package_Attributes): Tables moved to private part of spec
27792 (Add_Attribute, Add_Unknown_Package): Moved to new child package
27794 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
27795 Prj.Project_Error after call to Fail.
27796 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
27797 Fail. Check that package name is not already in use.
27799 * prj-attr.ads: Comment updates to indicate that all subprograms may be
27800 used by tools, not only by the project manager, and to indicate that
27801 exception Prj.Prj_Error may be raised in case of problem.
27802 (Add_Unknown_Package, Add_Attribute): Moved to new child package
27804 (Attrs, Package_Attributes): Table instantiations moved from the body to
27805 the private part to be accessible from Prj.Attr.PM body.
27807 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
27808 from new package Prj.Attr.PM.
27809 (Parse_Attribute_Declaration): Call Add_Attribute from new package
27812 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
27814 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
27815 instead of Elaboration_Checks).
27817 * a-calend.adb: Minor reformatting
27819 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27821 * gigi.h (maybe_pad_type): New declaration.
27822 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
27824 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
27826 * cuintp.c: Convert to use buildN.
27828 * decl.c (maybe_pad_type): No longer static.
27829 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
27831 Convert to use buildN.
27833 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
27834 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
27835 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
27837 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
27838 (gnat_gimplify_expr, case ADDR_EXPR): New case.
27839 Convert to use buildN.
27841 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
27842 TREE_READONLY for const.
27843 Convert to use buildN.
27845 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
27846 (create_var_decl): Refine when TREE_STATIC is set.
27847 Convert to use buildN.
27849 2004-09-09 Gary Dismukes <dismukes@gnat.com>
27851 * gnat_ugn.texi: Delete text relating to checking of ali and object
27854 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
27857 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
27859 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
27860 pragmas recognized by GNAT.
27862 * gnat_rm.texi: Document pragma Detect_Blocking.
27864 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
27865 raise Program_Error if called from a protected operation.
27867 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
27868 the protected action nesting level.
27869 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
27870 protected action nesting level.
27871 (Unlock): When pragma Detect_Blocking is active decrease the protected
27872 action nesting level.
27874 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
27875 Protected_Action_Nesting.
27877 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
27878 Common_ATCB record. It contains the dynamic level of protected action
27879 nesting for each task. It is needed for checking whether potentially
27880 blocking operations are called from protected operations.
27881 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
27882 Detect_Blocking is active or not in the partition.
27884 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
27885 raise Program_Error if called from a protected operation.
27886 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
27887 Program_Error if called from a protected operation.
27888 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
27889 Program_Error if called from a protected operation.
27891 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
27892 raise Program_Error if called from a protected operation.
27894 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
27895 raise Program_Error if called from a protected operation, and increase
27896 the protected action nesting level.
27897 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
27898 Program_Error if called from a protected operation, and increase the
27899 protected action nesting level.
27900 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
27901 protected action nesting level.
27903 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
27904 raise Program_Error if called from a protected operation, and increase
27905 the protected action nesting level.
27906 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
27907 Program_Error if called from a protected operation, and increase the
27908 protected action nesting level.
27909 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
27910 raise Program_Error if called from a protected operation.
27911 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
27912 active, raise Program_Error if called from a protected operation.
27913 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
27914 protected action nesting level.
27916 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
27917 insertion of the statement raising Program_Error. The run time
27918 contains the required machinery for handling that.
27920 * sem_util.ads: Change comment associated to procedure
27921 Check_Potentially_Blocking_Operation.
27922 This procedure does not insert a call for raising the exception because
27923 that is currently done by the run time.
27925 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
27927 * init.c: Add the global variable __gl_detect_blocking that indicates
27928 whether pragma Detect_Blocking is active (1) or not (0). Needed for
27929 making the pragma available at run time.
27930 (__gnat_set_globals): Pass and update the detect_blocking parameter.
27932 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
27933 pragma Detect_Blocking is active.
27935 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
27937 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
27938 DB is found in the ali file. Any unit compiled with pragma
27939 Detect_Blocking active forces its effect in the whole partition.
27941 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
27942 Detect_Blocking is active and delay is called from a protected
27945 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
27946 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
27947 Detect_Blocking is active (0 otherwise).
27948 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
27949 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
27952 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
27954 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
27955 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
27958 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
27959 (Register_Receiving_Stub): Add Subp_Info formal parameter.
27960 Update API in placeholder implemetation of s-parint to reflect changes
27961 in distribution runtime library.
27963 * sem_ch3.adb (Expand_Derived_Record): Rename to
27964 Expand_Record_Extension.
27966 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
27967 primitive operations of potentially distributed object types that have
27968 non-controlling anonymous access formals.
27970 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
27972 New implementation of expansion for remote access-to-subprogram types,
27973 based on the RACW infrastructure.
27974 This version of sem_dist is compatible with PolyORB/DSA as well as
27977 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
27978 Asynchrronous that applies to a remote access-to-subprogram type, mark
27979 the underlying RACW type as asynchronous.
27981 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
27982 __gnat_using_gnu_linker to 1.
27984 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
27985 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
27986 GNAT.Perfect_Hash_Generators, and remove the empty
27987 GNAT.Perfect_Hash package.
27989 * atree.adb: Minor reformatting
27991 * exp_ch3.adb (Expand_Derived_Record): Rename to
27992 Expand_Record_Extension.
27993 (Build_Record_Init_Proc.Build_Assignment): The default expression in
27994 a component declaration must remain attached at that point in the
27995 tree so New_Copy_Tree copies it if the enclosing record type is derived.
27996 It is therefore necessary to take a copy of the expression when building
27997 the corresponding assignment statement in the init proc.
27998 As a side effect, in the case of a derived record type, we now see the
27999 original expression, without any rewriting that could have occurred
28000 during expansion of the ancestor type's init proc, and we do not need
28001 to go back to Original_Node.
28003 * exp_ch3.ads (Expand_Derived_Record): Rename to
28004 Expand_Record_Extension.
28006 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
28007 Returns the RACW type used to implement a remote access-to-subprogram
28009 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
28010 New subprograms. Used to create a proxy tagged object for a remote
28011 subprogram. The proxy object is used as the designated object
28012 for RAS values on the same partition (unless All_Calls_Remote applies).
28013 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
28014 System.Partition_Interface.Get_Unique_Remote_Pointer.
28015 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
28016 Renamed from Add_RAS_*_Attribute.
28017 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
28019 New implementation of expansion for remote access-to-subprogram types,
28020 based on the RACW infrastructure.
28022 * exp_dist.ads (Copy_Specification): Update comment to note that this
28023 function can copy the specification from either a subprogram
28024 specification or an access-to-subprogram type definition.
28026 2004-09-09 Ed Schonberg <schonberg@gnat.com>
28028 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
28029 in an instance, between an explicit subprogram an one inherited from a
28030 type derived from an actual.
28032 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
28033 add a polling call if the subprogram is to be inlined by the back-end,
28034 to avoid repeated calls with multiple inlinings.
28036 * checks.adb (Apply_Alignment_Check): If the expression in the address
28037 clause is a call whose name is not a static entity (e.g. a dispatching
28038 call), treat as dynamic.
28040 2004-09-09 Robert Dewar <dewar@gnat.com>
28042 * g-trasym.ads: Minor reformatting
28044 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
28045 packed arrays, since unused bits are expected to be zero for a
28048 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
28050 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
28053 2004-09-09 Pascal Obry <obry@gnat.com>
28055 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
28056 enable map file generation. Add the right option to generate the map
28057 file if Map_File is set to True.
28059 * gnatdll.adb (Gen_Map_File): New variable.
28060 (Syntax): Add info about new -m (Map_File) option.
28061 (Parse_Command_Line): Add support for -m option.
28062 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
28063 Minor reformatting.
28065 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
28067 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
28068 new gnatdist implementation.
28069 Define a subpackage isolating the output routines specific to this
28072 2004-09-09 Joel Brobecker <brobecker@gnat.com>
28074 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
28076 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
28078 2004-09-09 Cyrille Comar <comar@act-europe.fr>
28080 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
28083 * opt.ads: Add Ada_Version_Runtime constant used to decide which
28084 version of the language is used to compile the run time.
28086 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
28088 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
28089 of variable length temporaries for function return now that the
28090 back-end and gigi support it.
28092 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28094 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
28096 * trans.c (struct stmt_group): Delete field GLOBAL.
28097 (gnat_init_stmt_group): Do not initialize it.
28098 (call_to_gnu): Use save_expr, not protect_multiple_eval.
28099 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
28100 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
28101 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
28102 (start_stmt_group): Likewise.
28103 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
28105 * utils2.c (ggc.h): Include.
28106 (build_call_raise): Call build_int_cst, not build_int_2.
28108 * utils.c (gnat_init_decl_processing): Fix arg to
28109 build_common_tree_nodes.
28110 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
28111 (gnat_define_builtin): Set built_in_decls.
28112 (init_gigi_decls): Call build_int_cst, not build_int_2.
28114 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
28115 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
28116 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
28117 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
28118 SET_TYPE_MODULE): Use them.
28119 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
28120 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
28121 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
28122 SET_TYPE_ADA_SIZE): Likewise.
28123 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
28124 (DECL_CONST_CORRESPONDING_VAR,
28125 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
28126 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
28127 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
28128 (TYPE_RM_SIZE_NUM): New macro.
28129 (TYPE_RM_SIZE): Modified to use above.
28131 * cuintp.c: (build_cst_from_int): New function.
28132 (UI_To_gnu): Use it.
28134 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
28135 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
28136 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
28137 MIN_EXPR for the size, copy it into new.
28139 2004-09-01 Robert Dewar <dewar@gnat.com>
28141 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
28142 packed indexed component where array is an IN OUT formal. This
28143 generated garbage code previously.
28145 * gnat_ugn.texi: Document -fverbose-asm
28147 * gnat-style.texi: Minor updates (note that boolean constants and
28148 variables are joined with AND/OR rather than short circuit forms).
28150 2004-09-01 Ed Schonberg <schonberg@gnat.com>
28152 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
28153 it is an upward conversion of an untagged type with no representation
28156 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
28158 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
28159 System.Partition_Interface.
28161 * checks.adb (Apply_Access_Checks): Do not generate checks when
28162 expander is not active (but check for unset reference to prefix of
28165 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
28166 pragma Debug as an if statement with a constant condition, for
28167 consistent treatment of entity references contained within the
28168 enclosed procedure call.
28170 2004-09-01 Vincent Celier <celier@gnat.com>
28172 * bindgen.adb: (Set_EA_Last): New procedure
28173 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
28175 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
28176 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
28177 linked without errors.
28178 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
28180 (Gen_Exception_Table_C): Correct same bugs
28182 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
28184 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
28185 on Windows, make sure that the drive letter is in upper case.
28187 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
28188 Windows, when the drive letter is added and Case_Sensitive is True, the
28189 drive letter is forced to upper case.
28191 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
28192 to Options_2 for the call to MLib.Utl.Gcc.
28194 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
28195 directory separator when defining BASE_DIR.
28197 2004-09-01 Pascal Obry <obry@gnat.com>
28199 * gprcmd.adb (Extend): Do not output trailing directory separator. This
28200 is not needed and it confuses Windows GNU/make which does not report
28201 directory terminated by a slash as a directory.
28202 (gprcmd): Idem for "pwd" internal command.
28204 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
28205 target names rewrite to fix regressions with recent version of
28206 GNU/make. Starting with GNU/make 3.80 the pipe character was not
28207 handled properly anymore.
28209 2004-09-01 Andreas Schwab <schwab@suse.de>
28211 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
28212 * raise.c [!IN_RTS]: Undef abort.
28214 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
28216 * utils2.c (build_allocator): Use ssize_int.
28218 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
28220 2004-08-27 Andreas Schwab <schwab@suse.de>
28222 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
28224 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
28225 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28227 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
28229 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
28231 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
28232 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28233 * utils.c (init_gigi_decls): Likewise.
28234 * utils2.c (build_call_raise, build_allocator): Likewise.
28236 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
28238 * utils.c (gnat_init_decl_processing): Adjust
28239 build_common_tree_nodes call.
28241 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
28243 * utils2.c (build_allocator): Use build_int_cst for negative
28246 2004-08-18 Richard Henderson <rth@redhat.com>
28248 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
28250 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
28252 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
28254 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
28255 (gnat_to_gnu): Likewise.
28257 2004-08-16 Pascal Obry <obry@gnat.com>
28259 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
28260 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
28261 option and not mdll anymore. Update comment.
28263 2004-08-16 Pascal Obry <obry@gnat.com>
28265 * bld.adb (Put_Include_Project): Properly handle directory separators
28268 2004-08-16 Ed Schonberg <schonberg@gnat.com>
28270 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
28271 decreasing the number of allocated junk nodes while searching for the
28272 appropriate subprogram.
28274 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
28276 * cuintp.c (UI_To_gnu): Use build_int_cst..
28277 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28278 * utils.c (init_gigi_decls): Likewise.
28279 * utils2.c (build_call_raise): Likewise.
28281 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
28283 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
28284 for a global aliased object with a variable size and an unconstrained
28285 nominal subtype, pretend there is no initializer if the one we have is
28286 incomplete, and avoid referencing an inexistant component in there. The
28287 part we have will be rebuilt anyway and the reference may confuse
28288 further operations.
28290 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
28292 * einfo.ads: Minor reformatting
28294 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
28295 restrictions in the ALI if we only want to warn about violations.
28297 2004-08-13 Vincent Celier <celier@gnat.com>
28299 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
28300 when creating a new Unit_Record in table Units.
28302 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
28303 that are violated, if any.
28305 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
28306 add directory separator if path already ends with a directory separator.
28308 2004-08-13 Ed Schonberg <schonberg@gnat.com>
28310 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
28311 unit, this is an attempt to inline a construct that is not available in
28312 the current restricted mode, so abort rather than trying to continue.
28314 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
28315 discriminants that rename those of the parent, recover names of
28316 original discriminants for the constraint on the full view of the
28318 (Complete_Private_Subtype): Do not create a subtype declaration if the
28319 subtype is an itype.
28321 * gnat_rm.texi: Added section on implementation of discriminated
28322 records with default values for discriminants.
28324 2004-08-13 Ed Schonberg <schonberg@gnat.com>
28327 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
28328 the second operand is overloaded.
28330 2004-08-10 Richard Henderson <rth@redhat.com>
28332 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
28333 add __builtin_alloca.
28335 2004-08-10 Richard Henderson <rth@redhat.com>
28337 * config-lang.in (boot_language): Yes.
28339 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
28341 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
28342 from complaining on potential uninitialized reference.
28343 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
28344 new specification and test explicitly for non-zero return value.
28346 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
28347 returning C.int, to avoid using a derived boolean type.
28349 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
28350 Duplicate_Subexpr_No_Checks in preference to direct use of
28351 Remove_Side_Effects and New_Copy_Tree.
28352 Clear Comes_From_Source on prefix of 'Size attribute reference.
28354 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
28355 g-socthi-vxworks.adb: Change calls to
28356 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
28357 and test explicitly for non-zero return value.
28359 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
28360 (Is_Socket_In_Set): Declare imported function as returning C.int, to
28361 avoid using a derived boolean type.
28363 2004-08-09 Albert Lee <lee@gnat.com>
28365 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
28367 2004-08-09 Pascal Obry <obry@gnat.com>
28369 * gnat_ugn.texi: Document new way to build DLLs on Windows using
28370 GCC's -shared option.
28372 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
28373 Options_2 parameter (options put after object files).
28375 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
28377 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
28378 ignore overflows on low and high bounds of an index to also account for
28379 differences in signedness between sizetype and gnu_index_subtype.
28380 These are as legitimate as the ones caused by a lower TYPE_PRECISION
28383 2004-08-09 Robert Dewar <dewar@gnat.com>
28385 * s-solita.ads, s-solita.adb: Minor reformatting
28387 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
28388 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
28389 obsolescent section
28390 Add note that No_Implicit_Conditionals does not suppress
28391 run time constraint checks.
28393 * vms_conv.ads: Minor reformatting
28395 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
28396 and necessary for following change).
28397 (Mark): Return new format Mark_Id containing sec stack address
28398 (Release): Use sec stack address from Mark_Id avoiding Self call
28400 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
28401 pointer (cleanup and necessary for following change).
28402 Define Mark_Id as record containing address of secondary stack, that way
28403 Release does not need to find the stack again, decreasing the number of
28404 calls to Self and improving efficiency.
28406 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
28408 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
28409 case variable into the individual case branches when possible.
28411 * sem_ch11.adb: Minor reformatting
28413 * prj.ads: Correct spelling of suffixs
28415 * prj-nmsc.adb: Minor reformatting
28416 Correct spelling suffixs throughout (also in identifiers)
28418 * freeze.adb: Minor spelling correction
28420 * exp_ch2.adb: Cleanups to handling of Current_Value
28421 (no functional effect).
28423 * bld.adb: Correct spelling of suffixs
28425 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
28427 2004-08-09 Ed Schonberg <schonberg@gnat.com>
28430 * sem_ch7.adb (Install_Private_Declarations): In the body of the
28431 package or of a child, private entities are both immediately_visible
28434 2004-08-09 Ed Schonberg <schonberg@gnat.com>
28436 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
28437 there are no range checks on the value of the literal.
28439 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
28440 wrapped is the triggering alternative of an asynchronous select, action
28441 statements mustbe inserted before the select itself.
28443 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
28444 case where the prefix is a protected function call.
28445 (Resolve_Attribute, case 'Access): The attribute reference on a
28446 subprogram is legal in a generic body if the subprogram is declared
28449 2004-08-09 Vincent Celier <celier@gnat.com>
28451 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
28452 languages, otherwise building the library may fail with unresolved
28454 (Compile_Sources): Do not build libraries if -c switch is used
28456 * gnatlink.adb (Process_Args): New switches -M and -Mmap
28457 (Write_Usage): If map file creation is supported, output new switches
28459 (Gnatlink): When -M is specified, add the necessary switch(es) to the
28460 gcc call, when supported.
28462 * Makefile.in: Added indepsw.o to the object list for gnatlink
28463 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
28465 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
28466 indepsw.adb, indepsw.ads: New files.
28468 2004-08-09 Bernard Banner <banner@gnat.com>
28470 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
28472 * Makefile.in: add section for vxworks x86
28474 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
28476 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
28477 per-object constrained components where the discriminant is of an
28479 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
28480 the parent initialization procedure for derived Unchecked_Unions.
28481 Instead, derived Unchecked_Unions build their own initialization
28483 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
28484 Check the body of the subprogram for details.
28485 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
28486 functions for derived Unchecked_Union types by introducing a condition.
28487 Allow the creation of TSS equality functions for Unchecked_Unions.
28488 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
28489 Add formal parameter Discr to function signature. Discr is used to
28490 control the generated case statement for Unchecked_Union types.
28491 (Make_Eq_If): Rename formal parameter Node to E in function signature.
28493 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
28495 Check the body of the subprogram for details.
28496 (Expand_Composite_Equality): Augment composite type equality to include
28497 correct handling of Unchecked_Union components.
28498 (Expand_N_In): Add condition to detect illegal membership tests when the
28499 subtype mark is a constrained Unchecked_Union and the expression lacks
28500 inferable discriminants, and build a Raise_Program_Error node.
28501 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
28502 to detect types that contain components of unconstrained Unchecked_Union
28503 subtype. Add condition to detect equality between types that have an
28504 unconstrained Unchecked_Union component, and build a Raise_Program_Error
28505 node. Add condition to detect equality between Unchecked_Union types
28506 that lack inferable discriminants, and build a Raise_Program_Error node.
28507 Otherwise build a TSS equality function call.
28508 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
28509 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
28510 with the operand lacking inferable discriminants, and build a Raise_
28511 Program_Error node.
28512 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
28513 composite equality.
28514 (Has_Inferable_Discriminants): Implement new predicate for objects and
28515 expressions of Unchecked_Union type. Check the body of subprogram for
28517 (Has_Unconstrained_UU_Components): Add function
28518 Component_Is_Unconstrained_UU. It is used to detect whether a single
28519 component is of an unconstrained Unchecked_Union subtype. Add function
28520 Variant_Is_Unconstrained_UU. It is used to detect whether a single
28521 component inside a variant is of an unconstrained Unchecked_Union type.
28523 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
28524 inferred discriminant values. Add condition to generate a case
28525 statement with an inferred discriminant as the switch.
28526 (Make_Component_List_Assign): Introduce a Boolean flag that determines
28527 the behaviour of the subprogram in the presence of an Unchecked_Union.
28528 Add condition to trigger the usage of the inferred discriminant value
28529 as the generated case statement switch.
28530 (Make_Field_Assign): Introduce a Boolean flag that determines the
28531 behaviour of the subprogram in the presence of an Unchecked_Union. Add
28532 condition to trigger the usage of the inferred discriminant value as
28533 the right-hand side of the generated assignment.
28535 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
28536 parameter generation when dealing with Unchecked_Unions.
28538 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
28539 checks for Unchecked_Unions.
28541 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
28543 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
28544 Raise_Program_Error nodes for the execution of Read and Write
28545 attributes of Unchecked_Union types and the execution of Input and
28546 Output attributes of Unchecked_Union types that lack default
28547 discriminant values.
28549 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
28550 Unchecked_Union. Add procedure Check_Component. It is used to inspect
28551 per-object constrained components of Unchecked_Unions for being
28552 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
28553 check individual components withing a variant.
28555 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
28556 comparison of Unchecked_Unions.
28557 (Resolve_Equality_OP): Remove guard that prevents equality between
28560 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
28561 of component subtypes for Unchecked_Union components.
28562 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
28563 since it is the actual subtype.
28565 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
28566 pass of Unchecked_Union subtypes as generic actuals to formal types
28567 that lack known_discriminant_parts or that are derived Unchecked_Union
28568 types, and do nothing. In any other case, produce an error message.
28570 * sem_ch3.adb (Analyze_Component_Declaration): Add function
28571 Contains_POC. It determines whether a constraint uses the discriminant
28572 of an enclosing record type.
28573 Add condition to detect per-object constrained component and set the
28575 (Derived_Type_Declaration): Remove guard that prevents derivation from
28576 Unchecked_Union types.
28577 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
28580 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
28581 references to Unchecked_Union discriminants.
28583 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
28584 formal generation when dealing with Unchecked_Unions.
28585 (Set_Actual_Subtypes): Add condition to prevent generation of actual
28586 subtypes for Unchecked_Unions.
28588 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
28589 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
28590 completions of discriminated partial views by Unchecked_Unions and
28591 produce an error message.
28593 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28595 * trans.c (struct stmt_group): New field, GLOBAL.
28596 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
28597 (struct elab_info): New struct.
28598 (elab_info_list, gnu_elab_proc_stack): New variables.
28599 (Compilation_Unit_to_gnu): New procedure.
28600 (gigi): Call it and also handle elaboration procs we've saved.
28601 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
28602 global field from parent.
28603 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
28604 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
28605 (start_stmt_group): Initialize global field from parent.
28606 (add_decl_expr): Set to global for current statement group.
28607 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
28610 * utils.c (global_bindings_p): True when no current_function_decl; no
28611 longer check current_binding_level.
28613 2004-08-09 Ben Brosgol <brosgol@gnat.com>
28615 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
28618 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
28620 2004-08-06 Andreas Schwab <schwab@suse.de>
28622 * utils.c (gnat_define_builtin): Remove second parameter of
28624 (begin_subprog_body): Likewise.
28626 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
28628 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
28629 optimization, not supported by the tree-ssa back-end.
28631 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
28633 * s-mastop-irix.adb: Update comments.
28635 * a-except.adb (Exception_Information): Raise Constraint_Error if
28636 exception Id is Null_Id.
28637 This is required behavior, which is more reliably and clearly checked
28638 at the top level interface level.
28640 2004-07-26 Javier Miranda <miranda@gnat.com>
28642 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
28643 call if a component has no default_expression and the box is used.
28645 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
28646 default_expression and you use box, it behaves as if you had declared a
28647 stand-alone object.
28648 (Resolve_Record_Aggregate): If a component has no default_expression and
28649 you use box, it behaves as if you had declared a stand-alone object.
28651 * sem_ch10.adb (Install_Siblings): Do not make visible the private
28652 entities of private-with siblings.
28654 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28656 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
28657 for a component of an itype, set the parent pointer for analysis,
28658 there is no list in which to insert it.
28660 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
28661 bona-fide renamings, not for inherited operations.
28663 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
28664 actual for a formal that is an access parameter, create local
28665 finalization list even if the expression is not an aggregate.
28667 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28670 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
28671 Diagnose properly illegal subprogram renamings that are library units.
28673 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28676 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
28677 conversion rewritten as an unchecked conversion, check that original
28678 expression is a variable.
28680 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
28681 unchecked_conversion, create new node rather than rewriting in place,
28682 to preserve original construct.
28684 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28686 * gigi.h (gnat_expand_body): Deleted.
28688 * Make-lang.in: (trans.o): Depends on function.h.
28690 * misc.c: (gnat_expand_body): Moved to here.
28692 * trans.c (gnat_expand_body_1): Deleted.
28693 (gnat_expand_body): Moved from here.
28694 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
28695 (add_stmt): Check for marked visited with global_bindings_p.
28696 (gnat_gimplify_expr, case COMPONENT_REF): New case.
28697 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
28699 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
28700 VIEW_CONVERT_EXPR if not operation type.
28702 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
28705 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
28706 changes: reformatting of negation operators, removing unneeded
28707 inequality comparison with zero, converting equality comparisons with
28708 zero to negations, changing int/0/1 to bool/false/true, replace calls
28709 to gigi_abort with abort, and various other similar changes.
28711 2004-07-26 Vincent Celier <celier@gnat.com>
28713 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
28716 * make.adb (Gnatmake): Fail when a library is not present and there is
28717 no object directory.
28719 * mlib-prj.adb (Check_Library): No need to check if the library needs
28720 to be rebuilt if there is no object directory, hence no object files
28721 to build the library.
28723 * opt.ads (Setup_Projects): New Boolean flag.
28725 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
28727 Create directory when Kind /= "" and in "gnat setup". Report error if
28728 directory cannot be created.
28729 (Ada_Check): Create library interface copy dir if it does not exist
28730 and we are in "gnat setup".
28731 (Find_Sources): No error if in "gnat setup" and no Ada sources were
28733 (Language_Independent_Check): Create object directory, exec directory
28734 and/or library directory if they do not exist and we are in
28737 * vms_conv.ads: (Command_Type): New command Setup.
28739 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
28741 * vms_data.ads: Add qualifiers/switches for new built-in command
28744 2004-07-25 Richard Henderson <rth@redhat.com>
28746 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
28747 DECL_IGNORED_P on RESULT_DECL.
28749 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
28751 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
28752 allocation and potentially overflowing update with
28753 Tailored_Exception_Information. Use the sec-stack free procedural
28754 interface to output Exception_Information instead.
28756 * a-except.adb (To_Stderr): New subprogram for character, and string
28757 version moved from a-exextr to be visible from other separate units.
28758 (Tailored_Exception_Information): Remove the procedural version,
28759 previously used by the default Last_Chance_Handler and not any more.
28760 Adjust various comments.
28762 * a-exexda.adb: Generalize the exception information procedural
28763 interface, to minimize the use of secondary stack and the need for
28764 local buffers when the info is to be output to stderr:
28765 (Address_Image): Removed.
28766 (Append_Info_Character): New subprogram, checking for overflows and
28767 outputing to stderr if buffer to fill is of length 0.
28768 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
28769 (Append_Info_Address, Append_Info_Exception_Name,
28770 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
28771 Append_Info_Basic_Exception_Traceback,
28772 Append_Info_Exception_Information): New subprograms.
28773 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
28774 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
28775 Exception_Info_Maxlength, Exception_Name_Length,
28776 Exception_Message_Length): New subprograms.
28777 (Exception_Information): Use Append_Info_Exception_Information.
28778 (Tailored_Exception_Information): Use
28779 Append_Info_Basic_Exception_Information.
28780 Export services for the default Last_Chance_Handler.
28782 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
28783 other separate units.
28785 2004-07-20 Vincent Celier <celier@gnat.com>
28787 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
28789 2004-07-20 Ed Schonberg <schonberg@gnat.com>
28791 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
28792 emit itype references for the designated types of component types that
28793 are declared outside of the full record declaration, and that may
28794 denote a partial view of that record type.
28796 2004-07-20 Ed Schonberg <schonberg@gnat.com>
28799 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
28800 which is the designated type in an access component declaration, to the
28801 list of incomplete dependents of the parent type, to avoid elaboration
28802 issues with out-of-scope subtypes.
28803 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
28804 full view of the parent.
28806 2004-07-20 Ed Schonberg <schonberg@gnat.com>
28809 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
28810 entities that are hidden, such as references to generic actuals
28811 outside an instance.
28813 2004-07-20 Javier Miranda <miranda@gnat.com>
28815 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
28816 support to the new notation.
28817 (Analyze_Selected_Component): Add call to Try_Object_Operation.
28819 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
28821 * s-taprob.adb: Adding the elaboration code required for initializing
28822 the tasking soft links that are common to the full and the restricted
28825 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
28826 restricted run time has been moved to the package
28827 System.Soft_Links.Tasking.
28829 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
28830 restricted run time has been moved to the package
28831 System.Soft_Links.Tasking.
28833 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
28835 * s-solita.ads, s-solita.adb: New files.
28837 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28839 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
28840 Case_Statement_to_gnu): Split off from gnat_to_gnu.
28841 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
28842 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
28843 Exception_Handler_to_gnu_zcx): Likewise.
28845 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
28847 * gigi.h (builtin_function): Declare.
28849 2004-07-15 Robert Dewar <dewar@gnat.com>
28851 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
28854 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
28855 access values as an example of a warning.
28857 * gnat_rm.texi: Document new attribute Has_Access_Values
28859 * gnat-style.texi: Document that box comments belong on nested
28862 * sem_util.ads (Has_Access_Values): Improved documentation
28864 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
28866 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
28867 (Process_Interface_Name): Call to this new procedure
28868 (Set_Extended_Import_Export_External_Name): Call to this new procedure
28870 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
28872 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
28874 * einfo.ads: Minor comment typo fixed
28876 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
28878 * snames.adb: Add _atcb.
28880 * snames.ads: Add Name_uATCB.
28882 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
28883 (in the expanded code) when using the restricted run time.
28885 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
28886 a in parameter in order to allow ATCBs to be preallocated (in the
28889 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
28890 order to allow ATCBs to be preallocated. In case of error, the ATCB is
28891 deallocated in System.Tasking.Stages.
28893 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
28894 order to allow ATCBs to be preallocated.
28896 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
28897 here. It was previously done in Initialize_ATCB.
28899 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
28901 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
28902 Restricted run time.
28904 * exp_ch3.adb: When using the Restricted run time, pass the
28905 preallocated Ada_Task_Control_Block when creating a task.
28907 2004-07-15 Ed Schonberg <schonberg@gnat.com>
28909 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
28910 function call that is itself an actual in an enclosing call, diagnose
28911 problem here rather than assuming that resolution will catch it.
28913 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
28914 the local copy of a generic unit for a formal package, and the generic
28915 is a child unit, install private part of ancestors before compiling
28916 private part of spec.
28918 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
28919 use scope entities rather than tree structures, to handle properly
28920 parent units that are instances rewritten as bodies for inlining
28923 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
28924 Remove_Parents): Handle properly a parent unit that is an
28925 instantiation, when the unit has been rewritten as a body for inlining
28928 * par.adb (Goto_List): Global variable to collect goto statements in a
28929 given unit, for use in detecting natural loops.
28931 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
28932 use in detecting natural loops.
28934 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
28935 backwards goto's, and rewrite as a infinite loop, to improve locality
28938 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
28939 subcomponent that includes an indexed reference, to prevent the
28940 generation of copies that would miscompile the desired assignment
28942 (Build_Task_Image_Decls): Add a numeric suffix to
28943 generated name for string variable, to avoid spurious conflicts with
28944 the name of the type of a single protected object.
28946 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
28947 loop with an explicit exit statement, to avoid generating an
28948 out-of-range value with 'Succ leading to spurious constraint_errors
28949 when compiling with -gnatVo.
28951 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
28953 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
28954 might not be analyzed yet, even if its Etype is already set (case of an
28955 unchecked conversion built using Unchecked_Convert_To, for example).
28956 If the prefix has already been analyzed, this will be a nop anyway.
28958 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
28959 controller type, or an assignment of a record type with controlled
28960 components, copy only user data, and leave the finalization chain
28961 pointers untouched.
28963 2004-07-15 Vincent Celier <celier@gnat.com>
28965 * make.adb (Collect_Arguments): Improve error message when attempting
28966 to compile a source not part of any project, when -x is not used.
28968 * prj.ads: (Defined_Variable_Kind): New subtype
28970 * prj-attr.adb (Register_New_Package): Two new procedures to register
28971 a package with or without its attributes.
28972 (Register_New_Attribute): Mew procedure to register a new attribute in a
28974 New attribute oriented subprograms: Attribute_Node_Id_Of,
28975 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
28976 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
28978 New package oriented subprograms: Package_Node_Id_Of,
28979 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
28981 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
28983 (Package_Node_Id): Now a private, self initialized type
28984 (Register_New_Package): New procedure to register a package with its
28986 New attribute oriented subprograms: Attribute_Node_Id_Of,
28987 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
28988 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
28990 New package oriented subprograms: Package_Node_Id_Of,
28991 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
28993 * prj-dect.adb (Parse_Attribute_Declaration,
28994 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
28996 * prj-makr.adb (Make): Parse existing project file before creating
28997 other files. Fail if there was an error during parsing.
28999 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
29000 new spec of Prj.Attr.
29002 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
29003 to new spec of Prj.Attr.
29005 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29007 * utils2.c: Fix typo in comment.
29009 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29011 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
29012 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
29014 2004-07-14 Andreas Schwab <schwab@suse.de>
29016 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
29018 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29020 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
29022 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
29025 * misc.c (gnat_types_compatible_p): New function.
29026 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
29027 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
29029 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
29030 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
29031 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
29032 (mark_visited): Don't mark dummy type.
29033 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
29034 parameter, we must remove any LJM building from GNU_NAME.
29035 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
29036 (pos_to_constructor): Use int_const_binop.
29037 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
29040 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
29041 (gnat_pushlevel): Set TREE_USE on BLOCK node.
29042 (gnat_install_builtins): Add __builtin_memset.
29044 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
29046 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
29047 for a renaming, stabilize the initialization expression if we are at a
29048 local level. At the local level, uses of the renaming may be performed
29049 by a direct dereference of the initializing expression, and we don't
29050 want possible variables there to be evaluated for every use.
29052 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
29053 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
29054 them on the way. Account for the fact that we may introduce side
29055 effects in the process.
29057 2004-07-13 Richard Henderson <rth@redhat.com>
29059 * misc.c (default_pass_by_ref): Use pass_by_reference.
29061 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
29063 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
29064 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
29066 2004-07-08 Richard Henderson <rth@redhat.com>
29068 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
29071 2004-07-06 Vincent Celier <celier@gnat.com>
29073 * vms_conv.ads: Minor reformatting.
29074 Alphabetical order for enumerated values of type Command_Type, to have
29075 the command in alphabetical order for the usage.
29077 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
29078 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
29080 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
29082 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
29083 (Add_Archive_Path): Only add the global archive if there is one.
29084 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
29085 or not any object file to put in the global archive, and don't build
29086 a global archive if there is none.
29087 (X_Switches): New table
29088 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
29089 in the X_Switches table, if any.
29090 (Initialize): Make sure the X_Switches table is empty
29091 (Scan_Arg): Record -X switches in table X_Switches
29093 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
29095 * make.adb: Minor comment fix
29097 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
29098 invoked with directory information, add the directory in front of the
29101 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
29102 invoked with directory information, add the directory in front of the
29105 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
29106 when Keep_Temporary_Files is False.
29107 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
29108 directory information, add the directory in front of the path.
29109 When not on VMS, handle new switch -dn before the command to set
29110 Keep_Temporary_Files to True.
29111 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
29114 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
29115 invoked with directory information, add the directory in front of the
29118 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
29120 * snames.ads, snames.adb (Name_Stub): New name for the distributed
29123 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
29124 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
29126 * g-socket.adb (To_Timeval): Fix incorrect conversion of
29127 Selector_Duration to Timeval for the case of 0.0.
29129 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
29130 documentation from Evolve_And_Then.
29132 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
29134 * s-taprop-tru64.adb, s-taprop-os2.adb,
29135 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
29137 2004-07-06 Robert Dewar <dewar@gnat.com>
29139 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
29140 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
29141 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
29142 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
29143 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
29144 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
29145 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
29146 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
29147 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
29148 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
29149 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
29150 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
29151 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
29152 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
29153 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
29154 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
29155 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
29156 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
29157 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
29158 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
29159 vms_data.ads: Minor reformatting,
29160 Fix bad box comment format.
29162 * gnat_rm.texi: Fix minor grammatical error
29164 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
29166 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
29167 more cases of discriminated records to be recognized as not needing a
29169 (Has_Access_Values): New function.
29171 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
29173 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
29174 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
29175 with LRM terminology).
29176 Change terminology in comments primitive type => elementary type.
29178 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29181 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
29182 parameters do not impose any requirements on the presence of a body.
29184 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29187 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
29188 compilation unit and is in an open scope at the point of instantiation,
29189 assume that a body may be present later.
29191 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29193 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
29194 Improve error message when specified size is not supported.
29196 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
29197 is never a primitive operation.
29199 2004-07-05 Andreas Schwab <schwab@suse.de>
29201 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
29202 RECORD_OR_UNION_CHECK.
29203 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
29205 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
29207 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
29208 dependency on xgnatugn, instead build it via a submake.
29209 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
29211 2004-07-04 Richard Henderson <rth@redhat.com>
29213 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
29215 2004-07-01 Richard Henderson <rth@redhat.com>
29217 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
29218 * utils.c (max_size): Likewise.
29220 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29222 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
29223 and rest_of_type_compilation; add arg to create_*_decl.
29224 (annotate_decl_with_node): Deleted.
29225 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
29226 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
29227 (get_current_block_context, gnat_pushdecl): New declarations.
29228 (gnat_init_stmt_group): Likewise.
29229 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
29230 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
29231 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
29232 (gnat_init): Call gnat_init_stmt_group.
29233 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
29234 (gnu_pending_elaboration_list): Deleted.
29235 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
29236 (gigi): Rearrange initialization calls and move some to last above.
29237 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
29238 Delete calls to add_decl_expr; add arg to create_*_decl.
29239 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
29240 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
29241 begin_subprog_body and call it.
29242 Don't push and pop ggc context.
29243 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
29244 (add_stmt): Remove handling of DECL_EXPR from here.
29245 If not in function, mark visited.
29246 (add_decl_expr): Put global at top level.
29247 Check for cases of DECL_INITIAL we have to handle here.
29248 (process_type): Add extra arg to create_type_decl.
29249 (build_unit_elab): Rework to just gimplify.
29250 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
29251 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
29252 (get_pending_elaborations, pending_elaborations_p): Likewise.
29253 (push_pending_elaborations, pop_pending_elaborations): Likewise.
29254 (get_elaboration_location, insert_elaboration_list): Likewise.
29255 (gnat_binding_level): Renamed from ada_binding_level.
29256 (init_gnat_to_gnu): Don't clear pending_elaborations.
29257 (global_bindings_p): Treat as global if no current_binding_level.
29258 (set_current_block_context): New function.
29259 (gnat_pushdecl): Renamed from pushdecl; major rework.
29260 All callers changed.
29261 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
29262 (finish_record_type): Call call pushdecl for stub decl.
29263 (function_nesting_depth): Deleted.
29264 (begin_subprog_body): Delete obsolete code.
29265 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
29267 2004-06-28 Robert Dewar <dewar@gnat.com>
29269 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29270 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
29271 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
29272 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29273 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
29275 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
29276 deal with problem of inefficient slices on machines with strict
29277 alignment, when the slice is a component of a composite.
29279 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
29280 machines, we need the check there as well.
29282 2004-06-28 Ed Schonberg <schonberg@gnat.com>
29284 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
29285 determine safe copying direction for overlapping slice assignments
29286 when component is controlled.
29288 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
29289 formal derived type in the actual for a formal package are visible in
29290 the enclosing instance.
29292 2004-06-28 Ed Schonberg <schonberg@gnat.com>
29295 * sem_util.adb (Trace_Components): Diagnose properly an illegal
29296 circularity involving a private type whose completion includes a
29297 self-referential component.
29298 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
29299 renaming or an instantiation from an implicit derived operation.
29301 2004-06-28 Pascal Obry <obry@gnat.com>
29303 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
29305 (Library_File_Name_For): Idem.
29307 2004-06-28 Matthew Gingell <gingell@gnat.com>
29309 * g-traceb.ads: Add explanatory note on the format of addresses
29310 expected by addr2line.
29312 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
29314 * Makefile.in: Force debugging information on s-tasdeb.adb,
29315 a-except.adb and s-assert.adb needed by the debugger.
29317 2004-06-28 Vincent Celier <celier@gnat.com>
29319 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
29323 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
29325 * prj.adb: Minor reformatting
29326 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
29328 * prj.ads: Comment updates
29330 (Project_Data): Change Flag1 to Need_To_Build_Lib.
29331 Remove Flag2: not used.
29333 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
29336 * gnat_ugn.texi: Put a "null;" declaration in one project file example
29338 * gnat_rm.texi: Document Empty declarations "null;".
29340 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
29341 front of the linker options.
29342 (Link_Foreign): Put the global archives and the libraries in front of
29343 the linker options.
29345 2004-06-28 Javier Miranda <miranda@gnat.com>
29347 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
29348 (RTU_Loaded): Code cleanup
29349 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
29350 withed predefined units.
29352 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
29353 explicitly withed predefined units.
29354 Fix typo in comment
29356 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
29357 explicitly withed predefined units.
29359 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29361 * ada-tree.def (DECL_STMT): Deleted.
29362 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
29363 (DECL_STMT_VAR): Deleted.
29364 * decl.c: add_decl_stmt now add_decl_expr.
29365 * gigi.h: Likewise.
29366 * trans.c: Likewise.
29367 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29368 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
29369 (add_stmt): Only handle padded type here.
29370 (add_stmt_with_node): Allow gnat_node to not be present.
29371 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
29372 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
29373 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
29374 make a SAVE_EXPR for the entire fat pointer.
29375 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
29376 (create_index_type): Make a DECL_EXPR.
29377 (end_subprog_body): Don't call allocate_struct_function here but
29380 2004-06-25 Pascal Obry <obry@gnat.com>
29382 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
29383 Relocatable from Build_Dynamic_Library call.
29385 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
29386 Relocatable are now synonym.
29388 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
29390 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
29391 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
29394 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
29395 Lib_Address and Relocatable.
29396 (Default_DLL_Address): Removed.
29398 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29399 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29400 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
29401 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
29402 (Default_DLL_Address): Removed.
29404 * mlib-tgt-mingw.adb: Ditto.
29405 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
29407 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
29408 the initial thread stack size.
29410 * a-strmap.ads: Move package L to private part as it is not used in
29411 the spec. Found while reading code.
29413 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
29415 * tracebak.c: Introduce support for a GCC infrastructure based
29416 implementation of __gnat_backtrace.
29418 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
29419 any more. Use accessors instead. This eases maintenance and relaxes
29420 some alignment constraints.
29421 (_GNAT_Exception structure): Remove the Ada specific fields
29422 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
29424 (is_handled_by, __gnat_eh_personality): Replace component references to
29425 exception structure by use of the new accessors.
29427 * init.c (__gnat_initialize): Adjust comments to match the just
29428 reverted meaning of the -static link-time option.
29430 * adaint.c (convert_addresses): Arrange not to define a stub for
29431 mips-irix any more, as we now want to rely on a real version from a
29432 recent libaddr2line.
29434 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
29435 the personality routine can use them and not have to rely on a C
29436 counterpart of the record anymore. This simplifies maintenance and
29437 relaxes the constraint of having Standard'Maximum_Alignment match
29439 Update comments, and add a section on the common header alignment issue.
29441 2004-06-25 Geert Bosch <bosch@gnat.com>
29443 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
29444 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
29446 2004-06-25 Robert Dewar <dewar@gnat.com>
29448 * gnat_rm.texi: Fix section on component clauses to indicate that the
29449 restriction on byte boundary placement still applies for bit packed
29451 Add comment on stack usage from Initialize_Scalars
29453 * gnat_ugn.texi: Add documentation for -gnatyLnnn
29455 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
29456 limiting nesting level.
29458 * usage.adb: Add line for -gnatyLnnn switch
29460 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
29461 sem_ch13.adb, exp_aggr.adb: Minor reformatting
29463 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
29464 type as well as on the subtype. This corrects a problem in freeze in
29465 setting alignments of atomic types.
29467 * sem_eval.ads: Minor comment typo fixed
29469 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
29470 level. Minor reformatting.
29472 * fname.adb (Is_Predefined_File_Name): Require a letter after the
29473 minus sign. This means that file names like a--b.adb will not be
29474 considered predefined.
29476 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
29477 record Test new flag and give diagnostic for bad component clause.
29478 (Freeze_Entity): Set alignment of array from component alignment in
29479 cases where this is safe to do.
29481 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
29484 * cstand.adb: (Create_Standard): Set alignment of String to 1
29486 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
29488 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
29489 code in the common constrained array cases.
29491 * a-storio.adb: Change implementation to avoid possible alignment
29492 problems on machines requiring strict alignment (data should be moved
29493 as type Buffer, not type Elmt).
29495 * checks.adb (Apply_Array_Size_Check): Improve these checks by
29496 killing the overflow checks which we really do not need (64-bits is
29499 2004-06-25 Vincent Celier <celier@gnat.com>
29501 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
29502 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
29503 inconditionally for the main project.
29504 (Recursive_Add_Archives.Add_Archive_Path): New procedure
29505 (Link_Executables.Check_Time_Stamps): New procedure
29506 (Link_Executables.Link_Foreign): New procedure
29507 Changes made to reduce nesting level of this package
29508 (Check): New procedure
29509 (Add_Switches): When not in quiet output, check that a switch is not
29510 the concatenation of several valid switches. If it is, issue a warning.
29511 (Build_Global_Archive): If the global archive is rebuilt, linking need
29513 (Compile_Sources): Rebuilding a library archive does not imply
29514 rebuilding the global archive.
29515 (Build_Global_Archive): New procedure
29516 (Build_Library): New name for Build_Archive, now only for library
29518 (Check_Archive_Builder): New procedure
29519 (Create_Global_Archive_Dependency_File): New procedure
29520 (Gprmake): Call Build_Global_Archive before linking
29521 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
29523 (Scan_Arg): Display the Copyright notice when -v is used
29525 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
29528 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
29530 Add new GNAT LIST qualifier /FILES=
29531 Added qualifier /DIRECTORY= to GNAT METRIC
29532 Added qualifier /FILES= to GNAT METRIC
29533 Added qualifier /FILES to GNAT PRETTY
29535 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
29536 to take into account both versions of the switch.
29538 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
29539 always be the last switch to the gcc driver. Disable switch storing so
29540 that switches automatically added by the gcc driver are not put in the
29543 * prj.adb (Project_Empty): Take into account changes in components of
29546 * prj.ads (Languages_Processed): New enumaration value All_Languages.
29548 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
29549 used. Split Boolean component Ada_Sources_Present in two Boolean
29550 components Ada_Sources_Present and Other_Sources_Present.
29553 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
29554 instead of Sources_Present.
29555 (Set_Ada_Paths.Add.Recursive_Add): Ditto
29557 * prj-nmsc.adb: Minor reformatting
29558 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
29559 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
29560 Check_Ada_Naming_Scheme.
29561 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
29564 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
29566 Make sure that all cycles where there is at least one "limited with"
29568 (Parse_Single_Project): New Boolean parameter In_Limited
29570 * prj-proc.adb (Recursive_Check): When Process_Languages is
29571 All_Languages, call first Prj.Nmsc.Ada_Check, then
29572 Prj.Nmsc.Other_Languages_Check.
29574 * prj-proc.adb (Process): Use Ada_Sources_Present or
29575 Other_Sources_Present (instead of Sources_Present) depending on
29578 * lang-specs.h: Keep -g and -m switches in the same order, and as the
29581 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
29582 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
29584 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
29587 * lib.ads (Disable_Switch_Storing): New procedure.
29589 * make.adb: Modifications to reduce nesting level of this package.
29590 (Check_Standard_Library): New procedure
29591 (Gnatmake.Check_Mains): New procedure
29592 (Gnatmake.Create_Binder_Mapping_File): New procedure
29593 (Compile_Sources.Compile): Add switch -gnatez as the last option
29594 (Display): Never display -gnatez
29596 * Makefile.generic:
29597 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
29599 * gnatcmd.adb (Check_Project): New function
29600 (Process_Link): New procedure to reduce nesting depth
29601 (Check_Files): New procedure to reduce the nesting depth.
29602 For GNAT METRIC, include the inherited sources in extending projects.
29603 (GNATCmd): When GNAT LS is invoked with a project file and no files,
29604 add the list of files from the sources of the project file. If this list
29605 is too long, put it in a temp text files and use switch -files=
29606 (Delete_Temp_Config_Files): Delete the temp text file that contains
29607 a list of source for gnatpp or gnatmetric, if one has been created.
29608 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
29609 in the project file is too large, create a temporary text file that
29610 list them and pass it to the tool with "-files=<temp text file>".
29611 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
29613 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
29614 generated file is in not in Ada.
29616 * gnatls.adb: Remove all parameters And_Save that are no longer used.
29617 (Scan_Ls_Arg): Add processing for -files=
29618 (Usage): Add line for -files=
29620 * g-os_lib.adb (On_Windows): New global constant Boolean flag
29621 (Normalize_Pathname): When on Windows and the path starts with a
29622 directory separator, make sure that the resulting path will start with
29625 * clean.adb (Clean_Archive): New procedure
29626 (Clean_Project): When there is non-Ada code, delete the global archive,
29627 the archive dependency files, the object files and their dependency
29628 files, if they exist.
29629 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
29631 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
29633 * sinfo.ads: Fix typo in comment.
29635 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
29636 the TSS for remote access-to-subprogram types, since these TSS are
29637 always present once the type has been analyzed.
29638 (RAS_E_Dereference): Same.
29640 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
29641 reference raises Bad_Attribute, mark the reference as analyzed so the
29642 node (and any children resulting from rewrites that could have occurred
29643 during the analysis that ultimately failed) is not analyzed again.
29645 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
29647 * exp_dist.adb: Minor comment fix.
29649 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
29650 type is an anonymous access type, no unchecked deallocation of the
29651 allocated object can occur. If the object is controlled, attach it with
29652 a count of 1. This allows attachment to the Global_Final_List, if
29653 no other relevant list is available.
29654 (Get_Allocator_Final_List): For an anonymous access type that is
29655 the type of a discriminant or record component, the corresponding
29656 finalisation list is the one of the scope of the type.
29658 2004-06-25 Ed Schonberg <schonberg@gnat.com>
29660 * sem_ch3.adb (Replace_Type): When computing the signature of an
29661 inherited subprogram, use the first subtype if the derived type
29662 declaration has no constraint.
29664 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
29665 before applying previous optimization. Minor code cleanup.
29667 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
29668 placed at the beginning of an unpacked record without explicit
29669 alignment, a slice of it will be aligned and does not need a copy when
29672 2004-06-25 Ed Schonberg <schonberg@gnat.com>
29676 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
29677 reference is written with expressions mimicking parameters.
29679 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
29682 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
29683 STEP 2a. The constraints of a full type declaration of a derived record
29684 type are checked for conformance with those declared in the
29685 corresponding private extension declaration. The message
29686 "not conformant with previous declaration" is emitted if an error is
29689 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
29691 * g-traceb.ads: Document the need for -E binder switch in the spec.
29693 * g-trasym.ads: Document the need for -E binder switch in the spec.
29695 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
29697 * sem_prag.adb: Add handling of pragma Detect_Blocking.
29699 * snames.h, snames.ads, snames.adb: Add entry for pragma
29702 * s-rident.ads: Change reference to pragma Detect_Blocking.
29704 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
29707 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
29708 to indicate whether pragma Detect_Blocking is active.
29710 * par-prag.adb: Add entry for pragma Detect_Blocking.
29712 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
29713 of not handling WITH.
29714 Note that this replaces the previous update which was incorrect.
29716 2004-06-25 Javier Miranda <miranda@gnat.com>
29718 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
29719 use-clauses to have a clean environment.
29721 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
29722 the installation of the use-clauses to stablish a clean environment in
29723 case of compilation of a separate unit; otherwise the call to
29724 use_one_package is protected by the barrier Applicable_Use.
29726 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
29727 the installation of the use-clauses to stablish a clean environment in
29728 case of compilation of a separate unit.
29729 (End_Use_Clauses): Minor comment cleanup.
29731 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
29733 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
29735 2004-06-23 Richard Henderson <rth@redhat.com>
29737 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
29739 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29741 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
29742 now bool instead of int.
29743 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
29744 * trans.c (gnu_switch_label_stack): New function.
29745 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
29746 elaboration of renamed entity returns.
29747 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
29748 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
29749 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
29750 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
29751 DECL_SIZE_UNIT and simplify variable-sized case.
29752 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29753 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
29754 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
29755 (build_unit_elab): Disable for now.
29756 * utils.c (mark_visited): New function.
29757 (pushdecl): Walk tree to call it for global decl.
29758 (update_pointer_to): Update all variants of pointer and ref types.
29759 Add arg to COMPONENT_REF.
29760 (convert): Likewise.
29761 Move check for converting between variants lower down.
29762 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
29763 (build_allocator): Don't force type of MODIFY_EXPR.
29764 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
29765 put_var_into_stack.
29767 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29769 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
29770 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
29771 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
29773 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
29774 all callers changed.
29775 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
29776 the way that EXIT_STMT finds the loop label.
29777 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
29778 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
29779 (add_stmt): Use annotate_with_locus insted of setting directly.
29780 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
29781 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
29782 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
29783 (build_vms_descriptor): Add extra args to ARRAY_REF.
29784 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
29785 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
29787 (build_binary_op): Don't make explicit CONVERT_EXPR.
29788 Add extra rgs to ARRAY_REF.
29790 2004-06-14 Pascal Obry <obry@gnat.com>
29792 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
29793 Windows. Fix minor typo.
29795 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
29796 which is now supported on Windows. With this implementation using the
29797 Library Project feature is no different on Windows than on UNIX.
29799 2004-06-14 Vincent Celier <celier@gnat.com>
29801 * makegpr.adb (Compile_Sources): Nothing to do when there are no
29804 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
29806 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
29807 found, show the project name and the path of the previously parsed
29810 2004-06-14 Ed Schonberg <schonberg@gnat.com>
29812 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
29813 array, avoid copying the actual before the call.
29815 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
29817 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
29818 Instead, allocate memory on worst-case alignment assumptions, and then
29819 return an aligned address within the allocated zone.
29821 2004-06-14 Robert Dewar <dewar@gnat.com>
29823 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
29824 elab entities in predefined units in No_Run_Time_Mode.
29825 (Gen_Adainit_C): Same fix
29826 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
29827 units in No_Run_Time_Mode
29828 (Gen_Elab_Calls_C): Same fix
29830 * symbols-vms-alpha.adb: Minor reformatting
29832 * g-debpoo.ads: Minor reformatting
29834 * lib.adb (In_Same_Extended_Unit): Version working on node id's
29836 * lib.ads (In_Same_Extended_Unit): Version working on node id's
29838 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
29841 * make.adb: Minor reformatting
29843 * par-ch12.adb: Minor reformatting
29845 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
29847 * prj-strt.adb: Minor reformatting
29849 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
29852 * sem_attr.adb: Minor reformatting
29854 * sem_ch7.adb: Minor reformatting
29856 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
29857 for type in the same unit as the object declaration.
29859 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
29860 static string expressions and not just string literals.
29862 (Set_Warning): Reset restriction warning flag for restriction pragma
29863 Implement pragma Profile_Warnings
29864 Implement pragma Profile (Restricted)
29865 Give obolescent messages for old restrictions and pragmas
29867 * snames.h, snames.ads, snames.adb: Add new entry for pragma
29870 * s-rident.ads: Add declarations for restrictions required by profile
29871 Restricted and profile Ravenscar.
29873 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
29875 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
29876 configuration pragmas.
29878 2004-06-11 Vincent Celier <celier@gnat.com>
29880 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
29881 gnatsym, when symbol policy is Restricted.
29883 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
29884 gnatsym, when symbol policy is Restricted.
29886 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
29887 read the symbol file.
29888 (Finalize): Fail in symbol policy Restricted if a symbol in the original
29889 symbol file is not in the object files. Do not create a new symbol file
29890 when symbol policy is Restricted.
29892 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
29895 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
29897 (Usage): Line for new switch -R
29899 * make.adb (Initialize): When the platform is not VMS, add the
29900 directory where gnatmake is invoked in the front of the path, if
29901 gnatmake is invoked with directory information. Change the Scan_Args
29902 while loop to a for loop.
29903 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
29904 if Depth is equal or greater than the proposed depth, there is nothing
29906 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
29909 * prj.ads: Add new symbol policy Restricted.
29911 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
29912 with the new parameters Check_All_Labels and Case_Location.
29914 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
29915 (Library_Symbol_File needs to be defined).
29917 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
29918 and Case_Location If Check_All_Labels is True, check that all values of
29919 the string type are used, and output warning(s) if they are not.
29921 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
29924 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
29926 * gnat_ugn.texi: Update documentation about the library directory in
29929 * makegpr.adb (Display_Command): In verbose mode, also display the
29930 value of the CPATH env var, when the compiler is gcc.
29931 (Initialize): Change the Scan_Args while loop to a for loop
29932 (Compile_Individual_Sources): Change directory to object directory
29933 before compilations.
29935 * symbols.ads: New symbol policy Restricted.
29937 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
29939 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
29940 is now taken care of internally in the Exception_Propagation package
29941 and does not require clients assistance any more.
29943 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
29944 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
29945 functions. Helpers to maintain a predicate required in the handling of
29946 occurrence transfer between tasks.
29947 This is now handled internally and does not require clients assistance
29948 for the setup/propagate separation anymore.
29949 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
29950 allocation strategy, handle the Setup_And_Not_Propagated predicate and
29953 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
29954 raise_after_setup, now that everything is handled internally within the
29955 setup/propagation engine.
29957 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
29959 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
29960 Add additional conditions for the case of an actual being a simple
29961 name or literal. Improve inlining by preventing the generation
29962 of temporaries with a short lifetime (one use).
29964 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
29967 * einfo.ads: Minor comment updates for Has_Completion and
29968 E_Constant list of flags.
29970 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
29971 and constant redeclarations now set the Has_Completion flag of their
29972 defining identifiers.
29974 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
29975 Inspect_Deferred_Constant_Completion.
29976 Used to detect private deferred constants that have not been completed
29977 either by a constant redeclaration or pragma Import. Emits error message
29978 "constant declaration requires initialization expression".
29980 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
29981 completes a deferred constant.
29983 2004-06-11 Geert Bosch <bosch@gnat.com>
29985 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
29987 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
29988 calculating exponent for scaling denormal numbers.
29989 (Leading_Part): Properly raise Constraint_Error for zero or negative
29991 (Remainder): Properly raise Constraint_Error for zero divisor.
29993 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
29995 * sem_util.adb: Minor reformatting.
29997 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
29998 dereference when accessing the entry parameter record.
29999 (Check_Array_Type): Always check for possible implicit dereference.
30000 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30001 Abort if a pointer is still present (denoting that an implicit
30002 dereference was left in the tree by the front-end).
30004 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
30005 dereference when accessing the entry parameter record.
30006 (Check_Array_Type): Always check for possible implicit dereference.
30007 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30008 Abort if a pointer is still present (denoting that an implicit
30009 dereference was left in the tree by the front-end).
30011 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
30013 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
30014 message, like the compiler itself does. Easier to parse the output.
30016 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
30018 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
30019 be base names, and not includes directories.
30021 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30023 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
30024 so that dependencies are properly taken into account by make.
30026 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30029 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
30030 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
30032 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
30034 * Makefile.in (install-gnatlib): install target-specific run-time files.
30036 * Make-lang.in: Remove obsolete targets.
30038 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30040 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
30041 specification, to catch misuses of program unit names.
30043 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
30044 superfluous conversions in an instance.
30046 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30049 * sem_ch12.adb (Save_References): If operator node has been folded to
30050 enumeration literal, associated_node must be discarded.
30052 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
30054 * s-stchop-vxworks.adb: Add required pragma Convention to
30055 Task_Descriptor because it is updated by a C function.
30057 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
30060 * Makefile.in: Remove target specific SO_OPT on IRIX
30062 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30064 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
30065 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
30066 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
30067 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
30068 (STMT_STMT, USE_STMT): New statement codes.
30069 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
30070 * ada-tree.h: Reflect above changes.
30071 (struct tree_loop_id): Deleted.
30072 (union lang_tree_node, struct lang_decl, struct lang_type):
30073 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
30074 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
30075 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
30076 (IS_ADA_STMT): New macro.
30077 * decl.c (annotate_decl_with_node): New function.
30078 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
30079 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
30080 Call add_stmt_with_node to do needed assignments.
30081 Add call to update setjmp buffer directly, not via EXPR_STMT.
30082 (maybe_variable): Argment GNAT_NODE deleted.
30083 * gigi.h (maybe_variable): Likewise.
30084 (make_transform, add_stmt_with_node, set_block_for_group): New.
30085 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
30086 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
30087 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
30088 (set_lineno, set_lineno_from_sloc): Likewise.
30089 (record_code_position, insert_code_for): Likewise.
30090 (gnat_poplevel): Now returns void.
30091 (end_subprog_body): Now takes argument.
30092 * misc.c (cgraph.h, tree-inline.h): New includes.
30093 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
30094 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
30095 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
30096 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
30097 (gnat_parse_file): Don't set immediate_size_expand.
30098 Call cgraph functions.
30099 (gnat_expand_expr): Remove most cases.
30100 (record_code_position, insert_code_for): Remove from here.
30101 * trans.c (toplev.h, tree-gimple.h): Now included.
30102 (discard_file_names): Deleted.
30103 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
30104 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
30105 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
30106 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
30107 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
30108 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
30109 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
30110 (set_block_for_group, add_stmt_list): Likewise.
30111 (start_stmt_group): Renamed from start_block_stmt.
30112 (end_stmt_group): Likewise, from end_block_stmt.
30113 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
30114 (gigi): Don't set discard_file_names or call set_lineno.
30115 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
30116 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
30117 Numerous changes throughout to reflect new names and complete
30118 function-at-a-time implementation.
30119 (gnat_expand_stmt): Delete or comment out all cases.
30120 (process_inlined_subprograms): Use add_stmt.
30121 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
30122 call set_lineno; also remove unneeded block handling.
30123 (process_type): Remove unneeded block handling.
30124 (build_unit_elab): Remove calls to deleted functions.
30125 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
30126 (tree-dump.h): Likewise.
30127 (struct ada_binding_level): Add field jmpbuf_decl.
30128 (gnat_define_builtin, gnat_install_builtins): New.
30129 (gnat_gimplify_function, gnat_finalize): Likewise.
30130 (gnat_poplevel): No longer return BLOCK, set it instead.
30131 Remove code dealing with nested functions.
30132 (gnat_init_decl_processing): Also set size_type_node.
30133 Call gnat_install_builtins.
30134 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
30135 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
30136 Remove special-case for "main".
30137 (end_subprog_body): Add arg and rework for tree-ssa.
30138 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
30139 Add case for BOOLEAN_TYPE.
30140 * utils2.c (rtl.h): Now include.
30141 (build_call_raise): Test Debug_Flag_NN directly.
30142 (build_call_alloc_dealloc): Don't use local stack allocation for now.
30143 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
30144 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
30146 2004-06-07 Robert Dewar <dewar@gnat.com>
30148 * a-direct.ads, einfo.ads: Minor comment updates
30150 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
30151 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30152 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
30153 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
30154 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
30156 * s-interr-sigaction.adb: Remove unreferenced variable
30157 (Attached_Interrupts). Minor reformatting.
30158 Avoid use of variable I (replace by J).
30160 * par-ch10.adb: Fix text of one error message
30162 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
30163 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
30164 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
30165 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
30166 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
30167 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
30168 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
30169 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
30170 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
30171 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
30172 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
30175 2004-06-07 Doug Rupp <rupp@gnat.com>
30177 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
30179 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
30181 * mlib-tgt-vms-ia64.adb: New file.
30183 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
30184 Add mlib-tgt-vms-ia64.adb
30185 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
30186 Move to alpha specific ifeq section.
30187 Add VMS specific versions of symbols.adb
30188 Renaming of 5q vms files.
30190 * 5qsystem.ads renamed to system-vms_64.ads.
30192 2004-06-07 Vincent Celier <celier@gnat.com>
30194 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
30195 explain that when a time of day corresponding to the non existing hour
30196 on the day switching to DST is specified, Split may return a different
30199 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
30202 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
30203 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
30205 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
30207 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
30208 the linking options.
30209 (Build_Library.Check_Libs): On VMS, if there is a dependency on
30210 g-trasym.ads, set Gtrasymobj_Needed to True.
30212 * prj-attr.adb: Add new package Metrics for gnatmetric
30214 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
30215 canonical case to take into account files with upper case characters on
30217 (Ada_Check): Load the reference symbol file name in the name buffer to
30218 check it, not the symbol file name.
30220 * snames.ads, snames.adb: Add standard name Metrics (name of project
30221 file package for gnatmetric).
30223 * vms_conv.ads: Add Metric to Comment_Type
30225 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
30227 * vms_data.ads: Add qualifiers for GNAT METRIC
30229 * makegpr.adb (Link_Executables): Take into account the switches
30230 specified in package Linker of the main project.
30232 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
30234 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
30235 the index of the last element is Units.Last, not Units.Table'Last
30236 (which is usually not a valid index within the actually allocated
30237 storage for the table).
30239 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
30240 determines whether to generate a call to a checked storage pool
30241 Dereference action.
30242 Generate such a call only for a dereference that either comes from
30243 source, or is the result of rewriting a dereference that comes from
30246 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
30248 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
30250 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
30252 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
30253 file level, elaborate the stride for inner dimensions in alignment
30256 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
30259 2004-06-07 Javier Miranda <miranda@gnat.com>
30261 * exp_ch6.adb: Correct wrong modification in previous patch
30263 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
30265 * g-trasym.ads: Corrected comment to properly reflect level of support
30268 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
30270 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
30271 includes case of a variable referenced on the left hand side of an
30272 assignment, therefore remove redundant code. Variables and prefixes of
30273 indexed or selected components are now marked as referenced on left
30274 hand side. Warnings are now properly emitted when variables or prefixes
30275 are assigned but not read.
30277 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
30278 left hand side referenced variables. Private access types do not
30279 produce the warning "variable ... is assigned but never read".
30280 Add also additional checks to left hand side referenced variables.
30281 Aliased, renamed objects and access types do not produce the warning
30282 "variable ... is assigned but never read" since other entities may read
30283 the memory location.
30285 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
30287 * Makefile.in: In the powerpc/vxworks-specific section, restore
30288 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
30291 2004-06-07 Ed Schonberg <schonberg@gnat.com>
30293 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
30294 predefined operators.
30295 Removes spurious type errors from g-trasym-vms.adb.
30297 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
30298 distinct from the operator appearing in the source, call appropriate
30299 routine to insert conversions when needed, and complete resolution of
30301 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
30302 interpretations for rewritten right operand.
30303 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
30304 the other operand is overloaded and the context is a type conversion.
30306 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30308 * ada-tree.def (BLOCK_STMT): Now has two operands.
30311 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
30313 * gigi.h: (gnat_poplevel): Now returns a tree.
30315 * trans.c (end_block_stmt): Add arg; all callers changed.
30316 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
30317 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
30318 (add_stmt): Set TREE_TYPE.
30319 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
30320 (gnat_expand_stmt, case BREAK_STMT): New case.
30322 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
30324 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
30326 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
30327 procedure Set_Stack_Size that is not needed.
30329 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
30331 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
30332 used for gnatpp input file and for the files upon which it depends
30334 2004-06-07 Ben Brosgol <brosgol@gnat.com>
30336 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
30338 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
30340 * gnatvsn.ads: Bump version numbers appropriately.
30341 Add new build type.
30343 2004-06-07 Pascal Obry <obry@gnat.com>
30345 * gnat_ugn.texi: Improve comments about imported names and link names
30346 on Windows. Add a note about the requirement to use -k gnatdll's option
30347 when working with a DLL which has stripped stdcall symbols (no @nn
30350 2004-05-27 Vincent Celier <celier@gnat.com>
30352 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
30353 COMMENTS_LAYOUT=UNTOUCHED
30355 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
30356 symbols-vms-alpha.adb
30358 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
30360 * sem.ads: Clarify documentation on checks suppression.
30362 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
30364 2004-05-27 Ed Schonberg <schonberg@gnat.com>
30366 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
30367 the case of multiple derivations.
30368 (Is_Object_Reference): For a selected component, verify that the prefix
30369 is itself an object and not a value.
30371 * sem_ch12.adb (Same_Instantiated_Constant): New name for
30372 Same_Instantiated_Entity.
30373 (Same_Instantiated_Variable): Subsidiary to
30374 Check_Formal_Package_Instance, to recognize actuals for in-out generic
30375 formals that are obtained from a previous formal package.
30376 (Instantiate_Subprogram_Body): Emit proper error when
30377 generating code and the proper body of a stub is missing.
30379 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
30380 has a universal interpretation, do the disambiguation here.
30382 * exp_ch4.adb (Expand_N_Type_Conversion,
30383 Expand_N_Unchecked_Type_Conversion): Special handling when target type
30384 is Address, to avoid typing anomalies when Address is a visible integer
30387 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
30388 to determine whether a subprogram should not be marked Pure, even when
30389 declared in a pure package.
30391 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
30393 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
30395 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
30396 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
30397 Update the documentation about the Ravenscar profile, following the
30398 definition found in AI-249.
30400 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
30401 setting the Profile (Ravenscar). This must be done in addition to
30402 setting the required restrictions.
30404 * rtsfind.ads: Add the set of operations defined in package
30407 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
30410 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
30412 lang-specs.h: Always require -c or -S and always redirect to /dev/null
30413 if -gnatc or -gnats is passed.
30415 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
30417 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
30418 a significant reference. Warnings are now properly emitted when a
30419 discriminated type is not referenced.
30421 * lib-xref.adb (Generate_Reference): A deferred constant completion,
30422 record representation clause or record type discriminant does not
30423 produce a reference to its corresponding entity. Warnings are now
30424 properly emitted when deferred constants and record types are not
30427 2004-05-27 Geert Bosch <bosch@gnat.com>
30429 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
30430 Fixes ACATS Annex G tests.
30432 2004-05-27 Robert Dewar <dewar@gnat.com>
30434 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
30437 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
30439 * s-interr.adb (Server_Task): Take into account case of early return
30440 from sigwait under e.g. linux.
30442 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
30444 * gnat_ugn.texi: Add description for the new gnatpp options:
30445 -rnb - replace the original source without creating its backup copy
30446 -c0 - do not format comments
30448 2004-05-24 Geert Bosch <bosch@gnat.com>
30450 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
30451 with 192 bits of precision, sufficient to reduce a double-extended
30452 arguments X with a maximum relative error of T'Machine_Epsilon, for X
30453 in -2.0**32 .. 2.0**32.
30454 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
30455 reduction by the processor, which only uses a 68-bit approximation of
30457 (Tan): Always reduce arguments and compute function either using
30458 the processor's fptan instruction, or by dividing sin and cos as needed.
30460 2004-05-24 Doug Rupp <rupp@gnat.com>
30462 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
30463 gcc error on 32/64 bit VMS.
30465 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
30467 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
30468 since this is what we get for stack overflows although not documented
30470 Document the issues which may require adjustments to our signal
30473 2004-05-24 Ed Schonberg <schonberg@gnat.com>
30475 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
30476 enclosing dynamic scope if the instantiation is within a generic unit.
30478 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
30480 * exp_dbug.ads: Fix typo.
30482 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
30483 Rename it to its proper name: system-linux-ia64.ads
30484 (stamp-gnatlib1): Remove extra target specific run time files when
30485 setting up the rts directory.
30487 2004-05-24 Javier Miranda <miranda@gnat.com>
30489 * einfo.ads, einfo.adb (Limited_Views): Removed.
30490 (Limited_View): New attribute that replaces the previous one. It is
30491 now a bona fide package with the limited-view list through the
30492 first_entity and first_private attributes.
30494 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
30495 limited-private-with clause.
30496 (Install_Limited_Withed_Unit): Install the private declarations of a
30497 limited-private-withed package. Update the installation of the shadow
30498 entities according to the new structure (see Build_Limited_Views)
30499 (Build_Limited_Views): Replace the previous implementation of the
30500 limited view by a package entity that references the first shadow
30501 entity plus the first shadow private entity (required for limited-
30502 private-with clause)
30503 (New_Internal_Shadow_Entity): Code cleanup.
30504 (Remove_Limited_With_Clause): Update the implementation to undo the
30505 new work carried out by Build_Limited_Views.
30506 (Build_Chain): Complete documentation.
30507 Replace Ada0Y by Ada 0Y in comments
30510 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
30511 types the level of accessibility depends on the enclosing type
30514 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
30515 entities. Complete documentation of previous change.
30517 2004-05-24 Robert Dewar <dewar@gnat.com>
30519 * namet.adb: Minor reformatting
30520 Avoid use of name I (replace by J)
30521 Minor code restructuring
30523 * sem_ch6.adb: Minor reformatting
30525 * lib-writ.adb: Do not set restriction as active if this is a
30526 Restriction_Warning case.
30528 * sem_prag.adb: Reset restriction warning flag if real pragma
30529 restriction encountered.
30531 * s-htable.adb: Minor reformatting
30532 Change rotate count to 3 in Hash (improves hash for small strings)
30534 * 5qsystem.ads: Add comments for type Address (no literals allowed).
30536 * gnat_ugn.texi: Add new section of documentation "Code Generation
30537 Control", which describes the use of -m switches.
30539 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
30541 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
30542 through the DECL_INITIAL for renamed variables.
30544 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
30546 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
30548 2004-05-19 Joel Brobecker <brobecker@gnat.com>
30550 * exp_dbug.ads: Correct comments concerning handling of overloading,
30551 since we no longer use $ anymore.
30553 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
30555 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
30556 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
30557 with illegal subunits.
30559 2004-05-19 Ed Schonberg <schonberg@gnat.com>
30561 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
30562 body with front-end inlining enabled, check whether an inline pragma
30563 appears immediately after the body and applies to it.
30565 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
30566 enabled and the pragma appears after the body of the subprogram.
30568 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30570 Part of function-at-a-time conversion
30572 * misc.c (adjust_decl_rtl): Deleted.
30573 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
30576 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
30577 (add_decl_stmt, add_stmt, block_has_vars): New functions.
30578 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
30580 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
30581 when making a decl.
30582 (gnat_to_gnu_entity): Likewise.
30583 Use add_stmt to update setjmp buffer.
30584 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
30586 No longer call adjust_decl_rtl.
30587 (DECL_INIT_BY_ASSIGN_P): New macro.
30588 (DECL_STMT_VAR): Likewise.
30590 * trans.c (gigi): Call start_block_stmt to make the outermost
30592 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
30593 Call start_block_stmt and end_block_stmt temporarily.
30594 Use gnat_expand_stmt instead of expand_expr_stmt.
30595 (add_decl_stmt): New function.
30596 (tree_transform): Call it.
30597 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
30598 (end_block_stmt): Set type and NULL_STMT.
30599 (gnat_expand_stmt): Make recursize call instead of calling
30601 (gnat_expand_stmt, case DECL_STMT): New case.
30602 (set_lineno_from_sloc): Do nothing if global.
30603 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
30604 (start_block_stmt, add_stmt, end_block_stmt): New functions.
30605 (build_block_stmt): Call them.
30606 (gnat_to_code): Don't expand NULL_STMT.
30607 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
30609 (tree_transform): Likewise.
30610 (tree_transform, case N_Null_Statement): Return NULL_STMT.
30611 (gnat_expand_stmt, case NULL_STMT): New case.
30612 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
30615 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
30618 * utils.c (create_var_decl): Do not call expand_decl or
30620 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
30621 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
30623 (struct e_stack): Add chain_next to GTY.
30624 (struct binding_level): Deleted.
30625 (struct ada_binding_level): New struct.
30626 (free_block_chain): New.
30627 (global_binding_level, clear_binding_level): Deleted.
30628 (global_bindings_p): Rework to see if no chain.
30629 (kept_level_p, set_block): Deleted.
30630 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
30631 new data structure and work directly on BLOCK node.
30632 (gnat_poplevel): Similarly.
30633 (get_decls): Look at BLOCK_VARS.
30634 (insert_block): Work directly on BLOCK node.
30635 (block_has_var): New function.
30636 (pushdecl): Rework for new binding structures.
30637 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
30639 (build_subprog_body): Likewise.
30640 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
30642 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
30644 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
30645 (DECL_STMT_VAR): Likewise.
30647 2004-05-17 Robert Dewar <dewar@gnat.com>
30649 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
30652 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
30653 of restriction synonyums by using
30654 Restrict.Process_Restriction_Synonyms.
30656 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
30658 * s-restri.ads (Tasking_Allowed): Correct missing comment
30660 * s-rident.ads: Add entries for restriction synonyms
30662 * ali.adb: Fix some problems with badly formatted ALI files that can
30663 result in infinite loops.
30665 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
30666 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
30667 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30668 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
30669 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
30670 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
30671 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
30672 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
30673 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
30674 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
30675 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
30676 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
30677 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
30678 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30679 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
30680 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
30681 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30682 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30683 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
30684 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
30685 to Task_Id (minor cleanup).
30687 2004-05-17 Vincent Celier <celier@gnat.com>
30689 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
30690 directory separator.
30692 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
30693 project being extended, if Languages is not declared in extending
30696 2004-05-17 Javier Miranda <miranda@gnat.com>
30698 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
30699 limited view of a visible sibling.
30701 2004-05-14 Robert Dewar <dewar@gnat.com>
30703 * gnat_ugn.texi: Minor change to -gnatS documentation
30705 * sprint.adb: Remove some instances of Assert (False) and for this
30706 purpose replace them by output of a ??? string.
30708 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
30711 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
30712 flag processing. This was suppressing required dependencies in
30713 No_Run_Time mode and is not needed since the binder does not generate
30714 references for things in libgnat anyway.
30716 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
30719 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
30721 * gnat_ugn.texi: Document AIX-specific issue with initialization of
30724 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
30725 action for the case of an actual parameter in an init proc call.
30727 2004-05-14 Ed Schonberg <schonberg@gnat.com>
30729 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
30730 subtype, check visible entities in base type.
30732 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
30733 actions if the object is a renaming.
30735 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
30736 Check_Formal_Package_Instance, to determine more precisely when the
30737 formal and the actual denote the same entity.
30739 2004-05-14 Javier Miranda <miranda@gnat.com>
30741 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
30743 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
30744 corresponding to a private_with must be removed from visibility; it
30745 will be made visible later, just before we analyze the private part of
30747 (Check_Private_Child_Unit): Allow private_with clauses in public
30749 (Install_Siblings): Make visible the private entities of private-withed
30751 (Install_Withed_Unit): Do not install the private withed unit if we
30752 are compiling a package declaration and the Private_With_OK flag was
30753 not set by the caller. These declarations will be installed later,
30754 just before we analyze the private part of the package.
30756 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
30757 during the evaluation of the expression that initializes the object,
30758 decorate it with the expected type to avoid cascade errors.
30761 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
30762 subprogram we have to install the private_with clauses after its
30763 specification has been analyzed (as documented in AI-262.TXT).
30765 * sem_ch8.adb (Has_Private_With): New function. Determines if the
30766 current compilation unit has a private with on a given entity.
30767 (Find_Direct_Name): Detect the Beaujolais problem described in
30770 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
30771 provides the functionality of the function Is_Ancestor that was
30772 previously available in sem_ch10. It has been renamed to avoid
30775 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
30777 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30779 * utils.c (build_vms_descriptor): Use SImode pointers.
30781 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
30783 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
30785 2004-05-14 GNAT Script <nobody@gnat.com>
30787 * Make-lang.in: Makefile automatically updated
30789 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
30791 Renaming of target specific files for clarity
30793 * Makefile.in: Rename GNAT target specific files.
30795 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
30796 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
30797 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
30798 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
30799 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
30800 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
30801 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
30802 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
30803 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
30804 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
30805 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
30806 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
30807 51osinte.adb, 51osinte.ads, 51system.ads,
30808 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
30809 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
30810 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
30811 56tpopsp.adb, 57system.ads, 58system.ads,
30812 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
30813 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
30814 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
30815 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
30816 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
30817 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
30818 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
30819 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
30820 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
30821 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
30822 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
30823 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
30824 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
30825 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
30826 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
30827 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
30828 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
30829 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
30830 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
30831 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
30832 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
30833 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
30834 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
30835 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
30836 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
30837 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
30838 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
30839 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
30840 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
30841 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
30842 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
30843 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
30844 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
30845 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
30846 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
30847 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
30848 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
30849 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
30850 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
30851 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
30853 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
30854 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
30855 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
30856 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
30857 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
30858 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
30859 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
30860 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
30861 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
30862 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
30863 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
30864 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
30865 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
30866 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
30867 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
30868 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
30869 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
30870 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
30871 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
30872 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
30873 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
30874 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
30875 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
30876 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
30877 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
30878 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
30879 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
30880 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
30881 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
30882 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
30883 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
30884 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
30885 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
30886 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
30887 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
30888 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
30889 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
30890 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
30891 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
30892 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
30893 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
30894 s-osinte-vms.ads, s-osinte-vxworks.adb,
30895 s-osinte-vxworks.ads, s-osprim-mingw.adb,
30896 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
30897 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
30898 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
30899 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
30900 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
30901 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
30902 s-stchop-vxworks.adb, s-taprop-dummy.adb,
30903 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
30904 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
30905 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
30906 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
30907 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
30908 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
30909 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
30910 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
30911 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
30912 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
30913 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
30914 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
30915 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
30916 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
30917 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
30918 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
30919 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
30920 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
30921 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
30922 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
30923 system-irix-o32.ads, system-linux-x86_64.ads,
30924 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30925 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
30926 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
30927 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
30928 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
30929 system-vxworks-mips.ads, system-vxworks-ppc.ads,
30930 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
30933 2004-05-13 Zack Weinberg <zack@codesourcery.com>
30935 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
30937 2004-05-13 Diego Novillo <dnovillo@redhat.com>
30939 Merge from tree-ssa-20020619-branch.
30941 * config-lang.in (boot_language, build_by_default): Set
30943 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
30944 (max_size): Add static chain op for call_expr.
30946 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
30949 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
30951 2004-05-11 Roger Sayle <roger@eyesopen.com>
30953 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
30956 2004-05-10 Doug Rupp <rupp@gnat.com>
30958 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
30961 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
30963 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
30965 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
30966 Fixes undefined symbols in IA64 gnatlib.
30968 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
30970 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
30971 Short_Address). This will be moved to system.auxdec.
30973 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
30975 * sem_util.adb: Replace test for presence of a node that is always
30976 present with a call to Discard_Node.
30978 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
30979 Analyze on the library unit node after generation of distribution stub
30980 constructs. The call was a no-op because Unit_Node has already been
30981 Analyzed, and the tree fragments for the distribution stubs are
30982 analyzed as they are inserted in Exp_Dist.
30983 Update comment regarding to distribution stubs to reflect that we
30984 do not generate stub in separate files anymore.
30986 * einfo.ads: Clarify the fact that a tagged private type has the
30987 E_Record_Type_With_Private Ekind.
30989 * erroutc.adb: Minor reformatting
30991 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
30992 values if line length is increased using -gnatyM (noticed during code
30995 * eval_fat.adb: Minor reformatting
30996 Put spaces around exponentiation operator
30998 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31001 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
31002 has been rewritten as an explicit dereference, retrieve type of
31003 original node to check for possibly unconstrained record type.
31005 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31007 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
31008 overriding, use the operation of the parent unconditionally.
31010 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
31011 operation when either operand is a literal, to avoid further
31014 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
31015 overridden by a previous explicit declaration, mark the previous entity
31018 * sem_disp.adb (Check_Dispatching_Operation): New predicate
31019 Is_Visibly_Controlled, to determine whether a declaration of a
31020 primitive control operation for a derived type overrides an inherited
31021 one. Add warning if the explicit declaration does not override.
31023 2004-05-10 Vincent Celier <celier@gnat.com>
31025 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
31026 some cases when the sources are no longer present.
31028 * make.adb (Collect_Arguments): Fail if an external source, not part
31029 of any project need to be compiled, when switch -x has not been
31032 * makeusg.adb: Document new switch -x
31034 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
31035 defaulted to False.
31037 * switch-m.adb (Scan_Make_Switches): New switch -x
31039 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
31040 gnatmake switch -x.
31042 * gnat_ugn.texi: Document new gnatmake switch -x
31044 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
31046 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
31048 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
31049 (process_attributes): Likewise.
31051 2004-05-10 Joel Brobecker <brobecker@gnat.com>
31053 * s-inmaop.ads: Fix spelling mistake in one of the comments.
31055 2004-05-10 Robert Dewar <dewar@gnat.com>
31057 * gnat_ugn.texi: Document that for config pragma files, the maximum
31058 line length is always 32767.
31060 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
31061 literals is now allowed.
31063 * gnat-style.texi: Remove statement about splitting long lines before
31064 an operator rather than after, since we do not follow this rule at all.
31065 Clarify rule (really lack of rule) for spaces around exponentiation
31067 * sem_elim.adb: Allow concatenation of string literals as well as a
31068 single string literal for pragma arguments.
31070 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
31072 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
31073 written for append case.
31075 * frontend.adb: Changes to avoid checking max line length in config
31078 * g-os_lib.ads: Minor reformatting
31080 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
31081 wrong in any case. Instead use standard value. Noticed during code
31084 * opt.ads (Max_Line_Length): New field, used to implement removal of
31085 limitation on length of lines when scanning config pragma files.
31087 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
31088 makeutl.ads, makeutl.adb: Minor reformatting
31090 * scn.adb: Do not check line length while scanning config pragma files
31091 Do not check line length while scanning out license information
31093 * scng.adb: Changes to avoid line length checks while parsing config
31096 2004-05-10 GNAT Script <nobody@gnat.com>
31098 * Make-lang.in: Makefile automatically updated
31100 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
31102 * osint.adb (Find_Program_Name): Fix handling of VMS version
31105 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
31107 * g-os_lib.ads (Invalid_Time): New constant
31109 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
31110 return OS_Time instead of time_t to match what is imported by Ada.
31111 Now return -1 if the file doesn't exist, instead of a random value
31113 2004-05-05 Robert Dewar <dewar@gnat.com>
31115 * usage.adb: Add line for -gnatR?s switch
31117 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
31119 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
31120 and for Match (Data_First, Data_last)
31122 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
31123 written when we are dealing with multi-unit files.
31125 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
31127 * Makefile.in: Remove unused targets and variables.
31129 2004-05-05 Vincent Celier <celier@gnat.com>
31131 * switch-m.adb: New gnatmake switch -eI
31133 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
31134 of new gnatmake switch -eInnn.
31136 * makegpr.adb: Take into account new parameters Index and Src_Index in
31139 * clean.adb: Implement support for multi-unit sources, including new
31142 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
31145 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
31146 (Extract_From_Q): New out parameter Index
31147 (Mark, Is_Marked): Subprograms moved to Makeutl
31148 (Switches_Of): New parameter Source_Index
31149 (Add_Switch): New parameter Index
31150 (Check): New parameter Source_Index
31151 (Collect_Arguments): New parameter Source_Index
31152 (Collect_Arguments_And_Compile): New parameter Source_Index
31153 (Compile): New parameter Source_Index
31154 Put subprograms in alphabetical order
31155 Add support for multi-source sources, including in project files.
31157 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
31158 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
31161 * makeusg.adb: New gnatmake switch -eInnn
31163 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
31166 * opt.ads (Main_Index): New variable, defaulted to 0.
31168 * osint.ads, osinte.adb (Add_File): New parameter Index
31169 (Current_Source_Index): New function
31171 * prj.adb: Take into account new components Index and Src_Index
31173 * prj.ads (String_Element): New component Index
31174 (Variable_Value): New component Index
31175 (Array_Element): New component Src_Index
31177 * prj-attr.adb: Indicate that optional index may be specified for
31178 attributes Main, Executable, Spec, Body and some of Switches.
31180 * prj-attr.ads (Attribute_Kind): New values for optional indexes
31181 (Attribute_Record): New component Optional_Index
31183 * prj-com.ads (File_Name_Data): New component Index
31185 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
31187 * prj-env.adb (Put): Output optional index
31189 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
31190 attributes Spec and Body.
31192 * prj-nmsc.adb: Process optional indexes
31194 * prj-pp.adb: Ouput "at" for optional indexes
31196 * prj-proc.adb: Take into account optional indexes
31198 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
31199 Optional_Index. For string literal,
31200 process optional index when Optional_Index is True.
31201 (Parse_Expresion): New Boolean parameter Optional_Index
31203 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
31204 (Set_Source_Index_Of): New procedure
31206 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
31209 * prj-util.ads (Executable_Of): New parameter Index
31210 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
31211 New parameter Src_Index, defaulted to 0.
31213 2004-05-05 Ed Schonberg <schonberg@gnat.com>
31216 * sem_ch3.adb (Access_Definition): If this is an access parameter
31217 whose designated type is imported through a limited_with clause, do
31218 not add the enclosing subprogram to the list of private dependents of
31221 2004-05-05 Ed Schonberg <schonberg@gnat.com>
31224 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
31225 a limited_with clause, and the other is its non-limited view.
31227 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
31229 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
31231 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
31232 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
31233 Stand.Boolean_Literals to produce references to entities
31234 Standard_False and Standard_True from compile-time computed boolean
31237 * stand.ads (Boolean_Literals): New variable, provides the entity
31238 values for False and True, for use by the expander.
31240 2004-05-05 Doug Rupp <rupp@gnat.com>
31242 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
31243 5vinmaop.adb: Unchecked convert Short_Address vice Address
31245 * adaint.c, raise.c: Caste CRTL function return value
31246 to avoid gcc error on 32/64 bit IVMS.
31248 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
31251 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
31253 * 5qsystem.ads (Address): Declare as Long_Integer
31254 (Short_Address): Declare as 32 bit subtype of Address
31255 Declare abstract address operations to avoid gratuitous ambiguities.
31257 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
31259 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
31260 instead of the old Boolean_Entry_Barriers.
31261 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
31263 2004-05-05 GNAT Script <nobody@gnat.com>
31265 * Make-lang.in: Makefile automatically updated
31267 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
31269 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
31271 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
31274 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
31275 alone. Replacing object references by literals is inappropriate in a
31276 so low level context.
31278 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
31280 * a-exexpr.adb: Add comments
31282 2004-05-03 Joel Brobecker <brobecker@gnat.com>
31284 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
31285 declare the Ancestor_Tags array in Type_Specific_Data with a small size
31286 without risking a bounds check error when accessing one of its
31288 (Type_Specific_Data): Define Ancestor_Tags as a small array.
31289 This prevents us from hitting a limitation during the debug info
31290 generation when using stabs.
31292 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
31294 This prevents us from hitting a limitation during the debug info
31295 generation when using stabs.
31297 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
31299 lang-specs.h: Remove -gnatz* from specs.
31301 2004-05-03 Vincent Celier <celier@gnat.com>
31303 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
31305 * Make-lang.in, Makefile.in: Add gprmake
31307 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
31309 * sem_aggr.adb: Fix typo in comment.
31311 2004-05-03 Robert Dewar <dewar@gnat.com>
31313 * make.adb: Minor reformatting
31315 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
31317 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
31318 so that it works when address is not a private type.
31320 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
31321 properly with rewritten unchecked conversions. This prevents
31322 order-of-elaboration issues that can otherwise arise.
31323 (Minimum_Size): Don't check size of access types under VMS
31325 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
31326 interpretations of integer literals as type System.Address.
31328 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
31329 (Is_Descendent_Of): New function
31331 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
31333 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31334 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
31335 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
31337 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
31338 of the old Max_Entry_Queue_Depth.
31340 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31341 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
31342 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
31344 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
31345 New entry for proper handling of Max_Entry_Queue_Depth.
31346 New entry for proper handling of No_Dynamic_Interrupts.
31348 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
31349 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31350 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
31351 the GNAT specific restriction Max_Entry_Queue_Depth.
31352 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
31353 the GNAT specific restriction No_Dynamic_Interrupts.
31355 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
31356 instead of the old Boolean_Entry_Barriers.
31357 Use the new restriction No_Dynamic_Attachment instead of the old
31358 No_Dynamic_Interrupts.
31360 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
31361 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31363 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
31364 of the old Max_Entry_Queue_Depth.
31366 2004-05-03 GNAT Script <nobody@gnat.com>
31368 * Make-lang.in: Makefile automatically updated
31370 2004-04-29 Ed Schonberg <schonberg@gnat.com>
31372 * checks.adb (Enable_Range_Check): If the prefix of an index component
31373 is an access to an unconstrained array, perform check unconditionally.
31375 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31377 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
31380 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
31382 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
31383 alternate stack setting. There was no support for the tasking cases
31384 and the changes eventually caused a number of side-effect failures in
31385 the non-tasking case too.
31387 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
31389 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
31392 2004-04-29 Vincent Celier <celier@gnat.com>
31394 * make.adb (Gnatmake): Increase max size of argument array for
31395 gnatbind for the potential addition of -F.
31396 If there are Stand-Alone Library projects, invoke gnatbind with -F to
31397 be sure that elaboration flags will be checked.
31399 * switch-c.adb: Correct call to Scan_Pos for -gnateI
31401 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
31403 * sem_warn.adb (Check_References): Move '<access-variable> may be
31404 null' warning out of under Warn_On_No_Value_Assigned.
31406 2004-04-29 Ed Falis <falis@gnat.com>
31408 * gnat_ugn.texi: Fixed texi error
31410 2004-04-29 Robert Dewar <dewar@gnat.com>
31412 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
31413 abstract operations if they come from predefined files.
31415 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
31418 * s-addope.adb: Correct obvious error in mod function
31420 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
31422 * Makefile.in: Add target pairs for powerpc darwin*
31425 * a-intnam-darwin.ads, s-osinte-darwin.adb,
31426 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
31428 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
31430 * Makefile.in: Add target macro definitions for s390*-linux*.
31431 * system-linux-s390.ads: New file.
31432 * system-linux-s390x.ads: New file.
31434 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
31436 * gnat_ugn.texi: Correct argument to @setfilename.
31438 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
31440 * a-exexpr.adb (Unwind_Word): New data type.
31441 (Unwind_Exception): Use it as type of Private1 and Private2.
31443 * raise.c (db_action_for): Fix debug printf.
31445 2004-04-27 Ed Schonberg <schonberg@gnat.com>
31447 * a-wtmoio.ads: Formal type must be a modular type, not a signed
31450 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31452 * decl.c (gnat_to_gnu_entity, case object): Call
31453 __builtin_update_setjmp_buf.
31455 * gigi.h (update_setjmp_buf): Deleted.
31456 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
31458 * misc.c: (update_setjmp_buf): Deleted.
31460 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
31461 around block of RTL.
31463 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
31465 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
31467 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
31468 subprogram for which no pragma All_Calls_Remote applies, store the
31469 address of the real subprogram in the underlying record type, so local
31470 dereferences do not go through the PCS.
31472 2004-04-26 Robert Dewar <dewar@gnat.com>
31474 * i-c.ads: Add some type qualifications to avoid ambiguities when
31475 compiling with s-auxdec.ads and a non-private address type.
31477 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
31479 * Makefile.rtl: Fix error in previous check-in:
31480 Add s-addope.o to non tasking object list (rather than tasking object
31483 2004-04-26 Javier Miranda <miranda@gnat.com>
31485 * sem_aggr.adb: Fix typo in comments
31486 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
31487 Required to check the null-exclusion attribute.
31489 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
31490 case of anonymous access types in record and array components. For a
31491 component definition the level is the same of the enclosing composite
31494 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
31495 that are anonymous access types the level of accessibility depends on
31496 the enclosing type declaration. In order to have this information, set
31497 the scope of the anonymous access type to the enclosing record type
31499 (Array_Type_Declaration): In case of components that are anonymous
31500 access types the level of accessibility depends on the enclosing type
31501 declaration. In order to have this information, set the scope of the
31502 anonymous access type to the enclosing array type declaration.
31504 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
31507 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
31508 renaming of anonymous access-to-constant types allowed if and only if
31509 the renamed object is access-to-constant.
31511 * sem_util.adb (Type_Access_Level): In case of anonymous access types
31512 that are component_definition or discriminants of a nonlimited type,
31513 the level is the same as that of the enclosing component type.
31515 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
31517 * sem_elim.adb: Some minor code reorganization from code reading. Fix
31518 misprint in the function name (File_Name_Match).
31520 2004-04-23 Laurent Guerby <laurent@guerby.net>
31522 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
31525 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31527 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
31529 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
31531 * adaint.c (__gnat_try_lock): No longer requires that the parent
31532 directory be writable, the directory itself is enough.
31533 (gnat_is_absolute_path): Change profile, so that the call from
31534 GNAT.OS_Lib can be made more efficient.
31536 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
31537 from GNAT.OS_Lib can be made more efficient.
31539 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
31540 one copy of the file name. Found by code reading.
31542 2004-04-23 Vincent Celier <celier@gnat.com>
31544 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
31545 Correct documentation on gnatmake switches transmitted to the compiler
31547 * ali.ads: Minor comment fix
31549 2004-04-23 Javier Miranda <miranda@gnat.com>
31551 * sem_ch6.adb: (Confirming Types): Code cleanup
31553 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
31554 subprogram types: E_Anonymous_Access_Subprogram_Type and
31555 E_Anonymous_Access_Protected_Subprogram_Type.
31557 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
31559 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31560 whether a pragma All_Calls_Remote applies to the subprogram on which
31562 No functional change is introduced by this revision; the new parameter
31563 will be used to allow calls to local RCI subprograms to be optimized
31564 to not use the PCS in the case where no pragma All_Calls_Remote applies,
31565 as is already done in the PolyORB implementation of the DSA.
31567 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31568 whether a pragma All_Calls_Remote applies to the subprogram on which
31570 No functional change is introduced by this revision; the new parameter
31571 will be used to allow calls to local RCI subprograms to be optimized
31572 to not use the PCS in the case where no pragma All_Calls_Remote applies,
31573 as is already done in the PolyORB implementation of the DSA.
31575 2004-04-23 Robert Dewar <dewar@gnat.com>
31577 * Makefile.rtl: Add entry for s-addope.o in run time library list
31578 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
31579 * s-addope.ads, s-addope.adb: New files.
31581 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
31582 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
31583 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
31584 System.Address to be non-private and signed.
31586 * sem_elim.adb: Minor reformatting (fairly extensive)
31587 Some minor code reorganization from code reading
31588 Add a couple of ??? comments
31590 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31592 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
31593 (tree_transform, case N_If_Statement): Remove non-determinism.
31595 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
31597 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
31599 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
31600 Eliminate' section.
31602 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
31603 no longer used as a parameter name for Eliminate pragma).
31605 2004-04-22 Laurent Guerby <laurent@guerby.net>
31607 PR optimization/14984
31608 PR optimization/14985
31609 * trans.c (gigi): Fix non determinism leading to bootstrap
31610 comparison failures.
31612 2004-04-21 Pascal Obry <obry@gnat.com>
31614 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
31615 passed to spawnvp() to properly handle program pathname with spaces on
31618 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
31620 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
31621 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
31622 unlocked in case of exceptions.
31624 2004-04-21 Joel Brobecker <brobecker@gnat.com>
31626 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
31627 This function does not exist anymore.
31629 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
31631 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
31633 * link.c: Move variables to the __gnat name space.
31635 * Makefile.in: list link.o explicitly when needed.
31637 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
31639 2004-04-21 Javier Miranda <miranda@gnat.com>
31641 * einfo.adb (Original_Access_Type): New subprogram
31642 (Set_Original_Access_Type): New subprogram
31643 (Write_Field21_Name): Write the name of the new field
31645 * einfo.ads (Original_Access_Type): New field present in access to
31647 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
31648 E_Anonymous_Access_Protected_Subprogram_Type.
31650 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
31653 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
31654 to anonymous access to subprogram types.
31656 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
31657 to subprogram types.
31659 * sem_ch3.adb (Access_Definition): Complete decoration of entities
31660 corresponding to anonymous access to subprogram types.
31661 (Analyze_Component_Declaration): Add new actual to the call to
31662 subprogram replace_anonymous_access_to_protected_subprogram.
31663 (Array_Type_Declaration): Add new actual to the call to subprogram
31664 replace_anonymous_access_to_protected_subprogram.
31665 (Process_Discriminants): Add new actual to the call to subprogram
31666 replace_anonymous_access_to_protected_subprogram.
31667 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
31669 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31672 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
31673 access to subprogram types.
31675 * sem_util.adb (Has_Declarations): Addition of package_specification
31678 2004-04-21 Ed Schonberg <schonberg@gnat.com>
31680 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
31681 inlined flags to renamed entity only if in current unit.
31683 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
31685 * s-parint.ads: Add DSA implementation marker.
31687 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
31688 value of System.Partition_Interface.DSA_Implementation to determine
31689 what version of the distributed systems annex is available (no
31690 implementation, GLADE, or PolyORB).
31692 2004-04-21 Joel Brobecker <brobecker@gnat.com>
31694 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
31696 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31698 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
31699 with new type if alias sets differ.
31700 Fixes ACATS c41103b.
31702 2004-04-21 Vincent Celier <celier@gnat.com>
31704 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
31705 Add array Lang_Args for the language specific compiling argument
31708 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
31710 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
31712 * gnat_rm.texi: Update the descripton of the Eliminate pragma
31713 according to the recent changes in the format of the parameters of the
31714 pragma (replacing Homonym_Number with Source_Location).
31716 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
31718 * 5isystem.ads: Removed, unused.
31720 * gnat_rm.texi: Redo 1.13 change.
31722 2004-04-19 Robert Dewar <dewar@gnat.com>
31724 * s-stoele.ads: Clean up definition of Storage_Offset (the new
31725 definition is cleaner, avoids the kludge of explicit Standard operator
31726 references, and also is consistent with a visible System.Address with
31727 no visible operations.
31729 * s-geveop.adb: Add declarations to avoid assumption of visible
31730 operations on type System.Address (since these might not be available
31731 if Address is a non-private type for which the operations
31732 are made abstract).
31734 * sem_eval.adb: Minor reformatting
31736 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
31737 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
31738 reformatting (new function spec format).
31740 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
31741 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
31742 s-caun64.adb: Add declarations to avoid assumption of visible
31743 operations on type System.Address (since these might not be available
31744 if Address is a non-private type for which the operations are made
31747 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
31749 * exp_intr.adb: Minor comment update
31751 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
31753 * 5omastop.adb: Add declarations to avoid assumption of visible
31754 operations on type System.Address (since these might not be available
31755 if Address is a non-private type for which the operations
31756 are made abstract).
31758 2004-04-19 Vincent Celier <celier@gnat.com>
31760 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
31762 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
31765 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
31767 Call Check with Process_Languages.
31768 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
31769 with Process_Languages.
31770 (Recursive_Check): New Boolean parameter Process_Languages. Call
31771 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
31774 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
31776 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
31777 parameter Ada_Main, defaulted to True.
31778 Check for Ada specific characteristics only when Ada_Main is True.
31780 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
31782 * prj.adb: (Project_Empty): Add new Project_Data components.
31784 * prj.ads: New types and tables for non Ada languages.
31785 (Project_Data): New components Languages, Impl_Suffixes,
31786 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
31787 Include_Path, Include_Data_Set.
31789 * prj-env.ads, prj-env.adb: Minor reformatting
31791 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
31792 Put subprograms in alphabetical order
31794 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
31795 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
31798 * mlib-prj.adb: Back out modification in last version, as they are
31800 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
31802 * make.adb: (Mains): Moved to package Makeutl
31803 (Linker_Opts): Moved to package Makeutl
31804 (Is_External_Assignment): Moved to package Makeutl
31805 (Test_If_Relative_Path): Moved to package Makeutl
31806 (Gnatmake): Move sorting of linker options to function
31807 Makeutl.Linker_Options_Switches.
31809 * makeutl.ads, makeutl.adb: New files.
31811 * Makefile.in: Add makeutl.o to the object files for gnatmake
31813 * makeusg.adb: Add line for new switch -eL.
31815 * gnatls.adb (Image): New function.
31816 (Output_Unit): If in verbose mode, output the list of restrictions
31817 specified by pragmas Restrictions.
31819 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
31822 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
31823 needed, to put it in the range 1970 (included) - 2026 (excluded).
31824 (Time_Of): Do not shift Unix_Min_Year (1970).
31825 Shift the date by multiple of 56 years, if needed, to put it in the
31826 range 1970 (included) - 2026 (excluded).
31828 * adaint.h, adaint.c (__gnat_set_executable): New function.
31830 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31832 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
31833 and pop GC context.
31834 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
31835 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
31836 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
31837 (tree_transform, case N_Code_Statement): Likewise.
31838 (gnat_expand_stmt, case LABEL_STMT): Don't look at
31839 LABEL_STMT_FIRST_IN_EH.
31840 (gnat_expand_stmt, case ASM_STMT): New case.
31842 * utils2.c (build_unary_op): Properly set TREE_READONLY of
31843 UNCONSTRAINED_ARRAY_REF.
31845 * utils.c (poplevel): Temporarily push/pop GC context around inline
31846 function expansion.
31848 * decl.c (maybe_variable): Properly set TREE_READONLY of
31849 UNCONSTRAINED_ARRAY_REF.
31850 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
31852 * ada-tree.def: (ASM_STMT): New.
31854 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
31855 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
31856 ASM_STMT_INPUT): New.
31857 (ASM_STMT_CLOBBER): Likewise.
31859 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
31861 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
31862 general rcheck mechanism to raise Program_Error for E.4(18), instead
31863 of a custom raiser in System.Partition_Interface.
31864 Part of general cleanup work before PolyORB integration.
31866 * snames.ads, snames.adb: Add new runtime library entities and names
31869 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
31871 (Build_Subprogram_Id): New subprogram provided by exp_dist
31872 Code reorganisation in preparation for PolyORB integration.
31874 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
31876 (Build_Subprogram_Id): New subprogram provided by exp_dist
31878 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
31879 actual parameter types for call to dereference of an
31880 access-to-subprogram type.
31882 * rtsfind.ads: Add new runtime library entities and names for PolyORB
31885 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
31886 instead, which has the same behaviour here since we never pass it a
31889 * link.c (run_path_option, Solaris case): Use -Wl, as for other
31892 * Makefile.in: adjust object file lists for gnatlink and gnatmake
31893 to account for new dependency upon Interfaces.C.Strings + link.o
31894 For x86 FreeBSD, use 86numaux.
31896 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
31897 from Mlib.Tgt to Mlib.
31899 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
31900 target-independent.
31902 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
31903 target-specific versions of this subprogram, now implemented as a
31904 target-independent function in Mlib.
31906 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
31907 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
31908 (Linker_Library_Path_Option): Remove target-specific versions of this
31909 subprogram, now implemented as a target-independent function in Mlib.
31911 * atree.adb: (Allocate_Initialize_Node): New subprogram.
31912 Factors out node table slots allocation.
31913 (Fix_Parents): New subprogram.
31914 Encapsulate the pattern of fixing up parent pointers for syntactic
31915 children of a rewritten node.
31916 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
31917 (Rewrite): Use New_Copy when creating saved copy of original node.
31918 (Replace): Use Copy_Node to copy nodes.
31920 2004-04-19 Javier Miranda <miranda@gnat.com>
31922 * sprint.adb (Sprint_Node_Actual): Give support to the new
31923 Access_To_Subprogram node available in Access_Definition nodes. In
31924 addition, give support to the AI-231 node fields: null-exclusion,
31925 all-present, constant-present.
31927 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
31929 * sinfo.ads, sinfo.adb:
31930 New field Access_To_Subprogram_Definition in Access_Definition nodes
31932 * sem_ch6.adb (Process_Formals): Move here the code that creates and
31933 decorates internal subtype declaration corresponding to the
31934 null-excluding formal. This code was previously in Set_Actual_Subtypes.
31935 In addition, carry out some code cleanup on this code. In case of
31936 access to protected subprogram call
31937 Replace_Anonymous_Access_To_Protected_Subprogram.
31938 (Set_Actual_Subtypes): Code cleanup.
31940 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
31941 Find_Type in case of anonymous access renamings. Add warning in case of
31942 null-excluding attribute used in anonymous access renaming.
31944 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31947 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
31949 (Access_Definition): In case of anonymous access to subprograms call
31950 the corresponding semantic routine to decorate the node.
31951 (Access_Subprogram_Declaration): Addition of some comments indicating
31952 some code that probably should be added here. Detected by comparison
31953 with the access_definition subprogram.
31954 (Analyze_Component_Declaration): In case of access to protected
31955 subprogram call Replace_Anonymous_Access_To_Protected.
31956 (Array_Type_Declaration): In case of access to protected subprogram call
31957 Replace_Anonymous_Access_To_Protected_Subprogram.
31958 (Process_Discriminants): In case of access to protected subprogram call
31959 Replace_Anonymous_Access_To_Protected_Subprogram.
31961 * par.adb (P_Access_Definition): New formal that indicates if the
31962 null-exclusion part was present.
31963 (P_Access_Type_Definition): New formal that indicates if the caller has
31964 already parsed the null-excluding part.
31966 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
31967 (P_Identifier_Declarations): Code cleanup and give support to renamings
31968 of anonymous access to subprogram types.
31969 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
31970 (P_Array_Type_Definition): Give support to AI-254.
31971 (P_Component_Items): Give support to AI-254.
31972 (P_Access_Definition): New formal that indicates if the header was
31973 already parsed by the caller.
31974 (P_Access_Type_Definition): New formal that indicates if the caller has
31975 already parsed the null-excluding part.
31977 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
31978 call to P_Access_Definition.
31980 2004-04-19 Geert Bosch <bosch@gnat.com>
31982 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
31983 the delicate semantics of floating-point to integer conversion.
31984 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
31986 * eval_fat.adb (Machine_Mantissa): Moved to spec.
31987 (Machine_Radix): New function.
31989 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
31991 (Machine_Radix): New function also for use in conversion checks.
31993 2004-04-19 Ed Schonberg <schonberg@gnat.com>
31995 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
31997 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
31998 to decorate the access-to-protected subprogram and the equivalent type.
32000 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
32001 to anonymous access to subprogram types.
32003 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
32004 constant-folding, for legality checks in contexts that require an RM
32007 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
32008 temporary but stack checking is not enabled, increment serial number
32009 to so that symbol generation is consistent with and without stack
32012 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
32013 independent on whether stack checking is enabled, caller must check
32014 the corresponding flag.
32016 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
32018 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
32019 parent if it has discriminants.
32020 (Build_Derived_Private_Type): Constructed full view does
32021 not come from source.
32022 (Process_Discriminants): Default discriminants on a tagged type are
32023 legal if this is the internal completion of a private untagged
32026 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
32027 no constraint checks, because it corresponds to an existing object.
32029 * sem_prag.adb (Process_Convention): Pragma applies
32030 only to subprograms in the same declarative part, i.e. the same unit,
32031 not the same scope.
32033 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
32034 ignore type mismatch on a numeric conversion if expression comes from
32037 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
32039 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
32040 Homonym_Number parameter, add processing for Source_Location parameter
32042 (Check_Eliminated): Remove the check for homonym numbers, add the check
32043 for source location traces.
32045 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
32046 with Arg_Source_Location corresponding to the changes in the format of
32049 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
32050 Eliminate pragma corresponding to the changes in the format of the
32051 pragma: Homonym_Number is replaced with Source_Location, two ways of
32052 distinguishing homonyms are mutially-exclusive.
32054 2004-04-19 Joel Brobecker <brobecker@gnat.com>
32056 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
32058 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
32059 No_Dollar_In_Label, no longer necessary, as it is always True.
32060 (Strip_Suffixes): Likewise.
32062 2004-04-19 Gary Dismukes <dismukes@gnat.com>
32064 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
32065 modulus for compatibility with size clause on targets with 16-bit
32068 * layout.adb (Discrimify): In the case of private types, set Vtyp to
32069 full type to fix type mismatches on calls to size functions for
32070 discriminant-dependent array components.
32072 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
32074 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
32077 2004-04-19 Pascal Obry <obry@gnat.com>
32079 * mdll-utl.adb (Locate): New version is idempotent.
32081 2004-04-17 Laurent Guerby <laurent@guerby.net>
32083 PR ada/14988 (partial)
32084 * impunit.adb: Fix typo.
32086 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
32088 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
32089 and install-rts-cert targets. Remove all gnatlib and gnattools
32090 targets and all other rts-* targets (moved to libada). Remove (now)
32091 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
32092 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
32094 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32096 * trans.c (tree_transform): Shortcut returning error_mark_node for
32097 statements in annotate_only_mode.
32098 (tree_transform, case N_Label, case N_Return_Statement,
32099 N_Goto_Statement): Make statement tree instead of generating code.
32100 (tree_transform, case N_Assignment_Statement): No longer check
32101 type_annotate_only.
32102 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
32104 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
32106 (gnat_to_gnu): Collect any RTL generated and deal with it.
32107 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
32108 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
32109 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
32111 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
32113 * ada-tree.def (EXPR_STMT): Fix typo in name.
32114 (BLOCK_STMT, IF_STMT): New nodes.
32116 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
32117 LABEL_STMT_FIRST_IN_EH): New macros.
32118 (RETURN_STMT_EXPR): Likewise.
32120 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
32121 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
32123 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
32125 * atree.ads: Correct documentation on extended nodes.
32127 * link.c: Set run_path_option for FreeBSD.
32129 2004-04-08 Vincent Celier <celier@gnat.com>
32131 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
32132 one of the ALI file, do not link with DEC lib.
32134 * par.adb Remove the last two characters ("%s" or "%b") when checking
32135 if a language defined unit may be recompiled.
32137 2004-04-08 Ed Schonberg <schonberg@gnat.com>
32139 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
32140 removal of abstract operation leaves no possible interpretation for
32143 * sem_eval.adb (Eval_Qualified_Expression): Use
32144 Set_Raises_Constraint_Error on node when needed, so that it does not
32145 get optimized away by subsequent optimizations.
32147 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
32148 operands even when they are not wrapped in a type conversion.
32150 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
32152 * sem_prag.adb (Set_Exported): Warn about making static as result of
32153 export only when the export is coming from source. This may be not
32154 be true e.g. on VMS where we expand export pragmas for exception codes
32155 together with imported or exported exceptions, and we don't want the
32156 user to be warned about something he didn't write.
32158 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
32160 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
32161 duplication between normal entities and those declared as renamings.
32162 No functional change.
32164 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
32165 inline functions returning an unconstrained result.
32167 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
32169 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
32170 conform to what other front-ends do.
32172 2004-04-08 Doug Rupp <rupp@gnat.com>
32174 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
32177 2004-04-06 Pascal Obry <obry@gnat.com>
32179 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
32181 * osint.adb (Program_Name): Do not look past a directory separator.
32183 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
32185 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
32187 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
32188 requirement for preserving a copy of the original assignment node.
32190 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
32192 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
32194 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
32197 2004-04-06 Ed Schonberg <schonberg@gnat.com>
32199 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
32200 operator calls in functional notation, and apply
32201 Universal_Interpretation to operands, not to their type.
32203 2004-04-06 Robert Dewar <dewar@gnat.com>
32205 * 5wdirval.adb: Minor reformatting
32207 2004-04-06 Ed Falis <falis@gnat.com>
32209 * gnat_rm.texi: Improve a reference to the GCC manual
32211 2004-04-05 Vincent Celier <celier@gnat.com>
32213 * adaint.h, adaint.c: Add function __gnat_named_file_length
32215 * impunit.adb: Add Ada.Directories to the list
32217 * Makefile.in: Add VMS and Windows versions of
32218 Ada.Directories.Validity package body.
32220 * Makefile.rtl: Add a-direct and a-dirval
32222 * mlib-tgt.ads: Minor comment update.
32224 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
32225 a-direct.ads, a-direct.adb: New files.
32227 2004-04-05 Vincent Celier <celier@gnat.com>
32230 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
32231 just to the compiler.
32233 2004-04-05 Robert Dewar <dewar@gnat.com>
32235 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
32236 returned string is 1.
32238 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
32240 * eval_fat.ads: Minor reformatting
32242 * g-curexc.ads: Document that lower bound of returned string values
32245 * gnatlink.adb: Add ??? comment for previous change
32246 (need to document why this is VMS specific)
32248 * s-stoele.ads: Minor reformatting
32250 * tbuild.ads: Minor reformatting throughout (new function specs)
32252 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
32255 * scng.adb: Minor reformatting
32257 2004-04-05 Geert Bosch <bosch@gnat.com>
32259 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
32260 (Leading_Part): Still perform truncation to machine number if the
32261 specified radix_digits is greater or equal to machine_mantissa.
32263 2004-04-05 Javier Miranda <miranda@gnat.com>
32265 * par-ch3.adb: Complete documentation of previous change
32266 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
32267 (aliased must appear before constant).
32269 * par-ch4.adb: Complete documentation of previous change.
32271 * par-ch6.adb: Complete documentation of previous change.
32273 * sinfo.ads: Fix typo in commment.
32275 2004-04-05 Ed Schonberg <schonberg@gnat.com>
32277 * sem_ch3.adb (Inherit_Components): If derived type is private and has
32278 stored discriminants, use its discriminants to constrain parent type,
32279 as is done for non-private derived record types.
32281 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
32282 Ada 2005 AI-310: an abstract non-dispatching operation is not a
32283 candidate interpretation in an overloaded call.
32285 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
32286 expression is Null and target type is not an access type (e.g. a
32287 non-private address type).
32289 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
32291 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
32292 statement whose right-hand side is an inlined call, save a copy of the
32293 original assignment subtree to preserve enough consistency for
32294 Analyze_Assignment to proceed.
32296 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
32297 complete assignment subtree which is now unnecessary, as the expansion
32298 of inlined call has been improved to preserve a consistent assignment
32299 tree. Note_Possible_Modification must be called only
32300 after checks have been applied, or else unnecessary checks will
32303 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
32304 of explicit dereferences that do not Come_From_Source:
32305 - be selective on cases where we must go back to the dereferenced
32306 pointer (an assignment to an implicit dereference must not be
32307 recorded as modifying the pointer);
32308 - do not rely on Original_Node being present (Analyze_Assignment
32309 calls Note_Possible_Modification on a copied tree).
32311 * sem_warn.adb (Check_References): When an unset reference to a pointer
32312 that is never assigned is encountered, prefer '<pointer> may be null'
32313 warning over '<pointer> is never assigned a value'.
32315 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
32317 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
32320 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
32322 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
32323 libexc. We currently don't reference anything in this library and
32324 linking it in triggers linker warnings we don't want to see.
32326 * init.c: Update comments.
32328 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32330 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
32331 * utils.c (create_field_decl): Likewise.
32332 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
32334 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
32336 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
32337 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
32338 Add info directory entry and category.
32340 2004-04-02 Jan Hubicka <jh@suse.cz>
32342 * utils.c: Include function.h
32343 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
32345 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
32348 * Make-lang.in: Clean up generation of documentation
32350 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
32352 * xgnatug.adb: Removed, replaced by xgnatugn.adb
32354 * xgnatugn.adb: Replaces xgnatug.adb
32356 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
32358 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
32360 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32361 gnat_ug_wnt.texi: Removed.
32363 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
32365 * utils2.c: Update copyright notice.
32367 2004-04-01 Robert Dewar <dewar@gnat.com>
32369 * checks.adb: Minor reformatting throughout
32370 Note that prev checkin added RM reference to alignment warning
32372 2004-04-01 Ed Schonberg <schonberg@gnat.com>
32374 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
32375 non-static when building aggregate for bit-packed array.
32377 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
32378 function call that is itself the actual in a procedure call, build
32381 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
32382 a string literal, create a temporary for it, constant folding only
32383 handles scalars here.
32385 2004-04-01 Vincent Celier <celier@gnat.com>
32387 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
32388 Error_Msg_SP): New empty procedures to instantiate the Scanner.
32389 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
32391 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
32392 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
32393 and get the checksum.
32395 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
32397 Increase the Marking_Label at the end of the Multiple_Main_Loop,
32398 instead of at the beginning.
32400 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
32402 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
32405 * osint.ads (Multi_Unit_Index_Character): New Character global variable
32407 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
32410 * par.adb: Remove test on file name to detect language defined units.
32411 Add test on unit name, after parsing, to detect language defined units
32412 that are not compiled with -gnatg (except System.RPC and its children)
32414 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
32415 following units without style checking.
32417 * switch-c.adb: Change -gnatC to -gnateI
32419 * usage.adb: Document new switch -gnateInnn
32421 * scng.adb (Accumulate_Token_Checksum): New procedure
32422 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
32423 word or literal number.
32424 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
32427 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
32430 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
32431 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
32432 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
32433 5vtpopde.adb: Add missing 'constant' keywords.
32435 2004-04-01 Javier Miranda <miranda@gnat.com>
32437 * par-ch4.adb: (P_Allocator): Code cleanup
32439 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
32442 * sinfo.ads: Complete documentation of previous change
32444 2004-04-01 Pascal Obry <obry@gnat.com>
32446 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
32447 only on VMS. This special handling was done because an old GNU/ld bug
32448 on Windows which has been fixed.
32450 2004-04-01 GNAT Script <nobody@gnat.com>
32452 * Make-lang.in: Makefile automatically updated
32454 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32456 * decl.c (gnat_to_gnu_entity, make_type_from_size):
32457 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
32458 * trans.c (tree_transform, convert_with_check): Likewise.
32459 * utils.c (gnat_signed_or_unsigned_type): Likewise.
32460 (build_vms_descriptor, unchecked_convert): Likewise.
32461 * utils2.c (nonbinary_modular_operation): Likewise.
32463 2004-03-29 Javier Miranda <miranda@gnat.com>
32465 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
32466 (Install_Null_Excluding_Check): Local subprogram that determines whether
32467 an access node requires a runtime access check and if so inserts the
32468 appropriate run-time check.
32469 (Apply_Access_Check): Call Install_Null_Excluding check if required
32470 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
32472 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
32474 * einfo.ads: Fix typo in comment
32476 * exp_ch3.adb (Build_Assignment): Generate conversion to the
32477 null-excluding type to force the corresponding run-time check.
32478 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
32479 type to force the corresponding run-time check.
32481 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
32482 the null-excluding type to force the corresponding run-time check.
32484 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
32485 case of access types unless they have the null-excluding attribute.
32487 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
32490 * exp_util.ads: Fix typo in comment
32492 * par.adb (P_Null_Exclusion): New subprogram
32493 (P_Subtype_Indication): New formal that indicates if the null-excluding
32494 part has been scanned-out and it was present
32496 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
32498 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
32499 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
32500 type to force the corresponding run-time check
32501 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
32503 (Resolve_Array_Aggregate): Carry out some static checks
32504 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
32506 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
32507 attribute must be set only if specified by means of the null-excluding
32508 part. In addition, we must also propagate the access-constant attribute
32510 (Access_Subprogram_Declaration, Access_Type_Declaration,
32511 Analyze_Component_Declaration, Analyze_Object_Declaration,
32512 Array_Type_Declaration, Process_Discriminants,
32513 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
32514 and carry out some static checks.
32515 (Build_Derived_Access_Type): Set the null-excluding attribute
32516 (Derived_Type_Declaration, Process_Subtype): Carry out some static
32519 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
32521 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
32523 * sem_ch6.adb (Process_Formals): Carry out some static checks.
32524 (Set_Actual_Subtypes): Generate null-excluding subtype if the
32525 null-excluding part was present; it is not required to be done here in
32526 case of anonymous access types.
32527 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
32530 * sem_res.adb (Resolve_Actuals): Carry out some static check
32531 (Resolve_Null): Allow null in anonymous access
32533 * sinfo.adb: New subprogram Null_Exclusion_Present
32534 All_Present and Constant_Present available on access_definition nodes
32536 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
32537 object_declaration, derived_type_definition, component_definition,
32538 discriminant_specification, access_to_object_definition,
32539 access_function_definition, allocator, access_procedure_definition,
32540 access_definition, parameter_specification, All_Present and
32541 Constant_Present flags available on access_definition nodes.
32543 2004-03-29 Robert Dewar <dewar@gnat.com>
32545 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
32546 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
32547 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
32548 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
32549 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
32550 sem_prag.adb: Updates to handle multiple units/file
32552 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
32554 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
32555 sem_util.adb: Minor reformatting
32557 * sem_ch12.adb: Add comment for previous change
32559 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
32561 * osint.adb (Executable_Prefix): Set Exec_Name to the current
32562 executable name when not initialized. Otherwise, use its current value.
32564 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
32565 initialize it to another executable name than the current one. This
32566 allows to configure paths for an executable name (gnatmake) different
32567 from the current one (gnatdist).
32569 2004-03-29 Ed Schonberg <schonberg@gnat.com>
32571 * exp_ch6.adb (Expand_Call): A call to a function declared in the
32572 current unit cannot be inlined if it appears in the body of a withed
32573 unit, to avoid order of elaboration problems in gigi.
32575 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
32576 information for protected (wrapper) operation as well, to simplify gdb
32579 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
32580 protected body, indicate that the entity for the generated spec comes
32581 from source, to ensure that references are properly generated for it.
32582 (Build_Body_To_Inline): Do not inline a function that returns a
32585 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
32586 apply convention to homonyms that are declared explicitly.
32588 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
32589 that renames an equality operator and the operands are overloaded,
32590 resolve them with the declared formal types, before rewriting as an
32593 2004-03-29 GNAT Script <nobody@gnat.com>
32595 * Make-lang.in: Makefile automatically updated
32597 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32599 * memtrack.adb: Log realloc calls, which are treated as free followed
32602 2004-03-25 Vincent Celier <celier@gnat.com>
32604 * prj-makr.adb (Process_Directories): Detect when a file contains
32605 several units. Do not include such files in the config pragmas or
32606 in the naming scheme.
32608 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
32609 Resolve links only when not in Trusted_Mode.
32610 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
32611 Do not resolve links for the display names.
32613 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
32614 resolve links when computing the display names.
32616 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
32618 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
32619 attribute reference does not denote a subtype, it can be any
32620 expression that has a classwide type, potentially after an implicit
32621 dereference. In particular, the prefix can be a view conversion for
32622 a classwide type (for which Is_Object_Reference holds), but it can
32623 also be a value conversion for an access-to-classwide type. In the
32624 latter case, there is an implicit dereference, and the original node
32625 for the prefix does not verify Is_Object_Reference.
32627 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
32628 conversion of a discriminant-dependent component of a mutable object
32631 2004-03-25 Ed Schonberg <schonberg@gnat.com>
32633 * freeze.adb (Freeze_Entity): When an inherited subprogram is
32634 inherited, has convention C, and has unconstrained array parameters,
32635 place the corresponding warning on the derived type declaration rather
32636 than the original subprogram.
32638 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
32639 indication on renaming declaration, if formal has a box and actual
32642 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
32643 determine whether to generate an implicit or explicit reference to
32644 the renamed entity.
32646 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
32647 subprogram renaming comes from a defaulted formal subprogram in an
32650 2004-03-25 Gary Dismukes <dismukes@gnat.com>
32652 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
32653 value expressions to ensure that calls within a component definition
32654 will be checked (since those are evaluated during the record type's
32657 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
32659 * s-tpobop.adb: Code clean up:
32660 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
32662 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
32664 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
32666 * Makefile.in: Clean up in the ravenscar run time.
32668 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32670 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
32671 of No_Strict_Aliasing to build_pointer_type_for_mode.
32672 * utils.c (update_pointer_to): Walk pointer and ref chains.
32674 2004-03-22 Cyrille Comar <comar@act-europe.fr>
32676 * ali.ads: Fix Comment about Dynamic_Elab.
32678 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
32679 Has_RACW, Is_Generic, etc.)
32680 (Output_Object, Gnatls): Take into account ALI files not attached to
32683 2004-03-22 Vincent Celier <celier@gnat.com>
32685 * gprep.adb: Change all String_Access to Name_Id
32686 (Is_ASCII_Letter): new function
32687 (Double_File_Name_Buffer): New procedure
32688 (Preprocess_Infile_Name): New procedure
32689 (Process_Files): New procedure
32690 (Gnatprep): Check if output and input are existing directories.
32691 Call Process_Files to do the real job.
32693 2004-03-22 Robert Dewar <dewar@gnat.com>
32695 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
32696 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
32698 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
32700 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
32701 case when the source contains only comments.
32703 2004-03-22 Ed Schonberg <schonberg@gnat.com>
32705 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
32706 declaration for a child subprogram body that acts as a spec, indicate
32707 that the entity in the declaration needs debugging information.
32709 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
32710 full view if the subtype is created for a constrained record component;
32711 gigi has enough information to construct the record, and there is no
32712 place in the tree for the declaration.
32714 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
32715 serial number for the dummy body that is built for analysis, to avoid
32716 inconsistencies in the generation of internal names when compiling
32719 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
32721 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
32724 2004-03-22 GNAT Script <nobody@gnat.com>
32726 * Make-lang.in: Makefile automatically updated
32728 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32730 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32731 * trans.c (tree_transform, emit_index_check): Likewise.
32732 * utils.c (build_template): Likewise.
32733 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
32734 (maybe_unconstrained_array, unchecked_convert): Likewise.
32735 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
32736 (build_unary_op): Likewise.
32737 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32738 (fill_vms_descriptor): Likewise.
32739 (build_call_alloc_dealloc): Likewise.
32741 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
32743 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
32746 * gnat_ug.texi: Add info directory category and entry.
32747 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32748 gnat_ug_wnt.texi: Regenerate.
32750 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
32752 * ada-tree.h: Update copyright notice.
32753 Minor reformatting.
32755 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
32757 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
32758 as regular exception objects and not as mere integers representing the
32759 condition code. The latter approach required some dynamics to mask off
32760 severity bits, which did not fit well into the GCC table based model.
32761 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
32762 exception data objects. We don't it and it would conflict with the other
32763 external symbol we have to generate for such exceptions.
32765 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
32766 the special code for VMS exceptions, since these are now represented
32767 as regular exceptions objects.
32769 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32771 * decl.c (debug_no_type_hash): Remove.
32772 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
32773 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
32775 2004-03-19 Laurent Guerby <laurent@guerby.net>
32777 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
32778 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
32780 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32782 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
32783 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
32784 (TYPE_RM_SIZE_INT): Directly use type.values.
32785 (TREE_LOOP_ID): Clean up check.
32786 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
32787 TYPE_VALUES, not TYPE_FIELDS.
32788 * trans.c (convert_with_check): Delay access of bounds of basetype
32789 until sure is numeric.
32791 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
32793 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
32796 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
32797 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
32798 Specific.Set instead of direct call to e.g pthread_setspecific.
32800 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
32802 * adaint.c: Update comments.
32804 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
32805 GNATLIB_SHARED for FreeBSD.
32807 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
32809 * init.c [VxWorks]: Do not fix the stack size for the environment task.
32810 When needed (stack checking) the stack size is retrieved
32811 from the VxWorks kernel.
32813 * Makefile.in: Flag -nostdinc is required when building the run time
32814 for avoiding looking for files in the base compiler.
32815 Add the VxWorks specific version of the package body for
32816 System.Stack_checking.Operations (5zstchop.adb).
32818 * Make-lang.in: Add the object file for
32819 System.Stack_Checking.Operations.
32821 * Makefile.rtl: Add object file for the package
32822 System.Stack_Checking.Operations.
32824 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
32826 * s-stache.ads, s-stache.adb: Move the operations related to stack
32827 checking from this package to package System.Stack_Checking.Operations.
32828 This way, stack checking operations are only linked in the final
32829 executable when using the -fstack-check flag.
32831 2004-03-18 Doug Rupp <rupp@gnat.com>
32833 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
32836 * 5qsystem.ads, 5xcrtl.ads: New files.
32838 2004-03-18 Vincent Celier <celier@gnat.com>
32840 * prj.adb (Reset): Reset hash table Files_Htable
32842 * prj-env.adb (Source_Paths, Object_Paths): New tables.
32843 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
32844 the procedures Add_To_Path_File.
32845 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
32846 making sure that each directory is present only once and, for object
32847 dirs, when a directory already present is added, the duplicate is
32848 removed and the directory is always put as the last in the table.
32849 Write the path files at the end of these accumulations.
32851 * prj-nmsc.adb (Record_Source): Add source file name in hash table
32852 Files_Htable for all sources.
32854 * prj-proc.adb (Process): Remove restrictions between not directly
32855 related extending projects.
32857 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
32859 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
32860 (Find_Sources): Minor speed optimization.
32862 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
32863 parameter Trusted_Mode.
32865 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
32867 * scn.adb (Determine_License): Take into account a degenerated case
32868 when the source contains only comments.
32870 2004-03-18 Ed Schonberg <schonberg@gnat.com>
32872 * sem_warn.adb (Check_References): For a warning on a selected
32873 component that does not come from source, locate an uninitialized
32874 component of the record type to produce a more precise error message.
32876 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
32878 * 3zsoccon.ads: Fix multicast options.
32880 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
32883 2004-03-15 Robert Dewar <dewar@gnat.com>
32885 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
32886 pragma used for a private type.
32888 * lib-xref.adb (Generate_Reference): Do not generate warning if
32889 reference is in a different unit from the pragma Unreferenced.
32891 * 5vtpopde.adb: Minor reformatting
32892 Fix casing of To_Task_ID
32894 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
32895 flag if we have an unchecked conversion to an access type in the same
32898 2004-03-15 Geert Bosch <bosch@gnat.com>
32900 * a-ngcoty.adb (Modulus): In alternate formula for large real or
32901 imaginary parts, use Double precision throughout.
32903 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
32904 we want to be able to compile run-time with -gnata for testing, but
32905 this may also be instantiated in user code that is compiled with -gnata.
32907 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
32909 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
32910 codes. Having a separate type for this is useful to enforce consistency
32911 throughout the various run-time units.
32912 (Exception_Data): Use Exception_Code for Import_Code.
32914 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
32915 Natural and Integer in various places.
32916 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
32917 with the severity bits masked off.
32918 (Register_VMS_Exception): Handle the additional exception data pointer
32921 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
32922 component, now reflected by an exported accessor.
32923 (is_handled_by): New routine to compute whether the propagated
32924 occurrence matches some handler choice specification. Extracted out of
32925 get_action_description_for, and expanded to take care of the VMS
32927 (get_action_description_for): Use is_handled_by instead of an explicit
32928 complex condition to decide if the current choice at hand catches the
32929 propagated occurrence.
32931 * raise.h (Exception_Code): New type for C.
32933 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
32934 System.Standard_Library.Exception_Code, to allow references from the
32935 pragma import/export expander.
32937 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
32938 New accessors to allow easy access to GNAT exception data
32940 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
32941 redundant Handled_By_Others component, helper for the personality
32942 routine which will now be able to call the appropriate exception data
32945 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
32946 component of Standard_Exception_Type to be the closest possible to
32947 Exception_Code in System.Standard_Library, that we cannot get at this
32948 point. Expand a ??? comment to notify that this type node should
32949 probably be rewritten later on.
32951 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
32952 registration call to include a pointer to the exception object in the
32955 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
32956 instead of int and explicit bitmasks.
32958 2004-03-15 Vincent Celier <celier@gnat.com>
32960 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
32961 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
32963 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
32964 longer needed now that it is in the spec of
32965 System.Tasking.Task_Attributes.
32967 * adaint.h, adaint.c: (__gnat_create_output_file): New function
32969 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
32971 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
32973 * make.adb (Gnatmake): Do not check the executable suffix; it is being
32974 taken care of in Scan_Make_Arg.
32975 (Scan_Make_Arg): Add the executable suffix only if the argument
32976 following -o, in canonical case, does not end with the executable
32977 suffix. When in verbose mode and executable file name does not end
32978 with executable suffix, output the executable name, in canonical case.
32980 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
32981 to avoid warnings when instantiating Ada.Task_Attributes.
32984 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
32985 in the correct order.
32987 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
32988 redirect standard output and error to a file for the invocation of the
32989 compiler, then read the file.
32991 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
32992 directory, instead of the Value.
32993 (Find_Source_Dirs): Remove useless code & comments.
32995 2004-03-15 Ed Schonberg <schonberg@gnat.com>
32997 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
32998 tagged type is inherited, and the parent operation is not frozen yet,
32999 force generation of a freeze node for the inherited operation, so the
33000 corresponding dispatch entry is properly initialized.
33001 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
33002 when looking for user-defined equality operation.
33004 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
33005 boolean when locating primitive equality of tagged component.
33007 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
33008 bit-aligned field and the right-hand side a string literal, introduce
33009 a temporary before expanding assignment into a loop.
33011 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
33012 priority in full, to ensure that any expanded subepxressions of it are
33013 elaborated in the scope of the init_proc.
33015 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
33016 after object declaration, skipping over code that may have been
33017 generated for validity checks.
33019 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
33020 discriminants, ignore the known discriminants of its full view, if
33021 any, to check legality.
33023 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
33024 component if type has unknown discriminants.
33025 (Analyze_Private_Extension_Declaration): Discriminant constraint is
33026 null if type has unknown discriminants.
33028 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
33029 for end label when present.
33031 * s-fileio.adb (Open): When called with a C_Stream, use given name for
33032 temporary file, rather than an empty string.
33034 2004-03-15 Ed Falis <falis@gnat.com>
33036 * s-thread.adb: Removed, no longer used.
33038 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33040 * decl.c (target.h): Now include.
33041 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
33042 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
33043 (validate_size): For POINTER_TYPE, get smallest size permitted on
33046 * fe.h: Sort Einfo decls and add Set_Mechanism.
33048 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
33049 (ada/decl.o): Depends on target.h.
33051 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
33052 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
33054 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
33056 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
33058 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
33059 Insert_Dereference_Action when rewriting an implicit dereference into
33060 an explicit one, this will be taken care of during expansion of the
33061 explicit dereference.
33062 (Expand_N_Slice): Same. Always do the rewriting, even for the case
33063 of non-packed slices, since the dereference action generated by
33064 expansion of the explicit dereference is needed in any case.
33065 (Expand_N_Selected_Component): When rewriting an implicit dereference,
33066 analyze and resolve the rewritten explicit dereference so it is seen
33068 (Insert_Dereference_Action): This procedure is now called only for the
33069 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
33070 dereferences that do not come from source (including explicit
33071 dereferences resulting from rewriting implicit ones), but do not
33072 recursively insert a check for the dereference nodes contained within
33074 (Insert_Dereference_Action): Clarify and correct comment.
33076 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
33079 Move language detection to the top level.
33080 * config-lang.in: Build by default.
33082 2004-03-05 Robert Dewar <dewar@gnat.com>
33084 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
33086 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
33087 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
33088 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
33089 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
33090 unchecked conversion to spec to avoid warnings.
33092 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
33095 * 7stpopsp.adb: Correct casing in To_Task_ID call
33097 * a-strsea.ads, a-strsea.adb: Minor reformatting
33099 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
33101 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
33102 Adjust Max_Msg_Length to be clearly large enough.
33104 * fe.h: Define In_Same_Source_Unit
33106 * osint.adb: Add pragma Warnings Off to suppress warnings
33107 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
33110 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
33112 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
33114 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
33116 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
33118 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
33120 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
33121 node. We now do generate them for gcc back end.
33123 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
33126 * sinput-c.adb: Fix bad name in header.
33127 Add pragma Warnings Off to suppress aliasing warning.
33129 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
33131 * snames.h, snames.ads, snames.adb: Add entry for pragma
33132 No_Strict_Aliasing.
33134 2004-03-05 Vincent Celier <celier@gnat.com>
33136 * prj-com.ads: Add hash table Files_Htable to check when a file name
33137 is already a source of another project.
33139 * prj-nmsc.adb (Record_Source): Before recording a new source, check
33140 if its file name is not already a source of another project. Report an
33143 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
33144 source file name, call gnatpp with all the sources of the main project.
33146 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
33149 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
33150 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
33151 /RUNTIME_SYSTEM=, converted to --RTS=
33152 /NOTABS, converted to -notabs
33154 2004-03-05 Pascal Obry <obry@gnat.com>
33156 * make.adb: Minor reformatting.
33158 2004-03-05 Ed Schonberg <schonberg@gnat.com>
33160 Part of implemention of AI-262.
33161 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
33163 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
33166 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
33167 when component type is a partially constrained class-wide subtype.
33168 (Constrain_Discriminated_Type): If parent type has unknown
33169 discriminants, a constraint is illegal, even if full view has
33171 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
33172 with unknown discriminants whose full view is a discriminated record.
33174 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
33175 flag, to handle properly derivations of tagged types with unknown
33177 (Analyze_Package_Spec, Analyze_Package_Body): Install
33178 Private_With_Clauses before analyzing private part or body.
33180 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
33181 Has_Discriminants can be true for a given type (documentation).
33183 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
33185 * s-restri.ads: Fix license (GPL->GMGPL).
33187 * s-tassta.adb: Minor reformatting.
33189 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33190 by calls to Exit_One_ATC_Level, since additional clean up is performed
33193 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33194 by calls to Exit_One_ATC_Level, since additional clean up is performed
33197 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33199 * trans.c: Reflect GCC changes to fix bootstrap problem.
33200 Add warning for suspicious aliasing unchecked conversion.
33202 2004-03-05 GNAT Script <nobody@gnat.com>
33204 * Make-lang.in: Makefile automatically updated
33206 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
33208 * ali.adb (Read_Instantiation_Instance): Do not modify the
33209 current_file_num when reading information about instantiations, since
33210 this corrupts files in later references.
33212 2004-03-02 Vincent Celier <celier@gnat.com>
33214 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
33215 before checking if it is read-only.
33217 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
33218 of SRC_DIRS and eliminate duplicates.
33220 * gprcmd.adb: Replace command "path" with command "path_sep" to return
33221 the path separator.
33222 (Usage): Document path_sep
33224 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
33225 C++ compiler. No need for a script.
33226 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
33227 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
33230 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
33231 where there are Ada sources.
33232 (Set_Ada_Paths): Only add to the include path the source dirs of project
33234 (Add_To_Path): Add the Display_Values of the directories, not their
33237 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
33240 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
33242 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
33243 Value is canonicalized.
33244 (Language_Independent_Check): Do not copy Value to Display_Value when
33245 canonicalizing Value.
33247 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
33248 path to find limited with cycles.
33249 (Parse_Single_Project): Use canonical cased path to find the end of a
33252 2004-03-02 Ed Schonberg <schonberg@gnat.com>
33254 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
33255 and not a child unit.
33257 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
33258 appear in a with_clause.
33260 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
33261 only happen in type_annotate mode, do not try to elaborate it.
33263 * exp_util.adb (Force_Evaluation): If expression is a selected
33264 component on the left of an assignment, use a renaming rather than a
33265 temporary to remove side effects.
33267 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
33268 inlined instance body, which is analyzed before the end of the
33271 2004-03-02 Robert Dewar <dewar@gnat.com>
33273 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
33274 sem_ch4.adb: Use new feature for substitution of keywords in VMS
33276 * errout.ads, errout.adb: Implement new circuit for substitution of
33279 * sem_case.adb (Analyze_Choices): Place message properly when case is
33280 a subtype reference rather than an explicit range.
33282 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
33284 2004-03-02 Doug Rupp <rupp@gnat.com>
33286 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
33288 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
33290 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
33292 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33294 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
33297 2004-02-25 Robert Dewar <dewar@gnat.com>
33299 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33300 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
33301 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
33302 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
33303 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
33304 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
33305 the defining instance of the type to avoid aliasing problems.
33306 Fix copyright header. Fix bad comments in package header.
33308 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
33310 2004-02-25 Ed Schonberg <schonberg@gnat.com>
33312 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
33313 rewritten as references when aliased through an address clause.
33315 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
33316 whether call can be interpreted as an indirect call to the result of a
33317 parameterless function call returning an access subprogram.
33319 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
33322 * exp_ch7.adb (Make_Clean): Remove generation of calls to
33323 Unlock[_Entries], since this is now done by Service_Entries directly.
33325 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
33327 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
33328 Requeue_Call for better code readability. Change spec and update calls:
33329 PO_Service_Entries now unlock the PO on exit.
33330 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
33331 PO_Service_Entries.
33333 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
33335 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
33337 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
33339 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
33340 protected subprogram call and analyzing the result of such expanding
33341 in case when the called protected subprogram is eliminated.
33343 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
33346 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
33348 * Makefile.in: Clean ups.
33350 2004-02-23 Ed Schonberg <schonberg@gnat.com>
33352 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
33353 protected operations if original subprogram is flagged as eliminated.
33354 (Expand_N_Subprogram_Body): For a protected operation, create
33355 discriminals for next operation before checking whether the operation
33358 * exp_ch9.adb (Expand_N_Protected_Body,
33359 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
33360 for internal protected operations if the original subprogram is
33363 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
33364 declared in a single protected object.
33366 2004-02-23 Vincent Celier <celier@gnat.com>
33368 * prj-attr.adb: Make attribute Builder'Executable an associative array,
33369 case insensitive if file names are case insensitive, instead of a
33370 standard associative array.
33372 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
33373 them as case insensitive on platforms where the file names are case
33376 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
33377 project file has already been parsed that canonical path are compared.
33379 2004-02-23 Robert Dewar <dewar@gnat.com>
33381 * sinput-c.ads: Correct bad unit title in header
33383 * freeze.adb: Minor reformatting
33385 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33387 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
33388 nonaddressable COMPONENT_REF that is removing padding that we are
33389 taking the address of, take the address of the padded record instead
33390 if item is variable size.
33392 2004-02-20 Robert Dewar <dewar@gnat.com>
33394 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
33396 2004-02-20 Ed Schonberg <schonberg@gnat.com>
33398 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
33399 itype references for the constrained designated type of a component
33400 whose base type is already frozen.
33402 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
33404 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
33405 avoid GCC warnings.
33407 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
33409 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
33410 identifier for a phantom package that rewrites the formal package
33411 declaration with a box. The Add semantic decorations for the defining
33412 identifier from the original node (that represents the formal package).
33414 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
33416 * Make-lang.in (ada/stamp-sdefault): Use the top level
33419 2004-02-19 Richard Henderson <rth@redhat.com>
33421 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
33423 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
33425 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
33426 Scan_ALI can be used for multiple ALI files without reinitializing
33429 2004-02-18 Robert Dewar <dewar@gnat.com>
33431 * debug.adb: Minor reformatting.
33433 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33435 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
33436 to zero if there is an address clause.
33438 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
33440 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
33442 2004-02-18 Gary Dismukes <dismukes@gnat.com>
33444 * layout.adb (Layout_Component_List): Revise generation of call to
33445 discriminant-checking function to pass selections of all of the type's
33446 discriminants rather than just the variant-controlling discriminant.
33448 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
33450 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
33451 fail in the current setup and triggers spurious system error messages.
33452 Pretend it occurred and failed instead.
33454 2004-02-18 Vincent Celier <celier@gnat.com>
33456 * bld.adb: Mark FLDFLAGS as saved
33457 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
33458 it is not the root project. Put each directory to be
33459 extended between double quotes to prevent it to be expanded on Windows.
33460 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
33461 the project file. Set them back to their initial values if they have not
33462 been set in the project file.
33464 * gprcmd.adb: (Gprdebug, Debug): New global variables
33465 (Display_Command): New procedure
33466 (Usage): Document new command "linkopts"
33467 Call Display_Command when env var GPRDEBUG has the value "TRUE"
33468 Implement new command "linkopts"
33469 Remove quotes that may be around arguments for "extend"
33470 Always call Normalize_Pathname with arguments formatted for the platform
33472 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
33473 Change @echo to @$(display) in target clean to be able to clean silently
33475 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
33477 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
33480 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
33481 = Extending_All when current project is an extending all project.
33483 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
33484 set to True only for LINK command, after Unix switch -o.
33485 (Process_Arguments): Set Output_File_Expected to True for LINK command
33486 after Unix switch -o. When Output_File_Expected is True, never add an
33487 extension to a file name.
33489 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
33490 option file name, only to the --for-linker= switch.
33491 (Option_File_Name): If option file name do not end with ".opt", append
33494 2004-02-18 GNAT Script <nobody@gnat.com>
33496 * Make-lang.in: Makefile automatically updated
33498 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
33500 * Make-lang.in (stamp-sdefault): Do not depend on
33503 2004-02-12 Zack Weinberg <zack@codesourcery.com>
33505 * config-lang.in: Disable Ada by default until probe logic for
33506 a bootstrap Ada compiler can be moved to the top level configure
33509 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
33511 * decl.c (components_to_record): Don't claim that the internal fields
33512 we make to hold the variant parts are semantically addressable, because
33515 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
33516 adjust the comment describing the modular type form when we can use it.
33517 (Install_PAT): Account for the Esiz renaming.
33519 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
33520 sc_onstack context indication before raising the exception to which
33521 the signal is mapped. Allows better handling of later signals possibly
33522 triggered by the resumed user code if the exception is handled.
33524 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
33526 * 5zinit.adb: Removed, no longer used.
33528 2004-02-12 Robert Dewar <dewar@gnat.com>
33530 * ali.adb: Remove separating space between parameters on R line. Makes
33531 format consistent with format used by the binder for Set_Globals call.
33533 * atree.ads, atree.adb: Minor reformatting (new function header format)
33535 * bindgen.adb: Add Run-Time Globals documentation section containing
33536 detailed documentation of the globals passed from the binder file to
33539 * gnatls.adb: Minor reformatting
33541 * init.c (__gnat_set_globals): Add note pointing to documentation in
33544 * lib-writ.ads, lib-writ.adb: Remove separating space between
33545 parameters on R line.
33546 Makes format consistent with format used by the binder for Set_Globals
33549 * osint.ads: Add 2004 to copyright notice
33552 * snames.ads: Correct capitalization of FIFO_Within_Priorities
33553 Noticed during code reading, documentation issue only
33555 * usage.adb: Remove junk line for obsolete C switch
33556 Noticed during code reading
33558 2004-02-12 Vincent Celier <celier@gnat.com>
33560 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
33561 extend for each directory, so that multiple /** directories are
33562 extended individually.
33563 (Recursive_Process): Set the default for LANGUAGES to ada
33565 * gprcmd.adb: Define new command "ignore", to do nothing.
33566 Implement new comment "path".
33568 * Makefile.generic: Suppress output when SILENT is set
33569 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
33570 used, so that the correct compiler is invoked.
33571 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
33572 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
33574 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
33576 * Makefile.in: Clean ups and remove obsolete targets.
33578 2004-02-12 Ed Schonberg <schonberg@gnat.com>
33580 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
33581 predicate declared in exp_util.
33583 * exp_util.adb: Add comments.
33585 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
33586 visibility before compiling context of the subunit.
33588 * sem_res.adb (Check_Parameterless_Call): If the context expects a
33589 value but the name is a procedure, do not attempt to analyze as a call,
33590 in order to obtain more telling diagnostics.
33592 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
33593 'Access on parameterless function calls.
33594 (Normalize_Actuals): For a parameterless function call with missing
33595 actuals, defer diagnostic until resolution of enclosing call.
33597 * sem_util.adb (Wrong_Type): If the context type is an access to
33598 subprogram and the expression is a procedure name, suggest a missing
33601 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
33602 Nathanael Nerode <neroden@gcc.gnu.org>
33606 Merge with libada-branch:
33607 * config-lang.in: Build libada only when ada is built.
33609 2004-02-09 Ed Schonberg <schonberg@gnat.com>
33611 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
33612 for a tagged type, verify that both formals have the same type.
33614 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
33615 temporary when the formal is an in-parameter and the actual a possibly
33618 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
33619 when expansion is disabled, to ensure proper name capture with
33620 overloaded literals. Condition can be of any boolean type, resolve
33623 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
33624 renaming is for a formal subprogram with a default operator name, and
33625 there is a usable operator that is visible at the point of
33628 2004-02-09 Robert Dewar <dewar@gnat.com>
33630 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
33631 rewrite to ignore errors in ali files, intended to allow tools downward
33632 compatibility with new versions of ali files.
33634 * ali.ads: Add new parameter Ignore_Errors
33636 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
33637 duplicating the error message giving the file with restrictions.
33639 * debug.adb: Add debug flag I for gnatbind
33641 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
33642 operators for the case where the operator is a defining operator.
33644 * exp_ch3.adb: Minor reformatting (new function spec format).
33646 * exp_ch4.adb: Add comment for previous change, and make minor
33647 adjustment to loop to always check for improper loop termination.
33648 Minor reformatting throughout (new function spec format).
33650 * gnatbind.adb: Implement -di debug flag for gnatbind
33652 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
33654 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
33656 * lib-load.adb: Fix bad assertion.
33657 Found by testing and code reading.
33658 Minor reformatting.
33660 * lib-load.ads: Minor reformatting.
33662 * lib-writ.adb: There is only one R line now.
33664 * lib-writ.ads: Add documentation on making downward compatible changes
33665 to ali files so old tools work with new ali files.
33666 There is only one R line now.
33667 Add documentation on format incompatibilities (with special GPS note)
33669 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
33671 * par-load.adb: Minor reformatting
33673 * sem_ch8.adb: Fix to error message from last update
33674 Minor reformatting and restructuring of code from last update
33676 * par-prag.adb, snames.adb, snames.ads, snames.h,
33677 sem_prag.adb: Implement pragma Profile.
33679 * stylesw.adb: Implement -gnatyN switch to turn off all style check
33682 * usage.adb: Add line for -gnatyN switch
33684 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
33686 2004-02-09 Albert Lee <lee@gnat.com>
33688 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
33690 2004-02-09 Ed Schonberg <schonberg@gnat.com>
33692 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
33695 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
33696 is nested in an instance that is not frozen yet, to avoid
33697 order-of-elaboration problems in gigi.
33699 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
33700 body the attribute is legal.
33702 2004-02-09 Robert Dewar <dewar@gnat.com>
33704 * s-rident.ads: Minor comment correction
33706 * targparm.adb: Remove dependence on uintp completely. There was
33707 always a bug in Make in that it called Targparm before initializing
33708 the Uint package. The old code appeared to get away with this, but
33709 the new code did not! This caused an assertion error in gnatmake.
33711 * targparm.ads: Fix bad comment, restriction pragmas with parameters
33712 are indeed fully supported.
33714 2004-02-06 Alan Modra <amodra@bigpond.net.au>
33716 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
33718 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
33720 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
33721 with targetm.calls.promote_prototypes.
33723 2004-02-04 Robert Dewar <dewar@gnat.com>
33725 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
33726 ali.ads, gprcmd.adb: Minor reformatting
33728 * bindgen.adb: Output restrictions string for new style restrictions
33731 * impunit.adb: Add s-rident.ads (System.Rident) and
33732 s-restri (System.Restrictions)
33734 * lib-writ.adb: Fix bug in writing restrictions string (last few
33737 * s-restri.ads, s-restri.adb: Change name Restrictions to
33738 Run_Time_Restrictions to avoid conflict with package name.
33739 Add circuit to read and acquire run time restrictions.
33741 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
33743 * restrict.ads, restrict.adb: Use the new restriction
33744 No_Task_Attributes_Package instead of the old No_Task_Attributes.
33746 * sem_prag.adb: No_Task_Attributes is a synonym of
33747 No_Task_Attributes_Package.
33749 * snames.ads, snames.adb: New entry for proper handling of
33750 No_Task_Attributes.
33752 * s-rident.ads: Adding restriction No_Task_Attributes_Package
33753 (AI-00249) that supersedes the GNAT specific restriction
33754 No_Task_Attributes.
33756 2004-02-04 Ed Schonberg <schonberg@gnat.com>
33759 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
33760 body, an identifier may be wrapped in an unchecked conversion.
33762 2004-02-04 Vincent Celier <celier@gnat.com>
33764 * lib-writ.ads: Comment update for the W lines
33766 * bld.adb: (Expression): An empty string list is static
33768 * fname-uf.adb: Minor comment update
33770 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
33772 * gnatbind.adb: Initialize Cumulative_Restrictions with the
33773 restrictions on the target.
33775 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
33777 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
33780 2004-02-02 Arnaud Charlet <charlet@gnat.com>
33782 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
33784 2004-02-02 Vincent Celier <celier@gnat.com>
33786 * gprcmd.adb (Check_Args): If condition is false, print the invoked
33787 comment before the usage.
33788 Gprcmd: Fail when command is not recognized.
33789 (Usage): Document command "prefix"
33791 * g-md5.adb (Digest): Process last block.
33792 (Update): Do not process last block. Store remaining characters and
33795 * g-md5.ads (Update): Document that several call to update are
33796 equivalent to one call with the concatenated string.
33797 (Context): Add fields to allow new Update behaviour.
33799 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
33800 defaulted to False.
33801 When May_Fail is True and no existing file can be found, return No_File.
33803 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
33806 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
33807 spec file name instead on the W line.
33809 2004-02-02 Robert Dewar <dewar@gnat.com>
33811 * ali.adb: Read and acquire info from new format restrictions lines
33813 * bcheck.adb: Add circuits for checking restrictions with parameters
33815 * bindgen.adb: Output dummy restrictions data
33816 To be changed later
33818 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
33819 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
33820 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
33821 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
33822 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
33824 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
33825 the warning message on access to possibly uninitialized variable S)
33826 Minor changes for new restrictions handling.
33828 * gnatbind.adb: Minor reformatting
33829 Minor changes for new restrictions handling
33830 Move circuit for -r processing here from bcheck (cleaner)
33832 * gnatcmd.adb, gnatlink.adb: Minor reformatting
33834 * lib-writ.adb: Output new format restrictions lines
33836 * lib-writ.ads: Document new R format lines for new restrictions
33839 * s-restri.ads/adb: New files
33841 * Makefile.rtl: Add entry for s-restri.ads/adb
33843 * par-ch3.adb: Fix bad error messages starting with upper case letter
33846 * restrict.adb: Major rewrite throughout for new restrictions handling
33847 Major point is to handle restrictions with parameters
33849 * restrict.ads: Major changes in interface to handle restrictions with
33850 parameters. Also generally simplifies setting of restrictions.
33852 * snames.ads/adb: New entry for proper handling of No_Requeue
33854 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
33855 restriction counting.
33856 Other minor changes for new restrictions handling
33858 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
33859 Restriction_Warnings now allows full parameter notation
33860 Major rewrite of Restrictions for new restrictions handling
33862 2004-02-02 Javier Miranda <miranda@gnat.com>
33864 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
33865 syntax rule for object renaming declarations.
33866 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
33867 component definitions.
33869 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
33871 (Array_Type_Declaration): Give support to access components. In addition
33872 it was also modified to reflect the name of the object in anonymous
33873 array types. The old code did not take into account that it is possible
33874 to have an unconstrained anonymous array with an initial value.
33875 (Check_Or_Process_Discriminants): Allow access discriminant in
33877 (Process_Discriminants): Allow access discriminant in non-limited types
33878 Initialize the new Access_Definition field in N_Object_Renaming_Decl
33879 node. Change Ada0Y to Ada 0Y in comments
33881 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
33882 equality operators.
33883 Change Ada0Y to Ada 0Y in comments
33885 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
33886 renamings Change Ada0Y to Ada 0Y in comments
33888 * sem_type.adb (Find_Unique_Type): Give support to the equality
33889 operators for universal access types
33890 Change Ada0Y to Ada 0Y in comments
33892 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
33894 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
33896 (N_Object_Renaming_Declaration): Addition of Access_Definition field
33897 Change Ada0Y to Ada 0Y in comments
33899 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
33900 component definition and object renaming nodes
33901 Change Ada0Y to Ada 0Y in comments
33903 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
33905 * restrict.adb: Use the new restriction identifier
33906 No_Requeue_Statements instead of the old No_Requeue for defining the
33907 restricted profile.
33909 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
33910 No_Requeue_Statements.
33912 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
33913 that supersedes the GNAT specific restriction No_Requeue. The later is
33914 kept for backward compatibility.
33916 2004-02-02 Ed Schonberg <schonberg@gnat.com>
33918 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
33919 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
33920 pragma and fix incorrect ones.
33922 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
33923 warning if the pragma is redundant.
33925 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
33927 * 5staprop.adb: Add missing 'constant' keywords.
33929 * Makefile.in: use consistent value for SYMLIB on
33930 platforms where libaddr2line is supported.
33932 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33934 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
33937 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
33939 * init.c (__gnat_install_handler): Setup an alternate stack for signal
33940 handlers in the environment thread. This allows proper propagation of
33941 an exception on stack overflows in this thread even when the builtin
33942 ABI stack-checking scheme is used without support for a stack reserve
33945 * utils.c (create_field_decl): Augment the head comment about bitfield
33946 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
33947 here, because the former is not accurate enough at this point.
33948 Let finish_record_type decide instead.
33949 Don't make a bitfield if the field is to be addressable.
33950 Always set a size for the field if the record is packed, to ensure the
33951 checks for bitfield creation are triggered.
33952 (finish_record_type): During last pass over the fields, clear
33953 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
33954 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
33955 from DECL_BIT_FIELD.
33957 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
33959 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
33960 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
33961 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
33963 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33965 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
33967 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
33968 (ZCX_By_Default): Likewise.
33969 (Front_End_ZCX_Support): Likewise.
33971 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
33972 (Initialize_Lock): Mark Level unreferenced.
33973 (Sleep): Mark Reason unreferenced.
33974 (Timed_Sleep): Likewise.
33975 (Wakeup): Likewise.
33976 (Exit_Task): Use Result.
33977 (Check_No_Locks): Mark Self_ID unreferenced.
33979 * 5gtasinf.adb (New_Sproc): Make Attr constant.
33980 (Bound_Thread_Attributes): Make Sproc constant.
33981 (New_Bound_Thread_Attributes): Likewise.
33983 2004-01-26 Ed Schonberg <schonberg@gnat.com>
33985 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
33986 one-dimensional array an slice assignments, when component type is
33989 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
33990 component type is controlled, and control_actions are in effect, use
33991 TSS procedure rather than generating inline code.
33993 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
33994 arrays with controlled components.
33996 2004-01-26 Vincent Celier <celier@gnat.com>
33998 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
33999 command line for the non VMS case.
34001 * gnatlink.adb (Process_Binder_File): When building object file, if
34002 GNU linker is used, put all object paths between quotes, to prevent ld
34003 error when there are unusual characters (such as '!') in the paths.
34005 * Makefile.generic: When there are sources in Ada and the main is in
34006 C/C++, invoke gnatmake with -B, instead of -z.
34008 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
34009 from VMS_Conversion.
34010 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
34011 specification of argument file on the command line.
34013 2004-01-26 Bernard Banner <banner@gnat.com>
34015 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
34017 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34019 * snames.adb: Update copyright notice.
34020 Add info on slice assignment for controlled arrays.
34022 2004-01-23 Robert Dewar <dewar@gnat.com>
34024 * exp_aggr.adb: Minor reformatting
34026 * exp_ch9.adb: Minor code clean up
34028 Fix bad character in comment
34031 * targparm.adb (Get_Target_Parameters): Give clean abort error on
34032 unexpected end of file, along with more detailed message.
34034 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34036 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
34039 * decl.c (copy_alias_set): New function.
34040 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
34042 2004-01-23 Doug Rupp <rupp@gnat.com>
34044 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
34045 lib$${file} in case subsequent character is not a separator.
34047 2004-01-23 Vincent Celier <celier@gnat.com>
34049 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
34050 when the GCC version is at least 3.
34052 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
34053 Remove all "Opt.", to prepare for opt split
34055 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
34056 Extends_All. Set to True when the project parsed is an extending all
34057 project. Fails for importing an extending all project only when the
34058 imported project is an extending all project.
34059 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
34060 depending on the value of Extends_All returned.
34062 * prj-proc.adb (Process): Check that no project shares its object
34063 directory with a project that extends it, directly or indirectly,
34064 including a virtual project.
34065 Check that no project extended by another project shares its object
34066 directory with another also extended project.
34068 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
34069 Kind = N_With_Clause
34071 * prj-tree.ads: Minor reformatting
34072 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
34074 2004-01-23 Ed Schonberg <schonberg@gnat.com>
34076 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
34077 applies to a type with an incomplete view, use full view in Name of
34078 clause, for consistency with uses of Get_Attribute_Definition_Clause.
34080 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
34082 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
34083 SCHED_RR, since other values are not supported by this policy.
34084 (Initialize): Move initialization of mutex attribute to package
34085 elaboration, to prevent early access to this variable.
34087 * Makefile.in: Remove mention of Makefile.adalib, unused.
34089 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
34090 1ssecsta.ads: Removed, unused.
34092 2004-01-21 Javier Miranda <miranda@gnat.com>
34094 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
34095 entity if already built in the current scope.
34097 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
34098 reminder in internal scopes. Required for nested limited aggregates.
34100 2004-01-21 Doug Rupp <rupp@gnat.com>
34102 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
34103 VMS. Replace all occurences of libgnat- and libgnarl- with
34104 libgnat$(hyphen) and libgnarl$(hyphen).
34105 Fixed shared library build problem on VMS.
34107 2004-01-21 Robert Dewar <dewar@gnat.com>
34109 * mlib-prj.adb: Minor reformatting
34111 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
34113 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
34114 'constant' keywords for declaration of pointers that are not modified.
34116 * exp_pakd.adb: Fix English in comment.
34118 2004-01-21 Ed Schonberg <schonberg@gnat.com>
34121 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
34122 copy all attributes of the parent, including the foreign language
34125 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
34128 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
34129 for 'delay until' statement.
34131 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
34133 * Make-lang.in: Replace $(docdir) with doc.
34134 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
34135 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
34136 to use consistent MAKEINFO rule.
34137 (ada.man, ada.srcman): Dummy entry.
34138 (ADA_INFOFILES): Define.
34139 (ada.info, ada.srcinfo): New rules.
34141 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
34143 * utils.c: Update copyright notice, missed in previous change.
34145 2004-01-19 Vincent Celier <celier@gnat.com>
34147 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
34148 args if Bind is True. Set First_ALI, if not already done.
34149 (Build_Library): For Stand Alone Libraries, extract from one ALI file
34150 an eventual --RTS switch, for gnatbind, and all backend switches +
34151 --RTS, for linking.
34153 2004-01-19 Robert Dewar <dewar@gnat.com>
34155 * sem_attr.adb, memtrack.adb: Minor reformatting
34157 2004-01-19 Ed Schonberg <schonberg@gnat.com>
34159 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
34160 that rename enumeration literals. This is properly done in sem_eval.
34162 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
34163 to functions that rename enumeration literals.
34165 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
34166 functions that rename enumeration literals.
34168 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
34170 * Make-lang.in (utils.o): Depend on target.h.
34171 * utils.c: Include target.h.
34172 (process_attributes): Use targetm.have_named_sections instead
34173 of ASM_OUTPUT_SECTION_NAME.
34175 2004-01-16 Andreas Jaeger <aj@suse.de>
34177 * Makefile.in: Add $(DESTDIR).
34179 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
34181 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
34182 also when not defining if a Size clause applies. That information is
34185 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
34187 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
34188 symbolic links for the shared gnat run time when needed.
34190 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
34192 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
34193 for writing, and terminate with an error message if not.
34195 2004-01-15 Ed Schonberg <schonberg@gnat.com>
34197 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
34198 warning on an access to subprogram in an instance, when the target
34199 type is declared in the same generic unit.
34200 (Eval_Attribute): If 'access is known to fail accessibility check,
34201 rewrite as a raise statement.
34203 2004-01-15 GNAT Script <nobody@gnat.com>
34205 * Make-lang.in: Makefile automatically updated
34207 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
34209 * Make-lang.in (ada.srcextra): Dummy entry.
34211 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
34213 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
34215 2004-01-13 Ed Schonberg <schonberg@gnat.com>
34217 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
34218 components that are initialized with aggregates.
34220 2004-01-13 Vincent Celier <celier@gnat.com>
34222 * gnatlink.adb (Process_Binder_File): To find directory of shared
34223 libgcc, if "gcc-lib" is not a subdirectory, look for the last
34224 subdirectory "lib" in the path of the shared libgnat or libgnarl.
34226 * make.adb (Gnatmake): If GCC version is at least 3, link with
34227 -shared-libgcc, when there is at least one shared library project.
34229 * opt.ads (GCC_Version): New integer constant.
34231 * adaint.c (get_gcc_version): New function.
34233 2004-01-13 Robert Dewar <dewar@gnat.com>
34235 * sem_dist.adb, sem_res.adb, sem_util.adb,
34236 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
34237 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
34239 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
34241 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
34242 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
34245 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
34247 * misc.c: Remove trailing spaces.
34248 Update copyright notice missed in previous change.
34251 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
34254 * Makefile.generic: Update copyright.
34255 Add license notice.
34257 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
34258 of prefix/share/make.
34260 * Makefile.prolog: Update copyright.
34261 Add license notice.
34263 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
34265 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
34266 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
34267 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
34270 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
34273 2004-01-12 Javier Miranda <miranda@gnat.com>
34275 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
34276 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
34277 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
34278 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
34279 Component_Definition node.
34281 2004-01-12 Ed Falis <falis@gnat.com>
34283 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
34285 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
34287 * link.c: Change default libgnat kind to STATIC for FreeBSD.
34289 2004-01-12 Bernard Banner <banner@gnat.com>
34291 * Makefile.in: map 86numaux to a-numaux for x86_64
34293 2004-01-12 Ed Schonberg <schonberg@gnat.com>
34295 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
34296 generated to rename a generic actual, go to the actual itself, the
34297 subtype is not a user-visible entity.
34299 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
34300 part is a private subtype, reset the visibility of its full view, if
34301 any, to be consistent.
34304 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
34305 to use a generic package G as a formal package for another generic
34308 2004-01-12 Robert Dewar <dewar@gnat.com>
34310 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
34312 * usage.adb: Remove mention of obsolete -gnatwb switch
34313 Noticed during code reading
34315 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
34317 * 1ssecsta.adb: Minor changes for -gnatwa warnings
34319 2004-01-12 GNAT Script <nobody@gnat.com>
34321 * Make-lang.in: Makefile automatically updated
34323 2004-01-09 Mark Mitchell <mark@codesourcery.com>
34325 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
34327 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34329 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
34331 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
34333 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
34334 Update comment and copyright date.
34335 * stamp-xgnatug: Delete.
34337 2004-01-05 Robert Dewar <dewar@gnat.com>
34339 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
34340 be modified by the binder generated main program if the -D switch is
34343 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
34344 imported functions (since now we expect this to be done for imported
34347 * 5vtaprop.adb: Add several ??? for sections requiring more comments
34348 Minor reformatting throughout
34350 * 5zinit.adb: Minor reformatting
34351 Add 2004 to copyright date
34352 Minor changes to avoid -gnatwa warnings
34353 Correct some instances of using OR instead of OR ELSE (noted while
34354 doing reformatting)
34356 * sprint.adb: Minor updates to avoid -gnatwa warnings
34358 * s-secsta.ads, s-secsta.adb:
34359 (SS_Get_Max): New function to obtain high water mark for ss stack
34360 Default_Secondary_Stack is not a constant since it may be modified by
34361 the binder generated main program if the -D switch is used.
34363 * switch-b.adb: New -Dnnn switch for binder
34366 Make -gnatg imply all warnings currently in -gnatwa
34368 * vms_conv.adb: Minor reformatting
34369 Add 2004 to copyright notice
34370 Add 2004 to printed copyright notice
34372 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
34373 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
34374 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
34375 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
34376 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
34377 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
34378 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
34379 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
34380 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
34381 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
34382 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
34383 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
34384 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
34385 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
34386 checks.adb, clean.adb, cstand.adb, einfo.ads,
34387 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
34388 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
34389 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
34390 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
34391 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
34392 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
34393 Minor reformatting and code clean ups.
34394 Minor changes to prevent -gnatwa warnings
34396 * ali.adb: Minor reformatting and cleanup of code
34397 Acquire new SS indication of secondary stack use from ali files
34399 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
34400 (since now we expect this to be done for imported functions)
34402 * bindgen.adb: Generate call to modify default secondary stack size if
34405 * bindusg.adb: Add line for new -D switch
34407 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
34408 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
34409 Add circuitry for both records and arrays to avoid gigi
34410 processing if the type involved has non-bit-aligned components
34412 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
34413 N_String_Literal node always references an E_String_Literal_Subtype
34414 entity. This may not be true in the future.
34415 (Possible_Bit_Aligned_Component): Move processing of
34416 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
34418 * exp_ch6.adb (Expand_Thread_Body): Pick up
34419 Default_Secondary_Stack_Size as variable so that we get value modified
34420 by possible -Dnnn binder parameter.
34422 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
34423 (Type_May_Have_Bit_Aligned_Components): New function.
34425 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
34426 (Type_May_Have_Bit_Aligned_Components): New function.
34428 * fe.h: (Set_Identifier_Casing): Fix prototype.
34429 Add declaration for Sem_Elim.Eliminate_Error_Msg.
34430 Minor reformatting.
34432 * freeze.adb (Freeze_Entity): Add RM reference to error message about
34433 importing constant atomic/volatile objects.
34434 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
34435 unless explicit Pure_Function pragma given, to avoid insidious bug of
34436 call to non-pure imported function getting eliminated.
34438 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
34439 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
34440 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
34441 Add 2004 to printed copyright notice
34443 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
34446 * Makefile.rtl: Add entry for g-sestin.o
34447 g-sestin.ads: New file.
34449 * mdll.adb: Minor changes to avoid -gnatwa warnings
34451 * mlib-tgt.adb: Minor reformatting
34453 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
34454 New switch Sec_Stack_Used (GNAT, GNATBIND)
34455 Make Default_Secondary_Stack_Size a variable instead of a constant,
34456 so that it can be modified by the new -Dnnn bind switch.
34458 * rtsfind.adb (Load_Fail): Give full error message in configurable
34459 run-time mode if all_errors mode is set. This was not done in the case
34460 of a file not found, which was an oversight.
34461 Note if secondary stack unit is used by compiler.
34463 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
34464 ineffective elaborate all pragmas on non-visible packages (this
34465 happened when a renamed subprogram was called). Now the elaborate all
34466 always goes on the package containing the renaming rather than the one
34467 containing the renamed subprogram.
34469 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
34470 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
34472 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
34473 has an Etype that references an E_String_Literal.
34474 (Eval_String_Literal): Avoid assumption that N_String_Literal node
34475 always references an E_String_Literal_Subtype entity. This may not
34476 be true in the future.
34478 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
34481 * sem_res.adb (Resolve): Specialize msg for function name used in proc
34484 2004-01-05 Ed Falis <falis@gnat.com>
34486 * g-debuti.adb: Replaced direct boolean operator with short-circuit
34489 2004-01-05 Vincent Celier <celier@gnat.com>
34491 * bld.adb: Minor comment updates
34492 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
34495 * make.adb (Gnatmake): Special process for files to compile/check when
34496 -B is specified. Fail when there are only foreign mains in attribute
34497 Main of the project file and -B is not specified. Do not skip bind/link
34498 steps when -B is specified.
34500 * makeusg.adb: Document new switch -B
34502 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
34504 * switch-m.adb: (Scan_Make_Switches): Process -B switch
34506 * vms_data.ads: Add new GNAT PRETTY qualifier
34507 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
34509 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34511 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
34514 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
34515 Set_Identifier_Casing.
34517 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
34518 has size that overflows.
34520 2004-01-05 Gary Dismukes <dismukes@gnat.com>
34522 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
34523 -gnatwa warning on static condition.
34525 2004-01-05 Doug Rupp <rupp@gnat.com>
34527 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
34529 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
34531 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
34532 all attributes, including read-only attribute.
34534 2004-01-05 Pascal Obry <obry@gnat.com>
34536 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
34537 library naming scheme.
34539 * mlib-prj.adb (Build_Library): Generate different names for the static
34540 or dynamic version of the GNAT runtime. This is needed to support the
34541 new shared library naming scheme.
34542 (Process_Binder_File): Add detection of shared library in binder file
34543 based on the new naming scheme.
34545 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
34546 scheme for the shared runtime libraries.
34549 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
34551 (install-gnatlib): Do not create symlinks for shared libraries.
34552 (gnatlib-shared-default): Idem.
34553 (gnatlib-shared-dual-win32): New target. Not used for now as the
34554 auto-import feature does not support arrays/records.
34555 (gnatlib-shared-win32): Do not create copy for the shared libraries.
34556 (gnatlib-shared-vms): Fix shared runtime libraries names.
34558 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
34559 dependent runtime shared library name.
34561 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
34563 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
34566 2004-01-05 Ed Schonberg <schonberg@gnat.com>
34568 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
34569 protected objects when allocator has a subtype indication, not a
34570 qualified expression. Note that qualified expressions may have to be
34571 checked when limited aggregates are implemented.
34573 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
34574 pure, emit warning.
34575 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
34576 subprogram is imported, remove warning.
34578 2004-01-05 Geert Bosch <bosch@gnat.com>
34580 * s-poosiz.adb: Update copyright notice.
34581 (Allocate): Use Task_Lock to protect against concurrent access.
34582 (Deallocate): Likewise.
34584 2004-01-05 Joel Brobecker <brobecker@gnat.com>
34586 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
34589 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
34591 * gnat_ug.texi: Force a CVS commit by updating copyright.
34592 * gnat_ug_vxw.texi: Regenerate.
34593 * gnat_ug_wnt.texi: Regenerate.
34594 * gnat_ug_vms.texi: Regenerate.
34595 * gnat_ug_unx.texi: Regenerate.
34597 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
34599 * trans.c: Remove uses of "register" specifier in
34600 declarations of local variables.
34602 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
34604 * stamp-xgnatug: New stamp file.
34605 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
34606 (ada/doctools/xgnatug): Add $(build_exeext).
34607 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
34608 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
34610 2003-12-17 Ed Falis <falis@gnat.com>
34612 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
34615 * a-exextr.adb: Add context clause for
34616 Ada.Exceptions.Last_Chance_Handler.
34618 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
34620 * cstand.adb (Create_Standard): Change the way how the declaration of
34621 the Duration type is created (making it the same way as it is for all
34622 the other standard types).
34624 2003-12-17 Robert Dewar <dewar@gnat.com>
34626 * s-crtl.ads: Fix header format
34627 Change Pure to Preelaborate
34629 2003-12-17 Ed Schonberg <schonberg@gnat.com>
34631 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
34632 the expression type only if it is declared in the current unit.
34634 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
34635 are universal and already analyzed, as can occur in constrained
34636 subcomponents that depend on discriminants, when one constraint is a
34639 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
34640 type Any_Fixed is legal as the argument of a conversion, if only one
34641 fixed-point type is in context.
34643 2003-12-17 GNAT Script <nobody@gnat.com>
34645 * Make-lang.in: Makefile automatically updated
34647 2003-12-15 Robert Dewar <dewar@gnat.com>
34649 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
34652 2003-12-15 Vincent Celier <celier@gnat.com>
34654 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
34655 (Gnatchop): Do not set failure status when reporting the number of
34658 2003-12-15 Doug Rupp <rupp@gnat.com>
34660 * s-ctrl.ads: New file.
34662 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
34664 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
34665 (GNATBIND_OBJS): Add ada/s-crtl.o.
34667 * Makefile.in [VMS]: Clean up ifeq rules.
34669 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
34670 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
34671 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
34672 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
34673 s-tasdeb.adb: Update copyright.
34674 Import System.CRTL.
34675 Make minor modifications to use System.CRTL declared functions instead
34676 of importing locally.
34678 2003-12-15 GNAT Script <nobody@gnat.com>
34680 * Make-lang.in: Makefile automatically updated
34682 2003-12-11 Ed Falis <falis@gnat.com>
34684 * 5zinit.adb: Clean up.
34686 * 5zintman.adb (Notify_Exception): replaced case statement with a call
34687 to __gnat_map_signal, imported from init.c to support
34688 signal -> exception mappings that depend on the vxWorks version.
34691 Created and exported __gnat_map_signal to support signal -> exception
34692 mapping that is dependent on the VxWorks version.
34693 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
34695 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
34697 * 5wosinte.ads: Link with -mthreads switch.
34699 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
34701 * init.c (__gnat_install_handler [NetBSD]): Set
34702 __gnat_handler_installed, as done on all other platforms.
34703 Remove duplicated code.
34705 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
34707 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
34709 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
34711 * sinfo.ads: Fix inconsistent example code in comment.
34713 2003-12-11 Robert Dewar <dewar@gnat.com>
34715 * a-tiinau.adb: Add a couple of comments
34717 * sem_ch3.adb: Minor reformatting
34720 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
34721 Minor reformatting throughout
34723 2003-12-11 Ed Schonberg <schonberg@gnat.com>
34725 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
34726 bounds of a loop, create a separate block in order to generate proper
34727 cleanup actions to prevent memory leaks.
34729 * sem_res.adb (Resolve_Call): After a call to
34730 Establish_Transient_Scope, the call may be rewritten and relocated, in
34731 which case no further processing is needed.
34733 * sem_util.adb: (Wrong_Type): Refine previous fix.
34734 Fixes ACATS regressions.
34737 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
34740 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
34742 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
34743 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
34746 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
34749 2003-12-08 Robert Dewar <dewar@gnat.com>
34751 * 7sintman.adb: Minor reformatting
34753 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
34754 standard linker options to get standard libraries linked. We now plan
34755 to provide dummy versions of these libraries to match the appropriate
34756 configurable run-time (e.g. if a library is not needed at all, provide
34757 a dummy empty library).
34759 * targparm.ads: Configurable_Run_Time mode no longer affects linker
34760 options (-L parameters and standard libraries). What we plan to do is
34761 to provide dummy libraries where the libraries are not required.
34763 * gnatbind.adb: Minor comment improvement
34765 2003-12-08 Javier Miranda <miranda@gnat.com>
34767 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
34768 aggregate in the parent. Otherwise constants with limited aggregates
34769 are not supported. Add new formal to pass the component type (Ctype).
34770 It is required to call the corresponding IP subprogram in case of
34771 default initialized components.
34772 (Gen_Assign): In case of default-initialized component, generate a
34773 call to the IP subprogram associated with the component.
34774 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
34775 of aggregate with default initialized components.
34776 (Has_Default_Init_Comps): Improve implementation to recursively check
34777 all the present expressions.
34779 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
34780 to indicate that the initialization call corresponds to a
34781 default-initialized component of an aggregate.
34782 In case of default initialized aggregate with tasks this parameter is
34783 used to generate a null string (this is just a workaround that must be
34784 improved later). In case of discriminants, this parameter is used to
34785 generate a selected component node that gives access to the discriminant
34788 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
34789 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
34790 allocated aggregates with default-initialized components.
34792 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
34793 the box notation is used in positional aggregates.
34795 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
34797 * lib.ads: Fix typo in comment
34799 2003-12-08 Vincent Celier <celier@gnat.com>
34801 * prj.adb (Project_Empty): New component Unkept_Comments
34802 (Scan): Remove procedure; moved to Prj.Err.
34804 * prj.ads (Project_Data): New Boolean component Unkept_Comments
34805 (Scan): Remove procedure; moved to Prj.Err.
34807 * prj-dect.adb: Manage comments for the different declarations.
34809 * prj-part.adb (With_Record): New component Node
34810 (Parse): New Boolean parameter Store_Comments, defaulted to False.
34811 Set the scanner to return ends of line and comments as tokens, if
34812 Store_Comments is True.
34813 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
34814 comments are associated with these nodes. Store the node IDs in the
34816 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
34818 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
34819 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
34820 current project. Call Tree.Restore afterwards. Set the various nodes
34821 for comment storage (Next_End, End_Of_Line, Previous_Line,
34824 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
34825 defaulted to False.
34827 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
34828 to False. When Truncated is True, truncate the string, never go to the
34830 (Write_End_Of_Line_Comment): New procedure
34831 (Print): Process comments for nodes N_With_Clause,
34832 N_Package_Declaration, N_String_Type_Declaration,
34833 N_Attribute_Declaration, N_Typed_Variable_Declaration,
34834 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
34835 Process nodes N_Comment.
34837 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
34838 without comments and there are some comments, set the flag
34839 Unkept_Comments to True.
34840 (Scan): If there are comments, set the flag Unkept_Comments to True and
34841 clear the comments.
34842 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
34843 (Next_End_Nodes: New table
34844 (Comment_Zones_Of): New function
34845 (Scan): New procedure; moved from Prj. Accumulate comments in the
34846 Comments table and set end of line comments, comments after, after end
34848 (Add_Comments): New procedure
34849 (Save, Restore, Seset_State): New procedures
34850 (There_Are_Unkept_Comments): New function
34851 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
34852 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
34854 (First_Comment_After, First_Comment_After_End): New functions
34855 (First_Comment_Before, First_Comment_Before_End): New functions
34856 (Next_Comment): New function
34857 (End_Of_Line_Comment, Follows_Empty_Line,
34858 Is_Followed_By_Empty_Line): New functions
34859 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
34860 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
34861 (Set_Next_Comment): New procedure
34862 (Default_Project_Node): Associate comment before if the node can store
34865 * scans.ads (Token_Type): New enumeration value Tok_Comment
34866 (Comment_Id): New global variable
34868 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
34869 defaulted to False.
34870 (Scan): Store position of start of comment. If comments are tokens, set
34871 Comment_Id and set Token to Tok_Comment when scanning a comment.
34872 (Set_Comment_As_Token): New procedure
34874 * sinput-p.adb: Update Copyright notice
34875 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
34876 that no longer exists.
34878 2003-12-08 Javier Miranda <miranda@gnat.com>
34880 * sem_aggr.adb: Add dependence on Exp_Tss package
34881 Correct typo in comment
34882 (Resolve_Aggregate): In case of array aggregates set the estimated
34883 type of the aggregate before calling resolve. This is needed to know
34884 the name of the corresponding IP in case of limited array aggregates.
34885 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
34886 in case of default initialized array components.
34888 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
34889 types. Required to give support to limited aggregates in generic
34892 2003-12-08 Ed Schonberg <schonberg@gnat.com>
34894 * sem_ch3.adb (Check_Initialization): For legality purposes, an
34895 inlined body functions like an instantiation.
34896 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
34897 until bounds are analyzed, to diagnose premature use of type.
34899 * sem_util.adb (Wrong_Type): Improve error message when the type of
34900 the expression is used prematurely.
34902 2003-12-08 GNAT Script <nobody@gnat.com>
34904 * Make-lang.in: Makefile automatically updated
34906 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
34908 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
34909 they are automatically generated by Make-lang.in and cause nothing but
34910 maintenance troubles.
34912 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
34914 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
34915 version of this unit).
34917 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
34919 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
34920 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
34921 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
34922 the body of System.Interrupt_Management common to several targets.
34923 Update copyright notice when appropriate.
34925 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
34928 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
34929 to ensure that the kernel fills in the interrupted context structure
34930 before calling a signal handler, which is necessary to be able to
34931 unwind past it. Update the copyright notice.
34933 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
34935 * a-elchha.ads: New file.
34937 * a-elchha.adb: New default last chance handler. Contents taken from
34938 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
34940 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
34941 is moved to a-elchha.adb to provide a target-independent default last
34944 * Makefile.rtl: Add a-elchha.o
34946 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
34948 2003-12-05 Ed Schonberg <schonberg@gnat.com>
34950 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
34951 declared in an instance, do not inline the call if the instance is not
34952 frozen yet, to prevent order of elaboration problems.
34954 * sem_prag.adb: Add comments for previous fix.
34956 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
34958 * g-table.adb: Use the right variable in Set_Item.
34959 Update copyright notice.
34961 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
34963 * Makefile.in: Remove unused rules.
34965 2003-12-05 Vincent Celier <celier@gnat.com>
34967 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
34968 -nostdlib. Not needed here after all.
34970 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
34973 * adaint.h, adaint.c, g-os_lib.ads:
34974 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
34975 on some platforms (including FreeBSD), it is a 64 bit value.
34976 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
34978 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
34980 * gnatvsn.ads (Library_Version): Now contain only the relevant
34982 (Verbose_Library_Version): New constant.
34984 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
34985 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
34986 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
34988 * gnatlbr.adb: Clean up: replace Library_Version by
34989 Verbose_Library_Version.
34991 * make.adb, lib-writ.adb, exp_attr.adb:
34992 Clean up: replace Library_Version by Verbose_Library_Version.
34994 * 5lintman.adb: Removed.
34997 Update and simplify computation of LIBRARY_VERSION.
34998 Fix computation of GSMATCH_VERSION.
34999 5lintman.adb is no longer used: replaced by 7sintman.adb.
35001 2003-12-03 Robert Dewar <dewar@gnat.com>
35004 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
35005 name. Modified to consider small non-bit-packed arrays as troublesome
35006 and in need of component-by-component assigment expansion.
35008 2003-12-03 Vincent Celier <celier@gnat.com>
35010 * lang-specs.h: Process nostdlib as nostdinc
35012 * back_end.adb: Update Copyright notice
35013 (Scan_Compiler_Arguments): Process -nostdlib directly.
35015 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
35018 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
35019 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
35020 included in HIE_NONE_TARGET_PAIRS.
35022 2003-12-03 Ed Schonberg <schonberg@gnat.com>
35025 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
35026 is legal in an instance, because legality is cheched in the template.
35029 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
35030 appplied to an unchecked conversion of a formal parameter.
35033 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
35036 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
35038 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
35039 routines. The second one is new functionality to deal with backtracing
35040 through signal handlers.
35041 (unwind): Split into the two separate subroutines above.
35042 Update the documentation, and deal properly with sizeof (REG) different
35043 from sizeof (void*).
35045 2003-12-01 Nicolas Setton <setton@act-europe.fr>
35047 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
35048 so that the debugger can reliably access the value of the parameter,
35049 and therefore is able to display the exception name when an exception
35050 breakpoint is reached.
35052 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
35054 * fmap.adb: Fix typo in warning message.
35056 * g-socket.ads, g-socket.adb: Make Free a visible instance of
35057 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
35059 2003-12-01 Vincent Celier <celier@gnat.com>
35061 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
35063 (Build_Library): Get the switches only if Default_Switches is declared
35066 2003-12-01 Ed Schonberg <schonberg@gnat.com>
35068 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
35069 actuals that are indexed components, reanalyze actual to ensure that
35070 packed array references are properly expanded.
35072 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
35073 attempted assignment to a discriminant.
35075 2003-12-01 Robert Dewar <dewar@gnat.com>
35077 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
35080 * switch-c.adb: Minor reformatting of comments
35082 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35084 * Makefile.in: Clean ups.
35086 2003-12-01 GNAT Script <nobody@gnat.com>
35088 * Make-lang.in: Makefile automatically updated
35090 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35092 * 5wsystem.ads: Disable zero cost exception, not ready yet.
35094 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
35096 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
35097 to force serialization.
35099 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
35101 * g-socket.ads, g-socket.adb:
35102 Clarify documentation of function Stream. Introduce a Free procedure
35103 to release the returned Stream once it becomes unused.
35105 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
35107 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
35109 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
35110 since NT 4 cannot handle timeout values that are too large,
35111 e.g. DWORD'Last - 1.
35113 2003-11-26 Ed Schonberg <schonberg@gnat.com>
35116 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
35117 in procedure calls and whose expansion must be deferred.
35119 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
35123 (Build_Derived_Array_Type): Create operator for unconstrained type
35124 if ancestor is unconstrained.
35126 2003-11-26 Vincent Celier <celier@gnat.com>
35128 * make.adb (Project_Object_Directory): New global variable
35129 (Change_To_Object_Directory): New procedure
35130 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
35131 of Change_Dir directly. Do not change working directory to object
35132 directory of main project after each compilation.
35133 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
35135 Change to object directory of main project before binding step.
35136 (Initialize): Initialize Project_Object_Directory to No_Project
35139 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
35140 binding a Stand-Alone Library.
35142 * output.adb: Update Copyright notice
35143 (Write_Char): Output buffer when full
35145 2003-11-26 Robert Dewar <dewar@gnat.com>
35147 * sem_ch13.adb: (Check_Size): Reset size if size is too small
35150 (Check_Size): Fix documentation to include bit-packed array case
35152 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
35154 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
35156 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
35158 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
35161 * utils.c (init_gigi_decls): Change name of built-in setjmp to
35162 __builtin_setjmp, since this is apparently needed by recent
35165 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35167 * adadecode.c: Only include ctype.h if not IN_GCC.
35168 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
35170 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
35173 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
35174 signals and interrupts.
35176 * 5zintman.ads: New File.
35178 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
35179 add exception signals to the set of unmasked signals.
35182 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
35183 between signals and interrupts.
35184 Add to Unblocked_Signal_Mask the set of signals that are in
35188 Adding a check to see whether the Interrupt_ID we want to unmask is in
35189 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
35190 reason is that the index type of the Keep_Unmasked array is not always
35191 Interrupt_ID; it may be a subtype of Interrupt_ID.
35193 2003-11-24 Gary Dismukes <dismukes@gnat.com>
35196 (Remove_Side_Effects): Condition constantness of object created for a
35197 an unchecked type conversion on the constantness of the expression
35198 to ensure the correct value for 'Constrained when passing components
35199 of view-converted class-wide objects.
35201 2003-11-24 Robert Dewar <dewar@gnat.com>
35203 * par-load.adb (Load): Improve handling of misspelled and missing units
35204 Removes several cases of compilation abandoned messages
35206 * lib.adb: (Remove_Unit): New procedure
35208 * lib.ads: (Remove_Unit): New procedure
35210 * lib-load.adb: Minor reformatting
35212 2003-11-24 Vincent Celier <celier@gnat.com>
35215 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
35216 (Marking_Label): Label to mark processed source files. Incremented for
35218 (Gnatmake): Increase Marking_Labet for each executable
35219 (Is_Marked): Compare against marking label
35220 (Mark): Mark with marking label
35222 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
35225 Move the declaration of the TSD for System.Threads to System.Soft_Links.
35228 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
35229 (rts-cert): build a single relocatable object for the run-time lib.
35232 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
35235 Use gnatls rather than gcc to obtain the location of GNAT RTL for
35238 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
35240 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
35241 can not use it as before (that is, as a variable) when dumping it into
35242 the tree file. Add a local variable to store the result of this
35243 function and to be used as the string to be written into the tree.
35245 * scn.adb (Initialize_Scanner): Add comments explaining the recent
35248 * sinput.adb (Source_First, Source_Last): In case of
35249 Internal_Source_File, replace returning attributes of
35250 Internal_Source_Ptr (which is wrong) with returning attributes of
35253 2003-11-24 Ed Schonberg <schonberg@gnat.com>
35256 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
35257 used for implicit concatenation operators.
35261 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
35262 task bodies that are in the scope of a Suppress pragma.
35263 (Check_A Call): Use the flag to prevent spurious elaboration checks.
35265 * sinfo.ads, sinfo.adb:
35266 New flag No_Elaboration_Check on function/procedure calls, to properly
35267 suppress checks on calls in task bodies that are within a local suppress
35271 (Expand_Concatenate_Other): Use the proper integer type for the
35272 expression for the upper bound, to avoid universal_integer computations
35275 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
35277 * .cvsignore: Delete.
35279 2003-11-21 Andreas Schwab <schwab@suse.de>
35281 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
35283 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
35285 * 5wsystem.ads: Enable zero cost exception.
35287 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
35289 * 5ztiitho.adb: Remove an unreferenced variable.
35291 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
35293 * adaint.c: For FreeBSD, use mkstemp.
35295 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
35297 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
35299 2003-11-21 Robert Dewar <dewar@gnat.com>
35301 * bld.adb: Remove useless USE of gnatvsn
35303 * gnatchop.adb: Minor reformatting
35304 Clean up version handling to be more consistent
35306 * gnatxref.adb: Minor reformatting
35308 * gprcmd.adb: Minor reformatting
35309 Fix output of copyright to be more consistent with other tools
35311 2003-11-21 Vincent Celier <celier@gnat.com>
35313 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
35315 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
35317 * atree.adb (Initialize): Add initializations for global variables
35318 used in New_Copy_Tree.
35320 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
35321 Internal_Source_File as the actual).
35322 Put the set of statements creating Any_Character before the set of
35323 statements creating Any_Array to have Any_Character fully initialized
35324 when it is used in creating Any_Array.
35326 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
35327 not call Scan in case if the actual is Internal_Source_File
35328 Add 2003 to copyright note.
35330 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
35331 processing Internal_Source_File.
35333 * types.ads: Add the constant Internal_Source_File representing the
35334 source buffer for artificial source-code-like strings created within
35335 the compiler (the definition of Source_File_Index is changed).
35337 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
35339 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
35340 56system.ads: New file, FreeBSD version.
35342 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
35344 * Make-lang.in (ada.extraclean): Delete.
35346 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
35348 * gnatmem.adb: Clean up verbose output.
35350 * gprcmd.adb: Change copyright to FSF.
35352 2003-11-19 Vincent Celier <celier@gnat.com>
35354 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
35355 and Version (ignored).
35357 * symbols.ads: (Policy): New type
35358 (Initialize): New parameter Reference, Symbol_Policy and
35360 Remove parameter Force.
35361 Minor reformatting.
35363 * snames.ads, snames.adbadb: New standard names
35364 Library_Reference_Symbol_File and Library_Symbol_Policy
35367 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
35371 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
35373 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
35375 * prj.adb: (Project_Empty): New component Symbol_Data
35377 * prj.ads: (Policy, Symbol_Record): New types
35378 (Project_Data): New component Symbol_Data
35381 New attributes Library_Symbol_File, Library_Symbol_Policy and
35382 Library_Reference_Symbol_File.
35385 (Ada_Check): When project is a Stand-Alone library project, process
35386 attribute Library_Symbol_File, Library_Symbol_Policy and
35387 Library_Reference_Symbol_File.
35389 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
35390 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
35391 5sml-tgt.adb (Build_Dynamic_Library): New parameter
35392 Symbol_Data (ignored).
35394 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
35395 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
35396 functions Option_File_Name and Version_String. Set new options of
35397 gnatsym related to symbol file, symbol policy and reference symbol
35401 Extensive modifications to take into account the reference symbol file,
35402 the symbol policy, the library version and to put in the symbol file the
35403 minor and major IDs.
35405 * bld.adb (Process_Declarative_Items): Put second argument of
35406 gprcmd to_absolute between single quotes, to avoid problems with
35409 * bld-io.adb: Update Copyright notice.
35410 (Flush): Remove last character of a line, if it is a back slash, to
35411 avoid make problems.
35414 Implement new scheme with reference symbol file and symbol policy.
35416 * g-os_lib.ads: (Is_Directory): Clarify comment
35418 2003-11-19 Robert Dewar <dewar@gnat.com>
35420 * atree.adb: Move New_Copy_Tree global variables to head of package
35422 * errout.adb: Minor reformatting
35424 2003-11-19 Javier Miranda <miranda@gnat.com>
35426 * sem_ch4.adb: (Diagnose_Call): Improve error message.
35427 Add reference to Ada0Y (AI-50217)
35429 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
35430 sem_util.adb: Add reference to AI-50217
35432 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
35434 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
35436 * sem_aggr.adb: Complete documentation of AI-287 changes
35438 * par-ch4.adb: Document previous changes.
35440 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
35441 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
35444 * exp_aggr.adb: Add references to AI-287 in previous changes
35446 2003-11-19 Ed Schonberg <schonberg@gnat.com>
35449 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
35450 in the rewriting is the result of an inlined call.
35452 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
35453 parameter is a type conversion, use original node to construct the
35454 post-call assignment, because expression may have been rewritten, e.g.
35455 if it is a packed array.
35458 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
35459 body, just as it is in an instance.
35460 Categorization routines
35462 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
35463 Instantiate_Object): Set proper sloc reference for message on missing
35466 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
35468 * Makefile.in: Add FreeBSD libgnat pairs.
35470 * usage.adb: Fix typo in usage message.
35472 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
35474 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
35475 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
35476 pragma Thread_Body.
35477 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
35479 * s-thread.adb: This file is now a dummy implementation of
35482 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
35484 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
35486 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
35488 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35489 instanciation references in the parent type description.
35491 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35493 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
35495 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
35496 TYPE_PRECISION directly from esize.
35498 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
35501 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
35503 * init.c: Initialization routines for FreeBSD
35505 * link.c: Link info for FreeBSD
35507 * sysdep.c: Add the case of FreeBSD
35509 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
35511 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
35512 already called in System.Threads.
35514 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
35515 environment task, as it has been moved to System.Threads.Initialization.
35517 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
35519 * adaint.c (__gnatlib_install_locks): Only reference
35520 __gnat_install_locks on VMS, since other platforms can avoid using
35521 --enable-threads=gnat
35523 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35525 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
35527 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
35528 TYPE_PACKED_ARRAY_TYPE_P.
35529 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
35531 Part of PR ada/12806
35532 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
35533 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
35535 2003-11-17 Vincent Celier <celier@gnat.com>
35537 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
35539 Do not set exit status to Failure when Warning is True.
35540 (Gnatchop): Make errors "no compilation units found" and
35541 "no source files written" warnings only.
35543 * make.adb (Gnatmake): When using a project file, set
35544 Look_In_Primary_Dir to False.
35545 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
35546 and Local_Configuration_Pragmas in the project where they are declared
35547 not an extending project which might have inherited them.
35549 * osint.adb (Locate_File): If Name is already an absolute path, do not
35550 look for a directory.
35552 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
35553 -gnats (Check_Syntax) is used, issue only a warning, not an error.
35555 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
35556 in objects of type Variable_Value.
35558 * prj.ads: (Variable_Value): New component Project
35560 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
35561 is in a project extended by Project.
35563 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
35564 Project of Variable_Values to this new parameter value.
35565 (Expression): Set component Project of Variable_Values.
35566 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
35567 Set the component Project in array elements.
35569 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
35571 * errout.adb: (Initialize): Add initialization for error nodes.
35573 * sem_ch12.adb (Initialize): Add missing initializations for
35574 Exchanged_Views and Hidden_Entities.
35576 2003-11-17 Ed Schonberg <schonberg@gnat.com>
35578 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
35579 already instantiated tree for use in subsequent inlining.
35580 (Analyze_Associations, Instantiate_Formal_Subprogram,
35581 Instantiate_Object): improve error message for mismatch in
35584 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
35585 instantiations of subprograms declared in instances.
35587 2003-11-17 Javier Miranda <miranda@gnat.com>
35589 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
35590 executed only under the Extensions_Allowed flag.
35592 2003-11-17 Robert Dewar <dewar@gnat.com>
35594 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
35596 (Address_Image): Fix bug of returning 0x instead of 0x0
35597 Minor reformatting (function specs).
35599 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
35600 (missed case of 33-63)
35602 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
35604 * s-thread.adb: Add comments for pragma Restriction
35606 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
35607 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
35609 2003-11-17 Ed Falis <falis@gnat.com>
35611 * s-thread.adb: Added No_Tasking restriction for this implementation.
35613 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
35615 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35616 instanciation references in the parent type description.
35618 2003-11-17 GNAT Script <nobody@gnat.com>
35620 * Make-lang.in: Makefile automatically updated
35622 2003-11-16 Jason Merrill <jason@redhat.com>
35624 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
35625 and TAGS files that include them for each front end.
35627 2003-11-14 Andreas Jaeger <aj@suse.de>
35629 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
35630 is the canonical version.
35631 * misc.c (gnat_handle_option): Likewise.
35633 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
35635 * 5nsystem.ads: New file for x86_64-linux-gnu.
35637 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
35639 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
35641 * comperr.adb: Fix logic in previous change.
35643 2003-11-13 Vincent Celier <celier@gnat.com>
35645 * 5bml-tgt.adb (Build_Dynamic_Library): Use
35646 Osint.Include_Dir_Default_Prefix instead of
35647 Sdefault.Include_Dir_Default_Name.
35649 * gnatlbr.adb: Update Copyright notice
35650 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
35651 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
35652 instead of Sdefault.Object_Dir_Default_Name
35655 (Process_Binder_File): Never suppress the option following -Xlinker
35658 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
35659 Sdefault.Object_Dir_Default_Name.
35661 * osint.ads, osint.adb:
35662 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
35663 Minor reformatting.
35665 * vms_conv.ads: Minor reformating
35666 Remove GNAT STANDARD and GNAT PSTA
35669 Allow GNAT MAKE to have several files on the command line.
35670 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
35671 Sdefault.Object_Dir_Default_Name.
35673 Remove data for GNAT STANDARD
35676 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
35677 Remove data for GNAT STANDARD
35678 Remove options and documentation for -gnatwb/-gnatwB: these warning
35679 options no longer exist.
35681 2003-11-13 Ed Falis <falis@gnat.com>
35683 * 5zthrini.adb: (Init_RTS): Made visible
35686 (Register): Removed unnecessary call to taskVarGet that checked whether
35687 an ATSD was already set as a task var for the argument thread.
35690 Updated comment to reflect that this is a VxWorks version
35691 Added context clause for System.Threads.Initialization
35692 Added call to System.Threads.Initialization.Init_RTS
35694 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
35697 (Init_RTS): New procedure, for the initialization of the run-time lib.
35700 Remove dependancy on System.Init, so that this file can be used in the
35701 AE653 sequential run-time lib.
35703 2003-11-13 Robert Dewar <dewar@gnat.com>
35705 * bindgen.adb: Minor reformatting
35707 2003-11-13 Ed Schonberg <schonberg@gnat.com>
35710 (Apply_Discriminant_Check): Do no apply check if target type is derived
35711 from source type with no applicable constraint.
35714 (Ensure_System_Dependency): Do not apply the style checks that may have
35715 been specified for the main unit.
35718 (Find_Selected_Component): Further improvement in error message, with
35722 (Resolve): Handle properly the case of an illegal overloaded protected
35725 2003-11-13 Javier Miranda <miranda@gnat.com>
35728 (Has_Default_Init_Comps): New function to check the presence of
35729 default initialization in an aggregate.
35730 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
35731 extension aggregate of a limited record. In addition, a new formal
35732 was added to do not initialize the record controller (if any) during
35733 this recursive expansion of ancestors.
35734 (Init_Controller): Add support for limited record components.
35735 (Expand_Record_Aggregate): In case of default initialized components
35736 convert the aggregate into a set of assignments.
35738 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
35739 describing the new syntax.
35740 Nothing else needed to be done because this subprogram delegates part of
35741 its work to P_Precord_Or_Array_Component_Association.
35742 (P_Record_Or_Array_Component_Association): Give support to the new
35743 syntax for default initialization of components.
35746 (Resolve_Aggregate): Relax the strictness of the frontend in case of
35747 limited aggregates.
35748 (Resolve_Record_Aggregate): Give support to default initialized
35750 (Get_Value): In case of default initialized components, duplicate
35751 the corresponding default expression (from the record type
35752 declaration). In case of default initialization in the *others*
35753 choice, do not check that all components have the same type.
35754 (Resolve_Extension_Aggregate): Give support to limited extension
35758 (Check_Initialization): Relax the strictness of the front-end in case
35759 of aggregate and extension aggregates. This test is now done in
35760 Get_Value in a per-component manner.
35762 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
35763 expression corresponds to a limited aggregate. This test is now done
35766 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
35769 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
35770 present in an N_Component_Association node
35772 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
35774 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
35775 type-conformant entry only if they are homographs.
35777 2003-11-13 GNAT Script <nobody@gnat.com>
35779 * Make-lang.in: Makefile automatically updated
35781 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35783 * adadecode.c: Use <> form of include for ctype.h.
35784 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
35786 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35788 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
35789 Works around PR middle-end/6552.
35791 2003-11-10 Ed Falis <falis@gnat.com>
35793 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
35795 * 5zinit.adb: (Install_Handler): Moved back to spec
35796 (Install_Signal_Handlers): Deleted
35798 * 5zthrini.adb: Added context clause for System.Storage_Elements
35799 (Register): Only handles creation of taskVar; initialization moved to
35801 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
35802 Added declaration of environment task secondary stack and
35805 * s-thread.adb: Implement bodies for thread body processing
35808 Added comment identifying supported targets for pragma Thread_Body.
35810 2003-11-10 Pascal Obry <obry@gnat.com>
35812 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
35816 (Open): Properly check for string length before copying into the buffer.
35817 Raises Name_Error if buffer is too small. Note that this was a potential
35820 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
35822 * bindgen.adb, comperr.adb: Code clean ups.
35823 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
35825 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
35827 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
35829 2003-11-10 Vincent Celier <celier@gnat.com>
35832 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
35835 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
35837 * prj.adb: (Project_Empty): Add new boolean component Virtual
35839 * prj.ads: (Virtual_Prefix): New constant string
35840 (Project_Data): New boolean component Virtual
35842 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
35843 a library project is extended by a virtual extending project.
35846 Modifications throughout to implement extending-all project, including:
35847 (Virtual_Hash, Processed_Hash): New hash tables
35848 (Create_Virtual_Extending_Project): New procedure
35849 (Look_For_Virtual_Projects_For): New procedure
35852 (Process): After checking the projects, if main project is an
35853 extending-all project, set the object directory of all virtual extending
35854 project to the object directory of the main project.
35855 Adjust error message when a virtual extending project has the same
35856 object directory as an project being extended.
35857 (Recursive_Process): If name starts with the virtual prefix, set Virtual
35858 to True in the project data.
35861 (Default_Project_Node): Add new boolean component Extending_All
35862 (Is_Extending_All): New function
35863 (Set_Is_Extending_All): New procedure
35865 * prj-tree.ads: (Is_Extending_All): New function
35866 (Set_Is_Extending_All): New procedure
35867 (Project_Node_Record): New boolean component Extending_All
35869 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
35872 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
35874 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
35875 "gprcmd prefix" to define it.
35877 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
35879 * einfo.ads: Fix a typo and remove an extraneous word in comments.
35882 (Create_Dummy_Package_Unit): Set the scope of the entity for the
35883 created dummy package to Standard_Standard, not to itself, to
35884 defend other parts of the front-end against encoutering a cycle in
35888 (Analyze_With_Clause): When setting the entities for the successive
35889 N_Expanded_Names that constitute the name of a child unit, do not
35890 attempt to go further than Standard_Standard in the chain of scopes.
35891 This case arises from the placeholder units created by
35892 Create_Dummy_Package_Unit in the case of a with_clause for a
35893 nonexistent child unit.
35895 2003-11-10 Ed Schonberg <schonberg@gnat.com>
35898 (Expand_Thread_Body): Place subprogram on scope stack, so that new
35899 declarations are given the proper scope.
35902 (Check_Expr_Constants): Reject an expression that contains a constant
35903 created during expansion, and that appears after the object to which
35904 the address clause applies.
35906 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
35907 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
35908 that uses 'Range of a function call with controlled components, so
35909 that the function result can be finalized before starting the loop.
35912 (Find_Selected_Component): Improve error message when prefix is
35913 an implicit dereference of an incomplete type.
35915 2003-11-10 Robert Dewar <dewar@gnat.com>
35917 * opt.ads: New Print_Standard flag for -gnatS switch
35919 * sem_ch13.adb: Remove some additional checks for unaligned arrays
35921 * cstand.adb (Create_Standard): Print out package standard if -gnatS
35924 * debug.adb: Update doc for -gnatds to discuss relationship with new
35927 * sinfo.adb: Add new field Entity_Or_Associated_Node
35929 * sinfo.ads: Add new field Entity_Or_Associated_Node
35930 Update documentation for Associated_Node and Entity fields to clarify
35931 relationship and usage.
35934 (Write_Id): Properly process Associated_Node field in generic template
35937 Recognize new -gnatS switch for printing package Standard
35938 This replaces gnatpsta
35941 Add line for new -gnatS switch for printing package Standard
35942 This replaces gnatpsta
35944 2003-11-10 Andreas Jaeger <aj@suse.de>
35946 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
35949 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
35951 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
35954 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
35956 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
35959 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
35961 * sysdep.c: Add handling of cygwin.
35963 2003-11-10 GNAT Script <nobody@gnat.com>
35965 * Make-lang.in: Makefile automatically updated
35967 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
35970 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
35971 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
35972 Replace GNAT_ROOT by GCC_ROOT.
35974 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
35976 2003-11-06 Zack Weinberg <zack@codesourcery.com>
35978 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
35979 and update for changed meaning of GET_MODE_BITSIZE.
35981 2003-11-04 Doug Rupp <rupp@gnat.com>
35983 * sysdep.c: Problem discovered during IA64 VMS port.
35984 [VMS] #include <unixio.h> to get proper prototypes.
35987 Issues discovered/problems fixed during IA64 VMS port.
35988 [VMS] #define _POSIX_EXIT for proper semantics.
35989 [VMS] #include <unixio.h> for proper prototypes.
35990 [VMS] (fork): #define IA64 version.
35991 (__gnat_os_exit): Remove unnecessary VMS specific code.
35993 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35995 Part of PR ada/12806
35996 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
36000 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
36003 * targtyps.c, decl.c, misc.c,
36004 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
36005 routines to work around change in FP sizing semantics in GCC.
36008 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
36010 * gigi.h: (enumerate_modes): New function.
36012 * Make-lang.in: (ada/misc.o): Add real.h.
36014 * misc.c: (enumerate_modes): New function.
36016 2003-11-04 Robert Dewar <dewar@gnat.com>
36018 * 3vtrasym.adb: Minor reformatting
36019 Use terminology encoded/decoded name, rather than C++ specific notion
36020 of mangling (this is the terminology used throughout GNAT).
36022 * einfo.h: Regenerated
36024 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
36027 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
36029 * par-prag.adb: Add dummy entry for Thread_Body pragma
36032 Add entries for System.Threads entities for thread body processing
36035 (Analyze_Pragma, Access attributes): Check these are not applied to a
36036 thread body, since this is not permitted
36038 * sem_prag.adb: Add processing for Thread_Body pragma.
36042 (Resolve_Call): Check for incorrect attempt to call a thread body
36043 procedure with a direct call.
36045 * snames.ads, snames.adb: Add entry for Thread_Body pragma
36046 Add names associated with thread body expansion
36048 * snames.h: Add entry for Thread_Body pragma
36050 * s-thread.adb: Add entries for thread body processing
36051 These are dummy bodies so far
36053 * s-thread.ads: Add documentation on thread body handling.
36054 Add entries for thread body processing.
36056 2003-11-04 Javier Miranda <miranda@gnat.com>
36059 (Build_Limited_Views): Return after posting an error in case of limited
36060 with_clause on subprograms, generics, instances or generic renamings
36061 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
36062 on subprograms, generics, instances or generic renamings
36064 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
36066 * raise.c (setup_to_install): Correct mistake in last revision; two
36067 arguments out of order.
36069 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
36070 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
36071 notice, missed in previous change.
36072 Remove trailing blanks and other style errors introduced in previous
36075 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
36077 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
36078 rid of the wrapper for a LJM type, ensuring we don't do that if the
36079 field is addressable. This avoids potential low level type view
36080 mismatches later on, for instance in a by-reference argument passing
36083 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36085 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
36086 aligned at byte boundary.
36088 2003-11-04 Joel Brobecker <brobecker@gnat.com>
36090 * decl.c (components_to_record): Do not delete the empty variants from
36091 the end of the union type.
36093 2003-11-04 Ed Schonberg <schonberg@gnat.com>
36095 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
36096 operation for a derived type, an explicit declaration may use a local
36097 subtype of Boolean.
36099 2003-11-04 Vincent Celier <celier@gnat.com>
36101 * make.adb (Gnatmake): Allow main sources on the command line with a
36102 library project when it is only for compilation (no binding or
36105 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36107 * Makefile.in: Remove many duplicate variables.
36109 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
36111 * Make-lang.in (dvi): Move targets to $(docobjdir).
36112 (gnat_ug_vms.dvi): Simplify rule and adjust target.
36113 (gnat_ug_wnt.dvi): Likewise.
36114 (gnat_ug_unx.dvi): Likewise.
36115 (gnat_ug_vxw.dvi): Likewise.
36116 (gnat_rm.dvi): Likewise.
36117 (gnat-style.dvi): Likewise.
36119 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
36121 * gigi.h: Missed commit from update for C90.
36123 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
36125 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
36127 2003-10-31 Andreas Schwab <schwab@suse.de>
36129 * raise.c (get_action_description_for): Fix typo in last change.
36131 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
36134 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
36135 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
36137 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
36139 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
36140 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
36141 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
36142 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
36143 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
36145 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
36148 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
36149 numbers when symbol name is too long.
36151 2003-10-30 Ed Falis <falis@gnat.com>
36153 * g-signal.ads, g-signal.adb: New files
36155 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
36157 * Makefile.rtl: Introduce GNAT.Signals
36159 2003-10-30 Robert Dewar <dewar@gnat.com>
36161 * freeze.adb: Minor reformatting
36163 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
36165 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
36166 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
36167 New handling of Id_Check parameter to improve recognition of keywords
36168 used as identifiers.
36169 Update copyright notice to include 2003
36171 2003-10-29 Robert Dewar <dewar@gnat.com>
36173 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
36174 sem_ch10.adb: Minor reformatting
36176 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
36177 (Expand_Assign_Record): Test right hand side for bit unaligned as well
36179 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
36181 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
36182 Support for TBK$SYMBOLIZE-based symbolic traceback.
36184 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
36187 Revert previous change, that did not work well when pragma No_Run_Time
36188 was used in conjunction with a run-time other than ZFP.
36190 2003-10-29 Vincent Celier <celier@gnat.com>
36193 (Gnatmake): When there are no Ada mains in attribute Main, disable the
36194 bind and link steps only is switch -z is not used.
36196 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
36198 * Makefile.generic: Remove duplicated setting of CC.
36200 * Makefile.prolog: Set CC to gcc by default, to override make's
36203 * einfo.h: Regenerated.
36205 2003-10-29 Ed Schonberg <schonberg@gnat.com>
36207 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
36208 current body, after compiling subunit.
36210 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
36211 when in deleted code, because gigi needs properly ordered freeze
36212 actions to annotate types.
36214 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
36215 prevent the premature freezing of record type that contains
36216 subcomponents with a private type that does not yet have a completion.
36218 2003-10-29 Javier Miranda <miranda@gnat.com>
36221 (Analyze_Package_Instantiation): Check that instances can not be used in
36222 limited with_clauses.
36225 (Analyze_Package_Renaming): Check that limited withed packages cannot
36226 be renamed. Improve text on error messages related to limited
36229 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
36231 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
36232 Update copyright notice.
36234 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
36235 (Install_Limited_Context_Clauses): New subprogram that isolates all the
36236 checks required for limited context_clauses and installs the limited
36238 (Install_Limited_Withed_Unit): Complete its documentation.
36239 (Analyze_Context): Check that limited with_clauses are only allowed in
36241 (Install_Context): Call Install_Limited_Context_Clauses after the
36242 parents have been installed.
36243 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
36244 package as 'From_With_Type'; this mark indicates that the limited view
36245 is installed. Used to check bad usages of limited with_clauses.
36246 (Build_Limited_Views): Do not add shadow entities to the scope's list
36247 of entities. Do not add real entities to the Non_Limited_Views chain.
36248 Improve error notification.
36249 (Remove_Context_Clauses): Remove context clauses in two phases:
36250 limited views first and regular views later (to maintain the
36252 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
36253 its visible entities.
36255 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
36257 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
36258 with any type that Is_Fixed_Point_Type.
36260 * sinfo.ads: Fix documentation for Associated_Node attribute.
36262 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
36264 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
36265 both '-gnatc' and '-gnatt' are specified.
36267 * atree.adb (Initialize): Add initialization for Node_Count (set to
36270 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36272 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
36273 do not consider as Pure.
36275 Part of implementation of function-at-a-time:
36277 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
36278 (tree_transform): Add new argument to build_component_ref.
36279 (tree_transform, case N_Assignment_Statement): Make and return an
36281 (tree_transform): If result IS_STMT, set flags and return it.
36282 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36284 * utils2.c (build_simple_component_ref, build_component_ref): Add new
36286 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
36287 (build_allocator): Likewise.
36289 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
36290 Add new arg to build_component_ref.
36291 (maybe_unconstrained_array, unchecked_convert): Likewise.
36293 * ada-tree.def (EXPR_STMT): New code.
36295 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
36297 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
36298 build_component_ref calls.
36300 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
36302 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36303 (build_component_ref): Add new argument, NO_FOLD_P.
36305 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
36307 * Makefile.generic: Add missing substitution on object_deps handling.
36310 * Make-lang.in (check-ada): Enable ACATS test suite.
36312 2003-10-27 Robert Dewar <dewar@gnat.com>
36315 (Freeze_Array_Type): We do not need an initialization routine for types
36316 derived from String or Wide_String. They should be treated the same
36317 as String and Wide_String themselves. This caused problems with the
36318 use of Initialize_Scalars.
36321 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
36322 composites. This allows use of component clauses that are not byte
36326 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
36327 is an attempt to pack an array of atomic objects.
36329 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
36331 2003-10-27 Pascal Obry <obry@gnat.com>
36334 (Basename): Check for drive letters in a pathname only on DOS based OS.
36336 2003-10-27 Vincent Celier <celier@gnat.com>
36339 (Gnatmake): When unable to change dir to the object dir, display the
36340 content of the parent dir of the obj dir, to try to understand why this
36343 2003-10-27 GNAT Script <nobody@gnat.com>
36345 * Make-lang.in: Makefile automatically updated
36347 2003-10-27 Ed Schonberg <schonberg@gnat.com>
36350 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
36351 should not be done in Save/Restore_Scope_Stack, because it is performed
36355 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36356 whether use clauses should be removed/restored.
36359 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36360 whether use clauses should be removed/restored.
36362 2003-10-26 Andreas Jaeger <aj@suse.de>
36364 * Makefile.in: Remove duplicated lines.
36366 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36368 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
36369 minimize the differences with ACT tree.
36371 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
36372 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
36373 Gnatvsn.Gnat_Static_Version_String to reduce differences between
36376 2003-10-24 Pascal Obry <obry@gnat.com>
36379 * adadecode.c (ostrcpy): New function.
36380 (__gnat_decode): Use ostrcpy of strcpy.
36381 (has_prefix): Set first parameter a const.
36382 (has_suffix): Set first parameter a const.
36383 Update copyright notice. Fix source name in header.
36384 Removes a trailing space.
36386 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
36389 Remove the test against being in No_Run_Time_Mode before generating a
36390 call to Register_Tag. It is redundant with the test against the
36391 availability of the function Register_Tag.
36393 2003-10-24 Vincent Celier <celier@gnat.com>
36395 * g-catiio.adb: (Month_Name): Correct spelling of February
36397 * make.adb: (Mains): New package
36398 (Initialize): Call Mains.Delete
36399 (Gnatmake): Check that each main on the command line is a source of a
36400 project file and, if there are several mains, each of them is a source
36401 of the same project file.
36402 (Gnatmake): When a foreign language is specified in attribute Languages,
36403 no main is specified on the command line and attribute Mains is not
36404 empty, only build the Ada main. If there is no Ada main, just compile
36405 the Ada sources and their closure.
36406 (Gnatmake): If a main is specified on the command line with directory
36407 information, check that the source exists and, if it does, that the path
36408 is the actual path of a source of a project.
36411 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
36412 Full_Path is True, return the full path instead of the simple file name.
36413 (Project_Of): New function
36416 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
36417 defaulted to False.
36418 (Project_Of): New function
36420 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36422 * Makefile.generic:
36423 Ensure objects of main project are always checked and rebuilt if needed.
36424 Set CC to gcc by default.
36425 Prepare new handling of link by creating a global archive (not activated
36428 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36429 stringt.h: Update copyright notice. Remove trailing blanks.
36430 Fix source name in header.
36432 2003-10-24 Robert Dewar <dewar@gnat.com>
36434 * sem_ch12.adb: Minor reformatting
36437 Minor reformatting (including new function return style throughout)
36440 Minor reformatting (including new function return style throughout)
36442 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36444 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36445 stringt.h: Update copyright notice. Remove trailing blanks.
36446 Fix source name in header.
36448 2003-10-24 GNAT Script <nobody@gnat.com>
36450 * Make-lang.in: Makefile automatically updated
36452 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
36454 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
36455 stringt.h: Convert to ISO C90 declarations and definitions.
36457 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
36460 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
36461 External_Tag attribute definition clauses.
36463 2003-10-23 Ed Schonberg <schonberg@gnat.com>
36466 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
36467 child unit, generate a fully qualified name to avoid spurious errors
36468 when the context contains renamings of different child units with
36469 the same simple name.
36471 * exp_dbug.ads: Add documentation on name qualification for renamings
36474 2003-10-23 Robert Dewar <dewar@gnat.com>
36476 * g-regpat.ads, g-regpat.adb: Minor reformatting
36478 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
36480 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
36482 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36484 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
36487 * urealp.h: (Machine): Update to proper definition.
36489 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
36491 * init.c, adaint.c: Minor reformatting.
36493 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
36495 * adaint.c (w32_epoch_offset): Define static const at file level.
36496 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
36497 rather than t_create, t_access in call to GetFileTime. Use union
36498 to convert between FILETIME and unsigned long long.
36499 (__gnat_file_time_name): Test for invalid file handle.
36500 (__gnat_set_filetime_name): Support win32 targets using
36501 w32api SetFileTime.
36503 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
36505 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
36507 * ctrl_c.c (__gnat_int_handler): Remove declaration.
36509 * decl.c (creat_concat_name): Const-ify prefix.
36511 * adaint.c: Include ctype.h if __MINGW32__.
36512 (__gnat_readlink): Mark arguments as possibly unused.
36513 (__gnat_symlink): Likewise.
36514 (__gnat_is_symbolic_link): Likewise.
36515 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
36517 (__gnat_file_time_name): Don't declare struct stat statbuf when
36519 (__gnat_is_absolute_path): Add parenthesis around condition of
36520 'if' statement to avoid warning.
36521 (__gnat_plist_init): Specify void as parameter.
36522 (plist_enter): Likewise.
36523 (plist_leave): Likewise.
36524 (remove_handle): Make static. Initialize prev.
36526 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
36529 * Makefile.in: Disable build of gnatpsta.
36530 * cstreams.c (__gnat_full_name): Minor improvements and clean up
36531 of previous change.
36533 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36535 * tracebak.c (MAX): Avoid redefinition warning.
36537 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
36538 Change msg to const char *.
36539 (__gnat_install_handler): Remove ss, unused.
36540 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
36542 * cstreams.c (__gnat_full_name): Declare p only when used.
36543 (__gnat_full_name) [sgi] Return buffer.
36545 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
36547 * mingw32.h: New file.
36548 * gnat_wrapper.adb: New file.
36550 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
36552 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
36553 string match a pre compiled regular expression (the corresponding
36554 version of the function working on a raw regular expression)
36555 Fix typos in various comments
36556 Update copyright notice in spec
36558 2003-10-21 Gary Dismukes <dismukes@gnat.com>
36561 (Component_Needs_Simple_Initialization): Return False when the type is a
36562 packed bit array. Revise spec comments to document this case.
36565 (Expand_Pragma_Import): Set any expression on the imported object to
36566 empty to avoid initializing imported objects (in particular this
36567 covers the case of zero-initialization of bit arrays).
36568 Update copyright notice.
36570 2003-10-21 Ed Schonberg <schonberg@gnat.com>
36573 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
36574 a subunit is missing.
36575 (Instantiate_Subprogram_Body): If body of function is missing, set type
36576 of return expression explicitly in dummy body, to prevent cascaded
36577 errors when a subunit is missing.
36581 (Access_Subprogram_Declaration): Verify that return type is valid.
36585 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
36590 (Corresponding_Discriminant): If the scope of the discriminant is a
36591 private type without discriminant, use its full view.
36594 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
36596 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
36597 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
36598 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
36599 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
36600 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
36601 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
36602 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36603 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
36604 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
36605 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
36606 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
36607 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
36608 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
36609 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
36610 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
36611 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
36612 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
36613 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
36614 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
36615 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
36616 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
36617 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
36618 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
36619 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
36620 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
36621 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
36622 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
36623 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
36624 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
36625 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
36626 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
36627 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
36628 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
36629 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
36630 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
36631 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
36632 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
36633 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
36634 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
36635 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
36636 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
36637 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
36638 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
36639 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
36640 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
36641 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
36642 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
36643 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
36644 vms_conv.ads, vms_conv.adb, vms_data.ads,
36645 vxaddr2line.adb: Files added. Merge with ACT tree.
36647 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
36648 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
36649 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
36650 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
36651 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
36652 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
36653 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
36654 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
36655 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
36656 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
36658 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
36659 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
36660 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
36661 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
36662 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
36663 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
36664 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
36665 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
36666 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
36667 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
36668 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36669 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
36670 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
36671 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36672 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
36673 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
36674 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
36675 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
36676 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
36677 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
36678 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
36679 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36680 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36681 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36682 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
36683 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
36684 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
36685 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36686 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
36687 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36688 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36689 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
36690 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36691 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
36692 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
36693 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
36694 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
36695 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
36696 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
36697 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
36698 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
36699 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
36700 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
36701 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
36702 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
36703 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
36704 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
36705 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
36706 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
36707 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
36708 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
36709 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
36710 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
36711 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
36712 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
36713 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
36714 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
36715 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
36716 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
36717 checks.adb, checks.ads, cio.c, comperr.adb,
36718 comperr.ads, csets.adb, cstand.adb, cstreams.c,
36719 debug_a.adb, debug_a.ads, debug.adb, decl.c,
36720 einfo.adb, einfo.ads, errout.adb, errout.ads,
36721 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
36722 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
36723 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
36724 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36725 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
36726 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
36727 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
36728 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
36729 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
36730 fe.h, fmap.adb, fmap.ads, fname.adb,
36731 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
36732 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
36733 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
36734 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
36735 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
36736 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
36737 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
36738 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
36739 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
36740 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
36741 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
36742 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
36743 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
36744 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
36745 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
36746 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
36747 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
36748 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
36749 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
36750 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
36751 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
36752 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
36753 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
36754 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
36755 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
36756 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
36757 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
36758 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
36759 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
36760 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
36761 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
36762 layout.adb, lib.adb, lib.ads, lib-list.adb,
36763 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
36764 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
36765 link.c, live.adb, make.adb, make.ads,
36766 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
36767 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
36768 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
36769 misc.c, mkdir.c, mlib.adb, mlib.ads,
36770 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
36771 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
36772 namet.adb, namet.ads, namet.h, nlists.ads,
36773 nlists.h, nmake.adt, opt.adb, opt.ads,
36774 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
36775 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
36776 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
36777 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
36778 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
36779 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
36780 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
36781 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
36782 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
36783 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
36784 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
36785 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
36786 prj-util.adb, prj-util.ads, raise.c, raise.h,
36787 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
36788 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
36789 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
36790 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
36791 scans.ads, scn.adb, scn.ads, s-crc32.adb,
36792 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
36793 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36794 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
36795 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
36796 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
36797 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
36798 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
36799 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
36800 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
36801 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
36802 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
36803 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
36804 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
36805 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
36806 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
36807 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
36808 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
36809 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
36810 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
36811 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
36812 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
36813 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
36814 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
36815 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
36816 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
36817 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
36818 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
36819 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
36820 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
36821 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
36822 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
36823 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
36824 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
36825 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
36826 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
36827 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
36828 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
36829 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
36830 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
36831 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
36832 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36833 stringt.adb, stringt.ads, stringt.h, style.ads,
36834 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
36835 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
36836 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
36837 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
36838 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
36839 table.adb, table.ads, targparm.adb, targparm.ads,
36840 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
36841 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
36842 ttypes.ads, types.ads, types.h, uintp.adb,
36843 uintp.ads, uintp.h, uname.adb, urealp.adb,
36844 urealp.ads, urealp.h, usage.adb, utils2.c,
36845 utils.c, validsw.adb, validsw.ads, widechar.adb,
36846 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
36847 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
36848 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
36849 gnatvsn.ads: Merge with ACT tree.
36851 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
36853 2003-10-20 Mark Mitchell <mark@codesourcery.com>
36855 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
36856 (gnat_ug_vmx.info): Likewise.
36857 (gnat_ug_vxw.info): Likewise.
36858 (gnat_ug_wnt.info): Likewise.
36859 (gnat_rm.info): Likewise.
36860 (gnat-style.info): Likewise.
36862 * Make-lang.in (ada.install-info): Remove target.
36863 (info): New target.
36864 (install-info): Likewise.
36865 (gnat_ug_unx.info): Simplify rule.
36866 (gnat_ug_vmx.info): Likewise.
36867 (gnat_ug_vxw.info): Likewise.
36868 (gnat_ug_wnt.info): Likewise.
36869 (gnat_rm.info): Likewise.
36870 (gnat-style.info): Likewise.
36872 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
36874 * Make-lang.in: Replace uses of $(target_alias) with
36875 $(target_noncanonical).
36876 * ada/Makefile.in: Remove unused mention of $(target_alias).
36878 2003-10-06 Mark Mitchell <mark@codesourcery.com>
36880 * Make-lang.in (ada.info): Replace with ...
36882 (ada.dvi): Replace with ...
36885 2003-09-29 Zack Weinberg <zack@codesourcery.com>
36887 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
36888 initialize dconstp5 and dconstmp5.
36890 2003-09-28 Richard Henderson <rth@redhat.com>
36892 * trans.c (tree_transform): Update call to expand_asm_operands.
36894 2003-09-21 Richard Henderson <rth@redhat.com>
36896 * trans.c, utils.c: Revert.
36898 2003-09-21 Richard Henderson <rth@redhat.com>
36900 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
36903 2003-09-04 Michael Matz <matz@suse.de>
36905 * misc.c: Include "target.h".
36906 * Make-lang.in (misc.o): Add dependency on target.h.
36908 2003-09-03 DJ Delorie <dj@redhat.com>
36910 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
36913 2003-08-30 Zack Weinberg <zack@codesourcery.com>
36915 * Makefile.in: Update substitutions to match changes to
36916 configure. Use include directives instead of @-insertions
36917 to read in host and target fragments. Add a rule to
36918 regenerate ada/Makefile.
36920 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
36922 * lang-options.h: Remove.
36923 * lang.opt: Add help text.
36925 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
36927 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
36930 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
36932 * misc.c (gnat_handle_option): Don't handle filenames.
36934 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
36936 * Make-lang.in: Replace PWD with PWD_COMMAND.
36937 * Makefile.adalib: Likewise.
36938 * Makefile.in: Likewise.
36940 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
36942 * misc.c (gnat_argv): Revert last change.
36943 (gnat_handle_option, gnat_init_options): Copy arguments.
36945 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
36947 * misc.c (gnat_argv): Make const.
36949 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
36951 * misc.c (save_argc, save_argv): Keep non-static!
36953 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
36955 * misc.c (save_argc, save_argv): Make static.
36956 (gnat_init_options): New prototype.
36957 (gnat_init_options): Update.
36959 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
36961 * gnat_ug.texi: Remove unlikely characters from @vars.
36962 * gnat_ug_vms.texi: Regenerate.
36964 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
36966 * misc.c (record_code_position): Adjust emit_note call.
36968 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
36970 * misc.c (gnat_handle_option): Don't check for missing arguments.
36972 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
36974 * utils.c (end_subprog_body): Adjust expand_function_end call.
36976 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
36978 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
36981 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
36983 * lang.opt: Declare Ada.
36984 * misc.c (gnat_init_options): Update.
36986 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
36988 * utils.c (begin_subprog_body): Adjust init_function_start call.
36990 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
36992 * Make-lang.in: Update to use options.c and options.h.
36993 * misc.c: Include options.h not aoptions.h.
36994 (gnat_handle_option): Abort on unrecognized switch.
36995 (gnat_init_options): Request Ada switches.
36997 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
36999 * lang.opt: Add -Wall.
37000 * misc.c (gnat_handle_option): Handle it.
37002 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
37004 * misc.c (gnat_handle_option): Fix warnings.
37006 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
37008 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
37010 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
37012 * Make-lang.in: Update to handle command-line options.
37013 * lang.opt: New file.
37014 * misc.c: Include aoptions.h.
37015 (cl_options_count, cl_options): Remove.
37016 (gnat_handle_option): New.
37017 (gnat_decode_option): Remove.
37018 (LANG_HOOKS_DECODE_OPTION): Remove.
37019 (LANG_HOOKS_HANDLE_OPTION): Override.
37021 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
37023 * init.c, misc.c, trans.c, utils.c: Remove dead code.
37025 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
37027 * Makefile.in: Replace "host_canonical" with "host" for autoconf
37030 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
37032 * Make-lang.in: Update.
37033 * misc.c: Include opts.h. Define cl_options_count and cl_options.
37035 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
37037 * misc.c (gnat_init_options): Update.
37039 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37041 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
37042 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
37043 __attribute__ ((__unused__)).
37045 2003-06-05 Jan Hubicka <jh@suse.cz>
37047 * Make-lang.in: Add support for stageprofile and stagefeedback
37049 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37051 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
37052 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
37054 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
37056 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
37057 Remove non-VMS directive.
37058 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
37060 (Examples of gnatls Usage): Remove VMS alternative.
37062 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
37065 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
37066 and turn ZCX_By_Default back to False since the underlying support
37067 is not quite there yet.
37069 2003-06-01 Andreas Jaeger <aj@suse.de>
37071 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
37072 and ROUND_TYPE_SIZE_UNIT.
37074 2003-05-22 Geert Bosch <bosch@gnat.com>
37076 * gnat_rm.texi : Remove reference to Ada Core Technologies.
37078 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
37080 * trans.c (tree_transform): Use location_t and input_location
37082 (build_unit_elab): Likewise.
37083 * utils.c (create_label_decl): Likewise.
37085 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
37087 * trans.c (tree_transform, build_unit_elab,
37088 set_lineno): Rename lineno to input_line.
37089 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
37090 end_subprog_body): Likewise.
37091 * utils2.c (build_call_raise): Likewise.
37093 2003-05-01 Laurent Guerby <guerby@acm.org>
37096 * 5iosinte.ads: Increase pthread_cond_t size to match recent
37097 LinuxThread and NPTL version, merge from ACT.
37099 2003-04-28 Zack Weinberg <zack@codesourcery.com>
37101 * utils.c (convert): No need to clear TREE_CST_RTL.
37103 2003-04-23 Geert Bosch <bosch@gnat.com>
37105 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37106 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37107 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37108 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37109 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37110 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
37111 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
37112 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
37113 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37114 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
37115 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
37116 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
37117 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
37118 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
37119 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
37120 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
37121 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
37122 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
37123 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
37124 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
37125 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
37126 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
37127 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37128 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
37129 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
37130 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
37131 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
37132 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
37133 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
37134 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
37135 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
37136 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
37137 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
37138 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
37139 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
37140 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
37141 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
37142 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
37143 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
37144 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
37145 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
37146 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
37147 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
37148 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
37149 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
37150 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
37151 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
37152 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
37153 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
37154 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
37155 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
37156 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
37157 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
37158 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
37159 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
37160 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
37161 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
37162 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
37163 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
37164 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
37165 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
37166 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
37167 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
37168 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
37169 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
37170 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
37171 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
37172 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
37173 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
37174 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
37175 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
37176 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
37177 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
37178 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
37179 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
37180 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
37181 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
37182 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
37183 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
37184 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
37185 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
37186 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
37187 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
37188 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
37189 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
37190 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
37191 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
37192 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
37193 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
37194 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
37195 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
37196 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
37197 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
37198 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
37199 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
37200 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
37201 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
37202 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
37203 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
37204 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
37205 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
37206 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
37207 ali.adb, ali.ads, alloc.ads, argv.c,
37208 atree.adb, atree.ads, atree.h, aux-io.c,
37209 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
37210 binde.adb, binde.ads, binderr.adb, binderr.ads,
37211 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
37212 butil.adb, butil.ads, cal.c, calendar.ads,
37213 casing.adb, casing.ads, ceinfo.adb, checks.adb,
37214 checks.ads, cio.c, comperr.adb, comperr.ads,
37215 config-lang.in, csets.adb, csets.ads, csinfo.adb,
37216 cstand.adb, cstand.ads, cuintp.c, debug.adb,
37217 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
37218 dec-io.ads, dec.ads, deftarg.c, directio.ads,
37219 einfo.adb, einfo.ads, elists.adb, elists.ads,
37220 elists.h, errno.c, errout.adb, errout.ads,
37221 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
37222 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
37223 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
37224 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
37225 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
37226 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
37227 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
37228 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
37229 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
37230 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
37231 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
37232 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
37233 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
37234 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
37235 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
37236 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
37237 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
37238 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
37239 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
37240 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
37241 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37242 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37243 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37244 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
37245 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
37246 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
37247 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
37248 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
37249 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
37250 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
37251 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
37252 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
37253 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
37254 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
37255 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
37256 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
37257 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
37258 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
37259 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
37260 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
37261 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
37262 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
37263 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
37264 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
37265 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
37266 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
37267 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
37268 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
37269 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
37270 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
37271 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
37272 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
37273 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
37274 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
37275 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
37276 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
37277 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
37278 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
37279 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
37280 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37281 lib.adb, lib.ads, live.adb, live.ads,
37282 machcode.ads, make.adb, make.ads, makeusg.adb,
37283 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
37284 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
37285 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
37286 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
37287 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
37288 mlib.ads, namet.adb, namet.ads, nlists.adb,
37289 nlists.ads, opt.adb, opt.ads, osint-b.adb,
37290 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
37291 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
37292 osint.ads, output.adb, output.ads, par-ch10.adb,
37293 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
37294 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37295 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
37296 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
37297 par-tchk.adb, par-util.adb, par.adb, par.ads,
37298 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
37299 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
37300 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
37301 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
37302 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
37303 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
37304 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
37305 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
37306 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
37307 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
37308 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
37309 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
37310 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
37311 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
37312 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
37313 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
37314 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
37315 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37316 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
37317 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
37318 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
37319 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
37320 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37321 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
37322 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
37323 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
37324 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
37325 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
37326 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
37327 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
37328 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
37329 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
37330 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
37331 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
37332 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
37333 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
37334 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
37335 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
37336 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
37337 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
37338 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
37339 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
37340 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
37341 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
37342 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
37343 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
37344 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
37345 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
37346 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
37347 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
37348 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
37349 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
37350 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
37351 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
37352 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
37353 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
37354 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
37355 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
37356 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
37357 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
37358 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
37359 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
37360 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
37361 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
37362 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
37363 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
37364 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
37365 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
37366 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
37367 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
37368 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
37369 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
37370 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
37371 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
37372 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
37373 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
37374 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
37375 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
37376 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
37377 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
37378 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
37379 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
37380 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
37381 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
37382 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
37383 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
37384 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
37385 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
37386 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
37387 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
37388 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
37389 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
37390 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
37391 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
37392 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
37393 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
37394 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
37395 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
37396 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
37397 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
37398 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
37399 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
37400 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
37401 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
37402 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
37403 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
37404 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
37405 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
37406 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
37407 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
37408 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37409 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37410 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
37411 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
37412 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
37413 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
37414 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
37415 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
37416 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
37417 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
37418 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
37419 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
37420 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
37421 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
37422 snames.ads, sprint.adb, sprint.ads, stand.adb,
37423 stand.ads, stringt.adb, stringt.ads, style.adb,
37424 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
37425 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
37426 switch-m.ads, switch.adb, switch.ads, system.ads,
37427 table.adb, table.ads, targparm.adb, targparm.ads,
37428 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
37429 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
37430 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
37431 ttypef.ads, ttypes.ads, types.adb, types.ads,
37432 uintp.adb, uintp.ads, uname.adb, uname.ads,
37433 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
37434 usage.adb, usage.ads, validsw.adb, validsw.ads,
37435 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
37436 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
37437 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
37438 formatting and other trivial changes from ACT.
37440 2003-04-12 Zack Weinberg <zack@codesourcery.com>
37442 * gigi.h, utils2.c (build_constructor):
37443 Rename gnat_build_constructor. Use build_constructor.
37444 * decl.c (gnat_to_gnu_entity)
37445 * trans.c (tree_transform, pos_to_constructor, extract_values)
37446 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
37447 (unchecked_convert)
37448 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
37449 (fill_vms_descriptor):
37452 2003-04-06 Zack Weinberg <zack@codesourcery.com>
37454 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
37455 * misc.c (gnat_tree_size): New function.
37456 (LANG_HOOKS_TREE_SIZE): Override.
37458 2003-04-03 Jason Merrill <jason@redhat.com>
37460 * misc.c (gnat_adjust_rli): #if 0.
37462 2003-03-31 Geert Bosch <bosch@gnat.com>
37465 * link.c : Fix misspelled "const" keyword
37467 2003-03-23 Mark Mitchell <mark@codesourcery.com>
37470 * utils2.c: Adjust calls to put_var_into_stack.
37472 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
37474 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
37476 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
37478 * misc.c (gnat_init): Update for new prototype.
37480 2003-03-05 Olivier Hainque <hainque@gnat.com>
37483 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
37484 warning, and fix return type for the IN_RTS && !SJLJ case.
37486 2003-03-04 Tom Tromey <tromey@redhat.com>
37488 * Make-lang.in (ada.tags): New target.
37490 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
37493 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
37494 wrapper, which name remains constant whatever underlying GCC
37497 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
37498 the stable interface needed for a-except.
37500 2003-03-02 Andreas Jaeger <aj@suse.de>
37502 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37503 gnat_ug_wnt.texi: Regenerate.
37505 2003-03-02 Laurent Guerby <guerby@acm.org>
37507 * Makefile.in (install-gnatlib): Match previous change there
37510 2003-02-28 Andreas Schwab <schwab@suse.de>
37512 * Make-lang.in (install-gnatlib): Change to ada directory before
37513 running make instead of using ada/Makefile directly.
37515 2003-02-18 Ben Elliston <bje@redhat.com>
37517 Part of PR ada/9406
37518 * gnat_ug.texi (Binder output file): Grammar fix.
37520 2003-02-18 Ben Elliston <bje@redhat.com>
37523 * 5qtaprop.adb (Sleep): Fix typo in comment.
37525 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
37527 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
37528 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37529 gnat_ug_wnt.texi: Regenerate.
37531 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37533 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
37534 be created if necessary.
37535 (ada.install-common): Let $(DESTDIR)$(bindir) be created
37536 if necessary. Remove erroneous and redundant gnatchop
37537 installation commands. Test for gnatdll before attempting
37539 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
37540 and gnatdll from all plausible locations.
37542 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
37544 * utils2.c (build_unary_op): Don't check flag_volatile.
37545 * gnat_ug.texi: Remove -fvolatile from example.
37546 * gnat_ug_vxw.texi: Likewise.
37548 2003-01-29 Laurent Guerby <guerby@acm.org>
37551 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
37552 * Makefile.in: match previous change.
37553 * Make-lang.in: match previous change.
37555 2003-01-29 Joel Sherrill <joel@OARcorp.com>
37557 * 5rosinte.ads: Add SIGXCPU.
37558 * 5rtpopsp.adb: New file.
37559 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
37560 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
37561 specific file 5rtpopsp.adb.
37562 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
37563 is likely needed for all newlib targets.
37564 * init.c: Add RTEMS specific version of __gnat_initialize().
37566 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37568 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
37570 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37572 * init.c (__gnat_error_handler): Make msg const.
37574 * gmem.c (convert_addresses): Move declaration ...
37575 * adaint.h: ... here.
37576 * adaint.c (convert_addresses): Adapt addrs type to match
37579 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
37581 2003-01-24 Andreas Schwab <schwab@suse.de>
37583 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
37584 size_t to avoid warning.
37586 2003-01-21 Zack Weinberg <zack@codesourcery.com>
37588 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
37590 2003-01-09 Geoffrey Keating <geoffk@apple.com>
37592 * gnat_rm.texi: Remove RCS version number.
37594 * ada-tree.h (union lang_tree_node): Add chain_next option.
37596 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37598 * Make-lang.in (ada.install-info, ada.install-common,
37599 ada.uninstall): Prepend $(DESTDIR) to the destination
37600 directory in all (un)installation commands.
37601 * Makefile.in (install-gnatlib, install-rts): Ditto.
37603 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
37605 * gnat_rm.texi, gnat_ug.texi: Use @copying.
37606 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37607 gnat_ug_wnt.texi: Regenerate.
37609 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
37611 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
37613 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
37614 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
37615 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
37616 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
37617 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
37618 $(srcdir)/doc/include/gcc-common.texi.
37620 2002-12-15 Geert Bosch <bosch@gnat.com>
37622 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
37624 2002-12-14 Geert Bosch <bosch@gnat.com>
37627 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
37628 case of a body created for a Renaming_As_Body, on which
37629 conformance checks are not performed.
37631 2002-11-30 Zack Weinberg <zack@codesourcery.com>
37633 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
37634 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
37635 not already included.
37636 * Make-lang.in: Update dependencies.
37638 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
37639 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
37640 solution to buffer overflow bug on GNU/Linux.
37642 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
37646 * bindgen.adb: Remove all references to Public_Version.
37647 * comperr.adb: Remove all references to Public_Version and
37648 GNATPRO_Version; correct bug reporting instructions.
37649 * comperr.ads: Change to match bug box.
37650 * gnatvsn.ads: Remove all references to Public version and
37653 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
37656 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
37660 * config-lang.in: Remove diff_excludes.
37662 2002-11-05 Graham Stott <graham.stott@btinternet.com>
37665 * trans.c (gnu_pending_elaboration_lists): New GC root.
37666 (build_unit_elab): Use..
37668 2002-10-30 Geert Bosch <bosch@gnat.com>
37671 * misc.c : Include optabs.h
37673 * Make-lang.in (misc.o): Add dependency on optabs.h
37675 2002-10-29 Geert Bosch <bosch@gnat.com>
37678 * Make-lang.in (gnatbind): Depend on CONFIG_H
37680 2002-10-29 Geert bosch <bosch@gnat.com>
37683 * misc.c: Unrevert misc.c (1.13)
37685 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
37687 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
37688 maintainership comments.
37690 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
37693 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
37694 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
37695 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
37696 7staprop.adb: Correct statements in comments about
37697 maintainership of GNAT.
37700 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
37701 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
37702 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
37703 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
37704 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
37705 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
37706 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
37707 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
37708 comments about maintainership of GNAT.
37710 PR ada/6919 (forward port of patch for PR ada/5904)
37711 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
37712 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
37713 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
37714 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
37715 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
37716 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
37717 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
37718 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
37719 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
37720 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
37721 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
37722 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
37723 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
37724 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
37725 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
37726 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
37727 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
37728 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
37729 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
37730 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
37731 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
37732 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
37733 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
37734 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
37735 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
37736 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
37737 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
37738 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
37739 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
37740 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
37741 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
37742 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
37743 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
37744 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
37745 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
37746 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
37747 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
37748 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
37749 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
37750 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
37751 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
37752 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
37753 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
37754 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
37755 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
37756 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
37757 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
37758 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
37759 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
37760 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
37761 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
37762 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
37763 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
37764 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
37765 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
37766 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
37767 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
37768 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
37769 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
37770 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
37771 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
37772 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
37773 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
37774 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
37775 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
37776 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
37777 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
37778 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
37779 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
37780 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
37781 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
37782 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
37783 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
37784 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
37785 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
37786 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
37787 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
37788 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
37789 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
37790 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
37791 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
37792 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
37793 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
37794 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
37795 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
37796 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
37797 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
37798 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
37799 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
37800 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
37801 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
37802 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
37803 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
37804 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
37805 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
37806 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
37807 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
37808 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
37809 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
37810 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
37811 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
37812 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
37813 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
37814 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
37815 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
37816 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
37817 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
37818 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
37819 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
37820 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
37821 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
37822 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
37823 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
37824 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
37825 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
37826 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
37827 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
37828 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
37829 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
37830 par-endh.adb par-labl.adb par-load.adb par-prag.adb
37831 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
37832 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
37833 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
37834 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
37835 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
37836 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
37837 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
37838 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
37839 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
37840 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
37841 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
37842 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
37843 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
37844 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
37845 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
37846 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
37847 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
37848 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
37849 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
37850 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
37851 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
37852 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
37853 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
37854 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
37855 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
37856 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
37857 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
37858 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
37859 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
37860 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
37861 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
37862 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
37863 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
37864 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
37865 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
37866 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
37867 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
37868 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
37869 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
37870 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
37871 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
37872 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
37873 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
37874 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
37875 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
37876 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
37877 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
37878 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
37879 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
37880 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
37881 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
37882 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
37883 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
37884 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
37885 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
37886 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
37887 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
37888 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
37889 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
37890 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
37891 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
37892 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
37893 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
37894 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
37895 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
37896 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
37897 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
37898 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
37899 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
37900 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
37901 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
37902 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
37903 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
37904 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
37905 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
37906 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
37907 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
37908 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
37909 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
37910 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
37911 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
37912 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
37913 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
37914 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
37915 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
37916 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
37917 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
37918 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
37919 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
37920 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
37921 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
37922 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
37923 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
37924 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
37925 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
37926 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
37927 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
37928 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
37929 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
37930 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
37931 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
37932 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
37933 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
37934 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
37935 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
37936 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
37937 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
37938 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
37939 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
37940 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
37941 stringt.ads stringt.h style.adb style.ads stylesw.adb
37942 stylesw.ads switch.adb switch.ads sysdep.c system.ads
37943 table.adb table.ads targparm.adb targparm.ads targtyps.c
37944 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
37945 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
37946 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
37947 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
37948 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
37949 usage.ads utils.c utils2.c validsw.adb validsw.ads
37950 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
37951 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
37952 xtreeprs.adb: Correct statements in comments about maintainership
37955 2002-09-23 Zack Weinberg <zack@codesourcery.com>
37957 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
37958 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
37959 * gnatvsn.ads: Gnat_Version_String is now a function.
37960 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
37961 copy the C version_string into a String and return it.
37962 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
37963 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
37964 Remove pragma Ident (Gnat_Version_String). If this was the
37965 sole use of package Gnatvsn, remove the with statement too.
37966 * gnat1drv.adb: Tweak -gnatv output.
37968 2002-09-17 Richard Henderson <rth@redhat.com>
37970 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
37971 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
37972 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
37973 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
37974 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
37975 and real_2expN instead of a loop.
37976 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
37977 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
37979 2002-08-25 Andre Leis <a.leis@gmx.net>
37980 David Billinghurst <David.Billinghurst@riotinto.com>
37982 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
37984 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37986 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
37987 Remove $(CONFIG_H) dependency.
37989 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
37991 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
37993 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
37995 * adadecode.c (ada_demangle): Use xstrdup in lieu of
37997 * misc.c (gnat_decode_option): Likewise.
37999 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
38001 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38002 function approach did not work well because of a side effect (the
38003 function call could reallocate the table which was being indexed
38004 using its result). Fixes ada/4851. [RESURRECTED]
38006 2002-07-01 Roger Sayle <roger@eyesopen.com>
38008 * ada/utils.c (builtin_function): Accept an additional parameter.
38010 2002-06-28 Andreas Jaeger <aj@suse.de>
38013 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
38016 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38018 * Makefile.in (SHELL): Set to @SHELL@.
38020 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38022 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
38023 array size calculation.
38025 2002-06-04 Andreas Jaeger <aj@suse.de>
38027 * Make-lang.in (gnatbind): Readd rule that has been lost in last
38030 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
38032 Merge from pch-branch:
38034 * config-lang.in (gtfiles): Add ada-tree.h.
38035 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
38036 (SET_TYPE_MODULUS): New.
38037 (SET_TYPE_INDEX): New.
38038 (SET_TYPE_DIGITS_VALUE): New.
38039 (SET_TYPE_RM_SIZE): New.
38040 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
38041 (SET_TYPE_ADA_SIZE): New.
38042 (SET_TYPE_ACTUAL_BOUNDS): New.
38043 (SET_DECL_CONST_CORRESPONDING_VAR): New.
38044 (SET_DECL_ORIGINAL_FIELD): New.
38045 (TREE_LOOP_ID): Correct typo.
38046 * decl.c: Use new macros.
38047 * utils.c: Include debug.h, use new macros.
38048 * utils2.c: Use new macros.
38050 * ada-tree.h: Update all macros for new tree description.
38051 (struct tree_loop_id): New.
38052 (union lang_tree_node): New.
38053 (struct lang_decl): New.
38054 (struct lang_type): New.
38055 * misc.c (gnat_mark_tree): Delete.
38056 (LANG_HOOKS_MARK_TREE): Delete.
38057 * trans.c (tree_transform): No longer any need to cast
38060 * utils.c (struct language_function): New dummy structure.
38062 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
38063 (misc.o): Likewise.
38064 (utils.o): Likewise; also gtype-ada.h.
38065 * Make-lang.in (gnat1): Add dependency on s-gtype.
38066 (gnatbind): Add dependency on $(CONFIG_H).
38067 * utils.c: Correct last #include.
38068 (stuct e_stack): Remove unnecessary 'static'.
38069 (mark_e_stack): Remove unused prototype.
38071 * scn-nlit.adb: Remove whitespace after version number to
38072 keep lines under 80 chars.
38073 * snames.adb: Likewise.
38074 * treepr.ads: Likewise.
38076 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
38077 (misc.o): Likewise.
38078 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
38079 * config-lang.in (gtfiles): New.
38080 * decl.c: Use gengtype for roots.
38081 * gigi.h: Use gengtype for roots.
38082 * trans.c: Use gengtype for roots.
38083 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
38085 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
38087 * misc.c (gnat_init): Adjust setting of internal_error_function.
38089 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
38091 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
38092 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38093 gnat_ug_wnt.texi: Regenerate.
38095 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
38097 * 5ntaprop.adb (with System.OS_Primitives): Remove.
38099 * cstreams.c (max_path_len): Move from here ...
38100 * adaint.c (__gnat_max_path_len): ... to here.
38101 * adaint.c (__gnat_max_path_len): Declare.
38102 * g-dirope.adb (Max_Path): Adjust.
38103 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
38104 * i-cstrea.ads (max_path_len): Adjust.
38105 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
38106 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
38108 * Makefile.in, Make-lang.in: Documentation is now built in
38109 Make-lang.in. Store Info and generated Texinfo files in the
38111 * gnat_ug.texi: Remove CVS keywords, correct version number.
38112 Set file name correctly.
38114 * gnat_ug_*.texi: Add.
38115 * .cvsignore: Ignore generated Texinfo files.
38117 2002-05-30 Zack Weinberg <zack@codesourcery.com>
38119 * ada.h: Add MI guard macro.
38120 (SUBTYPE): Define constants with an anonymous enum, not static
38122 (IN): Cast constants to appropriate type before use.
38124 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
38126 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
38129 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38131 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
38132 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
38133 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
38134 (ALL_ADA_CFLAGS): Likewise.
38135 (ADA_INCLUDES): Likewise.
38136 Adapt for new working dir.
38137 (GNATBIND): Use Makefile.in version.
38138 (.SUFFIXES): Copy from Makefile.in.
38139 (ada-warn): Define.
38140 (.adb.o, .ads.o): Copy from Makefile.in.
38141 Added $(OUTPUT_OPTION).
38142 (GNAT1_C_OBJS): Moved from Makefile.in.
38143 Prefix with ada subdir.
38144 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
38145 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
38146 Adapt for new working dir.
38147 (EXTRA_GNATBIND_OBJS): Likewise.
38148 (ADA_BACKEND): Moved from Makefile.in.
38149 Renamed to avoid conflict with global BACKEND.
38151 (TARGET_ADA_SRCS): Moved from Makefile.in.
38152 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
38154 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
38155 (ada_extra_files): Moved from Makefile.in.
38156 Prefix with ada subdir.
38157 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
38158 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
38159 (ada/nmake.ads): Likewise.
38160 (update-sources): Moved from Makefile.in.
38161 Prefix with ada subdir.
38162 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
38163 (ADA_TREE_H): Likewise.
38164 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
38165 (ada/memtrack.o): Likewise.
38166 (ada/adadecode.o): Likewise.
38167 Update dependencies.
38168 (ada/adaint.o): New.
38169 (ada/argv.o): Moved from Makefile.in.
38170 Prefix with ada subdir.
38171 Update dependencies.
38172 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
38173 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
38174 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
38175 Prefix with ada subdir.
38176 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
38177 (GNAT DEPENDENCIES): Regenerate.
38178 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
38179 toplevel Makefile.in.
38180 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
38181 (TARGET_ADA_SRCS): Removed.
38182 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
38183 (GNATBIND_OBJS): Likewise.
38184 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
38185 (BACKEND): Removed.
38186 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
38187 (TREE_H): Likewise.
38188 (ada_extra_files): Likewise.
38189 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
38190 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
38191 (update-sources): Likewise.
38192 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
38193 (ADA_TREE_H): Likewise.
38194 (adadecoce.o): Likewise.
38195 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
38196 (GNAT DEPENDENCIES): Likewise.
38198 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38200 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
38201 * Makefile.in: Likewise.
38203 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38205 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
38206 Restore $(CONFIG_H) and prefix.o dependencies.
38207 (ada.stage[1-4]): Depend on stage?-start.
38209 * Makefile.in (b_gnatb.c): Depend on interfac.o.
38211 2002-05-02 Jim Wilson <wilson@redhat.com>
38213 * utils.c (finish_record_type): Change record_size to record_type.
38215 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
38217 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
38218 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
38219 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
38221 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
38223 * misc.c (gnat_parse_file): Update.
38225 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
38227 * misc.c (gnat_init): Don't set lang_attribute_common.
38229 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
38231 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
38233 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
38235 * gnat_ug.texi: New file.
38237 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
38238 instead of gfdl.texi
38240 * xgnatug.adb, ug_words: New files.
38242 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
38243 gnat_rm and gnat-style manuals.
38245 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
38247 * gigi.h (incomplete_type_error): Remove.
38248 * utils.c (incomplete_type_error): Remove.
38250 2002-04-16 Mark Mitchell <mark@codesourcery.com>
38252 * trans.c (tree_transform): Add has_scope argument to
38253 expand_start_stmt_expr.
38255 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
38257 * gigi.h (truthvalue_conversion): Rename.
38258 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
38259 * trans.c (tree_transform): Update.
38260 * utils2.c (truthvalue_conversion): Rename, update.
38261 (build_binary_op, build_unary_op): Update.
38263 2002-04-04 Laurent Guerby <guerby@acm.org>
38265 * make.adb: Implement -margs, remove restriction about file name placement.
38266 * makeusg.adb: Documentation update.
38267 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
38268 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
38270 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
38272 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
38273 (builtin_function): Similarly.
38275 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
38277 * decl.c (gnat_to_gnu_entity): Update.
38278 * gigi.h (mark_addressable): Rename.
38279 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
38280 * trans.c (tree_transform): Update.
38281 * utils.c (create_var_decl): Update.
38282 * util2.c (build_binary_op, build_unary_op,
38283 fill_vms_descriptor): Update.
38284 (mark_addressable): Rename, update.
38286 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
38288 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
38290 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
38291 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
38292 * trans.c (tree_transform, convert_with_check): Update.
38293 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
38296 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
38298 * gigi.h (finish_incomplete_decl): Rename.
38299 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
38300 * utils.c (gnat_init_decl_processing): Don't set hook.
38301 (finish_incomplete_decl): Rename.
38303 2002-03-29 Andreas Schwab <schwab@suse.de>
38305 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
38308 2001-03-28 Robert Dewar <dewar@gnat.com>
38311 (Remove_Checks): New procedure
38314 (Remove_Checks): New procedure
38317 Use new Duplicate_Subexpr functions
38318 (Duplicate_Subexpr_No_Checks): New procedure
38319 (Duplicate_Subexpr_No_Checks_Orig): New procedure
38320 (Duplicate_Subexpr): Restore original form (checks duplicated)
38321 (Duplicate_Subexpr): Call Remove_Checks
38324 (Duplicate_Subexpr_No_Checks): New procedure
38325 (Duplicate_Subexpr_No_Checks_Orig): New procedure
38326 Add 2002 to copyright notice
38328 * sem_util.adb: Use new Duplicate_Subexpr functions
38331 (Eval_Indexed_Component): This is the place to call
38332 Constant_Array_Ref and to replace the value. We simply merge
38333 the code of this function in here, since it is now no longer
38334 used elsewhere. This fixes the problem of the back end not
38335 realizing we were clever enough to see that this was
38337 (Expr_Val): Remove call to Constant_Array_Ref
38338 (Expr_Rep_Val): Remove call to Constant_Array_Ref
38340 (Constant_Array_Ref): Deal with string literals (patch
38341 suggested by Zack Weinberg on the gcc list)
38343 2001-03-28 Ed Schonberg <schonber@gnat.com>
38345 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
38346 Duplicate_Subexpr_Move_Checks.
38348 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
38349 Duplicate_Subexpr_Move_Checks.
38351 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
38352 value of array exists before retrieving it (it may a private
38353 protected component in a function).
38355 2002-03-28 Geert Bosch <bosch@gnat.com>
38357 * prj-pp.adb : New file.
38359 * prj-pp.ads : New file.
38361 2002-03-28 Andreas Jaeger <aj@suse.de>
38363 * Makefile.in (stamp-sdefault): Fix path for Makefile.
38365 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
38367 * misc.c (gnat_expand_expr): Move prototype.
38369 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38371 * misc.c (insert_default_attributes): Remove.
38373 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38375 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
38376 (gnat_init): Don't set hook.
38377 (gnat_expand_expr): Fix prototype.
38379 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38381 * misc.c (ggc_p): Remove.
38383 2002-03-27 Geert Bosch <bosch@gnat.com>
38385 * prj-makr.ads, prj-makr.adb : New files.
38387 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
38389 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
38390 (lang_mark_tree): Make static, rename.
38392 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
38394 * misc.c (maybe_build_cleanup): Remove.
38396 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
38398 * gigi.h (yyparse): Remove.
38400 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
38402 From Ben Brosgol <brosgol@gnat.com>
38403 * gnat_rm.texi: Sync with ACT version.
38405 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
38407 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
38408 (gnat_init): Remove old hook.
38410 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
38412 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
38413 (yyparse): Rename gnat_parse_file.
38415 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
38417 Delete all lines containing "$Revision:".
38418 * xeinfo.adb: Don't look for revision numbers.
38419 * xnmake.adb: Likewise.
38420 * xsinfo.adb: Likewise.
38421 * xsnames.adb: Likewise.
38422 * xtreeprs.adb: Likewise.
38424 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38426 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
38427 gnat_tree_code_name): Delete.
38428 (tree_code_type, tree_code_length, tree_code_name): Define.
38429 (gnat_init): Don't try to copy into the various tree_code
38432 2002-03-11 Richard Henderson <rth@redhat.com>
38434 * Makefile.in (.NOTPARALLEL): Add fake tag.
38436 2002-03-07 Geert Bosch <bosch@gnat.com>
38438 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
38439 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
38440 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
38441 switch-m.adb, switch-m.ads : New files.
38443 2002-03-07 Geert Bosch <bosch@gnat.com>
38445 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
38446 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
38447 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
38448 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
38449 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
38450 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
38451 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
38452 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
38453 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
38454 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
38455 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
38456 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
38457 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
38458 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
38459 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
38460 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
38461 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
38462 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
38463 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38464 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
38465 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
38466 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
38467 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
38468 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
38469 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
38470 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
38471 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
38472 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
38473 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
38474 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
38475 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
38476 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
38477 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
38478 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
38479 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
38480 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
38481 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38482 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
38483 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
38484 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
38485 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
38486 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
38487 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
38488 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
38489 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
38490 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
38491 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
38492 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
38493 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
38494 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
38495 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
38496 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
38497 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
38498 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
38499 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
38500 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
38501 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
38502 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
38503 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
38504 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
38505 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
38506 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
38507 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
38508 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
38509 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
38510 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
38511 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
38512 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
38513 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
38514 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
38515 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
38516 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
38517 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
38518 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
38519 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
38520 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38521 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
38522 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38523 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
38524 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38525 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
38526 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
38527 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
38528 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
38529 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
38530 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
38531 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
38532 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
38533 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
38534 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
38535 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
38536 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
38537 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
38538 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
38539 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
38540 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
38541 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
38543 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
38544 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
38545 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
38546 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
38548 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
38549 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
38551 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
38552 to mdll-fil.ad[bs] and mdll-util.ad[bs]
38554 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
38555 from mdllfile.ad[bs] and mdlltool.ad[bs]
38557 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38559 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
38560 lieu of explicit sizeof/sizeof.
38562 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
38564 * misc.c (copy_lang_decl): Remove.
38566 2002-02-27 Zack Weinberg <zack@codesourcery.com>
38568 * misc.c: Delete traditional-mode-related code copied from the
38569 C front end but not used, or used only to permit the compiler
38572 2002-02-07 Richard Henderson <rth@redhat.com>
38574 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
38575 * adaint.h (__gnat_to_gm_time): Update prototype.
38577 2002-01-30 Richard Henderson <rth@redhat.com>
38579 * trans.c (tree_transform) [N_Loop_Statement]: Use
38580 expand_exit_loop_top_cond.
38582 2001-12-23 Richard Henderson <rth@redhat.com>
38584 * utils.c (end_subprog_body): Push GC context around
38585 rest_of_compilation for nested functions.
38587 2001-12-23 Richard Henderson <rth@redhat.com>
38589 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
38591 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
38593 * gnat-style.texi (Declarations and Types): Remove ancient style
38594 rule which was mandated by code generation issues.
38596 * gnat-style.texi (header): Add @dircategory, @direntry.
38597 (title page): Remove date.
38598 (general) Add @./@: where approriate, and two spaces after the
38599 full stop at the end of a sentence. Use @samp markup when
38600 referring concrete lexical entities (keywords, attribute names
38601 etc.), and @syntax for ARM grammar elements. Use @r for English
38602 text in comments. Use @emph for emphasis. Change "if-statements"
38603 etc. to "if statements" (without @samp). Break long lines. Make
38604 casing of section names consistent.
38605 (Identifiers): Use @samp markup for variable names.
38606 (Comments): Use @samp markup for comment characters. Line-end
38607 comments may follow any Ada code, not just statements. Fix
38608 misspelling of "Integer" as "integer".
38609 (Loop statements): Do not use variable name "I", use "J".
38610 (Subprogram Declarations): Document alignment.
38611 (Subprogram Bodies, Block statements): Document empty line before
38614 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
38616 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38617 function approach did not work well because of a side effect (the
38618 function call could reallocate the table which was being indexed
38619 using its result). Fixes ada/4851.
38621 2001-12-19 Robert Dewar <dewar@gnat.com>
38623 * bindgen.adb: Minor reformatting
38625 * cstand.adb: Minor reformatting
38627 * fmap.adb: Minor reformatting
38628 Change name from Add for Add_To_File_Map (Add is much too generic)
38629 Change Path_Name_Of to Mapped_Path_Name
38630 Change File_Name_Of to Mapped_File_Name
38631 Fix copyright dates in header
38634 Change name from Add for Add_To_File_Map (Add is much too generic)
38635 Change Path_Name_Of to Mapped_Path_Name
38636 Change File_Name_Of to Mapped_File_Name
38637 Fix copyright dates in header
38639 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
38640 Add use clause for Fmap.
38642 * make.adb: Minor reformatting
38644 * osint.adb: Minor reformatting. Change of names in Fmap.
38645 Add use clause for Fmap.
38647 * prj-env.adb: Minor reformatting
38649 * prj-env.ads: Minor reformatting
38651 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
38652 error found (there were odd exceptions to this general rule in
38653 -gnatec/-gnatem processing)
38655 2001-12-19 Olivier Hainque <hainque@gnat.com>
38657 * raise.c (__gnat_eh_personality): Exception handling personality
38658 routine for Ada. Still in rough state, inspired from the C++ version
38659 and still containing a bunch of debugging artifacts.
38660 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
38661 inspired from the C++ library.
38663 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
38664 exception handling integration.
38666 2001-12-19 Arnaud Charlet <charlet@gnat.com>
38668 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
38669 (HIE_SOURCES): Add s-secsta.ad{s,b}.
38670 (HIE_OBJS): Add s-fat*.o
38671 (RAVEN_SOURCES): Remove files that are no longer required. Add
38672 interrupt handling files.
38673 (RAVEN_MOD): Removed, no longer needed.
38675 2001-12-19 Robert Dewar <dewar@gnat.com>
38677 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
38678 Add 2001 to copyright date
38680 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
38681 need to force universal inlining for these cases.
38683 2001-12-19 Arnaud Charlet <charlet@gnat.com>
38685 * s-taprob.adb: Minor clean ups so that this unit can be used in
38688 * exp_ch7.adb: Allow use of secondary stack in HI mode.
38689 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
38691 2001-12-19 Vincent Celier <celier@gnat.com>
38693 * prj-tree.ads (Project_Node_Record): Add comments for components
38694 Pkg_Id and Case_Insensitive.
38696 2001-12-19 Pascal Obry <obry@gnat.com>
38698 * g-socket.adb: Minor reformatting. Found while reading code.
38700 2001-12-19 Robert Dewar <dewar@gnat.com>
38702 * prj-tree.ads: Minor reformatting
38704 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
38706 * config-lang.in (diff_excludes): Remove.
38708 2001-12-17 Ed Schonberg <schonber@gnat.com>
38710 * sem_res.adb (Resolve_Selected_Component): do not generate a
38711 discriminant check if the selected component is a component of
38712 the argument of an initialization procedure.
38714 * trans.c (tree_transform, case of arithmetic operators): If result
38715 type is private, the gnu_type is the base type of the full view,
38716 given that the full view itself may be a subtype.
38718 2001-12-17 Robert Dewar <dewar@gnat.com>
38720 * sem_res.adb: Minor reformatting
38722 * trans.c (tree_transform, case N_Real_Literal): Add missing third
38723 parameter in call to Machine (unknown horrible effects from this
38726 * urealp.h: Add definition of Round_Even for call to Machine
38727 Add third parameter for Machine
38729 2001-12-17 Ed Schonberg <schonber@gnat.com>
38731 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
38732 predefined units in No_Run_Time mode.
38734 2001-12-17 Richard Kenner <kenner@gnat.com>
38736 * misc.c (insn-codes.h): Now include.
38738 2001-12-17 Olivier Hainque <hainque@gnat.com>
38740 * a-except.adb: Preparation work for future integration of the GCC 3
38741 exception handling mechanism
38742 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
38743 to factorize previous code sequences and make them externally callable,
38744 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
38745 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
38746 Use the new notification routines.
38748 2001-12-17 Emmanuel Briot <briot@gnat.com>
38750 * prj-tree.ads (First_Choice_Of): Document the when others case
38752 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38754 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
38755 HI-E mode, in order to support Ravenscar profile properly.
38757 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
38758 mode on 32 bits targets.
38760 2001-12-17 Vincent Celier <celier@gnat.com>
38762 * fmap.adb: Initial version.
38764 * fmap.ads: Initial version.
38766 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
38767 If search is successfully done, add to mapping.
38769 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
38772 (Gnatmake): Add new local variable Mapping_File_Name.
38773 Create mapping file when using project file(s).
38774 Delete mapping file before exiting.
38776 * opt.ads (Mapping_File_Name): New variable
38778 * osint.adb (Find_File): Use path name found in mapping, if any.
38780 * prj-env.adb (Create_Mapping_File): New procedure
38782 * prj-env.ads (Create_Mapping_File): New procedure.
38784 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
38787 * usage.adb: Add entry for new switch -gnatem.
38789 * Makefile.in: Add dependencies for fmap.o.
38791 2001-12-17 Ed Schonberg <schonber@gnat.com>
38793 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
38794 is a package instantiation rewritten as a package body.
38795 (Install_Withed_Unit): Undo previous change, now redundant.
38797 2001-12-17 Gary Dismuke <dismukes@gnat.com>
38800 (Compute_Length): Move conversion to Unsigned to callers.
38801 (Get_Max_Size): Convert Len expression to Unsigned after calls to
38802 Compute_Length and Determine_Range.
38803 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
38804 Compute_Length and Determine_Range.
38805 Above changes fix problem with length computation for supernull arrays
38806 where Max (Len, 0) wasn't getting applied due to the Unsigned
38807 conversion used by Compute_Length.
38809 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38812 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
38813 System.Secondary_Stack.
38814 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
38816 Remove unused entity RE_Exception_Data.
38818 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
38820 * rident.ads (No_Secondary_Stack): New restriction.
38822 2001-12-17 Joel Brobecker <brobecke@gnat.com>
38824 * gnat_rm.texi: Fix minor typos. Found while reading the section
38825 regarding "Bit_Order Clauses" that was sent to a customer.
38826 Very interesting documentation!
38828 2001-12-17 Robert Dewar <dewar@gnat.com>
38830 * sem_case.adb (Choice_Image): Avoid creating improper character
38831 literal names by using the routine Set_Character_Literal_Name. This
38832 fixes bombs in certain error message cases.
38834 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38836 * a-reatim.adb: Minor reformatting.
38838 2001-12-17 Ed Schonberg <schonber@gnat.com>
38840 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
38841 case where the formal is an extension of another formal in the current
38842 unit or in a parent generic unit.
38844 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38846 * s-tposen.adb: Update comments. Minor reformatting.
38847 Minor code clean up.
38849 * s-tarest.adb: Update comments. Minor code reorganization.
38851 2001-12-17 Gary Dismukes <dismukes@gnat.com>
38853 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
38856 2001-12-17 Robert Dewa <dewar@gnat.com>
38858 * exp_attr.adb: Minor reformatting
38860 2001-12-17 Ed Schonberg <schonber@gnat.com>
38862 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
38863 derivations nested within a child unit: verify that the parent
38864 type is declared in an outer scope.
38866 2001-12-17 Robert Dewar <dewar@gnat.com>
38868 * sem_ch12.adb: Minor reformatting
38870 2001-12-17 Ed Schonberg <schonber@gnat.com>
38872 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
38873 warning if current unit is a predefined one, from which bodies may
38876 2001-12-17 Robert Dewar <dewar@gnat.com>
38878 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
38879 Fix header format. Add 2001 to copyright date.
38881 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
38882 which caused CE during compilation if checks were enabled.
38884 2001-12-17 Vincent Celier <celier@gnat.com>
38887 (Switches_Of): New function
38888 (Test_If_Relative_Path): New procedure
38889 (Add_Switches): Use new function Switches_Of
38890 (Collect_Arguments_And_Compile): Use new function Switches_Of.
38891 When using a project file, test if there are any relative
38892 search path. Fail if there are any.
38893 (Gnatmake): Only add switches for the primary directory when not using
38894 a project file. When using a project file, change directory to the
38895 object directory of the main project file. When using a project file,
38896 test if there are any relative search path. Fail if there are any.
38897 When using a project file, fail if specified executable is relative
38898 path with directory information, and prepend executable, if not
38899 specified as an absolute path, with the exec directory. Make sure
38900 that only one -o switch is transmitted to the linker.
38902 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
38905 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
38906 when using a non standard naming scheme.
38907 (Check_Ada_Naming_Scheme): Make sure that error messages
38908 do not raise exceptions.
38909 (Is_Illegal_Append): Return True if there is no dot in the suffix.
38910 (Language_Independent_Check): Check the exec directory.
38912 * prj.adb (Project_Empty): Add new component Exec_Directory
38915 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
38916 (Project_Data): Add component Exec_Directory
38918 * snames.adb: Updated to match snames.ads revision 1.215
38920 * snames.ads: Added Exec_Dir
38922 2001-12-17 Robert Dewar <dewar@gnat.com>
38924 * make.adb: Minor reformatting
38926 * prj-nmsc.adb: Minor reformatting
38928 * snames.adb: Updated to match snames.ads
38930 * snames.ads: Alphebetize entries for project file
38932 2001-12-17 Ed Schonberg <schonber@gnat.com>
38934 * trans.c (process_freeze_entity): Do nothing if the entity is a
38935 subprogram that was already elaborated.
38937 2001-12-17 Richard Kenner <kenner@gnat.com>
38939 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
38940 and Esize if object is referenced via pointer.
38942 2001-12-17 Ed Schonberg <schonber@gnat.com>
38944 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
38945 is discrete before analyzing choices.
38947 2001-12-17 Joel Brobecker <brobecke@gnat.com>
38949 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
38950 containing the name of the Ada Main Program. This string is mainly
38951 intended for the debugger.
38952 (Gen_Output_File_C): Do the equivalent change when generating a C file.
38954 2001-12-17 Robert Dewar <dewar@gnat.com>
38956 * ali.adb: Set new Dummy_Entry field in dependency entry
38958 * ali.ads: Add Dummy_Entry field to source dependency table
38960 * bcheck.adb (Check_Consistency): Ignore dummy D lines
38962 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
38964 * lib-writ.ads: Document dummy D lines for missing files.
38966 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
38968 2001-12-17 Robert Dewar <dewar@gnat.com>
38970 * ali.adb: Type reference does not reset current file.
38972 * ali.adb: Recognize and scan renaming reference
38974 * ali.ads: Add spec for storing renaming references.
38976 * lib-xref.ads: Add documentation for handling of renaming references
38978 * lib-xref.adb: Implement output of renaming reference.
38981 (Determine_Range): Document local variables
38982 (Determine_Range): Make sure Hbound is initialized. It looks as though
38983 there could be a real problem here with an uninitialized reference
38984 to Hbound, but no actual example of failure has been found.
38986 2001-12-17 Laurent Pautet <pautet@gnat.com>
38989 Fix comment of Shutdown_Socket and Close_Socket. These functions
38990 should not fail silently because if they are called twice, this
38991 probably means that there is a race condition in the user program.
38992 Anyway, this behaviour is consistent with the rest of this unit.
38993 When an error occurs, an exception is raised with the error message
38994 as exception message.
38996 2001-12-17 Robert Dewar <dewar@gnat.com>
38998 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
38999 that it happens before modification of Sloc values for -gnatD.
39001 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
39002 so that it happens before modification of Sloc values for -gnatD.
39004 * switch.adb: Minor reformatting
39006 2001-12-15 Richard Henderson <rth@redhat.com>
39008 * sem_ch7.adb: Wrap comment.
39010 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39012 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
39013 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
39014 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
39015 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
39016 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
39017 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
39018 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
39019 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
39020 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
39021 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
39022 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
39023 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
39024 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
39025 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
39026 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
39027 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
39028 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
39029 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
39030 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
39031 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
39032 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
39033 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
39034 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
39035 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
39038 2001-12-14 Vincent Celier <celier@gnat.com>
39040 * osint.adb(Create_Debug_File): When an object file is specified,
39041 put the .dg file in the same directory as the object file.
39043 2001-12-14 Robert Dewar <dewar@gnat.com>
39045 * osint.adb: Minor reformatting
39047 * lib-xref.adb (Output_Instantiation): New procedure to generate
39048 instantiation references.
39050 * lib-xref.ads: Add documentation of handling of generic references.
39052 * ali.adb (Read_Instantiation_Ref): New procedure to read
39053 instantiation references
39055 * ali.ads: Add spec for storing instantiation references
39057 * bindusg.adb: Minor reformatting
39059 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39061 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39063 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39065 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39069 Add 2001 to copyright date
39070 Add entry for Latin-5 (Cyrillic ISO-8859-5)
39072 2001-12-14 Matt Gingell <gingell@gnat.com>
39074 * adaint.c: mktemp is a macro on Lynx and can not be used as an
39077 2001-12-14 Richard Kenner <kenner@gnat.com>
39079 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
39080 if operand is CONSTRUCTOR.
39082 2001-12-14 Ed Schonberg <schonber@gnat.com>
39084 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
39085 before emiting check on right-hand side, so that exception information
39088 2001-12-14 Richard Kenner <kenner@gnat.com>
39090 * utils.c (create_var_decl): Throw away initializing expression
39091 if just annotating types and non-constant.
39093 2001-12-14 Vincent Celier <celier@gnat.com>
39095 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
39098 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39100 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
39102 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39104 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
39106 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39108 * ChangeLog: Remove piece of diff output.
39110 2001-12-14 Geert Bosch <bosch@gnat.com>
39112 * config-lang.in: Update copyright notice
39114 * layout.adb: Remove commented out code.
39116 * mdllfile.ads: Update copyright notice. Fix header format.
39118 * sem_case.ads: Likewise.
39120 * sem_ch3.adb: Minor reformatting.
39122 2001-12-12 Geert Bosch <bosch@gnat.com>
39124 * freeze.ads: Update copyright date.
39126 * g-comlin.ads: Minor reformatting.
39128 * gnat-style.texi: Fix typo.
39130 2001-12-12 Geert Bosch <bosch@gnat.com>
39132 * einfo.h: Regenerate.
39134 2001-12-12 Ed Schonberg <schonber@gnat.com>
39136 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
39137 on known node types, rather than untyped fields. Further cleanups.
39139 2001-12-12 Robert Dewar <dewar@gnat.com>
39142 (Save_Entity_Descendant): Minor comment update.
39143 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
39144 of an N_Attribute_Reference node. As per note below, this does not
39145 eliminate need for Associated_Node in attribute ref nodes.
39146 (Associated_Node): Documentation explicitly mentions attribute
39147 reference nodes, since this field is used in such nodes.
39149 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
39151 2001-12-12 Robert Dewar <dewar@gnat.com>
39153 * s-stalib.adb: Add more comments on with statements being needed
39155 * par-ch12.adb: Minor reformatting
39157 * prj-dect.ads: Fix copyright header
39159 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
39160 inputs fit in 32 bits, but the result still overflows.
39162 * s-fatgen.ads: Minor comment improvement
39164 2001-12-12 Ed Schonberg <schonber@gnat.com>
39166 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
39167 formal derived type, look for an inherited component from the full
39168 view of the parent, if any.
39170 2001-12-12 Robert Dewar <dewar@gnat.com>
39172 * checks.ads (Apply_Alignment_Check): New procedure.
39174 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
39175 ensure that the alignment of objects with address clauses is
39176 appropriate, and raise PE if not.
39178 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
39179 Exp_Pakd.Known_Aligned_Enough
39181 * mdllfile.ads: Minor reformatting
39183 * mlib-fil.ads: Minor reformatting
39185 2001-12-12 Ed Schonberg <schonber@gnat.com>
39187 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
39188 fix to any component reference if enclosing record has non-standard
39191 2001-12-12 Vincent Celier <celier@gnat.com>
39193 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
39196 2001-12-12 Ed Schonberg <schonber@gnat.com>
39198 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
39201 2001-12-12 Robert Dewar <dewar@gnat.com>
39203 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
39205 2001-12-12 Emmanuel Briot <briot@gnat.com>
39207 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
39208 and it adds dependencies to system.io.
39210 2001-12-12 Pascal Obry <obry@gnat.com>
39212 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
39215 2001-12-11 Ed Schonberg <schonber@gnat.com>
39217 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
39218 that is the parent of other generics, the instance body replaces the
39219 instance node. Retrieve the instance of the spec, which is the one
39220 that is visible in clients and within the body.
39222 2001-12-11 Vincent Celier <celier@gnat.com>
39224 * gnatmain.adb: Initial version.
39226 * gnatmain.ads: Initial version.
39228 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
39230 * snames.adb: Updated to match snames.ads.
39232 * snames.ads: Added Gnatstub.
39234 2001-12-11 Vincent Celier <celier@gnat.com>
39236 * prj-attr.adb (Initialization_Data): Change name from
39237 Initialisation_Data.
39239 2001-12-11 Emmanuel Briot <briot@gnat.com>
39241 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
39242 + and * applied to backslashed expressions like \r.
39244 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
39246 * g-os_lib.ads: String_List type added, Argument_List type is now
39247 subtype of String_List.
39249 2001-12-11 Robert Dewar <dewar@gnat.com>
39251 * g-os_lib.ads: Change copyright to FSF
39252 Add comments for String_List type
39254 2001-12-11 Vincent Celier <celier@gnat.com>
39256 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
39257 string to the buffer).
39259 2001-12-11 Ed Schonberg <schonber@gnat.com>
39261 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
39264 * sem_attr.adb: Simplify previous fix for Address.
39265 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
39266 to avoid anomalies where the bound of the type appears to raise
39269 2001-12-11 Robert Dewar <dewar@gnat.com>
39271 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
39274 2001-12-11 Ed Schonber <schonber@gnat.com>
39276 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
39277 renamed unit before checking for recursive instantiations.
39279 2001-12-11 Emmanuel Briot <briot@gnat.com>
39281 * prj.ads: Add comments for some of the fields.
39283 2001-12-11 Robert Dewar <dewar@gnat.com>
39285 * lib-xref.adb (Output_Refs): Don't output type references outside
39286 the main unit if they are not otherwise referenced.
39288 2001-12-11 Ed Schonberg <schonber@gnat.com>
39290 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
39291 code and diagnose additional illegal uses
39293 * sem_util.adb (Is_Object_Reference): An indexed component is an
39294 object only if the prefix is.
39296 2001-12-11 Vincent Celier <celier@gnat.com>
39298 * g-diopit.adb: Initial version.
39300 * g-diopit.ads: Initial version.
39303 (Expand_Path): Avoid use of Unbounded_String
39304 (Find, Wildcard_Iterator): Moved to child package Iteration
39306 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
39308 2001-12-11 Robert Dewar <dewar@gnat.com>
39310 * sem_attr.adb: Minor reformatting
39312 2001-12-11 Ed Schonberg <schonber@gnat.com>
39314 * sem_ch3.adb: Clarify some ???.
39316 2001-12-11 Robert Dewar <dewar@gnat.com>
39318 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
39319 Exp_Pakd.Known_Aligned_Enough
39321 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
39322 version is moved to Exp_Ch13.
39324 2001-12-11 Robert Dewar <dewar@gnat.com>
39326 * einfo.ads: Minor reformatting
39328 * exp_ch5.adb: Add comment for previous.change
39330 * ali.adb: New interface for extended typeref stuff.
39332 * ali.ads: New interface for typeref stuff.
39334 * checks.adb (Apply_Alignment_Check): New procedure.
39336 * debug.adb: Add -gnatdM for modified ALI output
39338 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
39340 * lib-xref.adb: Extend generation of <..> notation to cover
39341 subtype/object types. Note that this is a complete rewrite,
39342 getting rid of the very nasty quadratic algorithm previously
39343 used for derived type output.
39345 * lib-xref.ads: Extend description of <..> notation to cover
39346 subtype/object types. Uses {..} for these other cases.
39347 Also use (..) for pointer types.
39349 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
39351 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
39352 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
39354 2001-12-11 Vincent Celier <celier@gnat.com>
39357 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
39358 Changed /BIND_ONLY to /ACTIONS=BIND
39359 Changed /LINK_ONLY to /ACTIONS=LINK
39361 2001-12-11 Ed Schonberg <schonber@gnat.com>
39363 * sem_ch8.adb (Find_Selected_Component): improved search for a
39364 candidate package in case of error.
39366 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
39367 chain back on scope stack before reinstalling use clauses.
39369 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
39370 is enabled, do not kill the code for the condition, to preserve
39373 2001-12-11 Robert Dewar <dewar@gnat.com>
39375 * checks.adb (Insert_Valid_Check): Apply validity check to expression
39376 of conversion, not to result of conversion.
39378 2001-12-11 Ed Schonberg <schonber@gnat.com>
39380 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
39381 before freezing parent. If the declarations are mutually recursive,
39382 an access to the current record type may be frozen before the
39383 derivation is complete.
39385 2001-12-05 Vincent Celier <celier@gnat.com>
39387 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
39388 -c /COMPILE_ONLY, -l /LINK_ONLY
39391 (Bind_Only): New Flag
39392 (Link_Only): New flag
39394 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
39397 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
39400 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
39401 (Gnatmake): Set the step flags. Only perform a step if the
39402 corresponding step flag is True.
39403 (Scan_Make_Arg): Reset the bind and link step flags when -u
39404 or -gnatc has been specified.
39406 2001-12-05 Ed Schonberg <schonber@gnat.com>
39408 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
39409 get bounds from right operand.
39411 * sem_eval.adb: Minor reformatting
39413 * exp_util.adb (Make_Literal_Range): use bound of literal rather
39414 than Index'First, its lower bound may be different from 1.
39416 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
39419 2001-12-05 Vincent Celier <celier@gnat.com>
39421 * prj-nmsc.adb Minor reformatting
39423 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
39424 set and libraries are not supported.
39426 2001-12-05 Ed Schonberg <schonber@gnat.com>
39428 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
39429 private view explicitly, so the back-end can treat as a global
39432 2001-12-05 Ed Schonberg <schonber@gnat.com>
39434 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
39435 unit, always replace instance node with new body, for ASIS use.
39437 2001-12-05 Vincent Celier <celier@gnat.com>
39439 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
39440 libraries are not supported and both attributes Library_Name and
39441 Library_Dir are specified.
39443 * prj-proc.adb (Expression): Set location of Result to location of
39446 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
39447 (prj-nmsc is now importing MLib.Tgt)
39449 * prj-proc.adb: Put the change indicated above that was forgotten.
39451 2001-12-05 Robert Dewar <dewar@gnat.com>
39453 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
39455 2001-12-05 Ed Schonberg <schonber@gnat.com>
39457 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
39458 constraint, introduce explicit subtype declaration and derive from it.
39460 * sem_ch3.adb: Minor reformatting
39462 2001-12-05 Robert Dewar <dewar@gnat.com>
39464 * checks.adb (Determine_Range): Increase cache size for checks.
39467 * exp_ch6.adb: Minor reformatting
39468 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
39469 a parameter whose root type is System.Address, since treating such
39470 subprograms as pure in the code generator is almost surely a mistake
39471 that will lead to unexpected results.
39473 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
39474 change handling of conversions.
39476 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
39478 2001-12-05 Ed Schonberg <schonber@gnat.com>
39480 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
39481 aggregate with static wrong size, attach generated Raise node to
39484 2001-12-05 Robert Dewar <dewar@gnat.com>
39486 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
39487 Fixes compilation abandoned bomb in B24009B.
39489 2001-12-05 Ed Schonberg <schonber@gnat.com>
39492 Document use of Associated_Node on Selected_Components.
39493 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
39494 to clarify use of untyped descendant fields.
39496 2001-12-05 Robert Dewar <dewar@gnat.com>
39498 * prj-dect.ads: Add ??? comment
39499 Add 2001 to copyright notice (was not done in after all)
39501 * prj-part.adb: Minor reformatting. Reword one awkward error message.
39503 * prj.ads: Minor reformatting throughout, and add some ??? comments
39505 * snames.ads: Minor reformatting
39507 2001-12-05 Geert Bosch <bosch@gnat.com>
39509 * snames.adb: Autoupdate
39511 2001-12-05 Vincent Celier <celier@gnat.com>
39513 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
39515 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
39517 * prj-env.adb: Minor comment changes (modifying -> extends).
39519 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
39521 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
39524 * prj.adb (Initialize): Change Modifying to Extends.
39526 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
39528 * prj.ads: Minor comment change (Modifying -> extending).
39530 * snames.ads: Change modifying to extends.
39532 2001-12-05 Robert Dewar <dewar@gnat.com>
39534 * sem_warn.adb: Remove stuff for conditionals, we are not going to
39537 * sem_warn.ads: Remove stuff for conditionals, we are not going to
39538 do this after all. Add 2001 to copyright notice
39540 2001-12-04 Geert Bosch <bosch@gnat.com>
39542 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
39544 2001-12-04 Robert Dewar <dewar@gnat.com>
39546 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
39547 location if we already have errors. Stops some cases of cascaded
39550 * errout.adb: Improve comment.
39552 2001-12-04 Robert Dewar <dewar@gnat.com>
39555 (Analyze_Formal_Type_Definition): Defend against Error.
39556 (Analyze_Formal_Subprogram): Defend against Error.
39558 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
39559 remove following semicolon if present. Removes cascaded error.
39561 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
39564 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
39565 exceptions equals 0.
39566 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
39567 Fixes PIWG E tests (which have to be run with -gnatL).
39569 2001-12-04 Robert Dewar <dewar@gnat.com>
39571 * einfo.ads: Minor reformatting
39573 2001-12-04 Ed Schonberg <schonber@gnat.com>
39575 * einfo.ads: Block_Node points to the identifier of the block, not to
39576 the block node itself, to preserve the link when the block is
39577 rewritten, e.g. within an if-statement with a static condition.
39579 * inline.adb (Cleanup_Scopes): recover block statement from block
39580 entity using new meaning of Block_Node.
39582 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
39583 identifier of block node, rather than to node itself.
39585 2001-12-04 Gary Dismukes <dismukes@gnat.com>
39588 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
39589 (Discrimify): Go back to setting the Etypes of the selected component
39590 because the Vname component does not exist at this point and will
39591 fail name resolution. Also set Analyzed.
39592 Remove with and use of Sem_Res.
39594 2001-12-04 Arnaud Charlet <charlet@gnat.com>
39596 * Makefile.in: (HIE_SOURCES): add s-fat*.
39598 2001-12-04 Robert Dewar <dewar@gnat.com>
39601 (Compile_Time_Known_Attribute): New procedure.
39602 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
39603 proper range check.
39605 2001-12-04 Ed Schonberg <schonber@gnat.com>
39607 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
39608 processing discriminants to diagnose illegal default values.
39610 2001-12-04 Ed Schonberg <schonber@gnat.com>
39612 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
39613 access discriminant within a type extension that constrains its
39614 parent discriminants.
39616 2001-12-04 Ed Schonberg <schonber@gnat.com>
39618 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
39619 is malformed, use instance of Any_Id to allow analysis to proceed.
39621 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
39622 type definition is illegal.
39623 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
39626 2001-12-04 Ed Schonberg <schonber@gnat.com>
39628 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
39631 2001-12-04 Robert Dewar <dewar@gnat.com>
39633 * errout.adb: Minor reformatting
39635 2001-12-04 Robert Dewar <dewar@gnat.com>
39637 * exp_util.adb: Minor reformatting from last change
39639 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
39640 which is a rewriting of an expression, traverse the original
39641 expression to remove warnings that may have been posted on it.
39643 2001-12-04 Ed Schonberg <schonber@gnat.com>
39645 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
39646 record that has other packed components.
39648 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
39650 * adaint.c: Minor cleanups.
39652 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
39654 * adaint.c: Do not use utime.h on vxworks.
39656 2001-12-04 Arnaud Charlet <charlet@gnat.com>
39658 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
39659 more confusion than it solves.
39661 2001-12-04 Geert bosch <bosch@gnat.com>
39663 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
39665 2001-12-04 Geert Bosch <bosch@gnat.com>
39667 * Makefile.in (update-sources): New target.
39668 For use by gcc_release script.
39670 2001-12-04 Ed Schonberg <schonber@gnat.com>
39672 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
39673 a configuration pragma, it is now legal wherever a pragma can appear.
39675 2001-12-04 Zack Weinberg <zack@codesourcery.com>
39677 * Makefile.in: Don't set ALL. Delete @cross_defines@,
39678 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
39679 is now @CROSS@ -DIN_GCC; update comment.
39681 2001-12-04 Robert Dewar <dewar@gnat.com>
39683 * einfo.adb (Has_Pragma_Pure_Function): New flag.
39684 Fix problem that stopped ceinfo from working
39686 * einfo.ads (Has_Pragma_Pure_Function): New flag.
39688 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
39690 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
39693 (File_Time_Stamp): New procedure.
39694 (Preserve_Mode): New boolean.
39695 (Write_Unit): Pass time stamp.
39696 Implement -p switch (preserve time stamps).
39698 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
39700 * gnatchop.adb: Do usage info for -p switch
39702 * adaint.h (__gnat_set_file_time_name): New function
39704 * adaint.c (__gnat_set_file_time_name): Implement
39706 * adaint.h: Fix typo
39708 2001-12-03 Robert Dewar <dewar@gnat.com>
39710 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
39711 have Associated_Node.
39713 2001-12-03 Robert Dewar <dewar@gnat.com>
39715 * prj-proc.adb: Minor reformatting
39717 * make.adb: Minor reformatting
39719 2001-12-03 Geert Bosch <bosch@gnat.com>
39721 * make.adb: Minor reformatting.
39723 2001-12-03 Robert Dewar <dewar@gnat.com>
39725 * sem_ch12.adb: Minor reformatting
39727 2001-12-03 Ed Schonberg <schonber@gnat.com>
39729 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
39730 push Standard on the stack before analyzing the instance body,
39731 in order to have a clean visibility environment.
39733 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
39735 2001-12-03 Ed Schonberg <schonber@gnat.com>
39737 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
39738 instantiation of a body that contains an inlined body.
39740 2001-12-03 Ed Schonberg <schonber@gnat.com>
39743 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
39744 to prevent freezing within formal packages.
39745 (Freeze_Subprogram_Body): If body comes from another instance that
39746 appeared before its own body, place freeze node at end of current
39747 declarative part, to prevent a back-end crash.
39748 (Inline_Instance_Body): Handle properly a package instance within
39749 a subprogram instance that is a child unit.
39751 2001-12-01 Graham Stott <grahams@redhat.com>
39753 * Makefile.in (misc.o): Add missing $(srcdir) prefix
39754 and add optabs.h dependency.
39756 * misc.c: Include optabs.h
39757 (gnat_tree_code_type): Make static and const.
39758 (gnat_tree_code_length): Likewise.
39759 (gnat_tree_code_name): Likewise.
39760 (update_setjmp_buf): Obtain operands mode from insn_data.
39762 2001-11-29 Richard Henderson <rth@redhat.com>
39764 * init.c: Remove obsolete dwarf2 frame.h section.
39766 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
39768 * Make-lang.in (ada.generated-manpages): New dummy target.
39770 2001-11-29 Ed Schonberg <schonber@gnat.com>
39772 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
39773 into Command, an array conversion is illegal here. Uncovered by
39776 2001-11-28 Geert Bosch <bosch@gnat.com>
39778 * init.c: Minor whitespace changes.
39780 2001-11-28 Doug Rupp <rupp@gnat.com>
39782 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
39785 2001-11-28 Zack Weinberg <zack@codesourcery.com>
39787 * misc.c (gnat_expand_constant): Move declaration above
39788 definition of lang_hooks.
39789 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
39790 (gnat_init): lang_expand_constant no longer exists.
39792 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
39793 always have vprintf.
39794 (gnat_init): Always call set_internal_error_function.
39796 2001-11-27 Andreas Jaeger <aj@suse.de>
39798 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
39800 2001-11-27 Laurent Guerby <guerby@acm.org>
39802 * Makefile.in: Regenerate Ada dependencies.
39804 2001-11-26 Richard Henderson <rth@redhat.com>
39806 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
39807 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
39808 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
39810 2001-11-25 Laurent Guerby <guerby@acm.org>
39812 * sysdep.c (rts_get_*): Fix style.
39814 2001-11-19 Laurent Guerby <guerby@acm.org>
39816 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
39817 since it is of no apparent use and cause warnings.
39819 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
39821 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
39823 (gnat_init): Don't return NULL.
39824 (finish_parse): Remove.
39826 2001-11-17 Laurent Guerby <guerby@acm.org>
39828 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
39829 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
39830 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
39831 * lang-spec.h: Add missing struct field to silence warnings.
39832 * sysdep.c (rts_get_*): Provide K&R prototype.
39833 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
39834 * traceback.c (Unlock_Task, Lock_Task): Likewise.
39835 * tracebak.c (__gnat_backtrace): Remove unused variable.
39836 * utils.c (end_subprog_body): Move to K&R style.
39838 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39840 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
39842 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
39844 * misc.c (gnat_init): Change prototype. Include the
39845 functionality of the old init_parse and init_decl_processing.
39846 (gnat_init_decl_processing): New prototype.
39847 (init_parse): Remove.
39848 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
39850 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
39852 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
39853 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
39854 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
39855 set_yydebug): Remove.
39857 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
39859 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
39860 (struct lang_hooks): Constify.
39861 (language_string, lang_identify): Remove.
39862 * utils.c (init_decl_processing): Update.
39864 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
39866 * misc.c: Include langhooks-def.h.
39867 * Makefile.in: Update.
39869 2001-10-30 Robert Dewar <dewar@gnat.com>
39872 (Check_Identifier): Rewrite circuit to be compatible with use of letters
39873 in the upper half of ASCII.
39874 (Check_Identifier): Minor reformatting
39876 2001-10-30 Geert Bosch <bosch@gnat.com>
39878 * (Associated_Node, Set_Associated_Node): Do not check for
39881 2001-10-30 Robert Dewar <dewar@gnat.com>
39883 * a-reatim.ads: Minor reformatting
39885 2001-10-30 Robert Dewar <dewar@gnat.com>
39887 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
39888 undocumented declarations.
39890 2001-10-30 Pascal Obry <obry@gnat.com>
39892 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
39893 to the binder and linker.
39896 * mdll.ads: Fix layout. Update copyright notice.
39898 * mdll.adb: Fix layout. Update copyright notice.
39900 2001-10-30 Robert Dewar <dewar@gnat.com>
39902 * usage.adb: Minor fix to output for -gnaty.
39904 2001-10-30 Ed Schonberg <schonber@gnat.com>
39906 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
39907 to accommodate all its possible values.
39909 * a-reatim.adb (Split): Special-case handling of Time_Span_First
39910 and of small absolute values of T.
39912 2001-10-30 Richard Kenner <kenner@gnat.com>
39914 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
39915 set_mem_attributes since not needed and wrong if RESULT if a REG;
39916 fixes ACATS failures.
39918 2001-10-30 Geert Bosch <bosch@gnat.com>
39920 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
39921 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
39923 2001-10-30 Robert Dewar <dewar@gnat.com>
39925 * bindusg.adb: Undocument -f switch.
39927 * gnatcmd.adb: Remove /FULL_ELABORATION.
39929 * opt.ads (Force_RM_Elaboration_Order): Document that this is
39932 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
39934 * gnatbind.adb: Minor update of warning msg.
39936 2001-10-30 Vincent Celier <celier@gnat.com>
39938 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
39939 for project file switches (-P (/PROJECT_FILE=),
39940 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
39943 2001-10-30 Geert Bosch <bosch@gnat.com>
39945 * decl.c: Minor whitespace fixes.
39947 2001-10-30 Richard Kenner <kenner@gnat.com>
39949 * utils2.c (build_allocator): Test for SIZE overflow in array case too
39951 2001-10-30 Geert Bosch <bosch@gnat.com>
39953 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
39954 Found due to GCC 3.0 warning of using uninitialized value.
39957 (Get_Max_Size): Use variant record for tracking value/expression.
39958 Makes logic clearer and prevents warnings for uninitialized variables.
39959 (Layout_Array_Type): Use variant record for tracking value/expression.
39960 Makes logic clearer and prevents warnings for uninitialized variables.
39962 2001-10-30 Robert Dewar <dewar@gnat.com>
39964 * lib.adb: Minor reformatting
39966 * s-taprop.ads: Minor reformatting
39968 2001-10-29 Laurent Guerby <guerby@acm.org>
39971 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
39973 (_gnat_error_handler): Make MSG const.
39975 2001-10-29 Richard Kenner <kenner@gnat.com>
39977 * sysdep.c: Fix localtime_r problem on LynxOS.
39978 Also remove #elif to avoid warnings.
39980 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
39983 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
39985 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
39987 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
39988 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
39989 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
39990 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
39991 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
39992 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
39993 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
39994 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
39995 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
39996 types.ads, urealp.adb: Fix spelling errors.
39998 2001-10-27 Laurent Guerby <guerby@acm.org>
40000 * trans.c (gigi): Fix non determinism leading to bootstrap
40001 comparison failures for debugging information.
40003 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
40005 * gnat_rm.texi: Use @./@: where appropriate.
40007 2001-10-26 Robert Dewar <dewar@gnat.com>
40009 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
40011 2001-10-26 Richard Kenner <kenner@gnat.com>
40013 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
40015 2001-10-26 Richard Kenner <kenner@gnat.com>
40017 * decl.c (validate_size): Modify message for bad size to avoid
40018 implication that compiler is modifying the size.
40020 2001-10-26 Robert Dewar <dewar@gnat.com>
40022 * prj-util.adb: Minor reformatting. Fix bad header format.
40024 2001-10-26 Robert Dewar <dewar@gnat.com>
40026 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
40028 * sinfo.ads: Clarify use of Associated_Node (documentation only).
40030 * sem_ch12.adb: Change Node4 to Associated_Node. Change
40031 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
40032 much more narrowly in places where needed. These are cleanups.
40034 2001-10-26 Joel Brobecker <brobecke@gnat.com>
40036 * 5zosinte.ads (null_pthread): new constant.
40039 (Initialize_TCB): Initialize thread ID to null, to be able to verify
40040 later that this field has been set.
40041 (Finalize_TCB): ditto.
40042 (Suspend_Task): Verify that the thread ID is not null before using it.
40043 (Resume_Task): ditto.
40046 (Resume_All_Tasks): Lock the tasks list before using it.
40047 (Suspend_All_Tasks): ditto.
40049 2001-10-26 Richard Kenner <kenner@gnat.com>
40051 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
40052 Make constant variant of designated type for Is_Access_Constant.
40053 Call update_pointer_to with main variant.
40055 * trans.c (process_freeze_entity, process_type):
40056 Call update_pointer_to on main variant.
40058 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
40059 If main variant, update all other variants.
40061 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
40064 2001-10-26 Robert Dewar <dewar@gnat.com>
40066 * prj-util.adb: Minor reformatting
40068 2001-10-26 Robert Dewar <dewar@gnat.com>
40070 * prj-util.adb: Minor reformatting
40072 2001-10-26 Robert Dewar <dewar@gnat.com>
40074 * prj-attr.adb: Minor reformatting throughout
40076 2001-10-26 Robert Dewar <dewar@gnat.com>
40078 * prj-attr.ads: Minor reformatting
40079 Add ??? comment (this whole spec has almost no comments)
40081 2001-10-26 Vincent Celier <celier@gnat.com>
40083 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
40084 ("//") that precede the drive letter on Interix.
40086 2001-10-26 Geert Bosch <bosch@gnat.com>
40088 * gnat_rm.texi: Add GNAT Reference Manual.
40090 2001-10-25 Robert Dewar <dewar@gnat.com>
40092 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
40093 is Error. Similar change for other renaming cases.
40095 2001-10-25 Robert Dewar <dewar@gnat.com>
40097 * s-atacco.ads: Add pragma Inline_Always for functions.
40098 Fix header format. Add copyright 2001
40100 2001-10-25 Ed Schonberg <schonber@gnat.com>
40102 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
40103 return Error rather than Empty so that analysis can proceed.
40105 2001-10-25 Ed Schonberg <schonber@gnat.com>
40107 * sem_util.adb (Enter_Name): better handling of cascaded error
40108 messages when a unit appears in its own context.
40110 2001-10-25 Ed Schonberg <schonber@gnat.com>
40112 * sem_util.adb (Defining_Entity): in case of error, attach created
40113 entity to specification, so that semantic analysis can proceed.
40115 2001-10-25 Robert Dewar <dewar@gnat.com>
40118 (Defining_Entity): Deal with Error.
40119 (Process_End_Label): Deal with bad end label for.
40121 2001-10-25 Ed Schonberg <schonber@gnat.com>
40123 * sem_elab.adb (Check_A_Call): refine message when call is in an
40124 instance but callee is not declared in the generic unit.
40126 2001-10-25 Ed Schonberg <schonber@gnat.com>
40128 * sem_elab.adb (Check_A_Call): check for renaming before finding the
40129 enclosing unit, which may already be different from the calling unit.
40131 2001-10-25 Geert Bosch <bosch@gnat.com>
40133 * 4gintnam.ads: fix header format.
40135 2001-10-25 Ed Schonberg <schonber@gnat.com>
40137 * sem_res.adb (Resolve_Call): if the call is actually an indexing
40138 operation on the result of a parameterless call, perform elaboration
40139 check after the node has been properly rewritten.
40141 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
40142 inlined within the generic tree, the defining identifier is not a
40145 2001-10-25 Ed Schonberg <schonber@gnat.com>
40147 * sem_res.adb (Resolve): special-case resolution of Null in an
40148 instance or an inlined body to avoid view conflicts.
40150 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
40151 compatibility by retrieving the access type of the generic copy.
40153 2001-10-25 Robert Dewar <dewar@gnat.com>
40156 (Analyze_Number_Declaration): Handle error expression.
40157 (Signed_Integer_Type_Declaration): Handle error bound.
40158 (Analyze_Subtype_Indication): Handle error range.
40160 * sem_util.adb (Get_Index_Bounds): Check for Error.
40162 2001-10-25 Robert Dewar <dewar@gnat.com>
40164 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
40165 in no run time mode.
40167 2001-10-25 Pascal Obry <obry@gnat.com>
40169 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
40170 mode case for ALLOC case.
40172 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
40173 all platforms. Improvement of last change.
40175 2001-10-25 Robert Dewar <dewar@gnat.com>
40177 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
40179 2001-10-25 Geert Bosch <bosch@gnat.com>
40181 * osint.adb (Is_Relative): Remove duplicate.
40183 2001-10-25 Pascal Obry <obry@gnat.com>
40185 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
40186 pathnames in UNIX and DOS style with drive letter.
40187 (Is_Relative): new routine.
40189 * osint.adb: Minor reformatting
40191 * osint.adb (Is_Relative): implementation using
40192 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
40194 2001-10-25 Pascal Obry <obry@gnat.com>
40196 * g-dirope.adb (Basename): correctly compute offset between the
40197 original Path and the translated one.
40199 * g-dirope.adb: (Base_Name): add some comments.
40201 2001-10-25 Robert Dewar <dewar@gnat.com>
40203 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
40204 in HIE mode, avoids compilation abandoned message
40206 * exp_imgv.adb: Correct typo in previous change
40208 * exp_imgv.adb: Correct typo in previous change (not my day!)
40210 2001-10-25 Robert Dewar <dewar@gnat.com>
40212 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
40214 2001-10-25 Pascal Obry <obry@gnat.com>
40216 * g-awk.ads: Move all pragma inlines next to the routine
40217 declarations. This is more uniform with other GNAT spec.
40219 2001-10-22 Geert Bosch <bosch@gnat.com>
40221 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
40223 2001-10-19 Geert Bosch <bosch@gnat.com>
40225 * Makefile.in (tools, gnattools): Remove gnatmem.
40227 2001-10-17 Richard Henderson <rth@redhat.com>
40229 * Makefile.in (misc.o): Depend on langhooks.h.
40230 * misc.c: Include it.
40231 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
40232 (LANG_HOOKS_DECODE_OPTION): New.
40233 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
40235 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
40237 * trans.c (tree_transform): Adjust to recent change in
40238 expand_asm_operands to implement named asm operands.
40240 2001-10-11 Ed Schonberg <schonber@gnat.com>
40242 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
40243 renaming of discriminant for mutable record type.
40245 2001-10-11 Robert Dewar <dewar@gnat.com>
40247 * validsw.adb: Properly save -gnatVn status.
40249 2001-10-11 Robert Dewar <dewar@gnat.com>
40251 * usage.adb: Add lines for V switch.
40253 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
40254 (/VALIDITY_CHECKING).
40256 2001-10-11 Ed Schonberg <schonber@gnat.com>
40258 * sem_type.adb (Add_One_Interp): an operator for a type declared in
40259 an extension of System is known to be visible.
40261 2001-10-11 Ed Schonberg <schonber@gnat.com>
40263 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
40264 properly. Fixes regression on ACATS C34005G.
40266 2001-10-11 Robert Dewar <dewar@gnat.com>
40268 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
40269 loop in generic instance, since this is likely not very useful.
40271 2001-10-11 Robert Dewar <dewar@gnat.com>
40273 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
40274 the error message for high integrity mode.
40276 * rtsfind.adb (RTE): Give message if we try to find an entity that
40277 is not available in high integrity mode.
40280 (OK_To_Use_In_HIE_Mode): New array.
40281 (RTE): May return Empty in high integrity mode.
40283 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
40284 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
40286 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
40287 unit if not inlined always and in no runtime mode. Fixes problem
40288 caused by new Rtsfind changes.
40290 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
40293 * rtsfind.adb (RTE): Make sure we do not try to load unit after
40294 giving message for entity not available in high integrity mode.
40296 2001-10-11 Pascal Obry <obry@gnat.com>
40298 * impunit.adb: Add GNAT.CRC32.
40300 2001-10-11 Ed Schonberg <schonber@gnat.com>
40302 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
40303 properly the case where one universal operand in a non-static
40304 exponentiation of a real literal.
40306 2001-10-11 Ed Schonberg <schonber@gnat.com>
40308 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
40309 clause, return the gobal finalization list, for lack of anthing else.
40311 2001-10-11 Ed Schonberg <schonber@gnat.com>
40313 * exp_ch7.adb (Make_Transient_Block): if statement is within
40314 exception handler, always use new transient scope to place Clean
40317 2001-10-11 Pascal Obry <obry@gnat.com>
40320 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40321 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40322 (GNATLS_RTL_OBJS): add g-crc32.o
40323 (GNATMAKE_RTL_OBJS): add g-crc32.o
40326 (CRC_Match): new function.
40327 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
40328 instead of the previous simple checksum algorithm.
40329 (Time_Stamp_Mismatch): use CRC_Match for comparison.
40330 (Set_Source_Table): idem.
40333 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
40334 instead of simple checksum.
40335 (CRC_Match): new function.
40336 (CRC_Error): new constant.
40338 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
40339 a CRC now and not a simple checksum. A CRC uses lower-case hex
40340 letters, fixes ambiguity in parsing.
40342 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
40343 is what this variable will store.
40345 * bcheck.adb: Change reference to chechsum in comments by CRC.
40346 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
40347 rename All_Checksum_Match to All_CRC_Match. Change due to API
40348 renaming since now GNAT does not use a simple checksum but a
40349 CRC using GNAT.CRC32.
40351 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
40352 now and not anymore a simple checksum.
40354 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
40357 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
40360 (Restore_Scan_State): rename Checksum to CRC.
40361 (Save_Scan_State): idem.
40365 (Checksum): rename to CRC.
40366 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
40368 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
40369 GNAT.CRC32). Update copyright notice.
40371 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
40372 GNAT.CRC32). Update copyright notice.
40375 (Accumulate_Checksum): removed.
40376 (Update): new procedure. Add a wide-character into the CRC.
40379 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
40380 (Load_File): fix initialization of S (change Source_Checksum to
40383 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
40384 Source_CRC in S initialization.
40386 * sinput.adb (Source_Checksum): renamed to Source_CRC.
40388 * sinput.ads (Source_Checksum): renamed to Source_CRC.
40389 Update comments for the CRC.
40391 * types.adb (Hex): Use lowercase for the letter part.
40393 * types.ads (Get_Hex_String): Returns the hexadecimal representation
40394 for a word. This is currently used only for CRC. In previous version,
40395 the checksum was using a representation with all letter being
40396 upper-case. With the new implementation (using CRC) we do not remove
40397 the 32th bit of the CRC, so we can have an upper-case starting letter
40398 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
40399 It is ambigous since the CRC was optional and could be followed by
40400 options like EB, EE. So now this routines uses lower-case letter for
40401 the hexadecimal representation. Strange enough only lower case letters
40402 where checked in Scan_ALI (even if this was not a possible case).
40404 * gnatvsn.ads (Library_Version): changed to 3.15a.
40406 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
40409 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
40412 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
40413 Add 2001 to copyright notice
40414 (Accumulate_Checksum): Modify to use System.CRC32.
40416 * ali-util.ads: Redo changes of previous revision to continue to use
40417 the word Checksum. Add 2001 to copyright notice.
40419 * ali.adb: Undo some of previous changes, not needed.
40420 Keep the change for lower case letters in the checksum.
40422 * ali.ads: Undo previous change not needed.
40424 * bcheck.adb: Undo most of previous change, not needed.
40425 But do use Checksums_Match for checksum comparison.
40427 * gnatls.adb: Undo most of previous change, not needed.
40428 But do use Checksums_Match for comparing checksums.
40430 * lib-load.adb: Undo previous change, not needed.
40432 * lib-writ.adb: Undo previous change, not needed.
40434 * lib-writ.ads: Document that checksums use lower case,
40435 not upper case letters.
40437 * scans.adb: Undo previous change, not needed
40439 * scans.ads: Undo previous change, not needed.
40441 * scn-nlit.adb: Undo previous changes, not needed.
40443 * scn-slit.adb: Undo previous change, not needed. Fix header format.
40446 (Accumulate_Checksum): Use System.CRC32.
40447 (Initialize_Checksum): New procedure.
40448 Remove other changes of previous revision.
40450 * sinput-p.adb: Undo previous change, not needed.
40452 * sinput.adb: Undo previous change, not needed.
40454 * sinput-l.adb: Undo previous change, not needed.
40456 * sinput.ads: Undo previous change, not needed. Keep only comment
40457 on new checksum algorithm
40459 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
40460 Also remove a-tags and a-stream from GNAT sources.
40462 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
40464 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
40466 2001-10-11 Geert Bosch <bosch@gnat.com>
40468 * einfo.h: Regenerate.
40470 * nmake.ads: Regenerate.
40472 * nmake.adb: Regenerate.
40474 * sinfo.h: Regenerate.
40476 * treeprs.adb: Regenerate.
40478 2001-10-10 Geert Bosch <bosch@gnat.com>
40480 * gnat-style.texi: New file describing coding guidelines for Ada.
40482 2001-10-10 Ed Schonberg <schonber@gnat.com>
40484 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
40487 2001-10-10 Geert Bosch <bosch@gnat.com>
40489 * snames.ads: Add new names for project facility.
40491 * snames.adb: Update to reflect snames.ads changes.
40493 * snames.h: Update to reflect snames.ads changes.
40495 2001-10-10 Vincent Celier <celier@gnat.com>
40498 (Add_Switches): reflect the changes for the switches attributes
40499 Default_Switches indexed by the programming language,
40500 Switches indexed by the file name.
40501 (Collect_Arguments_And_Compile): Idem.
40502 Reflect the attribute name changes.
40505 (Initialisation_Data): Change the names of some packages and
40507 (Initialize): process case insensitive associative arrays.
40510 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
40513 (Parse_Attribute_Declaration): For case insensitive associative
40514 arrays, set the index string to lower case.
40517 Reflect the changes of the project attributes.
40520 Replace Check_Naming_Scheme by Ada_Check and
40521 Language_Independent_Check.
40524 Replaced Check_Naming_Scheme by 2 procedures:
40525 Ada_Check and Language_Independent_Check.
40528 (Process_Declarative_Items): For case-insensitive associative
40529 arrays, set the index string to lower case.
40530 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
40531 Prj.Nmsc.Check_Naming_Scheme.
40534 (Case_Insensitive): New function
40535 (Set_Case_Insensitive): New procedure
40538 (Case_Insensitive): New function
40539 (Set_Case_Insensitive): New procedure
40540 (Project_Node_Record): New flag Case_Insensitive.
40543 (Value_Of): new function to get the string value of a single
40544 string variable or attribute.
40547 (Value_Of): new function to get the string value of a single
40548 string variable or attribute.
40551 (Ada_Default_Spec_Suffix): New function
40552 (Ada_Default_Impl_Suffix): New function
40553 Change definitions of several constants to reflect
40554 new components of record types.
40557 (Naming_Data): Change several components to reflect new
40558 elements of naming schemes.
40559 (Project_Data): New flags Sources_Present and
40560 Language_Independent_Checked.
40561 (Ada_Default_Spec_Suffix): New function.
40562 (Ada_Default_Impl_Suffix): New function.
40565 Modification of predefined names for project manager: added
40566 Implementation, Specification_Exceptions, Implementation_Exceptions,
40567 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
40568 Default_Switches, _Languages, Builder, Cross_Reference,
40569 Finder. Removed Body_Part, Specification_Append, Body_Append,
40570 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
40573 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40576 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
40577 not that it is Nil_Variable_Value.
40579 * prj.ads: Add ??? for uncommented declarations
40581 2001-10-10 Ed Schonberg <schonber@gnat.com>
40583 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
40584 constant, do not indicate possible modification, so that gigi can
40585 treat it as a bona fide constant.
40587 2001-10-10 Robert Dewar <dewar@gnat.com>
40589 * sem_prag.adb: Add processing for pragma External.
40591 * snames.ads: Add entry for pragma External.
40593 * par-prag.adb: Add pragma External.
40595 * snames.adb: Updated to match snames.ads.
40597 2001-10-10 Ed Schonberg <schonber@gnat.com>
40599 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
40600 a dynamic task if the allocator appears in an indexed assignment
40601 or selected component assignment.
40603 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
40604 For a dynamic task in an assignment statement, use target of
40605 assignment to generate meaningful name.
40607 2001-10-10 Ed Schonberg <schonber@gnat.com>
40609 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
40612 * einfo.ads: Body_Entity is also defined for generic package.
40613 Documentation change only
40615 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
40616 others_choice for a discriminated component initialization,
40617 convert discriminant references into the corresponding discriminals.
40619 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
40620 only if original type is private and expression has to be wrapped
40624 (Apply_Constraint_Check): Do not perform length check
40625 if expression is an aggregate with only an others_choice.
40626 (Length_N_Cond): two references to the same in_parameter
40627 (typically the discriminal in an init_proc) denote the same value.
40628 Two useful optimization uncovered by bugfixes above.
40630 2001-10-10 Robert Dewar <dewar@gnat.com>
40632 * xeinfo.adb: Change int to char in translation of enumeration types.
40633 This fixes a problem in the C representation of component alignment.
40634 Add 2001 to copyright notice
40636 2001-10-10 Richard Kenner <kenner@gnat.com>
40638 * decl.c: (validate_size): Do check size of object of integral type
40639 if it is a packed array type.
40641 2001-10-10 Richard Kenner <kenner@gnat.com>
40643 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
40644 VAR_DECL for constant if not Is_Public but -O0.
40646 2001-10-10 Richard Kenner <kenner@gnat.com>
40648 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
40650 2001-10-10 Geert Bosch <bosch@gnat.com>
40652 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
40653 use '/' as switch character, allowing for absolute file names.
40655 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
40657 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
40660 2001-10-08 Geert Bosch <bosch@gnat.com>
40662 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
40663 Automatically build utilities when files need to be regenerated.
40665 2001-10-08 Geert Bosch <bosch@gnat.com>
40667 * xsnames.adb: New utility for updating snames.ads and snames.adb
40669 2001-10-08 Zack Weinberg <zack@codesourcery.com>
40671 * Make-lang.in (ADAFLAGS): Add -W -Wall.
40672 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
40673 (gnat1): Also depend on attribs.o.
40674 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
40675 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
40676 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
40677 (ADAFLAGS): Add -W -Wall.
40678 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
40681 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
40682 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
40683 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
40684 Use $(ADAC), not $(CC), as compilation command.
40686 (gnattools): Depend directly on tools to build, don't use
40688 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
40690 * einfo.h, sinfo.h: New files (autogenerated).
40692 2001-10-08 Richard Henderson <rth@redhat.com>
40694 * comperr.adb (Abort_In_Progress): New.
40695 (Compiler_Abort): Use it to prevent recursion.
40697 2001-10-08 Robert Dewar <dewar@gnat.com>
40699 * atree.adb: Set Error_Posted in Error node, helps error recovery.
40701 * par-endh.adb (Output_End_Expected): We should also not test
40702 Error_Posted on the Error node, since now it is always set.
40704 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
40705 to help error recovery. Part of general work on 9407-004.
40707 * par.adb: Add ??? for misuse of error
40710 (Resolve): Defend against Error, fixes 9407-003.
40711 (Resolve_Discrete_Subtype_Indication): Defend against Error.
40713 * sinfo.ads (N_Error): Now has Etype field (which will be set
40714 to Any_Type to help error recovery).
40716 2001-10-08 Richard Kenner <kenner@gnat.com>
40718 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
40719 Consistently set MEM attributes from expression; fixes
40720 bootstrap failure on x86.
40722 2001-10-08 Geert Bosch <bosch@gnat.com>
40724 * 5oosinte.adb: Add 2001 to copyright notice.
40726 2001-10-08 Geert Bosch <bosch@gnat.com>
40728 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
40730 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
40732 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
40734 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
40736 2001-10-05 Geert Bosch <bosch@gnat.com>
40738 * adaint.h: Small formatting fix.
40740 2001-10-04 Geert Bosch <bosch@gnat.com>
40742 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
40743 Arg is int, not FILE *, in dummy version of functions.
40745 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
40746 Arg is int, not FILE *.
40748 2001-10-04 Geert Bosch <bosch@gnat.com>
40750 * 3lsoccon.ads: Added file, missed with initial check ins.
40752 * 4lintnam.ads: Fix header format.
40753 Change Linux to GNU/Linux.
40755 * 5iosinte.adb: Change Linux to GNU/Linux.
40757 * 5iosinte.ads: Change Linux to GNU/Linux.
40759 * 5itaprop.adb: Change Linux to GNU/Linux.
40761 * 5itaspri.ads: Change Linux to GNU/Linux.
40762 Update copyright notice.
40764 * 5lintman.adb: Change Linux to GNU/Linux.
40766 * 5lml-tgt.adb: Change Linux to GNU/Linux.
40768 * 5losinte.ads: Change Linux to GNU/Linux.
40770 * 5lsystem.ads: Change Linux to GNU/Linux.
40772 * 5qosinte.adb: Change Linux to GNU/Linux.
40774 * 5qosinte.ads: Change Linux to GNU/Linux.
40776 * 5qparame.ads: Change Linux to GNU/Linux.
40778 * 5qtaprop.adb: Change Linux to GNU/Linux.
40780 * 5qtaspri.ads: Change Linux to GNU/Linux.
40781 Add 2001 to copyright notice.
40783 * 5vintman.ads: Change Linux to GNU/Linux.
40784 Fix header format. Add 2001 to copyright notice.
40786 * g-soccon.ads: Change Linux to GNU/Linux.
40788 * g-trasym.ads: Change Linux to GNU/Linux.
40789 Add 2001 to copyright notice.
40791 * memtrack.adb: Change Linux to GNU/Linux.
40793 * s-intman.ads: Change Linux to GNU/Linux.
40794 Add 2001 to copyright notice. Fix header format.
40796 * s-stache.adb: Change Linux to GNU/Linux.
40798 * adaint.c: Change Linux to GNU/Linux.
40800 * cio.c: Change Linux to GNU/Linux.
40802 * cstreams.c: Change Linux to GNU/Linux.
40804 * init.c: Change Linux to GNU/Linux.
40806 * gmem.c: Change Linux to GNU/Linux.
40808 * tracebak.c: Change Linux to GNU/Linux.
40811 2001-10-02 Geert Bosch <bosch@gnat.com>
40813 * misc.c (insert_default_attributes): Add dummy version.