1 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
4 access type, wrap the expression in a conversion to force an
7 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
8 accessibility checks even when expansion is disabled in order to
9 generate messages in the presence of previous errors or in
12 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
14 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
15 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
17 2008-05-28 Vincent Celier <celier@adacore.com>
20 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
21 preprocessing expressions
23 2008-05-28 Vincent Celier <celier@adacore.com>
25 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
28 * sinput-p.ads: Minor comment update and reformatting
30 2008-05-28 Ed Schonberg <schonberg@adacore.com>
32 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
33 type has a deeper level than any master only when it is the type of an
36 2008-05-28 Javier Miranda <miranda@adacore.com>
38 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
40 2008-05-28 Javier Miranda <miranda@adacore.com>
42 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
43 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
44 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
45 Add code that was previously located in
46 Find_Overridden_Synchronized_Primitive because it is only used here.
48 2008-05-28 Sergey Rybin <rybin@adacore.com>
50 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
51 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
53 2008-05-28 Robert Dewar <dewar@adacore.com>
56 Add missing restrictions, and properly label all GNAT defined ones
59 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
60 Add entry for Ada.Task_Termination.Set_Specific_Handler
61 Add entry for Ada.Task_Termination.Specific_Handler
64 Add missing restrictions and properly mark all gnat defined ones
67 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
70 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
72 * gnat_rm.texi: Add missing restrictions, and properly label all
75 2008-05-28 Robert Dewar <dewar@adacore.com>
78 (Check_Restriction): violation of restriction No_Finalization is
79 treated as a serious error to stop expansion
81 2008-05-28 Robert Dewar <dewar@adacore.com>
83 * exp_util.adb: Minor reformatting
84 * exp_util.ads: Minor reformatting.
86 2008-05-28 Arnaud Charlet <charlet@adacore.com>
88 * Make-lang.in: Remove gprmake.
90 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
92 2008-05-28 Ed Schonberg <schonberg@adacore.com>
94 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
95 improper progenitor names, and avoid cascaded errors.
97 2008-05-28 Robert Dewar <dewar@adacore.com>
99 * gnat_rm.texi: Add note on Old giving warning when applied to constant
101 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
104 2008-05-28 Robert Dewar <dewar@adacore.com>
106 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
109 2008-05-28 Robert Dewar <dewar@adacore.com>
112 (Expand_Simple_Function_Return): Copy unaligned result into temporary
114 2008-05-28 Javier Miranda <miranda@adacore.com>
116 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
117 for user-defined predefined primitives.
119 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
120 (Find_Overridden_Synchronized_Primitive): Ditto.
122 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
124 2008-05-27 Arnaud Charlet <charlet@adacore.com>
126 * a-ststio.adb, s-direio.adb:
127 Further code clean up of previous change.
130 2008-05-27 Vincent Celier <celier@adacore.com>
132 * prj-nmsc.adb: Minor reformatting
134 2008-05-27 Bob Duff <duff@adacore.com>
136 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
137 untagged private type with a tagged full type, where the full type has
138 a self reference, create the corresponding class-wide type early, in
139 case the self reference is "access T'Class".
141 2008-05-27 Ed Schonberg <schonberg@adacore.com>
143 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
144 tasks and context is an object declaration. create master entity before
147 2008-05-27 Robert Dewar <dewar@adacore.com>
149 * mlib-prj.adb: Minor reformatting
151 * prj-part.adb: Minor reformatting
153 * prj.ads: Minor reformatting
155 * exp_ch3.adb: Minor reformatting.
157 * sem_ch3.ads: Minor reformatting
159 * sem_eval.adb: Minor reformatting
161 2008-05-27 Vincent Celier <celier@adacore.com>
164 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
166 2008-05-27 Ed Schonberg <schonberg@adacore.com>
168 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
169 tasks, create an activation chain now, before the expansion into
170 assignments and build-in-place calls that require the presence of an
172 (Backend_Processing_Possible): If the component type is inherently
173 limited, the aggregate must be expanded into individual built-in-place
176 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
177 determine whether an allocation extra parameter must be built, to
178 handle case of a private type whose full type is a discriminated type
181 2008-05-27 Bob Duff <duff@adacore.com>
184 Document the new behavior regarding trampolines.
186 2008-05-27 Arnaud Charlet <charlet@adacore.com>
188 * a-direio.adb, a-sequio.adb: Replace address clause by
189 unrestricted_access, simpler and compatible with .NET.
191 2008-05-27 Vincent Celier <celier@adacore.com>
194 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
195 a project file, so that symbolic links are not resolved.
197 2008-05-27 Arnaud Charlet <charlet@adacore.com>
199 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
200 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
201 portable across GNAT targets, since this kind of address clause is not
202 supported by VM back-ends (.NET/JGNAT).
204 2008-05-27 Arnaud Charlet <charlet@adacore.com>
206 * bindgen.adb: Update comments.
208 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
210 2008-05-27 Vincent Celier <celier@adacore.com>
212 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
213 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
214 mlib-tgt.adb, prj-env.adb, prj-env.ads:
215 (Path_Information): New record type
216 Use component of type Path_Information when there are two paths, one in
217 canonical format and one in display format.
218 Update the project manager to these new components.
220 2008-05-27 Robert Dewar <dewar@adacore.com>
222 * makeutl.adb: Minor reformatting
223 * prj-nmsc.adb: Minor reformatting
224 * s-stausa.adb: Minor reformatting
225 * s-stausa.ads: Minor reformatting
226 * sem_ch6.adb: Minor reformatting
228 2008-05-27 Thomas Quinot <quinot@adacore.com>
230 * sem_res.adb: Minor comment fixes
232 2008-05-27 Thomas Quinot <quinot@adacore.com>
234 * makeutl.adb: Minor code reorganization
236 * exp_aggr.adb: Add ??? comment
239 * exp_ch6.adb: Minor reformatting
241 2008-05-27 Quentin Ochem <ochem@adacore.com>
243 * s-stausa.adb (Initialize): Updated result initialization, and
244 initialization of environment stack.
245 (Fill_Stack): Improved computation of the pattern zone, taking into
246 account already filled at the calling point.
247 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
248 Measure and Overflow_Guard.
249 (Report_Result): Fixed computation of the result using new fields of
252 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
253 params by more explicit Stack_Size / Max_Pattern_Size params.
254 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
255 Added Stack_Used_When_Filling field.
256 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
257 Min_Measure and Max_Measure fields.
259 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
261 2008-05-27 Vincent Celier <celier@adacore.com>
264 (Check_File): Make sure that a unit that replaces the same unit in a
265 project being extended is properly processed.
267 2008-05-27 Ed Schonberg <schonberg@adacore.com>
270 (Get_Discr_Value): Remove obsolete code that failed to find the value
271 of a discriminant for an inherited task component appearing in a type
274 2008-05-27 Thomas Quinot <quinot@adacore.com>
276 (System.File_IO.{Close, Delete, Reset}):
277 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
279 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
280 Pass File parameter by reference.
282 2008-05-27 Vincent Celier <celier@adacore.com>
285 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
286 sources of the same project that have the same object file name.
287 (Find_Explicit_Sources): Always remove a source exception that was not
290 2008-05-27 Thomas Quinot <quinot@adacore.com>
292 * sem_ch3.adb: Minor reformatting
294 2008-05-27 Ed Schonberg <schonberg@adacore.com>
297 (Is_Interface_Conformant): Handle properly a primitive operation that
298 overrides an interface function with a controlling access result.
299 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
300 inherited and overriding operations, omit as well the conformance check
301 on result types, to prevent spurious errors.
303 2008-05-27 Vincent Celier <celier@adacore.com>
305 * makeutl.ads, makeutl.adb:
306 (Set_Location): New procedure
307 (Get_Location): New function
308 (Update_Main): New procedure
310 2008-05-27 Vincent Celier <celier@adacore.com>
313 (Check_Library): Allow standard project to be extended as a static
315 (Get_Mains): Do not inherit attribute Main in an extending library
318 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
320 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
321 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
322 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
323 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
324 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
325 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
326 * system-mingw.ads (Always_Compatible_Rep): Likewise.
327 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
328 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
329 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
331 2008-05-27 Ed Schonberg <schonberg@adacore.com>
333 * sem_attr.adb: add guard to previous patch.
335 2008-05-27 Ed Schonberg <schonberg@adacore.com>
337 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
338 a synchronized tagged type, do not attempt to build dispatch table for
339 full view. The table is built for the corresponding record type, which
340 has its own declaration.
342 2008-05-27 Gary Dismukes <dismukes@adacore.com>
344 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
345 to the known type entity E, rather than setting it to Any_Type. Fixes
346 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
347 for objects whose type had an illegal constraint.
349 2008-05-27 Vincent Celier <celier@adacore.com>
352 Add succinct documentation for attribute Excluded_Source_List_File
354 2008-05-27 Vincent Celier <celier@adacore.com>
356 * prj-attr.adb: Add new project level attribute Map_File_Option
358 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
360 * prj.ads: Minor reformatting and comment update
361 (Project_Configuration): New component Map_File_Option
363 * snames.adb: New standard name Map_File_Option
365 * snames.ads: New standard name Map_File_Option
367 2008-05-27 Vincent Celier <celier@adacore.com>
369 * xsnames.adb: Remove unused variable Oname
371 2008-05-27 Doug Rupp <rupp@adacore.com>
374 (Expand_N_Function_Call): Fix comments. Minor reformatting.
377 (Expand_Vax_Foreign_Return): Fix comments.
379 2008-05-27 Thomas Quinot <quinot@adacore.com>
381 * exp_dist.adb: Minor reformating
383 2008-05-26 Gary Dismukes <dismukes@adacore.com>
385 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
386 No_Default_Initialization, which is now delayed until the freeze point
387 of the object. Add a comment about deferral of the check.
389 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
390 on objects is moved here.
392 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
394 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
395 (Compare_Array_S16): Adjust for above change.
396 * s-casi32.adb (Uword): Likewise.
397 (Compare_Array_S32): Likewise.
398 * s-casi64.adb (Uword): Likewise.
399 (Compare_Array_S64): Likewise.
400 * s-caun16.adb (Uhalf): Likewise.
401 (Compare_Array_U16): Likewise.
402 * s-caun32.adb (Uword): Likewise.
403 (Compare_Array_U32): Likewise.
404 * s-caun64.adb (Uword): Likewise.
405 (Compare_Array_U64): Likewise.
407 2008-05-26 Robert Dewar <dewar@adacore.com>
409 * exp_ch6.adb: Add ??? comment for previous change
411 * exp_vfpt.adb: Minor reformatting
413 * exp_vfpt.ads: Add ??? comment for last change
415 * sem_attr.adb: Add some ??? comments for previous change
417 * s-vaflop.ads: Add comments for previous change
419 2008-05-26 Doug Rupp <rupp@adacore.com>
421 * s-vaflop-vms-alpha.adb:
422 Remove System.IO use clause, to prevent spurious ambiguities when
423 package is access through rtsfind.
425 2008-05-26 Sergey Rybin <rybin@adacore.com>
427 * tree_io.ads (ASIS_Version_Number): Update because of the changes
430 2008-05-26 Ed Schonberg <schonberg@adacore.com>
433 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
434 converted to S (A)'address only if A .. B is known to be a non-null
437 2008-05-26 Doug Rupp <rupp@adacore.com>
440 (Return_D, Return_F, Return_G): New functions.
443 (Return_D, Return_F, Return_G): New functions.
446 (Expand_Vax_Foreign_Return): New procedure
449 (Expand_Vax_Foreign_Return): New procedure
452 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
453 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
457 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
459 * s-vaflop-vms-alpha.adb:
460 (Return_D, Return_F, Return_G): New functions.
462 2008-05-26 Gary Dismukes <dismukes@adacore.com>
464 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
465 init proc entity when there is actual default initialization associated
466 with the component type, to avoid spurious errors on objects of scalar
467 array types that are marked Is_Public when No_Default_Initialization
470 2008-05-26 Thomas Quinot <quinot@adacore.com>
472 * rtsfind.ads, rtsfind.adb:
473 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
474 (Check_RPC): Support per-PCS-kind API versioning.
476 exp_dist.ads, exp_dist.adb:
477 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
478 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
479 library function Get_RACW.
480 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
481 library function Get_Reference.
482 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
483 through an intermediate Any.
484 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
485 going through an intermediate Any.
487 * sem_dist.adb: Minor reformatting.
489 2008-05-26 Javier Miranda <miranda@adacore.com>
491 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
492 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
493 (Is_Internal): Adding documentation on internal entities that have
494 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
496 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
497 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
498 Added assertion to force entities with this attribute to have
499 attribute Is_Internal set to True.
500 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
502 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
503 renamed as Derive_Progenitor_Subprograms. In addition, its code is
504 a new implementation.
505 (Add_Interface_Tag_Components): Remove special management of
506 synchronized interfaces.
507 (Analyze_Interface_Declaration): Minor reformating
508 (Build_Derived_Record_Type): Minor reformating
509 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
510 predefined primitive inherited from interface type because the body of
511 internally generated predefined primitives of tagged types are generated
513 (Derive_Subprogram): Avoid generating an internal name if the parent
514 subprogram overrides an interface primitive.
515 (Derive_Subprograms): New implementation that keeps separate the
516 management of tagged types not implementing interfaces, from tagged
517 types that implement interfaces.
518 (Is_Progenitor): New implementation.
519 (Process_Full_View): Add documentation
520 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
521 by call to Derive_Progenitor_Subprograms.
523 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
524 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
525 Skip_Controlling_Formals.
527 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
528 (Check_Conventions): New implementation. Remove local subprogram
529 Skip_Check. Remove formal Search_From of routine Check_Convention.
530 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
531 Skip_Controlling_Formals.
532 (New_Overloaded_Entity): Enable addition of predefined dispatching
536 (Find_Primitive_Covering_Interface): New subprogram.
538 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
539 the task body procedure as a primitive of the corresponding tagged
541 (Check_Operation_From_Private_Type): Avoid adding twice an entity
542 to the list of primitives.
543 (Find_Primitive_Covering_Interface): New subprogram.
544 (Override_Dispatching_Operation): Add documentation.
546 * sem_type.adb (Covers): Minor reformatings
548 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
551 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
552 (Implements_Interface): New subprogram.
553 (Is_Parent): Removed.
554 (Primitive_Names_Match): New subprogram.
555 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
556 (Ultimate_Alias): New subprogram.
558 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
560 Remove special management for synchronized types. Rename formal. Remove
561 internal subprograms Interface_Present_In_Parent and Add_Interface.
562 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
563 on non-record types by code to return false in such case.
564 (Implements_Interface): New subprogram.
565 (Is_Parent): Removed. No special management is now required for
566 synchronized types covering interfaces.
567 (Primitive_Names_Match): New subprogram.
568 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
569 (Ultimate_Alias): New subprogram.
571 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
572 Add internal entities associated with secondary dispatch tables to
573 the list of tagged type primitives that are not interfaces.
574 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
575 (Make_Predefined_Primitive_Specs): Code reorganization to improve
576 the management of predefined equality operator. In addition, if
577 the type has an equality function corresponding with a primitive
578 defined in an interface type, the inherited equality is abstract
579 as well, and no body can be created for it.
581 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
582 exp_util to exp_disp.
583 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
584 an entity corresponds with one of the predefined primitives required
585 to implement interfaces.
586 Update copyright notice.
588 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
589 final check on abstract subprograms all the primitives associated with
590 interface primitives because they must be visible in the public and
592 (Write_DT): Use Find_Dispatching_Type to locate the name of the
593 interface type. This allows the use of this routine, for debugging
594 purposes, when the tagged type is not fully decorated.
595 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
596 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
597 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
598 entity corresponds with one of the predefined primitives required to
599 implement interfaces.
601 * exp_util.adb (Find_Interface_ADT): New implementation
602 (Find_Interface): Removed.
604 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
605 list of interfaces associated with nodes
606 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
608 2008-05-26 Thomas Quinot <quinot@adacore.com>
610 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
611 condition for assignment to temporary.
613 2008-05-26 Ed Schonberg <schonberg@adacore.com>
615 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
616 checks on the upper bound if the index type is a modular type, to
617 prevent wrap-around computations when size is close to upper bound of
620 2008-05-26 Robert Dewar <dewar@adacore.com>
622 * sem_ch3.adb: Minor reformatting
624 2008-05-26 Ed Schonberg <schonberg@adacore.com>
626 * sem_ch12.adb (Remove_Parent): Use specification of instance
627 to retrieve generic parent,
628 to handle properly the case where the instance is a child unit.
629 Add guard to handle properly wrapper packages.
632 2008-05-26 Thomas Quinot <quinot@adacore.com>
634 * sinfo.ads: Minor reformatting
636 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
638 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
639 Generate a tag check when the result subtype of a function, defined by
640 an access definition, designates a specific tagged type.
641 (Make_Tag_Check): New routine.
643 2008-05-26 Arnaud Charlet <charlet@adacore.com>
645 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
647 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
649 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
650 (builtin_decl_for): Likewise.
651 * trans.c (gigi): Likewise.
652 * utils.c (def_builtin_1): Fix formatting.
654 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
656 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
657 Create the statements which map a string name to protected or task
660 * exp_ch9.adb: Add with and use clause for Stringt.
661 Minor code reformatting.
662 (Build_Entry_Names): New routine.
663 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
664 for flag Build_Entry_Names which controls the allocation of the data
665 structure for the string names of entries.
667 * exp_ch9.ads (Build_Entry_Names): New subprogram.
669 * exp_util.adb (Entry_Names_OK): New function.
671 * exp_util.ads (Entry_Names_OK): New function.
673 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
674 enumerations RE_Id and RE_Unit_Table.
676 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
677 (Free_Entry_Names_Array): New routine.
679 * s-taskin.ads: Comment reformatting.
680 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
681 Add component Entry_Names to record Ada_Task_Control_Block.
682 (Free_Entry_Names_Array): New routine.
684 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
685 dynamically allocate an array
686 of string pointers. This structure holds string entry names.
687 (Free_Entry_Names): New routine.
688 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
689 (Set_Entry_Names): New routine.
692 (Create_Task): Add formal Build_Entry_Names. The flag is used to
693 control the allocation of the data structure which stores entry names.
694 (Set_Entry_Name): New routine.
697 Add with and use clause for Ada.Unchecked_Conversion.
698 (Finalize): Deallocate the entry names array.
699 (Free_Entry_Names): New routine.
700 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
701 create an array of string pointers to hold the entry names.
702 (Set_Entry_Name): New routine.
705 Add field Entry_Names to record Protection_Entries.
706 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
707 (Set_Entry_Name): New routine.
709 2008-05-26 Vincent Celier <celier@adacore.com>
712 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
715 (Project_Configuration): New component Shared_Lib_Driver
717 2008-05-26 Ed Schonberg <schonberg@adacore.com>
720 (Cleanup_Scopes): For a protected operation, transfer finalization list
721 to protected body subprogram, to force cleanup actions when needed.
723 2008-05-26 Robert Dewar <dewar@adacore.com>
725 * sem_cat.adb: Minor reformatting
727 * gnatname.adb: Minor reformatting
729 * osint.ads: Minor reformatting
731 * s-carun8.ads: Minor reformatting
733 * g-heasor.ads: Minor comment fix (unit is now pure)
735 2008-05-26 Robert Dewar <dewar@adacore.com>
738 (Expand_Current_Value): Properly type generated integer literal
740 2008-05-26 Sergey Rybin <rybin@adacore.com>
742 * gnat_ugn.texi: Add description for the new gnatcheck rule -
743 Separate_Numeric_Error_Handlers.
745 2008-05-26 Pascal Obry <obry@adacore.com>
747 * sem_aggr.adb: Minor reformatting.
749 2008-05-26 Jose Ruiz <ruiz@adacore.com>
752 (To_Target_Priority): Setting the time slice value to 0 or greater sets
753 the scheduling policy to FIFO within priorities or round-robin
755 Hence, the priority must be set in this case to the one selected by the
758 2008-05-26 Ed Schonberg <schonberg@adacore.com>
761 (Remove_Parent): If the enclosing scope is an instance whose generic
762 parent is declared within some parent scope of the just completed
763 instance, make full views of the entities in that parent visible, when
766 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
768 * mingw32.h (STD_MINGW): Set to true for target w64.
770 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
772 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
773 instead of TREE_STATIC on the ADDR_EXPR.
775 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
777 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
778 (Sloc_to_locus): Do not overwrite known GCC locations when translating
779 GNAT standard locations.
781 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
783 * gigi.h (mark_visited): Declare.
784 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
785 only the topmost node of expressions.
786 (elaborate_expression_1): Look deeper for read-only variables.
787 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
788 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
789 (mark_visited_r): New function.
791 2008-05-23 Vincent Celier <celier@adacore.com>
793 * snames.adb: New standard name Excluded_Source_List_File.
795 * snames.ads: New standard name Excluded_Source_List_File.
797 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
799 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
800 Get excluded sources from
801 file indicated by attribute Excluded_Source_List_File, when present and
802 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
804 2008-05-23 Robert Dewar <dewar@adacore.com>
806 * exp_dist.adb: Minor reformatting
808 2008-05-23 Ed Schonberg <schonberg@adacore.com>
810 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
811 slice, convert it to an indexed component, which is equivalent, more
812 efficient, and usable even if the slice itself is not addressable.
814 2008-05-23 Olivier Hainque <hainque@adacore.com>
816 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
817 convention also allows access to named compiler built-in subprograms
818 such as the GCC __builtin family.
820 2008-05-23 Vincent Celier <celier@adacore.com>
822 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
823 sep. If there are several possibilities, choose the one with the
826 2008-05-23 Vincent Celier <celier@adacore.com>
828 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
829 back end switches when executable specified with --GCC= is same as
830 default, even if there are additional options.
833 Document when the back end switches from the ALI file are taken into
834 account when gnatlink is invoked with --GCC=
836 2008-05-23 Thomas Quinot <quinot@adacore.com>
839 (copy_File): Do not open destination file if source file is unreadable.
841 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
843 * utils.c (handle_type_generic_attribute): Adjust to accept
844 fixed arguments before an elipsis.
846 2008-05-21 Thomas Quinot <quinot@adacore.com>
848 * g-sothco.ads, g-sothco.adb: New files.
850 2008-05-20 Thomas Quinot <quinot@adacore.com>
852 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
854 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
855 Add missing "with" of Ada.Unchecked_Conversion
857 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
858 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
859 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
860 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
861 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
862 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
863 Move common code out of GNAT.Sockets.Thin implementations and into
865 New constant SIZEOF_fd_set
866 New flag Has_Sockaddr_Len
867 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
869 * g-stsifd-sockets.adb
870 (Create): Remove call to Set_Length; use Set_Family to set the family
871 and (on appropriate platforms) length fields in struct sockaddr.
873 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
874 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
875 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
876 Move common code out of GNAT.Sockets.Thin implementations and into
879 * g-socket.ads, g-socket.adb:
880 Move common code out of GNAT.Sockets.Thin implementations and into
882 (Connect_Socket, Accept_Socket): Provide new versions of these two
883 routines that operate with a user specified timeout.
884 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
885 this is now handled automatically by Set_Family on platforms that
889 Move common code out of GNAT.Sockets.Thin implementations and into
891 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
892 this constant to 0 (not -1) because we use it to initialize an
894 Align values for numeric constants only.
895 Handle the case of systems that do not support AF_INET6.
896 New constant SIZEOF_fd_set
897 New flag Has_Sockaddr_Len
898 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
900 * gsocket.h: New flag Has_Sockaddr_Len
901 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
903 2008-05-20 Santiago Uruena <uruena@adacore.com>
905 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
907 2008-05-20 Arnaud Charlet <charlet@adacore.com>
909 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
910 the underlying issue with malloc/free has been fixed. Remove associated
913 Related to PR ada/24533
915 2008-05-20 Robert Dewar <dewar@adacore.com>
917 * ali.adb: Correct casing of ASCII.NUL
919 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
922 2008-05-20 Robert Dewar <dewar@adacore.com>
923 Gary Dismukes <dismukes@adacore.com>
925 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
926 overflow if result converted to wider integer type.
927 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
928 discriminated types when discriminant checks are suppressed.
930 2008-05-20 Vincent Celier <celier@adacore.com>
932 * cstand.adb (Print_Standard): Issue the correct Size clause for type
935 2008-05-20 Tristan Gingold <gingold@adacore.com>
937 * decl.c: Do not emit a variable for a object that has an address
938 representation clause whose value is known at compile time.
939 When a variable has an address clause whose value is known at compile
940 time, refer to this variable by using directly the address instead of
941 dereferencing a pointer.
943 2008-05-20 Robert Dewar <dewar@adacore.com>
946 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
947 subtypes, always False for non-modular types.
948 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
949 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
950 for Shared_Storage package.
951 (Is_RACW_Stub_Type): New entity flag.
954 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
955 case where we have a modular type with a non-binary modules.
956 Comments reformattings.
958 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
961 2008-05-20 Javier Miranda <miranda@adacore.com>
964 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
965 tests did not covered the case in which the type of the aggregate has
966 no progenitors but some its parents has progenitors.
968 2008-05-20 Gary Dismukes <dismukes@adacore.com>
969 Hristian Kirtchev <kirtchev@adacore.com>
972 (Expand_N_Object_Declaration): Correct the condition which triggers the
973 generation of a call to Displace when initializing a class-wide object.
974 (Build_Dcheck_Functions): Build discriminant-checking for null variants
975 when Frontend_Layout_On_Target is true to ensure that they're available
976 for calling when a record variant size function is built in Layout.
978 2008-05-20 Ed Schonberg <schonberg@adacore.com>
980 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
981 procedure for a derived type retrieve the discriminant values from the
982 parent using the corresponding discriminant.
983 (Expand_N_Assignment_Statement): Skip generation of implicit
984 if-statement associated with controlled types if we are
985 compiling with restriction No_Finalization.
987 2008-05-20 Vincent Celier <celier@adacore.com>
989 * prj.adb (Hash (Project_Id)): New function
990 (Project_Empty): Add new component Interfaces_Defined
992 * prj.ads (Source_Data): New component Object_Linked
993 (Language_Config): New components Object_Generated and Objects_Linked
994 (Hash (Project_Id)): New function
995 (Source_Data): New Boolean components In_Interfaces and
996 Declared_In_Interfaces.
997 (Project_Data): New Boolean component Interfaces_Defined
1000 New project level attribute Object_Generated and Objects_Linked
1001 Add new project level attribute Interfaces
1003 * prj-dect.adb: Use functions Present and No throughout
1004 (Parse_Variable_Declaration): If a string type is specified as a simple
1005 name and is not found in the current project, look for it also in the
1006 ancestors of the project.
1009 Replace procedure Make with procedures Initialize, Process and Finalize
1010 to implement H414-023: process different directories with different
1012 Use functions Present and No throughout
1015 Replace procedure Make with procedures Initialize, Process and Finalize
1018 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
1019 the language configuration.
1020 (Process_Project_Level_Array_Attributes): Process new attributes
1021 Object_Generated and Object_Linked.
1022 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
1023 False, to indicate that the erreor/warning is a continuation.
1024 (Check): Call Report_No_Sources with Contnuation = True after the first
1026 (Error_Msg): Process successively contnuation character and warning
1028 (Find_Explicit_Sources): Check that all declared sources have been found
1029 (Check_File): Indicate in hash table Source_Names when a declared source
1031 (Check_File): Set Other_Part when found
1032 (Find_Explicit_Sources): In multi language mode, check if all exceptions
1033 to the naming scheme have been found. For Ada, report an error if an
1034 exception has not been found. Otherwise, disregard the exception.
1035 (Check_Interfaces): New procedure
1036 (Add_Source): When Other_Part is defined, set mutual pointers in spec
1038 (Check): In multi-language mode, call Check_Interfaces
1039 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
1040 for an excluded source.
1041 (Remove_Source): A source replacing a source in the interfaces is also
1044 * prj-pars.adb: Use function Present
1046 * prj-part.adb: Use functions Present and No throughout
1047 (Parse_Single_Project): Set the parent project for child projects
1048 (Create_Virtual_Extending_Project): Register project with no qualifier
1049 (Parse_Single_Project): Allow an abstract project to be extend several
1050 times. Do not allow an abstract project to extend a non abstract
1053 * prj-pp.adb: Use functions Present and No throughout
1054 (Print): Take into account the full associative array attribute
1057 * prj-proc.adb: Use functions Present and No throughout
1058 (Expression): Call itself with the same From_Project_Node for the
1059 default value of an external reference.
1061 * prj-strt.adb: Use functions Present and No throughout
1062 (Parse_Variable_Reference): If a variable is specified as a simple name
1063 and is not found in the current project, look for it also in the
1064 ancestors of the project.
1066 * prj-tree.ads, prj-tree.adb (Present): New function
1068 Use functions Present and No throughout
1069 (Parent_Project_Of): New function
1070 (Set_Parent_Project_Of): New procedure
1072 * snames.ads, snames.adb:
1073 Add new standard names Object_Generated and Objects_Linked
1075 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1077 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
1078 and the derived type are of the same kind.
1079 (Expand_Call): Generate type conversions for actuals of
1080 record or array types when the parent and the derived types differ in
1081 size and/or packed status.
1083 2008-05-20 Javier Miranda <miranda@adacore.com>
1084 Ed Schonberg <schonberg@adacore.com>
1086 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
1087 generating dispatch tables of locally defined tagged types statically.
1088 Remove implicit if-statement that is no longer required.
1089 (Expand_Dispatching_Call): If this is a call to an instance of the
1090 generic dispatching constructor, the type of the first argument may be
1091 a subtype of Tag, so always use the base type to recognize this case.
1093 2008-05-20 Thomas Quinot <quinot@adacore.com>
1096 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
1097 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
1098 assigning NULL into the result, to avoid a spurious warning.
1099 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
1101 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
1103 (Build_From_Any_Function, Build_To_Any_Function,
1104 Build_TypeCode_Function): For a type that has user-specified stream
1105 attributes, use an opaque sequence of octets as the representation.
1107 2008-05-20 Kevin Pouget <pouget@adacore.com>
1109 * exp_smem.ads, exp_smem.adb: Construction of access and assign
1110 routines has been replaced by an instantiation of
1111 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
1112 shared variable declaration.
1113 Calls to access and assign routines have been replaced by calls to
1114 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
1115 instantiated package.
1117 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
1118 It identifies the new generic package added in s-shasto.
1120 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
1121 is instantiated for each shared passive variable. It provides
1122 supporting procedures called upon each read or write access by the
1126 For this runtime unit (always compiled in GNAT mode), we allow
1127 stream attributes references for limited types for the case where
1128 shared passive objects are implemented using stream attributes,
1129 which is the default in GNAT's persistent storage implementation.
1131 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1134 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
1135 convention from its base type, do not set the type to that of integer,
1136 because it may inherit a size clause.
1137 Warn on a size clause with a size different
1138 from that of Integer, if the type has convention C.
1140 2008-05-20 Vincent Celier <celier@adacore.com>
1143 (Scan_Args): Rewrite to take into account new switch --and to separate
1144 arguments into sections.
1145 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
1146 section, then Finalize.
1148 2008-05-20 Tristan Gingold <gingold@adacore.com>
1150 * init.c: Enable stack probing on ppc-linux.
1152 * tracebak.c: Add symbolic traceback for ppc-linux.
1154 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
1156 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1159 (common-tools): New rule, to avoid parallel build failure on gnat tools.
1160 Reenable parallel builds on this Makefile.
1162 * Make-lang.in: Update dependencies.
1164 2008-05-20 Robert Dewar <dewar@adacore.com>
1166 * opt.ads (Treat_Restrictions_As_Warnings): New switch
1168 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
1169 Treat_Restrictions_As_Warnings.
1171 * switch-c.adb: Recognize new switch -gnatr
1173 * usage.adb: Add line for -gnatr
1175 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1178 (P_Access_Definition): Change the error message when parsing "access
1179 all" in Ada 95 mode. The message no longer forces the user to recompile
1180 in 05 mode only to discover that anonymous access types are not allowed
1183 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1186 (P_Protected): Update the error message on missing "-gnat05" switch when
1187 using interfaces in conjunction with protected types. Remove the
1188 incorrect error message associated with the presence of "private" after
1191 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1193 * sem_aggr.adb: Update comments.
1194 Improve previous change for PR ada/17985
1196 2008-05-20 Thomas Quinot <quinot@adacore.com>
1199 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
1200 the visible part of the spec of a remote types unit.
1201 (Validate_Remote_Access_Object_Type_Declaration):
1202 New local subprogram Is_Valid_Remote_Object_Type, replaces
1203 Is_Recursively_Limited_Private.
1204 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
1205 non-controlling formals (and the return type, even though this is not
1206 explicit in the standard) must support external streaming.
1207 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
1208 as above for of RAS types and RCI subprograms. (The return type is not
1210 Update comments related to RACWs designating limited interfaces per
1211 ARG ruling on AI05-060.
1213 * sem_util.ads, sem_util.adb
1214 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
1215 Is_Remote_Call_Interface to identify RACW types in a stable and
1216 consistent way. We used to rely in this predicate on the privateness of
1217 the designated type and its ancestors, but depending on the currently
1218 visible private parts, this caused false negatives. We now uniformly
1219 rely on checks made at the point where the RACW type is declared.
1220 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
1222 2008-05-20 Javier Miranda <miranda@adacore.com>
1223 Ed Schonberg <schonberg@adacore.com>
1224 Hristian Kirtchev <kirtchev@adacore.com>
1227 (Analyze_Object_Declaration): Fix over-conservative condition
1228 restricting use of predefined assignment with tagged types that have
1230 (Analyze_Object_Declaration): Relax the check regarding deferred
1231 constants declared in scopes other than packages since they can be
1232 completed with pragma Import.
1233 Add missing escaping of all-caps word 'CPP' in error messages.
1234 (Build_Discriminated_Subtype): Do not inherit representation clauses
1235 from parent type if subtype already carries them, because they are
1236 inherited earlier during derivation and already include those that may
1237 come from a partial view.
1239 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
1240 Check the declarations of a subprogram body for proper deferred
1241 constant completion.
1243 * sem_ch7.ads, sem_ch7.adb
1244 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
1246 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1247 Thomas Quinot <quinot@adacore.com>
1250 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
1251 F is a parameterless function that returns an array, and S is a subtype
1253 (Analyze_Call): Insert dereference when the prefix is a parameterless
1254 function that returns an access to subprogram and the call has
1256 Reject a non-overloaded call whose name resolves to denote
1257 a primitive operation of the stub type generated to support a remote
1258 access-to-class-wide type.
1260 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1263 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
1264 when there is a use clause for the same entity in the context.
1265 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
1266 created for a stream attribute of an abstract type or interface type.
1268 2008-05-20 Thomas Quinot <quinot@adacore.com>
1270 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
1274 (Add_One_Interp): Ignore any interpretation that is a primitive
1275 operation of an RACW stub type (these primitives are only executed
1276 through dispatching, never through static calls).
1277 (Collect_Interps): When only one interpretation has been found, set N's
1278 Entity and Etype to that interpretation, otherwise Entity and Etype may
1279 still refer to an interpretation that was ignored by Add_One_Interp,
1280 in which case would end up with being marked as not overloaded but with
1281 an Entity attribute not pointing to its (unique) correct interpretation.
1283 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1286 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
1287 denotes the whole array of its prefix.
1289 2008-05-20 Robert Dewar <dewar@adacore.com>
1291 * sem_res.adb (Resolve_Op_Not): Warn on double negation
1293 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1296 (Print_Itype): Do not modify the sloc of the component type of a
1297 (packed) array itype, because it is an unrelated type whose source
1298 location is independent of the point of creation of the itype itself.
1300 2008-05-20 Thomas Quinot <quinot@adacore.com>
1302 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
1305 2008-05-20 Robert Dewar <dewar@adacore.com>
1306 Vincent Celier <celier@adacore.com>
1308 * vms_data.ads: Add entry for -gnatr
1309 Put GNAT SYNC section in proper alpha order
1310 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
1312 * gnat_ugn.texi: Add documentation for new gnatname switch --and
1313 Update the style checks section
1314 Add documentation of -gnatr
1315 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
1316 subsection the explanation how compiler checks should be disabled for
1318 Update the list of Ada 95 reserved words used by in the project language
1319 Add documentation for project qualifiers.
1320 Document that abstract projects may be extended by different projects in
1321 the same project tree.
1322 Add documentation for gnatmake switch -d
1324 * ug_words: Add -gnatyy VMS equivalence string.
1325 Add entry for -gnatr
1327 2008-05-20 Bob Duff <duff@adacore.com>
1330 (Set_Handler): Remove code from both of these that implements
1331 RM-D.15(15/2), because it causes a race condition and potential
1333 (Process_Queued_Events): Add comment explaining "exception when others
1334 => null". Add clarifying ".all", even though implicit .all is legal
1337 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1339 * s-winext.ads: Replace representation clause by pragma Pack. Gives
1340 equivalent representation, but has the advantage of allowing
1341 compilation of this file under 64 bits platforms.
1343 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
1345 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
1348 Don't define dummy implementation of convert_addresses on ppc-linux.
1350 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1353 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
1354 if expression is aggregate component.
1356 2008-05-20 Robert Dewar <dewar@adacore.com>
1358 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
1359 sem_ch12.adb: Update comments. Minor reformatting.
1363 * s-unstyp.ads: Fixed some typos in comments.
1365 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1367 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
1370 * g-socthi-vxworks.ads: Update to latest socket changes.
1372 * a-caldel-vms.adb: Resync with a-caldel spec.
1374 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
1377 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
1379 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
1380 for dummy types pointed to by the converted pointer types.
1382 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
1384 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
1385 of records and unions.
1386 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
1388 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
1389 Robert Dewar <dewar@adacore.com>
1391 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
1392 restrictions to the prefix of 'Old.
1393 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
1394 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
1397 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
1401 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
1402 expression to an integral type with lower precision, use NOP_EXPR
1403 directly in a couple of special cases.
1405 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
1406 Ed Schonberg <schonberg@adacore.com>
1408 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
1409 constraint expressions.
1411 2008-05-12 Tomas Bily <tbily@suse.cz>
1413 * utils2.c (known_alignment, contains_save_expr_p)
1414 (gnat_mark_addressable): Use CASE_CONVERT.
1415 * decl.c (annotate_value): Likewise.
1416 * trans.c (maybe_stabilize_reference): Likewise.
1417 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
1418 * utils.c (rest_of_record_type_compilation): Likewise.
1419 * trans.c (protect_multiple_eval, Attribute_to_gnu)
1420 (protect_multiple_eval): Likewise.
1422 2008-05-08 Andreas Schwab <schwab@suse.de>
1424 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
1425 DECL_IS_PURE to DECL_PURE_P.
1427 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
1429 * decl.c (maybe_pad_type): Add ??? comment.
1431 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
1433 * decl.c (components_to_record): Zero the alignment of the qualified
1434 union built for the variant part upon creating it.
1436 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
1438 * decl.c (maybe_pad_type): Try to get a form of the type with integral
1439 mode even if the alignment is not a factor of the original size. But
1440 make sure to create the inner field with the original size. Reorder.
1441 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
1442 record as always addressable.
1443 * utils.c (convert): Deal specially with conversions between original
1444 and packable versions of a record type.
1445 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
1446 recognizing an assignment between padded objects.
1448 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
1450 * decl.c (make_packable_type): Resize the last component to its RM size
1451 only if it is of an aggregate type.
1452 * trans.c (call_to_gnu): Fix nit in comment.
1453 (gnat_to_gnu): Likewise.
1455 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
1457 * Makefile.in: Adapt sh4-linux target.
1459 2008-04-29 Ed Schonberg <schonberg@adacore.com>
1462 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
1463 tagged type by an untagged protected or task type.
1465 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
1466 Tristan Gingold <gingold@adacore.com>
1469 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
1470 of aliased objects with an unconstrained nominal subtype.
1471 Cap the promotion to the effective alignment of the word mode.
1473 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1475 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
1476 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
1477 Use '&&' instead of ';'.
1479 2008-04-24 Olivier Hainque <hainque@adacore.com>
1481 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
1482 doesn't require signed arithmetic anymore.
1484 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
1486 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
1487 (call_to_gnu): Don't set TREE_INVARIANT.
1488 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
1490 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
1492 * s-osinte-rtems.adb: Add sigalstack function.
1493 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
1494 function. Add Alternate_Stack and Alternate_Stack_Size.
1495 Add missing process_shared field to pthread_condattr_t
1496 and change ss_low_priority to int from timespec.
1498 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
1500 * i-forbla.adb: Link against -llapack and -lblas by default
1501 instead of the private -lgnalasup.
1503 2008-04-21 Olivier Hainque <hainque@adacore.com>
1505 Access to most C builtins from Ada
1506 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
1507 (handle_pure_attribute, handle_novops_attribute,
1508 handle_nonnull_attribute, handle_sentinel_attribute,
1509 handle_noreturn_attribute, handle_malloc_attribute,
1510 handle_type_generic_attribute): New attribute handlers, from C fe.
1511 (gnat_internal_attribute_table): Map the new handlers.
1512 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
1513 (init_gigi_decls): ... here.
1514 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
1515 Move to a section dedicated to builtins processing.
1516 (build_void_list_node, builtin_type_for_size): New functions.
1517 (def_fn_type, get_nonnull_operand): Likewise.
1518 (install_builtin_elementary_type, install_builtin_function_types,
1519 install_builtin_attributes): Likewise.
1520 (fake_attribute_handler): Fake handler for attributes we don't
1522 (def_builtin_1): New function, worker for DEF_BUILTIN.
1523 (install_builtin_functions): New function.
1524 (gnat_install_builtins): Move to the builtins processing section.
1525 Now calling the newly introduced installers.
1527 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
1529 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
1530 constant objects, but not exceptions.
1531 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
1533 * utils.c (create_var_decl_1): Likewise.
1534 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
1535 the type when copying to padded object and the source is a constructor.
1537 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1539 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
1540 alignment, reset it to zero if it would end up not being greater
1541 than that of the type.
1543 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1545 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
1546 the padded type has a variable size.
1548 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1550 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
1551 target pointer mechanism as soon as the size is not constant.
1553 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1555 * gigi.h (create_var_decl_1): Declare.
1556 (create_var_decl): Turn into a macro invoking create_var_decl_1.
1557 (create_true_var_decl): Likewise.
1558 * utils.c (create_var_decl_1): Make global and reorder parameters.
1559 (create_var_decl): Delete.
1560 (create_true_var_decl): Likewise.
1562 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
1564 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
1566 * fe.h (Debug_Flag_Dot_A): Delete.
1567 * debug.adb (-gnatd.a): Update documentation.
1569 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
1571 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
1572 "not null" parameter.
1574 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
1576 * g-socket.adb: Add a message "IPv6 not supported" to the
1577 Socket_Error exception.
1579 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
1582 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
1583 the type is known instead of the underlying type.
1585 2008-04-15 Ed Schonberg <schonberg@adacore.com>
1588 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1589 procedure for a derived type retrieve the discriminant values from
1590 the parent using the corresponding discriminant.
1592 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
1593 Gary Dismukes <dismukes@adacore.com>
1596 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
1597 which is not an entity (and hence not a package).
1598 (End_Use_Package): Ditto.
1600 2008-04-15 Ed Schonberg <schonberg@adacore.com>
1603 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
1604 protected operation that matches the signature, not only an entry, a
1605 regular subprogram or a literal.
1607 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
1609 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
1610 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
1611 if a size or alignment is specified. Do not take into account
1612 alignment promotions for the computation of the object's size.
1613 <type>: Call maybe_pad_type only if a size or alignment is specified.
1614 (maybe_pad_type): Really reuse the RM_Size of the original type if
1616 * trans.c (Attribute_to_gnu): Fix a couple of nits.
1617 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
1618 statements. Use the padded view of the type when copying between
1619 padded objects of the same underlying type.
1621 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1623 * vms_data.ads: Fix typo in constant.
1624 * gen-soccon.c: Fix typo in error string.
1625 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
1627 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
1628 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
1629 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
1630 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
1631 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
1632 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
1633 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
1634 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
1635 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
1636 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
1637 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
1638 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
1639 sinfo.ads: Fix typos in comments.
1641 2008-04-14 Robert Dewar <dewar@adacore.com>
1643 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
1644 to every non-object and change error message.
1646 2008-04-14 Robert Dewar <dewar@adacore.com>
1648 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
1649 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
1652 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1655 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
1656 apply pragma Linker_Section on type.
1658 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1661 * sem_prag.adb (Error_Pragma_Ref): New.
1662 (Process_Convention): Specialized message for non-local
1663 subprogram renaming. Detect the problem in homonyms as well.
1665 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1668 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
1669 * sem_ch12.adb (Instantiate_Object): Use it.
1670 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
1671 storage pool denotes a variable as per RM 13.11(15).
1673 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1675 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
1676 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
1678 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
1681 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
1682 line endings even on non-Unix platforms.
1684 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
1687 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
1688 renaming information.
1690 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
1693 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
1696 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1698 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
1699 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
1700 snames.ads, sprint.adb, stand.ads, stringt.ads,
1701 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
1702 switch.ads, sysdep.c, table.adb, table.ads,
1703 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
1704 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
1705 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
1706 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
1707 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
1708 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
1711 * sem_ch10.adb, sem_ch10.ads,
1712 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
1713 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
1714 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
1715 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
1716 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
1717 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
1718 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
1719 sem_warn.ads: Fix comment typos.
1721 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
1722 s-soflin.ads, s-stalib.ads, s-stausa.adb,
1723 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
1724 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
1725 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
1726 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1727 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
1728 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
1729 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
1730 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
1731 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
1732 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
1733 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
1734 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
1735 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
1736 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
1737 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
1738 sem_cat.adb, sem_cat.ads: Fix comment typos.
1740 2008-04-12 Joel Sherrill <joel@oarcorp.com>
1743 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
1745 2008-04-12 Arnaud Charlet <charlet@adacore.com>
1747 * s-linux-hppa.ads: Fix syntax errors.
1749 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1751 * gnat_ugn.texi: Fix typos.
1752 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
1753 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
1754 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
1755 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
1756 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
1757 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
1758 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
1759 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
1760 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
1761 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
1762 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
1763 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
1764 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
1765 s-osinte-darwin.ads, s-osinte-freebsd.ads,
1766 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
1767 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
1768 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
1769 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
1770 s-parame-hpux.ads, s-parame-vms-alpha.ads,
1771 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
1772 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
1773 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
1774 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
1775 s-rident.ads: Fix comment typos.
1777 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
1780 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
1781 environment if generic instance is a top-level one.
1783 2008-04-09 Doug Rupp <rupp@adacore.com>
1785 * decl.c (validate_size): Set minimum size for fat pointers same as
1786 access types. Code clean ups.
1788 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
1789 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
1791 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
1793 * s-crtl.ads (malloc32) New function, alias for malloc
1794 (realloc32) New function, alias for realloc
1796 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
1798 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
1799 allocator size is 32 and default pointer size is 64.
1800 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
1801 lhs type if smaller, whatever the modes.
1803 * gigi.h (malloc32_decl): New macro definition
1805 * utils.c (init_gigi_decls): New malloc32_decl
1806 Various code clean ups.
1808 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
1809 Task_Address vice System.Address.
1811 * s-taspri-vms.ads: Import System.Aux_DEC
1812 (Task_Address): New subtype of System.Aux_DEC.Short_Address
1813 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
1815 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
1816 Task_Address vice System.Address.
1818 * s-inmaop-vms.adb: Import System.Task_Primitives
1819 (To_Address): Unchecked convert to Task_Address vice System.Address
1821 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
1823 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
1824 (To_Address) Unchecked convert to Task_Address vice System.Address
1826 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
1828 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
1830 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1832 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
1833 (fdesc_type_node): Define.
1834 (null_fdesc_node): Likewise.
1835 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
1836 uses descriptors for vtables and the type comes from a dispatch table,
1837 return the descriptor type.
1838 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
1839 uses descriptors for vtables and the type comes from a dispatch table,
1840 build a descriptor in the static case and copy the existing one in the
1842 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
1843 the type is a pointer-to-subprogram coming from a dispatch table,
1844 return the null descriptor.
1845 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
1846 vtables, the source type is the descriptor type and the target type
1847 is a pointer type, first build the pointer.
1848 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
1849 build the descriptor type and the null descriptor.
1851 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1853 * decl.c (prepend_attributes): Fix typo.
1854 * trans.c (Pragma_to_gnu): Likewise.
1855 * utils.c (gnat_genericize): Likewise.
1857 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1858 Richard Kenner <kenner@adacore.com>
1860 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
1861 * decl.c (gnat_to_gnu_entity): Adjust for above change.
1862 <E_Record_Type>: Try to get a better form of the component for
1863 packing, even if it has an integral mode.
1864 <E_Record_Subtype>: Likewise.
1865 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
1866 exception suppressing the final conversion between record types.
1868 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1870 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
1871 alignment for space, promote the alignment of non-scalar variables with
1872 no size and alignment.
1873 * gigi.h (gnat_types_compatible_p): Declare.
1874 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
1875 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
1876 * utils.c (gnat_types_compatible_p) : New predicate.
1877 (convert): Use it throughout to test for cases where a mere view
1878 conversion is sufficient.
1879 * utils2.c (build_binary_op): Minor tweaks.
1880 (build_unary_op): Likewise.
1882 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1884 * decl.c (adjust_packed): Expand comment.
1886 2008-04-08 Arnaud Charlet <charlet@adacore.com>
1888 * s-tasuti.ads: Use Task_Address instead of System.Address.
1890 * makeutl.adb (Path_Or_File_Name): New function
1892 * nlists.ads, itypes.ads: Update comments.
1894 * s-crtl.ads (malloc32, realloc32): New functions.
1896 * s-auxdec.ads (Short_Address_Size): New constant.
1898 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
1900 * s-ststop.ads, s-ststop.adb: New file.
1902 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
1905 2008-04-08 Pascal Obry <obry@adacore.com>
1907 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
1908 (Stop_Bits_Number): New type.
1909 (Parity_Check): Likewise.
1910 (Set): Add parameter to set the number of stop bits and
1911 the parity. Parameter timeout is now a duration instead
1914 * g-sercom-linux.adb:
1915 Implement the stop bits and parity support for GNU/Linux.
1916 Fix handling of timeout, it must be given in tenth of seconds.
1918 * g-sercom-mingw.adb:
1919 Implement the stop bits and parity support for Windows.
1920 Use new s-win32.ads unit instead of declaring Win32 services
1921 directly into this body.
1922 Update handling of timeout as now a duration.
1924 * s-win32.ads, s-winext.ads: New files.
1926 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1927 Arnaud Charlet <charlet@adacore.com>
1929 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
1931 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
1932 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
1934 * s-osinte-lynxos-3.ads,
1935 (Alternate_Stack): Remove when not needed. Simplify declaration
1937 (Alternate_Stack_Size): New constant.
1939 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
1940 'Unrestricted_Access.
1942 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
1943 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
1944 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
1945 s-osinte-solaris.ads, s-osinte-vms.ads
1946 (SA_ONSTACK): New constant.
1947 (stack_t): New record type.
1948 (sigaltstack): New imported function.
1949 (Alternate_Stack): New imported variable.
1950 (Alternate_Stack_Size): New constant.
1952 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
1954 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
1955 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
1956 s-taspri-vms.ads (Task_Address): New subtype of System.Address
1957 (Task_Address_Size): New constant size of System.Address
1958 (Alternate_Stack_Size): New constant.
1960 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
1961 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
1962 Establish the alternate stack if the platform makes use of n alternate
1963 signal stack for stack overflows.
1964 (Create_Task): Take into account the alternate stack in the stack size.
1965 (Initialize): Save the address of the alternate stack into the ATCB for
1966 the environment task.
1967 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
1969 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
1971 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
1973 * s-intman-posix.adb:
1974 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
1975 alternate signal stack for stack overflows.
1977 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
1978 x86-64, adjust the saved value of the stack pointer if the signal was
1979 raised by a stack checking probe.
1980 (HP-UX section): Use global __gnat_alternate_stack as signal handler
1981 stack and only for SIGSEGV.
1982 (Linux section): Likewise on x86 and x86-64.
1984 (__gnat_map_signal): Now static.
1985 (__gnat_error_handler): Not static any more.
1986 (__gnat_adjust_context_for_raise): New function. Signal context
1987 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
1988 propagation circuitry.
1989 (__gnat_error_handler): Second argument of a sigaction handler is a
1990 pointer, not an int, and is unused.
1991 Adjust signal context before mapping to exception.
1992 Install signal handlers for LynxOS case.
1994 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
1995 (Task_Id): Set size to Task_Address_Size
1996 (To_Task_id): Unchecked convert from Task_Address vice System.Address
1997 (To_Address): Unchecked convert to Task_Address vice System.Address
1999 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
2000 address into the ATCB if the platform makes use of an alternate signal
2001 stack for stack overflows.
2002 (Free_Task): Add call to Finalize_Attributes_Link.
2003 Add argument Relative_Deadline to pass the value specified for
2004 the task. This is not yet used for any target.
2006 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
2007 the value specified for the task.
2009 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2011 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
2012 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
2013 s-vxwext-rtp.adb): New files.
2015 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
2016 Minor updates to accomodate changes above.
2018 2008-04-08 Pascal Obry <obry@adacore.com>
2020 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
2021 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
2022 Use new s-win32.ads unit instead of declaration
2023 from s-osinte-mingw.ads.
2025 * s-osinte-mingw.ads:
2026 Move all non tasking based interface to s-win32.ads.
2028 * s-osprim-mingw.adb:
2029 Remove duplicated declarations and use s-win32.ads
2032 2008-04-08 Vincent Celier <celier@adacore.com>
2033 Arnaud Charlet <charlet@adacore.com>
2035 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
2036 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
2037 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
2038 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2039 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
2041 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
2042 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
2043 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
2044 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
2045 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
2046 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2047 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
2048 mlib-tgt-specific-mingw.adb: New names.
2051 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
2053 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
2054 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
2055 Minor updates for VMS
2057 * gnatbl.c: Removed.
2059 2008-04-08 Thomas Quinot <quinot@adacore.com>
2061 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
2062 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
2063 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
2064 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
2065 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
2066 ASCII.NUL throughout.
2068 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2069 Matthew Heaney <heaney@adacore.com>
2071 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
2074 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
2075 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
2076 to convention for non-RM specs.
2077 Add descriptive header, and documented each operation
2078 document each operation
2080 2008-04-08 Robert Dewar <dewar@adacore.com>
2081 Bob Duff <duff@adacore.com>
2082 Gary Dismukes <dismukes@adacore.com>
2083 Ed Schonberg <schonberg@adacore.com>
2085 * alloc.ads: Add entries for Obsolescent_Warnings table
2087 * einfo.ads, einfo.adb: Minor reformatting.
2088 (Is_Discriminal): New subprogram.
2089 (Is_Prival): New subprogram.
2090 (Is_Protected_Component): New subprogram.
2091 (Is_Protected_Private): Removed.
2092 (Object_Ref, Set_Object_Ref): Removed.
2093 (Prival, Set_Prival): Change assertion.
2094 (Privals_Chain, Set_Privals_Chain): Removed.
2095 (Prival_Link, Set_Prival_Link): New subprogram.
2096 (Protected_Operation, Set_Protected_Operation): Removed.
2097 (Protection_Object, Set_Protection_Object): New subprogram.
2098 (Write_Field17_Name): Remove case for Object_Ref.
2099 (Write_Field20_Name): Add case for Prival_Link.
2100 (Write_Field22_Name): Remove case for Protected_Operation,
2102 Add case for Protection_Object.
2103 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
2105 (Overlays_Constant): New flag
2106 (Is_Constant_Object): New predicate
2107 (Is_Standard_Character_Type): New predicate
2108 (Optimize_Alignment_Space): New flag
2109 (Optimize_Alignment_Time): New flag
2110 (Has_Postconditions): New flag
2111 (Obsolescent_Warrning): Field removed
2112 (Spec_PPC_List): New field
2113 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
2114 subprograms to get and set the relative deadline associated to a task.
2116 * exp_attr.adb (May_Be_External_Call): Account for the case where the
2117 Access attribute is part of a named parameter association.
2118 (Expand_Access_To_Protected_Op): Test for the attribute occurring
2119 within an init proc and use that directly as the scope rather than
2120 traversing up to the protected operation's enclosing scope. Only apply
2121 assertion on Is_Open_Scopes in the case the scope traversal is done.
2122 For the init proc case use the address of the first formal (_init) as
2123 the protected object reference.
2124 Implement Invalid_Value attribute
2125 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
2126 contents of the dispatch table there is no need to duplicate the
2127 itypes associated with record types (i.e. the implicit full view
2129 Implement Enum_Val attribute
2130 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
2131 within _Postconditions procedure
2132 (Expand_N_Attribute_Reference, case Result): Implement new attribute
2134 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
2135 a return statement calls a function that is not available in
2136 configurable runtime.
2137 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
2138 (Expand_Non_Function_Return): Generate call to _Postconditions proc
2139 (Expand_Simple_Function_Return): Ditto
2141 * frontend.adb: Add call to Sem_Aux.Initialize
2143 * sem_aux.ads, sem_aux.adb: New file.
2145 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
2146 Add new Pragma_Relative_Deadline.
2147 Add support for pragmas Check and Check_Policy
2149 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
2150 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
2151 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
2152 missing check because they are not allowed in CPP tagged types.
2153 Add Sure parameter to Note_Possible_Modification calls
2154 Add implementation of Invalid_Value attribute
2155 Implement new attribute Has_Tagged_Values
2156 Implement Enum_Val attribute
2157 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
2158 generated attributes.
2159 (Analyze_Attribute, case Result): If prefix of the attribute is
2160 overloaded, it always resolves to the enclosing function.
2161 (Analyze_Attribute, case Result): Properly deal with analysis when
2162 Postconditions are not active.
2163 (Resolve_Attribute, case Result): Properly deal with appearence during
2164 preanalysis in spec.
2165 Add processing for attribute Result
2167 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
2169 (Analyze_Subprogram_Body): Install private_with_clauses when the body
2171 (Check_Inline_Pragma): recognize an inline pragma that appears within
2172 the subprogram body to which it applies.
2173 (Analyze_Function_Return): Check that type of the expression of a return
2174 statement in a function with a class-wide result is not declared at a
2175 deeper level than the function.
2176 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
2177 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
2178 user- defined operators.
2179 (Install_Formals): Moved to spec to allow use from Sem_Prag for
2180 analysis of precondition/postcondition pragmas.
2181 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
2182 Last_Formal, along with lots of comments on what this is about
2183 (Analyze_Subprogram_Body): Fix case where we move entities from the
2184 spec to the body when there are no body entities (now possible with
2185 precondition and postcondition pragmas).
2186 (Process_PPCs): New procedure
2187 (Analyze_Subprogram_Body): Add call to Process_PPCs
2189 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
2191 (Pop_Scope): Restore Check_Policy_List on scope exit
2192 (Push_Scope): Save Check_Policy_List on scope entry
2193 Change name In_Default_Expression => In_Spec_Expression
2194 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2195 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2196 (Analyze_Object_Renaming): Allow 'Reference as object
2197 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
2198 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
2199 of restriction identifier.
2200 Add Sure parameter to Note_Possible_Modication calls
2202 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
2203 Don't check for primitive operations when calling Rep_Item_Too_Late.
2204 (Process_Import_Or_Interface): Do not place flag on formal
2206 (Analyze_Pragma, case Export): If the entity is a deferred constant,
2207 propagate information to full view, which is the one elaborated by the
2209 (Make_Inline): the pragma is effective if it applies to an internally
2210 generated subprogram declaration for a body that carries the pragma.
2211 (Analyze_Pragma, case Optimize_Alignment): Set new flag
2212 Optimize_Alignment_Local.
2213 (Analyze_PPC_In_Decl_Part): New procedure
2214 (Get_Pragma_Arg): Moved to outer level
2215 (Check_Precondition_Postcondition): Change to allow new visibility
2216 rules for package spec
2217 (Analyze_Pragma, case Check_Policy): Change placement rules to be
2218 same as pragma Suppress/Unsuppress.
2219 Change name In_Default_Expression => In_Spec_Expression
2220 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2221 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2222 (Check_Precondition_Postcondition): Do proper visibility preanalysis
2223 for the case of these pragmas appearing in the spec.
2224 (Check_Enabled): New function
2225 (Initialize): New procedure
2226 (Tree_Read): New procedure
2227 (Tree_Write): New procedure
2228 (Check_Precondition_Postcondition): New procedure
2229 Implement pragmas Check and Check_Policy
2230 Merge Assert processing with Check
2232 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
2233 New warning flag -gnatw.e
2235 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
2236 returning whether a task (or main procedure) has a pragma
2238 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
2239 (or main procedure) has a pragma Relative_Deadline.
2240 Add Next_Pragma field to N_Pragma node
2241 (PPC_Enabled): New flag
2242 (Next_Pragma): Now used for Pre/Postcondition processing
2244 * snames.h, snames.ads, snames.adb: New standard name
2246 Add entry for 'Invalid_Value attribute
2247 Add entry for new attribute Has_Tagged_Values
2248 Add entry for Enum_Val attribute
2249 Add new standard names Aggregate, Configuration and Library.
2252 Add Pragma_Precondition
2253 Add Pragma_Postcondition
2254 Add Attribute_Result
2255 New standard name Archive_Builder_Append_Option
2256 (Preset_Names): Add _relative_deadline and relative_deadline definitions
2257 There was also a missing non_preemptive_within_priorities.
2258 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
2260 Add support for pragmas Check and Check_Policy
2262 * tree_gen.adb: Call Sem_Aux.Tree_Write
2264 * tree_in.adb: Call Sem_Aux.Tree_Read
2266 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
2269 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
2272 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
2273 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
2275 (Expand_Pragma_Check): New procedure
2277 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
2280 * sinfo.adb (PPC_Enabled): New flag
2282 2008-04-08 Robert Dewar <dewar@adacore.com>
2283 Gary Dismukes <dismukes@adacore.com>
2284 Javier Miranda <miranda@adacore.com>
2285 Ed Schonberg <schonberg@adacore.com>
2287 * fe.h: Remove global Optimize_Alignment flag, no longer used
2289 * layout.adb: Test Optimize_Alignment flags rather than global switch
2291 * lib.ads, lib.adb: New OA_Setting field in library record
2293 * lib-load.adb: New OA_Setting field in library record
2295 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
2296 units mentioned in limited_with_ clauses in the ali file, with an
2298 New Ox fields in U line
2300 * opt.adb: New flag Optimize_Alignment_Local
2301 (Check_Policy_List[_Config]): New flags
2303 * opt.ads (Invalid_Value_Used): New flag
2304 New switch Optimize_Alignment_Local
2305 (Warn_On_Parameter_Order): New flag
2306 (Check_Policy_List[_Config]): New flags
2308 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
2309 limited_with clauses.
2310 New data structures for Optimize_Alignment
2312 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
2314 (Check_Consistent_Optimize_Alignment): Rework for new structure
2315 (Check_Consistent_Restrictions): Fix incorrect error message
2317 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
2318 created class-wide type (to the Parent field of the specific type).
2319 (Install_Siblings): Handle properly private_with_clauses on subprogram
2320 bodies and on generic units.
2321 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
2322 illegal limited_with_clause that names a non-existent package.
2323 (Check_Body_Required): Determine whether a unit named a limited_with
2324 clause needs a body.
2325 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
2326 Capture Optimize_Alignment settings to set new OA_Setting field in
2328 (Build_Limited_Views): Include task and protected type declarations.
2330 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
2331 case of a possible constant redeclaration where the current object is
2332 an entry index constant.
2333 (Analyze_Object_Declaration): Generate an error in case of CPP
2334 class-wide object initialization.
2335 (Analyze_Object_Declaration): Add extra information on warnings for
2336 declaration of unconstrained objects.
2337 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
2338 conflicts with the setting of Stored_Constraint in the case where the
2339 access type entity has already been created as an E_Incomplete_Type due
2340 to a limited with clause.
2341 Use new Is_Standard_Character_Type predicate
2342 (Analyze_Object_Declaration): Apply access_constant check only after
2343 expression has been resolved, given that it may be overloaded with
2344 several access types.
2345 (Constant_Redeclaration): Additional legality checks for deferred
2346 constant declarations tha involve anonymous access types and/or null
2347 exclusion indicators.
2348 (Analyze_Type_Declaration): Set Optimize_Alignment flags
2349 (Analyze_Subtype_Declaration): Ditto
2350 (Analyze_Object_Declaration): Ditto
2351 (Analyze_Object_Declaration): Don't count tasks in generics
2352 Change name In_Default_Expression => In_Spec_Expression
2353 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2354 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2355 (Process_Discriminants): Additional check for illegal use of default
2356 expressions in access discriminant specifications in a type that is not
2358 (Check_Abstract_Overriding): If an inherited function dispaches on an
2359 access result, it must be overridden, even if the type is a null
2361 (Derive_Subprogram): The formals of the derived subprogram have the
2362 names and defaults of the parent subprogram, even if the type is
2363 obtained from the actual subprogram.
2364 (Derive_Subprogram): In the presence of interfaces, a formal of an
2365 inherited operation has the derived type not only if it descends from
2366 the type of the formal of the parent operation, but also if it
2367 implements it. This is relevant for the renamings created for the
2368 primitive operations of the actual for a formal derived type.
2369 (Is_Progenitor): New predicate, to determine whether the type of a
2370 formal in the parent operation must be replaced by the derived type.
2372 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
2373 predicate recursive to handle components that have a user-defined
2374 Initialize procedure. Handle controlled derived types whose ancestor
2375 has a user-defined Initialize procedured.
2376 (Note_Possible_Modification): Add Sure parameter, generate warning if
2377 sure modification of constant
2378 Use new Is_Standard_Character_Type predicate
2379 (Find_Parameter_Type): when determining whether a protected operation
2380 implements an interface operation, retrieve the type of the formal from
2381 the entity when the formal is an access parameter or an
2382 anonymous-access-to-subprogram.
2383 Move Copy_Parameter_List to sem_util, for use when building stubbed
2385 (Has_Access_Values): Tagged types now return False
2386 (Within_HSS_Or_If): New procedure
2387 (Set_Optimize_Alignment_Flags): New procedure
2388 Change name In_Default_Expression => In_Spec_Expression
2389 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2390 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2392 2008-04-08 Tristan Gingold <gingold@adacore.com>
2394 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
2396 2008-04-08 Tristan Gingold <gingold@adacore.com>
2400 * cuintp.c: Fix 16 bits issue for AVR.
2401 On AVR, integer is 16 bits, so it can't be used to do math with
2403 So use long_integer instead.
2405 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2407 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
2408 System.OS_Primitives.
2409 Change type of various constants, parameters and local variables from
2410 Time to representation type OS_Time.
2411 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
2412 Remove the declaration of constant Mili_F from several routines. New
2413 body for internal package Conversions_Operations.
2414 (Time_Of): Add default parameters for several formals.
2416 * a-caldel.adb: Minor reformatting
2418 * a-calend.ads, a-calend.adb: New body for internal package
2419 Conversions_Operations.
2420 (Time_Of): Add default parameters for several formals.
2422 * Makefile.rtl: Add a-ststop
2423 Add Ada.Calendar.Conversions to the list of runtime files.
2426 * a-calcon.adb, a-calcon.ads: New files.
2428 2008-04-08 Jose Ruiz <ruiz@adacore.com>
2429 Tristan Gingold <gingold@adacore.com>
2431 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
2432 (Install_Restricted_Handlers): New procedure
2433 which is a simplified version of Install_Handlers that does not store
2434 previously installed.
2436 * s-interr-vxworks.adb: Fix ACATS cxc3001
2437 On VxWorks interrupts can't be detached.
2438 (Install_Restricted_Handlers): New procedure.
2440 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
2443 2008-04-08 Olivier Hainque <hainque@adacore.com>
2445 * s-intman-vxworks.ads, s-intman-vxworks.adb
2446 (Map_And_Raise_Exception): Remove. Was an import of only part of the
2447 required services already implemented elsewhere.
2448 (Notify_Exception): Delete body, import __gnat_error_handler instead.
2449 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
2450 argument passed to the handler, which we need for ZCX propagation
2453 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2455 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
2457 * g-timsta.adb, g-timsta.ads: New files.
2459 2008-04-08 Robert Dewar <dewar@adacore.com>
2461 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
2462 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
2463 (Raise_Exception_Always): Fix documentation accordingly
2465 2008-04-08 Robert Dewar <dewar@adacore.com>
2467 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
2470 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
2473 2008-04-08 Javier Miranda <miranda@adacore.com>
2474 Robert Dewar <dewar@adacore.com>
2475 Ed Schonberg <schonberg@adacore.com>
2477 * a-tags.adb (Register_Interface_Offset): New subprogram.
2478 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
2479 (To_Predef_Prims_Table_Ptr): Removed.
2480 (Acc_Size): Removed.
2481 (To_Acc_Size): Removed.
2482 (Parent_Size): Modified to the call the subprogram returning the size of
2483 the parent by means of the new TSD component Size_Func.
2485 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
2486 (DT_Offset_To_Top_Offset): New constant value that is used to generate
2487 code referencing the Offset_To_Top component of the dispatch table's
2489 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
2490 use of 'address to initialize dispatch table slots.
2491 (Size_Func): New component of the TSD. Used by the run-time to call the
2492 size primitive of the tagged type.
2494 * checks.adb (Apply_Access_Check): Avoid check when accessing the
2495 Offset_To_Top component of a dispatch table.
2496 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
2497 deferred constant declaration. do not add a null expression, to prevent
2498 spurious errors when full declaration is analyzed.
2499 (Apply_Discriminant_Check): If both discriminant constraints share a
2500 node which is not static but has no side effects, do not generate a
2501 check for that discriminant.
2502 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
2503 subexpr, since the prefix of an attribute is a name.
2505 * checks.ads: Fix nit in comment.
2507 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
2508 and body of predefined primitives in case of CPP tagged type
2510 (Freeze_Type): Deal properly with no storage pool case
2511 (Make_Predefined_Primitive_Specs): Generate specification of abstract
2512 primitive Deep_Adjust if a nonlimited interface is derived from a
2514 (Build_Dcheck_Functions): Create discriminant-checking functions only
2515 for variants that have some component(s).
2516 (Build_Slice_Assignment): In expanded code for slice assignment, handle
2517 properly the case where the slice bounds extend to the last value of the
2518 underlying representation.
2519 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
2520 (Is_Variable_Size_Record): An array component has a static size if
2521 index bounds are enumeration literals.
2523 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
2524 an external tag has been specified for the type.
2525 (Building_Static_DT): Add missing support for private types.
2526 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
2527 to the entity associated with the parent of Typ. This is done to
2528 avoid wrong access when the parent is a private type.
2529 (Expand_Interface_Conversion): Improve error message when the
2530 configurable runtime has no support for dynamic interface conversion.
2531 (Expand_Interface_Thunk): Add missing support to interface types in
2532 configurable runtime.
2533 (Expand_Dispatching_Call): remove obsolete code.
2534 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
2535 ensure that all subtypes and aggregates associated with dispatch
2536 tables have the attribute Is_Dispatch_Table_Entity set to true.
2537 (Register_Primitive): Rename one variable to improve code reading.
2538 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
2539 of the pointer to the 'size primitive in the TSD.
2541 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
2542 (RE_Offset_To_Top_Ptr): New entity.
2543 (RE_Register_Interface_Offset): New entity.
2544 (RE_Set_Dynamic_Offset_To_Top): New entity.
2545 (RE_Set_Offset_To_Top): Removed entity.
2546 (RE_Prim_Ptr): New entity
2547 (RE_Size_Func): New entity
2548 (RE_Size_Ptr): New entity
2549 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
2550 (Ada_Dispatching_Child): Define this new subrange.
2551 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
2552 RE_Time_Span, and RE_Time_Span_Zero).
2553 (RE_Unit_Table): Add new required run-time calls
2555 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
2558 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
2559 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
2560 initializes the Offset_To_Top component of a dispatch table.
2561 (Build_Predef_Prims): Removed.
2562 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
2564 (Build_Set_Size_Function): New subprogram.
2566 * exp_ch13.adb: Do not generate storage variable for storage_size zero
2567 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
2569 2008-04-08 Robert Dewar <dewar@adacore.com>
2571 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
2572 computing Fore when Exp > 0
2574 2008-04-08 Robert Dewar <dewar@adacore.com>
2576 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
2578 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
2579 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
2581 * fmap.adb: Remove Big_String declarations (now in Types)
2582 (No_Mapping_File): New Boolean global variable
2583 (Initialize): When mapping file cannot be read, set No_Mapping_File to
2585 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
2586 tables were empty before adding entries, open the mapping file
2587 with Truncate = True, instead of delete/re-create.
2589 * fname-sf.adb: Remove Big_String declarations (now in Types)
2591 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
2592 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
2595 * table.ads: Add for Table_Ptr'Storage_Size use 0
2597 * types.ads: Add Big_String declarations
2598 Add Size_Clause of zero for big pointer types
2600 2008-04-08 Vincent Celier <celier@adacore.com>
2602 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
2603 (Usage): Add line for switch --subdirs=
2604 Add new switch -eL, to follow symbolic links when processing project
2607 * gnatcmd.adb: Process switches -eL and --subdirs=
2608 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
2609 Program_Name to get proper tool names when AAMP_On_Target is set.
2610 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
2611 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
2612 Osint.Program_Name).
2614 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
2615 (Usage): Add lines for switches -eL and --subdirs=
2617 * makeusg.adb: Add line for switch --subdirs=
2620 (Source_Data): New Boolean component Compiled, defaulted to True
2621 (Empty_File_Name: New global variable in private part, initialized in
2622 procedure Initialize.
2623 (Subdirs_Option): New constant string
2624 (Subdirs): New String_Ptr global variable
2625 (Language_Config): New component Include_Compatible_Languages
2626 (Project_Qualifier): New type for project qualifiers
2627 (Project_Data): New component Qualifier
2628 (Project_Configuration): New component Archive_Builder_Append_Option
2630 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
2631 another imported project indicate the name of this imported project.
2632 (Check_File): When a unit is in two project files, indicate the project
2633 names and the paths of the source files for each project.
2634 (Add_Source): Set Compiled to False if compiler driver is empty. Only
2635 set object, dependency and switches file names if Compiled is True.
2636 (Process_Compiler): Allow the empty string for value of attribute Driver
2637 (Get_Directories): When Subdirs is not null and Object_Dir is not
2638 specified, locate and create if necessary the actual object dir.
2639 (Locate_Directory): When Subdirs is not empty and Create is not the
2640 empty string, locate and create if necessary the actual directory
2641 as a subdirectory of directory Name.
2642 (Check_Library_Attributes.Check_Library): Allow a project where the only
2643 "sources" are header files of file based languages to be imported by
2644 library projects, in multi-language mode (gprbuild).
2645 (Check_Library_Attributes.Check_Library): In multi-language mode
2646 (gprbuild), allow a library project to import a project with no
2647 sources, even when this is not declared explicitly.
2648 (Check_If_Externally_Built): A virtual project extending an externally
2649 built project is also externally built.
2650 (Check_Library_Attributes): For a virtual project extending a library
2651 project, inherit the library directory.
2652 (Process_Project_Level_Array_Attributes): Process new attribute
2653 Inherit_Source_Path.
2654 For projects with specified qualifiers "standard", "library" or
2655 "abstract", check that the project conforms to the qualifier.
2656 (Process_Project_Level_Simple_Attributes): Process new attribute
2657 Archive_Builder_Append_Option.
2659 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
2660 (Normalize_Compiler_Switches): Only keep compiler switches that are
2661 passed to gnat1 by the gcc driver and that are stored in the ALI file
2663 Do not take into account switc -save-temps
2665 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
2666 gprmake is called with -eL.
2667 (Scan_Arg): Recognize switch -eL
2668 (Usage): Add line for switch -eL
2670 * prj.adb (Initialize): Initialize Empty_File_Name
2671 (Project_Empty): New component Qualifier
2673 * prj-attr.ads, prj-attr.adb: New project level attribute
2674 Inherit_Source_Path.
2675 New project level attribute Archive_Builder_Append_Option
2677 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
2679 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
2680 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
2681 upward compatibility.
2683 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
2684 each Trying ..." on different lines.
2685 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
2686 is "configuration" when not in configuration. Fail when in configuration
2687 when a specified qualifier is other than "configuration".
2689 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
2690 full associative array together.
2691 (Recursive_Process): Put the project qualifier in the project data
2693 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
2694 (Set_Project_Qualifier_Of): New procedure
2696 2008-04-08 Robert Dewar <dewar@adacore.com>
2698 * errout.ads: Update comments for new handling of info: messages
2700 * erroutc.adb (Matches): New procedure
2701 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
2702 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
2703 info messages as well as style messages.
2705 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
2707 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
2709 (Check_A_Call): Special "info: " warnings now have ? in the text
2710 (Elab_Warning): Use info message in static case
2712 2008-04-08 Ed Schonberg <schonberg@adacore.com>
2714 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
2715 whether an array aggregate with static bounds and scalar components
2716 should be expanded into a static constant.
2718 2008-04-08 Gary Dismukes <dismukes@adacore.com>
2719 Ed Schonberg <schonberg@adacore.com>
2720 Robert Dewar <dewar@adacore.com>
2722 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
2723 Has_Stream_Attribute_ Definition when checking for available stream
2724 attributes on parameters of a limited type in Ada 2005. Necessary for
2725 proper recognition of visible stream attribute clauses.
2726 (Has_Stream_Attribute_Definition): If the type is derived from a
2727 private type, then use the derived type's underlying type for checking
2728 whether it has stream attributes.
2729 (Validate_Object_Declaration): The check for a user-defined Initialize
2730 procedure applies also to types with controlled components or a
2731 controlled ancestor.
2732 Reject an object declaration in a preelaborated unit if the type is a
2733 controlled type with an overriding Initialize procedure.
2734 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
2735 checking when the parent of a dereference is a selected component and
2736 the name has not been analyzed.
2738 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
2739 prefixes that are invalid explicit dereferences of remote
2740 access-to-class-wide values, first checking whether the selected
2741 component is a prefixed form of call to a tagged operation.
2742 (Analyze_Call): Remove code that issues an error for limited function
2743 calls in illegal contexts, as we now support all of the contexts that
2744 were forbidden here.
2745 Allow a function call that returns a task.and appears as the
2746 prefix of a selected component.
2747 (Analyze_Reference): Give error message if we try to make a 'Reference
2748 for an object that is atomic/aliased without its type having the
2749 corresponding attribute.
2750 (Analyze_Call): Remove condition checking for attributes to allow
2751 calls to functions with inherently limited results as prefixes of
2752 attributes. Remove related comment about Class attributes.
2753 (Analyze_Selected_Component): If the prefix is a remote type, check
2754 whether this is a prefixed call before reporting an error.
2755 (Complete_Object_Operation): If the controlling formal is an access to
2756 variable reject an actual that is a constant or an access to one.
2757 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
2758 primitive operations from base type.
2760 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
2762 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
2763 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
2764 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
2765 (Expand_N_Slice): Test for prefix that is a build-in-place function call
2766 and call Make_Build_In_Place_Call_In_Anonymous_Context.
2767 (Analyze_Call): Remove code that issues an error for limited function
2768 calls in illegal contexts, as we now support all of the contexts that
2769 were forbidden here.
2770 New calling sequence for Get_Simple_Init_Val
2771 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
2772 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
2774 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2775 Ed Schonberg <schonberg@adacore.com>
2776 Robert Dewar <dewar@adacore.com>
2778 * exp_ch2.adb: Minor reformatting.
2779 (Expand_Entry_Index_Parameter): Set the type of the identifier.
2780 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
2781 (Expand_Protected_Component): New routine.
2782 (Expand_Protected_Private): Removed.
2783 Add Sure parameter to Note_Possible_Modification calls
2785 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
2786 generated subprogram declaration must inherit the overriding indicator
2787 from the instantiation node.
2788 (Validate_Access_Type_Instance): If the designated type of the actual is
2789 a limited view, use the available view in all cases, not only if the
2790 type is an incomplete type.
2791 (Instantiate_Object): Actual is illegal if the formal is null-excluding
2792 and the actual subtype does not exclude null.
2793 (Process_Default): Handle properly abstract formal subprograms.
2794 (Check_Formal_Package_Instance): Handle properly defaulted formal
2795 subprograms in a partially parameterized formal package.
2796 Add Sure parameter to Note_Possible_Modification calls
2797 (Validate_Derived_Type_Instance): if the formal is non-limited, the
2798 actual cannot be limited.
2799 (Collect_Previous_Instances): Generate instance bodies for subprograms
2802 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
2804 Add Sure parameter to Note_Possible_Modification calls
2805 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
2806 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
2807 constant overlaid by variable and issue warning.
2808 Use new Is_Standard_Character_Type predicate
2809 (Analyze_Record_Representation_Clause): Check that the specified
2810 Last_Bit is not less than First_Bit - 1.
2811 (Analyze_Attribute_Definition_Clause, case Address): Check for
2812 self-referential address clause
2814 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
2815 detection mechanism when the lhs is a prival.
2816 (Analyze_Assignment): Call Check_Unprotected_Access to detect
2817 assignment of a pointer to protected data, to an object declared
2818 outside of the protected object.
2819 (Analyze_Loop_Statement): Check for unreachable code after loop
2820 Add Sure parameter to Note_Possible_Modication calls
2821 Protect analysis from previous syntax error such as a scope mismatch
2823 (Analyze_Assignment_Statement): The assignment is illegal if the
2824 left-hand is an interface.
2826 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
2827 violation of restriction No_Implicit_Conditionals
2828 Add Sure parameter to Note_Possible_Modication calls
2829 Use new Is_Standard_Character_Type predicate
2830 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
2831 call as operator. Fixes problems (e.g. validity checking) which
2832 come from the result looking as though it does not come from source).
2833 (Resolve_Call): Check case of name in named parameter if style checks
2835 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
2836 from the checking that such calls should not occur from an entry body.
2837 (Resolve_Call): If the return type of an Inline_Always function
2838 requires the secondary stack, create a transient scope for the call
2839 if the body of the function is not available for inlining.
2840 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
2841 that are actuals for in-out formals.
2842 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
2843 primitive operations from base type.
2844 (Analyze_Selected_Component): If the context is a call to a protected
2845 operation the parent may be an indexed component prior to expansion.
2846 (Resolve_Actuals): If an actual is of a protected subtype, use its
2847 base type to determine whether a conversion to the corresponding record
2849 (Resolve_Short_Circuit): Handle pragma Check
2851 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
2852 Use new Is_Standard_Character_Type predicate
2853 (Eval_Relational_Op): Catch more cases of string comparison
2855 2008-04-08 Robert Dewar <dewar@adacore.com>
2856 Gary Dismukes <dismukes@adacore.com>
2858 * s-rident.ads: Add No_Default_Initialization restriction
2861 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
2862 (Set_TSS): Handle No_Default_Initialization case
2864 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
2865 No_Default_Initialization
2866 (Expand_N_Subprogram_Body): Remove redundant initialization of out
2867 parameters when Normalize_Scalars is active.
2868 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
2869 Fix casing error in formal parameter name in call
2870 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
2871 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
2872 dispatching call on VM targets.
2874 2008-04-08 Gary Dismukes <dismukes@adacore.com>
2875 Thomas Quinot <quinot@adacore.com>
2877 * exp_ch7.adb (Find_Final_List): Change the test for generating a
2878 selected component from an access type's Associated_Final_Chain to
2879 check for the presence of that field, rather than assuming it exists
2880 for all named access types.
2881 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
2882 procedure to call at the end of the generated cleanup procedure.
2883 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
2884 and an At_End_Proc already exists in the handled sequence of statements
2885 for which cleanup actions are being expanded, the original cleanup
2886 action must be preserved.
2888 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2889 Ed Schonberg <schonberg@adacore.com>
2890 Robert Dewar <dewar@adacore.com>
2891 Gary Dismukes <dismukes@adacore.com>
2893 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
2894 Build_Unprotected_Subprogram_Body): Generate debug info for
2895 declarations related to the handling of private data in task and
2897 (Debug_Private_Data_Declarations): New subprogram.
2898 (Install_Private_Data_Declarations): Remove all debug info flagging.
2899 This is now done by Debug_Private_Data_Declarations at the correct
2901 (Build_Simple_Entry_Call): If the task name is a function call, expand
2902 the prefix into an object declaration, and make the surrounding block a
2904 (Build_Master_Entity): An internal block is a master if it wraps a call.
2905 Code reformatting, update comments. Code clean up.
2906 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
2907 (Replicate_Entry_Formals): If the formal is an access parameter or
2908 anonymous access to subprogram, copy the original tree to create new
2909 entities for the formals of the subprogram.
2910 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
2911 for tasks to store the value passed using pragma Relative_Deadline.
2912 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
2913 run-time call to create a task.
2914 (Build_Wrapper_Spec): If the controlling argument of the interface
2915 operation is an access parameter with a non-null indicator, use the
2916 non-null indicator on the wrapper.
2918 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
2919 present, which it may not be in the case where the type entity is an
2920 incomplete view brought in by a limited with.
2921 (Analyze_Task_Type): Only retrieve the full view when present, which it
2922 may not be in the case where the type entity is an incomplete view brought
2923 in by a limited with.
2924 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
2925 private components of a protected type, to prevent the generation of freeze
2926 nodes for which there is no proper scope of elaboration.
2928 * exp_util.ads, exp_util.adb
2929 (Remove_Side_Effects): If the expression is a function call that returns a
2930 task, expand into a declaration to invoke the build_in_place machinery.
2931 (Find_Protection_Object): New routine.
2932 (Remove_Side_Effects): Also make a copy of the value
2933 for attributes whose result is of an elementary type.
2934 (Silly_Boolean_Array_Not_Test): New procedure
2935 (Silly_Boolean_Array_Xor_Test): New procedure
2936 (Is_Volatile_Reference): New function
2937 (Remove_Side_Effects): Use Is_Volatile_Reference
2938 (Possible_Bit_Aligned_Component): Handle slice case properly
2940 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
2941 case test to Exp_Util
2942 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
2944 2008-04-08 Thomas Quinot <quinot@adacore.com>
2946 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
2948 (Add_RACW_Features): When processing an RACW in another unit than the
2949 main unit, set Body_Decls to No_List to indicate that the bodies of
2950 the type's TSS must not be generated.
2951 (GARLIC_Support.Add_RACW_Read_Attribute,
2952 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
2953 Body_Decls is No_List.
2954 (PolyORB_Support.Add_RACW_Read_Attribute,
2955 PolyORB_Support.Add_RACW_Write_Attribute,
2956 PolyORB_Support.Add_RACW_From_Any,
2957 PolyORB_Support.Add_RACW_To_Any,
2958 PolyORB_Support.Add_RACW_TypeCode): Same.
2959 (Transmit_As_Unconstrained): New function.
2960 (Build_Ordered_Parameters_List): Use the above to order parameters.
2961 (GARLIC_Support.Build_General_Calling_Stubs):
2962 Use the above to determine which parameters to unmarshall using 'Input
2963 at the point where their temporary is declared (as opposed to later on
2965 (PolyORB_Support.Build_General_Calling_Stubs):
2966 Use the above to determine which parameters to unmarshall using From_Any
2967 at the point where their temporary is declared (as opposed to later on
2968 with an assignment).
2970 2008-04-08 Ed Schonberg <schonberg@adacore.com>
2972 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
2973 an Input function for an access type, do not perform default
2974 initialization on the local variable that receives the value, to
2975 prevent spurious warnings when the type is null-excluding.
2977 2008-04-08 Robert Dewar <dewar@adacore.com>
2978 Ed Schonberg <schonberg@adacore.com>
2980 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
2982 (Size_Known): Generic formal scalar types have known at compile
2983 time size, so remove check.
2984 Fix casing error in formal parameter name in call
2985 (Freeze_Subprogram): If the subprogram is a user-defined operator,
2986 recheck its overriding indication.
2988 2008-04-08 Vincent Celier <celier@adacore.com>
2990 * gnat1drv.adb: Send all messages indicating an error to standard error
2992 2008-04-08 Robert Dewar <dewar@adacore.com>
2994 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
2995 (List_Applicable_Restrictions): Do not list existing restrictions
2997 2008-04-08 Thomas Quinot <quinot@adacore.com>
2999 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
3000 add a pointer to generic sockets literature
3001 do not mention that the given example is "typical" usage.
3002 Remove obsolete comment about multicast not being supported on Windows.
3003 (Connect_Socket): Make Server mode IN rather than IN OUT
3004 since this formal is never modified.
3006 2008-04-08 Robert Dewar <dewar@adacore.com>
3008 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
3009 the declaration for some different entity.
3010 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
3011 list is precent (following the parent subtype indication), display
3012 appropriate "and" keyword.
3014 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
3015 Remove unnecessary calls to Init_Size_Align and Init_Esize.
3016 Add notes on use of Parent field of an Itype
3018 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3019 Robert Dewar <dewar@adacore.com>
3020 Gary Dismukes <dismukes@adacore.com>
3022 * lib-xref.adb (Is_On_LHS): Remove dead code
3023 (Output_Overriden_Op): If the overridden operation is itself inherited,
3024 list the ancestor operation, which is the one whose body or absstract
3025 specification is actually being overridden. For source navigation
3028 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
3029 operation is primitive for the type.
3030 (Declare_Inherited_Private_Subprograms): If the new operation overrides
3031 an inherited private subprogram, set properly the Overridden_Operation
3032 attribute, for better cross-reference information.
3033 (Analyze_Package_Specification): Do late analysis of spec PPCs
3034 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
3035 properly the full view and underlying full views of a private type in a
3036 child unit, whose full view is derived from a private type in a parent
3037 unit, and whose own full view becomes visible in the child body.
3039 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
3040 primitive operation after the type has been frozen, add an explicit
3041 reference to the type and the operation, because other primitive
3042 references have been emitted already.
3043 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3044 dispatching call on VM targets.
3046 2008-04-08 Vincent Celier <celier@adacore.com>
3047 Thomas Quinot <quinot@adacore.com>
3049 * make.adb: (Gnatmake_Called): Remove, no longer necessary
3050 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
3051 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
3052 (Insert_Project_Sources): Take into account index in multi-unit source
3054 After building a library project, delete all temporary files.
3055 (Initialize): Reset current output after parsing project file.
3056 (Collect_Arguments_And_Compile): Never insert in the queue the sources
3057 of library projects that are externally built.
3058 Put file name in error and inform messages if -df is used
3059 (Display): If invoked with -d7, do not display path names, but only
3062 * makeutl.ads (Path_Or_File_Name): New function
3063 (Path_Or_File_Name): New function
3065 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3067 * Make-lang.in: Disable warnings during first stage of bootstrap
3069 Update dependencies.
3071 2008-04-08 Vincent Celier <celier@adacore.com>
3073 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
3074 case to decide if ALI object file is included in library.
3075 (Build_Library): Never attempt to build a library if the project is
3078 2008-04-08 Thomas Quinot <quinot@adacore.com>
3080 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
3081 (No_List) is defined to return Empty.
3083 2008-04-08 Jose Ruiz <ruiz@adacore.com>
3085 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
3088 (Read_Default_Search_Dirs): Do not consider spaces as path separators
3089 because spaces may be part of legal paths.
3091 2008-04-08 Robert Dewar <dewar@adacore.com>
3093 * par-ch11.adb (P_Exception_Handler): Check indentation level for
3096 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3098 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
3099 in a type declaration, if this is not an interface declaration or
3100 private type extension.
3102 2008-04-08 Vincent Celier <celier@adacore.com>
3104 * prj-util.adb (Executable_Of): New String parameter Language. When
3105 Ada_Main is False and Language is not empty, attempt to remove the body
3106 suffix or the spec suffix of the language to get the base of the
3107 executable file name.
3108 (Put): New Boolean parameter Lower_Case, defauilted to False. When
3109 Lower_Case is True, put the value in lower case in the name list.
3110 (Executable_Of): If there is no executable suffix in the configuration,
3111 then do not modify Executable_Extension_On_Target.
3113 * prj-util.ads (Executable_Of): New String parameter Language,
3114 defaulted to the empty string.
3115 (Put): New Boolean parameter Lower_Case, defauilted to False
3117 2008-04-08 Robert Dewar <dewar@adacore.com>
3119 * scng.adb (Scan_Identifier): Handle case of identifier starting with
3120 wide character using UTF-8 encoding.
3122 2008-04-08 Javier Miranda <miranda@adacore.com>
3124 * sem.adb (Analyze): Consider case in which we analyze an empty node
3125 that was generated by a call to a runtime function that is not
3126 available under the configurable runtime.
3128 * sem.ads (Inside_Freezing_Actions): New flag.
3129 (Save_Check_Policy_List): New field in scope stack entry
3131 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3132 Robert Dewar <dewar@adacore.com>
3134 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
3135 the ancestor part of an extension aggregate for a limited type.
3136 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
3137 enumeration index bounds.
3138 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
3139 when array is too short.
3140 (Check_Expr_OK_In_Limited_Aggregate): Move function
3141 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
3143 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
3144 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
3145 component associations.
3146 (Check_Non_Limited_Type): Moved to outer level and renamed.
3147 (Resolve_Record_Aggregate): In an extension aggregate, an association
3148 with a box initialization can only designate a component of the
3149 extension, not a component inherited from the given ancestor
3151 * sem_case.adb: Use new Is_Standard_Character_Type predicate
3153 2008-04-08 Robert Dewar <dewar@adacore.com>
3155 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
3157 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
3158 Properly handle case where Aft > Scale and input number is less than
3161 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3163 * s-stoele.ads, s-soflin.ads: Move the location of
3164 Dummy_Communication_Block from System.Storage_Elements to
3167 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
3168 emulate Communication_Block in certain scenarios.
3170 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3172 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
3174 Add new subtype S_WWC, unchecked conversion routines From_WWC and
3176 (I_WWC, O_WWC): New routines for input and output of
3177 Wide_Wide_Character.
3179 2008-04-08 Robert Dewar <dewar@adacore.com>
3181 * stringt.adb (Write_String_Table_Entry): Handle wide characters
3184 2008-04-08 Robert Dewar <dewar@adacore.com>
3186 * styleg.adb (Check_Comment): Allow special char after -- in
3187 non-end-of-line case
3189 2008-04-08 Robert Dewar <dewar@adacore.com>
3191 * stylesw.adb: Implement -gnaty + - y options
3192 (Set_GNAT_Style_Check_Options): Includ I in style check string
3194 * stylesw.ads: Add comments for new style switch options
3196 2008-04-08 Sergey Rybin <rybin@adacore.com>
3198 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
3199 to the set of the GNAT components needed by ASIS.
3201 2008-04-08 Bob Duff <duff@adacore.com>
3203 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
3205 2008-04-08 Tristan Gingold <gingold@adacore.com>
3207 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
3208 Improve error message generation.
3210 2008-04-08 Vincent Celier <celier@adacore.com>
3212 * a-direct.adb (Start_Search): Check for Name_Error before checking for
3213 Use_Error, as specified in the RM. Check if directory is open and raise
3214 Use_Error if it is not.
3216 2008-04-08 Vincent Celier <celier@adacore.com>
3217 Robert Dewar <dewar@adacore.com>
3219 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
3220 AAMP_On_Target is set.
3222 * vms_data.ads: Add NOxxx to style check switch list
3223 Add entry COMPONENTS for -gnatVe
3224 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
3226 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
3227 Add qualifiers for gnatmetric coupling options
3228 Add note that -gnata enables all checks
3229 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
3230 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
3231 New warning flag -gnatw.e
3233 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
3234 Add entry for -gnatyN (forgotten before)
3235 Line for new warning switch -gnatw.p
3236 New warning flag -gnatw.e
3238 * gnat_ugn.texi: Add documentation fpr project file switch -aP
3239 Document -gnaty - + y
3240 Replace occurences of "package specification" with "package spec"
3241 Define preprocessing symbols in documentation of gnatprep
3242 Clarify reason for distinguishing overflow checking
3243 Add documentation for project-aware tool switches -eL and --subdirs=
3244 Complete list of configuration pragmas
3245 Specify that, even when gnatmake switch -x is used, mains on the command
3246 line need to be sources of project files.
3247 Editing of gnatcheck/gnatmetric doc.
3248 Add documentation for -gnatw.p/-gnatw.P
3249 Add missing documentation for -fno-inline-functions.
3250 Add documentation for -gnatw.e
3252 * gnat_rm.texi: Add documentation for No_Default_Initialization
3253 Replace occurences of "package specification" with "package spec"
3254 Document use of * in Warnings Off string
3255 Update documentation of alignment/component clauses.
3256 Add documentation for Invalid_Value
3257 Document new consistency rule for Optimize_Alignment
3258 Add documentation for Precondition and Postcondition pragmas
3259 Add documentation for Check and Check_Policy pragmas
3260 Document new Enum_Val attribute
3261 Remove requirement for static string in pragma Assert
3262 Add documentation on GNAT.Time_Stamp
3264 * ug_words: add entry for -gnatVe
3265 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
3266 Add entry for -gnatw.e
3268 * debug.adb: Add missing documentation for d.a flag
3269 Document new -gnatd.a switch.
3270 Add documentation for new gnatmake debug switch -df
3272 2008-04-08 Thomas Quinot <quinot@adacore.com>
3274 * gen-soccon.c: Bump year in copyright notices.
3276 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
3278 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3280 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
3283 2008-04-08 Robert Dewar <dewar@adacore.com>
3284 Bob Duff <duff@adacore.com>
3286 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
3287 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
3289 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
3291 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
3293 * g-trasym.ads: Minor comment improvements
3295 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
3297 * a-sequio.ads, a-direio.ads: improve message for tagged type
3299 * a-strunb.ads: Minor reformatting
3301 * a-tifiio.adb: Minor reformatting
3303 * atree.adb (Fix_Parents): Use clearer names for formals
3304 Cleanup and simplify code
3305 Use named notation in calls
3307 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
3310 * uintp.adb: Used named notation for some confusing calls
3312 * bindusg.adb: Minor change in one line of output
3314 * cstand.adb: Minor reformatting of src representation of Standard
3316 * a-assert.ads: Add comment.
3318 * g-decstr.adb: Fix bad indentation
3320 * expander.ads, expander.adb: Code clean up.
3322 * sem_dist.ads: Minor comment improvement
3324 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
3325 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
3327 * i-cstrin.adb: Fix casing error in formal parameter name in call
3329 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3331 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
3332 mentioned in limited_with_clauses to do create semantic dependencies
3333 even though they appear in the ali file.
3335 2008-04-08 Emmanuel Briot <briot@adacore.com>
3337 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
3339 (Get_Configuration): New subprogram.
3341 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
3342 These optional parameters help preserve the casing of the project's name
3343 when pretty-printing.
3345 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
3346 Arnaud Charlet <charlet@adacore.com>
3348 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
3349 then use __gnat_set_exit_status to report the returned status code.
3351 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
3352 messages on .NET, since some constructs of the language are not
3355 * gnatlink.adb (Gnatlink): In case the command line is too long for the
3356 .NET linker, gnatlink now concatenate all .il files and pass this to
3359 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3360 Xavier Grave <grave@ipno.in2p3.fr>
3362 * Makefile.in: Add make ifeq define for mips/mipsel support.
3363 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
3364 system-linux-mips.ads: New files.
3366 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3368 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
3369 detect systems using GNU libc.
3375 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3377 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
3378 constant constant for sysconf call.
3379 (bit_field): New packed boolean type used by cpu_set_t.
3380 (cpu_set_t): New type corresponding to the C type with
3381 the same name. Note that on the Ada side we use a bit
3382 field array for the affinity mask. There is not need
3383 for the C macro for setting individual bit.
3384 (pthread_setaffinity_np): New imported routine.
3385 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
3388 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3390 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
3392 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3394 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
3395 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
3396 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
3397 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
3398 Return by Depressed Stack Pointer.
3400 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
3402 * decl.c (is_variable_size): Do not unconditionally return false
3403 on non-strict alignment platforms.
3405 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
3407 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
3408 used to process all the variants of the specified type.
3409 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
3410 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
3411 (rest_of_type_decl_compilation): Likewise.
3412 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
3414 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
3416 * gigi.h (insert_block): Kill.
3417 * utils.c (insert_block): Kill.
3419 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
3421 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
3422 type has self-referential size, get the size from the initializing
3423 expression directly if it is also a constant whose nominal type
3424 has self-referential size.
3426 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3429 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
3432 * env.c: Always include crt_externs.h if __APPLE__ is defined.
3433 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
3435 2008-04-01 Andreas Jaeger <aj@suse.de>
3437 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
3440 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3442 * g-table.adb, g-tasloc.adb, g-traceb.ads,
3443 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
3444 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
3445 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
3446 gnatlink.adb, gnatmem.adb, gprep.adb,
3447 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
3448 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
3449 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
3450 lib-xref.ads, lib.adb, link.c, live.ads,
3451 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
3452 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
3453 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
3454 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
3455 namet.adb, namet.h, nlists.adb, nlists.ads,
3456 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
3457 osint-c.ads, osint.adb, osint.ads, output.ads,
3458 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
3459 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
3460 par-endh.adb, par-labl.adb, par-prag.adb,
3461 par-sync.adb, par-tchk.adb, par-util.adb,
3462 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
3463 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3464 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
3465 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
3467 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
3469 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
3470 size if it has overflowed.
3472 2008-03-31 Olivier Hainque <hainque@adacore.com>
3473 Eric Botcazou <ebotcazou@adacore.com>
3475 * utils2.c (find_common_type): Document assumption on t1/t2 vs
3476 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
3478 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3480 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
3481 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
3482 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
3483 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
3484 exp_tss.ads, exp_util.adb, exp_util.ads,
3485 exp_vfpt.adb, freeze.adb, freeze.ads,
3486 frontend.adb, g-alleve.adb, g-altcon.adb,
3487 g-altive.ads, g-alveop.ads, g-alvevi.ads,
3488 g-arrspl.adb, g-busorg.ads, g-calend.adb,
3489 g-calend.ads, g-casuti.ads, g-cgideb.adb,
3490 g-comlin.adb, g-comlin.ads, g-curexc.ads,
3491 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
3492 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
3493 g-dyntab.adb, g-encstr.ads, g-excact.ads,
3494 g-except.ads, g-expect.ads, g-heasor.adb,
3495 g-hesora.adb, g-hesorg.adb, g-htable.ads,
3496 g-locfil.ads, g-md5.adb, g-md5.ads,
3497 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
3498 g-pehage.adb, g-pehage.ads, g-regexp.adb,
3499 g-regexp.ads, g-regpat.adb, g-regpat.ads,
3500 g-soccon-aix.ads, g-soccon-darwin.ads,
3501 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
3502 g-soccon-hpux.ads, g-soccon-irix.ads,
3503 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
3504 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
3505 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
3506 g-soccon-solaris.ads, g-soccon-tru64.ads,
3507 g-soccon-vms.ads, g-soccon-vxworks.ads,
3508 g-soccon.ads, g-socket.adb, g-socket.ads,
3509 g-socthi-mingw.adb, g-socthi-vms.adb,
3510 g-socthi-vxworks.adb, g-soliop-mingw.ads,
3511 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
3512 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
3515 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
3517 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
3518 if the procedure is imported.
3520 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3522 * adaint.c: Fix warnings.
3524 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3526 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
3528 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3530 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
3531 Fix problem of status check for null file
3533 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3535 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
3536 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
3537 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
3538 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
3539 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
3542 2008-03-26 Thomas Quinot <quinot@adacore.com>
3545 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
3546 Get_Socket_Option): Add support for Receive_Packet_Info.
3548 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3549 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3550 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
3551 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
3552 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
3553 new constants SO_REUSEPORT and IP_PKTINFO
3555 2008-03-26 Robert Dewar <dewar@adacore.com>
3557 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
3558 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3559 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
3560 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
3561 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
3562 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
3563 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
3564 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3565 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
3566 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
3567 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3568 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
3569 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
3570 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
3571 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
3572 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
3573 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
3574 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
3575 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3576 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
3577 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
3578 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
3579 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
3580 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
3581 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
3582 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
3583 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
3584 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
3585 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
3586 s-tasloc.adb: Minor reformatting.
3588 Remove "used for" sections from comments.
3590 2008-03-26 Robert Dewar <dewar@adacore.com>
3592 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
3593 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
3594 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
3595 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
3596 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
3597 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
3598 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
3599 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
3600 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
3601 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
3602 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
3603 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
3604 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
3605 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
3606 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
3607 double spaced if it fits on one line and otherwise single spaced.
3609 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3611 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
3612 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3613 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
3614 or task info if the thread could not be created.
3616 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3618 * gnatvsn.ads (Library_Version): Bump to 4.4.
3619 (Current_Year): Bump to 2008.
3621 2008-03-26 Robert Dewar <dewar@adacore.com>
3623 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
3625 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
3627 * debug.adb: Add debug flags d.r and d.v
3628 Add debug flag .T (Optimize_Alignment (Time))
3629 Add debug flag .S (Optimize_Alignment (Space))
3631 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
3632 depending on setting of relevant debug flags.
3633 Replace use of Warnings_Off by Has_Warnings_Off
3634 (Freeze_Entity): In circuit for warning on suspicious convention
3635 actuals, do not give warning if subprogram has same entity as formal
3636 type, or if subprogram does not come from source.
3637 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
3638 if Optimize_Alignment set to Space.
3640 * frontend.adb: Add call to Sem_Warn.Initialize
3641 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
3642 Reset Optimize_Alignment mode from debug switches .S and .T
3644 * layout.adb (Layout_Composite_Object): Rewritten for
3645 Optimize_Aligment pragma.
3647 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
3650 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
3652 * par-prag.adb (N_Pragma): Chars field removed, use Chars
3653 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
3654 this change. Add entry for pragma Optimize_Alignment
3656 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
3657 (Pragma_Identifier (..
3658 instead, adjustments throughout to accomodate this change.
3659 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
3660 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
3661 Add implementation of pragma Optimize_Alignment
3663 2008-03-26 Vincent Celier <celier@adacore.com>
3665 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
3666 Improve memory usage to avoid use of stack.
3668 2008-03-26 Robert Dewar <dewar@adacore.com>
3670 * a-teioed.ads: Correct value of Default_Fill
3672 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
3674 2008-03-26 Robert Dewar <dewar@adacore.com>
3676 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
3677 with Current_Output (introduce Self).
3679 2008-03-26 Robert Dewar <dewar@adacore.com>
3681 * checks.adb (Ensure_Valid): Capture valid status if possible
3684 2008-03-26 Robert Dewar <dewar@adacore.com>
3686 * stand.ads: Deal with reordering of package standard declarations
3688 * cstand.adb: Put package Standard declarations in proper order
3690 2008-03-26 Robert Dewar <dewar@adacore.com>
3692 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
3693 (Pragma_Identifier (.. instead.
3694 (OK_To_Reorder_Components): New flag
3695 (Has_Entries): Code cleanup.
3696 (Warnings_Off_Used): New flag
3697 (Warnings_Off_Used_Unmodified): New flag
3698 (Warnings_Off_Used_Unreferenced): New flag
3699 (Has_Warnings_Off): New function
3700 (Has_Unmodified): New function
3701 (Has_Unreferenced): New function
3702 (Is_Trivial_Subprogram): New flag
3703 (Is_Static_Dispatch_Table_Entity): New attribute.
3704 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
3705 (more consistent with other similar names)
3706 (Access_Subprogram_Type): New classification function
3708 2008-03-26 Robert Dewar <dewar@adacore.com>
3710 * errout.ads: Document new !! insertion sequence
3712 * errout.adb (N_Pragma): Chars field removed, use Chars
3713 (Pragma_Identifier (.. instead.
3714 Replace use of Warnings_Off by Has_Warnings_Off
3715 (Error_Msg_Internal): Don't delete warning ending in !!
3717 2008-03-26 Robert Dewar <dewar@adacore.com>
3719 * par.adb (Check_No_Right_Paren): Removed no longer used
3721 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
3722 (Pragma_Identifier (.. instead.
3724 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
3726 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
3727 par-ch4.adb: Minor improvements in error recovery and messages.
3729 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
3732 * par-ch9.adb: Minor improvements in error recovery and messages
3733 (P_Protected): Better error recovery for "protected type x;"
3735 * par-util.adb: Minor improvements in error recovery and messages
3736 (Check_No_Right_Paren): Removed no longer used
3738 2008-03-26 Ed Schonberg <schonberg@adacore.com>
3740 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
3741 that the prefix of an attribute is the type of the aggregate being
3744 2008-03-26 Javier Miranda <miranda@adacore.com>
3745 Robert Dewar <dewar@adacore.com>
3747 * exp_attr.adb (N_Pragma): Chars field removed.
3748 (Expand_N_Attribute_Reference): If the designated type associated with
3749 attribute 'Unrestricted_Access is a subprogram entity then replace it
3750 by an E_Subprogram_Type itype.
3751 Implement attribute Old
3753 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
3755 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
3757 New_Internal_Entity by call to Create_Itype to centralize calls
3758 building itypes, ad propagate the convention of the designated
3759 subprogram. In addition, disable the machinery cleaning constant
3760 indications from all entities in current scope when 'Unrestricted_Access
3761 corresponds with a node initializing a dispatch table slot.
3762 (Analyze_Attribute): Parameterless attributes returning a string or a
3763 type will not be called with improper arguments, so we can remove junk
3764 code that was dealing with this case.
3765 Implement attribute Old
3767 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
3768 Add entry for pragma Optimize_Alignment
3769 New standard names Sync and Synchronize
3771 2008-03-26 Robert Dewar <dewar@adacore.com>
3772 Arnaud Charlet <charlet@adacore.com>
3774 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
3776 (No_Exception_Propagation_Active): New function.
3777 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
3778 Update comments, and review all uses of No_Exception_Propagation, which
3779 are now correct and in sync with what gigi expects.
3781 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
3783 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
3784 Update comments, and review all uses of No_Exception_Propagation, which
3785 are now correct and in sync with what gigi expects.
3787 2008-03-26 Ed Schonberg <schonberg@adacore.com>
3789 * sem_ch3.adb (Access_Definition): If the access type is the return
3790 result of a protected function, create an itype reference for it
3791 because usage will be in an inner scope from the point of declaration.
3792 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
3793 OK_To_Reorder_Components.
3794 (Make_Index): If an overloaded range includes a universal integer
3795 interpretation, resolve to Standard.Integer.
3796 (Analyze_Subtype_Indication): Copy Convention to subtype
3797 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
3798 limited an synchronized progenitors in type declaration and private
3799 extension declarations.
3801 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
3802 protected subprogram body, determine proper scope from subprogram
3805 2008-03-26 Robert Dewar <dewar@adacore.com>
3807 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
3810 2008-03-26 Gary Dismukes <dismukes@adacore.com>
3812 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
3813 of a heap allocator for a limited unconstrained function return when
3814 resstriction No_Allocators is active.
3815 (Analyze_Allocator): The restriction No_Allocators is now only checked
3816 on allocators that have Comes_From_Source set, as per RM-H.4(7).
3818 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
3819 of a heap allocator for a limited unconstrained function return when
3820 resstriction No_Allocators is active.
3821 (Analyze_Allocator): The restriction No_Allocators is now only checked
3822 on allocators that have Comes_From_Source set, as per RM-H.4(7).
3823 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
3824 operands are fixed-point types, the universal_fixed predefined operation
3825 is used, regardless of whether the operand type (s) have a primitive
3826 operation of the same name.
3828 2008-03-26 Javier Miranda <miranda@adacore.com>
3830 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
3831 Is_Static_Dispatch_Table
3832 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
3833 to Exchange_Declarations to exchange the private and full-view. Bug
3834 found working in this issue.
3835 (Expand_Dispatching_Call): Propagate the convention of the subprogram
3836 to the subprogram pointer type.
3837 (Make_Secondary_DT): Replace generation of Prim'Address by
3838 Address (Prim'Unrestricted_Access)
3839 (Make_DT): Replace generation of Prim'Address by
3840 Address (Prim'Unrestricted_Access)
3841 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
3842 simple call form for single entry.
3843 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
3844 tables of predefined primitives).
3845 (Make_Secondary_DT): Add support to handle access to dispatch tables of
3846 predefined primitives.
3847 (Make_Tags): Add entities to Access_Dispatch_Table associated with
3848 access to dispatch tables containing predefined primitives.
3850 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
3851 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
3853 (Register_Predefined_DT_Entry): Updated to handle the new contents
3854 of attribute Access_Disp_Table (pointers to dispatch tables containing
3855 predefined primitives).
3857 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
3859 (Find_Interface_ADT): Updated to skip the new contents of attribute
3860 Access_Dispatch_Table (pointers to dispatch tables containing predefined
3863 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
3865 (Set_Convention): Use new function Is_Access_Subprogram_Type
3866 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
3867 Access_Dispatch_Table (pointers to dispatch tables containing predefined
3870 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
3871 expanded code avoiding calls to Build_Predef_Prims.
3872 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
3873 call to Build_Get_Predefined_Prim_Op_Address.
3875 2008-03-26 Javier Miranda <miranda@adacore.com>
3877 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
3878 subprogram Corresponding_Runtime_Package to know the runtime package
3879 that will provide support to a given protected type.
3881 * exp_ch9.adb (Add_Private_Declarations,
3882 Build_Protected_Subprogram_Call,
3883 Build_Protected_Entry, Build_Simple_Entry_Call,
3884 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
3885 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
3886 cleanup using the new centralized subprogram Corresponding_Runtime
3887 Package to know the runtime package that provides support to
3888 a given protected type.
3890 2008-03-26 Ed Schonberg <schonberg@adacore.com>
3892 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
3893 assignment is within the initialization procedure for a packed array,
3894 and Initialize_Scalars is enabled, compile right-hand side with checks
3895 off, because the value is purposely out of range.
3897 2008-03-26 Vincent Celier <celier@adacore.com>
3899 * gnatcmd.adb: Add processing for GNAT SYNC
3901 * vms_conv.ads: (Command_Type): Add command Sync
3903 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
3905 * vms_data.ads: Add entries for -gnatw.w
3906 Add qualifier for gnatstub --header-file option
3907 Add switches for GNAT SYNC
3909 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
3910 (Add_Package_Name): New procedure
3911 (Package_Name_List): New function
3912 (Initialize): Add known package names to the list
3913 (Register_New_Package): Add the new package name to the list
3915 2008-03-26 Robert Dewar <dewar@adacore.com>
3917 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
3918 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
3919 Raise_Exception by "raise with" construct.
3921 2008-03-26 Pascal Obry <obry@adacore.com>
3923 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
3924 supported platforms.
3926 * Makefile.rtl: Add g-sercom.o.
3928 * impunit.adb: Add g-sercom.adb.
3930 * s-crtl.ads (open): New routine.
3934 * s-osinte-mingw.ads (BYTE): New type.
3936 (OVERLAPPED): Likewise.
3937 (GENERIC_READ): New constant.
3938 (GENERIC_WRITE): Likewise.
3939 (OPEN_EXISTING): Likewise.
3940 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
3942 (CreateFile): New routine.
3943 (WriteFile): Likewise.
3944 (ReadFile): Likewise.
3945 (CloseHandle): Move next to the other file oriented routines.
3947 * g-sercom.ads: New unit.
3949 * g-sercom.adb: Default implementation, calls to this unit will raise
3950 a program error exception.
3952 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
3953 GNU/Linux implementations.
3955 2008-03-26 Robert Dewar <dewar@adacore.com>
3957 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
3959 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
3960 unchecked conversion for different conventions only for subprogram
3963 2008-03-26 Vincent Celier <celier@adacore.com>
3965 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
3966 to check if the specified object file is correct.
3968 2008-03-26 Thomas Quinot <quinot@adacore.com>
3970 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
3971 Comes_From_Source to exclude primitives from being checked. We want to
3972 exclude predefined primitives only, so use the appropriate specific
3973 predicate. Also, flag a formal parameter of an anonymous
3974 access-to-subprogram type as illegal for a primitive operation of a
3975 remote access to class-wide type.
3977 2008-03-26 Vincent Celier <celier@adacore.com>
3979 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
3980 known, check if it may be a missspelling of a known package name. In
3981 not verbose, not mode, issue warnings only if the package name is a
3982 possible misspelling.
3983 In verbose mode, always issue a warning for a not known package name,
3984 plus a warning if the name is a misspelling of a known package name.
3986 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
3987 limited withs or limited withs are parse during one call.
3988 (Parse_Single_Project): Post parse context clause in two passes: non
3989 limited withs before current project and limited withs after current
3992 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
3993 project with the name With_Name, even if it is only extended indirectly.
3994 (Recursive_Process): Process projects in order: first single withs, then
3995 current project, then limited withs.
3997 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
3998 project with the name With_Name, even if it is only extended indirectly.
4000 2008-03-26 Robert Dewar <dewar@adacore.com>
4002 * scn.adb (Initialize_Scanner): Format messages belong on standard error
4004 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4006 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
4007 a generic subprogram that is imported, do not attempt to compile
4010 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
4011 imported, do not generate a raise_program_error for the non-existent
4013 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
4014 perform minimal name resolution on the generic to avoid spurious
4016 (Find_Actual_Type): the designated type of the actual in a child unit
4017 may be declared in a parent unit without being an actual.
4019 2008-03-26 Robert Dewar <dewar@adacore.com>
4021 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
4022 * sinfo.ads, sinfo.adb (From_At_End): New flag
4024 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4026 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
4027 operations that have an interface parameter.
4028 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
4029 Don't treat No_Return call as raise.
4031 * sem_disp.adb (Check_Dispatching_Operations): apply check for
4032 non-primitive interface primitives to access parameters, not to all
4033 parameters of an access type.
4035 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4037 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
4038 declarations of a parent unit are made visible when compiling a child
4039 instance, the parent is not a hidden open scope, even though it may
4040 contain other pending instance.
4042 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
4043 hidden open scope for some child instance, it does affect the
4044 visibility status of other stach entries.
4045 (Analyze_Object_Renaming): Check that a class-wide object cannot be
4046 renamed as an object of a specific type.
4048 2008-03-26 Robert Dewar <dewar@adacore.com>
4050 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
4051 recursion and raise SE directly.
4052 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
4053 set for formal type for IN mode parameter.
4055 2008-03-26 Robert Dewar <dewar@adacore.com>
4057 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
4058 (Initialize): New procedure
4059 (Output_Warnings_Off_Warnings): New procedure
4060 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
4061 (Output_Non_Modifed_In_Out_Warnings): Ditto
4062 (Warn_On_Unreferenced_Entity): Ditto
4064 2008-03-26 Vincent Celier <celier@adacore.com>
4066 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
4069 2008-03-26 Matthew Heaney <heaney@adacore.com>
4071 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
4072 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
4073 Marked with clauses as private, and controlled operations as overriding
4075 2008-03-26 Robert Dewar <dewar@adacore.com>
4077 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
4079 2008-03-26 Robert Dewar <dewar@adacore.com>
4081 * back_end.adb, back_end.ads: Minor reformatting
4083 * bindgen.adb: Minor clarification of comments
4085 * fname.ads: Minor comment fixes
4087 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
4088 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
4090 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
4091 xsnames.adb: Remove warnings off pragma no longer needed
4093 * a-catizo.ads, a-calari.ads, a-calfor.adb,
4094 a-calfor.ads: Fix header.
4096 2008-03-26 Tristan Gingold <gingold@adacore.com>
4098 * init.c: Do not adjust pc for HPARITH on alpha/vms.
4100 2008-03-26 Robert Dewar <dewar@adacore.com>
4102 * lib-xref.adb: (OK_To_Set_Reference): New function
4103 (Generate_Reference): Don't set referenced from occurrence in Warnings,
4104 Unmodified, or Unreferenced pragma
4106 2008-03-26 Robert Dewar <dewar@adacore.com>
4108 * alloc.ads: Add entries for Warnings_Off_Pragmas table
4110 2008-03-26 GNAT Script <nobody@adacore.com>
4112 * Make-lang.in: Makefile automatically updated
4114 2008-03-26 Robert Dewar <dewar@adacore.com>
4116 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
4117 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
4118 removed, use Chars (Pragma_Identifier (.. instead, adjustments
4119 throughout to accomodate this change.
4121 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
4123 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
4124 Einfo.Set_Needs_Debug_Info)
4126 2008-03-26 Robert Dewar <dewar@adacore.com>
4128 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
4129 Add description for the new gnatstub option '--header-file'
4130 clarification of -gnatwz/-gnatwZ
4131 Add a "Irix-Specific Considerations" section to document the need to
4132 set LD_LIBRARY_PATH when using the default shared runtime library.
4133 Added documentation for both gcov and gprof.
4135 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
4136 messages that are not suppressed when clients are compiled.
4137 Add documentation of s-pooglo s-pooloc
4138 Document the new GNAT.Serial_Communications API.
4139 Add documentation for 'Old attribute
4140 Add description of pragma Optimize_Alignment
4142 * ug_words: Add entries for -gnatw.w -gnatw.W
4144 * usage.adb: Add line for -gnatw.w (warn on warnings off)
4146 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
4149 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
4151 * decl.c (maybe_pad_type): Avoid padding an integral type when
4152 bumping its alignment is sufficient.
4154 2008-03-25 Arnaud Charlet <charlet@adacore.com>
4156 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
4157 Fix wrong formatting (lines too long)
4159 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4161 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
4162 a-calend-vms.adb, a-calend.adb, a-calend.ads,
4163 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
4164 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
4165 a-cohama.ads, a-comlin.ads, a-coorse.adb,
4166 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
4167 a-except-2005.ads, a-except.adb, a-except.ads,
4168 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
4169 a-exextr.adb, a-filico.ads, a-finali.ads,
4170 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
4171 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
4172 a-sequio.ads, a-strbou.ads, a-strfix.adb,
4173 checks.adb, exp_ch3.adb, exp_ch4.adb,
4174 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
4175 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
4176 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
4177 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
4178 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
4180 2008-03-24 Robert Dewar <dewar@adacore.com>
4182 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4183 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4184 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4185 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4186 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4187 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4188 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4189 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4190 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4191 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4192 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4193 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4194 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4195 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4196 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4197 double spaced if it fits on one line and otherwise single spaced.
4199 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4201 PR documentation/15479
4202 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
4203 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
4204 (doc/gnat_ugn.info): Renamed from ...
4205 (doc/gnat_ugn_unw.info): ... this.
4206 (doc/gnat_ugn.dvi): Renamed from ...
4207 (doc/gnat_ugn_unw.dvi): ... this.
4208 (doc/gnat_ugn.pdf): Renamed from ...
4209 (doc/gnat_ugn_unw.pdf): ... this.
4210 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
4212 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
4213 unconditionally to gnat_ugn.info. Fix cross references to the
4214 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
4215 and GNU make manuals to be proper texinfo links.
4216 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
4218 2008-03-21 Olivier Hainque <hainque@adacore.com>
4220 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
4221 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
4223 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
4225 * trans.c (addressable_p): Add notes on addressability issues.
4227 2008-03-21 Olivier Hainque <hainque@adacore.com>
4228 Ed Schonberg <schonberg@adacore.com>
4230 * trans.c (addressable_p): Accept COND_EXPR when both arms
4232 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
4233 (call_to_gnu): Do not use name reference in the error message
4234 for a misaligned by_reference_parameter. The actual may be a
4237 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
4239 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4241 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4243 * gnat_rm.texi (Implementation Defined Characteristics)
4244 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
4246 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
4247 (Switches for gnatchop, Installing a library): Likewise.
4249 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
4251 * trans.c (emit_range_check): Do not emit the check if the base type
4252 of the expression is the type against which its range must be checked.
4254 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4256 * decl.c (maybe_pad_type): Use value_factor_p.
4258 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4260 * lang.opt (nostdlib): Move around.
4261 * misc.c (gnat_handle_option): Fix formatting.
4262 (gnat_dwarf_name): Move around.
4263 * trans.c (Case_Statement_to_gnu): Fix formatting.
4264 (gnat_to_gnu): Likewise.
4265 * utils.c (aggregate_type_contains_array_p): Likewise.
4266 (create_subprog_decl): Likewise.
4268 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4270 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
4271 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
4273 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4275 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
4276 BIGGEST_ALIGNMENT when capping the alignment of records with
4277 strict alignment and size clause.
4279 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4281 * lang-specs.h: Pass -gnatwa if -Wall is passed.
4282 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
4283 and -Wuninitialized.
4284 (gnat_post_options): Clear warn_unused_parameter.
4286 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4288 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
4289 aligned bit-fields, bumping the alignment of the record type if deemed
4291 (value_factor_p): Return false instead of 0.
4293 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4295 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
4296 for scalar types with small alignment.
4298 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4300 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
4301 from that of the front-end's end label.
4302 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
4303 from that of the loop label.
4305 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4307 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
4308 comment for the packed array type case.
4309 * utils.c (build_template): Use a loop to strip padding or
4310 containing records for justified modular types.
4312 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4314 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
4315 large alignments specified for types.
4316 (validate_alignment): Minor cleanup.
4318 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4320 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
4321 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
4322 the component for packing, if possible, as well as if a component
4323 size clause is specified.
4324 <E_Record_Subtype>: For an array type used to implement a packed
4325 array, get the component type from the original array type.
4326 Try to get a smaller form of the component for packing, if possible,
4327 as well as if a component size clause is specified.
4328 (round_up_to_align): New function.
4329 (make_packable_type): Add in_record parameter.
4330 For a padding record, preserve the size. If not in_record and the
4331 size is too large for an integral mode, attempt to shrink the size
4332 by lowering the alignment.
4333 Ditch the padding bits of the last component.
4334 Compute sizes and mode manually, and propagate the RM size.
4335 Return a BLKmode record type if its size has shrunk.
4336 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
4337 Use Original_Array_Type to retrieve the type in case of an error.
4338 Adjust call to make_packable_type.
4339 (gnat_to_gnu_field): Likewise.
4340 (concat_id_with_name): Minor tweak.
4341 * trans.c (larger_record_type_p): New predicate.
4342 (call_to_gnu): Compute the nominal type of the object only if the
4343 parameter is by-reference. Do the conversion actual type -> nominal
4344 type if the nominal type is a larger record.
4345 (gnat_to_gnu): Do not require integral modes on the source type to
4346 avoid the conversion for types with identical names.
4347 (addressable_p): Add gnu_type parameter. If it is specified, do not
4348 return true if the expression is not addressable in gnu_type.
4349 Adjust recursive calls.
4350 * utils.c (finish_record_type): Remove dead code.
4352 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
4355 * decl.c (maybe_pad_type): Avoid padding an integral type when
4356 bumping its alignment is sufficient.
4358 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4360 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
4361 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
4363 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
4364 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
4365 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
4366 code output strings.
4367 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
4368 system-vms_64.ads: Fix typos in ada source code comments.
4369 * sinfo-cn.adb: Remove incomplete sentence.
4371 PR documentation/15479
4372 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
4374 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
4377 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
4379 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
4382 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
4383 that underlying type is present.
4385 2008-02-26 Tom Tromey <tromey@redhat.com>
4387 * misc.c (internal_error_function): Remove test of
4388 USE_MAPPED_LOCATION.
4389 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
4390 (Sloc_to_locus): Remove old location code.
4392 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4394 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
4395 `i.e.' by adding comma or `@:' as appropriate.
4396 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
4397 plain characters `C', use `@samp{C}'.
4398 * gnat_ugn.texi (File Naming Rules, About gnatkr)
4399 (Krunching Method): Likewise.
4401 * gnat_ugn.texi (Conventions): List environment variables and
4402 metasyntactic variables.
4403 (Compiling Programs): Fix notation of metasyntactic variables.
4404 Add @file where appropriate. Use @file for file extensions,
4406 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
4407 instead of @file, @env instead of @code.
4409 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4411 PR documentation/15479
4412 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
4413 and `...' with `@dots{}' or `@enddots{}'.
4415 PR documentation/15479
4416 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
4417 use @command instead of @code, @option instead of @samp or @code,
4418 @code instead of @var, @samp instead of @file.
4420 PR documentation/15479
4421 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
4422 in Makefile rules, by using `&&' rather than `;'.
4424 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4426 PR documentation/15479
4427 * gnat_ugn.texi: In non-code, avoid space before colon.
4428 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
4429 (Examples of gnatxref Usage): Use @command{vi} instead of
4431 (Character Set Control): Do not use @code for UTF-8.
4432 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
4434 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
4436 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
4438 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
4441 * env.c: Add __rtems__ to if defined.
4442 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
4443 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
4444 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
4445 pragma Convention as required.
4446 * gsocket.h: Make compile in and out of RTS.
4447 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
4448 Use g-soccon-rtems.ads.
4449 * g-soccon-rtems.ads, system-rtems.ads: New files.
4451 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4454 * Make-lang.in (gnat1): Add $(GMPLIBS).
4456 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
4458 * decl.c (components_to_record): Improve comment.
4460 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
4462 * decl.c (components_to_record): Do not reuse the empty union type
4463 if there is a representation clause on the record.
4464 * trans.c (addressable_p): Return true for INTEGER_CST.
4466 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
4468 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
4469 in pointer arithmetics.
4470 * utils2.c (build_allocator): Likewise.
4472 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
4474 * utils.c (build_function_stub): Properly build the call expression.
4476 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
4478 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
4479 before converting the expression to the type of the object.
4480 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
4481 Stabilize constructors for special wrapping types.
4483 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
4485 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
4486 when necessary. Merge some conditional statements. Update comments.
4487 Rename unchecked_convert_p local variable to suppress_type_conversion.
4488 Do not suppress conversions in the In case.
4489 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
4490 into account on non strict-alignment platforms.
4492 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
4494 * utils.c (aggregate_type_contains_array_p): New predicate.
4495 (create_field_decl): In a packed record, force byte alignment
4496 for fields without specified position that contain an array.
4498 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
4500 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
4502 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
4505 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
4507 (bit_field): New packed boolean type used by cpu_set_t.
4508 (cpu_set_t): New type corresponding to the C type with
4509 the same name. Note that on the Ada side we use a bit
4510 field array for the affinity mask. There is not need
4511 for the C macro for setting individual bit.
4512 (pthread_setaffinity_np): New imported routine.
4514 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
4517 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4518 on OpenBSD as is done on other BSD systems.
4521 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
4522 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
4526 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
4530 * init.c (__gnat_error_handler, __gnat_install_handler,
4531 __gnat_init_float): Define for OpenBSD.
4533 * initialize.c (__gnat_initialize): Define for OpenBSD.
4535 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
4538 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4539 instead of mktemp() or tmpnam() on NetBSD.
4541 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
4543 * trans.c (call_to_gnu): Make the temporary for non-addressable
4544 In parameters passed by reference.
4545 (addressable_p): Return true for STRING_CST and CALL_EXPR.
4547 2007-12-19 Robert Dewar <dewar@adacore.com>
4549 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
4550 Add pragma Warnings (Off) for unassigned IN OUT arguments
4552 * sem_warn.adb (Output_Reference): Suppress messages for internal names
4553 (Check_References): Extensive changes to tune up warnings
4554 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
4555 (Has_Pragma_Unmodifed_Check_Spec): New function
4556 (Check_References): Implement pragma Unmodified
4557 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
4559 * par-prag.adb: Dummy entry for pragma Unmodified
4561 * sem_prag.adb: Implement pragma Unmodified
4563 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
4564 (Proc_Next_Component_Or_Discriminant): Fix typo.
4567 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
4569 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
4570 because the former already takes care of discarding the result.
4571 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
4574 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
4576 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
4578 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
4579 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4580 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
4581 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
4582 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4583 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4584 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4585 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4586 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4587 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
4588 (Dynamic_Trampolines_Used): Delete.
4590 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
4591 Turn on stack probing mechanism on LynxOS.
4593 2007-12-19 Bob Duff <duff@adacore.com>
4595 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
4596 the resulting tail recursion by hand. This prevents running out of
4597 memory on deeply nested concatenations, since Field2 is where the left
4598 operand of concatenations is stored.
4599 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
4600 clarify that it can only return OK or Abandon.
4602 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
4603 operand by iteration, in order to avoid running out of memory on
4604 deeply-nested concatenations. Use the Parent pointer to get back up the
4606 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
4607 Resolve_Op_Concat_Rest): New procedures split out of
4608 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
4611 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
4612 Traverse_Func, because the former already takes care of discarding the
4615 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
4616 because the former already takes care of discarding the result.
4617 (Remove_Warning_Messages): Use appropriate subtype for Status and
4620 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4622 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
4623 discriminants forces expansion of the aggregate into assignments.
4624 (Init_Record_Controller): If the type of the aggregate is untagged and
4625 is not inherently limited, the record controller is not limited either.
4627 2007-12-19 Robert Dewar <dewar@adacore.com>
4629 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
4630 handling compile time known size of record or array (case of front end
4631 layout active, e.g. in GNAAMP).
4633 2007-12-19 Javier Miranda <miranda@adacore.com>
4635 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
4636 that forces the construction of static dispatch tables in case of
4639 2007-12-19 Robert Dewar <dewar@adacore.com>
4641 * exp_ch9.adb (Null_Statements): Moved to library level
4642 (Trivial_Accept_OK): New function
4643 (Expand_Accept_Declaration): Use Trivial_Accept_OK
4644 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
4646 2007-12-19 Robert Dewar <dewar@adacore.com>
4648 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
4649 in complex case where array is Volatile.
4651 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4653 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
4654 properly the Ada2005 rules concerning when the current instance of a
4655 record type is aliased.
4657 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4659 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
4661 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
4663 (P_Variant_Part): Cleaner patch for parenthesized discriminant
4665 2007-12-19 Vincent Celier <celier@adacore.com>
4667 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
4668 package is not known
4670 * prj-attr.ads (Unknown_Package): New constant
4671 Do not crash when an unknown package is in several projects
4673 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
4676 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
4677 existing package Language_Processing.
4679 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4680 Gary Dismukes <dismukes@adacore.com>
4681 Samuel Tardieu <sam@rfc1149.net>
4683 PR ada/15803, ada/15805
4684 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
4685 illegal access subtypes when there is a constrained partial view.
4686 (Check_For_Premature_Usage): New procedure inside
4687 Access_Subprogram_Declaration for checking that an access-to-subprogram
4688 type doesn't reference its own name within any formal parameters or
4689 result type (including within nested anonymous access types).
4690 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
4691 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
4692 context is an access_to_variable, the expression cannot be an
4695 2007-12-19 Bob Duff <duff@adacore.com>
4697 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
4698 (Analyze_Concatenation): Use iteration instead of recursion in order
4699 to avoid running out of stack space for deeply nested concatenations.
4701 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4702 Gary Dismukes <dismukes@adacore.com>
4704 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
4705 whose renamed entity is a subprogram that requires overriding.
4706 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
4707 issuing an error for premature usage and issue a message that says
4708 'type' rather than 'object'.
4710 2007-12-19 Gary Dismukes <dismukes@adacore.com>
4713 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
4714 presence of a statically tagged operand (Present (Static_Tag)) with
4715 test for Indeterm_Ancestor_Call when determining whether to propagate
4716 the static tag to tag-indeterminate operands (which forces dispatching
4718 (Check_Controlling_Formals): Ada2005, access parameters can have
4720 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
4721 not insert subprogram in list of primitive operations if already there.
4723 2007-12-19 Tristan Gingold <gingold@adacore.com>
4725 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
4728 2007-12-19 Thomas Quinot <quinot@adacore.com>
4730 Part of PR ada/33688
4731 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
4732 datagram info on Linux.
4734 2007-12-19 Vincent Celier <celier@adacore.com>
4736 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
4737 that the source path name is always found in the dependencies.
4739 2007-12-19 Robert Dewar <dewar@adacore.com>
4741 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
4742 Fix name of Wide_Wide_Latin_1/9 file names
4743 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
4744 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
4745 Add missing documentation for Ada.Command_Line.Response_File
4746 Update list of warning letters for Warnings pragma
4747 Add documentation for pragma Unmodified
4749 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
4751 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
4753 2007-12-17 Arnaud Charlet <charlet@adacore.com>
4755 * s-vxwork-alpha.ads: Removed, no longer used.
4757 2007-12-15 Jakub Jelinek <jakub@redhat.com>
4759 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
4761 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
4764 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
4765 mlib-tgt-specific.adb.
4767 2007-12-13 Bob Duff <duff@adacore.com>
4769 * trans.c (Attribute_to_gnu): Check for violations of the
4770 No_Implicit_Dynamic_Code restriction. This checking used to be done in
4771 the front end, but is moved here so we can make it more accurate.
4773 2007-12-13 Pascal Obry <obry@adacore.com>
4775 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
4776 version is provided for older GNU/Linux distribution not
4777 supporting thread affinity sets.
4779 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
4781 (bit_field): New packed boolean type used by cpu_set_t.
4782 (cpu_set_t): New type corresponding to the C type with
4783 the same name. Note that on the Ada side we use a bit
4784 field array for the affinity mask. There is not need
4785 for the C macro for setting individual bit.
4786 (pthread_setaffinity_np): New imported routine.
4788 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
4790 (Create_Task): Set the processor affinity mask if information
4793 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
4795 2007-12-13 Robert Dewar <dewar@adacore.com>
4797 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4798 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
4799 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
4800 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
4801 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
4802 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
4803 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
4804 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
4805 for subprogram pointers.
4807 * g-ctrl_c.adb: New file.
4809 * g-ctrl_c.ads (Install_Handler): New body.
4811 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
4812 instead of obsolete function Is_Always_Inlined.
4813 (Freeze_Entity): check for tagged type in imported C subprogram
4814 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
4815 (Freeze_Entity): check for convention Ada subprogram pointer in
4816 imported C subprogram.
4817 (Freeze_Fixed_Point_Type): In the case of a base type where the low
4818 bound would be chopped off and go from negative to zero, force
4819 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
4820 bound) so that the size computation for the base type will take
4821 negative values into account.
4823 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
4824 Bob Duff <duff@adacore.com>
4825 Tristan Gingold <gingold@adacore.com>
4827 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
4828 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4829 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4830 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4831 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4832 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4833 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
4834 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
4835 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
4836 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
4837 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
4838 (Always_Compatible_Rep): New flag to control trampolines globally.
4839 (Dynamic_Trampolines_Used): New flag for implementing the
4840 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
4841 and not yet set correctly for some targets).
4843 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
4844 Simply indirectly call s-stchop when a task is created.
4847 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
4848 appears as an argument (entries A) in an ALI file.
4850 * fe.h (Stack_Check_Limits): Declare new target parameter.
4851 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
4853 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
4854 This variable is declared in C to be sure not subject to elaboration
4856 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
4859 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
4860 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
4862 * s-stchop.ads: Add comments.
4864 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
4865 limit method of stack checking.
4867 * s-stchop-limit.ads: New file.
4869 2007-12-13 Robert Dewar <dewar@adacore.com>
4871 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
4872 a-cihama.adb, g-awk.adb,
4873 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
4876 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
4878 * sem.adb: Update handling of assigned value/unreferenced warnings
4880 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
4882 * lib-xref.ads: Improve documentation for k xref type
4885 Update handling of assigned value/unreferenced warnings
4886 (Generate_Reference): Warning for reference to entity for which a
4887 pragma Unreferenced has been given should be unconditional.
4888 If the entity is a discriminal, mark the original
4889 discriminant as referenced.
4891 * sem_warn.ads, sem_warn.adb
4892 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
4893 no entities referenced in package
4894 (Check_One_Unit): Don't give message about no entities referenced in
4895 a package if a pragma Unreferenced has appeared.
4896 Handle new warning flag -gnatw.a/-gnatw.A
4897 Update handling of assigned value/unreferenced warnings
4899 * atree.h: Add flags up to Flag247
4900 (Flag231): New macro.
4902 2007-12-13 Jose Ruiz <ruiz@adacore.com>
4904 * adaint.h: (__gnat_plist_init): Not defined for RTX.
4906 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
4909 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
4910 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
4911 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
4912 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
4915 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
4917 * sysdep.c (winflush_function for RTX): Procedure that does nothing
4918 since we only have problems with Windows 95/98, which are not
4920 (__gnat_ttyname): Return the empty string on Nucleus, just as
4923 2007-12-13 Robert Dewar <dewar@adacore.com>
4925 * a-textio.adb, a-textio.ads:
4926 Extensive changes to private part for wide character encoding
4928 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
4929 (Look_Ahead): Fix mishandling of encoded sequences
4930 Move declaration of Wch_Con to private part (should not be visible)
4932 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
4933 UTF-8. Probably this is never used, but if it is, brackets is
4936 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
4937 setting wide character encoding for no main program case and when
4938 encoding is specified using -W?
4939 Initialize stack limit of environment task if stack limit method of
4940 stack checking is enabled.
4941 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
4942 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
4943 (Get_Main_Unit_Name): New function.
4944 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
4945 (Gen_Output_File): Set Bind_Main_Program to True for .NET
4947 * bindusg.adb: Add line for -Wx switch
4949 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
4951 Add new useful constant WC_Longest_Sequences
4953 * switch-b.adb: Clean up handling of -Wx switch
4954 For -gnatWx, set Wide_Character_Encoding_Method_Specified
4956 * switch-c.adb: -gnatg activates warning on assertion errors
4957 For -gnatWx, set Wide_Character_Encoding_Method_Specified
4959 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
4961 2007-12-13 Robert Dewar <dewar@adacore.com>
4962 Ed Schonberg <schonberg@adacore.com>
4964 * a-ngcoty.adb: New pragma Fast_Math
4966 * opt.adb: New pragma Fast_Math
4969 Add Implemented_By_Entry to the list of pragmas which do not require any
4971 (Favor_Top_Level): New pragma.
4972 New pragma Fast_Math
4974 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
4975 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
4976 Expand_Allocator_Expression): Take into account VM_Target
4977 (Expand_Attribute, case 'Identity): Handle properly the case where
4978 the prefix is a task interface.
4979 New pragma Fast_Math
4981 * par.adb (Next_Token_Is): New function
4982 (P_Pragma): Add Skipping parameter
4983 (U_Left_Paren): New procedure
4984 (U_Right_Paren): New procedure
4985 New pragma Fast_Math
4987 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
4989 New pragma Fast_Math
4991 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
4992 Implemented_By_Entry.
4993 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
4994 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
4995 items, since it can apply to more than one overloadable entity. Set
4996 new flag Has_Pragma_Inline_Always for Inline_Always case.
4997 (Analyze_Pragma, case Complex_Representation): Improve error message.
4998 (Analyze_Pragma, case Assert): When assertions are disabled build the
4999 rewritten code with Sloc of expression rather than pragma, so new
5000 warning about failing is not deleted.
5001 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
5002 protected types and update error message to reflect that. Test whether
5003 the protected type is allowed for the pragma (an error is issued if the
5004 type has any entries, or components that do not have preelaborable
5006 New pragma Fast_Math
5007 (Analyze_Pragma, case No_Return): Handle generic instance
5009 * snames.h, snames.ads, snames.adb:
5010 Add new predefined name for interface primitive _Disp_Requeue.
5011 New pragma Fast_Math
5013 * a-tags.ads, a-tags.adb: New calling sequence for
5014 String_To_Wide_[Wide_]String
5015 (Secondary_Tag): New subprogram.
5017 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
5019 New calling sequence for String_To_Wide_[Wide_]String
5020 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
5021 the use of the secondary stack for image routines.
5023 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
5024 calling sequence for String_To_Wide_[Wide_]String
5026 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
5028 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
5029 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5031 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
5032 (P_Formal_Part): Use Skipping parameter in P_Pragma call
5033 to improve error recovery
5035 * par-util.adb (Next_Token_Is): New function
5036 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
5038 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
5039 semicolon if missing
5040 (P_Pragma): Implement new Skipping parameter
5041 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5042 Fix location of flag for unrecognized pragma message
5044 * par-tchk.adb (U_Left_Paren): New procedure
5045 (U_Right_Paren): New procedure
5047 2007-12-13 Geert Bosch <bosch@adacore.com>
5050 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
5051 the second or later Scaled_Divide would omit leading zeroes,
5052 resulting in too few digits produced and a Layout_Error as result.
5053 (Put): Initialize Pos.
5055 2007-12-13 Robert Dewar <dewar@adacore.com>
5057 atree.ads, atree.adb (Flag231..Flag247): New functions
5058 (Set_Flag231..Set_Flag247): New procedures
5059 (Basic_Set_Convention): Rename Set_Convention to be
5060 Basic_Set_Convention
5061 (Nkind_In): New functions
5062 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5064 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
5066 of obsolete function Is_Always_Inlined
5067 (Register_Predefined_DT_Entry): Initialize slots of the second
5068 secondary dispatch table.
5069 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5070 (Expand_N_Function_Call): Remove special provision for stack checking.
5072 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
5073 Include _Disp_Requeue in the list of predefined operations.
5074 (Find_Interface_ADT): Modified to fulfill the new specification.
5075 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5077 * par-ch4.adb, nlists.ads, nlists.adb:
5078 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5080 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
5081 Fix location of flag for unrecognized pragma message
5083 * sem_ch7.adb: Use Nkind_In
5085 2007-12-13 Vincent Celier <celier@adacore.com>
5088 Indicate what flags are used by the Project Manager, gprbuild and
5090 (Opt.Follow_Links_For_Dirs): New flag
5091 (Warn_On_Assertion_Failure): New flag
5092 (Wide_Character_Encoding_Method_Specified): New flag
5093 (Suppress_All_Inlining): New switch set by -fno-inline
5094 (Real_VMS_Target): New flag
5095 New pragma Fast_Math
5097 2007-12-13 Robert Dewar <dewar@adacore.com>
5099 * back_end.adb: Recognize -fno-inline
5101 2007-12-13 Robert Dewar <dewar@adacore.com>
5103 * checks.adb: Fix optimization problem with short-circuited form
5105 2007-12-13 Bob Duff <duff@adacore.com>
5107 * clean.adb (Usage): Add line for -aP
5108 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
5109 with a parameter "procedure Usage", instead of passing a pointer to a
5110 procedure. This is to eliminate trampolines (since the Usage procedure
5111 is often nested in a main procedure, and it would be inconvenient to
5114 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
5115 to be generic, with a parameter "procedure Callback (...)", instead of
5116 passing a pointer to a procedure. This is to eliminate trampolines
5117 (since the Callback procedure is usually nested).
5119 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
5120 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
5121 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
5123 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
5124 Use the generic Heap_Sort_G instead of Heap_Sort_A.
5126 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5128 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
5129 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
5130 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
5131 (Renamed_In_Spec): New flag
5132 (Has_Pragma_Inline_Always): New flag
5133 Add missing doc for pragma Obsolescent_Warning
5134 Add missing doc for 17 additional unused flags (230-247)
5135 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
5136 Alphabetize with clauses.
5137 Separate Is_Thunk and Has_Thunks flags
5138 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
5139 (Related_Interface): Renamed to Related_Type.
5140 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
5141 (Set_Is_Flag): Restrict the assertion.
5143 2007-12-13 Vincent Celier <celier@adacore.com>
5145 * errout.adb (Output_Source_Line): Do not keep a trailing space after
5146 the source line number if the source line is empty.
5148 2007-12-13 Geert Bosch <bosch@adacore.com>
5150 * eval_fat.adb (Decompose_Int): Handle argument of zero.
5151 (Compose): Remove special casing of zero.
5152 (Exponent): Likewise.
5153 (Fraction): Likewise.
5154 (Machine): Likewise.
5155 (Decompose): Update comment.
5157 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5159 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
5160 limited ancestor part, initialize controllers of enclosing record
5161 before expanding ancestor aggregate.
5162 (Gen_Assign): If a component of the aggregate is box-initialized, add
5163 code to call Initialize if the component is controlled, and explicit
5164 assignment of null if the component is an access type.
5166 Handle properly aggregates for limited types that appear in object
5167 declarations when the aggregate contains controlled values such as
5169 When expanding limited aggregates into individual components, do not
5170 call Adjust on controlled components that are limited.
5172 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5174 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
5176 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5178 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
5179 predefined primitive _Disp_Requeue.
5180 (Make_Predefined_Primitive_Specs): Create the spec for predefined
5181 primitive _Disp_Requeue.
5182 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
5183 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
5184 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
5185 an interface type. In case of limited interfaces we now declare all the
5186 predefined primitives associated with synchronized interfaces as
5188 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
5190 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
5191 tagged type is an interface type and there is no user-defined equality
5193 Add also bodies of predefined primitives associated with synchronized
5195 (Freeze_Record_Type): Do not build bodies of predefined primitives of
5196 interface types because they are now defined abstract.
5197 Add missing documentation.
5198 (Expand_Record_Controller): Update occurrence of Related_Interface
5200 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
5201 (Expand_N_Object_Declaration): Take into account VM_Target when handling
5202 class wide interface object declaration.
5203 (Expand_Previous_Access_Type): Do not create a duplicate master entity
5204 if the access type already has one.
5205 (Expand_N_Object_Declaration): Defend against attempt to validity check
5206 generic types. Noticed for -gnatVcf specified with previous errors.
5208 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5210 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5211 Expand_Allocator_Expression): Take into account VM_Target
5213 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
5214 secondary stack when VM_Target /= No_VM
5216 2007-12-13 Javier Miranda <miranda@adacore.com>
5217 Ed Schonberg <schonberg@adacore.com>
5219 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
5220 Is_Complation_Unit by Is_Library_Level_Entity in the code
5221 that decides if the static dispatch tables need to be built.
5222 (Wrap_Transient_Declaration): Do not generate a finalization call if
5223 this is a renaming declaration and the renamed object is a component
5224 of a controlled type.
5226 2007-12-13 Gary Dismukes <dismukes@adacore.com>
5228 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
5229 In the case where the renamed subprogram is a dereference, call
5230 Force_Evaluation on the prefix.
5232 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5233 Ed Schonberg <schonberg@adacore.com>
5235 * exp_ch9.adb (Expand_N_Asynchronous_Select,
5236 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
5237 comment reformatting.
5238 (Set_Privals): Inherit aliased flag from formal. From code reading.
5239 (Build_Simple_Entry_Call): Out parameters of an access type are passed
5240 by copy and initialized from the actual. This includes entry parameters.
5241 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
5242 and Ada 2005 models of requeue.
5243 (Null_Statements): Still connsider do-end block null if it contains
5244 Unreferenced and Warnings pragmas.
5245 (Expand_N_Accept_Statement): Do not optimize away null do end if
5246 dispatching policy is other than defaulted.
5247 (Expand_N_Timed_Entry_Call): When the triggering statement is a
5248 dispatching call, manually analyze the delay statement.
5249 (Find_Parameter_Type): Move subprogram to Sem_Util.
5251 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5252 Javier Miranda <miranda@adacore.com>
5254 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
5255 _Disp_Requeue occupies dispatch table slot number 15. Move
5256 _Disp_Timed_Select to slot 16.
5257 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
5258 generate the spec and body of _Disp_Reqeueue.
5259 (Make_DT): Build and initialize the second dispatch table.
5260 Handle initialization of RC_Offset when the parent
5261 is a private type with variable size components.
5262 (Make_Secondary_DT): Complete documentation. Add support to
5263 initialize the second dispatch table.
5264 (Make_Tags): Generate the tag of the second dispatch table.
5265 (Register_Primitive): Add support to register primitives in the
5266 second dispatch table.
5268 2007-12-13 Pascal Obry <obry@adacore.com>
5270 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
5271 Windows. This signal is used by gnatmake to kill child processes for
5274 2007-12-13 Javier Miranda <miranda@adacore.com>
5276 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
5277 support for generic dispatching constructor calls in which we need to
5278 locate the tag of a secondary dispatch table associated with an
5279 interface type to properly dispatch the call.
5280 (Expand_N_Attribute_Reference [case Address],
5281 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
5282 handling of VM targets.
5284 2007-12-13 Robert Dewar <dewar@adacore.com>
5285 Ed Schonberg <schonberg@adacore.com>
5287 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
5290 * ug_words: Add entries for -gnatw.a -gnatw.A
5292 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
5293 literal is a subtype with non-static constraints, use the base type of
5294 the context as the base of the string subtype, to prevent type
5296 (Resolve_Actuals): If the actual is an entity name, generate a
5297 reference before the actual is resolved and expanded, to prevent
5298 spurious warnings on formals of enclosing protected operations.
5299 (Analyze_Overloaded_Selected_Component): If type of prefix if
5300 class-wide, use visible components of base type.
5301 (Resolve_Selected_Component): Ditto.
5302 (Resolve_Short_Circuit): Detect case of pragma Assert argument
5303 evaluating to False, and issue warning message.
5305 * usage.adb: Add lines for -gnatw.a and -gnatw.A
5307 2007-12-13 Emmanuel Briot <briot@adacore.com>
5309 * g-calend.ads (No_Time): New constant, to represent an uninitialized
5312 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
5314 (Month_Name_To_Number): New subprogram
5316 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
5317 letter to upper-case.
5319 2007-12-13 Robert Dewar <dewar@adacore.com>
5320 Ed Schonberg <schonberg@adacore.com>
5322 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
5324 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
5325 context is a limited view, use non-limited view when available. If the
5326 non-limited view is an unconstrained array, this enforces consistency
5327 requirements in 3.10.2 (27).
5328 (Layout_Type): For an access type whose designated type is a limited
5329 view, examine its declaration to determine if it is an unconstrained
5330 array, and size the access type accordingly.
5331 (Layout_Type): Do not force 32-bits for convention c subprogram
5332 pointers in -gnatdm mode, only if real vms target.
5334 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
5335 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5336 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
5337 violations of the No_Implicit_Dynamic_Code restriction.
5338 (Resolve_Attribute, case 'Access): If designated type of context is a
5339 limited view, use non-limited view when available. If the non-limited
5340 view is an unconstrained array, this enforces consistency requirements
5342 (Layout_Type): For an access type whose designated type is a limited
5343 view, examine its declaration to determine if it is an unconstrained
5344 array, and size the access type accordingly.
5346 2007-12-13 Vincent Celier <celier@adacore.com>
5348 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
5349 object directory of main project does not exist.
5350 On VMS, correctly set then environment variable for the source
5353 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
5355 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
5356 set to True this procedure will create the value of type REG_EXPAND_SZ.
5357 It was only possible to create REG_SZ values before.
5359 2007-12-13 Robert Dewar <dewar@adacore.com>
5361 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
5362 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
5363 namet-sp.adb, namet-sp.ads: New files.
5365 * g-speche.adb: Use generic routine in g-spchge
5367 * s-wchcnv.ads, s-wchcnv.adb:
5368 Minor code cleanup (make formal type consistent with spec)
5370 * namet.adb: Update comments.
5372 * par-endh.adb (Evaluate_End_Entry): Use new
5373 Namet.Sp.Is_Bad_Spelling_Of function
5375 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
5377 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
5378 ancestor is an access type initialized with a box, set its type
5379 explicitly, for use in subsequent expansion.
5380 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
5383 2007-12-13 Robert Dewar <dewar@adacore.com>
5385 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
5388 2007-12-13 Robert Dewar <dewar@adacore.com>
5390 * inline.adb (Back_End_Cannot_Inline): Use new flag
5391 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5393 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
5394 Has_Pragma_Inline_Always instead.
5395 of obsolete function Is_Always_Inlined
5396 (Build_Body_To_Inline): Same change
5397 (Cannot_Inline): Same change
5398 Do not give warning on exception raise in No_Return function
5400 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
5401 component has two inconsistent component clauses in the same record
5402 representation clause, favor the message that complains about
5403 duplication rather than inconsistency.
5405 (Record_Representation_Clause): Do not warn on missing component
5406 clauses for inherited components of a type extension.
5407 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
5408 an overloadable item if it is a pragma that can apply to multiple
5409 overloadable entities (e.g. Inline) because a pragma cannot be on
5410 more than one chain at a time.
5411 (Validate_Unchecked_Conversion): Add code to warn on unchecked
5412 conversion where one of the operands is Ada.Calendar.Time.
5413 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
5414 For now, ignore Component_Size clause on VM targets, as done for
5417 2007-12-13 Emmanuel Briot <briot@adacore.com>
5418 Vincent Celier <celier@adacore.com>
5420 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
5422 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
5424 (Hash): Move instantiation of System.HTable.Hash from spec to body
5425 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
5426 systems, since we do not need to recompute the Name_Id for the canonical
5428 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5429 as a parameter. This parameter is in fact always "ada" in all calls, and
5430 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
5431 while loading a project with 40000 files
5433 * prj-attr.adb: Fix name of attribute Dependency_Driver
5434 Change the kind of indexing for attribute Root
5436 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
5437 variables already declared, in case constructions.
5439 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
5440 Current_Object_Path_File to No_Path.
5442 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
5443 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
5445 * prj-makr.adb: new parameter Current_Dir
5447 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
5448 Ada sources when language is not Ada.
5449 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5450 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
5451 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
5452 (Locate_Directory): Always resolve links when computing Canonical_Path
5453 (Look_For_Sources): Make sure that Name_Buffer contains the file name
5454 in Source_Files before checking for the presence of a directory
5456 Optimize calls to Name_Find when on case sensitive systems.
5457 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5459 (Prj.Nmsc.Check): new parameter Current_Dir
5460 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
5461 cannot be empty and the spec suffix cannot be the same as the body or
5463 (Get_Unit): When a file name can be of several unit kinds (spec, body or
5464 subunit), always consider the longest suffix.
5465 (Check_Configuration): Do not issue an error if there is no compiler
5466 for a language. Just issue a warning and ignore the sources for the
5468 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
5470 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
5471 (Unit_Exceptions): New hash table
5472 (Check_Naming_Schemes): Check if a file that could be a unit because of
5473 the naming scheme is not in fact a source because there is an exception
5475 (Look_For_Sources): Put the unit exceptions in hash table
5477 (Get_Unit_Exceptions): Give initial value No_Source to local variable
5478 Other_Part to avoid exception when code is compiled with validity
5480 (Get_Sources_From_File): Check that there is no directory information
5482 (Look_For_Sources): Check that there is no directory information in the
5483 list of file names in Source_Files.
5484 (Look_For_Sources): In multi-language mode, do not allow exception file
5485 names that are excluded.
5486 (Excluded_Sources_Htable): New hash table
5487 (Search_Directories.Check_File): New procedure to simplify
5489 (Search_Directories): Do not consider excluded sources
5490 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
5492 (Get_Exceptions): Set component Lang_Kind of Source_Data
5493 (Get_Unit_Exceptions): Ditto
5494 (Search_Directories): Ditto
5496 * prj-pars.adb: new parameter Current_Dir
5498 * prj-part.ads, prj-part.adb:
5499 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5500 (Opt.Follow_Links_For_Dirs): New flag
5501 (Project_Path_Name_Of): Cache information returned by this routine as
5502 Locate_Regular_File is a costly routine. The code to output a log
5503 information and the effective call to Locate_Regular_File is now
5504 factorized into a routine (code clean-up).
5505 (Parse, Parse_Single_Project): new parameter Current_Dir
5506 When main project file cannot be found, indicate in the error
5507 message the project path that was used to do the search.
5509 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
5510 (Prj.Proc.Process*): new parameter Current_Dir
5512 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
5514 2007-12-13 Bob Duff <duff@adacore.com>
5516 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
5517 procedure to be called from the back end to check the
5518 No_Implicit_Dynamic_Code restriction.
5520 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5522 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
5523 Fixes another case where RTE_Available_Call was ignored instead of being
5527 * rtsfind.ads: Add new entries.
5529 2007-12-13 Robert Dewar <dewar@adacore.com>
5531 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
5532 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
5534 * scn.adb: Implement BOM recognition
5536 2007-12-13 Thomas Quinot <quinot@adacore.com>
5537 Ed Schonberg <schonberg@adacore.com>
5539 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
5540 subprogram body that acts as its own spec may not have a non-private
5541 WITH clause on a private sibling.
5542 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
5543 child unit is a renaming, create an implicit with_clause on that
5544 parent, and not on the unit it renames, to prevent visibility errors
5545 in the current unit.
5547 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5549 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
5550 renaming declaration, use the Slocs of the formal parameters from the
5551 declaration of the formal subprogram when creating the formal parameter
5552 entities in the renaming declaration.
5553 (Analyze_Formal_Type_Declaration): Change the placement of the error
5554 message concerning illegal known discriminants. It is now posted on the
5555 type rather than on the first discriminant. This change ensures early
5557 (Freeze_Subprogram_Body): If the generic subprogram is nested within
5558 the package body that contains the instance, do not generate an
5559 out-of-place freeze node for the enclosing package.
5560 (Collect_Previous_Instantiations): Ignore internal instantiations
5561 generated for formal packages.
5562 (Validate_Derived_Type_Instance): Add a check that when a formal
5563 derived type is Known_To_Have_Preelab_Init then the actual type must
5564 have preelaborable initialization, and issue an error when this
5565 condition is violated.
5567 2007-12-13 Robert Dewar <dewar@adacore.com>
5569 * s-imenne.adb, s-imenne.ads: New files.
5571 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
5572 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
5573 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
5574 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
5575 s-imgwch.ads: New calling sequence for Image routines to avoid sec
5578 2007-12-13 Javier Miranda <miranda@adacore.com>
5579 Ed Schonberg <schonberg@adacore.com>
5581 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
5582 generation of spurious error if parent is an interface type; caused
5583 because predefined primitive bodies will be generated later by
5585 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
5587 (Derive_Subprograms): Handle derivations of predefined primitives
5588 after all the user-defined primitives to ensure that they are
5589 found in proper order in instantiations.
5590 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
5591 of Related_Interface to Related_Type.
5592 (Record_Type_Declaration): Minor reordering of calls to decorate the
5593 Tag component because the entity must have set its Ekind attribute
5594 before setting its Is_Tag attribute.
5595 (Analyze_Subtype_Declaration): In the case of subtypes with
5596 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
5598 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5599 Ed Schonberg <schonberg@adacore.com>
5601 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
5602 statement to the list of contexts where a selected component with a
5603 concurrent tagged type prefix should yield a primitive operation.
5604 (Find_Primitive_Operation): Handle case of class-wide types.
5605 (Analyze_Overloaded_Selected_Component): If type of prefix is
5606 class-wide, use visible components of base type.
5607 (Resolve_Selected_Component): Ditto.
5608 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
5609 formal of a generic subprogram. find candidate interpretations by
5610 scanning the list of generic formal declarations.:
5611 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
5612 type from a limited_with_clause, and the full view is available, use it
5613 for subsequent semantic checks.
5614 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
5615 (Find_Primitive_Operation): New function.
5616 (Analyze_Overloaded_Selected_Component): insert explicit dereference
5617 only once if several interpretations of the prefix yield an access type.
5618 (Try_Object_Operation): Code and comment cleanup.
5619 (Analyze_Selected_Component): Reorder local variables. Minot comment and
5620 code reformatting. When the type of the prefix is tagged concurrent, a
5621 correct interpretation might be available in the primitive and
5622 class-wide operations of the type.
5624 2007-12-13 Robert Dewar <dewar@adacore.com>
5625 Ed Schonberg <schonberg@adacore.com>
5627 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
5628 renaming entry as subprogram using rename-as-body if subprogram spec
5630 (Use_One_Type): The clause is legal on an access type whose designated
5631 type has a limited view.
5632 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5633 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5634 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
5635 operation denoted by a selected component.
5636 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
5637 it can be an expression, possibly overloaded, that returns a task or
5640 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5641 Gary Dismukes <dismukes@adacore.com>
5643 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
5644 requeue statement is dispatching. Do not emit an error when the name is
5645 not an entry and the context is a dispatching select. Add code to
5646 perform subtype conformance between the formals of the current entry
5647 and those of the target interface primitive.
5648 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
5649 Timed_Entry_Call): Analyze the triggering statement as the first step of
5650 the processing. If this is a dispatching select, postpone the analysis
5651 of all select statements until the Expander transforms the select. This
5652 approach avoids generating duplicate identifiers after the Expander has
5653 replicated some of the select statements. In case the Expander is
5654 disabled, perform regular analysis.
5655 (Check_Triggering_Statement): New routine.
5656 (Analyze_Requeue): Exclude any interpretations that are not entries when
5657 checking overloaded names in a requeue. Also test type conformance for
5658 matching interpretations rather than requiring subtype conformance at
5659 that point to conform with the RM's resolution rule for requeues.
5661 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5663 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
5664 inherited operation is a defaulted tag-indeterminate call, and there is
5665 a statically tagged actual, use the static tag as a controlling actual
5666 for the defaulted actual.
5668 2007-12-13 Geert Bosch <bosch@adacore.com>
5670 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
5671 context, so do not call Check_Non_Static_Context.
5673 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5675 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
5676 whether formal E is an entity which may have parameters.
5678 2007-12-13 Bob Duff <duff@adacore.com>
5679 Javier Miranda <miranda@adacore.com>
5680 Robert Dewar <dewar@adacore.com>
5682 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
5683 (Set_Convention): New procedure to set the Convention flag, and in
5684 addition make sure the Favor_Top_Level flag is kept in sync (all
5685 foreign-language conventions require Favor_Top_Level = True).
5686 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
5688 (Collect_Interfaces_Info): Minor update to handle the two secondary
5689 dispatch tables. Update occurrence of Related_Interface to Related_Type.
5690 (Generate_Parent_Ref): Add parameter to specify entity to check
5691 (Is_Preelaborable_Expression): Allow the name of a discriminant to
5692 initialize a component of a type with preelaborable initialization.
5693 This includes the case of a discriminal used in such a context.
5694 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
5695 latest Ada 2005 rules about renaming and 'Access of
5696 discriminant-dependent components.
5697 (Check_Nested_Access): Add handling when there are no enclosing
5698 subprograms (e.g. case of a package body).
5699 (Find_Parameter_Type): Factor routine from several other compiler files.
5700 Remove routine from Find_Overridden_Synchronized_Primitive.
5702 2007-12-13 Thomas Quinot <quinot@adacore.com>
5704 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
5705 an invalid access to an uninitialized slot in the
5706 Source_File_Index_Table.
5708 2007-12-13 Thomas Quinot <quinot@adacore.com>
5710 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
5712 2007-12-13 Bob Duff <duff@adacore.com>
5714 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
5715 access-to-subprogram types in this package.
5717 2007-12-13 Olivier Hainque <hainque@adacore.com>
5719 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
5720 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
5721 Stack_Overlay_Address and document that we are using an internal
5723 (Byte_Size, Unsigned_32_Size): Remove, now useless.
5724 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
5725 consistently throughout the various implementation pieces.
5727 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
5728 overlay we are using to fill the stack area with patterns.
5729 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
5730 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
5731 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
5733 2007-12-13 Robert Dewar <dewar@adacore.com>
5735 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
5737 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5740 (Create_Task): Take into account tasks created by foreign threads.
5741 Code clean up: use constants instead of hard coded values.
5743 2007-12-13 Robert Dewar <dewar@adacore.com>
5745 * styleg.adb (Check_Comment): More liberal rules for comment placement
5747 2007-12-13 Olivier Hainque <hainque@adacore.com>
5749 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
5750 of Procedure Value instead of Frame Pointer as the invocation
5751 identifier associated with the instruction pointer in each traceback
5754 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
5755 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
5756 Pointer as the invocation identifier passed to tbk$symbolize.
5758 * s-traent-vms.ads, s-traent-vms.adb
5759 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
5760 Procedure Value instead of Frame Pointer as the invocation identifier
5761 passed to tbk$symbolize.
5763 2007-12-13 Robert Dewar <dewar@adacore.com>
5765 * tbuild.ads, tbuild.adb:
5766 Fix location of flag for unrecognized pragma message
5768 2007-12-13 Robert Dewar <dewar@adacore.com>
5770 * treepr.ads, treepr.adb: (pl): implement use of positive value
5773 2007-12-13 Robert Dewar <dewar@adacore.com>
5775 * xeinfo.adb: Remove warnings
5776 * xnmake.adb: Remove warnings
5777 * xsinfo.adb: Remove warnings
5778 * xtreeprs.adb: Remove warnings
5779 * xsnames.adb: Remove warnings
5781 * a-ngcoar.adb: Fix typo.
5782 * s-interr.adb: Minor reformatting
5783 * env.c: Minor reformatting.
5784 * g-bytswa.adb: Minor reformatting.
5785 * g-rannum.ads: Minor documentation improvements
5786 * s-tasinf-mingw.adb: Minor header fix
5787 * a-clrefi.adb: Minor reformatting
5788 * g-sttsne.ads: Minor documentation improvement
5789 * g-sttsne-locking.ads: Minor documentation improvement
5790 * g-soliop-solaris.ads: Minor documentation improvement
5791 * g-soliop-mingw.ads: Minor documentation improvement
5792 * g-soliop.ads: Minor documentation improvement
5793 * exp_aggr.ads: Minor reformatting
5794 * debug.adb: Add documentation for the gprbuild debug flags
5795 * exp_ch2.adb: Use Nkind_In to simplify code throughout
5796 * exp_pakd.adb: Minor reformatting
5798 * g-altive.ads, g-alleve.adb: Remove assertions.
5799 Add comment about minor differences between targets regarding
5800 floating-point operations.
5802 * g-thread.adb: Remove pragma unreferenced.
5803 * lib.ads: Minor reformatting
5804 * par-ch9.adb: Minor reformatting of error messages
5805 * sem_case.adb: Minor reformatting
5806 * s-fileio.adb: Minor reformattinng
5807 * s-vmexta.ads: Minor typo
5809 Take into account 'Success' value as per new GNAT warning.
5811 2007-12-13 Vincent Celier <celier@adacore.com>
5813 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
5816 2007-12-13 Robert Dewar <dewar@adacore.com>
5817 Bob Duff <duff@adacore.com>
5819 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
5820 Document that suffixes may be terminations of each others
5821 Add doc for -gnatw.a and -gnatw.A
5822 Document gnatbind -Wx switch
5823 Document BOM recognition
5824 Document pragma Implemented_By_Entry.
5827 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
5828 Add doc for pragma Unreferenced suppressing no entities referenced msg
5829 Add documentation of GNAT.Directory_Operations.Iteration
5830 Add documentation of GNAT.Random_Numbers
5831 Add documentation for pragma Shared.
5832 Correct documentation for Bit_Order
5833 Add documentation for the Pool_Address attribute.
5834 Fix and improve documentation of pragma machine_attribute.
5835 New pragma Fast_Math
5836 Document BOM recognition
5838 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
5839 Add /Wide_Character_Encoding for binder
5840 Add qualifier for the new gnatpp option --no-separate-loop-then
5842 2007-12-13 Matthew Heaney <heaney@adacore.com>
5844 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
5845 which generic formal operations are called for each operation.
5847 2007-12-13 Olivier Hainque <hainque@adacore.com>
5849 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
5850 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
5852 2007-12-13 Emmanuel Briot <briot@adacore.com>
5854 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
5855 Reference_Dir unless we actually need it.
5857 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
5858 Tristan Gingold <gingold@adacore.com>
5860 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
5863 a-calend-vms.adb: Remove pragma warning off and add pragma
5866 2007-12-13 Robert Dewar <dewar@adacore.com>
5868 * impunit.adb: Add entries for missing units
5870 * Makefile.rtl: Add new run-time units.
5872 * Make-lang.in: Update dependencies.
5874 2007-12-13 Bob Duff <duff@adacore.com>
5876 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
5877 types, set Can_Use_Internal_Rep appropriately, based on
5878 Always_Compatible_Rep_On_Target.
5880 2007-12-13 Gary Dismukes <dismukes@adacore.com>
5881 Arnaud Charlet <charlet@adacore.com>
5883 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
5884 it to the front end and setting the aamp_target environment variable
5885 to the switch's argument to ensure that gnaampbind and gnaamplink will
5886 take the specified library into account.
5887 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
5888 target, since the CIL compiler supports an "object" file (.il files).
5890 2007-12-13 Vincent Celier <celier@adacore.com>
5892 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
5893 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
5895 2007-12-13 Geert Bosch <bosch@adacore.com>
5897 * s-parame-vxworks.adb:
5898 Update comments to reflect usage of this package by Nucleus.
5900 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5902 * i-vxwork.ads: Kill new warning on Convention C, since changing the
5903 spec would break code.
5905 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
5907 * system-vxworks-alpha.ads: Removed.
5909 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
5911 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
5913 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
5916 * sem_ch3.adb (Designates_T): New function.
5917 (Mentions_T): Factor reusable part of the logic into Designates_T.
5918 Consider non-access parameters and access and non-access result.
5919 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
5920 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
5922 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
5924 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
5927 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
5928 the new implementation of target-specific calls.
5930 2007-12-07 Olivier Hainque <hainque@adacore.com>
5932 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
5933 the designated full view, only follow a second level Full_View link
5934 for Non_Limited_Views of from_limited_with references.
5936 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
5939 * sem_ch6.adb (Process_Formals): Prevent an access type formal
5940 to be initialized with an access to constant object.
5942 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
5943 when an access to constant is used to initialize an access
5947 * a-direct.adb (Compose): Containing_Directory can be an empty string.
5949 2007-12-07 Olivier Hainque <hainque@adacore.com>
5952 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
5953 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
5954 this is from an alignment clause on the GNAT entity.
5955 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
5956 to distinguish the case where we set it from the type's alignment.
5957 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
5958 whether this alignment was set from an explicit alignment clause.
5960 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
5962 * decl.c (make_packable_type): Revert last change.
5963 (gnat_to_gnu_field): Avoid setting size and position multiple times.
5964 * utils.c (finish_record_type): Retrieve the real name of the type.
5966 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
5968 * trans.c (lvalue_required_p): Take base node directly instead
5969 of its parent. Rename second parameter to 'gnu_type'.
5970 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
5971 <N_Slice>: Likewise.
5972 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
5973 Adjust calls to lvalue_required_p.
5975 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
5978 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
5979 parameters of an entry call.
5981 2007-12-03 Robert Dewar <dewar@adacore.com>
5982 Samuel Tardieu <sam@rfc1149.net>
5985 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
5986 of variables declared in a library-level package.
5988 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
5990 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
5991 of Empty_String'Unchecked_Access.
5993 * Makefile.in: Add support for sh4-linux.
5995 * system-linux-sh4.ads: New file.
5997 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
6000 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
6001 and its argument must not be free()ed.
6003 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
6005 * decl.c (make_packable_type): Retrieve the real name of the type.
6006 (maybe_pad_type): Simplify similar code.
6008 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
6011 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
6012 than an identifier is used after "case" in a variant_part.
6015 * par-ch4.adb (Is_Parameterless_Attribute): New map.
6016 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
6017 attribute name or not depending on the new map.
6019 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
6020 returning a string or a type will not be called with improper
6023 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
6025 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
6028 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
6029 Signal an error when attribute argument is a fixed-point value of
6033 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
6034 a derived ordinary fixed point type.
6036 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
6037 RM_Size when a Small clause is found.
6039 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
6042 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
6043 Pass 'false' for the new allocate_struct_function parameter.
6044 * utils.c (build_function_stub): Likewise.
6046 2007-11-25 Richard Guenther <rguenther@suse.de>
6048 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
6049 (gnat_poplevel): Likewise.
6051 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
6053 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
6054 strict alignment, no alignment clause and a known static size, cap
6055 the type alignment to the greatest power of 2 factor of the size.
6056 (gnat_to_gnu_field): If the field has a component clause, is aliased
6057 or of a type with strict alignment, require that its size be equal to
6059 (validate_size): Use the type size as the minimum size for a type with
6062 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
6064 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
6065 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
6066 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
6067 Use 'Access instead of 'Unchecked_Access in second and third
6068 arguments of pthread_sigmask.
6070 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
6072 * decl.c (ceil_alignment): New function.
6073 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
6074 (make_packable_type): Likewise.
6076 2007-11-22 Olivier Hainque <hainque@adacore.com>
6078 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
6079 to fit in 80 columns.
6081 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
6083 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
6084 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
6086 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
6089 * misc.c (gnat_adjust_rli): Delete.
6090 (gnat_init): Do not initialize the translation code here.
6091 Do not call set_lang_adjust_rli.
6092 * trans.c (init_code_table): Make static.
6093 (gnat_init_stmt_group): Delete.
6094 (gigi): Initialize the translation code entirely here.
6095 Emit debug info for the common types here instead of...
6096 * utils.c (gnat_init_decl_processing): ...here.
6097 * gigi.h (init_code_table): Delete.
6098 (gnat_init_stmt_group): Likewise.
6100 2007-11-16 Olivier Hainque <hainque@adacore.com>
6102 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
6103 retrieving an allocator return value from a super-aligned address from
6105 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
6106 expect a super-aligned address for a fat or thin pointer.
6108 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
6110 * trans.c (call_to_gnu): Always set the source location on the call
6111 expression. If the function returns-by-target, also set it on the
6114 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
6116 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
6117 sections of non-supported Interix target.
6119 * s-osinte-interix.ads: Removed.
6121 * i-cstrin.ads (chars_ptr): Make it a C convention type.
6123 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
6125 * a-tasatt.adb: Add a comment at the beginning of the package
6126 explaining why in general 'Unchecked_Access must be used instead
6129 * sem_prag.adb (Process_Convention): Move the test for the
6130 entity on which the Convention pragma applies down to also
6131 forbid pragma Convention on enumeration literals reached
6134 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
6136 * a-tasatt.adb: Revert previous change for this file as it will
6137 generate an error when this package is instantiated from a
6140 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
6142 * a-tasatt.adb: Type Wrapper should be declared in comment instead
6143 of already declared type Node_Access.
6144 Use 'Access instead of 'Unchecked_Access when applicable. Local
6145 lifetime is the one of the package.
6146 (Set_Value): W is allocated on the heap.
6148 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
6150 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
6152 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
6155 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
6157 (elaboration code): Timer_Queue lifetime is the one of the
6160 * tracebak.c (i386 alternative): Remove useless comparaison
6161 which is always false; LOWEST_ADDRESS is 0 and is never greater
6162 than an unsigned integer.
6164 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
6165 embedded check for "Ada_Version >= Ada_05".
6167 2007-11-07 Olivier Hainque <hainque@adacore.com>
6169 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
6170 craft and expand comment.
6172 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
6174 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
6176 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
6178 * misc.c (gnat_handle_option): Replace call to abort with
6179 call to gcc_unreachable.
6180 (gnat_init): Likewise.
6181 (gnat_expand_expr): Likewise.
6182 (fp_prec_to_size): Likewise.
6183 (fp_size_to_prec): Likewise.
6185 2007-10-23 Richard Guenther <rguenther@suse.de>
6188 * tracebak.c: #undef abort after including system.h.
6190 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
6192 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
6193 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
6195 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
6197 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
6199 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
6200 Set the protection status of the guard page based on the value of On.
6202 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
6204 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
6205 (Exit_Task): Pass False to Hide_Yellow_Zone.
6207 2007-10-15 Robert Dewar <dewar@adacore.com>
6209 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6210 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
6211 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
6212 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
6213 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
6214 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
6215 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
6216 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
6217 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
6218 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
6219 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
6220 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
6221 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
6222 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
6223 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
6224 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
6226 Add Unreferenced and Warnings (Off) pragmas for cases of
6227 variables modified calls where they are IN OUT or OUT parameters and
6228 the resulting values are not subsequently referenced. In a few cases,
6229 we also remove redundant code found by the new warnings.
6231 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
6232 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
6233 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
6234 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
6235 warning controlled by -gnatw.o that warns on cases of out parameter
6236 values being ignored.
6238 2007-10-15 Geert Bosch <bosch@adacore.com>
6240 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
6242 * expect.c: Initial port to arm-mentor-nucleus.
6243 Use kill for __gnat_kill() on VMS.
6245 2007-10-15 Emmanuel Briot <briot@adacore.com>
6247 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
6249 (Xref_Record): Change type for Line, since in the case of a reference to
6250 a predefined entity (as happens for array index types), the line is set
6252 Add support for parsing multiple array index types info, or
6253 multiple inherited interfaces info. This information cannot be stored
6254 in Xref_Entity_Record, which only supports a single instance of Tref_*,
6255 and is therefore stored in the list of references instead. It has a
6256 special treatement later on in tools that use this information.
6258 2007-10-15 Tristan Gingold <gingold@adacore.com>
6260 * debug.adb: Document use of -gnatd.a and -gnatd.I
6262 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
6264 2007-10-15 Javier Miranda <miranda@adacore.com>
6266 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
6267 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
6268 care of access to class-wide interface types plus removal of bizarre
6269 conversion of tagged object to access type (reported by Gary
6270 Dismukes). After this patch there is no need to perform any
6271 additional management on these nodes in Expand_Interface_Actuals.
6273 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
6274 that handles use of 'Access and 'Unchecked_Access applied to
6275 actuals covering interface types. Such code is now
6276 centralized in Expand_N_Attribute_Reference.
6278 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6280 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
6281 of tagged types whose ultimate ancestor is a CPP type.
6282 (Freeze_Array_Type): For a packed array type, generate an initialization
6283 procedure if the type is public, to handle properly a client that
6284 specifies Normalize_Scalars.
6286 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6288 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
6289 inside a generic body, retrieve the full view of the entry family
6290 discrete subtype if available.
6292 2007-10-15 Thomas Quinot <quinot@adacore.com>
6294 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
6295 attempt to generate stubs for hidden primitive operations.
6297 2007-10-15 Vincent Celier <celier@adacore.com>
6299 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
6300 returning None, used when there is no platform specific body for
6303 2007-10-15 Bob Duff <duff@adacore.com>
6305 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
6306 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
6307 the generic Heap_Sort_G, in order to avoid trampolines.
6309 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
6310 Jose Ruiz <ruiz@adacore.com>
6312 * vx_stack_info.c: New file.
6314 * i-forbla-unimplemented.ads: New file.
6316 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
6317 for unsupported configurations; use it on VMS targets instead of the
6319 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
6320 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
6321 used by VxWorks targets to have access to task-specific data and be
6322 able to extract the stack boundaries for stack checking.
6323 Use system-vms-ia64.ads on ivms.
6325 * Make-lang.in: Update dependencies.
6327 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
6330 2007-10-15 Vincent Celier <celier@adacore.com>
6332 * snames.adb, snames.ads: Add new standard name runtime_library_dir
6334 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
6336 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
6338 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
6339 the source is unknown.
6341 * prj-ext.adb: Spelling error fix
6343 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
6344 95 reserved word in its name.
6345 (Process_Project_Level_Array_Attributes): Process new attribute
6346 Runtime_Library_Dir.
6348 * prj-part.adb (Parse_Single_Project): Do not check the name of the
6349 config project against the user project names.
6351 * prj-proc.adb (Expression): In multi-language mode, indexes that do
6352 not include a dot are always case insensitive.
6353 (Process_Declarative_Items): Ditto
6354 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
6357 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
6358 True, compare both indexes in lower case.
6360 2007-10-15 Robert Dewar <dewar@adacore.com>
6362 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
6364 2007-10-15 Gary Dismukes <dismukes@adacore.com>
6366 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
6367 association for an access component, add an association with null as
6368 the expression. Remove testing for array subtypes and the setting in
6369 that case of Ctyp to the array component type, which prevented proper
6370 inclusion of an association for null-initialized arrays. Collapse
6371 condition that tests for array subtypes into just a test of
6372 Is_Partially_Initialized_Type (which already covers arrays anyway).
6374 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6376 * sem_ch12.adb: Minor code reformatting.
6377 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
6378 find the parent package which may have been hidden by local
6381 2007-10-15 Gary Dismukes <dismukes@adacore.com>
6383 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
6384 flag of derived concurrent types, taking into account the flag setting
6385 on the parent subtype and any new set of discriminants.
6387 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6389 * sem_ch4.adb: Minor code and comment reformatting.
6390 (Analyze_Allocator): When the designated type of an unconstrained
6391 allocator is a record with unknown discriminants or an array with
6392 unknown range bounds, emit a detailed error message depending on the
6393 compilation mode and whether the designated type is limited.
6395 2007-10-15 Tristan Gingold <gingold@adacore.com>
6397 * system-vms-ia64.ads: New file.
6399 * system-vms_64.ads: Minor comment fix.
6401 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6403 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
6404 body generated for a function with a controlling result that is a null
6405 extension, discard the generated body in favor of the current explicit
6408 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6410 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
6411 examining its original form, to handle properly operator calls that
6412 have been rewritten.
6414 2007-10-15 Olivier Hainque <hainque@adacore.com>
6416 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
6417 instead of a procedure value in each traceback entry.
6419 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
6420 instead of procedure value to TBK$SYMBOLIZE.
6422 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
6424 (TB_Entry_For): Account for the PV/FP renaming.
6426 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
6428 (Null_TB_Entry): Account for change of component name.
6429 (PV_For): Rename as FP_For.
6431 2007-10-15 Tristan Gingold <gingold@adacore.com>
6433 * trans.c (gnat_to_gnu): Remove the padding structure more often.
6434 This optimize assignment to over-aligned record.
6436 2007-10-15 Emmanuel Briot <briot@adacore.com>
6438 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
6441 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
6442 type, for dispatching calls.
6444 2007-10-15 Vincent Celier <celier@adacore.com>
6445 Robert Dewar <dewar@adacore.com>
6447 * gnat_ugn.texi: Add documentation for switches --version and --help
6448 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
6449 gnatxref, gnatfind, gnatls, and gnatclean.
6451 Mention attribute Excluded_Source_Dirs
6452 Replace obsolescent attribute Locally_Removed_Files with attribute
6453 Excluded_Source_Files.
6454 Improve documentation of -u (gnatbind)
6455 Document how to do reliable stack checking for the environmental task
6458 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
6459 Document attribute Excluded_Source_Files and indicate that attribute
6460 Locally_Removed_Files is obsolescent.
6462 2007-10-15 Thomas Quinot <quinot@adacore.com>
6464 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
6467 Update documentation to note that OpenVMS 8.3 or later must be used
6468 to generate g-soccon-vms.ads.
6470 * atree.adb: Add ??? comment
6472 * exp_util.adb: Minor reformatting.
6473 Add ??? comment in Kill_Dead_Code.
6475 2007-10-15 Robert Dewar <dewar@adacore.com>
6477 * errout.ads: Comment clarification
6479 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6480 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
6482 * lib.ads: Comment update
6484 * init.c: Minor reformatting.
6486 * sem_attr.adb: Minor formatting
6488 * osint-b.ads: Minor reformatting
6490 * sem_ch9.adb: Implement -gnatd.I switch
6492 * g-comlin.adb: (Start): Fix handling of empty command line.
6494 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
6495 even when -rules follows the -cargs section.
6497 2007-10-08 Ollie Wild <aaw@google.com>
6499 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
6501 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
6503 (gnat_eh_runtime_type): Removed.
6504 (gnat_return_tree): New function.
6506 2007-10-08 Ben Elliston <bje@au.ibm.com>
6510 2007-08-31 Ben Elliston <bje@au.ibm.com>
6512 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
6513 when compiling for powerpc64-*-linux.
6514 * system-linux-ppc64.ads: New file.
6516 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
6518 Mapped location support
6519 * back_end.adb (Call_Back_End): Pass information about source
6520 files instead of units to gigi.
6521 * gigi.h (struct File_Info_Type): New.
6522 (gigi): Rename and change type of number_units parameter, change
6523 type of file_info_ptr parameter.
6524 * trans.c (number_files): New global variable.
6525 (gigi): Rename and change type of number_units parameter, change
6526 type of file_info_ptr parameter.
6527 If mapped location support is enabled, create the isomorphic mapping
6528 between source files and line maps.
6529 (Sloc_to_locus): If mapped location support is enabled, translate
6530 source location into mapped location.
6531 (annotate_with_node): Rename into set_expr_location_from_node.
6532 Call set_expr_location instead of annotate_with_locus.
6533 (Pragma_to_gnu): Adjust for above change.
6534 (Loop_Statement_to_gnu): Likewise.
6535 (call_to_gnu): Likewise.
6536 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6537 (gnat_to_gnu): Likewise.
6538 (add_stmt_with_node): Likewise.
6539 (add_cleanup): Likewise.
6540 * utils.c (gnat_init_decl_processing): Do not set input_line.
6542 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6544 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
6545 (Applicable_Use): Emit a warning when a package tries to use itself.
6546 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
6547 is already in use or the package where it is declared is in use or is
6548 declared in the current package.
6549 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
6551 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
6552 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
6553 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
6555 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6557 * a-calend-vms.adb, a-calend.adb:
6558 Add a section on leap seconds control along with two entities used to
6559 enable and disable leap seconds support. The array Leap_Second_Times is
6560 now constant and contains hard time values pre-generated. Remove
6561 all elaboration code used to populate the table of leap seconds.
6564 Add entity Leap_Seconds_Support to the list of global run-time variables
6565 along with a comment on its usage and values.
6566 (Gen_Adainit_Ada): Add code to generate the declaration and import of
6567 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
6568 or one (enabled) depending on the presence of binder switch "-y".
6569 (Gen_Adainit_C): Add code to generate the declaration of external int
6570 __gl_leap_seconds_support. Set is value to zero (disabled) or one
6571 (enabled) depending on the presence of binder switch "-y".
6573 * init.c: Add __gl_leap_seconds_support to the list of global values
6574 computed by the binder.
6576 2007-09-26 Jerome Guitton <guitton@adacore.com>
6578 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6579 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
6580 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6581 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
6583 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
6585 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
6586 function which can be called by the debugger to interrupt the tasks of
6587 an Ada application asynchronously, as needed on VxWorks.
6588 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
6590 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
6591 renamed from Stop_All_Tasks. Update comments.
6592 (Stop_All_tasks): New function declaration.
6594 2007-09-26 Olivier Hainque <hainque@adacore.com>
6596 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
6597 #include <utime.h> and #define GCC_RESOURCE_H before
6598 #include <sys/wait.h>.
6599 Add more protections in __gnat_translate_vms.
6601 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
6602 #include <sys/wait.h>.
6604 2007-09-26 Thomas Quinot <quinot@adacore.com>
6605 Sergey Rybin <rybin@adacore.com>
6607 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
6609 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6612 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6614 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6617 * sem_dist.ads: Minor comment fix
6619 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6621 2007-09-26 Javier Miranda <miranda@adacore.com>
6622 Eric Botcazou <ebotcazou@adacore.com>
6625 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
6626 indirection added to the HT_Link component of the TSD. This is required
6627 to statically allocate the TSD.
6630 Minor reordering of the declarations in the private part. Required to
6631 add a level of indirection to the contents of the TSD component HT_Link.
6632 This is required to statically allocate the TSD.
6634 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
6635 Is_Statically_Allocated set from constant objects.
6636 Do not make exported constants created by the compiler volatile.
6637 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
6640 * trans.c (Identifier_to_gnu): For constants, unshare initializers
6641 before returning them.
6643 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
6644 public part of the package.
6645 (Make_DT): Move HT_Link component out of the TSD record. For this
6646 purpose Make_DT now declares a separate object that stores the
6647 HT_Link value, and initializes the TSD component with the address
6648 of this new object. The addition of this level of indirection is
6649 required to statically allocate the TSD because the TSD cannot
6650 have variable components.
6651 (Expand_Interface_Conversion): Improve the expanded code.
6652 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
6654 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
6655 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
6656 if we are building static dispatch tables then we must not generate
6657 extra code to register the primitive because the dispatch table will
6658 be built at the end of the library package; otherwise we notify that
6659 we cannot build the static dispatch table.
6661 2007-09-26 Robert Dewar <dewar@adacore.com>
6663 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
6666 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
6667 (Analyze_Record_Representation_Clause): Suppress junk warning for
6668 missing component clause.
6669 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
6670 tests for controlled type overlay to composites with controlled
6672 (Analyze_Record_Representation_Clause): Add reference for component name
6674 2007-09-26 Javier Miranda <miranda@adacore.com>
6675 Gary Dismukes <dismukes@adacore.com>
6677 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
6678 for thunks associated with interface types.
6680 * einfo.ads: Improve documentatation of Is_Internal
6681 (Is_Thunk): New attribute applicable to subprograms. True for thunks
6682 associated with interface types.
6683 Extensive comment fixes regarding flags that appear in all entities. The
6684 documentation is now consistent for all such flags (there were a number
6685 of errors in the documentation in this regard).
6687 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
6689 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
6690 of these procedures are passed a function call that already has
6691 build-in-place actuals (testing new flag
6692 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
6693 the case where processing continues.
6694 (Expand_Call): If the call is generated from a thunk body then we
6695 propagate the extra actuals associated with the accessibility
6696 level of the access type actuals.
6698 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
6699 of each extra formal of a protected operation to reference the
6700 corresponding extra formal of the subprogram denoted by the
6701 operation's Protected_Body_Subprogram.
6703 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
6704 N_Function_Call nodes.
6706 2007-09-26 Robert Dewar <dewar@adacore.com>
6708 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
6710 * debug.adb: Add d.s flag.
6712 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6714 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
6715 debug variable so that it won't be initialized when pragma
6716 Initialize_Scalars is in effect.
6718 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6720 * freeze.adb (Freeze_Entity): Remove check for preelaborable
6721 initialization of a full view. This is moved to
6722 Analyze_Package_Specification.
6724 * sem_ch7.adb (Analyze_Package_Specification): Add check for
6725 preelaborable initialization of a full view in entity loop.
6726 (Uninstall_Declarations): If entity is a use-visible compilation unit,
6727 its child units are use-visible only if they are visible child units.
6729 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
6730 whether an expression can be used within a type declaration that
6731 requires preelaborable init.
6732 (Check_Components): Replace inline code that does partial checking for
6733 preelaborable default expressions with call to
6734 Is_Preelaborable_Expression.
6735 (Has_Preelaborable_Initialization): In the case of a generic actual
6736 subtype, (that is, Is_Generic_Actual is True), return the result of
6737 applying Has_Preelaborable_Initialization to the generic actual's base
6740 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6742 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
6743 call to Jan_1_Day _Of_Week to optimize its performance.
6744 (Is_Leap): Move the routine to the scope of Week_In_Year.
6745 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
6746 weekday on which January 1 falls of Year - 1 and Year + 1. This function
6747 avoids calling Time_Of and Split, thus making it more efficent.
6748 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
6750 * g-calend.ads (Week_In_Year): Change comment to reflect new
6753 2007-09-26 Emmanuel Briot <briot@adacore.com>
6755 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
6756 Command_Line): New types
6757 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
6758 support for defining how switches can be grouped on a command line (as
6759 is the case for -gnatw... for GNAT), and how simple switches can be
6760 used as aliases for more complex switches (-gnatwa is same as
6762 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
6763 (Start, Current_*): New subprograms
6764 Added support for parsing an array of strings in addition to the real
6766 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
6767 be moved from the body to the private part of the spec.
6768 (*): All subprograms now have an extra parameter with default value to
6769 specify which parser should be used. For backward compatibility, it
6770 defaults to parsing the command line of the application. They were also
6771 modified to properly handle cases where each of the argument does not
6772 start at index 1 (which is always true for Ada.Command_Line, but not
6773 when processing any Argument_List).
6774 (Free): New subprogram
6775 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
6776 Argument): New subprograms
6777 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
6778 special characters like ':', '=',... are now handled in a single place,
6779 which makes the code more extensible eventually.
6780 (Getopt, Full_Switch): When the switch was returned as part of the
6781 special character '*', make sure it is prepended by the switch character
6782 ('-' in general), so that the application knows whether "foo" or "-foo"
6783 was specified on the command line.
6785 2007-09-26 Florian Villoing <villoing@adacore.com>
6787 * g-dirope.adb (Remove_Dir): In case we are removing directories
6788 recursively, make sure that if an exception is raised during the
6789 processing, the current working directory is reset to its initial
6790 value before propagating the exception.
6792 2007-09-26 Vincent Celier <celier@adacore.com>
6794 * gnatbind.adb: If there are several ALI files specified and there is
6795 a main program to bind, the first ALI is expected to contain the main
6796 subprogram and the names of the binder generated files will be derived
6797 from the first ALI file name.
6798 (Gnatbind): Fix insertion character in invocation of Error_Msg
6800 2007-09-26 Vincent Celier <celier@adacore.com>
6802 * gnatcmd.adb (Check_Files): Do not include sources that have been
6803 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
6805 2007-09-26 Ed Schonberg <schonberg@adacore.com>
6807 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
6808 information about each of its index types, following the type
6809 reference for its component type.
6811 2007-09-26 Vincent Celier <celier@adacore.com>
6813 * make.adb: (Kill): New procedure (__gnat_kill imported)
6814 (Running_Compile, Outstanding_Compiles): Global variables that
6815 were previously local to procedure Compile_Sources.
6816 (Sigint_Intercepted): Send signal SIGINT to all outstanding
6817 compilation processes.
6819 (Gnatmake): If project files are used, create the mapping of all the
6820 sources, so that the correct paths will be found.
6822 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
6824 2007-09-26 Vincent Celier <celier@adacore.com>
6826 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
6828 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
6829 Replace components Compiler_Min_Options and Binder_Min_Options with
6830 Compiler_Required_Switches and Binder_Required_Switches in record
6832 Remove components Default_Language and Config in Project_Tree_Data,
6835 * prj-attr.adb: New attributes Required_Switches (<language>) in
6836 packages Compiler and Binder.
6838 * prj-nmsc.adb: Major rewrite of the processing of configuration
6839 attributes for gprbuild. No impact on GNAT tools.
6841 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
6842 process configuration attributes: this is done in Prj.Nmsc.Check.
6843 (Recursive_Process): Make a full copy of packages inherited from project
6844 being extended, instead of a shallow copy.
6845 (Process_Project_Tree_Phase_1): New procedure
6846 (Process_Project_Tree_Phase_1): New procedure
6847 (Process): Implementation now uses the two new procedures
6849 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
6850 from the project config, not the tree config that no longer exists.
6852 2007-09-26 Vincent Celier <celier@adacore.com>
6854 * Make-lang.in: Update dependencies..
6856 2007-09-26 Vincent Celier <celier@adacore.com>
6858 * osint.adb, osint.ads: Minor reformatting
6860 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
6862 2007-09-26 Gary Dismukes <dismukes@adacore.com>
6864 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
6865 message to cite use of <> in aggregate component associations rather
6866 than wrongly indicating use of limited aggregates.
6868 2007-09-26 Robert Dewar <dewar@adacore.com>
6870 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
6873 2007-09-26 Ed Schonberg <schonberg@adacore.com>
6875 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
6876 ancestor of the derived type, the operations are inherited from the
6877 primary dispatch table of the parent.
6878 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
6879 when the context is an explicit type conversion.
6881 2007-09-26 Ed Schonberg <schonberg@adacore.com>
6883 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
6884 rule for qualified expressions properly, to detect improper conversions
6885 and resolve some cases of overloading.
6887 2007-09-26 Ed Schonberg <schonberg@adacore.com>
6889 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
6890 proper kind of reference to the primitive operation, for better source
6892 (Valid_Conversion): A tagged conversion is legal if both operands are
6895 2007-09-26 Robert Dewar <dewar@adacore.com>
6897 * sem_warn.adb (Check_References): Catch more cases of unreferenced
6900 2007-09-26 Vincent Celier <celier@adacore.com>
6902 * snames.adb, snames.ads: Change Include_Option to Include_Switches
6904 2007-09-26 Robert Dewar <dewar@adacore.com>
6906 * s-wchstw.adb: provide messages for run time unit exceptions
6908 * a-witeio.adb: Minor reformatting
6910 * exp_ch13.adb: Minor reformatting
6912 2007-09-26 Sergey Rybin <rybin@adacore.com>
6914 * vms_data.ads: Revise gnatmetric qualifiers.
6915 Add qualified for the new gnatbind option '-y'
6917 * gnat_ugn.texi: Revise the gnatmetric section.
6918 Add entry for new gnatbind option '-y'.
6920 * gnat_rm.texi: Minor spelling correction.
6921 Document restriction on overlaying controlled types
6923 2007-09-26 Vincent Celier <celier@adacore.com>
6925 * makegpr.adb (Link_Executables): Do not fail when the root project has
6926 no sources, but is an extending project.
6928 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
6930 * trans.c: Fix misplaced #define.
6932 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
6934 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
6935 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
6937 2007-09-21 Olivier Hainque <hainque@adacore.com>
6939 * utils.c (type_for_nonaliased_component_p): Return false for
6940 all AGGREGATE_TYPEs.
6942 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
6944 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
6945 object covered by 13.3(19) volatile.
6947 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
6951 * utils.c (unchecked_convert): Use a subtype as the intermediate type
6952 in the special VIEW_CONVERT_EXPR case.
6954 2007-09-12 Robert Dewar <dewar@adacore.com>
6956 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
6958 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
6959 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
6960 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
6961 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
6962 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
6963 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
6964 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
6965 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
6966 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
6967 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
6968 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
6969 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
6970 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
6971 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
6972 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
6973 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
6974 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
6975 pragma Compiler_Unit and adds it to relevant library units.
6977 2007-09-12 Ed Schonberg <schonberg@adacore.com>
6979 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
6980 a box need not correspond to any component.
6982 2007-09-12 Robert Dewar <dewar@adacore.com>
6984 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
6985 the tasking version of the Ada run time when foreign threads are
6986 present and there are no explicit Ada tasks or tasking constructs.
6988 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
6990 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
6992 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
6993 the usage of switch -y.
6995 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
6996 when switch -y is present.
6998 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
6999 leap seconds in Ada.Calendar and its children.
7001 2007-09-12 Jose Ruiz <ruiz@adacore.com>
7003 * a-extiti.ads (Timer): The discriminant is a "not null access
7004 constant" in the Reference Manual.
7005 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
7007 2007-09-12 Robert Dewar <dewar@adacore.com>
7009 * a-swuwha.adb: Remove junk RM header
7011 2007-09-12 Vincent Celier <celier@adacore.com>
7013 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
7016 * g-bytswa.ads: Minor reformatting
7018 2007-09-12 Thomas Quinot <quinot@adacore.com>
7020 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
7021 Add new constant Thread_Blocking_IO, always True by default, set False
7022 on a per-runtime basis.
7023 (Need_Netdb_Buffer): New constant.
7025 2007-09-12 Arnaud Charlet <charlet@adacore.com>
7027 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
7028 Added renames for corresponding functions in System.Partition_Interface.
7030 2007-09-12 Doug Rupp <rupp@adacore.com>
7032 * Makefile.in: Remove VMS specific System.CRTL packages which are no
7035 * s-crtl-vms64.ads: Removed.
7037 2007-09-12 Olivier Hainque <hainque@adacore.com>
7039 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
7040 with discriminant constraints, generalize the code for BIT_FIELDs
7041 to PACKED fields of constant size and propagate DECL_PACKED.
7043 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
7045 * decl.c (array_type_has_nonaliased_component): New predicate.
7046 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
7047 set the TYPE_NONALIASED_COMPONENT flag on the type.
7048 <E_Array_Subtype>: Likewise.
7049 * gigi.h (type_for_nonaliased_component_p): Declare.
7050 * utils.c (type_for_nonaliased_component_p): New predicate.
7051 (create_field_decl): Invoke the above predicate to set the
7052 DECL_NONADDRESSABLE_P flag on the field.
7054 2007-09-11 Javier Miranda <miranda@adacore.com>
7056 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
7057 in library level record type entities if we are generating statically
7058 allocated dispatch tables.
7060 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
7061 importing/exporting the _tag declaration by new code
7062 importing/exporting the dispatch table wrapper. This change allows us
7063 to statically allocate of the TSD.
7064 (Make_DT.Export_DT): New procedure.
7065 (Build_Static_DT): New function.
7066 (Has_DT): New function.
7068 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
7069 True_Constant and Current_Value. Required to statically
7070 allocate the dispatch tables.
7071 (Check_Allocator): Make function iterative instead of recursive.
7072 Also return inner allocator node, when present, so that we do not have
7073 to look for that node again in the caller.
7075 2007-09-11 Jan Hubicka <jh@suse.cz>
7077 * misc.c (gnat_expand_body): Kill.
7078 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
7080 2007-09-10 Robert Dewar <dewar@adacore.com>
7082 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
7083 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
7084 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7085 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
7086 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
7087 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
7088 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
7089 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
7090 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
7091 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
7092 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
7093 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
7094 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
7095 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
7096 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
7097 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
7098 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
7099 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
7100 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
7101 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
7102 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
7103 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
7104 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
7105 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
7106 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
7107 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
7108 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
7109 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
7110 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
7111 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
7112 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
7113 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
7114 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
7115 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
7116 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
7117 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
7118 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
7119 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
7120 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
7121 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
7122 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
7123 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
7124 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
7125 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
7126 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
7127 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
7128 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
7129 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
7130 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
7131 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
7132 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
7133 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
7134 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
7135 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
7136 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
7137 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
7138 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
7139 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7140 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7141 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
7142 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
7143 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
7144 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
7145 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
7146 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
7147 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
7148 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
7149 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
7150 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
7151 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
7152 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
7153 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
7154 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
7155 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
7156 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
7157 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
7158 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
7159 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
7160 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
7161 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
7162 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
7163 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
7164 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
7166 2007-09-10 Emmanuel Briot <briot@adacore.com>
7168 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
7171 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
7173 * adaint.c (__gnat_translate_vms): new function.
7175 2007-09-10 Gary Dismukes <dismukes@adacore.com>
7176 Thomas Quinot <quinot@adacore.com>
7178 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
7179 create an abstract subprogram in the case of 'Input. For 'Output we now
7180 create a real spec/body when the type is abstract, since it can
7181 potentially be called.
7182 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
7183 body for 'Output when the type is abstract (only the creation of the
7184 body for 'Input is excluded when the type is abstract).
7185 (Stream_Operation_OK): Add an additional condition in the return
7186 statement, so that False will be returned for TTS_Stream_Input if the
7187 associated tagged type is an abstract extension. Add comments for
7189 (Expand_N_Object_Declaration): For the case of a shared passive
7190 variable, insert init proc call only after the shared variable
7191 procedures have been processed, because the IP call needs to undergo
7192 shared passive variable reference expansion, which requires these
7193 procedures to be available (and elaborated).
7195 2007-09-10 Vincent Celier <celier@adacore.com>
7197 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
7198 parameter Runtime_Project.
7200 2007-09-10 Ed Schonberg <schonberg@adacore.com>
7202 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
7203 given a box association, the type of the component is discriminated,
7204 and the value of the discriminant is the discriminant of the enclosing
7205 type, retrieve its value from the aggregate itself, where it must have
7208 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
7209 to remove other spurious ambiguities on arithmetic operations involving
7210 literals and addresses, on systems where Address is a visible integer
7211 type, when the operator is called in functional notation.
7212 (Try_Primitive_Operation): Within an instance, a call in prefixed form
7213 is legal when the types match, even if the operation is currently
7216 2007-09-10 Ed Schonberg <schonberg@adacore.com>
7218 * sem_ch12.adb (Build_Local_Package): A formal package with no
7219 associations is legal if all formals have defaults. It is not
7220 equivalent to a formal declared with a box.
7222 2007-09-10 Sergey Rybin <rybin@adacore.com>
7224 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
7226 2007-09-10 Sergey Rybin <rybin@adacore.com>
7228 * gnat_ugn.texi: Add description of the new '-lratio' option
7229 Update 7.3.1 section about availability of the feature.
7231 2007-09-10 Thomas Quinot <quinot@adacore.com>
7233 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
7236 2007-09-10 Olivier Hainque <hainque@adacore.com>
7238 * Makefile.in: (mips-irix section): Activate build of libgmem.
7240 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
7242 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
7245 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
7247 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
7248 a debug renaming declaration specially.
7250 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
7252 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
7253 which a constant renaming is treated as a normal object declaration.
7254 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
7255 the N_Indexed_Component case.
7256 <N_Indexed_Component>: Fall through to above case.
7257 <N_Object_Renaming_Declaration>: Return true for all composite types.
7259 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
7261 * decl.c (make_packable_type): If the new type has been given BLKmode,
7262 try again to get an integral mode for it.
7264 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
7266 Re-apply accidentally reverted change:
7268 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
7270 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7271 get_action_description_for): Replace _Unwind_Word with _uleb128_t
7272 and _Unwind_SWord with _sleb128_t.
7274 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
7276 * trans.c (convert_with_check): Update call to real_2expN.
7278 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
7280 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
7281 * utils.c (end_subprog_body): Likewise.
7283 2007-09-03 Nick Clifton <nickc@redhat.com>
7285 * Make-lang.in: Change copyright header to refer to version 3 of
7286 the GNU General Public License and to point readers at the
7287 COPYING3 file and the FSF's license web page.
7288 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
7289 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
7290 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
7291 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
7294 2007-08-31 Vincent Celier <celier@adacore.com>
7298 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
7299 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
7300 (Check_Version_And_Help): New procedure in package Switch to process
7301 switches --version and --help.
7302 Use Check_Version_And_Help in GNAT tools
7305 (Compile_Sources): Make sure that sources that are "excluded" are not
7307 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
7308 project file is used.
7309 (Version_Switch): Remove, moved to Switch
7310 (Help_Switch): Remove, moved to Switch
7311 (Display_Version): Remove, moved to Switch
7313 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
7314 package Switch to process switches --version and --help.
7315 (Display_Version): New procedure
7317 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
7319 2007-08-31 Javier Miranda <miranda@adacore.com>
7321 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
7324 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7326 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
7327 (Mark_Non_Null): If the node for which we just generated an access check
7328 is a reference to an *in* parameter and the reference appears in the
7329 declarative part of a subprogram body, mark the node as known non null.
7331 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7333 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
7334 structure of E_Exception to reflect the new flag.
7335 (Is_Raised, Set_Is_Raised): New inlined routines.
7336 Update the usage of available flag to reflect the addition of Is_Raised.
7337 (Is_Raised, Set_Is_Raised): Bodies of new routines.
7338 (Write_Entity_Flags): Write the status of flag Is_Raised.
7339 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
7340 spurious ambiguities when integer literals appear in the context of an
7341 address type that is a visible integer type.
7343 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
7344 exceptions never being raised.
7345 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
7348 2007-08-31 Javier Miranda <miranda@adacore.com>
7350 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
7351 statement when compiling under restriction No_Exceptions_Proparation.
7353 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7355 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
7356 initialization aggregate for the type, generate itype references for
7357 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
7359 2007-08-31 Gary Dismukes <dismukes@adacore.com>
7361 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
7362 library-level package renaming, pass the declaration associated with
7363 the renaming's special debug variable to Qualify_Entity_Names to ensure
7364 that its encoded name is properly qualified.
7366 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
7367 occurring in the list of entities to qualify, and do not attempt to
7368 traverse an entity list in that case. Variables associated with
7369 ` library-level package renamings can now occur in the table.
7371 * exp_dbug.ads: Revise documentation of the encoding for renaming
7374 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7376 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
7377 access type points to an unconstrained array.
7379 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7381 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
7384 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
7385 simple redundant qualifications. The check is performed whenever the
7386 expression is a non-overloaded identifier.
7387 (Resolve_Type_Conversion): Enchance the redundant type conversion check
7388 to include loop parameters.
7389 (Valid_Conversion): Avoid generation of spurious error message.
7391 2007-08-31 Bob Duff <duff@adacore.com>
7393 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
7394 concatenations of string literals into a single literal, in order to
7395 avoid very deep recursion in the front end, which was causing stack
7398 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
7399 string, and the right operand is a string literal (the case of "" &
7400 "..."), optimize by avoiding copying the right operand -- just use the
7401 value of the right operand directly.
7403 * stringt.adb (Store_String_Chars): Optimize by growing the
7404 String_Chars table all at once, rather than appending characters one by
7406 (Write_String_Table_Entry): If the string to be printed is very long,
7407 just print the first few characters, followed by the length. Otherwise,
7408 doing "pn(n)" in the debugger can take an extremely long time.
7410 * sem_prag.adb (Process_Interface_Name): Replace loop doing
7411 Store_String_Char with Store_String_Chars.
7413 2007-08-31 Vincent Celier <celier@adacore.com>
7415 * prj-attr.adb: Add new attribute Excluded_Source_Files
7417 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
7418 Locally_Removed_Files.
7420 * snames.ads, snames.adb: New standard name Excluded_Source_Files
7422 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7424 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
7425 clauses of subunits, ignore limited_with_clauses that are illegal and
7426 have not been fully analyzed.
7428 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7430 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
7431 flag, for effiency. It is called when analyzing arithmetic operators
7432 and also for actuals in calls that are universal_integers. The flag is
7433 set for the predefined type address, and for any type or subtype
7436 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
7437 Universal_Integer, when the formal is a descendent of address and the
7438 call appears in user code.
7439 (Analyze_Selected_Component): if the prefix is a private extension, the
7440 tag component is visible.
7442 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
7445 2007-08-31 Robert Dewar <dewar@adacore.com>
7447 * s-fileio.adb (Open): Normalize file name to lower case in non-case
7448 sensitive file name systems to avoid unexpected mismatch in Vista.
7450 2007-08-31 Vincent Celier <celier@adacore.com>
7452 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
7454 2007-08-31 Vincent Celier <celier@adacore.com>
7456 * symbols-vms.adb (Initialize): Read symbol files with continuation
7458 (Finalize): If symbol is long, split the line
7460 2007-08-31 Vincent Celier <celier@adacore.com>
7462 * fmap.ads: Minor comment updates
7464 2007-08-31 GNAT Script <nobody@adacore.com>
7466 * Make-lang.in: Makefile automatically updated
7468 2007-08-31 Bob Duff <duff@adacore.com>
7470 * sinfo.ads: Minor comment fix.
7472 2007-08-31 Thomas Quinot <quinot@adacore.com>
7474 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
7475 with implementation.
7476 Documentation cleanup only.
7478 2007-08-31 Sergey Rybin <rybin@adacore.com>
7480 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
7481 gnatpp '--separate-stmt-name' option.
7482 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
7485 * gnat_ugn.texi: Add description for the new gnatpp
7486 '--separate-stmt-name' and '--use-on-new-line' options.
7488 2007-08-31 Ben Elliston <bje@au.ibm.com>
7490 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7491 when compiling for powerpc64-*-linux.
7492 * system-linux-ppc64.ads: New file.
7494 2007-08-22 Krister Walfridsson <cato@df.lth.se>
7496 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
7499 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7501 * misc.c (gnat_type_max_size): Constify.
7503 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7505 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
7506 associated with Standard_Debug_Renaming_Type, to be used as the type of
7507 the special variables whose names provide debugger encodings for
7508 renaming declarations.
7510 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
7511 (Set_Debug_Renaming_Link): Change to set Node25.
7512 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
7513 (Write_Field25_Name): Add case for E_Variable to output
7514 "Debug_Renaming_Link".
7515 (Write_Field23_Name): Correct the output string for "Limited_View".
7517 * exp_dbug.adb: Add with and use of Tbuild.
7518 (Debug_Renaming_Declaration): Replace creation of an enumeration type
7519 and literal with creation of a variable of type
7520 Standard_Debug_Renaming_Type whose name encodes both the renamed object
7521 and the entity of the renaming declaration.
7522 (Qualify_Entity_Name): Add the delayed qualification of the entity name
7523 part of the name of a variable that has a Debug_Renaming_Link.
7525 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
7526 special type to be associated with variables that provide debugger
7527 encodings for renaming declarations.
7529 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7530 Ed Schonberg <schonberg@adacore.com>
7531 Javier Miranda <miranda@adacore.com>
7533 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
7534 ancestor part given by an aggregate to test for an unchecked conversion,
7535 since this can occur in some cases when the ancestor part is a function
7536 call, and we don't want to fall into the recursive call to this
7537 procedure in that case.
7539 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
7540 stream attributes on limited types to account for user-specified
7541 attributes as well as whether Input (resp. Output) becomes available
7542 due to Read (resp. Write) being available for the type. Change Boolean
7543 variable to the more accurate name
7544 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
7545 double-"not" predicate at beginning of return statement to more
7546 understandable form.
7548 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
7549 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
7550 in a block statement and use that as the first statement of the
7551 expanded return rather than incorrectly using the handled sequence as
7552 the first statement.
7554 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
7555 operation, generate an explicit freeze node for it rather than
7556 generating extra formals, to ensure that gigi has the proper order of
7557 elaboration for anonymous subtypes in the signature of the subprograms.
7558 (Build_In_Place_Formal): Move assertion to beginning of loop.
7559 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
7560 applied to a function call (occurs for some cases of 'Input).
7561 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
7562 applied to a function call (occurs for some cases of 'Input).
7564 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
7565 2005, generate an extended return statement enclosing the result object
7568 * freeze.adb (Freeze_Record_Type): Extend the current management of
7569 components that are access type with an allocator as default value: add
7570 missing support to the use of qualified expressions of the
7571 allocator (which also cause freezing of the designated type!)
7572 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
7573 dispatching operation, since extra formals may be needed by calls to
7574 build-in-place functions (such as stream 'Input).
7576 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
7577 formals for 'Constrained and accessibility level in the case of a
7578 predefined dispatching operation.
7580 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
7581 point, no need to find the parent node.
7583 2007-08-16 Javier Miranda <miranda@adacore.com>
7585 * exp_attr.adb (Attribute_Priority): Add missing support for entries
7588 2007-08-16 Javier Miranda <miranda@adacore.com>
7590 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
7591 is not really required and can introduce regression with the debugger.
7592 The original problem is fixed with the patch written for checks.adb.
7594 2007-08-16 Thomas Quinot <quinot@adacore.com>
7596 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
7597 Range_Check on Allocated_Table.
7599 2007-08-16 Vincent Celier <celier@adacore.com>
7601 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
7602 Including_Non_Switch set to False.
7603 (Gnatmake): For the compiler, call Test_If_Relative_Path with
7604 Including_Non_Switch set to False.
7606 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
7607 parameter Including_Non_Switch, defaulted to True. When
7608 Including_Non_Switch is False, options that are not switches and
7609 appear as relative path are not converted to absolute paths.
7611 2007-08-16 Nicolas Roche <roche@adacore.com>
7613 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
7616 * Make-lang.in: Update dependencies
7618 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
7620 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
7621 currently inspected is a selected component, retrieve the entity of
7623 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
7624 from the immediate ancestor of Main_Unit_Entity.
7625 (Install_Limited_Withed_Unit): Do not install the limited view of
7626 package P if P is reachable through an ancestor chain from package C
7627 and C also has a with clause for P in its body.
7628 (Has_Limited_With_Clause): New routine.
7629 (Has_With_Clause): New routine.
7631 2007-08-16 Ed Schonberg <schonberg@adacore.com>
7633 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
7634 generic for an enclosing instance is a global reference, even though
7635 its scope is the enclosing instance.
7637 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7638 Javier Miranda <miranda@adacore.com>
7640 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
7641 initialize a limited object.
7642 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
7644 Make sure Has_Complex_Representation is inherited by derived type.
7646 2007-08-16 Robert Dewar <dewar@adacore.com>
7648 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
7651 2007-08-16 Ed Schonberg <schonberg@adacore.com>
7653 * sem_disp.adb (Check_Dispatching_Operation): If the operation
7654 implements an operation inherited from a progenitor interface, verify
7655 that they are subtype-conformant.
7657 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
7658 Bob Duff <duff@adacore.com>
7659 Nicolas Setton <setton@adacore.com>
7661 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
7662 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
7663 the statement which is being resolved comes from a predefined library
7664 unit, all non-predefined library interpretations are skipped.
7665 (Resolve_Op_Concat): If string concatenation was folded in the parser,
7666 but the "&" is user defined, give an error, because the folding would
7669 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
7670 the parser has folded a long sequence of concatenations of string
7673 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
7674 and "JMP_BUF" variables as artificial.
7675 (N_String_Literal): Do not use alloca for very long string literals. Use
7676 xmalloc/free instead. Otherwise the stack might overflow.
7678 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
7681 2007-08-16 Vincent Celier <celier@adacore.com>
7683 * vms_conv.adb (Process_Argument): Ensure that project related options
7684 are not put in the -cargs section when using GNAT COMPILE.
7686 2007-08-16 Robert Dewar <dewar@adacore.com>
7688 * gnat_ugn.texi: Add note on preprocessing (output file not written)
7690 2007-08-16 Thomas Quinot <quinot@adacore.com>
7692 * a-tags.adb: Minor reformatting.
7694 2007-08-16 Bob Duff <duff@adacore.com>
7696 * sem_type.ads, sem_ch4.adb: Minor reformatting.
7698 2007-08-14 Thomas Quinot <quinot@adacore.com>
7700 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
7701 s-osinte-interix.ads, system-interix.ads: Removed.
7703 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7705 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
7706 calls to Check_Within_Time_Bounds.
7707 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
7708 (Difference): Account for possible rounding of the resulting difference
7710 2007-08-14 Robert Dewar <dewar@adacore.com>
7712 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
7713 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
7714 s-osinte-solaris.adb, s-osinte-solaris.ads,
7715 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
7717 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
7718 switch -gnatyS. Enable -gnatyS in GNAT style check mode
7720 2007-08-14 Robert Dewar <dewar@adacore.com>
7721 Ed Schonberg <schonberg@adacore.com>
7723 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
7724 Suppress unmodified in-out parameter warning in some cases
7725 This patch is a also fairly significant change to the way suppressible
7728 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
7729 needed for access to concurrent record types generated by the expander.
7730 (Generate_Range_Check): When generating a temporary to capture the
7731 value of a conversion that requires a range check, set the type of the
7732 temporary before rewriting the node, so that the type is always
7733 properly placed for back-end use.
7734 (Apply_Float_Conversion_Check): Handle case where the conversion is
7736 (Get_Discriminal): Code reformatting. Climb the scope stack looking
7737 for a protected type in order to examine its discriminants.
7739 2007-08-14 Robert Dewar <dewar@adacore.com>
7740 Gary Dismukes <dismukes@adacore.com>
7741 Ed Schonberg <schonberg@adacore.com>
7742 Thomas Quinot <quinot@adacore.com>
7744 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
7745 a-stwisu.adb, a-strsup.adb: Fix warnings for range
7746 tests optimized out.
7748 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
7749 (Get_Allocator_Final_List): For the case of an anonymous access type
7750 that has a specified Associated_Final_Chain, do not go up to the
7752 (Expand_N_Type_Conversion): Test for the case of renamings of access
7753 parameters when deciding whether to apply a run-time accessibility
7755 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
7756 aggregate code before allocator, and ahead of declaration for
7757 temporary, to prevent access before elaboration when the allocator is
7758 an actual for an access parameter.
7759 (Expand_N_Type_Conversion): On an access type conversion involving an
7760 access parameter, do not apply an accessibility check when the
7761 operand's original node was an attribute other than 'Access. We now
7762 create access conversions for the expansion of 'Unchecked_Access and
7763 'Unrestricted_Access in certain cases and clearly accessibility should
7764 not be checked for those.
7766 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
7767 includes a type conversion of a packed component that has been expanded,
7768 recover the original expression for the object, and use this expression
7769 in the post-call assignment statement, so that the assignment is made
7770 to the object and not to a back-end temporary.
7771 (Freeze_Subprogram): In case of primitives of tagged types not defined
7772 at the library level force generation of code to register the primitive
7773 in the dispatch table. In addition some code reorganization has been
7774 done to leave the implementation clear.
7775 (Expand_Call): When expanding an inherited implicit conversion,
7776 preserve the type of the inherited function after the intrinsic
7777 operation has been expanded.
7779 * exp_ch2.ads, exp_ch2.adb
7780 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
7781 of an entry formal appearing in an assignment statement does not assign
7783 (Expand_Current_Value): Instead of calling a routine to determine
7784 whether the prefix of an attribute reference should be optimized or
7785 not, prevent the optimization of such prefixes all together.
7787 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
7788 component whose prefix is known to be of an access type is an implicit
7789 dereference and does not assign to the prefix.
7791 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7792 Robert Dewar <dewar@adacore.com>
7794 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
7795 itype is visited, make an entry into table to link associated node and
7797 Add comments and correct harmless error in Build_NCT_Hash_Tables
7798 (Array_Aggr_Subtype): Associate each itype created for an index type to
7799 the corresponding range construct, and not to the aggregate itself. to
7800 maintain a one-to-one correspondence between itype and its associated
7801 node, to prevent errors when complex expression is copied.
7802 Fix mishandling of multiple levels of parens
7804 * sem_aggr.adb: Create a limited view of an incomplete type, to make
7805 treatment of limited views uniform for all visible declarations in a
7806 limited_withed package.
7807 (New_Copy_Tree): If hash table is being used and itype is visited,
7808 make an entry into table to link associated node and new itype.
7809 (Resolve_Record_Aggregate): Do not add an others box association for a
7810 discriminated record component that has only discriminants, when there
7811 is a box association for the component itself.
7813 * par-ch4.adb: Fix mishandling of multiple levels of parens
7815 2007-08-14 Robert Dewar <dewar@adacore.com>
7817 * comperr.adb: Fix problem with suppressing warning messages from gigi
7819 * erroutc.ads, erroutc.adb, errout.ads,
7820 errout.adb (Write_Eol): Remove trailing spaces before writing the line
7821 (Write_Eol_Keep_Blanks): New procedure to write a line, including
7822 possible trailing spaces.
7823 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
7824 Fix problem with suppressing warning messages from back end
7825 Improve handling of deleted warnings
7828 Fix problem with suppressing warning messages from back end
7829 Handle setting of Static_Dispatch_Tables flag.
7832 Fix problem with suppressing warning messages from back end
7834 * exp_intr.adb: Improve handling of deleted warnings
7836 2007-08-14 Robert Dewar <dewar@adacore.com>
7838 * debug.adb: Improve -gnatdI to cover all cases of serialization
7839 Add documentation of dZ, d.t
7841 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
7843 (Sprint_Node_Actual): Generate new output associated with implicit
7844 importation and implicit exportation of object declarations.
7846 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7847 Robert Dewar <dewar@adacore.com>
7848 Javier Miranda <miranda@adacore.com>
7849 Gary Dismukes <dismukes@adacore.com>
7851 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
7852 to make treatment of limited views uniform for all visible declarations
7853 in a limited_withed package.
7854 Improve warnings for in out parameters
7855 (Set_Related_Interaface/Related_Interface): Allow the use of this
7856 attribute with constants.
7857 (Write_Field26_Name): Handle attribute Related_Interface in constants.
7858 Warn on duplicate pragma Preelaborable_Initialialization
7860 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
7861 generation of a freezing node to ensure proper management of null
7862 excluding access types in the backend.
7863 (Create_Extra_Formals): Test base type of the formal when checking for
7864 the need to add an extra accessibility-level formal. Pass the entity E
7865 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
7866 originally being done in a couple of cases), to ensure that the
7867 Extra_Formals list gets set on the entity E when the first entity is
7869 (Conforming_Types): Add missing calls to Base_Type to the code that
7870 handles anonymous access types. This is required to handle the
7871 general case because Process_Formals builds internal subtype entities
7872 to handle null-excluding access types.
7873 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
7874 functions that need it, even when not marked Requires_Overriding.
7875 Improve warnings for in out parameters
7876 (Analyze_Function_Return): Warn for disallowed null return
7877 Warn on return from procedure with unset out parameter
7878 Ensure consistent use of # in error messages
7879 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
7880 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
7881 the implicit conversion of the expression done for anonymous access
7882 types. This is required to generate the code of the null excluding
7883 check (if required).
7885 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
7886 A formal parameter is never publicly referenceable outside of its body.
7887 (Check_References): For an unreferenced formal parameter in an accept
7888 statement, use the same warning circuitry as for subprogram formal
7890 (Warn_On_Unreferenced_Entity): New subprogram, taken from
7891 Output_Unreferenced_Messages, containing the part of that routine that
7892 is now reused for entry formals as described above.
7893 (Goto_Spec_Entity): New function
7894 (Check_References): Do not give IN OUT warning for dispatching operation
7895 Improve warnings for in out parameters
7896 (Test_Ref): Check that the entity is not undefinite before calling
7897 Scope_Within, in order to avoid infinite loops.
7898 Warn on return from procedure with unset out parameter
7899 Improved warnings for unused variables
7901 2007-08-14 Robert Dewar <dewar@adacore.com>
7902 Javier Miranda <miranda@adacore.com>
7903 Gary Dismukes <dismukes@adacore.com>
7905 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
7906 (Expand_N_Attribute_Reference): Further unify the handling of the
7907 three forms of access attributes, using common code now for all three
7908 cases. Add a test for the case of applying an access attribute to
7909 an explicit dereference when the context is an access-to-interface
7910 type. In that case we need to apply the conversion to the prefix
7911 of the explicit dereference rather than the prefix of the attribute.
7912 (Attribute_Version, UET_Address): Set entity as internal to ensure
7913 proper dg output of implicit importation.
7914 (Expand_Access_To_Type): Removed.
7915 (Expand_N_Attribute_Reference): Merge the code from the three cases
7916 of access attributes, since the processing is largely identical for
7917 these cases. The substantive fix here is to process the case of a
7918 type name prefix (current instance case) before handling the case
7919 of interface prefixes.
7921 2007-08-14 Thomas Quinot <quinot@adacore.com>
7922 Ed Schonberg <schonberg@adacore.com>
7923 Javier Miranda <miranda@adacore.com>
7924 Robert Dewar <dewar@adacore.com>
7926 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
7927 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
7928 type that is an anonymous access to controlled object, establish
7929 an associated finalization chain to avoid corrupting the global
7930 finalization list when a dynamically allocated object designated
7931 by such a component is deallocated.
7932 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
7933 functions that need it, even when not marked Requires_Overriding.
7934 (Initialize_Tag): Replace call to has_discriminants by call to
7935 Is_Variable_Size_Record in the circuitry that handles the
7936 initialization of secondary tags.
7937 (Is_Variable_Size_Record): New implementation.
7938 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
7939 Suppress_Initialization pragma for a derived type.
7940 (Is_Variable_Size_Record): New subprogram.
7941 (Build_Offset_To_Top_Functions): New implementation that simplifies the
7942 initial version of this routine and also fixes problems causing
7943 incomplete initialization of the table of interfaces.
7944 (Build_Init_Procedure): Improve the generation of code to initialize the
7945 the tag components of secondary dispatch tables.
7946 (Init_Secondary_Tags): New implementation that simplifies the previous
7947 version of this routine.
7948 (Make_DT): Add parameter to indicate when type has been frozen by an
7949 object declaration, for diagnostic purposes.
7950 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
7951 diagnose attemps to freeze a subprogram when some untagged type of its
7952 profile is a private type whose full view has not been analyzed yet.
7953 (Freeze_Array_Type): Generate init proc for packed array if either
7954 Initialize or Normalize_Scalars is set.
7955 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
7956 constructing the new profile, copy the null_exclusion indicator for each
7957 parameter, to ensure full conformance of the new body with the spec.
7959 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
7960 Create wrappers for constructor functions that need it, even when not
7961 marked Requires_Overriding.
7962 (Covers): Handle properly designated types of anonymous access types,
7963 whose non-limited views are themselves incomplete types.
7964 (Add_Entry): Use an entity to store the abstract operation which hides
7966 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
7967 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
7968 initialization aggregate.
7969 (Function_Interp_May_Be_Hidden): Rename to
7970 Function_Interp_Has_Abstract_Op.
7971 (Has_Compatible_Type): Remove machinery that skips interpretations if
7972 they are labeled as potentially hidden by an abstract operator.
7973 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
7974 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
7975 (Write_Overloads): Output the abstract operator if present.
7976 (Add_Entry): Before inserting a new entry into the interpretation table
7977 for a node, determine whether the entry will be disabled by an abstract
7979 (Binary_Op_Interp_May_Be_Hidden): New routine.
7980 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
7982 (Function_Interp_May_Be_Hidden): New routine.
7983 (Has_Compatible_Type): Do not consider interpretations hidden by
7984 abstract operators when trying to determine whether two types are
7986 (Has_Hidden_Interp): New routine.
7987 (Set_May_Be_Hidden_Interp): New routine.
7988 (Write_Overloads): Write the status of flag May_Be_Hidden.
7990 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7991 Javier Miranda <miranda@adacore.com>
7993 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
7994 types declared in the declarative part of a nested package body or in
7995 the proper body of a stub.
7996 (Set_All_DT_Position): Add missing check to avoid wrong assignation
7997 of the same dispatch table slot to renamed primitives.
7998 (Make_Select_Specific_Data_Table): Handle private types.
7999 (Tagged_Kind): Handle private types.
8000 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
8001 output of implicit importation and exportation.
8002 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
8003 first formal of the thunk is always associated with the controlling
8004 type. In addition perform the following code cleanup: remove formal
8005 Thunk_Alias which is no longer required, cleanup evaluation of the
8006 the controlling type, and update the documentation.
8007 Replace occurrence of Default_Prim_Op_Count by
8008 Max_Predef_Prims. Addition of compile-time check to verify
8009 that the value of Max_Predef_Prims is correct.
8010 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
8011 (Make_DT): Add parameter to indicate when type has been frozen by an
8012 object declaration, for diagnostic purposes.
8013 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
8014 construction of statically allocated dispatch tables.
8015 (Make_DT): In case of library-level tagged types export the declaration
8016 of the primary tag. Remove generation of tags (now done by Make_Tags).
8017 Additional modifications to handle non-static generation of dispatch
8018 tables. Take care of building tables for asynchronous interface types
8019 (Make_Tags): New subprogram that generates the entities associated with
8020 the primary and secondary tags of Typ and fills the contents of Access_
8021 Disp_Table. In case of library-level tagged types imports the forward
8022 declaration of the primary tag that will be declared later by Make_DT.
8023 (Expand_Interface_Conversion): In case of access types to interfaces
8024 replace an itype declaration by an explicit type declaration to avoid
8025 problems associated with the scope of such itype in transient blocks.
8027 2007-08-14 Robert Dewar <dewar@adacore.com>
8028 Ed Schonberg <schonberg@adacore.com>
8029 Javier Miranda <miranda@adacore.com>
8031 * exp_util.ads, exp_util.adb:
8032 This patch replaces a number of occurrences of explicit tests for N_Null
8033 with calls to Known_Null. This improves tracking of null values, since
8034 Known_Null also catches null constants, and variables currently known to
8035 be null, so we get better tracking.
8036 (Ensure_Defined): create an itype reference only in the scope of the
8038 (Side_Effect_Free): A selected component of an access type that
8039 denotes a component with a rep clause must be treated as not
8040 side-effect free, because if it is part of a linked structure its
8041 value may be affected by a renaming.
8042 (Expand_Subtype_From_Expr): For limited objects initialized with build
8043 in place function calls, do nothing; otherwise we prematurely introduce
8044 an N_Reference node in the expression initializing the object, which
8045 breaks the circuitry that detects and adds the additional arguments to
8046 the called function. Bug found working in the new patch for statically
8047 allocated dispatch tables.
8048 (Is_Library_Level_Tagged_Type): New subprogram.
8049 (Remove_Side_Effects): If the expression of an elementary type is an
8050 operator treat as a function call.
8051 (Make_Literal_Range): If the index type of the array is not integer, use
8052 attributes properly to compute the constraint on the resulting aggregate
8055 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
8056 class-wide type whose base type is an incomplete private type, leave
8057 class-wide type unfrozen so that freeze nodes can be generated
8058 properly at a later point.
8059 (Freeze_Entity, array case): Handle case of pragma Pack and component
8060 size attributre clause for same array.
8062 2007-08-14 Vincent Celier <celier@adacore.com>
8064 * prj.ads, prj.adb: Update Project Manager to new attribute names for
8066 Allow all valid declarations in configuration project files
8067 (Reset): Initialize all tables and hash tables in the project tree data
8068 Major update of the Project Manager and of the project aware tools,
8069 including gprmake, so that the same sources in the GNAT repository
8070 can be used by gprbuild.
8071 (Slash_Id): Change type to be Path_Name_Type
8072 (Slash): Return a Path_Name_Type instead of a File_Name_Type
8074 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
8076 Update Project Manager to new attribute names for ghprbuild
8077 Allow all valid declarations in configuration project files
8078 Major update of the Project Manager and of the project aware tools,
8079 including gprmake, so that the same sources in the GNAT repository
8080 can be used by gprbuild.
8083 Major update of the Project Manager and of the project aware tools,
8084 including gprmake, so that the same sources in the GNAT repository
8085 can be used by gprbuild.
8087 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8088 insensitive flag for attributes with optional index.
8089 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8090 array attribute, put the index in lower case.
8091 Update Project Manager to new attribute names for ghprbuild
8092 Allow all valid declarations in configuration project files
8093 Major update of the Project Manager and of the project aware tools,
8094 including gprmake, so that the same sources in the GNAT repository
8095 can be used by gprbuild.
8097 * prj-env.ads, prj-env.adb:
8098 Major update of the Project Manager and of the project aware tools,
8099 including gprmake, so that the same sources in the GNAT repository
8100 can be used by gprbuild.
8101 (Get_Reference): Change type of parameter Path to Path_Name_Type
8103 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
8104 removing '-' from the path to start with the first character of the
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 Major update of the Project Manager and of the project aware tools,
8110 including gprmake, so that the same sources in the GNAT repository
8111 can be used by gprbuild.
8113 * prj-nmsc.ads, prj-nmsc.adb:
8114 Update Project Manager to new attribute names for ghprbuild
8115 Allow all valid declarations in configuration project files
8116 (Search_Directories): Detect subunits that are specified with an
8117 attribute Body in package Naming. Do not replace a source/unit in the
8118 same project when the order of the source dirs are known. Detect
8119 duplicate sources/units in the same project when the order of the
8120 source dirs are not known.
8121 (Check_Ada_Name): Allow all identifiers that are not reserved words
8123 Major update of the Project Manager and of the project aware tools,
8124 including gprmake, so that the same sources in the GNAT repository
8125 can be used by gprbuild.
8126 (Look_For_Sources): If the list of sources is empty, set the object
8127 directory of non extending project to nil.
8128 Change type of path name variables to be Path_Name_Type
8129 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
8130 otherwise creating missing directories will fail.
8132 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
8133 prj-part.ads, prj-part.adb:
8134 Major update of the Project Manager and of the project aware tools,
8135 including gprmake, so that the same sources in the GNAT repository
8136 can be used by gprbuild.
8138 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8139 insensitive flag for attributes with optional index.
8140 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8141 array attribute, put the index in lower case.
8142 (Parse_Variable_Reference): Allow the current project name to be used in
8143 the prefix of an attribute reference.
8145 * prj-util.ads, prj-util.adb
8146 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
8147 defaulted to False. When True, always check against indexes in lower
8150 * snames.ads, snames.h, snames.adb:
8151 Update Project Manager to new attribute names for gprbuild
8152 Allow all valid declarations in configuration project files
8154 2007-08-14 Robert Dewar <dewar@adacore.com>
8155 Ed Schonberg <schonberg@adacore.com>
8157 * opt.ads: Warning for non-local exception propagation now off by
8159 New switch -gnatI to disable representation clauses
8160 Implement new pragma Implicit_Packing
8163 Warning for non-local exception propagation now off by default
8164 Add warning for unchecked conversion of pointers wi different
8166 New switch -gnatI to disable representation clauses
8168 * usage.adb: new switch -gnatyS
8170 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
8171 note that aggregates of anonymous array types are not flagged.
8172 -gnatwc now includes membership tests optimized away
8173 -gnatw.x warnings are now off by default
8174 Added conditional compilation Appendix
8175 Add documentation of -gnatI
8176 Add documentation for new -gnatyS style check
8177 Update documentation about SAL and auto-init on Windows.
8180 Add documentation for pragma Check_Name and 'Enabled attribute
8181 Document that Eliminate on dispatching operation is ignored
8182 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
8183 Document pragma Main
8184 Document pragma Implicit_Packing
8186 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
8187 different conventions
8188 New switch -gnatI to disable representation clauses
8190 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
8191 recognized, report the invalid characters including "-gnat" instead of
8192 just the first character in the switch.
8193 New switch -gnatI to disable representation clauses
8194 Set Warn_On_Object_Renames_Function true for -gnatg
8196 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
8197 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
8198 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
8199 to switch -aP (add directory to project search dir).
8201 * par-prag.adb: Implement new pragma Implicit_Packing
8203 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
8204 type as having a non-standard representation, to force expansion on
8205 conversion to related types.
8206 (Analyze_Pragma): Warn on misspelled pragma
8207 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
8208 Ensure consistent use of # in error messages
8209 Implement pragma Implicit_Packing
8211 2007-08-14 Olivier Hainque <hainque@adacore.com>
8212 Eric Botcazou <ebotcazou@adacore.com>
8214 * targtyps.c (get_target_maximum_default_alignment): New function.
8216 that the compiler might choose by default for a type or object.
8217 (get_target_default_allocator_alignment): New function. Alignment known
8218 to be honored by the target default allocator.
8219 (get_target_maximum_allowed_alignment): New function. Maximum alignment
8220 we might accept for any type or object on the target.
8221 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
8223 * gigi.h (get_target_maximum_default_alignment): Declare new function.
8224 (get_target_default_allocator_alignment): Likewise.
8225 (get_target_maximum_allowed_alignment): Likewise.
8228 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
8229 result of a function call, first try to use a stabilized reference for
8230 a constant renaming too.
8231 (validate_alignment): Use target_maximum_allowed_alignment instead of
8232 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
8233 (gnat_to_gnu_entity): Use common nodes directly.
8234 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
8235 alignment and size for the object.
8236 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
8237 and N_Procedure_Call_Statement.
8238 (takes_address): Rename to lvalue_required_p, add third parameter
8239 'aliased' and adjust recursive calls.
8240 <N_Indexed_Component>: Update 'aliased' from the array type.
8241 <N_Selected_Component>: New case.
8242 <N_Object_Renaming_Declaration>: New Likewise.
8243 (Identifier_to_gnu): Adjust for above changes.
8244 (maybe_stabilize_reference) <CONST_DECL>: New case.
8246 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
8247 between type variants.
8248 (build_simple_component_ref): Likewise.
8249 (build_call_alloc_dealloc): Use target_default_allocator_alignment
8250 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
8251 aligning type circuitry for allocations from the default storage pool.
8252 (build_allocator): Likewise.
8253 (build_simple_component_ref): Manually fold the reference for a
8254 constructor if the record type contains a template.
8256 * utils.c (value_zerop): Delete.
8257 (gnat_init_decl_processing): Emit debug info for common types.
8258 (rest_of_record_type_compilation): If a union contains a field
8259 with a non-constant qualifier, treat it as variable-sized.
8260 (finish_record_type): Give the stub TYPE_DECL a name.
8261 (rest_of_record_type_compilation): Likewise.
8262 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
8263 types are equivalent array types.
8264 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
8265 even if the type is not passed by reference.
8266 (static_ctors, static_dtors): Delete.
8267 (end_subprog_body): Do not record constructors and destructors.
8268 (build_global_cdtor): Delete.
8269 (gnat_write_global_declarations): Do not call build_global_cdtor.
8271 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
8272 -fRTS=rtp is specified.
8273 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
8276 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
8277 of the personality function with SJLJ exceptions.
8279 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
8280 the name of the personality function with SJLJ exceptions.
8282 2007-08-14 Robert Dewar <dewar@adacore.com>
8283 Ed Schonberg <schonberg@adacore.com>
8285 * par.ads, par.adb: Improve handling of extra right parens.
8286 (Par): Remove flag From_Limited_With_Clause.
8288 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
8289 Improve handling of extra right parens.
8291 2007-08-14 Robert Dewar <dewar@adacore.com>
8293 * par-tchk.adb (TF_Semicolon): Improve error recovery
8295 2007-08-14 Robert Dewar <dewar@adacore.com>
8296 Ed Schonberg <schonberg@adacore.com>
8298 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
8299 enumeration type, mark all literals as referenced.
8300 (Eval_Attribute, case 'Image): If the argument is an enumeration
8301 literal and names are available, constant-fold but mark nevertheless as
8303 Clean up function names.
8304 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
8306 (Requires_Simple_Name_Prefix): Removed.
8308 2007-08-14 Robert Dewar <dewar@adacore.com>
8309 Ed Schonberg <schonberg@adacore.com>
8311 * sem_ch11.adb: Improved warnings for unused variables
8313 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
8314 is a synchronized interface, the derived type is limited.
8315 (Analyze_Object_Declaration): Mark the potential coextensions in the
8316 definition and expression of an object declaration node.
8317 (Build_Derived_Type): For the completion of a private type declaration
8318 with a derived type declaration, chain the parent type's representation
8319 items to the last representation item of the derived type (not the
8320 first one) if they are not present already.
8321 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
8322 object declaration of forward references to tags.
8323 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
8324 subprogram types can appear as access discriminants of synchronized
8326 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
8327 given in prefixed form as a selected component.
8328 (Process_Discriminants): If not all discriminants have defaults, place
8329 error message on a default that is present.
8330 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
8331 extend a synchronized tagged type.
8332 Improved warnings for unused variables
8333 (Is_Visible_Component): Fix a visibility hole on a component inherited
8334 by a private extension when parent is itself declared as a private
8335 extension, and the derivation is in a child unit.
8336 (Find_Hidden_Interface): Move spec from the package body.
8338 2007-08-14 Robert Dewar <dewar@adacore.com>
8339 Ed Schonberg <schonberg@adacore.com>
8341 * sem_ch5.adb: Improve warnings on redundant assignments
8343 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
8345 (Is_Synchronized_Tagged_Type): New subprogram that returns true
8346 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
8347 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
8348 is set to False. Improves handling of Known_[Not_]Null.
8349 (Wrong_Type): Special case address arithmetic attempt
8350 (Collect_Abstract_Interfaces): Add new formal to allow collecting
8351 abstract interfaces just using the partial view of private types.
8352 (Has_Abstract_Interfaces): Add new formal to allow checking types
8353 covering interfaces using the partial view of private types.
8354 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
8355 component still needs to be defined in this case, but is never
8356 initialized as VMs are using other dispatching mechanisms.
8357 (Abstract_Interface_List): For a protected type, use base type to get
8359 Improve warnings on redundant assignments
8360 (Is_Variable): Handle properly an implicit dereference of a prefixed
8362 (Build_Actual_Subtype): If this is an actual subtype for an
8363 unconstrained formal parameter, use the sloc of the body for the new
8364 declaration, to prevent anomalises in the debugger.
8366 2007-08-14 Robert Dewar <dewar@adacore.com>
8368 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
8369 dispatching operation
8371 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8372 Gary Dismukes <dismukes@adacore.com>
8375 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
8376 expanded aggregate code before allocator, and ahead of declaration for
8377 temporary, to prevent access before elaboration when the allocator is
8378 an actual for an access parameter.
8379 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
8380 the TSD and the table of interfaces.
8381 (Convert_To_Assignments): Augment the test for delaying aggregate
8382 expansion for limited return statements to include the case of extended
8383 returns, to prevent creation of an unwanted transient scope.
8384 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
8385 (Expand_Array_Aggregate): Handle aggregates associated with
8386 statically allocated dispatch tables.
8387 (Expand_Record_Aggregate): Handle aggregates associated with
8388 statically allocated dispatch tables.
8389 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
8390 of anonymous access type.
8392 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8394 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
8395 is a variable that renames a slice, use the variable itself in the
8396 expannsion when the renamed expression itself may be modified between
8397 the declaration of the renaming and the array assignment.
8399 2007-08-14 Jerome Guitton <guitton@adacore.com>
8401 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8402 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
8403 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
8404 New functions; dummy implementations.
8406 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
8407 functions, used to implement the multi-tasks mode routines on VxWorks.
8409 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
8411 binding to the VxWorks routines which have changed between VxWorks 5
8413 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
8414 which are not callable from a RTP.
8416 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
8417 implemented for the multi-tasks mode on VxWorks 5 and 6.
8419 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
8421 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
8424 2007-08-14 Vincent Celier <celier@adacore.com>
8426 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
8427 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
8428 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
8429 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8430 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8431 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
8432 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
8434 (Major_Id_Name): New function.
8435 mlib-tgt.ads/mlib.tgt.adb:
8436 (Library_Major_Minor_Id_Supported): New function, default returns True
8437 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
8438 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
8439 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
8440 Implementation of Library_Major_Minor_Id_Supported returns False
8442 (Clean_Library_Directory): If major/minor ids are supported, clean all
8444 Major update of the Project Manager and of the project aware tools,
8445 including gprmake, so that the same sources in the GNAT repository
8446 can be used by gprbuild.
8448 2007-08-14 Olivier Hainque <hainque@adacore.com>
8450 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
8451 (GCC_ZCX_Support): Switch to True.
8453 * s-intman-solaris.adb (Notify_Exception): Call
8454 Adjust_Context_For_Raise before raising, as expected for signal
8455 handlers in general.
8457 * s-intman-posix.adb (Notify_Exception): Remove declaration of
8458 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
8459 to other implementation bodies.
8461 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
8462 be visible by multiple implementation bodies.
8464 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
8465 only for conditions coming from hardware.
8466 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
8467 adjustments to signal context prior to exception raise from signal
8469 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
8471 Solaris section: (__gnat_adjust_context_for_raise): New function.
8472 Implementation of the machine context adjustments to perform prior to
8473 raise from a signal handler. Version for both sparc and x86.
8474 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
8475 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
8476 prior to raising as expected for any handler, before possible nested
8477 faults to make sure all the contexts in a chain have been adjusted by
8478 the time we propagate.
8480 2007-08-14 Pascal Obry <obry@adacore.com>
8482 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
8483 (SYSTEM_INFO): New record.
8484 (SetThreadIdealProcessor): New imported routine needed for supporting
8485 task_info pragma on Windows.
8487 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
8488 info can be applied to the current host.
8489 (Create_Task): Set the ideal processor if information is present.
8491 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
8492 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
8494 2007-08-14 Olivier Hainque <hainque@adacore.com>
8496 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
8497 stack size and initial stack pointer value for a given task.
8498 (Enter_Task): Get the stack attributes of the task we are entering and
8499 let the stack checking engine know about them.
8501 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
8502 Let the stack-checking engine know about the initial sp value and stack
8503 size associated with the current task.
8504 (Set_Stack_Info): If a stack base has been notified for the current
8505 task, honor it. Fallback to the previous less accurate method otherwise.
8507 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
8509 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8511 * sem_ch10.adb: Create a limited view of an incomplete type, to make
8512 treatment of limited views uniform for all visible declarations in a
8513 limited_withed package.
8514 Set flag indicating that a subprogram body for a child unit has a
8516 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
8517 separate declaration, remove the unit name from visibility after
8518 compilation, so that environment is clean for subsequent compilations.
8519 (Install_Limited_Context_Clauses): Do not install a
8520 limited_private_with_clause unless the current unit is a body or a
8522 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
8523 in the same fashion.
8524 (Install_Limited_Withed_Unit): Do not install a limited with clause if
8525 it applies to the declaration of the current package body.
8526 (Remove_Private_With_Clauses): If there is a regular with_clause for
8527 the unit, delete Private_With_Clause from context, to prevent improper
8528 hiding when processing subsequent nested packages and instantiations.
8530 2007-08-14 Jose Ruiz <ruiz@adacore.com>
8532 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
8533 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
8534 representing absolute path names.
8535 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
8537 * cstreams.c (__gnat_full_name for VxWorks): Use
8538 __gnat_is_absolute_path to detect whether we need to add the current
8539 directory to normalize the path.
8541 2007-08-14 Javier Miranda <miranda@adacore.com>
8544 a-tags.adb (Displace): Associate a message with the raised CE
8546 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
8547 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
8548 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
8550 (Default_Prim_Op_Count): Removed.
8551 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
8552 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
8553 Remove pragma Inline_Always.
8555 * rtsfind.ads (Default_Prim_Op_Count): Removed
8556 (Max_Predef_Prims): New entity
8557 (RE_Expanded_Name): Removed
8558 (RE_HT_Link): Removed
8559 (RE_Iface_Tag): Remmoved
8560 (RE_Ifaces_Table): Removed
8561 (RE_Interfaces_Array): Removed
8562 (RE_Interface_Data_Element): Removed
8563 (RE_Nb_Ifaces): Removed
8564 (RE_RC_Offset): Removed
8565 (RE_Static_Offset_To_Top): Removed
8567 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
8569 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
8570 Prim_Op_Count by Max_Predef_Prims.
8572 2007-08-14 Thomas Quinot <quinot@adacore.com>
8573 Vincent Celier <celier@adacore.com>
8575 * binde.adb (Elab_All_Links): Remove unnecessary call to
8576 Generic_Separately_Compiled (if a unit satisfies this predicate, there
8577 won't be an associated Afile).
8578 (Elab_All_Links): Fail if a referenced unit cannot be found
8581 Fix comments in bindgen regarding consistency checks done in Bcheck:
8582 the checks are made across units within a partition, not across several
8584 Fix generation of C binder file for VxWorks.
8586 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
8587 Generic_May_Lack_ALI, more descriptive of the current use of the
8588 predicate, and update documentation.
8590 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
8591 reorganization and documentation update for the case of predefined
8592 library generics (for which we do not reference an Afile).
8594 2007-08-14 Robert Dewar <dewar@adacore.com>
8596 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
8597 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
8598 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
8599 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
8600 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
8601 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
8602 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
8603 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
8604 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
8605 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
8606 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
8607 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
8608 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
8609 g-altcon.adb: Minor reformatting
8611 ada-tree.h: Delete empty line.
8613 ali.ads: Minor reformatting
8614 Clarification of comments.
8615 Minor spelling correction
8617 * exp_dbug.adb: Add Warnings Off to suppress new warning
8619 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8622 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
8625 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
8627 * a-textio.ads: Reorder the standard input/output/error declarations
8630 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
8632 * par-ch2.adb: Recognize RM specially in errout
8633 Change 'R'M to RM in all error messages
8635 * scng.adb: Recognize RM specially in errout
8637 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
8638 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
8640 * s-direio.adb: Add missing routine header box.
8642 * sem_attr.ads: Add ??? comments
8644 * sem_eval.adb: Recognize RM specially in errout
8645 Change 'R'M to RM in all error messages
8647 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
8649 * s-tasinf.ads: Fix minor comment typo.
8651 * a-cihama.adb: Minor comment addition
8653 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8656 * s-tasinf-tru64.ads: Fix minor comment typo.
8658 * itypes.ads: Comment update.
8660 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
8663 * argv.c: Added protection against null gnat_argv and gnat_envp.
8665 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
8666 warning message when Tolerate_Consistency_Errors is True.
8668 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
8669 Any_Id, as this subprogram is only applicable to *type* entities (it
8670 sets RM_Size). Instead initialize just Esize and Alignment.
8672 2007-08-14 Bob Duff <duff@adacore.com>
8674 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
8675 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
8676 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
8677 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
8678 a-coorse.ads (Next): Applied pragma Inline.
8679 Make all Containers packages Remote_Types (unless they are already
8681 (Previous): applied pragma Inline
8682 (Elements_Type): is now a record instead of an array
8684 2007-08-14 Thomas Quinot <quinot@adacore.com>
8686 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
8688 (Set_Item): When the new item is an element of the currently allocated
8689 table passed by reference, save a copy on the stack if we're going
8690 to reallocate. Also, in Table.Set_Item, make sure we test the proper
8691 variable to determine whether to call Set_Last.
8693 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
8694 symbols-vms.adb, symbols-processing-vms-alpha.adb,
8695 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
8696 some occurrences of the pattern
8698 T.Table (T.Last) := Value;
8699 with a cleaner call to
8702 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8703 Gary Dismukes <dismukes@adacore.com>
8704 Thomas Quinot <quinot@adacore.com>
8706 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
8707 derived type with interface progenitors use the analyzed formal as the
8708 parent of the actual, to create renamings for all the inherited
8709 operations in Derive_Subprograms.
8710 (Collect_Previous_Instances): new procedure within of
8711 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
8712 unit being loaded, to ensure that the generation of global symbols is
8713 consistent in different compilation modes.
8714 (Is_Tagged_Ancestor): New function testing the ancestor relation that
8715 takes progenitor types into account.
8716 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
8717 traversing over the primitives of the formal and actual types to locate
8718 any abstract subprograms of the actual type that correspond to a
8719 nonabstract subprogram of the formal type's ancestor type(s), and issue
8720 an error if such is found.
8721 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
8722 Instantiate_Package_Body, Instantiate_Subprogram_Body):
8723 Remove bogus guard around calls to Inherit_Context.
8724 (Reset_Entity): If the entity is the selector of a selected component
8725 that denotes a named number, propagate constant-folding to the generic
8726 template only if the named number is global to the generic unit.
8727 (Set_Instance_Env): Only reset the compilation switches when compiling
8728 a predefined or internal unit.
8730 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8732 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
8733 parameter to determine whether operation applies to the prefix.
8734 (Complete_Object_Operation): If actual has an access type and
8735 controlling formal is not an in_parameter, reject the actual if it is
8736 an access_to_constant type.
8737 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
8738 type, the candidate operations are found in the scope of declaration of
8739 the type, because the type has no primitive subprograms.
8740 (Analyze_Selected_Component): If prefix is class-wide, and root type is
8741 a private extension, only examine visible components before trying to
8742 analyze as a prefixed call.
8743 Change Entity_List to Type_To_Use, for better readability.
8744 (Has_Fixed_Op): Use base type when checking whether the type of an
8745 operator has a user-defined multiplication/division
8746 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
8747 user-defined operators are available for fixed-point types.
8749 2007-08-14 Thomas Quinot <quinot@adacore.com>
8750 Ed Schonberg <schonberg@adacore.com>
8752 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
8753 formal At_Any_Place indicating, when True, that we want to test for
8754 availability of the stream attribute at any place (as opposed to the
8755 current visibility context only).
8756 (Missing_Read_Write_Attributes): A stream attribute is missing for the
8757 purpose of enforcing E.2.2(8) only if it is not available at any place.
8758 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
8759 when checking the legality of an extension aggregate in a preelaborable
8760 package. Treat the literal null as a valid default expression in a
8761 component declaration for a type with preelaborable initialization.
8762 A limited interface is a legal progenitor for the designated type of a
8763 remote access to class-wide type.
8765 2007-08-14 Thomas Quinot <quinot@adacore.com>
8766 Ed Schonberg <schonberg@adacore.com>
8768 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
8769 reference): Use correct entity as denoted entity for the selector of
8771 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
8772 setting the Referenced_As_LHS flag for entities that are implicitly
8774 (Find_Type): If the type is an internally generated incomplete type,
8775 mark the full view as referenced, to prevent spurious warnings.
8776 (Find_Selected_Component, Has_Components): Handle properly non-limited
8777 views that are themselves incomplete types.
8778 Handle interfaces visible through limited-with clauses.
8779 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
8780 subprogram generic actual for which we have generated a renaming.
8781 Warn when the renaming introduces a homonym of
8782 the renamed entity, and the renamed entity is directly visible.
8784 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8785 Hristian Kirtchev <kirtchev@adacore.com>
8787 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
8788 appear in the subtree to the current allocator if it is not a static
8790 (Resolve_Allocator): Perform cleanup if resolution has determined that
8791 the allocator is not a coextension.
8792 (Resolve): Skip an interpretation hidden by an abstract operator only
8793 when the type of the interpretation matches that of the context.
8794 (Resolve): When looping through all possible interpretations of a node,
8795 do not consider those that are hidden by abstract operators.
8796 (Resolve_Actuals): When verifying that an access to class-wide object
8797 is an actual for a controlling formal, ignore anonymous access to
8798 subprograms whose return type is an access to class_wide type.
8799 (Resolve_Slice): If the prefix of the slice is a selected component
8800 whose type depends on discriminants, build its actual subtype before
8801 applying range checks on the bounds of the slice.
8802 (Valid_Conversion): In an instance or inlined body, compare root types,
8803 to prevent anomalies between private and public views.
8804 (Resolve): Improve error message for ambiguous fixed multiplication
8805 expressions that involve universal_fixed multiplying operations.
8807 2007-08-14 Javier Miranda <miranda@adacore.com>
8808 Hristian Kirtchev <kirtchev@adacore.com>
8810 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
8811 location to allow the correct generation of errors in case of
8812 restrictions applied to the expanded code.
8813 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
8814 function if the condition does not reference them.
8815 (Expand_Entry_Body_Declarations): Mark the index constant as having a
8818 2007-08-14 Thomas Quinot <quinot@adacore.com>
8819 Pablo Oliveira <oliveira@adacore.com>
8821 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
8822 typecode parameters for a union (in a variant record), remove
8823 extraneous layer of Any wrapping for member label.
8824 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
8825 elabration statements, register the package with the name server
8826 at the beginning, not at the end, of the elaboration statements so
8827 that they can create remote access to subprogram values that designate
8828 remote subprograms from the package.
8830 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
8832 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
8833 values to compute the number of seconds since the Unix Epoc in order to
8834 account for Daylight Savings Time. Perform special processing for dates
8835 that are earlier than the Unix Epoc to obtain a negative number.
8837 2007-08-14 Emmanuel Briot <briot@adacore.com>
8839 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
8842 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
8844 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
8845 binder-generated file is not in Ada.
8846 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
8847 recorded in the ALI file.
8848 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
8850 2007-08-14 Vincent Celier <celier@adacore.com>
8852 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
8853 (Output_Source): Do nothing if parameter is No_Sdep_Id
8855 * make.adb (Gnatmake): Do not rebuild an archive simply because a
8856 shared library it imports has a later time stamp.
8857 (Check): Resolve the symbolic links in the path name of the object
8859 Check that the ALI file is in the correct object directory
8860 Check if a file name does not correspond to the mapping of units
8862 (Display_Version): New procedure
8863 (Initialize): Process switches --version and --help
8864 Use type Path_Name_Type for path name
8866 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
8868 * impunit.adb: Re-organize System.Random_Numbers and
8869 GNAT.Random_Numbers and add to builds.
8871 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
8873 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
8875 * a-assert.ads, a-assert.adb: New files.
8877 2007-08-14 Gary Dismukes <dismukes@adacore.com>
8879 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
8880 if AAMP_On_Target is True, then the size of the type encompasses two
8881 addresses (a static link and a subprogram address), except in the case
8882 of library-level access types.
8884 2007-08-14 Vincent Celier <celier@adacore.com>
8886 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
8888 (Write_Eol_Keep_Blanks): New procedure to write a line, including
8889 possible trailing spaces.
8890 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
8892 2007-08-14 Javier Miranda <miranda@adacore.com>
8894 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
8895 null-excluding access types.
8897 2007-08-14 Javier Miranda <miranda@adacore.com>
8899 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
8900 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
8901 of private types add missing check on matching interfaces in the
8902 partial and full declarations.
8903 (Analyze_Protected_Type): Code cleanup.
8904 (Analyze_Task_Type): Code cleanup.
8906 2007-08-14 Javier Miranda <miranda@adacore.com>
8908 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
8909 generated interface thunk.
8911 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8913 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
8914 obsolescent warning on application of 'Class to an incomplete type.
8916 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
8917 prevent obsolescent warning on application of 'Class to an incomplete
8920 2007-08-14 Pascal Obry <obry@adacore.com>
8922 * s-fileio.adb (Is_Open): Add check for usability of the underlying
8925 2007-08-14 Cyrille Comar <comar@adacore.com>
8927 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
8928 since it is potentially used in cases implying double finalization of
8931 2007-08-14 Jose Ruiz <ruiz@adacore.com>
8933 * s-tasini.adb (Get_Stack_Info): Move this function to
8934 System.Soft_Links.Tasking because it is common to the full and the
8935 restricted run times.
8936 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
8937 in SSL.Tasking.Init_Tasking_Soft_Links.
8939 * s-solita.adb (Get_Stack_Info): Function moved from
8940 System.Tasking.Initialization because it is common to the full and the
8941 restricted run times.
8942 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
8944 2007-08-14 Arnaud Charlet <charlet@adacore.com>
8946 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
8947 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
8948 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
8951 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
8954 2007-08-14 Gary Dismukes <dismukes@adacore.com>
8956 * s-veboop.adb (SU): New named number initialized to
8957 System.Storage_Unit.
8958 (True_Val): The initialization expression is revised to use SU (=
8959 Storage_Unit) rather than assuming 8 for the component size of an
8960 unpacked Boolean array.
8962 2007-08-14 Tristan Gingold <gingold@adacore.com>
8964 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
8966 * tb-ivms.c: New file.
8968 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
8970 2007-08-14 Geert Bosch <bosch@adacore.com>
8972 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
8973 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
8974 Add required linker pragmas for automatically linking with the gnalasup
8975 linear algebra support library, and the systems math library.
8976 Rename cdot to cdotu and zdot to zdotu.
8977 Update header comment to describe purpose of package.
8979 2007-08-14 Thomas Quinot <quinot@adacore.com>
8981 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
8982 an explicitly specified Associated_Final_Chain, use that list.
8983 (Expand_N_Package_Body): Build dispatch tables of library level tagged
8985 (Expand_N_Package_Declaration): Build dispatch tables of library level
8986 tagged types. Minor code cleanup.
8988 2007-08-14 Vincent Celier <celier@adacore.com>
8990 * gnatchop.adb (Terminate_Program): Remove exception and use
8991 Types.Terminate_Program instead.
8993 * osint.ads, osint.adb (Current_Exit_Status): New global variable
8994 (Find_Program_Name): Added protection against empty name.
8995 (OS_Exit_Through_Exception): New procedure
8997 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
8998 (OS_Exit_Default): New procedure that contains the previous
8999 implementation of procedure OS_Exit.
9000 (Final_Value): Remove obsolete Interix stuff.
9002 2007-08-14 Thomas Quinot <quinot@adacore.com>
9004 * g-socket.ads: Reorganize example code so that it also works on
9007 2007-08-14 Tristan Gingold <gingold@adacore.com>
9009 * g-trasym.ads: AIX now supports symbolic backtraces.
9011 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9013 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
9014 units being loaded to detect circularities. A circularity may be
9015 present even if the current chain of pending units to load starts from
9016 a limited_with_clause.
9018 * lib-load.ads: Change profile of Load_Unit to use a with_clause
9019 rather than a boolean flag, in order to detect circularities in
9022 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
9023 than propagating the From_Limited_With flag, in order to handle
9024 properly circularities involving with_clauses.
9026 2007-08-14 Nicolas Setton <setton@adacore.com>
9028 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
9031 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9033 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
9034 to build for libgnala.
9035 libgnat: Add rules to build libgnala.a
9036 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
9037 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
9038 Add s-osinte-vxworks-kernel.adb to the target pairs of the
9039 kernel run-time lib for VxWorks 6, which would provide a different
9040 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
9041 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
9042 running ZCX by default.
9043 Add g-sttsne-locking to LynxOS version.
9044 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
9045 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
9047 * system-darwin-x86.ads: New file.
9049 * Make-lang.in: Delete files before copying onto them, so if they are
9050 read-only, the copy won't fail.
9053 2007-08-14 Pascal Obry <obry@adacore.com>
9055 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
9058 2007-08-14 Vincent Celier <celier@adacore.com>
9060 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
9061 (Gcc): Initialize Gcc_Name at the first call
9063 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9065 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
9066 with_clauses of the enclosing unit when analyzing the package
9067 specification of a nested instance.
9069 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9071 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
9072 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
9073 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
9074 layout of N_Allocator.
9076 2007-08-14 Thomas Quinot <quinot@adacore.com>
9078 * rtsfind.adb (Check_RPC): Add PCS version check.
9080 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
9081 (Gnat_Free_Software): New function.
9083 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
9084 the PCS_Version value from s-parint, used to check that it is consistent
9085 with what exp_dist expects.
9087 * s-parint.ads (PCS_Version): New entity for checking consistency
9088 between exp_dist and PCS.
9090 * gen-soccon.c: (SO_REUSEPORT): New constant.
9092 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9094 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
9095 variable Sub_Second to Duration in order to accomodate a larger range
9096 of arithmetic operations.
9098 2007-08-14 Bob Duff <duff@adacore.com>
9100 * g-sttsne-locking.ads: Move comments from spec to body.
9101 * g-sttsne-locking.adb: Move comments from spec to body.
9102 * g-sttsne-vxworks.ads: Removed.
9103 * g-sttsne-vxworks.adb: Removed.
9105 2007-08-11 Ian Lance Taylor <iant@google.com>
9107 * misc.c (gnat_get_alias_set): Change return type to
9110 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9112 * decl.c, utils2.c: Fix whitespace in last change.
9114 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9116 * decl.c (compare_field_bitpos): Constify.
9117 * utils2.c (compare_elmt_bitpos): Likewise.
9119 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
9121 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
9122 anonymous access type.
9123 (pthread_sigmask): Now take an access sigset_t.
9125 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
9127 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
9129 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
9131 PR tree-optimization/25737
9132 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
9134 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
9136 * trans.c (Attribute_to_gnu): When subtracting an
9137 offset from a pointer, use POINTER_PLUS_EXPR with
9138 NEGATE_EXPR instead of MINUS_EXPR.
9139 (gnat_to_gnu): Likewise.
9140 * utils.c (convert): When converting between
9141 thin pointers, use POINTER_PLUS_EXPR and sizetype
9143 * utils2.c (known_alignment): POINTER_PLUS_EXPR
9144 have the same semantics as PLUS_EXPR for alignment.
9145 (build_binary_op): Add support for the semantics of
9146 POINTER_PLUS_EXPR's operands.
9147 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
9149 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
9151 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
9152 of get_signed_or_unsigned_type.
9153 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
9155 2007-06-11 Bob Duff <duff@adacore.com>
9156 Thomas Quinot <quinot@adacore.com>
9158 * g-stsifd-sockets.adb (Create): Work around strange behavior of
9159 'bind' on windows that causes 'connect' to fail intermittently, by
9160 retrying the 'bind'.
9161 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9163 2007-06-10 Duncan Sands <baldrick@free.fr>
9165 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
9166 than to void, for the fields when making a new fat pointer type.
9167 (gnat_substitute_in_type): Now substitute_in_type.
9168 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
9169 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
9170 * utils.c (update_pointer_to): Update fat pointers by updating the
9171 dummy node pointers used for the fields.
9173 2007-06-06 Thomas Quinot <quinot@adacore.com>
9174 Bob Duff <duff@adacore.com>
9176 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
9177 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
9178 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
9179 constant Thread_Blocking_IO, always True by default, set False
9180 on a per-runtime basis.
9181 (Need_Netdb_Buffer): New constant.
9183 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
9184 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
9187 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
9188 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
9189 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
9190 child package Task_Safe_NetDB
9191 (Host_Error_Messages): Add stub body.
9192 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9194 * g-soccon-mingw.ads: Add Windows-specific constants.
9195 (Need_Netdb_Buffer): New constant.
9196 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
9197 wrapper and import inet_addr(3) from the standard sockets library
9199 (In_Addr): Add alignment clause.
9200 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9202 2007-06-06 Robert Dewar <dewar@adacore.com>
9204 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9205 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
9206 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
9207 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
9208 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
9209 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
9210 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
9211 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
9212 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
9213 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
9214 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
9215 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
9216 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
9217 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
9218 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
9219 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
9220 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
9221 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
9222 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
9223 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
9224 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
9225 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
9226 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
9227 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
9228 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
9229 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
9230 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
9231 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
9232 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
9233 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
9234 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
9235 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
9236 Unchecked_* by Ada.Unchecked_*
9238 2007-06-06 Robert Dewar <dewar@adacore.com>
9240 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
9241 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
9242 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
9243 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
9244 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
9245 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
9247 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
9248 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
9249 s-tasloc.adb, s-tasloc.ads: New files.
9251 2007-06-06 Bob Duff <duff@adacore.com>
9254 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
9255 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
9256 (Send_Signal, Close): Raise Invalid_Process if the process id is
9258 (Pattern_Matcher_Access): Is now a general access type to be able to
9261 2007-06-06 Thomas Quinot <quinot@adacore.com>
9262 Arnaud Charlet <charlet@adacore.com>
9264 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
9265 (SIGEMT is now used instead of SIGTERM on AIX).
9267 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
9268 (Time_Slice_Supported): Set to True.
9269 Use SIGEMT instead of SIGTERM as SIGADAABORT.
9271 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9273 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
9274 (Time, Time)): Use To_Relative_Time rather than manual calculation to
9275 express the bounds of Duration as Time. Raise Time_Error when the
9276 result is greater or equal to the higher bound of Duration (on the
9278 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
9280 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
9282 ("-" (Time, Time)): Reorder code.
9283 (All_Leap_Seconds): Removed.
9284 (Arithmetic_Operations.Add): Remove sign related kludge.
9285 (Arithmetic_Operations.Difference): Control the leaps seconds processing
9286 with flag Leap_Support.
9287 (Arithmetic_Operations.Subtract): Remove sign related kludge.
9288 (Check_Within_Time_Bounds): New procedure.
9289 (Clock): Control the leap seconds processing with flag Leap_Support.
9290 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
9291 (Formatting_Operations.Split): Control the leap seconds processing with
9293 (Formatting_Operations.Time_Of): Control the leaps seconds processing
9294 with flag Leap_Support. Adjust the year, month and day (if applicable)
9295 when the value of day seconds designates a new day.
9296 (Split): Use parameter associations for better readability. Integrate
9298 (Time_Of): Use parameter associations for better readability. Integrate
9301 * a-calfor.adb (Split): Use parameter associations for better
9302 readability. Integrate flag Is_Ada_05.
9303 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
9304 better readability. Integrate flag Is_Ada_05.
9306 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9308 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
9309 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
9310 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
9311 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
9312 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
9313 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
9314 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
9315 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
9316 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
9317 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9318 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
9319 time when entering this routine to detect a backward clock setting
9320 (manual setting or DST adjustment), to avoid waiting for a longer delay
9322 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
9323 Remove handling of deferred priority change, and replace by setting the
9324 task priority directly, as required by AI-188.
9326 (Max_Task_Image_Length): New constant.
9327 Replace Warnings (Off) by Unreferenced pragma, cleaner.
9328 (Dynamic_Priority_Support): Removed, no longer needed.
9329 (Poll_Base_Priority_Change): Ditto.
9330 (Set_Ceiling): Add this procedure to change the ceiling priority
9331 associated to a lock. This is a dummy implementation because dynamic
9332 priority ceilings are not supported by the underlying system.
9334 * a-dynpri.adb (Set_Priority): Take into account case where Target is
9335 accepting a RV with its priority boosted.
9336 Remove handling of deferred priority change, and replace by setting the
9337 task priority directly, as required by AI-188.
9339 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
9341 Remove handling of deferred priority change, and replace by setting the
9342 task priority directly, as required by AI-188.
9343 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
9346 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
9347 (Poll_Base_Priority_Change): Removed.
9348 Code clean up: use SSL.Current_Target_Exception.
9350 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
9351 to run as this is a potentially dispatching point.
9352 (Call_Synchronous): Use Local_Defer_Abort.
9353 (Callable): Relax assertion.
9354 (Selective_Wait): Relax assertion in case abort is not allowed.
9355 Remove handling of deferred priority change, and replace by setting the
9356 task priority directly, as required by AI-188.
9358 * s-tasuti.adb (Make_Passive): Adjust assertions.
9359 Remove handling of deferred priority change, and replace by setting the
9360 task priority directly, as required by AI-188.
9362 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9364 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
9365 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
9366 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
9367 system-vxworks-mips.ads, system-vxworks-alpha.ads,
9368 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
9369 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
9370 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
9371 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
9372 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
9373 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
9374 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
9375 This patch changes the largest non-binary modulus from 2**31-1 to
9377 (Compiler_System_Version): Removed, no longer used.
9378 Clean up system files by removing flags only used on a single target.
9379 Also remove obsolete flags, only used during bootstrap from system.ads
9380 (Address): Add a pragma Preelaborable_Initialization.
9382 * system-aix.ads: Ditto.
9383 (GCC_ZCX_Support): Set to true.
9384 Update priority range on AIX and map Ada priorities to target
9385 priorities appropriately for different scheduling policies.
9387 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
9389 2007-06-06 Vincent Celier <celier@adacore.com>
9391 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
9392 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
9394 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
9395 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
9396 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
9397 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
9398 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
9399 MLib.Tgt, containing the default versions of the exported subprograms.
9400 For each platform, create a specific version of the body of new child
9401 package MLib.Tgt.Specific that contains only the body of subprograms
9402 that are different from the default.
9403 (Archive_Builder_Append_Options): New function.
9405 2007-06-06 Matthew Gingell <gingell@adacore.com>
9407 * s-osinte-aix.adb: Map Ada priorities to target priorities
9408 appropriately for different scheduling policies.
9410 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9412 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
9414 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9415 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
9417 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
9419 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
9420 Noop on VMS, added for interface commonality.
9422 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
9423 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9424 Olivier Hainque <hainque@adacore.com>
9426 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
9427 renamed expression of a full renaming at toplevel.
9428 (gnat_to_gnu_entity, case object): If not defining, do not look inside
9429 the values the constant is initialized to if it is an N_Allocator.
9430 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
9431 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
9432 (make_aligning_type): Accept an extra ROOM argument for storage to be
9433 made available before the aligned field, and an extra BASE_ALIGN
9434 argument for callers to pass the alignment guaranteed to be honored for
9435 the whole aligning object. Avoid call to finish_record_type, which only
9436 interferes with the sizes we want to set.
9437 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
9438 make_aligning_type for super-aligned objects on stack.
9439 (components_to_record): Pass the adjusted size of the type when creating
9440 fields in the qualified union for the variant part.
9441 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
9442 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
9444 (maybe_pad_type): Set TYPE_USER_ALIGN.
9445 (make_aligning_type): Likewise.
9446 ALIGN argument is unsigned int.
9447 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
9448 (gnat_to_gnu_param): Likewise, for parameters.
9449 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
9450 if it is constant and stems from a function call.
9451 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
9452 of the record is specified. Adjust accordingly.
9453 (adjust_packed): New static function.
9454 (gnat_to_gnu_field): Use it to adjust the packedness setting.
9455 (components_to_record): Likewise.
9456 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
9457 side-effects if the object is deemed constant.
9458 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
9459 type instead of merely finalizing it. Tidy.
9460 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
9461 <E_Access_Type>: Likewise.
9462 (defer_debug_incomplete_list): Rename to defer_finalize_list.
9463 (defer_debug_level): Delete.
9464 (gnat_to_gnu_entity) <debug_deferred>: Likewise
9465 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
9467 <E_Record_Type>: Do not explicitly defer finalizing the type.
9468 Adjust for write_record_type_debug_info renaming.
9469 <E_Subprogram_Type>: Likewise.
9470 Finalize deferred types right after deferred incomplete types are
9472 (rest_of_type_decl_compilation): New global function.
9473 (components_to_record): Rename defer_debug parameter to do_not_finalize.
9474 (components_to_record): Propagate the packedness to the fields of the
9475 qualified union type if there is a variant part.
9476 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
9477 instead of inline code to adjust the XUT field offsets.
9478 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
9479 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
9480 and write the debug info if the type derives from a discriminated one.
9481 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
9482 <E_Array_Subtype>: Likewise.
9483 <E_String_Literal_Subtype>: Likewise.
9484 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
9485 an alignment clause.
9486 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
9487 before giving warning.
9488 (prepend_one_attribute_to): New function, helper to prepend an attribute
9489 to an attribute list.
9490 (gnat_to_gnu_entity) <E_Procedure>: Use it.
9491 (prepend_attributes): Likewise.
9492 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
9493 <E_Array_Type>: Declare the padding type for the element type, if any.
9494 <E_Array_Subtype>: Likewise.
9495 (defer_limited_with): New variable.
9496 (Gigi_Equivalent_Type): New function.
9497 (gnat_to_gnu_entity): Use it at start and use result throughout.
9498 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
9499 Gigi_Equivalent_Type, support Limited_With, allow two levels of
9500 indirection, precompute if unconstrained array to simplify logic, and
9501 use defer_limited_with to defer elaboration of some types from limited
9503 (finalize_from_with_types): New function.
9505 2007-06-06 Gary Dismukes <dismukes@adacore.com>
9506 Eric Botcazou <ebotcazou@adacore.com>
9507 Tristan Gingold <gingold@adacore.com>
9508 Olivier Hainque <hainque@adacore.com>
9510 * trans.c (Identifier_to_gnu): Change test for deferred constant by
9511 adding guard that the entity is an E_Constant before testing presence
9512 of Full_view (and remove unnecessary test that entity is not a type).
9513 For a CONST_DECL used by reference, manually retrieve
9514 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
9515 (struct language_function): Move from utils.c to here.
9516 (struct parm_attr): New structure.
9517 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
9518 (f_parm_attr_cache): New macro.
9519 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
9520 expressions for the 'First, 'Last and 'Length attributes of the
9521 unconstrained array IN parameters.
9522 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
9523 Allocate the information structure for the function earlier, as well
9524 as the language-specific part.
9525 If the parameter attributes cache has been populated, evaluate the
9526 cached expressions on entry.
9527 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
9528 N_Procedure_Call_Statement and N_Indexed_Component.
9529 (Pragma_to_gnu): Translate inspection_point to an asm statement
9530 containaing a comment and a reference to the object (either its address
9531 for BLKmode or its value).
9532 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
9533 to go to DECL_INITIAL. Together with the size constraint relaxation
9534 in create_var_decl, enlarges the set of situations in which an
9535 identifier may be used as an initializer without implying elaboration
9537 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
9538 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
9540 (maybe_stabilize_reference): Remove lvalues_only parameter.
9541 (gnat_stabilize_reference): Adjust for above change.
9542 (gnat_to_gnu): Do not set location information on the result
9543 if it is a reference.
9544 (add_cleanup): Add gnat_node parameter and set the location of the
9546 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
9547 (Exception_Handler_to_gnu_zcx): Likewise.
9548 (gigi): Remove the cgraph node if the elaboration procedure is empty.
9549 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
9550 the former right after the latter.
9551 (start_stmt_group): Make global.
9552 (end_stmt_group): Likewise.
9553 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
9555 (gnu_program_error_label_stack): Likewise.
9556 (gigi): Initialize them.
9557 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
9558 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
9560 (push_exception_label_stack): New function.
9561 (takes_address): New function.
9563 * utils.c (struct language_function): Move to trans.c from here.
9564 (unchecked_convert): Do not wrap up integer constants in
9566 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
9567 the latter for aggregate types, unexpected by later passes, and relax an
9568 arbitrary size constraint on the former.
9569 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
9570 to compare the sizes.
9571 (convert_vms_descriptor): When converting to a fat pointer type, be
9572 prepared for a S descriptor at runtime in spite of a SB specification.
9573 (shift_unc_components_for_thin_pointers): New function.
9574 (write_record_type_debug_info): For variable-sized fields, cap the
9575 alignment of the pointer to the computed alignment.
9576 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
9577 If REP_LEVEL is 2, do not compute the sizes.
9578 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
9579 (build_unc_object_type): Likewise.
9580 (declare_debug_type): New function.
9582 * ada-tree.def: USE_STMT: removed (not emitted anymore).
9584 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
9585 no statement is expandable anymore.
9586 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
9587 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
9588 when the user requested it explicitely.
9589 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
9591 (get_alias_set): Return alias set 0 for a type if
9592 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
9594 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
9595 (DECL_FUNCTION_STUB): New accessor macro.
9596 (SET_DECL_FUNCTION_STUB): New setter macro.
9598 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
9600 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
9603 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9605 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
9606 Rename to Abort_Task_Interrupt to be able to keep the same interface
9607 as the rest of the targets.
9609 * s-osinte-vxworks.ads s-osinte-vxworks.adb
9610 (To_VxWorks_Priority): Remove explicit "in" mode indicator
9612 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
9615 2007-06-06 Robert Dewar <dewar@adacore.com>
9617 * a-chahan.ads: Remove obsolescent pragmas
9619 * a-chlat1.ads: Minor reformatting
9621 2007-06-06 Robert Dewar <dewar@adacore.com>
9623 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
9626 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
9629 * errout.ads (Finalize): Changed interface
9630 (Output_Messages): New procedure
9631 (Compilation_Errors): New Interface
9633 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
9634 Finalize/Output_Messages interface for Errout
9635 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
9638 2007-06-06 Thomas Quinot <quinot@adacore.com>
9639 Olivier Hainque <hainque@adacore.com>
9640 Robert Dewar <dewar@adacore.com>
9642 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
9644 (Raise_Current_Excep): Call Debug_Raise_Exception just before
9645 propagation starts, to let debuggers know about the event in a reliable
9647 (Local_Raise): Moved to System.Exceptions
9648 More convenient to have this as a separate unit
9650 * s-except.adb, s-except.ads: New files.
9652 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
9653 Debug_Unhandled_Exception in System.Exceptions where it belongs
9654 together with a couple of other debug helpers.
9655 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
9656 the former Unhandled_Exception.
9658 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
9659 (Warn_No_Exception_Propagation): New procedure
9660 (Warn_If_No_Propagation): Rewritten for new warning generation
9661 (Expand_Exception_Handlers): New warning generation
9662 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
9663 (Add_Exception_Label): Use Special_Exception_Package_Used for test
9664 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
9665 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
9666 even if restriction is set (makes life easier in Check_Returns)
9667 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
9668 checking exception identities.
9669 (Expand_Local_Exception_Handlers): Do not optimize when all others case
9670 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
9671 block for handler (used by Check_Returns)
9672 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
9673 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
9674 remove all exception handlers when optimizing local raise statements.
9675 (Find_Local_Handler): Use Get_Renamed_Entity
9676 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
9677 marked analyzed after expanding exception handlers, do not generate
9678 redundant cleanup actions, because they have been constructed already.
9680 2007-06-06 Thomas Quinot <quinot@adacore.com>
9682 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
9683 presence of this categorization pragma is mandated by the language.
9684 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
9687 2007-06-06 Vincent Celier <celier@adacore.com>
9688 Robert Dewar <dewar@adacore.com>
9690 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
9691 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9692 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
9693 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
9694 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
9695 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
9696 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
9697 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
9698 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
9699 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
9700 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
9702 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
9703 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
9704 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
9705 Use variables of types File_Name_Type and Unit_Name_Type in error
9707 (Get_Name): Add parameter Ignore_Special, and set it reading file name
9708 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
9710 Define flags Flag217-Flag230 with associated subprograms
9711 (Flag_Word5): New record type.
9712 (Flag_Word5_Ptr): New access type.
9713 (To_Flag_Word5): New unchecked conversion.
9714 (To_Flag_Word5_Ptr): Likewise.
9715 (Flag216): New function.
9716 (Set_Flag216): New procedure.
9718 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9720 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
9723 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
9725 2007-06-06 Javier Miranda <miranda@adacore.com>
9727 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
9729 (Object_Specific_Data_Array): This is now internal to the package.
9730 (Object_Specific_Data): This is now internal to the package.
9731 (Select_Specific_Data_Element): This is now internal to the package.
9732 (Select_Specific_Data_Array): This is now internal to the package.
9733 (Select_Specific_Data): This is now internal to the package.
9734 (Offset_To_Top_Function_Ptr): This is now public.
9735 (To_Offset_To_Top_Function_Ptr): Removed.
9736 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
9737 local to subprogram Offset_To_Top.
9738 (Predefined_DT): Removed.
9739 (Typeinfo_Ptr): Removed.
9740 (OSD): This function is now internal to this package.
9741 (SSD): This function is now internal to this package.
9742 (DT): New function that displaces the pointer to the table of primitives
9743 to get access to the enclosing wrapper record.
9744 (IW_Membership): Code cleanup.
9745 (Offset_To_Top): Code cleanup.
9746 (Predefined_DT): Removed.
9747 (Register_Interface_Tag): Removed.
9748 (Set_Interface_Table): Removed.
9749 (Set_Offset_Index): Removed.
9750 (Set_Offset_To_Top): Code cleanup.
9752 (Set_Signature): Removed.
9754 (Set_Tagged_Kind): Removed.
9755 (Typeinfo_Ptr): Removed.
9757 (Displace): Add missing check on null actual.
9759 * exp_disp.ads, exp_disp.adb
9760 (Select_Expansion_Utilities): Removed.
9761 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
9762 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
9763 the interface requires a new parameter.
9764 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
9765 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
9766 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
9767 Done to remove package Select_Expansion_Utilities.
9768 (Make_DT): New implementation for statically allocated dispatch tables.
9769 (Make_Secondary_DT): Moved to the scope of Make_DT.
9770 (Register_Primitive): Code cleanup plus incoporate the use of the new
9771 function DT_Address_Attribute.
9772 (Expand_Interface_Thunk): The profile of this subprogram has been
9773 changed to return the Thunk_Id and the corresponding code.
9774 (Fill_DT_Entry): Removed. Its functionality is now provided by
9775 subprogram Register_Primitive.
9776 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
9777 subprogram Register_Primitive.
9778 (Register_Primitive): New subprogram that incorporates the previous
9779 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
9780 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
9781 was only required to call Make_DT_Access_Action, which is now removed.
9782 (Ada_Actions): Removed
9783 (Action_Is_Proc): Removed
9784 (Action_Nb_Arg): Removed
9785 Replace all the calls to Make_DT_Access_Action by direct calls to
9786 Make_Procedure_Call_Statement or Make_Function_Call.
9787 (Set_DTC_Entity_Value): New subprogram.
9788 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
9789 (Expand_Interface_Thunk): Add missing support for primitives that are
9790 functions with a controlling result (case in which there is no need
9791 to generate the thunk).
9793 * exp_atag.ads, exp_atag.adb
9794 (Build_DT): New subprogram that displaces the pointer to reference the
9795 base of the wrapper record.
9796 (Build_Typeinfo_Offset): Removed.
9797 (RTE_Tag_Node): Removed.
9798 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
9799 (Build_Get_RC_Offset): Removed.
9800 (Build_Inherit_Predefined_Prims): Removed.
9801 (Build_Inherit_TSD: Removed.
9802 (Build_New_TSD): Removed.
9803 (Build_Set_External_Tag): Removed.
9804 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
9805 (Build_Set_Prim_Op_Address): Add documentation.
9806 (Build_Set_TSD): Removed.
9808 * rtsfind.ads, rtsfind.adb
9809 (Load_Fail): If load fails and we are not in configurable run-time
9810 mode, then raise Unrecoverable_Error.
9811 (Text_IO_Kludge): Generate an error message if a run-time library is
9812 not available in a given run-time (ie. zfp run-time).
9813 (RTE_Record_Component): Add code to check that the component we search
9814 for is not found in two records in the given run-time package.
9815 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
9816 (RE_DT_Predef_Prims_Offset): New entity
9817 (RE_Static_Offset_To_Top): New entity
9818 (RE_HT_Link): New entity.
9819 (System_Address_Image): Addition of this run-time package.
9820 (RE_Address_Image): New entity.
9821 (RE_Abstract_Interface): Removed.
9822 (RE_Default_Prim_Op_Count): Removed.
9823 (RE_DT_Entry_Size): Removed.
9824 (RE_DT_Min_Prologue_Size): Removed.
9825 (RE_DT_Prologue_Size): Removed.
9826 (RE_Ifaces_Table_Ptr): Removed.
9827 (RE_Interface_Data_Ptr): Removed.
9828 (RE_Type_Specific_Data): Removed.
9829 (RE_Primary_DT): Removed.
9830 (RE_Register_Interface_Tag): Removed.
9831 (RE_Set_Offset_Index): Removed.
9832 (RE_Set_OSD): Removed.
9833 (RE_Set_SSD): Removed.
9834 (RE_Set_Signature): Removed.
9835 (RE_Set_Tagged_Kind): Removed.
9836 (RE_Address_Array): New entity.
9837 (RE_DT): New entity.
9838 (RE_Iface_Tag): New entity.
9839 (RE_Interfaces_Table): New entity.
9840 (RE_No_Dispatch_Table): New entity.
9841 (RE_NDT_Prims_Ptr): New entity.
9842 (RE_NDT_TSD): New entity.
9843 (RE_Num_Prims): New entity.
9844 (RE_Offset_To_Top_Function_Ptr): New entity.
9845 (RE_OSD_Table): New entity.
9846 (RE_OSD_Num_Prims): New entity.
9847 (RE_Predef_Prims): New entity
9848 (RE_Predef_Prims_Table_Ptr): New entity.
9849 (RE_Primary_DT): New entity.
9850 (RE_Signature): New entity.
9851 (RE_SSD): New entity.
9852 (RE_TSD): New entity.
9853 (RE_Type_Specific_Data): New entity.
9854 (RE_Tag_Kind): New entity.
9856 2007-06-06 Thomas Quinot <quinot@adacore.com>
9858 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
9859 C imported variable.
9860 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
9863 2007-06-06 Robert Dewar <dewar@adacore.com>
9865 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
9868 2007-06-06 Vincent Celier <celier@adacore.com>
9870 * a-tifiio.adb (Put, internal): For negative numbers, check that there
9871 is room for at least one digit and the minus sign.
9872 (Put.Put_Character): Never put a character outside of the range of
9875 2007-06-06 Olivier Hainque <hainque@adacore.com>
9876 Eric Botcazou <ebotcazou@adacore.com>
9878 * utils2.c (build_allocator): Provide the extra arguments to
9879 make_aligning_type for super-aligned objects allocated from the default
9880 pool. Leave enough room for a pointer before the aligning field, and
9881 store the system's allocator return value there.
9882 (build_call_alloc_dealloc): When releasing a super-aligned object,
9883 retrieve the system's allocator return value from where build_allocator
9884 has stored it, just ahead of the adjusted address we are passed.
9885 (build_call_raise): Handle properly the generation of line numbers when
9886 the node is marked No_Location.
9887 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
9888 by using DECL_UID on ties.
9889 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
9891 (build_call_raise): Handle converting exception into goto; support new
9893 (build_component_ref): Add new arg to build_call_raise.
9895 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9897 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
9898 "." in the case of nnn.xxx when nnn terminates with an underscore.
9899 Parse the remaining "#" or ":" in the case of nnn#.xxx#
9901 2007-06-06 Robert Dewar <dewar@adacore.com>
9903 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
9905 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9906 Vincent Celier <celier@adacore.com>
9907 Robert Dewar <dewar@adacore.com>
9909 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
9911 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
9912 ((destructor)) for adafinal, even when switch -a is used.
9913 Do not issue pragma Linker_Destructor for adafinal when switch -a is
9915 (Gen_Object_Files_Options): Add formatting of Linker Options, when
9916 Output_Linker_Option_List is set. Suppress this formatting when
9917 Zero_Formatting is set.
9918 Add case for CLI_Target.
9919 (System_Restrictions_Used): New flag, used to avoid generating with of
9920 System_Restrictions and initialization of the data unless there is
9921 some use of System.Restrictions in the partition.
9922 (Check_System_Restrictions_Used): New procedure
9924 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
9925 since we only with this unit in the binder file if it is used elsewhere
9928 2007-06-06 Vincent Celier <celier@adacore.com>
9930 * bindusg.adb: Add line for @<response file>
9931 Add lines for new switches -R and -Z
9933 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
9934 hierarchy in the list of files of the closure when -R is used
9935 (Gnatbind): Accept arguments starting with '@' to indicate response
9936 files and take the arguments from the response files.
9937 If List_Closure is set, display the referenced files
9939 2007-06-06 Javier Miranda <miranda@adacore.com>
9940 Robert Dewar <dewar@adacore.com>
9941 Ed Schonberg <schonberg@adacore.com>
9943 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
9944 which the address-clause is applied to in-mode actuals (allowed by
9946 (Apply_Discriminant_Check): Do not generate a check if the type is
9947 constrained by a current instance.
9948 (Activate_Division_Check): New procedure
9949 (Activate_Overflow_Check): New procedure
9950 (Activate_Range_Check): New procedure
9951 Call these new Activate procedures instead of setting flags directly
9952 (Apply_Array_Size_Check): Removed, no longer needed.
9953 Code clean up: remove obsolete code related to GCC 2.
9954 (Get_E_Length): Protect against bomb in case scope is standard
9955 (Selected_Range_Checks): If the node to be checked is a conversion to
9956 an unconstrained array type, and the expression is a slice, use the
9957 bounds of the slice to construct the required constraint checks.
9958 Improve NOT NULL error messages
9959 (Apply_Constraint_Check): If the context is a null-excluding access
9960 type, diagnose properly the literal null.
9962 2007-06-06 Pascal Obry <obry@adacore.com>
9964 * clean.adb (Clean_Archive): Use untouched casing for the archive name
9965 and the corresponding .deps file.
9966 (Clean_Interface_Copy_Directory): Use untouched casing for the library
9967 src directory. Minor code-clean-up. Use untouched casing for files
9968 read into the library src dir.
9969 (Clean_Library_Directory): Idem.
9970 (Parse_Cmd_Line): Accept new switch -aP
9972 2007-06-06 Javier Miranda <miranda@adacore.com>
9973 Ed Schonberg <schonberg@adacore.com>
9974 Robert Dewar <dewar@adacore.com>
9975 Eric Botcazou <ebotcazou@adacore.com>
9976 Arnaud Charlet <charlet@adacore.com>
9978 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
9979 applicable to types that have the With_Type flag set. Returns the
9980 non-limited view of the type, if available, otherwise the type itself.
9981 For class-wide types, there is no direct link in the tree, so we have
9982 to retrieve the class-wide type of the non-limited view of the Etype.
9983 New attributes Static_Initialization and Static_Elaboration_Desired.
9984 Remove the pragma Thread_Body, and the associated flag
9985 Is_Thread_Body in entities, and all related code.
9986 (Suppress_Value_Tracking_On_Call): New flag
9987 E_Exception has Esize and Alignment fields
9988 (Universal_Aliasing): New function.
9989 (Set_Universal_Aliasing): New procedure.
9990 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
9991 (Check_Nested_Access): New procedure.
9992 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
9993 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
9994 (Related_Interface): New attribute. Present in dispatch table pointer
9995 components of records. Set to point to the entity of the corresponding
9997 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
9998 (Original_Access_Type): Remove, not needed.
9999 (Root_Type): Handle properly subtypes of class-wide-types.
10002 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
10003 class-wide types visible through limited-with clauses.
10004 (Try_Primitive_Operation): When examining all primitive operations of a
10005 tagged type, do not consider subprograms labeled as hidden unless they
10006 belong to a private generic type with a tagged parent.
10007 (Try_Object_Operation): Extensive rewriting, to handle properly various
10008 overloading cases, when several ancestors may have class-wide operations
10009 that are possible candidates, and when the overloaded functions return
10010 array types and have defaulted parameters so that the call may be
10011 interpreted as an indexing.
10012 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
10013 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
10014 successive actuals before analyzing the call itself.
10015 (Try_Primitive_Operation): A primitive operation is compatible with the
10016 prefix if the prefix has a synchronized type and the type of the formal
10017 is its corresponding record, as can be the case when the primitive
10018 operation is declared outside of the body of the type.
10019 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
10020 perform homonym traversal, looking for class-wide operation matches
10021 (formerly done in statements of Try_Class_Wide_Operation). Matches on
10022 access parameters are now restricted to anonymous access types.
10023 (Mark_Allocator): An allocator with a discriminant association parent is
10025 (Try_One_Prefix_Interpretation): If the type of the object is
10026 incomplete, as can be happen when it is a limited view obtained through
10027 a limited_with_clause, the selected component is not part of a prefixed
10029 (Complete_Object_Operation): Diagnose properly an object that is not
10030 aliased when the corresponding controlling formal is an access
10032 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
10033 ambiguous calls in prefixed notation, where two primitives differ only
10034 in that the controlling argument of one is an access parameter.
10036 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
10037 whether a function that returns an unconstrained type can be inlined.
10038 (Process_Formals): Diagnose properly the illegal use of an incomplete
10039 type in the profile of an access_to_subprogram declaration.
10040 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
10041 operations are attached to the corresponding record.
10042 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
10043 When processing a primitive of a concurrent type which implements an
10044 interface change the type of all controlling formals to that of the
10045 corresponding record type.
10046 (Check_Synchronized_Overriding): Relax the conditional logic when trying
10047 to determine the tagged type to which a primitive belongs.
10048 (Check_Conventions): Capture condition to ignore a primitive operation
10049 (which is shared between the loop in Check_Conventions and the one in
10050 Check_Convention) in a new local function Skip_Check.
10051 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
10052 confusion with Check_Conventions' own Prim_Op local variable.
10053 (Create_Extra_Formals): Test for a tagged result type rather than a
10054 controlling result when determining whether to add a BIP_Alloc_Form
10055 formal and a BIP_Final_List formal to the function.
10056 (Check_Conformance); For parameters that are anonymous access types,
10057 subtype conformance requires that the not null and the constant
10058 indicators must match
10059 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
10060 to retrieve the appropriate type when processing a concurrent type
10061 declared within a generic. Minor comment reformatting. Change invocation
10062 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
10064 (Analyze_Subprogram_Body): If the return type of a function is an
10065 anonymous access to the limited view of a class-wide type, and the
10066 non-limited view of the type is available, update the type of the
10067 function so that code can be generated.
10068 (Process_Formals): In case of access-subtype itype whose designated
10069 type is also an itype (situation that happens now with access to
10070 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
10071 attribute to avoid backend problems.
10072 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
10073 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
10074 anonymous types' designated types are same before testing
10075 Subtypes_Statically_Match.
10076 (Create_Extra_Formals): Test for a named access parameter that is a
10077 controlling formal as an additional condition for adding an
10078 accessibility level formal. This can occur in the subp type created for
10079 dispatching calls in Expand_Dispatching_Call, and allows calling
10080 Create_Extra_Formals from that procedure rather than special-casing the
10081 extra formals there.
10082 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
10083 when the function has a controlling result.
10084 (Check_Returns): Add much more knowledge of the optimization of local
10085 raise statements to gotos, to retain proper warnings in this case.
10086 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
10087 nodes when looking for last statement.
10089 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
10090 class-wide types visible through limited with clauses.
10091 (Add_One_Interp): If the operands are anonymous access types, the
10092 predefined operator on universal_access is immediately visibles
10093 (Find_Unique_Type): Handle anonymous access to subprogram types just as
10094 other anonymous access types.
10095 (Disambiguate): Take into account CIL convention.
10096 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
10098 2007-06-06 Robert Dewar <dewar@adacore.com>
10100 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
10101 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
10102 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
10103 Fix lower bound of tables.
10106 * nlists.adb: Ditto.
10107 (Prev_Node, Next_Node): Change index type to Int so that it properly
10108 covers the range First_Node_Id - 1 up.
10110 2007-06-06 Javier Miranda <miranda@adacore.com>
10111 Ed Schonberg <schonberg@adacore.com>
10112 Bob Duff <duff@adacore.com>
10113 Hristian Kirtchev <kirtchev@adacore.com>
10115 * exp_aggr.ads, exp_aggr.adb:
10116 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
10117 in extension aggregates.
10118 (Flatten): Other conditions being met, an aggregate is static if the
10119 low bound given by component associations is different from the low
10120 bound of the base index type.
10121 (Packed_Array_Aggregate_Handled): If the component type is itself a
10122 packed array or record, the front-end must expand into assignments.
10123 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
10124 Init_Pr, instead of Ancestor_Is_Expression.
10125 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
10126 coextension chain root, either generate a list controller or use the
10127 already existing one.
10128 (Static_Array_Aggregate): New procedure to construct a positional
10129 aggregate that can be handled by the backend, when all bounds and
10130 components are compile-time known constants.
10131 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
10132 types covering interface types into assignments.
10133 (Replace_Type): move to Build_Record_Aggr_Code.
10134 (Expand_Record_Aggr_Code): if the target of the aggregate is an
10135 interface type, convert to the definite type of the aggregate itself,
10136 so that needed components are visible.
10137 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
10138 components and the context is an extended return statement do not
10139 create a transient block for it, to prevent premature finalization
10140 before the return is executed.
10141 (Gen_Assign): Do not generate a call to deep adjust routine if the
10142 component type is itself an array of controlled (sub)-components
10143 initialized with an inner aggregate.
10144 (Component_Check): New name for Static_Check. This name is now more
10145 appropriate, and documentation is added which was missing.
10146 (Component_Check): Add test for bit aligned component value
10147 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
10148 Tagged_Comps, name is more appropriate given added function below.
10149 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
10151 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10152 Javier Miranda <miranda@adacore.com>
10153 Robert Dewar <dewar@adacore.com>
10155 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
10156 Terminated: Add unchecked type conversion from System.Address to
10157 System.Tasking.Task_Id when calling the predefined primitive
10159 Disable new Ada 05 accessibility check for JVM.NET targets, which
10160 cannot be implemented in a practical way.
10161 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
10162 the sources always references the tag of the actual object. Therefore,
10163 if 'Tag is applied in the sources to class-wide interface objects we
10164 generate code that displaces "this" to reference the base of the object.
10165 (Expand_N_Attribute_Reference, case Size): Return specified size if
10166 known to front end.
10167 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
10168 has code that displaces the pointer of the object to manage interface
10169 types. However this code must not be executed when the prefix is a
10170 subprogram. This bug caused the wrong expansion of the internally
10171 generated assignment that fills the dispatch table when the primitive
10172 is a function returning a class-wide interface type.
10173 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
10174 Set_Attribute_Name for Name_Unaligned_Valid.
10176 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10177 Gary Dismukes <dismukes@adacore.com>
10179 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
10180 If the initialization is the equivalent aggregate of the initialization
10181 procedure of the type, do not remove it.
10182 (Expand_N_Attribute_Definition_Clause): Exclude access variables
10183 initialized to null from having their expression reset to empty and
10184 note this exception in the comment.
10186 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10187 Robert Dewar <dewar@adacore.com>
10188 Ed Schonberg <schonberg@adacore.com>
10189 Gary Dismukes <dismukes@adacore.com>
10191 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
10192 Add "with" and "use" clauses for Sem_Attr.
10193 (Expand_Current_Value): Do not replace occurences of attribute
10194 references where the prefix must be a simple name.
10196 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
10197 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
10198 Attribute_Requires_Simple_Name_Prefix.
10199 (Name_Modifies_Prefix): Body of new function.
10200 (Requires_Simple_Name_Prefix): Body of new function.
10201 (Resolve_Attribute, case Access): Improve error message for case of
10202 mismatched conventions.
10203 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
10205 (Analyze_Attribute, case 'Access): If the type of the prefix is a
10206 constrained subtype for a nominal unconstrained type, use its base type
10207 to check for conformance with the context.
10208 (Resolve_Attribute): Remove test of the access type being associated
10209 with a return statement from condition for performing accessibility
10210 checks on access attributes, since this case is now captured by
10211 Is_Local_Anonymous_Access.
10212 (Analyze_Access_Attribute): Set Address_Taken on entity
10213 (Analyze_Attribute, case Address): Set Address_Taken on entity
10214 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
10215 validating an access attribute whose prefix is a current instance.
10216 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
10217 applied to dispatching operations, if freezing is required then we set
10218 the attribute Has_Delayed_Freeze in the prefix's entity.
10219 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
10220 current scope if access of local subprogram taken
10221 (Analyze_Access_Attribute): Check legality of self-reference even if the
10222 expression comes from source, as when a single component association in
10223 an aggregate has a box association.
10224 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
10225 the prefix if it is a protected operation and the attribute is
10226 Unrestricted_Access.
10227 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
10228 reference to the base type of the context, to force a constraint check
10229 when the context is an access subtype with an explicit constraint.
10230 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
10231 node is rewritten as an interface conversion. leave unanalyzed after
10232 resolution, to ensure that type checking against the context will take
10235 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10236 Javier Miranda <miranda@adacore.com>
10237 Robert Dewar <dewar@adacore.com>
10239 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
10240 wrapper when the full view of the controlling type of an inherited
10241 function that dispatches on result implements interfaces.
10242 (Expand_N_Object_Declaration): In cases where the type of the
10243 declaration is anonymous access, create finalization list for it.
10244 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
10245 if the object has no explicit initialization, to match description of
10246 functionality of pragam Persistent_BSS.
10247 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
10248 new function to build static aggregates, to replace initialization call
10249 when static initialization is desired.
10250 (Freeze_Type): Generate a list controller for an access type whenever
10251 its designated type has controlled anonymous access discriminants.
10252 (Build_Equivalent_Aggregate): New procedure to compute a static
10253 aggregate to be used as default initialization for composite types,
10254 instead of a generating a call to the initialization procedure for the
10256 (Build_Initialization_Call): When available, replace a call to the
10257 initialization procedure with a copy of the equivalent static aggregate
10259 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
10260 declarations for objects of a class-wide interface type, rather than
10261 just identifiers, to prevent visibility problems.
10262 (Expand_N_Object_Declaration): When expanding the declaration for an
10263 object of a class-wide interface type, preserve the homonym chain of
10264 the original entity before exchanging it with that of the generated
10265 renaming declaration.
10266 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
10267 active, because there is no way to handle the exception.
10268 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
10269 to do a minimum decoration of the Access_Disp_Table list.
10270 (Expand_Record_Controller): Avoid the addition of the controller between
10271 the component containing the tag of a secondary dispatch table and its
10272 adjacent component that stores the offset to the base of the object.
10273 This latter component is only generated when the parent type has
10274 discriminants ---documented in Add_Interface_Tag_Components).
10275 (Apply_Array_Size_Check): Removed, no longer needed.
10276 (Expand_N_Full_Type_Declaration): If the type has anonymous access
10277 components, create a Master_Entity for it only if it contains tasks.
10278 (Build_Init_Procedure): Suppress the tag assignment compiling under
10280 (Freeze_Record_Type): Remove code associated with creation of dispatch
10282 (Init_Secondary_Tags): Update type of actuals when generating calls to
10283 Ada.Tags.Set_Offset_To_Top
10284 (Stream_Operation_OK): Disable use of streams compiling under no
10286 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
10287 if Has_Init_Expression set.
10288 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
10289 Register_Primitive, which provides the same functionality.
10290 (Requires_Init_Proc): Return false in case of interface types.
10291 (Add_Secondary_Tables): Use the new attribute Related_Interface to
10293 (Predefined_Primitive_Freeze): Do not assume that an internal entity
10294 is always associated with a predefined primitive because the internal
10295 entities associated with interface types are not predefined primitives.
10296 Therefore, the call to Is_Internal is replaced by a call to the
10297 function Is_Predefined_Dispatching_Operation.
10298 (Make_Eq_If): When generating the list of comparisons for the
10299 components of a given variant, omit the controller component that is
10300 present if the variant has controlled components.
10302 2007-06-06 Javier Miranda <miranda@adacore.com>
10303 Hristian Kirtchev <kirtchev@adacore.com>
10304 Bob Duff <duff@adacore.com>
10306 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
10307 handle the creation of finalization lists and calls for nested
10308 coextensions when the root of the chains is part of a return statement.
10309 (Inside_A_Return_Statement): New function inside Complete_Coextension_
10311 (Expand_Record_Equality): Skip components that are interface types.
10312 (Displace_Allocator_Pointer): Add missing support for interface subtypes
10313 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
10314 with Rewrite_Coextension. Change the condition for detecting coextension
10316 (Is_Local_Access_Discriminant): Removed.
10317 (Rewrite_Coextension): New routine which rewrites a static coextension
10318 as a temporary and uses its unrestricted access in the construction of
10320 (Complete_Coextension_Finalization): New routine. Generate finalization
10321 attachment calls to all delayed coextensions.
10322 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
10323 the allocator is not a coextension itself and has delayed coextensions.
10324 If the current allocator is controlled, but also a coextension, delay
10325 the generation of the finalization attachment call.
10326 Rename local variable "Node" to "Nod" in order to avoid confusion with
10328 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
10329 limited types that are not inherently limited. Such an allocator is
10330 illegal, but is generated by the expander for a return statement, to
10331 copy the result onto the secondary stack. This is the only case where a
10332 limited object can be copied. Generate code to displace the pointer
10333 to the object if the qualified expression is a class-wide interface
10334 object. Such displacement was missing and hence the copy of the object
10336 (Apply_Accessibility_Check): Handle allocated objects initialized in
10338 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
10339 and Expand_Allocator_Expression. Allocating class-wide interface objects
10340 this routine displaces the pointer to the allocated object to reference
10341 the component referencing the corresponding secondary dispatch table.
10342 Expand_Allocator_Expression): Add missing support to allocate class-wide
10343 interface objects initialized with a qualified expression.
10344 (Get_Allocator_Final_List): Test for an anonymous access type that is a
10345 function result type, and use the finalization list associated with the
10346 function scope in that case (such an anonymous type should not be
10347 treated like an access parameter's type).
10349 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10350 Gary Dismukes <dismukes@adacore.com>
10351 Javier Miranda <miranda@adacore.com>
10353 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
10354 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
10355 required exception handler.
10356 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
10357 properly the case of a function whose return type is a limited
10358 class-wide interface type. Modify the code of the accessibility
10359 check to handle class-wide interface objects. In this case we need to
10360 displace "this" to reference the primary dispatch table to get access
10361 to the TSD of the object (to evaluate its accessibility level).
10362 (Expand_N_Extended_Return_Statement): Test for a tagged result type
10363 rather than a controlling result as one of the conditions for
10364 generating tests of the implicit BIP_Alloc_Form formal. The
10365 initialization assignment is also handled according to whether the
10366 result is tagged instead of controlling.
10367 In the case where the init assignment is inserted in the "then" part of
10368 the allocation conditional, rewrite the target to be a dereference of
10369 the implicit BIP_Object_Access formal.
10370 If the returned value is unconstrained and created on the secondary
10371 stack, mark the enclosing block and function so that the secondary
10372 stack is not reclaimed on return.
10373 Treat returns from functions with controlling results similarly to
10374 returns from functions with unconstrained result subtypes.
10375 If the object returned is unconstrained, and an allocator must be
10376 created for it, analyze the allocator once the block for the extended
10377 return is installed, to ensure that finalizable components
10378 of the expression use the proper finalization list. Guard the call to
10379 Move_Final_List with a check that there is something to finalize.
10380 (Make_Tag_Ctrl_Assignment): Use "old" handling
10381 of controlled type assignment for virtual machines, since new code uses
10382 unsupported features (such as direct access to bytes in memory).
10384 2007-06-06 Gary Dismukes <dismukes@adacore.com>
10385 Ed Schonberg <schonberg@adacore.com>
10387 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
10388 accessibility actual, check for the case of an aliased object that has
10389 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
10390 we fall into processing for the attribute rather than the name of the
10392 (Expand_Inline_Call): If an actual is a literal, and the corresponding
10393 formal has its address taken in the body, create a temporary to capture
10394 value. If the return type is a limited interface, do not treat the
10395 return value as Controlled.
10396 (Is_In_Place_Function): If the return type is a limited interface,
10397 treat as returning in place. The actual returned object may not always
10398 be limited, but the caller has to assume that it is returned in place.
10399 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
10400 context of an allocator, use the correct finalization chain (that is,
10401 the chain belonging to the access type, rather than the chain belonging
10402 to the current scope).
10403 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
10404 result type rather than a controlling result as a precondition for
10405 adding an allocation form actual to a build-in-place call.
10406 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
10407 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
10408 primitive in the dispatch tables. This work is now done by Make_DT when
10409 the type is frozen.
10410 (Register_Predefined_DT_Entry): Removed.
10411 (Add_Return): If end label is not present, use sloc of last statement
10412 for generated return statement in procedure, for better gdb behavior
10414 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
10415 object address nodes to ensure proper processing by routines like
10417 (Expand_Call): Fix generation of validity check for parameter
10418 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
10419 the allocation form parameter if the result subtype is constrained,
10420 except when the function has a controlling result.
10421 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
10422 rather than Is_Controlled and Has_Controlled_Component, since we want to
10423 include class-wide result types in this treatment. Also test for a
10424 controlling result, since that also requires passing a finalization
10426 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
10427 even when the result subtype is constrained, to handle calls involving
10428 controlling results.
10429 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
10430 is now called even when the result subtype is constrained, to handle
10431 calls involving controlling results.
10432 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
10433 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
10434 now performs the test).
10435 (Make_Build_In_Place_Call_In_Object_Declaration):
10436 Add_Alloc_Form_Actual_* is now called even when the result subtype is
10437 constrained, to handle calls involving controlling results.
10438 (Add_Return): Accomodate rewritten pattern from local raise to goto
10439 transformation, so that we still recognize an transfer statement
10440 and do the right thing here in that case.
10441 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
10442 and end of subprogram code.
10443 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
10444 support for primitives that are functions (without formals) with a
10445 controlling result.
10446 (Inherited_From_Formal): If the actual subtype has not generic parent
10447 type, it is not an actual for a formal derived type, and there is no
10448 operation to inherit from the formal.
10450 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10451 Thomas Quinot <quinot@adacore.com>
10453 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
10454 inserted cleanup code appropriately for GDB use.
10455 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
10456 exception handler for Deep_Adjust or Deep_Finalize.
10457 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
10458 Raise_From_Controlled_Operation is available, use a call to that
10459 subprogram instead of a plain "raise Program_Error" node to raise
10460 Program_Error if an exception is propagated from an Adjust or Finalize
10462 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
10463 appears in the optional statement list of a triggering alternative, the
10464 scope actions can be inserted directly there, and not in the list that
10465 includes the asynchronous select itself.
10467 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10468 Robert Dewar <dewar@adacore.com>
10469 Hristian Kirtchev <kirtchev@adacore.com>
10471 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
10472 generated exception handler appropriately when debugging generated code.
10473 Deal properly with No_Exception_Propagation restriction mode.
10474 (Expand_N_Abort_Statement): Add an unchecked type conversion from
10475 System.Address to System.Tasking.Task_Id when processing the result of
10476 the predefined primitive _disp_get_task_id.
10477 (Expand_N_Asynchronous_Select): Clarify comment.
10478 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
10479 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
10480 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
10481 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
10482 privals and for generated call to Complete_Entry_Body, for better gdb
10484 (Copy_Result_Type): Utility to construct a parameter and result profile
10485 for protected functions whose return type is an anonymous access to
10487 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
10489 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
10490 point when the local-raise-to-goto transformation has taken place.
10492 2007-06-06 Javier Miranda <miranda@adacore.com>
10493 Nicolas Setton <setton@adacore.com>
10495 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
10496 functionality when the backend is generating code.
10497 Otherwise any serious error
10498 reported by the backend calling the frontend routine Error_Msg
10499 changes the Compilation_Mode to Check_Semantics, disables the
10500 functionality of this routine and causes the generation of
10501 spureous additional errors.
10503 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
10504 debugging information now generated by the compiler for fat-pointer
10506 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
10508 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
10510 2007-06-06 Thomas Quinot <quinot@adacore.com>
10512 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
10513 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10514 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
10515 For a remote call to a function with a classwide return type, apply an
10516 E.4(18) check to the returned value.
10517 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
10518 stream attributes of the designated type of an RACW, as they are not
10519 dispatching primitive operations.
10521 2007-06-06 Geert Bosch <bosch@adacore.com>
10523 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
10525 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
10527 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
10528 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
10530 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
10532 2007-06-06 Javier Miranda <miranda@adacore.com>
10534 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
10535 attribute compiling package Ada.Tags under No_Run_Time_Mode.
10537 2007-06-06 Javier Miranda <miranda@adacore.com>
10539 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
10540 deallocation of class-wide interface objects.
10541 (Expand_Dispatching_Constructor_Call): Take into account that if the
10542 result of the dispatching constructor is an interface type, the
10543 function returns a class-wide interface type; otherwise the returned
10544 object would be actual. The frontend previously accepted returning
10545 interface types because Expand_Interface_Actuals silently performed
10546 the management of the returned type "as if" it were a class-wide
10548 (Expand_Dispatching_Constructor_Call): Replace call to
10549 Make_DT_Access_Action by direct call to Make_Function_Call.
10551 2007-06-06 Robert Dewar <dewar@adacore.com>
10552 Ed Schonberg <schonberg@adacore.com>
10554 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
10555 compute masking constant, since we now set Esize properly to the
10557 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
10558 to match the alignment.
10559 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
10560 packed arrays of 8 bits or less.
10562 * freeze.adb (Freeze_Entity): When freezing the formals of a
10563 subprogram, freeze the designated type of a parameter of an access type
10564 only if it is an access parameter.
10565 Increase size of C convention enumeration object
10566 (Freeze_Entity, array type case): Make sure Esize value is properly
10567 adjusted for the alignment if it is known.
10568 (Freeze_Entity, array type case): When checking bit packed arrays for
10569 the size being incorrect, check RM_Size, not Esize.
10570 (Freeze_Record_Type): Check for bad discriminated record convention
10571 (In_Exp_Body): Return true if the body is generated for a subprogram
10572 renaming, either an attribute renaming or a renaming as body.
10573 (Check_Itype): If the designated type of an anonymous access component
10574 is a non-protected subprogram type, indicate that it is frozen, to
10575 prevent out-of-scope freeze node at some subsequent call.
10576 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
10577 only if the subprogram is neither imported nor exported, as well as the
10578 NCA descriptor class if the subprogram is exported.
10580 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10581 Arnaud Charlet <charlet@adacore.com>
10582 Robert Dewar <dewar@adacore.com>
10583 Gary Dismukes <dismukes@adacore.com>
10585 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
10586 default initialization on an imported object, when there is no
10587 initialization call generated for it.
10588 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
10591 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
10592 Static_Elaboration_Desired.
10593 Remove pragma Thread_Body.
10594 Implement a new pragma No_Body
10595 Removes the Explicit_Overriding pragma
10596 Remove Optional_Overriding pragma
10597 (Prag): Deal with Universal_Aliasing.
10598 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
10599 Pragma_CIL_Constructor): New names.
10601 * sem_cat.adb (Validate_Object_Declaration): An initialization that
10602 uses the equivalent aggregate of a type must be treated as an implicit
10604 (Get_Categorization): Check a unit for pragma Preelaborate only if it
10605 has none of the other categories.
10606 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
10607 to apply Import to an object renaming declaration.
10609 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
10610 from a C++ class should be declared as limited and that it will be
10611 considererd limited.
10612 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
10613 should be declared as limited and that it will be considererd limited.
10614 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
10615 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
10616 (Analyze_Pragma): Deal with Universal_Aliasing.
10617 (Sig_Flags): Likewise.
10618 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
10619 (Overflow_Checks_Unsuppressed): New flag.
10620 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10621 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
10622 case of JVM or .NET targets, and compiling user code.
10623 Add debugging convenience routine rv
10625 2007-06-06 Robert Dewar <dewar@adacore.com>
10627 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
10628 are interface type.
10629 (Build_Elementary_Input_Call): For floating-point use right type in the
10630 absence of strange size or stream size clauses.
10631 (Build_Elementary_Write_Call): Same fix
10632 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
10633 set to value that does not match base type size.
10635 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10637 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
10638 object of a limited type can be initialized with a call to a function
10639 that returns in place. If the limited type has unknown discriminants,
10640 and the underlying type is a constrained composite type, build an actual
10641 subtype from the function call, as is done for private types.
10642 (Side_Effect_Free): An expression that is the renaming of an object or
10643 whose prefix is the renaming of a object, is not side-effect free
10644 because it may be assigned through the renaming and its value must be
10645 captured in a temporary.
10646 (Has_Controlled_Coextensions): New routine.
10647 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
10648 as is done for other limited types.
10649 (Non_Limited_Designated_Type): new predicate.
10650 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
10652 Remove all handling of with_type clauses.
10654 * par-ch10.adb: Remove all handling of with_type clauses.
10656 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
10657 checksum if the main source could not be parsed.
10658 (Loat_Unit): When processing a child unit, determine properly whether
10659 the parent unit is a renaming when the parent is itself a child unit.
10660 Remove handling of with_type clauses.
10662 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
10663 (Set_Is_Static_Coextension): New procedure.
10664 (Has_Local_Raise): New function
10665 (Set_Has_Local_Raise): New procedure
10666 (Renaming_Exception): New field
10667 (Has_Init_Expression): New flag
10668 (Delay_Finalize_Attach): Remove because flag is obsolete.
10669 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
10670 Remove all handling of with_type clauses.
10671 (Exception_Junk): Can now be set in N_Block_Statement
10673 2007-06-06 Vincent Celier <celier@adacore.com>
10674 Robert Dewar <dewar@adacore.com>
10676 * frontend.adb (Frontend): Return immediately if the main source could
10677 not be parsed, because of preprocessing errors.
10679 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
10680 (Gnat1drv): Exit with errors if the main source could not be parsed,
10681 because of preprocessing errors.
10682 (Check_Rep_Info): New procedure
10684 2007-06-06 Robert Dewar <dewar@adacore.com>
10686 * g-hesorg.ads, g-heasor.ads,
10687 g-busorg.ads, g-bubsor.ads: Update documentation
10688 GNAT.Heap/Bubble_Sort_G is now pure
10690 2007-06-06 Robert Dewar <dewar@adacore.com>
10692 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
10694 2007-06-06 Robert Dewar <dewar@adacore.com>
10695 Ed Schonberg <schonberg@adacore.com>
10697 * g-comlin.ads, g-comlin.adb:
10698 Add new warning for renaming of function return objects
10700 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
10701 (Tree_Read): Use size of object instead of type'object_size, since the
10702 latter is incorrect for packed array types.
10703 (Tree_Write): Same fix
10705 * opt.ads: Add new warning for renaming of function return objects
10706 (Generating_Code): New boolean variable used to indicate that the
10707 frontend as finished its work and has called the backend to process
10708 the tree and generate the object file.
10709 (GCC_Version): Is now private
10710 (Static_Dispatch_Tables): New constant declaration.
10711 (Overflow_Checks_Unsuppressed): New flag.
10712 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10713 (List_Closure): New flag for gnatbind (-R)
10714 Zero_Formatting: New flag for gnatbind (-Z)
10715 (Special_Exception_Package_Used): New flag.
10716 (Warn_On_Unrepped_Components): New flag.
10718 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
10719 unit is a compilation unit, rather than relying on its scope, so that
10720 Standard can be renamed.
10721 (Analyze_Object_Renaming): Add new warning for renaming of function
10723 Also reject attempt to rename function return object in Ada 83 mode.
10724 (Attribute_Renaming): In case of tagged types, add the body of the
10725 generated function to the freezing actions of the type.
10726 (Find_Type): A protected type is visible right after the reserved word
10727 "is" is encountered in its type declaration. Set the entity and type
10728 rather than emitting an error message.
10729 (New_Scope): Properly propagate Discard_Names to inner scopes
10730 (Check_Nested_Access): New procedure.
10731 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
10732 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10734 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
10735 Add new warning for renaming of function return objects
10736 (Check_References): Suppress warnings for objects whose type or
10737 base type has Warnings suppressed.
10738 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
10739 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
10741 2007-06-06 Vincent Celier <celier@adacore.com>
10742 Emmanuel Briot <briot@adacore.com>
10743 Olivier Hainque <hainque@adacore.com>
10745 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
10746 absolute value of Header.Block_Size when displaying the freed physical
10748 (Allocate): Compute Storage_Address using Integer_Address, not
10749 Storage_Offset, because the range of Storage_Offset may not be large
10751 (Configure): New parameter Low_Level_Traces
10752 (Allocate, Deallocation, Free_Physically): Added low-level traces
10753 (Configure): new parameter Errors_To_Stdout.
10754 (Output_File): new subprogram
10755 (Deallocate, Dereference): Send error messages to the proper stream
10756 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
10757 documented. Previous code would send it to the current output file
10758 defined in GNAT.IO, which might not be stdout
10759 (Is_Valid): Adjust comment to mention that a positive reply means that
10760 Header_Of may be used to retrieve the allocation header associated with
10761 the subprogram Storage address argument. Return False early if this
10762 address argument is misaligned.
10764 2007-06-06 Vincent Celier <celier@adacore.com>
10766 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
10768 (ASIS_Main): New global variable
10769 (Get_Closure): New procedure
10770 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
10771 check, metric or pretty. Call Get_Closure in this case.
10772 (Check_Files): For GNAT LIST, check all sources of all projects when
10773 All_Projects is True.
10774 (GNATCmd): Accept -U for GNAT LIST
10776 2007-06-06 Vincent Celier <celier@adacore.com>
10778 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
10780 Correct error message when invocation of the linker fails
10781 Add explicit size clause for the C imported variables
10782 Object_List_File_Supported and Using_GNU_Linker to emphasize that
10783 we expect char size.
10784 Read target parameters earlier, since this is needed to set
10785 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
10788 2007-06-06 Vincent Celier <celier@adacore.com>
10791 Add 3 spaces before the default project directory when displaying
10792 the project search path.
10793 Add new command line switch '-l' to display license information.
10795 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
10797 * gmem.c: Add support for timestamps on memory operations.
10799 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
10800 operations (not used currently, just foundation for future
10801 enhancements). Add possibility to perform full dump of gmem.out file.
10802 (Print_Back_Traces): Declare accesses to root arrays constants since
10803 they aren't modified.
10804 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
10806 2007-06-06 Vincent Celier <celier@adacore.com>
10808 * gnatsym.adb: Update Copyright notice
10809 (Parse_Cmd_Line): Accept new switch -D
10810 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
10813 * prj.ads (Policy): New policy Direct
10814 (Yes_No_Unknown): New enumeration type
10815 (Project_Data): New component Libgnarl_Needed
10817 * prj-nmsc.adb (Check_For_Source): When recording a source file make
10818 use the untouched pathname casing.
10819 (Get_Directories): Ensure that the Display_Exec_Directory is using the
10820 proper casing on non case-sensitive platforms like Windows.
10821 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
10822 on all platforms, as it is not possible to know which one is allowed
10823 before processing the project files.
10824 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
10825 specified when symbol policy is Direct. Check that when there is a
10826 symbol file defined (either by default or with attribute
10827 Library_Symbol_File) it is not the same as the reference symbol file.
10828 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
10829 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
10830 extending projects.
10831 (Record_Ada_Source): Record a source that has been locally removed in an
10834 * symbols.ads (Policy): New policy Direct
10836 * symbols-vms.adb (Initialize): Take new policy Direct in case
10839 2007-06-06 Vincent Celier <celier@adacore.com>
10841 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
10842 Correct obvious bug (return Dir; instead of return Directory;).
10843 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
10845 2007-06-06 Thomas Quinot <quinot@adacore.com>
10847 * g-pehage.adb (Produce): Open output files in Binary mode, so that
10848 they have UNIX line endings (LF only) even on Windows, and thus pass
10849 all GNAT style checks.
10851 2007-06-06 Emmanuel Briot <briot@adacore.com>
10853 * g-regpat.adb (Quote): Fix improper quoting of '.'
10855 2007-06-06 Thomas Quinot <quinot@adacore.com>
10857 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
10858 default, set False on a per-runtime basis.
10859 (Need_Netdb_Buffer): New constant.
10861 * g-socket.ads, g-socket.adb: Import new package
10862 GNAT.Sockets.Thin.Task_Safe_NetDB.
10863 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
10864 binding to obtain proper message.
10865 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
10866 Replace various occurrences of Arry (Arry'First)'Address with the
10867 equivalent Arry'Address (GNAT always follows implementation advice from
10869 (Get_Host_By_Address, Get_Host_By_Name,
10870 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
10871 instead, rely on platform-specific task safe netdb operations provided
10874 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
10875 parameter Process_Blocking_IO.
10876 (Host_Error_Messages): Add stub body.
10877 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10878 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
10879 Safe_Getservbyport): Move functions into new child package
10881 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
10882 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
10883 (In_Addr): Add alignment clause.
10885 2007-06-06 Robert Dewar <dewar@adacore.com>
10887 * g-trasym.ads, g-traceb.ads: Update list of supported targets
10888 Add note about symbolic traceback
10890 2007-06-06 Pascal Obry <obry@adacore.com>
10892 * hostparm.ads (Normalized_CWD): Use the host directory separator
10893 instead of the hardcoded forward slash which is not the proper
10894 character on Windows for example.
10895 (Java_VM): Removed.
10897 2007-06-06 Vincent Celier <celier@adacore.com>
10898 Arnaud Charlet <charlet@adacore.com>
10900 * a-clrefi.adb, a-clrefi.ads: New files
10902 * impunit.adb: Add s-os_lib in the list of user visible units.
10903 (Non_Imp_File_Names_95): Add a-clrefi to this list
10904 Remove obsolete run-time entries.
10905 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
10906 "a-exetim" -- Ada.Execution_Time
10907 "a-extiti" -- Ada.Execution_Time.Timers
10909 * mlib-prj.ads, mlib-prj.adb
10910 (Build_Library): Use untouched object dir and library dir. At the
10911 same time makes sure that the checks are done using the canonical
10912 form. Removes hard-coded directory separator and use the proper host
10914 (Process_Project): Do not look in object directory to check if libgnarl
10915 is needed for a library, if there is no object directory.
10916 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
10918 (Build_Library): When invoking gnatbind, use a response file if the
10919 total size of the arguments is too large.
10921 * Makefile.rtl: (g-sttsne): New object file.
10922 Add entry for a-clrefi, s-utf_32, System.Exceptions
10924 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
10925 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
10926 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
10927 Change g-string to s-string, g-os_lib to s-os_lib
10928 Change all g-utf_32 references to s-utf_32
10930 2007-06-06 Tristan Gingold <gingold@adacore.com>
10931 Olivier Hainque <hainque@adacore.com>
10933 * init.c: Do not adjust IP of an imported VMS exception of ia64.
10934 LIB$STOP is called to raise an exception and the IP of the exception
10935 is the instruction right after the call.
10936 (__gnat_adjust_context_for_raise, AIX): Implement.
10937 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
10938 adjust_context_for_raise before Raise_From_Signal_Hanler.
10939 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
10940 siginfo is passed to the handler, necessary to let the zcx propagation
10941 engine unwind past it.
10943 2007-06-06 Olivier Hainque <hainque@adacore.com>
10945 * initialize.c (__gnat_initialize for vxworks): Update documentation
10946 on the ZCX support, using different sets of crtstuff objects than with
10949 2007-06-06 Robert Dewar <dewar@adacore.com>
10951 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
10953 (Layout_Type): Fix recomputation of size from alignment.
10955 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10956 Javier Miranda <miranda@adacore.com>
10958 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
10959 association in an instance.
10960 (Copy_Generic_Node): If the node is a string literal, no need to copy
10962 (Is_Generic_Formal): For a formal subprogram, the declaration is the
10963 grandparent of the entity.
10964 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
10965 to simplify handling of formal interfaces that derive from other formal
10967 (Instantiate_Subprogram_Body): The defining unit name of the body of
10968 the instance should be a defining identifier.
10969 (Install_Formal_Packages): make global to the package, for use in
10970 instantiations of child units.
10971 (Analyze_Package_Instantiation): Do not attempt to set information on an
10972 enclosing master of an entry when expansion is disabled.
10973 (Instantiate_Type): If the actual is a tagged synchronized type and the
10974 generic ancestor is an interface, create a generic actual for the
10975 corresponding record.
10976 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
10977 declaration, to ensure that the interface list is processed correctly.
10978 (Inline_Instance_Body): If enclosing scope is an instance body, remove
10979 its entities from visibiility as well.
10980 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
10981 given with a named association, analyze the expression only, not the
10982 discriminant association itself.
10983 (Reset_Entity): If the analysis of a selected component is transformed
10984 into an expanded name in the prefix of a call with parameters, do not
10985 transform the original node into an expanded name, to prevent visibility
10986 errors in the case of nested generics.
10987 (Check_Private_View): For an array type, check whether the index types
10988 may need exchanging.
10990 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10991 Vincent Celier <celier@adacore.com>
10993 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
10994 since both are separated.
10995 Add support for imported CIL packages.
10996 Add further special handling of "value_type" for CIL.
10997 Add special handling of pragma Import for CIL.
10999 * make.ads, make.adb: When switch -eS is used, direct all outputs to
11000 standard output instead of standard error, except errors.
11001 (Absolute_Path): Use untouched casing for the parent directory.
11002 (Add_Library_Search_Dir): Use the untouched directory name.
11003 (Add_Source_Search_Dir): Idem.
11004 (Change_To_Object_Directory): Update output to use proper casing.
11005 (Create_Binder_Mapping_File): Use the untouched filename to set
11007 (Gnatmake): Use untouched library and executable directory names.
11008 (Insert_Project_Sources): Use untouched filename for spec and body.
11009 (Is_In_Object_Directory): Use untouched object directory.
11010 (Mark_Directory): Idem.
11011 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
11012 contains the non-canonical filename in all cases.
11013 (Change_To_Object_Directory): In verbose mode, display the name of the
11014 object directory we're changing to.
11015 (Compile_Sources): Make sure, when a project file is used, to compile
11016 the body of the unit, when there is one, even when only the spec is
11017 recorded in an ALI file.
11018 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
11020 (Report_Compilation_Failed): New procedure
11021 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
11022 procedures moved from the spec to the body.
11023 (Extract_Failure): Removed, not used
11024 Replace explicit raises of exception Bind_Failed and Link_Failed with
11025 calls to Make_Failed with the proper message.
11026 Replace explicit raises of exception Compilation_Failed with calls to
11027 procedure Report_Compilation_Failed.
11028 (Initialize): Create mapping files unconditionally when using project
11031 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11032 Pragma_CIL_Constructor): New names.
11034 * targparm.ads, targparm.adb
11035 (Compiler_System_Version): Removed, no longer used.
11036 (Get_Target_Parameters): Relax checks on system.ads validity. Add
11037 handling of two new system flags: JVM and CLI.
11039 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11040 Arnaud Charlet <charlet@adacore.com>
11042 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
11043 time, use the default s-interr body that provides interrupt support
11045 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
11046 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
11047 g-soccon.ads, and s-taprop.adb for the marte run time.
11048 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
11049 timers are supported on marte.
11050 (EH_MECHANISM for marte): Do not use ZCX.
11051 (THREADSLIB for marte): Use -lmarte.
11052 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
11053 Add mlib-tgt-specific.o to gnatmake objects
11054 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
11055 longer of MLib.Tgt.
11056 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
11057 6, either kernel or rtp, use a specialized version of s-osinte.ads.
11059 2007-06-06 Pascal Obry <obry@adacore.com>
11061 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
11063 2007-06-06 Vincent Celier <celier@adacore.com>
11065 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
11066 separator, use instead the proper host directory separator.
11067 (Copy_ALI_Files): Make sure that an already existing ALI file in the
11068 ALI copy dir is writable, before doing the copy.
11070 * mlib-utl.ads, mlib-utl.adb:
11071 (Gcc): If length of command line is too long, put the list of object
11072 files in a response file, if this is supported by the platform.
11073 (Ar): If invocation of the archive builder is allowed to be done in
11074 chunks and building it in one shot would go above an OS dependent
11075 limit on the number of characters on the command line, build the archive
11078 2007-06-06 Vincent Celier <celier@adacore.com>
11080 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
11081 of specified object file is not equal to base name of source.
11083 2007-06-06 Javier Miranda <miranda@adacore.com>
11084 Hristian Kirtchev <kirtchev@adacore.com>
11085 Ed Schonberg <schonberg@adacore.com>
11087 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
11088 the full type declaration.
11089 (Analyze_Component_Declaration): Add local variable E to capture the
11090 initialization expression of the declaration. Replace the occurences of
11091 Expression (N) with E.
11092 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
11093 limited interface object with a function call.
11094 (Array_Type_Declaration): If the declaration lacks subtype marks for
11095 indices, create a simple index list to prevent cascaded errors.
11096 (Is_Null_Extension): Ignore internal components created for secondary
11097 tags when checking whether a record extension is a null extension.
11098 (Check_Abstract_Interfaces): Add missing support for interface subtypes
11099 and generic formals.
11100 (Derived_Type_Declaration): Add missing support for interface subtypes
11101 and generic formals.
11102 (Analyze_Object_Declaration): If an initialization expression is
11103 present, traverse its subtree and mark all allocators as static
11105 (Add_Interface_Tag_Component): When looking for components that may be
11106 secondary tags, ignore pragmas that can appear within a record
11108 (Check_Abstract_Overriding): an inherited function that dispatches on
11109 result does not need to be overriden if the controlling type is a null
11111 (Mentions_T): Handle properly a 'class attribute in an anonymous access
11112 component declaration, when the prefix is an expanded name.
11113 (Inherit_Component): If the derivation is for a private extension,
11114 inherited components remain visible and their ekind should not be set
11116 (Find_Type_Of_Object): In the case of an access definition, always set
11117 Is_Local_Anonymous_Access. We were previously not marking the anonymous
11118 access type of a return object as a local anonymous type.
11119 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
11120 range with character literal bounds.
11121 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
11122 (Access_Subprogram_Declaration): Indicate that the type declaration
11123 depends on an incomplete type only if the incomplete type is declared
11125 (Analyze_Subtype_Declaration): Handle properly subtypes of
11126 synchronized types that are tagged, and that may appear as generic
11128 (Access_Subprogram_Declaration): An anonymous access to subprogram can
11129 appear as an access discriminant in a private type declaration.
11130 (Add_Interface_Tag_Components): Complete decoration of the component
11131 containing the tag of a secondary dispatch table and the component
11132 containing the offset to the base of the object (this latter component
11133 is only generated when the parent type has discriminants --as documented
11135 (Inherit_Components): Use the new decoration of the tag components to
11136 improve the condition that avoids inheriting the components associated
11137 with secondary tags of the parent.
11138 (Build_Discriminanted_Subtype): Indicate to the backend that the
11139 size of record types associated with dispatch tables is known at
11141 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
11142 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
11143 to include task, protected, and synchronized interfaces as limited
11145 (Process_Discriminants): Remove the setting of
11146 Is_Local_Anonymous_Access on the type of (anonymous) access
11147 discriminants of nonlimited types.
11148 (Analyze_Interface_Type_Declaration): Complete the decoration of the
11149 class-wide entity it is is already present. This situation occurs if
11150 the limited-view has been previously built.
11151 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
11153 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
11156 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11158 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
11159 of the type that specify the position of interface tags when the type
11160 inherits discriminated array components from the parent type.
11161 If a component is initialized with a box, check for the presence of a
11162 default expression in its declaration before using its default
11163 initialization procedure.
11164 (Resolve_Record_Aggregate): If a component is box-initialized, and the
11165 component type has a discriminants, create a partial aggregate for it
11166 by copying the discriminants of the component subtype.
11167 Reject attempt to initialize a discriminant with a box.
11168 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
11169 associated with dispatch tables is known at compile time.
11170 (Get_Value): If an association in a record aggregate has a box
11171 association, and the corresponding record component has a default
11172 expression, always copy the default expression, even when the
11173 association has a single choice, in order to create a proper
11174 association for the expanded aggregate.
11176 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11177 Robert Dewar <dewar@adacore.com>
11179 * par-ch12.adb (P_Generic_Associations): The source position of an
11180 Others association is that of the others keyword, not that of the token
11181 that follows the box.
11182 (P_Formal_Type_Definition): Handle formal access types that carry a
11183 not null indicator.
11185 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
11186 multiple identifier are present, save Scan_State before scanning the
11187 colon, to ensure that separate trees are constructed for each
11189 (P_Identifier_Declarations): For object declaration, set new flag
11190 Has_Init_Expression if initialization expression present.
11191 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
11192 Improve NOT NULL error messages
11194 2007-06-06 Robert Dewar <dewar@adacore.com>
11196 * par-ch4.adb: (P_Name): Recover from literal used as name
11198 2007-06-06 Vincent Celier <celier@adacore.com>
11200 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
11201 defaulted to False.
11202 In the "not" case, recursive call with Complemented set to True.
11203 Do not allow "or" or "and" operators when Complemented is True.
11205 2007-06-06 Vincent Celier <celier@adacore.com>
11207 * prj.adb (Project_Empty): Gives default value for new component
11210 * prj-attr.ads: Minor reformatting
11212 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
11213 directory using the untouched casing.
11214 (For_All_Source_Dirs): Idem.
11216 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
11217 directories specified with switches -aP.
11218 (Add_Search_Project_Directory): New procedure
11219 (Initialize_Project_Path): Put the directories in table
11220 Search_Directories in the project search path.
11221 (Initialize_Project_Path): For VMS, transform into canonical form the
11224 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11226 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
11227 true if configurable run-time or No_Run_Time is set.
11228 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
11229 processing an unit which is not the one being compiled.
11231 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11233 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
11234 Replace UC by Ada.UC
11236 * s-bitops.adb: Get rid of System.Pure_Exceptions.
11237 Replace UC by Ada.UC
11239 2007-06-06 Robert Dewar <dewar@adacore.com>
11241 * scng.adb: (Check_End_Of_Line): Deal with very long lines
11243 2007-06-06 Robert Dewar <dewar@adacore.com>
11245 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
11246 Remove no longer used nodes.
11248 2007-06-06 Javier Miranda <miranda@adacore.com>
11249 Ed Schonberg <schonberg@adacore.com>
11250 Robert Dewar <dewar@adacore.com>
11252 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
11253 on obsolescent withed unit in case of limited-withed units.
11254 (Analyze_Compilation_Unit): Add guard to code that removed an
11255 instantiation from visibility, to prevent compiler aborts when
11256 instantiation is abandoned early on.
11257 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
11258 current unit being analyzed, and Distinguish local incomplete types
11259 from limited views of types declared elsewhere.
11260 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
11261 to state that the class-wide entity is shared by the limited-view
11263 (Analyze_With_Clause): Improve placement of flag for case of
11264 unimplemented unit.
11265 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
11266 manner similar to GNAT.Current_Exception. This is a violation of
11267 restriction (No_Exception_Propagation), and also inhibits the
11268 optimization of local raise to goto.
11269 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
11270 and if so set Most_Recent_Exception_Used flag in Opt, and also check
11271 for violation of restriction No_Exception_Propagation.
11273 2007-06-06 Javier Miranda <miranda@adacore.com>
11274 Hristian Kirtchev <kirtchev@adacore.com>
11275 Gary Dismukes <dismukes@adacore.com>
11277 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
11278 use of entity Exception_Occurrence if it is not available in the
11281 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
11282 concurrent types are declared within an Ada 2005 generic, build their
11283 corresponding record types since they are needed for overriding-related
11285 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
11286 protected type does not implement a task interface or a nonlimited
11288 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
11289 type does not implement a protected interface or a nonlimited interface.
11290 (Single_Task_Declaration, Single_Protected_Declaration): use original
11291 entity for variable declaration, to ensure that debugging information
11292 is correcty generated.
11293 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
11294 routines if the expander is not active.
11295 (Analyze_Task_Body): Mark all handlers to stop optimization of local
11296 raise, since special things happen for task exception handlers.
11298 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
11299 concurrent types declared within a generic.
11300 (Check_Dispatching_Operation): Do not emit warning about late interface
11301 operations in the context of an instance.
11302 (Check_Dispatching_Call): Remove restriction against calling a
11303 dispatching operation with a limited controlling result.
11304 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
11305 Register_Interface_DT_Entry by calls to Register_Primitive.
11306 (Check_Dispatching_Formals): Handle properly a function with a
11307 controlling access result.
11309 2007-06-06 Robert Dewar <dewar@adacore.com>
11310 Arnaud Charlet <charlet@adacore.com>
11312 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
11313 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
11314 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
11315 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
11316 message when using a VM, since this attribute is not supported.
11317 (Analyze_Record_Representation_Clause): Give unrepped component warnings
11319 * usage.adb: Add new warning for renaming of function return objects
11320 Indicate that -gnatwp and -gnatwP concern front-end inlining
11321 Add line for -gnatyg
11322 Add usage information for -gnatw.c/C
11324 2007-06-06 Robert Dewar <dewar@adacore.com>
11325 Ed Schonberg <schonberg@adacore.com>
11328 (Find_Var): Do not consider function call in test for infinite loop
11329 warning if warnings set off for function entity.
11330 (One_Bound): Do not create a temporary for a loop bound if it is a
11332 (Analyze_Assignment): Traverse the right hand side of an assignment and
11333 mark all allocators as static coextensions.
11334 (Analyze_Assignment): Exempt assignments involving a dispatching call
11335 to a function with a controlling access result from the check requiring
11336 the target to be class-wide.
11338 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11339 Ed Schonberg <schonberg@adacore.com>
11340 Robert Dewar <dewar@adacore.com>
11341 Javier Miranda <miranda@adacore.com>
11343 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
11344 chain of coextensions when an allocator serves as the root of such a
11346 (Propagate_Coextensions): Remove the test for the root being an
11348 (Resolve_Allocator): Add condition to ensure that all future decoration
11349 occurs on an allocator node. Add processing and cleanup for static
11351 (Valid_Conversion): If the operand type is the limited view of a
11352 class-wide type, use the non-limited view is available to determine
11353 legality of operation.
11354 (Ambiguous_Character): move to spec, for use elsewhere.
11355 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
11356 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
11357 character literals.
11358 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
11359 Do_Division_Check flag explicitly.
11360 (Resolve_Actuals): If the actual is of a synchronized type, and the
11361 formal is of the corresponding record type, this is a call to a
11362 primitive operation of the type, that is declared outside of the type;
11363 the actual must be unchecked-converted to the type of the actual
11364 (Resolve_Call): Kill all current values for any subprogram call if
11365 flag Suppress_Value_Tracking_On_Call is set.
11366 (Resolve_Type_Conversion): Generate error message the the operand
11367 or target of interface conversions come from a limited view.
11368 (Check_Infinite_Recursion): Ignore generated calls
11369 (Check_Allocator_Discrim_Accessibility): New procedure for checking
11370 that an expression that constrains an access discriminant in an
11371 allocator does not denote an object with a deeper level than the
11372 allocator's access type.
11373 (Resolve_Allocator): In the case of an allocator initialized by an
11374 aggregate of a discriminated type, check that associations for any
11375 access discriminants satisfy accessibility requirements by calling
11376 Check_Allocator_Discrim_Accessibility.
11377 (Resolve_Equality_Op): Handle comparisons of anonymous access to
11378 subprogram types in the same fashion as other anonymous access types.
11379 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
11380 message that is not a continuation message.
11381 (Resolve_Type_Conversion): Add missing support for conversion to
11383 (Resolve_Actuals): Introduce a transient scope around the call if an
11384 actual is a call to a function returning a limited type, because the
11385 resulting value must be finalized after the call.
11386 (Resolve_Actuals): If the call was given in prefix notations, check
11387 whether an implicit 'Access reference or implicit dereference must be
11388 added to make the actual conform to the controlling formal.
11390 2007-06-06 Robert Dewar <dewar@adacore.com>
11391 Javier Miranda <miranda@adacore.com>
11393 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
11394 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
11395 overriding of an inherited private subprogram now there is no need to
11396 inherit its dispatching slot and reduce the size of the dispatch table.
11397 Set_All_DT_Position now ensures that the same slot is now assigned to
11398 both entities. This is required to statically build the dispatch table.
11399 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
11400 of calling Set_All_DT_Position to re-evaluate the position of the
11401 entries in the dispatch table. Such reevaluation is not desired if
11402 the tagged type is already frozen.
11404 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11405 Gary Dismukes <dismukes@adacore.com>
11406 Robert Dewar <dewar@adacore.com>
11407 Javier Miranda <miranda@adacore.com>
11409 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
11410 reference acts as an lvalue when the attribute name modifies the prefix
11411 (Is_Coextension_Root): New routine.
11412 (Mark_Static_Coextensions): New routine.
11413 (Type_Access_Level): Revise code for checking the level of the
11414 anonymous access type of a return object.
11415 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
11416 (Matches_Prefixed_View_Profile): Remove the no longer necessary
11417 retrieval of the corresponding controlling record type.
11418 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
11419 concurrent types declared within a generic as well as class wide types.
11420 Emit a mode incompatibility error whenever a protected entry or routine
11421 override an interface routine whose first parameter is not of mode
11422 "out", "in out" or access to variable.
11423 (Overrides_Synchronized_Primitive): Rename to
11424 Find_Overridden_Synchronized_Primitive.
11425 (Collect_Interface_Components): New subprogram that collects all the
11426 components of a tagged record containing tags of secondary dispatch
11428 (Add_Global_Declaration): New procedure
11429 (Abstract_Interface_List): Handle properly the case of a subtype of a
11431 (Type_Access_Level): In the case of a type whose parent scope is a
11432 return statement, call Type_Access_Level recursively on the enclosing
11433 function's result type to determine the level of the return object's
11435 (Build_Elaboration_Entity): Build name of elaboration entity from the
11436 scope chain of the entity, rather than the unit name of the file name.
11437 (Check_Nested_Access): New procedure.
11438 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11439 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11440 (Get_Renamed_Entity): Utility routine for performing common operation
11441 of chasing the Renamed_Entity field of an entity.
11443 2007-06-06 Robert Dewar <dewar@adacore.com>
11445 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
11447 (Check_A_Call): Add check for entry call which was causing blowup
11449 2007-06-06 Olivier Hainque <hainque@adacore.com>
11451 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
11452 special code on ia64-vms to handle major incompatibilities between the
11453 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
11454 this routine with a very different set of arguments and expectations on
11457 2007-06-06 Thomas Quinot <quinot@adacore.com>
11459 * socket.c (__gnat_close_signalling_fd): New function.
11460 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
11461 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
11462 New supporting functions for task safe Netdb operations.
11464 2007-06-06 Thomas Quinot <quinot@adacore.com>
11465 Olivier Hainque <hainque@adacore.com>
11467 * a-except-2005.ads, a-except-2005.adb
11468 (Raise_From_Controlled_Operation): New procedure in
11469 (private part of) Ada.Exceptions (standard runtime version). Used to
11470 provide informational exception message when Program_Error is raised as
11471 a result of an Adjust or Finalize operation propagating an exception.
11472 (Rmsg_28): Fix description for E.4(18) check.
11473 (Raise_Current_Excep): Call Debug_Raise_Exception just before
11474 propagation starts, to let debuggers know about the event in a reliable
11476 Take the address of E and dereference to make sure it is homed on stack
11477 and prevent the stores from being deleted, necessary for proper
11478 debugger behavior on "break exception" hits.
11479 (Local_Raise): Moved to System.Exceptions
11481 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
11482 exception message from the current occurrence and raise Program_Error
11483 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
11485 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11486 Arnaud Charlet <charlet@adacore.com>
11488 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
11491 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
11492 priority associated to a lock.
11494 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
11495 assertion to take into account case of no abort restriction.
11496 (Initialize_Protection_Entries): Add initialization for the field
11497 New_Ceiling associated to the protected object.
11498 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
11501 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11502 since this function needs to be set consistently with Update_Exception.
11504 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11505 since this function needs to be set consistently with Update_Exception.
11507 * s-taskin.ads: Update comments on
11508 Interrupt_Server_Blocked_On_Event_Flag.
11509 (Unbind_Handler): Fix handling of server_task wakeup
11510 (Server_Task): Set self's state so that Unbind_Handler can take
11511 appropriate actions.
11512 (Common_ATCB): Now use a constant from System.Parameters to determine
11513 the max size of the Task_Image field.
11515 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
11516 Initialize_Analyzer function.
11517 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
11518 take into account case of no abort restriction.
11519 ([Vulnerable_]Complete_Master): Modify assertion.
11521 * s-tataat.adb (Finalize): Use the nestable versions of
11522 Defer/Undefer_Abort.
11524 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
11526 * s-tpobop.ads: Update comments.
11528 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
11529 of locking the object manually, to avoid inconsistencies between
11530 Lock/Unlock_Entry assertions.
11532 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
11534 application and System.Parameters.No_Abort is True.
11535 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
11536 (Unbind_Handler): Fix handling of server_task wakeup
11537 (Server_Task): Set self's state so that Unbind_Handler can take
11538 appropriate actions.
11540 2007-06-06 Thomas Quinot <quinot@adacore.com>
11542 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
11543 declarations instead of an explicit null body, for conciseness.
11545 2007-06-06 Robert Dewar <dewar@adacore.com>
11547 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
11548 illegal aggregate and the type is still Any_Composite.
11549 (Subtypes_Statically_Match): Fix problem of empty discriminant list
11551 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11553 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
11554 to prevent subsequent expansion.
11556 2007-06-06 Robert Dewar <dewar@adacore.com>
11558 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
11560 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11561 Robert Dewar <dewar@adacore.com>
11563 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
11565 (Write_Itype): Handle case of string literal subtype, which
11566 comes up in this context.
11567 (Update_Itype): when debugging expanded code, update sloc of itypes
11568 associated with defining_identifiers and ranges, for gdb use.
11569 (Sprint_Node_Actual): Add static keyword to object or exception
11570 declaration output if Is_Statically_Allocated is True.
11571 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
11572 or task body, so that the tree carries the proper Sloc information for
11574 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
11576 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11578 * s-secsta.adb (Chunk): Ensure this object has a static size known at
11579 compile time, to avoid dynamic memory allocation
11580 (Elaboration code): Only use dynamic memory allocation when needed.
11582 2007-06-06 Quentin Ochem <ochem@adacore.com>
11584 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
11586 (Stack_Analyzer): Added field "Overflow_Guard"
11587 (Task_Result): Added field "Overflow_Guard".
11588 (Index_Str): New constant.
11589 (Task_Name_Str): New constant.
11590 (Actual_Size_Str): New constant.
11591 (Pattern_Array_Element_Size): New constant.
11592 (Get_Usage_Range): New subprogram.
11593 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
11594 Now align the output.
11596 (Initialize): Added value for Overflow_Guard.
11597 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
11598 Update the value of the overflow guard according to the actual
11599 beginning of the pattern array.
11600 (Initialize_Analyzer): Added parameter Overflow_Guard.
11601 Take this parameter into accound when computing the max size.
11602 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
11603 (Report_Result): Removed extra useless procedure.
11604 Updated call to Output_Result.
11605 Moved full computation of the Task_Result here.
11607 2007-06-06 Thomas Quinot <quinot@adacore.com>
11609 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
11610 Thread_Blocking_IO, always True by default, set False on a per-runtime
11612 Add Windows-specific constants
11613 Add new constant Need_Netdb_Buffer.
11614 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11615 not, whether to use getXXXbyYYY_r.
11617 * gsocket.h: Add new constant Need_Netdb_Buffer.
11618 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11619 not, whether to use getXXXbyYYY_r.
11621 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
11623 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
11624 than their first call.
11625 Add type Dummy_Communication_Block used in the generation of the pre-
11626 defined dispatching primitive _disp_asynchronous_select.
11627 (Storage_Element): Put Pragma Universal_Aliasing on it.
11629 2007-06-06 Vincent Celier <celier@adacore.com>
11631 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
11634 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
11635 letter if it is not followed by a '/' or a '\'.
11636 (Windows): New Boolean function
11638 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
11640 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
11642 (Containing_Directory): Raise Use_Error when the directory is a root
11644 (Extension): When returning the result, use a conversion to Result_Type,
11645 not a qualification.
11647 2007-06-06 Robert Dewar <dewar@adacore.com>
11649 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
11650 (Set_Style_Check_Options): Recognize new -gnatyg style switch
11652 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
11653 Warn_On_Non_Local_Exception to False, to turn off warnings for
11654 No_Exception_Propagation in ZFP runtime.
11655 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
11657 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
11659 2007-06-06 Vincent Celier <celier@adacore.com>
11661 * switch-b.adb (Scan_Binder_Switches): Add processing for new
11664 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
11665 (Scan_Make_Switches): Recognize new switch -aP
11667 2007-06-06 Matthew Gingell <gingell@adacore.com>
11668 Jose Ruiz <ruiz@adacore.com>
11670 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
11671 VxWorks task descriptor in the Ada run time, call a C subprogram
11672 (__gnat_get_stack_info) that extracts the required information.
11674 * sysdep.c: Back out temporary lynxos workaround.
11675 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
11676 time the stack information associated to the currently executing task.
11677 Only VxWorks systems require this function.
11679 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
11681 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
11682 add the stack bias if the offset is computed from a frame address.
11683 (__gnat_backtrace): Adjust for above change.
11685 2007-06-06 Thomas Quinot <quinot@adacore.com>
11687 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
11688 PE_Non_Transportable_Actual.
11689 (By_Descriptor_Last): New constant.
11690 (By_Copy_Return): Likewise.
11692 2007-06-06 Vincent Celier <celier@adacore.com>
11694 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
11697 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
11698 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
11699 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
11700 Add missing comment for /OPTIMIZE=SPACE
11701 Add entry for OPTIMIZE=SPACE
11702 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
11703 Add documentation for new qualifiers corresponding to -gnatw.c/.C
11705 2007-06-06 Vincent Celier <celier@adacore.com>
11706 Robert Dewar <dewar@adacore.com>
11708 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
11711 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
11712 Document gnatbind switch -a
11713 (case Constructions): Document that variables declarations are allowed
11714 for previously declared variables.
11715 Fix external lib project example
11716 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
11717 Indicate that "#if not X or Y then" is not allowed in input files to
11719 Document gnatw.x and gnatw.X warning flags
11720 Mention -Winline switch to activate warnings when back-end inlining is
11722 Add gnatcheck rule descriptions
11723 Describe how to use the GNAT driver to call a tool on a closure.
11724 Describe how to run project-wide checks or metrics.
11725 Document gnatbind's -R option
11726 Updated to account for Ada 2005 support
11728 * gnat_rm.texi (Case Construction): Allow variable declarations for
11729 previously declared variables.
11730 (Representation Clauses and Pragmas): Lift restriction on alignment
11731 clauses for record types.
11732 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
11733 Document No_Exception_Propagation restriction
11734 Document No_Body pragma
11735 Updated to account for Ada 2005 support; corrected some typos
11736 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
11738 * gnat-style.texi: Make it clear that we never use mode IN for
11739 procedures or functions
11741 * ug_words: Add entries for -gnatw.x and -gnatw.X
11742 Add entries for -gnatw.c/.C
11744 2007-06-06 Pascal Obry <obry@adacore.com>
11745 Vincent Celier <celier@adacore.com>
11747 * makegpr.adb (Add_Archive_Path): Use untouched object and library
11748 dirs and library name.
11749 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
11751 (Build_Library): Idem.
11752 (Compile_Individual_Sources): Idem.
11753 (Compile_Link_With_Gnatmake): Idem.
11754 (Compile_Sources): Idem.
11755 (Get_Imported_Directories): Idem.
11756 (Link_Executables): Idem. Same change for the executable dir.
11757 (Check_Compilation_Needed): C_Source_Path new variable containing
11758 the canonical form of Source_Path to check against the source names
11759 in the dependency file.
11760 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
11761 verbose mode, display the name of the object directory we're changing
11763 (Saved_Switches): New name of table X_Switches
11764 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
11765 (Usage): New line for switch -aP
11766 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
11767 testing if a directory should be added to the search path.
11769 2007-06-06 Javier Miranda <miranda@adacore.com>
11771 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
11772 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
11773 declaration after freezing point of all its associated tagged types;
11774 otherwise such types are frozen too early.
11776 2007-06-06 Robert Dewar <dewar@adacore.com>
11778 * a-reatim.adb: Documentation addition
11780 * g-cgideb.adb: Minor code reorganization
11782 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
11783 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
11784 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
11786 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
11787 function. Change name New_Scope to Push_Scope
11788 (Get_Debug_Flag_K): Remove unused obsolete function.
11790 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
11793 * makeusg.adb: Update Copyright notice
11794 Add line for switch -aP
11796 * makeusg.adb: Fix wording of some usage messages
11798 * s-assert.adb (Raise_Assert_Failure): Add call to
11799 Debug_Raise_Assert_Failure.
11801 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
11802 (2, Standard'Alignment) for compatibility with AAMP (where alignment
11803 is restricted to 1).
11805 * s-wchjis.adb: Remove use of System.Pure_Exceptions
11807 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
11808 node location to No_Location when we're not debugging the expanded
11811 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
11813 * misc.c (enumerate_modes): Consider log2_b to always be one.
11815 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
11817 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
11819 2007-05-02 Pascal Obry <obry@adacore.com>
11821 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
11822 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
11823 encoding support of Stream_IO.
11824 (Write_Unit): Idem.
11826 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
11827 filename and corresponding encoding to match the OS requirement.
11828 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
11829 routine will fail on specific devices like CON: AUX: ...
11831 PR ada/29856: Add missing braces
11833 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
11836 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
11838 2007-04-21 Jan Hubicka <jh@suse.cz>
11840 * misc.c (gnat_expand_body): Don't call target for destructors,
11841 avoid redundant check on syntax errors.
11843 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
11845 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
11846 instead of checking GIMPLE_STMT_P in chain_next.
11848 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
11851 * system-linux-alpha.ads: Disable constant condition warning for the
11852 Default_Bit_Order variable.
11853 * system-linux-s390.ads: Likewise.
11854 * system-linux-s390x.ads: Likewise.
11855 * system-linux-sparc.ads: Likewise.
11857 2007-04-06 Javier Miranda <miranda@adacore.com>
11858 Matt Heaney <heaney@adacore.com>
11859 Robert Dewar <dewar@adacore.com>
11861 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
11862 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
11863 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
11864 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
11865 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
11866 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
11867 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
11868 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
11869 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
11870 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
11871 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
11872 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
11873 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
11874 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
11875 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
11876 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
11877 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
11878 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
11879 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
11880 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
11881 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
11882 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
11883 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
11884 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
11885 s-taprop-tru64.adb, s-taprop-irix.adb,
11886 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
11887 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
11888 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
11889 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
11890 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
11891 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
11892 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
11893 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
11894 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
11895 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
11896 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
11897 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
11898 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
11899 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
11900 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
11901 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
11902 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
11903 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
11904 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
11905 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
11907 Update documentation.
11910 2007-04-06 Robert Dewar <dewar@adacore.com>
11912 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
11913 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
11914 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
11915 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
11916 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
11917 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
11918 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
11919 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
11920 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
11921 system-hpux-ia64.ads, targparm.adb,
11922 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
11924 * system.ads: Move Functions_Return_By_DSP to obsolete section,
11925 kept for bootstrap purposes only.
11927 2007-04-06 Arnaud Charlet <charlet@adacore.com>
11929 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11930 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
11931 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
11932 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
11934 2007-04-06 Robert Dewar <dewar@adacore.com>
11936 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
11937 (Local_Raise): New dummy procedure called when a raise is converted
11938 to a local goto. Used for debugger to detect that the exception
11941 * debug.adb: Document new d.g flag (expand local raise statements to
11942 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
11944 * exp_sel.adb: Use Make_Implicit_Exception_Handler
11946 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
11947 suppress warnings for unused handlers.
11948 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
11949 warnings for raise statements not handled locally.
11950 (Get_RT_Exception_Entity): New function
11951 (Get_Local_Call_Entity): New function
11952 (Find_Local_Handler): New function
11953 (Warn_If_No_Propagation): New procedure
11954 (Expand_At_End_Handler): Call Make_Implicit_Handler
11955 (Expand_Exception_Handlers): Major additions to deal with local handlers
11956 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
11957 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
11960 * exp_ch11.ads (Get_RT_Exception_Entity): New function
11961 (Get_Local_Call_Entity): New function
11963 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
11964 of restrictions that the binder will never suggest adding.
11966 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
11969 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
11970 be with'ed in the presence of pragma Restriction
11971 (No_Exception_Propagation).
11973 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
11975 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
11976 parameter, then the handler is not a suitable target for a local raise,
11977 and this is a violation of restriction No_Exception_Propagation.
11978 (Analyze_Handled_Statements): Analyze choice parameters in exception
11979 handlers before analyzing statement sequence (needed for proper
11980 detection of local raise statements).
11981 (Analyze_Raise_Statement): Reraise statement is a violation of the
11982 No_Exception_Propagation restriction.
11984 * s-rident.ads: Add new restriction No_Exception_Propagation
11986 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
11987 function, like Make_Exception_Handler but sets Local_Raise_Statements
11989 (Add_Unique_Serial_Number): Deal with case where this is called during
11990 processing of configuration pragmas.
11992 2007-04-06 Thomas Quinot <quinot@adacore.com>
11993 Pat Rogers <rogers@adacore.com>
11994 Pascal Obry <obry@adacore.com>
11996 * g-stsifd-sockets.adb: New file.
11998 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
11999 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
12000 g-socthi-vms.adb: Move signalling
12001 fd management to a nested package, so that they can conveniently be
12002 moved to a subunit that is shared across Windows, VMS, and VxWorks
12003 (Ada implementation) or completed with imported bodies from socket.c
12005 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
12007 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
12008 the signalling file descriptor.
12009 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
12010 signalling file descriptor.
12011 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
12012 instead of creating a pair of sockets for signalling here.
12014 * g-socthi.adb: Ditto.
12015 Set the runtime process to ignore SIGPIPEs on platforms that support
12016 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12018 * g-socthi-mingw.adb: Ditto.
12019 (WS_Version): Use Windows 2.2.
12020 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12022 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
12023 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12025 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
12026 added GNAT byte swapping facility
12027 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
12029 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
12031 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
12033 (__gnat_create_signalling_fds): New subprogram.
12034 Set the runtime process to ignore SIGPIPEs on platforms that support
12035 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12037 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
12038 Vincent Celier <celier@adacore.com>
12040 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
12041 New version of Ada.Calendar which supports the new upper bound of Ada
12042 time (2399-12-31 86_399.999999999).
12043 The following modifications have been made to the package:
12044 - New representation of time as count of nanoseconds since the start of
12045 Ada time (1901-1-1 0.0).
12046 - Target independent Split and Time_Of routines which service both
12047 Ada 95 and Ada 2005 code.
12048 - Target independent interface to the Ada 2005 children of Calendar.
12049 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
12050 - Handling of non-leap centenial years.
12051 - Updated clock function.
12052 - Updated arithmetic and comparison operators.
12054 * a-caldel.adb (To_Duration): Add call to target independent routine in
12055 Ada.Calendar to handle the conversion of time to duration.
12057 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
12059 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
12061 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
12062 targets do not have a natural time zone, GMT is used as a default.
12063 (__gnat_get_task_options): New.
12065 * a-direct.adb (Modification_Time): Add with and use clauses for
12066 Ada.Calendar and Ada.
12067 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
12068 since it is no longer needed.
12069 (Duration_To_Time): Removed.
12070 (OS_Time_To_Long_Integer): Removed.
12071 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
12072 Formatting Time_Of routines which automatically handle time zones,
12073 buffer periods and leap seconds.
12075 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
12076 target independent routines in Ada.Calendar.
12078 * a-calfor.ads, a-calfor.adb:
12079 Code cleanup and addition of validity checks in various routines.
12080 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
12083 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
12084 independent routine in Ada.Calendar.
12086 2007-04-06 Olivier Hainque <hainque@adacore.com>
12089 (convert_addresses): Adjust prototype and dummy definition to expect an
12090 extra file_name argument.
12092 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
12093 filling the now expected file_name argument with the appropriate
12095 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
12096 (tracebk): Array of void * instead of char *, corresponding to what
12097 convert_addresses expects.
12098 (exename): New static global, to hold the executable file name to be
12099 used in all convert_addresses invocations.
12100 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
12102 (__gnat_gmem_a2l_initialize): Resolve exename.
12103 (__gnat_convert_addresses): Use exename as the convert_addresses
12104 file_name argument.
12106 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
12107 "convert_addresses", now expecting a filename argument. Import the
12108 necessary entities to compute the filename to use and pass it to
12111 2007-04-06 Matt Gingell <gingell@adacore.com>
12113 * system-aix.ads: Back out previous change.
12114 (Functions_Return_By_DSP): Removed
12116 2007-04-06 Pascal Obry <obry@adacore.com>
12118 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
12119 or the monotonic used by Ada.Real_Time) to compute the sleep duration
12122 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12124 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
12125 function. Its value changes in different VxWorks versions, and it is
12126 now handled by the function __gnat_get_task_options.
12128 * s-taprop-vxworks.adb (Create_Task): Call the function
12129 __gnat_get_task_options to get the required options for creating a task.
12131 2007-04-06 Pascal Obry <obry@adacore.com>
12132 Thomas Quinot <quinot@adacore.com>
12134 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
12135 dealing with filename.
12136 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
12137 filename from a standard string to a wide-string depending on the
12139 (__gnat_freopen): Idem.
12140 (__gnat_current_time): New function (wrapper for time(3) standard C
12143 * g-os_lib.ads (Current_Time): New function. Returns the current
12144 system time as an OS_Time value.
12146 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
12147 (Monotonic_Clock): Same.
12149 2007-04-06 Quentin Ochem <ochem@adacore.com>
12151 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
12153 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
12155 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12157 * a-retide.adb: Add elaboration code to ensure that the tasking run
12158 time is initialized when using delay operations even when no task is
12161 2007-04-06 Javier Miranda <miranda@adacore.com>
12163 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
12164 component Num_Prim_Ops.
12165 (Set_Num_Prim_Ops): Removed.
12166 Remove all the assertions because all the routines of this
12167 package are inline always.
12168 (Get_Offset_Index): Add support to primary dispatch tables.
12169 Move the documentation about the dispatch table to a-tags.ads
12170 (Set_External_Tag): Removed
12171 (Inherit_TSD): Removed.
12172 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
12173 moved to a-tags.ads
12174 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
12175 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
12176 of the TSD field "Table" because this field has been renamed to
12178 (Inherit_CPP_DT): Removed.
12179 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
12180 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
12181 declarations have been moved to a-tags.ads
12182 (Check_Size): Removed.
12183 (Expanded_Name): Updated to get access to the new field of TSD
12184 containing the address of the expanded name.
12185 (Get_Access_Level/Set_Access_Level): Removed.
12186 (Get_Predefined_Prim_Op_Address): Removed.
12187 (Set_Predefined_Prim_Op_Address): Removed.
12188 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
12189 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
12190 (Set_Expanded_Name): Removed.
12191 (Inherit_DT): Removed.
12192 (Inherit_CPP_DT): Removed.
12193 (Set_RC_Offset): Removed.
12194 (Set_TSD): Removed.
12195 (Base_Address): New function that displaces "this" to point to the base
12196 of the object (that is, to point to the primary tag of the object).
12198 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12199 Javier Miranda <miranda@adacore.com>
12201 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
12202 anonymous access component, do not create a master_id if type already
12203 has one, as may happen if the type is a subcomponent of a packed array
12205 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
12206 Initialize_Tag): Remove code associated with the old CPP pragmas.
12207 CPP_Virtual and CPP_Vtable are no longer supported.
12208 (Build_Offset_To_Top_Internal): Add support for concurrent record types
12209 (Build_Offset_To_Top_Functions): Add support for concurrent record types
12210 (Freeze_Record_Type): Remove call to
12211 Init_Predefined_Interface_Primitives.
12212 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
12213 code required to initialize the tags of the secondary dispatch tables.
12214 This leaves the algoritm more clear.
12215 (Init_Secondary_Tags): Add support for concurrent record types
12216 (Make_Predefined_Primitive_Specs): Code cleanup.
12217 (Predefined_Primitive_Bodies): Code cleanup.
12218 (Build_Master_Renaming): New local subprogram.
12219 (Expand_N_Full_Type_Declaration): Build the master_id associated with
12220 anonymous access to task type components.
12221 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
12222 subtype indication are resolved during analysis, and must not be done
12224 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
12226 2007-04-06 Geert Bosch <bosch@adacore.com>
12227 Ed Schonberg <schonberg@adacore.com>
12228 Javier Miranda <miranda@adacore.com>
12229 Bob Duff <duff@adacore.com>
12231 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
12232 for conversion of a Float_Type'Truncation to integer.
12234 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
12235 check if a node is an attribute that can be handled directly by the
12237 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
12238 attributes that can be handled directly by the back end.
12239 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
12240 use new predicate Is_Access_Protected_Subprogram_Type.
12241 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
12242 and Unchecked_Union if it is generated as part of the default Output
12243 procedure for a type with default discriminants.
12244 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
12245 if we are compiling under restriction No_Dispatching_Calls.
12246 (Constrained): Use Underlying_Type, in case the type is private without
12247 discriminants, but the full type has discriminants.
12248 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
12249 call to Build_Get_Access_Level.
12250 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
12251 interface objects requires a call to the run-time subprogram that
12252 returns the base address of the object.
12253 (Valid_Conversion): Improve error message on illegal attempt to store
12254 an anonymous access to subprogram value into a record component.
12256 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
12258 (Simplify_Type_Conversion): New procedure that performs simplification
12259 of Int_Type (Float_Type'Truncation (X)).
12260 (Resolve_Type_Conversion): Call above procedure after resolving operand
12261 and before performing checks. This replaces the existing ineffective
12263 (Set_String_Literal_Subtype): When creating the internal static lower
12264 bound subtype for a string literal, use a newly created copy of the
12265 subtree representing the lower bound.
12266 (Resolve_Call): Exclude build-in-place function calls from transient
12267 scope treatment. Update comments to describe this exception.
12268 (Resolve_Equality_Op): In case of dispatching call check violation of
12269 restriction No_Dispatching_Calls.
12270 (Resolve_Call): If the call returns an array, the context imposes the
12271 component type of the array, and the function has one non-defaulted
12272 parameter, rewrite the call as the indexing of a call with a single
12273 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
12275 (Resolve_Actuals): If an actual is an allocator for an access parameter,
12276 the master of the created object is the innermost enclosing statement.
12277 (Remove_Conversions): For a binary operator, check if type of second
12278 formal is numeric, to check if an abstract interpretation is present
12279 in the case of exponentiation as well.
12281 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12282 Bob Duff <duff@adacore.com>
12284 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
12285 copying a parameter list in a call, set properly the First_Named_Formal
12286 and Next_Named_Formal fields in the new list and in the enclosing call.
12287 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
12288 names, to ease typing in the debugger. Improve comments.
12289 (Watch_Node): New variable, intended to be set in the debugger.
12290 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
12291 called when the watched node is created.
12292 (New_Node_Debugging_Output): Combined version of local procedures
12293 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
12294 with a parameter so that conditional breakpoints like "if Node = 12345"
12296 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
12297 Add Elist1 function
12299 2007-04-06 Thomas Quinot <quinot@adacore.com>
12300 Ed Schonberg <schonberg@adacore.com>
12301 Gary Dismukes <dismukes@adacore.com>
12303 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
12304 required for a conversion between two access-to-unconstrained-array
12306 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
12307 to discriminant constraints on discriminant objects. This rule must
12308 apply as well to discriminants of protected types in private components.
12309 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
12310 object of a null-excluding access type then don't require the
12311 the object declaration to have an expression and don't emit a
12314 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12315 Eric Botcazou <botcazou@adacore.com>
12317 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
12320 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
12321 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
12324 * fe.h (Compiler_Abort): Add third parameter.
12326 * misc.c (internal_error_function): Build third argument from current
12327 input location and pass it to Compiler_Abort.
12329 2007-04-06 Gary Dismukes <dismukes@adacore.com>
12331 * cstand.adb (Create_Standard): When the target's storage unit size is
12332 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
12335 2007-04-06 Nicolas Roche <roche@adacore.com>
12337 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
12338 absolute path can have the following form: device:/a/b. In this case
12339 '/' should be inserted between the path and the filename.
12341 2007-04-06 Olivier Hainque <hainque@adacore.com>
12342 Eric Botcazou <botcazou@adacore.com>
12344 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
12345 VAR_DECL to a CONST_DECL we make for a public constant when we know the
12346 corresponding definition has created the so made visible variable.
12347 Handle anonymous access to protected subprogram.
12348 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
12349 object with an address clause volatile. Re-enable original fix.
12350 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
12352 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
12353 associated with either the Equivalent or Root type, instead of the
12355 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
12356 subtree for every field of a global record type.
12357 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
12358 discriminants, invoke again variable_size on its newly computed sizes.
12360 2007-04-06 Robert Dewar <dewar@adacore.com>
12361 Thomas Quinot <quinot@adacore.com>
12362 Ed Schonberg <schonberg@adacore.com>
12363 Bob Duff <duff@adacore.com>
12365 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
12366 (Next_Component_Or_Discriminant): New function and procedure
12367 (First_Index, First_Literal, Master_Id,
12368 Set_First_Index, Set_First_Literal, Set_Master_Id):
12369 Add missing Ekind assertions.
12370 (Is_Access_Protected_Subprogram_Type): New predicate.
12371 (Has_RACW): New entity flag, set on package entities to indicate that
12372 the package contains the declaration of a remote accecss-to-classwide
12374 (E_Return_Statement): This node type has the Finalization_Chain_Entity
12375 attribute, in case the result type has controlled parts.
12376 (Requires_Overriding): Add this new flag, because "requires
12377 overriding" is subtly different from "is abstract" (see AI-228).
12378 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
12379 Is_Abstract_Type. Make sure these are called only when appropriate.
12380 (Has_Pragma_Unreferenced_Objects): New flag
12382 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
12383 class-wide, the tag of the right-hand side must be an exact match, not
12384 an ancestor of that of the object on left-hand side.
12385 (Move_Activation_Chain): New procedure to create the call to
12386 System.Tasking.Stages.Move_Activation_Chain.
12387 (Expand_N_Extended_Return_Statement): Generate code to call
12388 System.Finalization_Implementation.Move_Final_List at the end of a
12389 return statement if the function's result type has controlled parts.
12390 Move asserts to Build_In_Place_Formal.
12391 (Move_Final_List): New function to create the call statement.
12392 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
12393 tagged type, replace generation of call to the run-time subprogram
12394 CW_Membership by call to Build_CW_Membership.
12395 (Expand_N_Return_Statement): Replace generation of call to the run-time
12396 subprogram Get_Access_Level by call to Build_Get_Access_Level.
12397 (Expand_N_Simple_Function_Return): Replace generation of call to the
12398 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12400 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
12401 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
12402 access to protected operations.
12403 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
12404 master and chain actual parameters to a build-in-place function call
12406 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
12408 (Make_Build_In_Place_Call_In_Allocator,
12409 Make_Build_In_Place_Call_In_Anonymous_Context,
12410 Make_Build_In_Place_Call_In_Assignment,
12411 Make_Build_In_Place_Call_In_Object_Declaration): Call
12412 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
12413 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
12414 stubbed procedure with a null body, replace the call with a null
12415 statement without using the full inlining machinery, for efficiency
12416 and to avoid invalid values in source file table entries.
12418 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
12419 renamings of calls to build-in-place functions.
12421 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
12422 provides the functionality of RTE_Available to record components.
12423 (RTU_Entity): The function Entity has been renamed to RTU_Entity
12424 to avoid undesired overloading.
12425 (Entity): New subprogram that returns the entity for the referened
12426 unit. If this unit has not been loaded, it returns Empty.
12427 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
12428 Remove no longer used entities.
12429 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
12430 (RE_Type_Specific_Data): New entity.
12431 (RE_Move_Any_Value): New entity.
12432 (RE_TA_A, RE_Get_Any_Type): New entities.
12433 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
12434 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
12435 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
12436 (Entity): New subprogram that returns the entity for the referened
12437 unit. If this unit has not been loaded, it returns Empty.
12438 (RTE): Addition of a new formal that extends the search to the scopes
12439 of the record types found in the chain of the package.
12441 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
12442 "abstract subprograms must be visible" message, whether or not the type
12443 is an interface; that is, remove the special case for interface types.
12444 (Analyze_Function_Return): Remove error message "return of task objects
12445 is not yet implemented" because this is now implemented.
12446 (Create_Extra_Formals): Add the extra master and activation chain
12447 formals in case the result type has tasks.
12448 Remove error message "return of limited controlled objects is not yet
12450 (Create_Extra_Formals): Add the extra caller's finalization list formal
12451 in case the result type has controlled parts.
12452 (Process_Formals): In case of access formal types there is no need
12453 to continue with the analysis of the formals if we already notified
12455 (Check_Overriding_Indicator): Add code to check overriding of predefined
12457 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
12458 flags for formals that do not require them,.
12459 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
12460 hidden entity is use visible or directly visible.
12461 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
12462 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
12463 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
12464 New_Overloaded_Entity): Split Is_Abstract flag into
12465 Is_Abstract_Subprogram and Is_Abstract_Type.
12467 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
12468 a return statement's finalization list to the caller's list, used for
12469 build-in-place functions with result type with controlled parts.
12470 Remove no longer used entities.
12472 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
12473 longer needed, because the full type is now limited, and therefore a
12474 pass-by-reference type.
12475 (Foreign_Task_Level): New constant.
12477 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
12478 move tasks from the activation chain belonging to a return statement to
12479 the one passed in by the caller, and update the master to the one
12480 passed in by the caller.
12481 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
12482 of unactivated tasks, so we don't kill the ones that are being returned
12483 by a build-in-place function.
12484 (Create_Task): Ignore AI-280 for foreign threads.
12486 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12487 Robert Dewar <dewar@adacore.com>
12488 Bob Duff <duff@adacore.com>
12489 Gary Dismukes <dismukes@adacore.com>
12491 * errout.adb (Unwind_Internal_Type): Use predicate
12492 Is_Access__Protected_Subprogram_Type.
12494 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
12495 (Freeze_Entity, packed array case): Do not override explicitly set
12496 alignment and size clauses.
12497 (Freeze_Entity): An entity declared in an outer scope can be frozen if
12498 the enclosing subprogram is a child unit body that acts as a spec.
12499 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
12500 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
12501 Remove all code for DSP option
12503 * layout.adb (Layout_Record_Type): Use First/
12504 Next_Component_Or_Discriminant
12505 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
12506 to handle properly the anonymous access case.
12508 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
12509 for all access attributes, because overload resolution should work the
12510 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
12511 causes the error message for the ambiguous "X'Access = Y'Access" and
12512 "X'Unrestricted_Access = Y'Access" and so forth to match.
12513 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
12514 now that anonymous access to protected operations have their own kind.
12515 (Resolve_Attribute): In case of dispatching call check the violation of
12516 restriction No_Dispatching_Calls.
12517 (Check_Array_Type): Check new -gnatyA array index style option
12519 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
12520 attempt to derive from a synchronized tagged type.
12521 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
12522 type, inherit the class-wide type already created, because it may
12523 already have been used in a self-referential anonymous access component.
12524 (Mentions_T): Recognize self-referential anonymous access components
12525 that use (a subtype of) the class-wide type of the enclosing type.
12526 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
12527 Derived_Type for Prev formal on call to
12528 Check_Anonymous_Access_Components rather than Empty.
12529 (Make_Incomplete_Type_Declaration): Add test for case where the type has
12530 a record extension in deciding whether to create a class-wide type,
12531 rather than just checking Tagged_Present.
12532 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
12533 to stand-alone object declarations as well as component declarations.
12534 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
12535 prevent accidental overwriting when enclosing package appears in
12536 a limited_with_clause.
12537 (Array_Type_Declaration): If the component type is an anonymous access,
12538 the associated_node for the itype is the type declaration itself.
12539 (Add_Interface_Tag_Components): Modified to support concurrent
12540 types with abstract interfaces.
12541 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
12542 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
12543 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
12544 to complete the decoration of synchronized interface types. Add also
12545 a call to Check_Abstract_Interfaces to verify the ARM rules.
12546 (Derive_Interface_Subprograms): Modified to support concurrent types
12547 with abstract interfaces.
12548 (Analyze_Subtype_Indication): Resolve the range with the given subtype
12549 mark, rather than delaying the full resolution depending on context.
12550 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
12551 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
12552 Array_Type_Declaration,Build_Derived_Record_Type,
12553 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
12554 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
12555 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
12556 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
12557 called only when appropriate.
12558 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
12560 (Analyze_Subtype_Declaration): For an access subtype declaration, create
12561 an itype reference for the anonymous designated subtype, to prevent
12562 scope anonmalies in gigi.
12563 (Build_Itype_Reference): New utility, to simplify construction of such
12566 2007-04-06 Vincent Celier <celier@adacore.com>
12568 * errutil.adb (Initialize): Initialize warnings table, if all warnings
12569 are suppressed, supply an initial dummy entry covering all possible
12572 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
12573 and start with only one, such as "-RTS=none".
12574 (Collect_Arguments): Do not check for sources outside of projects.
12575 Do not collect arguments if project is externally built.
12576 (Compile_Sources): Do nothing, not even check if the source is up to
12577 date, if its project is externally built.
12578 (Compile): When compiling a predefined source, add -gnatpg
12579 as the second switch, after -c.
12580 (Compile_Sources): Allow compilation of Annex J renames without -a
12581 (Is_In_Object_Directory): Check if the ALI file is in the object
12582 even if there is no project extension.
12583 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
12584 gnatbind if the ALI file effectively exists.
12585 (Initialize): Add the directory where gnatmake is invoked in front of
12586 the path if it is invoked from a bin directory, even without directory
12587 information, so that the correct GNAT tools will be used when spawned
12588 without directory information.
12590 * makeusg.adb: Change switch -S to -eS
12591 Add lines for new switches -we, -wn and -ws
12592 Add line for new switch -p
12594 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
12595 Treat_As_Error and there are warnings.
12597 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
12598 -gnatww Change gnatmake switch -S to -eS
12599 (Scan_Make_Switches): Code reorganisation. Process separately multi
12600 character switches and single character switches.
12601 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
12602 False when switch is not recognized by gnatmake.
12603 (Scan_Make_Switches): Set Setup_Projects True when -p or
12604 --create-missing-dirs is specified.
12606 * fname.adb (Is_Predefined_File_Name): Return True for annex J
12607 renamings Calendar, Machine_Code, Unchecked_Conversion and
12608 Unchecked_Deallocation only when Renamings_Included is True.
12610 * par.adb: Allow library units Calendar, Machine_Code,
12611 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
12612 when -gnatg is not specified.
12613 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
12614 there is no need to generate always a record_definition_node in case
12615 of synchronized interface types.
12616 (SIS_Entry_Active): Initialize global variable to False
12617 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
12618 indicate cases where AI-447 says "not null" is legal.
12620 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
12622 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
12623 files with with several lines starting with the object fileb name.
12624 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
12626 (Initialize): Add the directory where gprmake is invoked in front of the
12627 path, if it is invoked from a bin directory or with directory
12628 information, so that the correct GNAT tools will be used when invoked
12630 (Check_Compilation_Needed): Process correctly backslashes on Windows.
12632 * vms_data.ads: Update switches/qualifiers
12634 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12635 Thomas Quinot <quinot@adacore.com>
12638 If the array component is a discriminated record, the array aggregate
12639 is non-static even if the component is given by an aggregate with
12641 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
12642 (Convert_Aggr_In_Allocator): If the allocator is for an access
12643 discriminant and the type is controlled. do not place on a finalization
12644 list at this point. The proper list will be determined from the
12646 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
12647 initialize record controller if needed, before the components, to ensure
12648 that they are properly finalized.
12649 (Build_Record_Aggr_Code): For the case of an array component that has a
12650 corresponding array aggregate in the record aggregate, perform sliding
12653 2007-04-06 Javier Miranda <miranda@adacore.com>
12654 Gary Dismukes <dismukes@adacore.com>
12655 Ed Schonberg <schonberg@adacore.com>
12657 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
12658 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
12660 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
12661 accessibility on class-wide allocators if the allocator occurs at the
12662 same scope level as the allocator's type. The check is guaranteed to
12663 succeed in that case, even when the expression originates from a
12664 parameter of the containing subprogram.
12665 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
12666 under No_Dispatching_Calls restriction. During the semantic analysis
12667 we already notified such violation.
12668 (Tagged_Membership): Constant folding. There is no need to check
12669 the tag at run-time if the type of the right operand is non
12670 class-wide abstract.
12671 Replace call to Is_Ancestor by call to Is_Parent
12672 to support concurrent types with interface types.
12673 (Expand_N_Allocator): Add an assertion associated with the generation
12675 (Expand_N_Slice): Do not enable range check to nodes associated
12676 with the frontend expansion of the dispatch table.
12677 (Is_Local_Access_Discriminant): Subsidiary function to
12678 Expand_N_Allocator.
12679 (Tagged_Membership): Replace generation of call to the run-time
12680 subprogram CW_Membership by call to Build_CW_Membership.
12681 (Expand_Allocator_Expression): Replace generation of call to the
12682 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12684 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
12685 initialize most the TSD components by means of an aggregate.
12686 Modify the declaration of the object containing the TSD
12687 because we now expand code that has a higher level of abstraction.
12688 The TSD has a discriminant containing the Inheritance Depth Level,
12689 value that is used in the membership test but also to fix the size
12690 of the table of ancestors.
12691 (Expand_Interface_Conversion): Insert function body at the closest place
12692 to the conversion expression, to prevent access-before-elaboration
12693 errors in the backend.
12694 Code improved to reduce the size of the dispatch table if
12695 compiling under restriction No_Dispatching_Calls plus code cleanup.
12696 Code reorganization plus removal of calls to Set_Num_Prim_Ops
12697 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
12698 (Expand_Dispatching_Call): Minor code reorganization plus addition of
12699 code to return immediately if compiling under No_Dispatching_Calls
12701 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
12702 CPP_Virtual and CPP_Vtable are no longer supported.
12703 (Expand_Interface_Conversion): Add missing support for interface type
12705 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
12706 Is_Parent to support concurrent types with interfaces.
12707 (Init_Predefined_Interface_Primitives): Removed.
12708 (Make_Secondary_DT): Modified to support concurrent record types.
12709 (Set_All_DT_Position): Modified to support concurrent record types.
12710 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12711 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
12712 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
12713 with CW_Membership.
12714 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12715 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
12716 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
12717 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
12718 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
12719 (Expand_Dispatching_Call): Replace generation of call to the run-time
12720 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
12721 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
12723 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
12724 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
12725 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
12726 Build_Set_Prim_Op_Address.
12727 (Get_Remotely_Callable): Subprogram removed.
12728 (Init_Predefined_Interface_Primitives): Replace generation of call to
12729 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
12732 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
12733 First (Parameter_Associations ()) with the call to First_Actual that
12734 returns an actual parameter expression for both named and positional
12737 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
12738 check violation of restriction No_Dispatching_Calls.
12739 (Check_Controlling_Type): A formal of a tagged incomplete type is a
12740 controlling argument.
12742 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
12743 First/Next_Component_Or_Discriminant
12744 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
12745 (Find_Implemented_Interface): Removed. All the calls to this subprogram
12746 specify Any_Limited_Interface, and this functionality is already
12747 provided by the function Has_Abstract_Interfaces.
12748 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
12749 support concurrent types implementing interfaces.
12750 (Find_Implemented_Interface): Removed. All the calls to this subprogram
12751 specify kind Any_Limited_Interface, and this functionality is already
12752 provided by the function Has_Abstract_Interfaces.
12753 (Remove_Side_Effects): replace Controlled_Type by
12754 CW_Or_Controlled_Type whenever the issue is related to
12755 using or not the secondary stack.
12757 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
12758 P_Interface_Type_Definition to fulfill the new interface (the formal
12759 Is_Synchronized is no longer required).
12761 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
12762 Update dependencies.
12764 * exp_atag.ads, exp_atag.adb: New file
12766 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12767 Bob Duff <duff@adacore.com>
12768 Cyrille Comar <comar@adacore.com>
12770 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
12771 anonymous, use finalization list of enclosing dynamic scope.
12772 (Expand_N_Package_Declaration): For a library package declaration
12773 without a corresponding body, generate RACW subprogram bodies in the
12774 spec (just as we do for the task activation call).
12775 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
12776 Is_Abstract_Type. Make sure these are called only when appropriate.
12777 Remove all code for DSP option
12778 (CW_Or_Controlled_Type): new subprogram.
12780 2007-04-06 Eric Botcazou <botcazou@adacore.com>
12781 Ed Schonberg <schonberg@adacore.com>
12782 Gary Dismukes <dismukes@adacore.com>
12784 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
12785 parameter. If it is set to true, return a result capped according to
12786 the global upper bound for the index of an entry family.
12787 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
12788 (Build_Find_Body_Index): Adjust for above change.
12789 (Entry_Index_Expression): Likewise.
12790 (Is_Potentially_Large_Family): New function extracted from...
12791 (Collect_Entry_Families): ...here. Call it to detect whether the family
12792 is potentially large.
12793 (Build_Entry_Count_Expression): If the family is potentially large, call
12794 Family_Size with 'Cap' set to true.
12795 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
12796 a protected version of an operation declared in the private part of
12797 a protected object, because they may be invoked through a callback.
12798 (Set_Privals): If the type of a private component is an anonymous access
12799 type, do not create a new itype for each protected body.
12800 If the body of a protected operation creates
12801 controlled types (including allocators for class-widetypes), the
12802 body of the corresponding protected subprogram must include a
12804 (Build_Activation_Chain_Entity): Build the chain entity for extended
12806 (Type_Conformant_Parameters): Use common predicate Conforming_Types
12807 to determine whether operation overrides an inherited primitive.
12808 (Build_Wrapper_Spec): Add code to examine the parents while looking
12809 for a possible overriding candidate.
12810 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
12811 hold an actual parameter value since its initialization is separated
12812 from the the declaration. Prevents errors on null-excluding access
12815 2007-04-06 Thomas Quinot <quinot@adacore.com>
12816 Pablo Oliveira <oliveira@adacore.com>
12818 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
12819 Do an Unchecked_Conversion to handle the passage from the Underlying
12820 Type to the Base Type when calling Build_To_Any_Call and
12821 Build_From_Any_Call.
12822 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
12823 E_Constant, depending upon Variable formal.
12824 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12825 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
12826 parameter that requires an extra constrained parameter, declare
12827 temporary for actual as a variable, not a constant.
12828 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
12829 the unit being compiled is the one that contains the stub type.
12830 Change primitive operation name for the RACW associated with a RAS
12831 from Call to _Call so it cannot clash with any legal identifier.
12832 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
12834 (Append_RACW_Bodies): New subprogram.
12835 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
12836 Add_Receiving_Stubs_To_Declarations functions.
12837 When expanding a package body, this list correspond to the
12838 statements in the HSS at the end of the pacakge.
12839 When expanding a package spec, this list correspond to the
12841 (Add_Receiving_Stubs_To_Declarations): Append the function
12842 registering the receiving stubs at the end of the 'Stmts' list.
12843 (RCI_Package_Locator): Pass the new Version generic formal when
12844 instantiating a RCI_Locator package.
12845 (Build_From_Any_Function): To compute the High bound for an
12846 unconstrained array actual, we add the Low bound with the length.
12847 Thus we must convert the low bound and the length to an appropriate
12848 type before doing the sum.
12849 (Build_Subprogram_Receiving_Stubs, PolyORB):
12850 * Retrieve the extra formals parameters at the
12851 end of the parameter stream.
12852 * Use Move_Any_Value to write back out parameters
12853 after executing the request as it is more efficient
12854 than Copy_Any_Value.
12855 * Build the any containing Extra Formals with the
12856 appropriate typecode.
12857 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
12858 empty Component_List.
12859 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
12860 the tree the declaration for an object that serves as actual parameter
12861 in server-side stubs.
12862 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12863 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
12864 Use Build_Actual_Object_Declaration to prepare the actuals.
12865 (Add_Parameter_To_NVList): Set the parameter mode to In for
12866 Extra Constrained Parameters.
12867 (Build_General_Calling_Stubs): Set the parameter type to boolean for
12868 Extra Constrained parameters.
12869 (Build_To_Any_Function, Build_From_Any_Function,
12870 Built_TypeCode_Function): When Typ is implicit, call the correct
12871 function with the first not implicit parent type.
12872 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
12873 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
12874 typecode from the Etype. Therefore we retrieve the correct typecode
12875 with a call to Get_Any_Type.
12876 (Copy_Specification): Do controlling formal type substitution based on
12877 Is_Controlling_Formal flag, instead of caller-provided object type.
12878 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
12879 a RACW primitive operation, we might get a subprogram declaration for an
12880 ancestor of the RACW designated type (not for the designated type
12881 itself), in the case where this operation is inherited. In this case we
12882 have no easy means of determining the original tagged type for which
12883 the primitive was declared, so instead we now rely on
12884 Copy_Specification to use the Is_Controlling_Formal flag to determine
12885 which formals require type substitution.
12887 2007-04-06 Robert Dewar <dewar@adacore.com>
12888 Ed Schonberg <schonberg@adacore.com>
12890 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
12891 GNAT.Current_Exception are not allowed if pragma Restrictions
12892 (No_Exception_Propagation) is set and in any case make the associated
12893 handler unsuitable as a target for a local raise statement.
12894 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
12895 run-time subprogram CW_Membership by call to Build_CW_Membership.
12896 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
12897 by a function call, a temporary must be created before expanding the
12898 Constructor_Call itself, to prevent out-of-order elaboration in the
12899 back-end when stack checking is enabled..
12901 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12903 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
12904 result are the bounds of the left operand, not the right.
12906 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12909 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
12910 discriminant defaults.
12911 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
12912 (Make_Component_List_Attributes): Ditto.
12914 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12915 Bob Duff <duff@adacore.com>
12917 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
12918 an association with a box as providing a value even though the
12919 initialization procedure for the type is not available.
12920 (Resolve_Record_Aggregate): Check that a choice of an association with a
12921 box corresponds to a component of the type.
12922 (Resolve_Record_Aggregate): Split Is_Abstract flag into
12923 Is_Abstract_Subprogram and Is_Abstract_Type.
12925 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
12928 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
12929 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
12930 called only when appropriate.
12932 2007-04-06 Olivier Hainque <hainque@adacore.com>
12934 * g-alleve.ads (Low Level Vector type definitions): Map each to the
12935 associated vector view instead of all to the unsigned char view.
12937 * g-altcon.adb (Generic_Conversions): New internal generic package,
12938 offering facilities for all the Vector/View conversion routines
12939 implemented by this unit.
12940 (To_View/To_Vector - all versions): Reimplemented in a systematic
12941 manner, using the internal Generic_Conversions facilities.
12943 2007-04-06 Pascal Obry <obry@adacore.com>
12945 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
12947 (Create): Free the source string before storing the new one.
12949 2007-04-06 Vincent Celier <celier@adacore.com>
12951 * g-debpoo.adb (Validity): New package with a complete new
12952 implementation of subprograms Is_Valid and Set_Valid.
12953 (Is_Valid): Move to local package Validity
12954 (Set_Valid): Move to local package Validity
12956 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12957 Pablo Oliveira <oliveira@adacore.com>
12959 * g-expect.adb (Get_Command_Output): When expanding the output buffer
12960 we must ensure that there is enough place for the new data we are going
12963 2007-04-06 Thomas Quinot <quinot@adacore.com>
12965 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
12968 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12969 Vincent Celier <celier@adacore.com>
12971 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
12972 (Stack_String): Add this String that contains the name of the Stack
12973 package in the project file.
12974 (Packages_To_Check_By_Stack): Add this list that contains the packages
12975 to be checked by gnatstack, which are the naming and the stack packages.
12976 (Check_Files): If no .ci files were specified for gnatstack we add all
12977 the .ci files belonging to the projects, including binder generated
12979 (Non_VMS_Usage): Document that gnatstack accept project file switches.
12980 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
12981 Add gnatstack to the list of commands that use project file related
12982 switches, and get the single attribute Switches from the stack package
12983 in a project file when calling gnatstack. Parse the -U flag for
12984 processing files belonging to all projects in the project tree.
12985 Remove all processing for command Setup
12987 * prj-attr.adb: Add new package Stack with single attribute Switches
12989 * vms_conv.ads (Command_Type): Add command Stack.
12990 Move to body declarations that are only used in the body: types Item_Id,
12991 Translation_Type, Item_Ptr, Item and its subtypes.
12993 * vms_conv.adb: (Initialize): Add data for new command Stack.
12994 Add declarations moved from the spec: types Item_Id, Translation_Type,
12995 Item_Ptr, Item and its subtypes.
12996 (Cargs_Buffer): New table
12997 (Cargs): New Boolean global variable
12998 (Process_Buffer): New procedure to create arguments
12999 (Place): Put character in table Buffer or Cargs_Buffer depending on the
13001 (Process_Argument): Set Cargs when processing qualifiers for GNAT
13003 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
13004 empty, for table Cargs_Buffer.
13005 (Initialize): Remove component Setup in Command_List
13007 2007-04-06 Vincent Celier <celier@adacore.com>
13009 * gprep.adb (Process_Files.Process_One_File): Use full file name when
13010 issuing pragma Source_Reference.
13012 2007-04-06 Emmanuel Briot <briot@adacore.com>
13014 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
13015 [[:xdigit:]] character class.
13016 Also raise an exception when an invalid character class is used.
13018 2007-04-06 Pascal Obry <obry@adacore.com>
13020 * i-cstrea.ads: (fopen): Add encoding parameter.
13022 Change reference from a-sysdep.c to sysdep.c in comment.
13023 Update copyright notice.
13024 This set of patch add support for the encoding form parameter.
13026 * mingw32.h (S2WSU): New macro to convert from a string to a
13027 wide-string using the UTF-8 encoding. The S2WS macro supports now only
13028 standard 8bits encoding.
13029 (WS2SU): As above but converting from wide-sring to string.
13030 This is needed as it is necessary to have access to both versions in the
13031 runtime for the form parameter encoding support.
13032 This set of patch add support for the encoding form parameter.
13033 (S2WS): Improve implementation to handle cases where the filename is not
13034 UTF-8 encoded. In this case we default to using the current code page
13035 for the conversion.
13037 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
13038 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
13039 the constants defined in adaint.h.
13040 (fopen): Add encoding parameter.
13043 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
13044 encoding. This is needed for the Reset routine (freopen low level-call).
13046 * s-fileio.adb (Open): Decode encoding form parameter and set the
13047 corresponding encoding value into AFCB structure.
13048 (Reset): Pass the encoding value to freopen.
13049 (Close): Move the call to Lock_Task to the beginning of the procedure.
13051 2007-04-06 Geert Bosch <bosch@adacore.com>
13052 Robert Dewar <dewar@adacore.com>
13054 * i-fortra.ads: Add Double_Complex type.
13056 * impunit.adb: (Is_Known_Unit): New function
13057 Add Gnat.Byte_Swapping
13059 Add new Ada 2005 units
13060 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
13061 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
13062 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
13063 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
13065 * impunit.ads (Is_Known_Unit): New function
13067 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
13068 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
13069 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
13070 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
13071 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
13072 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
13075 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
13077 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
13079 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13080 Arnaud Charlet <charlet@adacore.com>
13082 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
13083 __gnat_adjust_context_for_raise.
13084 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
13085 implementation of floating point operations as native x86 targets.
13086 So the FPU should be initialized in the same way using finit. Fix
13087 floating point operations accuracy issues.
13088 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
13089 member in struct sigaction, so as to avoid warning for incompatible
13092 2007-04-06 Serguei Rybin <rybin@adacore.com>
13094 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
13095 switches from previously loaded tree
13097 2007-04-06 Thomas Quinot <quinot@adacore.com>
13099 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
13100 cases where a given dependency has a body or not.
13101 (Write_With_File_Names): New subprogram, common code for the two cases
13104 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13105 Javier Miranda <miranda@adacore.com>
13107 * lib-xref.ads, lib-xref.adb:
13108 Modify the loop that collects type references, to include interface
13109 types that the type implements. List each of these interfaces when
13110 building the entry for the type.
13111 (Generate_Definition): Initialize component Def and Typ of new entry
13112 in table Xrefs, to avoid to have these components unitialized.
13113 (Output_References): Split Is_Abstract flag into
13114 Is_Abstract_Subprogram and Is_Abstract_Type.
13115 (Generate_Reference): Add barrier to do not generate the warning
13116 associated with Ada 2005 entities with entities generated by the
13119 2007-04-06 Robert Dewar <dewar@adacore.com>
13120 Arnaud Charlet <charlet@adacore.com>
13121 Vincent Celier <celier@adacore.com>
13123 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
13124 Update 'Exception Handling Control' chapter which was outdated.
13125 Minor fix to documentation of -gnatwq
13126 Remove section "Adapting the Run Time to a New C++ Compiler" because
13127 it is now obsolete.
13128 Add passage on need of -nostart-files in some non-ada-main cases.
13129 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
13130 Update documentation about Interfacing with C++
13131 Add documentation for new gnatmake switch -p
13132 Add missing protocol part in URLs.
13134 Document pragma Compile_Time_Error
13135 Add documentation for Object_Size indicating that stand alone
13136 objects can have a larger size in some cases.
13137 Add node for GNAT.Byte_Swapping, GNAT.SHA1
13138 Update reference to the Ravenscar profile.
13139 Document pragma Unreferenced_Objects
13141 * gnat-style.texi: Fix typo
13143 2007-04-06 Vincent Celier <celier@adacore.com>
13145 * mlib.adb (Building_Library): Only output "building a library..." in
13148 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
13149 files in verbose mode.
13151 * mlib-utl.adb (Ar): Only output the first object files when not in
13153 (Gcc): Do not display all the object files if not in verbose mode, only
13156 2007-04-06 Robert Dewar <dewar@adacore.com>
13158 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
13159 it no longer destroys the contents of Name_Buffer or Name_Len and
13160 non-standard and invalid names are handled better.
13161 (Get_Decoded_Name_String): Improve performance by using
13162 Name_Has_No_Encodings flag in the name table.
13163 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
13164 Used for debugging printouts.
13166 2007-04-06 Robert Dewar <dewar@adacore.com>
13167 Javier Miranda <miranda@adacore.com>
13168 Bob Duff <duff@adacore.com>
13170 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
13171 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13172 there is no need to generate always a record_definition_node in case
13173 of synchronized interface types.
13174 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
13175 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
13176 illegal in Ada 95, in cases where it is legal. Change the warnings to
13177 errors in other cases. Don't give the error unless the "not null"
13178 parses properly. Correct the source position at which the error occurs.
13179 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
13180 P_Null_Exclusion, to suppress "not null" warnings.
13181 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
13182 associated goto statements.
13184 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
13187 * scans.ads (Type_Token_Location): New flag
13189 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
13190 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
13191 P_Null_Exclusion, to suppress "not null" warnings.
13193 2007-04-06 Robert Dewar <dewar@adacore.com>
13194 Javier Miranda <miranda@adacore.com>
13195 Bob Duff <duff@adacore.com>
13196 Vincent Celier <celier@adacore.com>
13198 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
13199 (Extensions_Allowed): No longer sets Ada_Version
13200 Entry for pragma Unreferenced_Objects
13202 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
13203 system.tasking if pragma priority used in a procedure
13204 (Analyze_Pragma, case Warning): Handle dot warning switches
13205 (Process_Compile_Time_Warning_Or_Error): New procedure
13206 (Analyze_Pragma): Add processing for Compile_Time_Error
13207 Add support for extra arguments External_Name and Link_Name.
13208 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
13209 (Process_Import_Or_Interface): Add support for the use of pragma Import
13211 (Extensions_Allowed): No longer affects Ada_Version
13212 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
13213 Is_Abstract_Type. Make sure these are called only when appropriate.
13214 Add processing for pragma Unreferenced_Objects
13216 * snames.h, snames.ads, snames.adb: Add entry for pragma
13218 Add new standard name Minimum_Binder_Options for new gprmake
13219 Add new standard names for gprmake: Archive_Suffix,
13220 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
13221 Library_Support, Library_Version_Options,
13222 Shared_Library_Minimum_Options,
13223 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
13224 Change Name_Call to Name_uCall so that it cannot clash with a legal
13226 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
13227 Append C_Plus_Plus to convention identifiers as synonym for CPP
13228 Add new standard names Stack and Builder_Switches
13229 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
13230 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
13231 Run_Path_Option, Toolchain_Version.
13232 Entry for pragma Unreferenced_Objects
13234 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
13235 switches, without repetition of "eD". Make sure that last character of
13236 -gnatep= switch is not taken as -gnat switch character.
13237 Complete rewrite of circuit for handling saving compilation options
13238 Occasioned by need to support dot switchs for -gnatw, but cleans up
13240 -gnatX does not affect Ada_Version
13241 Include -gnatyA in -gnatg style switches
13243 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
13244 warnings on return objects.
13245 (Warn_On_Useless_Assignment): Exclude warnings on return objects
13246 (Set_Dot_Warning_Switch): New procedure
13247 (Check_References): Add missing case of test for
13248 Has_Pragma_Unreferenced_Objects
13249 (Output_Unreferenced_Messages): Implement effect of new pragma
13250 Unreferenced_Objects, remove special casing of limited controlled
13253 2007-04-06 Vincent Celier <celier@adacore.com>
13255 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
13256 the default project path, initially done during elaboration of the
13258 If the prefix returned by Sdefault is null, get the prefix from a call
13259 to Executable_Prefix_Path.
13260 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
13263 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
13264 canonical directory name to open the directory from which files are
13266 (Record_Other_Sources): Idem.
13267 (Locate_Directory): Add the possibility to create automatically missing
13268 directories when Setup_Projects is True.
13269 Call Locate_Directory so that the directory will be created when
13270 Setup_Projects is True, for object dir, library dir, library ALI dir,
13271 library source copy dir and exec dir.
13273 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
13276 2007-04-06 Robert Dewar <dewar@adacore.com>
13278 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
13279 Use First/Next_Component_Or_Discriminant
13280 (Analyze_Record_Representation_Clause):
13281 Use First/Next_Component_Or_Discriminant
13282 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
13283 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
13284 definition if type is unconstrained.
13285 (Adjust_Record_For_Reverse_Bit_Order): New procedure
13286 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
13287 Is_Abstract_Subprogram and Is_Abstract_Type.
13288 (Adjust_Record_For_Reverse_Bit_Order): New procedure
13290 * repinfo.adb (List_Record_Info): Use First/
13291 Next_Component_Or_Discriminant.
13293 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
13296 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
13297 Include -gnatyA in default switches
13299 * opt.ads: (Warn_On_Non_Local_Exception): New flag
13300 (Warn_On_Reverse_Bit_Order): New flag
13301 (Extensions_Allowed): Update the documentation.
13302 (Warn_On_Questionable_Missing_Parens): Now on by default
13304 * usage.adb: Add documentation of -gnatw.x/X switches
13305 Document new -gnatyA style switch
13306 -gnatq warnings are on by default
13308 2007-04-06 Ed Falis <falis@adacore.com>
13310 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
13311 full word is no longer compared twice.
13313 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13315 * sem_ch10.adb (Install_Limited_Context_Clauses.
13316 Expand_Limited_With_Clause): Use a new copy of selector name in the
13317 call to Make_With_Clause. This fixes the tree structure for ASIS
13318 purposes. Nothing is changed in the compiler behaviour.
13319 (Process_Body_Clauses): Handle properly use clauses whose prefix is
13320 a package renaming.
13321 (Install_Limited_With_Clauses): Do not install non-limited view when it
13322 is still incomplete.
13324 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13325 Gary Dismukes <dismukes@adacore.com>
13327 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
13328 when capturing size information, instead of base type, which for a
13329 formal array type will be the unconstrained type.
13330 (Analyze_Formal_Object_Declaration): Add check for illegal default
13331 expressions for a formal in object of a limited type.
13332 (Instantiate_Object): Ditto.
13333 (Check_Formal_Package_Instance): Skip entities that are formal objects,
13334 because they were defaulted in the formal package and no check applies
13336 (Check_Formal_Package_Instance): Extend conformance check to other
13337 discrete types beyond Integer.
13338 (Process_Default): Copy directly the unmatched formal. A generic copy
13339 has already been performed in Analyze_Formal_Package.
13340 (Analyze_Associations): If a formal subprogram has no match, check for
13341 partial parametrization before looking for a default, to prevent
13343 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
13344 not set the instantiation environment before analyzing the actuals.
13345 Fixes regression on 8515-003 with implementation of AI-133.
13346 Set_Instance_Env checks whether the generic unit is a predefined
13347 unit, in which case the instance must be analyzed with the latest Ada
13348 mode. This setting must take place after analysis of the actuals,
13349 because the actuals must be analyzed and frozen in the Ada mode extant
13350 outside of the current instantiation.
13351 (Save_Env, Restore_Env): Preserve and restore the configuration
13352 parameters so that predefined units can be compiled in the proper Ada
13354 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
13355 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
13356 and Is_Abstract_Type.
13357 (Analyze_Formal_Package): For better error recovery, Add exception
13358 handler to catch Instantion_Error, which can be raised in
13359 Analyze_Associations
13361 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13362 Bob Duff <duff@adacore.com>
13363 Gary Dismukes <dismukes@adacore.com>
13365 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
13366 prefix type is a discriminated subtype of the type of the formal.
13367 (Analyze_Allocator): Collect all coextensions regardless of the context.
13368 Whether they can be allocated statically is determined in exp_ch4.
13369 (Analyze_Selected_Component): If the prefix is a limited view and the
13370 non-limited view is available, use the non-limited one.
13371 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
13372 therefore illegal), suggest a qualified expression rather than a type
13373 conversion, because a type conversion would be illegal in this context.
13374 (Anayze_Allocator): Trace recursively all nested allocators so that all
13375 coextensions are on the corresponding list for the root. Do no mark
13376 coextensions if the root allocator is within a declaration for a stack-
13377 allocated object, because the access discriminants will be allocated on
13379 (Analyze_Call): Remove restriction on calls to limited functions for the
13380 cases of generic actuals for formal objects, defaults for formal objects
13381 and defaults for record components.
13382 (Analyze_Allocator): Before analysis, chain coextensions on the proper
13383 element list. Their expansion is delayed until the enclosing allocator
13384 is processed and its finalization list constructed.
13385 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
13386 for an operation with the given name among the primitive operations of
13387 the corresponding record type.
13388 (Analyze_Selected_Component): If the prefix is a task type that
13389 implements an interface, and there is no entry with the given name,
13390 check whether there is another primitive operation (e.g. a function)
13392 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
13393 properly the indexing of a function call written in prefix form, where
13394 the function returns an array type, and all parameters of the function
13395 except the first have defaults.
13396 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
13397 the original operands, rather than relocating them, for efficiency and
13398 to work properly when an operand is overloaded.
13399 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
13400 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
13401 (Analyze_Selected_Component): If the prefix is a private extension, only
13402 scan the visible components, not those of the full view.
13403 (Try_Primitive_Operation): If the operation is a procedure, collect all
13404 possible interpretations, as for a function, because in the presence of
13405 classwide parameters several primitive operations of the type can match
13406 the given arguments.
13408 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13409 Robert Dewar <dewar@adacore.com>
13411 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
13412 tag-indeterminate call to an abstract function, when the left-hand side
13414 (Analyze_Loop_Statement): Improve detection of infinite loops
13416 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13417 Thomas Quinot <quinot@adacore.com>
13419 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
13420 out of Analyze_Package_Declaration, because processing must be applied
13421 to package bodies as well, for deferred constants completed by pragmas.
13422 (Analyze_Package_Declaration): When the package declaration being
13423 analyzed does not require an explicit body, call Check_Completion.
13424 (May_Need_Implicit_Body): An implicit body is required when a package
13425 spec contains the declaration of a remote access-to-classwide type.
13426 (Analyze_Package_Body): If the package contains RACWs, append the
13427 pending subprogram bodies generated by exp_dist at the end of the body.
13428 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
13429 Is_Abstract_Subprogram and Is_Abstract_Type.
13430 (Preserve_Full_Attributes): The full entity list is not an attribute
13431 that must be preserved from full to partial view.
13433 * sem_dist.adb (Add_RAS_Dereference_TSS):
13434 Change primitive name to _Call so it cannot clash with any legal
13435 identifier, and be special-cased in Check_Completion.
13436 Mark the full view of the designated type for the RACW associated with
13437 a RAS as Comes_From_Source to get proper view switching when installing
13438 private declarations.
13439 Provite a placeholder nested package body along with the nested spec
13440 to have a place for Append_RACW_Bodies to generate the calling stubs
13441 and stream attributes.
13443 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13444 Robert Dewar <dewar@adacore.com>
13446 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
13447 that is a limited view, check the non-limited view if available.
13448 (Undefined): Refine error message for missing with of Text_IO
13449 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
13450 to distinguish real missing with cases.
13451 Fix format of all missing with messages
13452 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
13453 renaming as body when renamed entity is abstract.
13455 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13456 Javier Miranda <miranda@adacore.com>
13458 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
13459 predicate recursive, to handle complex expressions on literals whose
13460 spurious ambiguity comes from the abstract interpretation of some
13462 (Interface_Present_In_Ancestor): Add support to concurrent record
13464 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
13465 Is_Abstract_Subprogram and Is_Abstract_Type.
13467 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13468 Javier Miranda <miranda@adacore.com>
13470 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
13471 dereference of a local object R created as a reference to another
13472 object O, use the access level of O.
13473 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
13474 rather than local Same_Formal_Type, to check whether protected operation
13475 overrides an inherited one.
13476 (Same_Formal_Type): New predicate, used when matching signatures of
13477 overriding synchronized operations, to handle the case when a formal
13478 has a type that is a generic actual.
13479 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
13480 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
13481 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
13482 syntactic ambiguities involving indexing of function calls that return
13484 (Abstract_Interface_List): New subprogram that returns the list of
13485 abstract interfaces associated with a concurrent type or a
13486 concurrent record type.
13487 (Interface_Present_In_Parent): New subprogram used to check if a
13488 given type or some of its parents implement a given interface.
13489 (Collect_Abstract_Interfaces): Add support for concurrent types
13490 with interface types.
13491 (Has_Abstract_Interfaces): Add support for concurrent types with
13493 (Is_Parent): New subprogram that determines whether E1 is a parent
13494 of E2. For a concurrent type its parent is the first element of its
13495 list of interface types; for other types this function provides the
13496 same result than Is_Ancestor.
13497 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
13498 (Collect_Synchronized_Interfaces): Removed because the subprogram
13499 Collect_Abstract_Interfaces provides this functionality.
13500 (Collect_Abstract_Interfaces): Minor update to give support to
13501 concurrent types and thus avoid undesired code duplication.
13502 (Get_Subprogram_Entity): Handle entry calls.
13503 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
13505 (Enter_Name): Do not give -gnatwh hiding warning for record component
13506 entities, they never result in hiding.
13508 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13509 Robert Dewar <dewar@adacore.com>
13511 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
13512 to chain nested components that are allocators for access discriminants
13513 of the enclosing object.
13514 Add N_Push and N_Pop nodes
13515 New field Exception_Label added
13516 (Local_Raise_Statements): New field in N_Exception_Handler_Node
13517 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
13518 (Is_Coextension): New flag for allocators, to mark allocators that
13519 correspond to access discriminants of dynamically allocated objects.
13520 (N_Block_Statement): Document the fact that the corresponding entity
13521 can be an E_Return_Statement.
13522 (Is_Coextension): New flag for allocators.
13523 Remove all code for DSP option
13525 * sprint.ads, sprint.adb: Display basic information for class_wide
13526 subtypes. Add handling of N_Push and N_Pop nodes
13528 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13530 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
13531 before propagating exception.
13533 2007-04-06 Olivier Hainque <hainque@adacore.com>
13535 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
13536 an address always within the call instruction from a return address.
13538 2007-04-06 Olivier Hainque <hainque@adacore.com>
13539 Eric Botcazou <botcazou@adacore.com>
13541 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
13542 expression with a COMPOUND_EXPR including the call instead of emitting
13543 the call directly here.
13544 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
13545 high bound is constant and the slice is empty. Tidy.
13546 (tree_transform, case N_Op_Not): Handle properly the case where the
13547 operation applies to a private type whose full view is a modular type.
13548 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
13549 Address_Clause, use the associated Expression as the GNAT tree
13550 representing the choice value to ensure the corresponding GCC tree is
13551 of the proper kind.
13552 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
13553 instead of just the operands, as the base GCC stabilize_reference does.
13554 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
13555 requested; otherwise fail.
13556 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
13558 2007-04-06 Thomas Quinot <quinot@adacore.com>
13560 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
13561 implementation of UI_Div.
13562 (UI_Div): Reimplement as a call to UI_Div_Rem.
13563 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
13564 remainder, avoiding the cost of a multiplication and a subtraction.
13565 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
13566 provides both quotient and remainder in a single computation.
13567 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
13568 functions for uint.
13569 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
13570 is undefined if the given n is not inversible.
13572 2007-04-06 Olivier Hainque <hainque@adacore.com>
13574 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
13575 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
13578 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13579 Olivier Hainque <hainque@adacore.com>
13581 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
13582 when updating the contents of the old pointer to an unconstrained array.
13583 (end_subprog_body): Set error_gnat_node to Empty.
13584 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
13585 (unchecked_convert): For subtype to base type conversions, require that
13586 the source be a subtype if it is an integer type.
13587 (builtin_decls): New global, vector of available builtin functions.
13588 (gnat_pushdecl): Add global builtin function declaration nodes to the
13589 builtin_decls list.
13590 (gnat_install_builtins): Adjust comments.
13591 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
13592 calling gnat_pushdecl, so that it knows when it handed a builtin
13593 function declaration node.
13594 (builtin_decl_for): Search the builtin_decls list.
13596 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13598 * s-stchop-vxworks.adb:
13599 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
13601 2007-04-06 Robert Dewar <dewar@adacore.com>
13602 Arnaud Charlet <charlet@adacore.com>
13604 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
13606 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
13608 Add mention of -Sev (set initialize_scalars option from environment
13609 variable at run time) in gnatbind usage message.
13611 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
13613 * fname-uf.ads: Minor comment fix
13615 * osint.ads: Change pragma Elaborate to Elaborate_All
13617 * par-load.adb: Add documentation.
13619 * sem_cat.ads, sem_cat.adb: Minor code reorganization
13621 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
13623 * s-secsta.ads: Extra comments
13625 * s-soflin.ads: Minor comment fixes
13627 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
13629 * s-wchcon.ads: Minor comment addition
13631 * treepr.adb: Minor change in message
13632 (Print_Name,Print_Node): Make these debug printouts more robust: print
13633 "no such..." instead of crashing on bad input.
13635 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
13637 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
13638 instead of gnat_signed_or_unsigned_type.
13639 * utils.c (gnat_signed_or_unsigned_type): Remove.
13640 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
13641 * gigi.h (gnat_signed_or_unsigned_type): Remove
13643 2007-03-09 Roger Sayle <roger@eyesopen.com>
13645 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
13646 fold with the result of buildN.
13647 * decl.c (gnat_to_gnu_entity): Likewise.
13648 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
13649 * utils.c (finish_record_type, merge_sizes, max_size, convert):
13651 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
13652 nonbinary_modular_operation, build_binary_op, build_unary_op,
13653 build_cond_expr): Likewise.
13655 * utils.c (convert): Use fold_build1 when casting values to void.
13656 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
13657 fold_convert instead of convert when appropriate.
13659 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
13661 * Make-lang.in: Add install-pdf target as copied from
13662 automake v1.10 rules.
13664 2007-02-28 Andreas Schwab <schwab@suse.de>
13666 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
13667 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
13668 (doc/gnat-style.info): Likewise.
13670 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
13672 * gnat-style.texi: Standardize title page.
13673 * gnat_rm.texi: Likewise.
13674 * gnat_ugn.texi: Likewise.
13676 2007-02-25 Mark Mitchell <mark@codesourcery.com>
13678 * decl.c (annotate_value): Adjust for refactoring of tree_map
13681 2007-02-24 Mark Mitchell <mark@codesourcery.com>
13683 * decl.c (annotate_value): Adjust for refactoring of tree_map
13686 2007-02-21 Ed Schonberg <schonberg@adacore.com>
13689 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
13690 untagged derived type, add hidden components to keep discriminant
13691 layout consistent, when a given discriminant of the derived type
13692 constraints several discriminants of the parent type.
13694 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
13695 Sandra Loosemore <sandra@codesourcery.com>
13697 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
13698 build the call expression.
13699 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
13700 * utils.c (max_size) <tcc_exceptional>: Delete.
13701 <tcc_vl_exp>: New case.
13702 <tcc_expression>: Delete CALL_EXPR subcase.
13703 (build_global_cdtor): Use build_call_nary instead of build3.
13704 * utils2.c (build_call_1_expr): Likewise.
13705 (build_call_2_expr): Likewise.
13706 (build_call_0_expr): Likewise.
13707 (build_call_alloc_dealloc): Likewise.
13709 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
13711 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13712 get_action_description_for): Replace _Unwind_Word with _uleb128_t
13713 and _Unwind_SWord with _sleb128_t.
13715 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
13717 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
13718 * decl.c: Include gt-ada-decl.h.
13719 (annotate_value_cache): New.
13720 (annotate_value): Use it instead of TREE_COMPLEXITY.
13722 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
13724 * misc.c, utils2.c: Fix comment typos.
13726 2007-01-24 Roger Sayle <roger@eyesopen.com>
13728 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
13729 TREE_CONSTANT_OVERFLOW.
13730 (allocatable_size_p, annotate_value): Likewise.
13731 * trans.c (gnat_to_gnu): Likewise.
13732 * utils.c (unchecked_convert): Likewise.
13733 * utils2.c (build_simple_component_ref): Likewise.
13735 2007-01-23 Richard Guenther <rguenther@suse.de>
13738 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
13739 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
13740 (gnatboot3): Likewise.
13741 (GNATBIND): Do not define.
13742 * Makefile.in (GNATBIND): Do not define.
13744 2007-01-08 Richard Guenther <rguenther@suse.de>
13746 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
13747 * trans.c (gnat_to_gnu): Likewise.
13749 2006-12-07 Geoffrey Keating <geoffk@apple.com>
13751 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
13752 * adaint.c: Likewise.
13754 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
13756 Merge from gimple-tuples-branch:
13757 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
13759 * ada-tree.h (lang_tree_node): Handle gimple tuples.
13760 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
13761 GIMPLE_MODIFY_STMT.
13763 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
13765 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
13766 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
13769 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
13772 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
13773 if the initializer takes into account the padding.
13775 2006-11-11 Richard Guenther <rguenther@suse.de>
13777 * trans.c (maybe_stabilize_reference): Remove handling of
13778 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
13780 2006-11-05 Arnaud Charlet <charlet@adacore.com>
13783 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
13784 (To_Target_Priority): New function.
13786 2006-10-31 Robert Dewar <dewar@adacore.com>
13788 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
13789 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
13790 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
13791 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
13792 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
13793 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
13794 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
13795 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
13796 a-szbzha.adb: Minor reformatting. Fix header.
13798 * a-numaux-x86.adb: Add parentheses for use of unary minus
13799 * a-ngcefu.adb: Supply missing parentheses for unary minus
13800 * a-ngcoty.adb: Add parens for use of unary minus
13801 * a-ngelfu.adb: Add missing parens for unary minus
13802 * a-tifiio.adb: Add parentheses for uses of unary minus
13804 2006-10-31 Robert Dewar <dewar@adacore.com>
13805 Bob Duff <duff@adacore.com>
13806 Ed Schonberg <schonberg@adacore.com>
13808 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
13809 with multiplying operator.
13810 (Expected_Type_Is_Any_Real): New function to determine from the Parent
13811 pointer whether the context expects "any real type".
13812 (Resolve_Arithmetic_Op): Do not give an error on calls to the
13813 universal_fixed "*" and "/" operators when they are used in a context
13814 that expects any real type. Also set the type of the node to
13815 Universal_Real in this case, because downstream processing requires it
13816 (mainly static expression evaluation).
13817 Reword some continuation messages
13818 Add some \\ sequences to continuation messages
13819 (Resolve_Call): Refine infinite recursion case. The test has been
13820 sharpened to eliminate some false positives.
13821 Check for Current_Task usage now includes entry barrier, and is now a
13822 warning, not an error.
13823 (Resolve): If the call is ambiguous, indicate whether an interpretation
13824 is an inherited operation.
13825 (Check_Aggr): When resolving aggregates, skip associations with a box,
13826 which are priori correct, and will be replaced by an actual default
13827 expression in the course of expansion.
13828 (Resolve_Type_Conversion): Add missing support for conversion from
13829 a class-wide interface to a tagged type. Minor code cleanup.
13830 (Valid_Tagged_Converion): Add support for abstact interface type
13832 (Resolve_Selected_Component): Call Generate_Reference here rather than
13833 during analysis, and use May_Be_Lvalue to distinguish read/write.
13834 (Valid_Array_Conversion): New procedure, abstracted from
13835 Valid_Conversion, to incorporate accessibility checks for arrays of
13836 anonymous access types.
13837 (Valid_Conversion): For a conversion to a numeric type occurring in an
13838 instance or inlined body, no need to check that the operand type is
13839 numeric, since this has been checked during analysis of the template.
13840 Remove legacy test for scope name Unchecked_Conversion.
13842 * sem_res.ads: Minor reformatting
13844 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
13845 (PE_Current_Task_In_Entry_Body): New exception code
13846 (SE_Restriction_Violation): Removed, not used
13848 * a-except.ads: Update comments.
13850 * types.h, types.ads: Add definition for Validity_Check
13851 (PE_Current_Task_In_Entry_Body): New exception code
13852 (SE_Restriction_Violation): Removed, not used
13854 2006-10-31 Thomas Quinot <quinot@adacore.com>
13856 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
13859 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13860 Jose Ruiz <ruiz@adacore.com>
13862 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
13863 part of Ada.Calendar: all subprogram raise Unimplemented.
13864 (Split_W_Offset): Temp function body, raising Unimplemented
13866 * a-calend.ads, a-calend-vms.ads:
13867 Add imported variable Invalid_TZ_Offset used to designate targets unable
13868 to support time zones.
13869 (Unimplemented): Temporary function raised by the body of new
13871 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
13872 unit provides handling of leap seconds and is used by the new Ada 2005
13873 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
13874 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
13875 version returns an extra value which is the offset to UTC.
13877 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
13878 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
13879 (Split_W_Offset): New function body.
13880 (Time_Of): When a date is close to UNIX epoch, compute the time for
13881 that date plus one day (that amount is later substracted after
13882 executing mktime) so there are no problems with time zone adjustments.
13884 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
13886 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
13887 a-catizo.ads, a-catizo.adb: New files.
13889 * impunit.adb: Add new Ada 2005 entries
13891 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
13892 Rename all occurences of "__gnat_localtime_r" to
13893 "__gnat_localtime_tzoff".
13894 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
13895 zone data and calculate the GMT offset.
13896 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
13897 Use the field "tm_gmtoff" to extract the GMT offset.
13898 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
13899 the external variable "timezone" to calculate the GMT offset.
13901 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13902 Jose Ruiz <ruiz@adacore.com>
13904 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
13905 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
13906 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
13907 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
13908 System.Any_Priority to a POSIX priority on the target.
13910 * system-linux-ia64.ads:
13911 Extend range of Priority types on Linux to use the whole range made
13912 available by the system.
13914 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
13915 function maps from System.Any_Priority to a POSIX priority on the
13917 (PTHREAD_PRIO_PROTECT): Set real value.
13918 (PTHREAD_PRIO_INHERIT): Now a function.
13919 (SIGCPUFAIL): New signal.
13920 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
13921 are documented as reserved by the OS.
13923 * system-aix.ads: Use the full range of priorities provided by the
13926 * s-taprop-posix.adb: Call new function To_Target_Priority.
13927 (Set_Priority): Take into account Task_Dispatching_Policy and
13928 Priority_Specific_Dispatching pragmas when determining if Round Robin
13929 must be used for scheduling the task.
13931 * system-linux-x86_64.ads, system-linux-x86.ads,
13932 system-linux-ppc.ads: Extend range of Priority types on Linux to use
13933 the whole range made available by the system.
13935 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
13936 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
13937 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
13938 when deallocating the TCB in order to avoid potential references to
13940 (Set_Priority): Take into account Task_Dispatching_Policy and
13941 Priority_Specific_Dispatching pragmas when determining if Round Robin
13942 or FIFO within priorities must be used for scheduling the task.
13944 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
13945 the Thread field (to be used internally by the run-time system) and the
13946 kernel-level task id in the LWP field (to be used by the debugger).
13947 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
13948 instance, and propagate the current task options to the spawned task.
13949 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
13950 (Initialize): Set Round Robin dispatching when the corresponding pragma
13953 2006-10-31 Robert Dewar <dewar@adacore.com>
13955 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
13956 system-linux-hppa.ads, system-hpux-ia64.ads,
13957 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
13958 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
13959 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
13960 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
13961 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13962 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13963 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
13964 Default_Bit_Order) to kill constant condition warnings for references
13967 2006-10-31 Vincent Celier <celier@adacore.com>
13968 Eric Botcazou <ebotcazou@adacore.com>
13970 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
13971 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
13972 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
13973 Ext_To, when building the library file name
13975 * mlib-tgt-vxworks.adb: ditto.
13976 (Get_Target_Suffix): Add support for x86 targets.
13978 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
13980 * mlib-tgt-darwin.adb:
13981 Use Append_To, instead of Ext_To, when building the library file name
13982 (Flat_Namespace): New global variable.
13983 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
13984 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
13985 (Link_Shared_Libgcc): Delete.
13986 (Build_Dynamic_Library): Adjust for above changes.
13988 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
13990 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
13992 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
13993 (Initialize): Add type conversions required by above change.
13995 2006-10-31 Jose Ruiz <ruiz@adacore.com>
13997 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
13998 (getpid): New body for this function that uses the underlying taskIdSelf
13999 function for VxWorks 5 and VxWorks 6 in kernel mode.
14000 (unsigned_int): New type, modular to allow logical bit operations.
14001 (taskOptionsGet): New imported function.
14003 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
14004 field to be compliant with the type used by the corresponding operating
14007 2006-10-31 Pascal Obry <obry@adacore.com>
14008 Eric Botcazou <ebotcazou@adacore.com>
14009 Vincent Celier <celier@adacore.com>
14011 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
14012 ASCII version of the registry API. This is needed as the GNAT runtime
14013 is now UNICODE by default.
14015 (get_gcc_version): Do not hardcode the return value.
14016 (__gnat_file_time_name): On Windows properly set the default returned
14017 value to -1 which corresponds to Invalid_Time.
14018 (__gnat_fopen): New routine. A simple wrapper on all plateforms
14019 except on Windows where it does conversion for unicode support.
14020 (__gnat_freopen): Idem.
14021 (__gnat_locate_exec_on_path): If environment variable PATH does not
14022 exist, return a NULL pointer
14024 * adaint.h: (__gnat_fopen): Declare.
14025 (__gnat_freopen): Likewise.
14027 * mingw32.h (_tfreopen): Define this macro here for older MingW
14029 Activate the unicode support on platforms using a MingW runtime
14030 version 3.9 or newer.
14032 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
14033 This is needed for proper unicode support on Windows.
14036 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14037 Nicolas Setton <setton@adacore.com>
14038 Olivier Hainque <hainque@adacore.com>
14039 Gary Dismukes <dismukes@adacore.com>
14041 * gigi.h: (tree_code_for_record_type): Declare.
14042 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
14043 (get_global_renaming_pointers): Rename to
14044 invalidate_global_renaming_pointers.
14045 (static_ctors): Delete.
14046 (static_dtors): Likewise.
14047 (gnat_write_global_declarations): Declare.
14048 (create_var_decl): Adjust descriptive comment to indicate that the
14049 subprogram may return a CONST_DECL node.
14050 (create_true_var_decl): Declare new function, similar to
14051 create_var_decl but forcing the creation of a VAR_DECL node.
14052 (get_global_renaming_pointers): Declare.
14053 (add_global_renaming_pointer): Likewise.
14055 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
14057 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
14058 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
14060 (gnat_to_gnu_entity): Remove From_With_Type from computation for
14062 <E_Access_Type>: Use the Non_Limited_View as the full view of the
14063 designated type if the pointer comes from a limited_with clause. Make
14064 incomplete designated type if it is in the main unit and has a freeze
14066 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
14067 Underlying_Full_View similarly. Return earlier if the full view already
14068 has an associated tree.
14069 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
14070 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
14071 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
14072 reference type built for objects with an address clause.
14073 Use create_true_var_decl with const_flag set for
14074 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
14076 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
14077 for Character and Wide_Character types. This info is read by the
14078 dwarf-2 writer, and is needed to be able to use the command "ptype
14079 character" in the debugger.
14080 (gnat_to_gnu_entity): When generating a type representing
14081 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
14082 so that debug writers can distinguish it from ordinary integers.
14083 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
14084 addition to TREE_READONLY to assert the constantness of variables for
14085 elaboration purposes.
14086 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
14087 parameters to call new Einfo function First_Formal_With_Extras.
14088 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
14089 protected type with its corresponding discriminant, to obtain a usable
14091 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
14092 for a multiple elaboration of the "equivalent" type.
14093 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
14094 into record_global_renaming_pointer.
14095 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
14096 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
14097 <E_Array_Subtype>: Likewise.
14098 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
14099 incomplete subtypes and incomplete subtypes of incomplete types visible
14100 through a limited with clause.
14101 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
14102 the base index type for the maximum size of the array only if they are
14104 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
14105 expression into a SAVE_EXPR if stabilization failed.
14107 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
14108 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
14109 by lower level compilation passes.
14110 (gnat_genericize): New function, lowering a function body to GENERIC.
14111 Turn the type of RESULT_DECL into a real reference type if the decl
14112 has been marked DECL_BY_REFERENCE, and adjust references to the latter
14114 (gnat_genericize_r): New function. Tree walking callback for
14116 (convert_from_reference, is_byref_result): New functions. Helpers for
14118 (create_type_decl): Call gnat_pushdecl before calling
14119 rest_of_decl_compilation, to make sure that field TYPE_NAME of
14120 type_decl is properly set before calling the debug information writers.
14121 (write_record_type_debug_info): The heuristics which compute the
14122 alignment of a field in a variant record might not be accurate. Add a
14123 safety test to make sure no alignment is set to a smaller value than
14124 the alignment of the field type.
14125 (make_dummy_type): Use the Non_Limited_View as the underlying type if
14126 the type comes from a limited_with clause. Do not loop on the full view.
14127 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
14128 (dummy_node_table): New global variable, moved from decl.c.
14129 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
14130 (save_gnu_tree): Use above macros.
14131 (get_gnu_tree): Likewise.
14132 (present_gnu_tree): Likewise.
14133 (init_dummy_type): New function, moved from decl.c. Use above macros.
14134 (make_dummy_type): Likewise.
14135 (tree_code_for_record_type): New function extracted from make_dummy_type
14136 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
14137 (static_ctors): Change it to a vector, make static.
14138 (static_dtors): Likewise.
14139 (end_subprog_body): Adjust for above change.
14140 (build_global_cdtor): Moved from trans.c.
14141 (gnat_write_global_declarations): Emit global constructor and
14142 destructor, and call cgraph_optimize before emitting debug info for
14143 global declarations.
14144 (global_decls): New global variable.
14145 (gnat_pushdecl): Store the global declarations in global_decls, for
14147 (gnat_write_global_declarations): Emit debug information for global
14149 (create_var_decl_1): Former create_var_decl, with an extra argument to
14150 state whether the creation of a CONST_DECL is allowed.
14151 (create_var_decl): Behavior unchanged. Now a wrapper around
14152 create_var_decl_1 allowing CONST_DECL creation.
14153 (create_true_var_decl): New function, similar to create_var_decl but
14154 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
14155 (create_field_decl): Do not always mark the field as addressable
14156 if its type is an aggregate.
14157 (global_renaming_pointers): New static variable.
14158 (add_global_renaming_pointer): New function.
14159 (get_global_renaming_pointers): Likewise.
14161 * misc.c (gnat_dwarf_name): New function.
14162 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
14163 (gnat_post_options): Add comment about structural alias analysis.
14164 (gnat_parse_file): Do not call cgraph_optimize here.
14165 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
14167 * trans.c (process_freeze_entity): Don't abort if we already have a
14168 non dummy GCC tree for a Concurrent_Record_Type, as it might
14169 legitimately have been elaborated while processing the associated
14170 Concurrent_Type prior to this explicit freeze node.
14171 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
14172 exception handler volatile if it is of variable size.
14173 (process_type): Remove bypass for types coming from a limited_with
14175 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
14176 actual, convert the corresponding gnu_actual to the real destination
14177 type when necessary.
14178 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
14179 originally TREE_READONLY but whose elaboration cannot be performed
14181 Part of fix for F504-021.
14182 (tree_transform, subprogram cases): Change loops on formal parameters to
14183 call new Einfo function First_Formal_With_Extras.
14184 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
14185 stemming from type conversion for the lhs.
14186 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
14187 number of bits per unit for components of records.
14188 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
14189 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
14190 with At_End_Proc after the SJLJ EH cleanup.
14191 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
14193 (elaborate_all_entities): Do not retest type_annotate_only.
14194 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
14195 result type of an abstract subprogram, which may be an itype associated
14196 with an anonymous access result (related to AI-318-02).
14197 (build_global_cdtor): Move to utils.c.
14198 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
14199 this choice is not a null tree nor an integer constant.
14200 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
14201 on the body of elaboration routines instead of mark_unvisited.
14202 (add_stmt): Do not mark the tree.
14203 (add_decl_expr): Tweak comment.
14204 (mark_unvisited): Delete.
14205 (unshare_save_expr): New static function.
14206 (call_to_gnu): Issue an error when making a temporary around a
14207 procedure call because of non-addressable actual parameter if the
14208 type of the formal is by_reference.
14209 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
14210 after building the elaboration routine.
14212 2006-10-31 Bob Duff <duff@adacore.com>
14214 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
14215 as finalization-started, so we can raise Program_Error on 'new'.
14217 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
14218 collection has already started.
14220 * s-finimp.ads (Collection_Finalization_Started): Added new special
14221 flag value for indicating that a collection's finalization has started.
14223 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
14224 create a task whose master has already waited for dependent tasks.
14226 2006-10-31 Robert Dewar <dewar@adacore.com>
14228 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
14230 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
14231 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
14232 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
14233 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
14234 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
14235 a-except-2005.ads: Add pragma Preelaborable_Warning
14237 2006-10-31 Robert Dewar <dewar@adacore.com>
14238 Jose Ruiz <ruiz@adacore.com>
14240 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
14242 * ali.adb (Get_Name): Properly handle scanning of wide character names
14243 encoded with brackets notation.
14244 (Known_ALI_Lines): Add S lines to this list.
14245 (Scan_ALI): Acquire S (priority specific dispatching) lines.
14246 New flag Elaborate_All_Desirable in unit table
14248 * ali.ads (Priority_Specific_Dispatching): Add this range of
14249 identifiers to be used for Priority_Specific_Dispatching table entries.
14250 (ALIs_Record): Add First_Specific_Dispatching and
14251 Last_Specific_Dispatching that point to the first and last entries
14252 respectively in the priority specific dispatching table for this unit.
14253 (Specific_Dispatching): Add this table for storing each S (priority
14254 specific dispatching) line encountered in the input ALI file.
14255 New flag Elaborate_All_Desirable in unit table
14257 * bcheck.adb: (Check_Configuration_Consistency): Add call to
14258 Check_Consistent_Dispatching_Policy.
14259 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
14260 verifying that the use of Priority_Specific_Dispatching,
14261 Task_Dispatching_Policy, and Locking_Policy is consistent across the
14264 * bindgen.adb: (Public_Version_Warning): function removed.
14265 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
14266 required information from ALI files in order to initialize the table
14267 containing the specific dispatching policy.
14268 (Gen_Adainit_Ada): Generate the variables required for priority specific
14269 dispatching entries (__gl_priority_specific_dispatching and
14270 __gl_num_specific_dispatching).
14271 (Gen_Adainit_C): Generate the variables required for priority specific
14272 dispatching entries (__gl_priority_specific_dispatching and
14273 __gl_num_specific_dispatching).
14274 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
14276 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
14277 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
14279 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
14280 a call to gnat_set_globals.
14281 Generate a string containing settings from
14282 Priority_Specific_Dispatching pragma entries.
14283 (Gen_Object_Files_Options): Do not include the runtime libraries when
14284 pragma No_Run_Time is specified.
14286 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
14287 consistency with s-intman-posix.adb.
14288 (__gnat_error_handler, case FreeBSD): Account for the fact that the
14289 handler is installed with SA_SIGINFO.
14290 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
14291 FreeBSD ZCX support, copied from Linux version.
14292 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
14293 sigfillset, and sigemptyset so the routines defined by MaRTE.
14294 (__gl_priority_specific_dispatching): Add this variable that stores the
14295 string containing priority specific dispatching policies in the
14297 (__gl_num_specific_dispatching): Add this variable that indicates the
14298 highest priority for which a priority specific dispatching pragma
14300 (__gnat_get_specific_dispatching): Add this routine that returns the
14301 priority specific dispatching policy, as set by a
14302 Priority_Specific_Dispatching pragma appearing anywhere in the current
14303 partition. The input argument is the priority number, and the result
14304 is the upper case first character of the policy name.
14305 (__gnat_set_globals): Now a dummy function.
14306 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
14307 mechargs instead of sigargs, as the latter can be retrieved from the
14308 former and sigargs is not what we want on ia64.
14309 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
14311 (__gnat_adjust_context_for_raise, ia64-vms): New function.
14312 (tasking_error): Remove unused symbol.
14313 (_abort_signal): Move this symbol to the IRIX specific part since this
14314 is the only target that uses this definition.
14315 (Check_Abort_Status): Move this symbol to the IRIX specific part since
14316 this is the only target that uses this definition.
14317 (Lock_Task): Remove unused symbol.
14318 (Unlock_Task): Remove unused symbol.
14320 * lib-writ.adb (Write_ALI): Output new S lines for
14321 Priority_Specific_Dispatching pragmas.
14322 Implement new flag BD for elaborate body desirable
14324 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
14325 (Specific_Dispatching): Add this table for storing the entries
14326 corresponding to Priority_Specific_Dispatching pragmas.
14327 Document new BD flag for elaborate body desirable
14329 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
14332 2006-10-31 Javier Miranda <miranda@adacore.com>
14334 * a-tags.ads, a-tags.adb:
14335 (Predefined_DT): New function that improves readability of the code.
14336 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
14337 Inherit_DT): Use the new function Predefined_DT to improve code
14339 (Register_Interface_Tag): Update assertion.
14340 (Set_Interface_Table): Update assertion.
14341 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
14342 determining progenitor interfaces in Tags.
14343 (Inherit_CPP_DT): New subprogram.
14345 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
14346 analysis of the thunk code.
14347 (Expand_Interface_Conversion): Handle run-time conversion of
14348 access to class wide types.
14349 (Expand_Dispatching_Call): When generating the profile for the
14350 subprogram itype for a dispatching operation, properly terminate the
14351 formal parameters chaind list (set the Next_Entity of the last formal
14353 (Collect_All_Interfaces): Removed. This routine has been moved to
14354 sem_util and renamed as Collect_All_Abstract_Interfaces.
14355 (Set_All_DT_Position): Hidden entities associated with abstract
14356 interface primitives are not taken into account in the check for
14357 3.9.3(10); this check is done with the aliased entity.
14358 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
14359 interfacing with CPP by default.
14360 (Expand_Interface_Conversion): Add missing support for static conversion
14361 from an interface to a tagged type.
14362 (Collect_All_Interfaces): Add new out formal containing the list of
14363 abstract interface types to cleanup the subprogram Make_DT.
14364 (Make_DT): Update the code to generate the table of interfaces in case
14365 of abstract interface types.
14366 (Is_Predefined_Dispatching_Alias): New function that returns true if
14367 a primitive is not a predefined dispatching primitive but it is an
14368 alias of a predefined dispatching primitive.
14369 (Make_DT): If the ancestor of the type is a CPP_Class and we are
14370 compiling under full ABI compatibility mode we avoid the generation of
14371 calls to run-time services that fill the dispatch tables because under
14372 this mode we currently inherit the dispatch tables in the IP subprogram.
14373 (Write_DT): Emit an "is null" indication for a null procedure primitive.
14374 (Expand_Interface_Conversion): Use an address as the type of the formal
14375 of the internally built function that handles the case in which the
14376 target type is an access type.
14378 2006-10-31 Robert Dewar <dewar@adacore.com>
14380 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
14382 2006-10-31 Robert Dewar <dewar@adacore.com>
14384 * bindusg.ads, bindusg.adb:
14385 Change to package and rename procedure as Display, which
14386 now ensures that it only outputs usage information once.
14388 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14390 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
14393 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
14396 2006-10-31 Robert Dewar <dewar@adacore.com>
14397 Ed Schonberg <schonberg@adacore.com>
14399 * treepr.adb: Use new subtype N_Membership_Test
14401 * checks.ads, checks.adb: Add definition for Validity_Check
14402 (Range_Or_Validity_Checks_Suppressed): New function
14403 (Ensure_Valid): Test Validity_Check suppressed
14404 (Insert_Valid_Check): Test Validity_Check suppressed
14405 (Insert_Valid_Check): Preserve Do_Range_Check flag
14406 (Validity_Check_Range): New procedure
14407 (Expr_Known_Valid): Result of membership test is always valid
14408 (Selected_Range_Checks): Range checks cannot be applied to discriminants
14409 by themselves. Disabling those checks must also be done for task types,
14410 where discriminants may be used for the bounds of entry families.
14411 (Apply_Address_Clause_Check): Remove side-effects if address expression
14412 is non-static and is not the name of a declared constant.
14413 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
14414 Code cleanup and new error messages.
14415 (Enable_Range_Check): Test for some cases of suppressed checks
14416 (Generate_Index_Checks): Suppress index checks if index checks are
14417 suppressed for array object or array type.
14418 (Apply_Selected_Length_Checks): Give warning for compile-time detected
14419 length check failure, even if checks are off.
14420 (Ensure_Valid): Do not generate a check on an indexed component whose
14421 prefix is a packed boolean array.
14422 * checks.adb: (Alignment_Checks_Suppressed): New function
14423 (Apply_Address_Clause_Check): New procedure, this is a completely
14424 rewritten replacement for Apply_Alignment_Check
14425 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
14426 we request a discriminal value only in case of discriminants.
14427 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
14428 assignments where the target subtype is unconstrained and the target
14429 object is a parameter or dereference (other aliased cases are known
14430 to be unconstrained).
14432 2006-10-31 Robert Dewar <dewar@adacore.com>
14434 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
14435 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
14436 vms_conv.adb: Fix bad table increment values (much too small)
14438 * table.adb (Realloc): Make sure we get at least some new elements
14439 Defends against silly small values for table increment
14441 2006-10-31 Robert Dewar <dewar@adacore.com>
14442 Ed Schonberg <schonberg@adacore.com>
14443 Bob Duff <duff@adacore.com>
14445 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
14446 entities. Move other fields around to make this possible
14447 (Is_Derived_Type): Add missing call to Is_Type.
14448 (Extra_Formals): New function for subprograms, entries, subprogram
14450 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
14451 (First_Formal_With_Extras): New function for subprogs, entries, subp
14453 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
14454 Add node information for E_Return_Statement.
14455 (Elaborate_Body_Desirable): New flag
14456 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
14457 to be Is_Inherently_Limited_Type, because return-by-reference has
14458 no meaning in Ada 2005.
14459 (E_Return_Statement): New entity kind.
14460 (Return_Applies_To): Field of E_Return_Statement.
14461 (Is_Return_Object): New flag in object entities.
14462 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
14463 (Must_Have_Preelab_Init): New flag
14464 (Known_To_Have_Preelab_Init): New flag
14465 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
14466 (Is_Visible_Formal): New flag on entities in formal packages.
14467 (Low_Bound_Known): New flag
14468 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
14470 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
14471 output when Id is an incomplete subtype.
14473 2006-10-31 Robert Dewar <dewar@adacore.com>
14475 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
14476 Avoid abbreviation Creat
14477 (Finalize): List all sources in extended mail source if -gnatl
14479 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
14480 (Finalize): Implement new -gnatl=xxx switch to output listing to file
14481 (Set_Specific_Warning_On): New procedure
14482 (Set_Specific_Warning_Off): New procedure
14483 Add implementation of new insertion \\
14484 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
14485 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
14487 (Error_Msg_Internal): Make sure that we set Last_Killed to
14488 True when a message from another package is suppressed.
14489 Implement insertion character ~ (insert string)
14490 (First_Node): Minor adjustments to get better placement.
14493 Implement new -gnatl=xxx switch to output listing to file
14496 Implement new -gnatl=xxx switch to output listing to file
14498 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
14499 (Commands_To_Stdout): New flag
14500 Implement new -gnatl=xxx switch to output listing to file
14501 New switch Dump_Source_Text
14502 (Warn_On_Deleted_Code): New warning flag for -gnatwt
14503 Define Error_Msg_Line_Length
14504 (Warn_On_Assumed_Low_Bound): New switch
14506 * osint.ads, osint.adb
14507 (Normalize_Directory_Name): Fix bug.
14508 Implement new -gnatl=xxx switch to output listing to file
14509 (Concat): Removed, replaced by real concatenation
14510 Make use of concatenation now allowed in compiler
14511 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
14512 we find the 'lib' or 'bin' directory even when the tool has been
14513 invoked with a relative path.
14514 (Executable_Name): New function taking string parameters.
14516 * osint-c.ads, osint-c.adb:
14517 Implement new -gnatl=xxx switch to output listing to file
14519 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
14522 Implement new -gnatl=xxx switch to output listing to file
14523 Recognize new -gnatL switch
14524 (no longer keep in old warning about old style usage)
14525 Use concatenation to simplify code
14526 Recognize -gnatjnn switch
14527 (Scan_Front_End_Switches): Clean up handling of -gnatW
14528 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
14530 2006-10-31 Robert Dewar <dewar@adacore.com>
14532 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
14533 (Set_Specific_Warning_Off): New procedure
14534 (Warning_Specifically_Suppressed): New function
14535 (Validate_Specific_Warnings): New procedure
14536 (Output_Msg_Text): Complete rewrite to support -gnatjnn
14538 * err_vars.ads: Implement insertion character ~ (insert string)
14540 2006-10-31 Bob Duff <duff@adacore.com>
14541 Ed Schonberg <schonberg@adacore.com>
14543 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
14544 the parent part is a build-in-place function call, generate assignments.
14545 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
14546 are build-in-place function calls.
14547 (Replace_Self_Reference): New subsidiary of
14548 Make_OK_Assignment_Statement, to replace an access attribute that is a
14549 self-reference into an access to the appropriate component of the
14550 target object. Generalizes previous mechanism to handle self-references
14551 nested at any level.
14552 (Is_Self_Referential_Init): Remove, not needed.
14553 (Is_Self_Referential_Init): New predicate to simplify handling of self
14554 referential components in record aggregates.
14555 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
14556 check for presence of entity before checking for self-reference.
14557 (Has_Default_Init_Comps): Return True if a component association is a
14558 self-reference to the enclosing type, which can only come from a
14559 default initialization.
14560 (Make_OK_Assignment_Statement): If the expression is of the form
14561 Typ'Acc, where Acc is an access attribute, the expression comes from a
14562 default initialized self-referential component.
14563 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
14564 that has been derived from several abstract interfaces we must also
14565 initialize the tags of the secondary dispatch tables.
14567 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14568 Thomas Quinot <quinot@adacore.com>
14569 Javier Miranda <miranda@adacore.com>
14570 Robert Dewar <dewar@adacore.com>
14573 (Expand_Access_To_Protected_Op): If the context indicates that an access
14574 to a local operation may be transfered outside of the object, create an
14575 access to the wrapper operation that must be used in an external call.
14576 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
14577 target, pass the Valid attribute applied to a floating-point prefix on
14578 to the back end without expansion.
14579 (Storage_Size): Use the new run-time function Storage_Size to retrieve
14580 the allocated storage when it is specified by a per-object expression.
14581 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
14582 Nothing to do here, the attribute has been rewritten during semantic
14584 (Expand_Attribute_Reference): Handle expansion of the new Priority
14586 (Find_Fat_Info): Handle case of universal real
14587 (Expand_Access_To_Protected_Op): Fix use of access to protected
14588 subprogram from inside the body of a protected entry.
14589 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
14590 'Access and 'Unrestricted_Access, to transform the attribute reference
14591 into a fat pointer.
14592 (Is_Constrained_Aliased_View): New predicate to help determine whether a
14593 subcomponent's enclosing variable is aliased with a constrained subtype.
14594 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
14595 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
14596 an aliased prefix must be known to be constrained in order to use True
14597 for the attribute value, and now it's possible for some aliased views
14598 to be unconstrained.
14600 2006-10-31 Robert Dewar <dewar@adacore.com>
14602 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
14603 (Expand_Entity_Reference): Correct error of not handling subprogram
14604 formals in current_value processing.
14606 2006-10-31 Javier Miranda <miranda@adacore.com>
14607 Robert Dewar <dewar@adacore.com>
14608 Ed Schonberg <schonberg@adacore.com>
14609 Gary Dismukes <dismukes@adacore.com>
14611 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
14612 register in the final list objects containing class-wide interfaces;
14613 otherwise we incorrectly register the tag of the interface in the final
14615 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
14616 generate the wrapper if the parent primitive is abstract. This is
14617 required to report the correct error message.
14618 (Expand_N_Subtype_Indication): Do validity checks on range
14619 (Clean_Task_Names): If an initialization procedure includes a call to
14620 initialize a task (sub)component, indicate that the procedure will use
14621 the secondary stack.
14622 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
14623 compatibility for interfacing with CPP by default.
14624 (Expand_N_Object_Declaration): Only build an Adjust call when the
14625 object's type is a nonlimited controlled type.
14626 * exp_ch3.adb: Add with and use of Exp_Ch6.
14627 (Expand_N_Object_Declaration): Check for object initialization that is a
14628 call to build-in-place function and apply Make_Build_In_Place_Call_In_
14629 Object_Declaration to the call.
14630 (Freeze_Type): When the designated type of an RACW was not frozen at the
14631 point where the RACW was declared, validate the primitive operations
14632 with respect to E.2.2(14) when it finally is frozen.
14633 (Build_Initialization_Call,Expand_Record_Controller): Rename
14634 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
14635 return-by-reference has no meaning in Ada 2005.
14636 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
14637 to register tag of the immediate ancestor interfaces in the
14638 run-time structure.
14639 (Init_Secondary_Tags): Moved to the specification to allow the
14640 initialization of extension aggregates with abstract interfaces.
14641 (Build_Master_Renaming): Make public, for use by function declarations
14642 whose return type is an anonymous access type.
14643 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
14644 Insert_List_Before_And_Analyze after the generation of the specs
14645 associated with null procedures.
14646 (Expand_Tagged_Root): Update documentation in its specification.
14647 (Init_Secondary_Tags): Update documentation.
14648 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
14649 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
14650 then generate code to inherit the contents of the dispatch table
14651 directly from the ancestor.
14652 (Expand_Record_Controller): Insert controller component after tags of
14653 implemented interfaces.
14654 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
14655 create null procedure overridings when null procedures are inherited
14657 (Make_Null_Procedure_Specs): New procedure to generate null procedure
14658 declarations for overriding null primitives inherited from interfaces.
14659 (Is_Null_Interface_Procedure): New function in
14660 Make_Null_Procedure_Specs.
14661 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
14662 immediate ancestor of a tagged type is an abstract interface type we
14663 must generate the specification of the predefined primitives associated
14664 with controlled types (because the dispatch table of the ancestor is
14665 null and hence these entries cannot be inherited). This is required to
14666 elaborate well the dispatch table.
14668 2006-10-31 Javier Miranda <miranda@adacore.com>
14669 Ed Schonberg <schonberg@adacore.com>
14670 Bob Duff <duff@adacore.com>
14671 Gary Dismukes <dismukes@adacore.com>
14672 Robert Dewar <dewar@adacore.com>
14674 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
14676 (Expand_N_In): Do validity checks on range
14677 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
14678 (Expand_N_Allocator): For "new T", if the object is constrained by
14679 discriminant defaults, allocate the right amount of memory, rather than
14680 the maximum for type T.
14681 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
14682 when the allocator is initialized by a build-in-place call, since the
14683 allocator is already rewritten as a reference to the function result,
14684 and this prevents an unwanted duplication of the function call.
14685 Add with and use of Exp_Ch6.
14686 (Expand_Allocator_Expresssion): Check for an allocator whose expression
14687 is a call to build-in-place function and apply
14688 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
14689 untagged designated types).
14690 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
14691 optimization if source or target is biased.
14692 (Expand_N_Allocator): Add comments for case of an allocator within a
14693 function that returns an anonymous access type designating tasks.
14694 (Expand_N_Allocator): apply discriminant checks for access
14695 discriminants of anonymous access types (AI-402, AI-416)
14697 2006-10-31 Bob Duff <duff@adacore.com>
14698 Robert Dewar <dewar@adacore.com>
14699 Gary Dismukes <dismukes@adacore.com>
14700 Ed Schonberg <schonberg@adacore.com>
14702 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
14704 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
14705 (Expand_N_Assignment_Statement): Call
14706 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
14707 build-in-place function call. Currently, this can happen only for
14708 assignments that come from aggregates.
14709 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
14710 in order to alleviate the upward compatibility introduced by AI-318.
14711 (Expand_N_Extended_Return_Statement): Add support for handling the
14712 return object as a build-in-place result.
14713 (Expand_Non_Function_Return): Implement simple return statements nested
14714 within an extended return.
14715 (Enable_New_Return_Processing): Turn on the new processing of return
14717 (Expand_Non_Function_Return): For a return within an extended return,
14718 don't raise Program_Error, because Sem_Ch6 now gives a warning.
14719 (Expand_N_Extended_Return_Statement): Implement AI-318
14720 (Expand_Simple_Function_Return): Ditto.
14721 (Expand_N_If_Statement): Handle new -gnatwt warning
14722 (Expand_N_Case_Statement): Handle new -gnatwt warning
14723 (Expand_N_Assignment): Handle assignment to the Priority attribute of
14724 a protected object.
14725 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
14726 validity checking of assignments to elementary record components.
14727 (Expand_N_Return_Statement): return Class Wide types on the secondary
14728 stack independantly of their controlled status since with HIE runtimes,
14729 class wide types are not potentially controlled anymore.
14731 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
14734 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
14735 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
14736 it expects a block, procedure, or task. The return statement will get
14737 turned into a block, and Expand_Cleanup_Actions will happen then.
14739 2006-10-31 Robert Dewar <dewar@adacore.com>
14740 Ed Schonberg <schonberg@adacore.com>
14741 Bob Duff <duff@adacore.com>
14742 Gary Dismukes <dismukes@adacore.com>
14744 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
14746 (Expand_Inlined_Call): Tagged types are by-reference types, and
14747 therefore should be replaced by a renaming declaration in the expanded
14748 body, as is done for limited types.
14749 (Expand_Call): If this is a call to a function with dispatching access
14750 result, propagate tag from context.
14751 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
14753 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
14754 build-in-place when the right-hand side of an assignment is a
14755 build-in-place function call.
14756 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
14757 of the explicit dereference of the allocator to the result subtype of
14758 the build-in-place function. This is needed to satisfy type checking
14759 in cases where the caller's return object is created by an allocator for
14760 a class-wide access type and the type named in the allocator is a
14762 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
14763 conversion of the reference to the declared object to the result subtype
14764 of the build-in-place function. This is needed to satisfy type checking
14765 in cases where the declared object has a class-wide type. Also, in the
14766 class-wide case, change the type of the object entity to the specific
14767 result subtype of the function, to avoid passing a class-wide object
14768 without explicit initialization to the back end.
14769 (Register_Interface_DT_Entry): Moved outside the body of
14770 Freeze_Subprogram because this routine is now public; it is called from
14771 Check_Dispatching_Overriding to handle late overriding of abstract
14772 interface primitives.
14773 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
14774 adding an implicit access actual on a call to a build-in-place function.
14775 (Expand_Actuals): Test for an actual parameter that is a call to a
14776 build-in-place function and apply
14777 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
14778 (Is_Build_In_Place_Function): New function to determine whether an
14779 entity is a function whose calls should be handled as build-in-place.
14780 (Is_Build_In_Place_Function_Call): New function to determine whether an
14781 expression is a function call that should handled as build-in-place.
14782 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
14783 calls to build-in-place functions as the initialization of an allocator.
14784 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
14785 handling calls to build-in-place functions in contexts that do not
14786 involve init of a separate object (for example, actuals of subprogram
14788 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
14789 handling calls to build-in-place functions as the initialization of an
14790 object declaration.
14791 (Detect_Infinite_Recursion): Add explicit parameter Process to
14792 instantiation of Traverse_Body to avoid unreferenced warning.
14793 (Check_Overriding_Inherited_Interfaces): Removed.
14794 (Register_Interface_DT_Entry): Code cleanup.
14795 (Register_Predefined_DT_Entry): Code cleanup.
14796 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
14797 inlined statements if within a transient scope.
14798 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
14799 formal parameters with occurrences of actuals in inlined body, establish
14800 visibility on the proper view of the actual's subtype for the body's
14802 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
14803 compatibility mode and we have an imported CPP subprogram because
14804 for now we assume that imported CPP primitives correspond with
14805 objects whose constructor is in the CPP side (and therefore we
14806 don't need to generate code to register them in the dispatch table).
14807 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
14808 aligned selected component.
14809 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
14810 the actual of an in-mode parameter is a type conversion.
14811 (Expand_Actuals): If the call does not come from source and the actual
14812 is potentially misaligned, let gigi handle it rather than rejecting the
14813 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
14814 Class Wide types as returning by reference independantly of their
14815 controlled status since with HIE runtimes class wide types are not
14816 potentially controlled anymore.
14818 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14820 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
14821 references that are private components of the protected object.
14822 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
14823 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
14824 instantiation to deal with warnings.
14825 (Initialize_Protection): If expression for priority is non-static, use
14826 System_Priority as its expected type, in case the expression has not
14829 2006-10-31 Robert Dewar <dewar@adacore.com>
14831 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
14832 initialization of Homonym_Len.
14833 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
14834 names from fully qualified name. Fixes problem of duplicate
14835 external names differing only in the presence of such a block name.
14837 2006-10-31 Thomas Quinot <quinot@adacore.com>
14838 Pablo Oliveira <oliveira@adacore.com>
14840 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
14841 subprogram Ids, even if they are not yet assigned.
14842 (Build_Subprogram_Id): It is now this function that will take care of
14843 calling Assign_Subprogram_Ids if necessary.
14844 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
14845 should be done only once they are assigned.
14846 (Build_From_Any_Function, case of tagged types): Add missing call to
14848 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
14849 type for an RACW type.
14850 (Add_RACW_Features): When processing an RACW declaration for which the
14851 designated type is already frozen, enforce E.2.2(14) rules immediately.
14852 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
14853 special reordering of controlling formals.
14855 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
14856 associated stub type for an RACW type.
14858 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14860 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
14861 fixed-point operations in an integer context, i.e. as operands of a
14862 conversion to an integer type, indicate that result must be rounded.
14864 2006-10-31 Robert Dewar <dewar@adacore.com>
14866 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
14867 cases, pass the encoding method, since it is now required by the run
14870 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
14871 assumption that Str'First = 1.
14872 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
14873 it on to the Value_Wide_Wide_Character call.
14874 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
14875 properly handles a string of the form quote-encoded_wide_char-quote.
14877 * s-wchcnv.adb: Minor reformatting
14879 2006-10-31 Javier Miranda <miranda@adacore.com>
14881 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
14882 run-time membership test to ensure that the constructed object
14883 implements the target abstract interface.
14885 2006-10-31 Robert Dewar <dewar@adacore.com>
14887 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
14888 Machine_Attribute pragma internally to implement the user pragma.
14889 Add processing for pragma Interface so that it is now completely
14890 equivalent to pragma Import.
14892 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
14893 so that it can be applied to all entities, including record components
14894 and enumeration literals.
14895 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
14896 priority ranges are correct, verify compatibility against task
14897 dispatching and locking policies, and if everything is correct an entry
14898 is added to the table containing priority specific dispatching entries
14899 for this compilation unit.
14900 (Delay_Config_Pragma_Analyze): Delay processing
14901 Priority_Specific_Dispatching pragmas because when processing the
14902 pragma we need to access run-time data, such as the range of
14903 System.Any_Priority.
14904 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
14905 Allow pragma Unreferenced as a context item
14906 Add pragma Preelaborable_Initialization
14907 (Analyze_Pragma, case Interface): Interface is extended so that it is
14908 now syntactically and semantically equivalent to Import.
14909 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
14910 insertion characters.
14911 Add handling for Pragma_Wide_Character_Encoding
14912 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
14913 never supercedes a real restriction, and that a real restriction
14914 always supercedes a warning.
14915 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
14918 2006-10-31 Bob Duff <duff@adacore.com>
14919 Ed Schonberg <schonberg@adacore.com>
14920 Robert Dewar <dewar@adacore.com>
14922 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
14923 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
14924 Is_Inherently_Limited_Type, because return-by-reference has no meaning
14926 (Find_Node_To_Be_Wrapped): Use new method of determining the result
14927 type of the function containing a return statement, because the
14928 Return_Type field was removed. We now use the Return_Applies_To field.
14930 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
14931 (Build_Task_Image_Decl): If procedure is not called from an
14932 initialization procedure, indicate that function that builds task name
14933 uses the sec. stack. Otherwise the enclosing initialization procedure
14934 will carry the indication.
14935 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
14936 N_Object_Declaration instead.
14937 (Kill_Dead_Code): New interface to implement -gnatwt warning for
14938 conditional dead code killed, and change implementation accordingly.
14939 (Insert_Actions): Add N_Return_Object_Declaration case.
14940 Correct comment to mention N_Extension_Aggregate node.
14941 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
14942 attempts to save information for global variables which cannot be
14944 (Get_Current_Value_Condition): Handle conditions the other way round
14945 (constant on left). Also handle right operand of AND and AND THEN
14946 (Set_Current_Value_Condition): Corresponding changes
14947 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
14948 (Get_Current_Value_Condition): Handle simple boolean operands
14949 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
14950 (Get_Current_Value_Condition): If the variable reference is within an
14951 if-statement, does not appear in the list of then_statments, and does
14952 not come from source, treat it as being at unknown location.
14953 (Get_Current_Value_Condition): Enhance to allow while statements to be
14954 processed as well as if statements.
14955 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
14957 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
14958 of loop. This is safe now that we fixed Kill_Current_Values.
14959 (OK_To_Do_Constant_Replacement): Check whether current scope is
14960 Standard, before examining outer scopes.
14962 2006-10-31 Vincent Celier <celier@adacore.com>
14964 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
14965 When True, apply VMS treatment to children of packages A, G, I and S.
14968 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
14970 2006-10-31 Robert Dewar <dewar@adacore.com>
14971 Ed Schonberg <schonberg@adacore.com>
14973 * freeze.adb: Add handling of Last_Assignment field
14974 (Warn_Overlay): Supply missing continuation marks in error msgs
14975 (Freeze_Entity): Add check for Preelaborable_Initialization
14977 * g-comlin.adb: Add Warnings (Off) to prevent new warning
14979 * g-expect.adb: Add Warnings (Off) to prevent new warning
14981 * lib-xref.adb: Add handling of Last_Assignment field
14982 (Generate_Reference): Centralize handling of pragma Obsolescent here
14983 (Generate_Reference): Accept an implicit reference generated for a
14984 default in an instance.
14985 (Generate_Reference): Accept a reference for a node that is not in the
14986 main unit, if it is the generic body corresponding to an subprogram
14989 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
14991 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
14993 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
14995 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
14996 use clauses, to avoid messages on packages used to qualify, and also
14997 to avoid messages from obsolescent units.
14998 (Warn_On_Useless_Assignments): Don't generate messages for imported
14999 and exported variables.
15000 (Warn_On_Useless_Assignments): New procedure
15001 (Output_Obsolescent_Entity_Warnings): New procedure
15002 (Check_Code_Statement): New procedure
15004 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
15005 Change name Is_Ada_2005 to Is_Ada_2005_Only
15006 (Last_Assignment): New field for useless assignment warning
15008 2006-10-31 Olivier Hainque <hainque@adacore.com>
15010 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
15011 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
15013 2006-10-31 Bob Duff <duff@adacore.com>
15014 Robert Dewar <dewar@adacore.com>
15015 Ed Schonberg <schonberg@adacore.com>
15017 * g-awk.adb (Default_Session, Current_Session): Compile this file in
15018 Ada 95 mode, because it violates the new rules for AI-318.
15020 * g-awk.ads: Use overloaded subprograms in every case where we used to
15021 have a default of Current_Session. This makes the code closer to be
15022 correct for both Ada 95 and 2005.
15024 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
15025 code, relying on the fact that the compiler generates a warning
15026 instead of an error in -gnatg mode.
15028 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
15029 E_Return_Statement entity kind.
15030 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
15032 * par.adb (P_Interface_Type_Definition): Addition of one formal to
15033 report an error if the reserved word abstract has been previously found.
15034 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
15036 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
15037 parenthesized range attribute usage
15038 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
15040 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
15041 in the syntax for extended_return_statement. This is not in the latest
15042 RM, but the ARG is expected to issue an AI allowing this.
15043 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
15044 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
15045 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
15046 P_Return_Statement): Parse the new syntax for extended_return_statement.
15048 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
15049 Output_End_Missing): Add error-recovery code for the new
15050 extended_return_statement syntax; that is, the new E_Return entry on
15053 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
15054 limited to nonlimited, because otherwise we violate the new Ada 2005
15055 rules about returning limited types in function Create_AST_Handler in
15058 * sem.adb (Analyze): Add cases for new node kinds
15059 N_Extended_Return_Statement and N_Return_Object_Declaration.
15061 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
15062 type is in the same category as type of context before applying check,
15063 to prevent anomalies in instantiations.
15064 (Resolve_Aggregate): Remove test for limited components in aggregates.
15065 It's unnecessary in Ada 95, because if it has limited components, then
15066 it must be limited. It's wrong in Ada 2005, because limited aggregates
15068 (Resolve_Record_Aggregate): Move check for limited types later, because
15069 OK_For_Limited_Init requires its argument to have been resolved.
15070 (Get_Value): When copying the component default expression for a
15071 defaulted association in an aggregate, use the sloc of the aggregate
15072 and not that of the original expression, to prevent spurious
15073 elaboration errors, when the expression includes function calls.
15074 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
15075 were missing. We also didn't handle qualified expressions. Now also
15076 allow function calls. Use new common routine OK_For_Limited_Init.
15077 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
15078 with space can upper case letter).
15080 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
15081 Has_Static_Discriminants flag
15082 (Record_Type_Declaration): Diagnose an attempt to declare an interface
15083 type with discriminants.
15084 (Process_Range_Expr_In_Decl): Do validity checks on range
15085 (Build_Discriminant_Constraints): Use updated form of
15086 Denotes_Discriminant.
15087 (Process_Subtype): If the subtype is a private subtype whose full view
15088 is a concurrent subtype, introduce an itype reference to prevent scope
15090 (Build_Derived_Record_Type, Collect_Interface_Primitives,
15091 Record_Type_Declaration): The functionality of the subprograms
15092 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
15093 is now performed by a single routine.
15094 (Build_Derived_Record_Type): If the type definition includes an explicit
15095 indication of limitedness, then the type must be marked as limited here
15096 to ensure that any access discriminants will not be treated as having
15097 a local anonymous access type.
15098 (Check_Abstract_Overriding): Issue a detailed error message when an
15099 abstract subprogram was not overridden due to incorrect mode of its
15101 (Analyze_Private_Extension_Declaration): Add support for the analysis of
15102 synchronized private extension declarations. Verify that the ancestor is
15103 a limited or synchronized interface or in the generic case, the ancestor
15104 is a tagged limited type or synchronized interface and all progenitors
15105 are either limited or synchronized interfaces.
15106 Derived_Type_Declaration): Check for presence of private extension when
15107 dealing with synchronized formal derived types.
15108 Process_Full_View): Enchance the check done on the usage of "limited" by
15109 testing whether the private view is synchronized.
15110 Verify that a synchronized private view is completed by a protected or
15112 (OK_For_Limited_Init_In_05): New function.
15113 (Analyze_Object_Declaration): Move check for limited types later,
15114 because OK_For_Limited_Init requires its argument to have been resolved.
15115 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15116 in order to alleviate the upward compatibility introduced by AI-318.
15117 (Constrain_Corresponding_Record): If the constraint is for a component
15118 subtype, mark the itype as frozen, to avoid out-of-scope references to
15119 discriminants in the back-end.
15120 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
15121 this subprogram against wrong sources.
15122 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
15123 discriminant of limited type completed with a protected type, when the
15124 discriminant is used to constrain a private component of the type, and
15125 expansion is disabled.
15126 (Find_Type_Of_Object): Do not treat a return subtype that is an
15127 anonymous subtype as a local_anonymous_type, because its accessibility
15128 level is the return type of the enclosing function.
15129 (Check_Initialization): In -gnatg mode, turn the error "cannot
15130 initialize entities of limited type" into a warning.
15131 (OK_For_Limited_Init): Return true for generated nodes, since it
15132 sometimes violates the legality rules.
15133 (Make_Incomplete_Declaration): If the type for which an incomplete
15134 declaration is created happens to be the currently visible entity,
15135 preserve the homonym chain when removing it from visibility.
15136 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
15137 inherited subprograms.
15138 (Access_Definition): If this is an access to function that is the return
15139 type of an access_to_function definition, context is a type declaration
15140 and the scope of the anonymous type is the current one.
15141 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
15142 incomplete subtype to the set of private dependents of the original
15144 (Constrain_Discriminated_Type): Emit an error message whenever an
15145 incomplete subtype is being constrained.
15146 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
15147 corresponding subtype of the full view of the original incomplete type.
15148 (Check_Incomplete): Properly detect invalid usage of incomplete types
15151 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15153 * g-catiio.ads, g-catiio.adb (Value): New function.
15154 Given an input String, try and parse a valid Time value.
15156 2006-10-31 Vincent Celier <celier@adacore.com>
15158 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
15159 Integer_Address arithmetic, as in Set_Valid.
15161 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15162 Robert Dewar <dewar@adacore.com>
15164 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
15165 handling executable extension manually and duplicating code.
15167 * make.adb: Implement new -S switch
15168 (Gnatmake): Use new function Osint.Executable_Name instead
15169 of handling executable extension manually.
15171 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
15172 is specified, the executable name ends with this suffix.
15173 Take advantage of Osint.Executable_Name instead of duplicating code.
15175 * switch-m.adb: Recognize new gnatmake -S switch
15177 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
15179 (Get_Target_Parameters): Set Executable_Extension_On_Target if
15182 * makeusg.adb: Add line for gnatmake -S switch
15184 2006-10-31 Vincent Celier <celier@adacore.com>
15186 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
15187 call it with -static-libgcc, as there are some platforms, such as
15188 Darwin, where one of these two switches is compulsory to link.
15190 2006-10-31 Vincent Celier <celier@adacore.com>
15192 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
15193 instead of ADA_PROJECT_PATH, for the project path.
15194 (Gnatls): When displaying the project path directories, use host dir
15197 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
15198 names in the project path, as absolute paths may correspond to
15199 multi-valued VMS logical names.
15201 2006-10-31 Vincent Celier <celier@adacore.com>
15203 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
15204 absolute path name.
15205 (Locate_Regular_File): Ditto
15206 (Change_Dir): Remove, no longer used
15207 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
15208 on Windows. Get it calling Get_Current_Dir.
15209 (OpenVMS): Remove imported boolean, no longer needed.
15210 (Normalize_Pathname)[VMS]: Do not resolve directory names.
15211 (Pid_To_Integer): New function to convert a Process_Id to Integer
15213 2006-10-31 Thomas Quinot <quinot@adacore.com>
15215 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
15216 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
15218 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
15221 2006-10-31 Robert Dewar <dewar@adacore.com>
15223 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
15224 initial letter o as a zero.
15226 2006-10-31 Robert Dewar <dewar@adacore.com>
15228 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
15230 2006-10-31 Robert Dewar <dewar@adacore.com>
15232 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
15234 (Layout_Variant_Record): Retrieve the discriminants from the entity
15235 rather than from the type definition, because in the case of a full
15236 type for a private type we need to take the discriminants from the
15238 (Layout_Component_List): When applying the Max operator to variants with
15239 a nonstatic size, check whether either operand is static and scale that
15240 operand from bits to storage units before applying Max.
15241 (Layout_Type): In VMS, if a C-convention access type has no explicit
15242 size clause (and does not inherit one in the case of a derived type),
15243 then the size is reset to 32 from 64.
15245 2006-10-31 Vincent Celier <celier@adacore.com>
15247 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
15248 its file has already been loaded, according to the unit being loaded,
15249 not to the current value of Multiple_Unit_Index.
15251 2006-10-31 Thomas Quinot <quinot@adacore.com>
15252 Eric Botcazou <ebotcazou@adacore.com>
15253 Arnaud Charlet <charlet@adacore.com>
15255 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
15256 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
15258 (a-except.o): Pass it to the compiler.
15259 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
15260 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
15261 a-calend-mingw.adb version.
15263 * Makefile.rtl: Added s-dsaser.
15264 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
15265 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
15266 Ada.Dispatching.Round_Robin.
15267 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
15269 * Make-lang.in: Remove all references to gt-ada-decl.h.
15270 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
15272 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
15273 Update dependencies.
15275 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
15277 2006-10-31 Vincent Celier <celier@adacore.com>
15279 * mlib-utl.adb (Initialized): Remove, no longer used
15280 (Initialize): Remove, no longer used
15281 (Ar): If Ar_Exec is null, get the location of the archive builder and,
15282 if there is one, the archive indexer. Fail if the archive builder cannot
15284 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
15287 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15289 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
15290 Process_Body_Clauses): If the context of a body includes a use clause
15291 for P.Q then a with_clause for P in the same body is not redundant,
15292 even if the spec also has a with_clause on P.
15293 Add missing continuation mark to error msg
15294 (Build_Limited_Views): A limited view of a type is tagged if its
15295 declaration includes a record extension.
15296 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
15297 node, even if the subunit has errors. This avoids malfunction by
15298 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
15299 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
15300 generation of obsolescent messages for with statements (cannot do
15301 this too early, or we cannot implement avoiding the messages in the
15302 case of obsolescent units withing obsolescent units).
15303 (Install_Siblings): If the with_clause is on a remote descendant of
15304 an ancestor of the current compilation unit, find whether there is
15305 a sibling child unit that is immediately visible.
15306 (Remove_Private_With_Clauses): New procedure, invoked after completing
15307 the analysis of the private part of a nested package, to remove from
15308 visibility the private with_clauses of the enclosing package
15310 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
15311 now centralized in Generate_Reference.
15312 (Install_Limited_Context_Clauses): Remove superfluous error
15313 message associated with unlimited view visible through use
15314 and renamings. In addition, at the point in which the error
15315 is reported, we add the backslash to the text of the error
15316 to ensure that it is reported as a single error message.
15317 Use new // insertion for some continuation messages
15318 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
15319 to create implicit with_clause for parent unit mentioned in original
15320 limited_with_clause.
15321 (Install_Limited_With_Unit): Set entity of parent identifiers if the
15322 unit is a child unit. For ASIS queries.
15323 (Analyze_Subunit): If the subunit appears within a child unit, make all
15324 ancestor child units directly visible again.
15326 2006-10-31 Robert Dewar <dewar@adacore.com>
15328 * par-ch10.adb (P_Context_Clause): Minor error message fix
15330 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15331 Javier Miranda <miranda@adacore.com>
15333 * par-ch12.adb: Grammar update and cleanup.
15334 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
15335 support for synchronized derived type definitions.
15336 Add the new actual Abstract_Present to every call to
15337 P_Interface_Type_Definition.
15338 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
15339 a formal object declaration with an access definition or a subtype mark
15340 with a null exclusion.
15341 (P_Generic_Association): Handle association with box, and others_choice
15342 with box, to support Ada 2005 partially parametrized formal packages.
15344 2006-10-31 Robert Dewar <dewar@adacore.com>
15345 Javier Miranda <miranda@adacore.com>
15347 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
15348 (P_Type_Declaration): Remove barrier against the reserved word "limited"
15349 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
15350 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
15351 private extensions.
15352 (P_Type_Declaration): Add the new actual Abstract_Present to every call
15353 to P_Interface_Type_Definition.
15354 (P_Interface_Type_Definition): Addition of one formal to report an error
15355 if the reserved word abstract has been previously found.
15356 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
15357 object renaming declaration with an access definition or subtype mark
15358 with a possible null exclusion.
15360 * par-ch9.adb: Minor error msg fix
15362 * par-load.adb: Add missing continuation mark to error msg
15364 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
15366 2006-10-31 Vincent Celier <celier@adacore.com>
15368 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
15369 unknown attribute in unknown package or in package that does not need
15371 (Parse_Package_Declaration): Do not issue warning for unknown package in
15374 2006-10-31 Vincent Celier <celier@adacore.com>
15376 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
15377 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
15380 2006-10-31 Vincent Celier <celier@adacore.com>
15382 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
15383 on VMS, change "__" to '.' before checking the name.
15384 (Record_Ada_Source): Always add the source file name in the list of
15385 of sources, even if it is not the first time, as it is for another
15387 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
15388 dot, instead of replacing only the first '_'.
15390 * prj-part.adb (Parse): Convert project file path to canonical form
15392 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
15393 extended, the project id of the project extending it is recorded in its
15394 data, even when it has already been processed as an imported project.
15396 2006-10-31 Robert Dewar <dewar@adacore.com>
15398 * repinfo.adb (List_Entities): Don't list entities from renaming
15401 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15402 Robert Dewar <dewar@adacore.com>
15404 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
15405 only a restriction warning is active for the given restriction. This is
15406 desirable because we do not want to modify code in the case where only
15408 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
15409 causes overriding of real restrictions.
15410 Take advantage of new No_Restrictions constant.
15412 * raise.h: (__gnat_set_globals): Change profile.
15414 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15416 * rtsfind.adb: Remove s-polint from comment as it exists no more.
15419 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
15420 Move all the entities in obsolete package System.PolyORB_Interface to
15421 System.Partition_Interface.
15422 (RE_Storage_Size): New function in System.Tasking.
15423 (RE_Get_Ceiling): New entity.
15424 (RE_Set_Ceiling): New entity.
15425 (RO_PE_Get_Ceiling): New entity.
15426 (RO_RE_Set_Ceiling): New entity.
15427 (Inherit_CPP_DT): New entity
15429 2006-10-31 Robert Dewar <dewar@adacore.com>
15431 * scng.adb (Scan, case of numeric literal): Better msg for identifier
15432 starting with a digit.
15434 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15435 Thomas Quinot <quinot@adacore.com>
15436 Javier Miranda <miranda@adacore.com>
15437 Gary Dismukes <dismukes@adacore.com>
15439 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
15440 properly an attempt to apply Unchecked_Access to a protected operation.
15441 (OK_Self_Reference): New subprogram to check the legality of an access
15442 attribute whose prefix is the type of an enclosing aggregate.
15443 Generalizes previous mechanism to handle attribute references nested
15444 arbitrarily deep within the aggregate.
15445 (Analyze_Access_Attribute): An access attribute whose prefix is a type
15446 can appear in an aggregate if this is a default-initialized aggregate
15447 for a self-referential type.
15448 (Resolve_Attribute, case Access): Ditto.
15449 Add support for new implementation defined attribute Stub_Type.
15450 (Eval_Attribute, case Attribute_Stub_Type): New case.
15451 (Analyze_Attribute, case Attribute_Stub_Type): New case.
15452 (Stream_Attribute_Available): Implement using new subprogram from
15453 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
15454 Has_Specified_Stream_Attribute flag.
15455 Disallow Storage_Size and Storage_Pool for access to subprogram
15456 (Resolve_Attribute, case 'Access et al): Take into account anonymous
15457 access types of return subtypes in extended return statements. Remove
15458 accessibility checks on anonymous access types when Unchecked_Access is
15460 (Analyze_Attribute): Add support for the use of 'Class to convert
15461 a class-wide interface to a tagged type.
15462 Add support for the attribute Priority.
15463 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
15464 whether the designated type is discriminated with a constrained partial
15465 view and require static matching in that case.
15466 Add local variable Des_Btyp. The Designated_Type
15467 of an access to incomplete subtype is either its non-limited view if
15468 coming from a limited with or its etype if regular incomplete subtype.
15470 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
15471 Fix predicate to identify and allow cases of (expander-generated)
15472 references to tag of designated object of a RACW.
15473 (Validate_Static_Object_Name): In Ada 2005, a formal object is
15474 non-static, and therefore cannot appear as a primary in a preelaborable
15476 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
15477 Has_Read_Write_Attributes.
15478 (Has_Read_Write_Attributes): Reimplement in termes of
15479 Has_Stream_Attribute_Definition.
15480 (Missing_Read_Write_Attributes): When checking component types in a
15481 record, unconditionally call Missing_Read_Write_Attributes recursively
15482 (remove guard checking for Is_Record_Type / Is_Access_Type).
15484 2006-10-31 Robert Dewar <dewar@adacore.com>
15486 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
15487 useless assignments here and conditionalize it on absence of exception
15489 (Analyze_Exception_Handlers): Small code reorganization of error
15490 detection code, for new handling of formal packages.
15492 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15493 Hristian Kirtchev <kirtchev@adacore.com>
15495 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
15496 that has been constant-folded, preserve information of original tree,
15498 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
15499 generated private extension declaration if the formal derived type is
15500 synchronized. Carry synchronized present over to the generated private
15502 (Validate_Derived_Type_Instance): Ensure that the actual of a
15503 synchronized formal derived type is a synchronized tagged type.
15504 (Instantiate_Formal_Package): When creating the instantiation used to
15505 validate the actual package of a formal declared without a box, check
15506 whether the formal itself depends on a prior actual.
15507 (Instantiate_Formal_Subprogram): Create new entities for the defining
15508 identifiers of the formals in the renaming declaration, for ASIS use.
15509 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
15510 a renaming declaration or a subtype declaration for an actual in an
15511 instance, capture location information of declaration in generic, for
15513 (Instantiate_Formal_Package): Add comments on needed additional tests.
15514 AI-317 (partial parametrization) is fully implemented.
15515 (Validate_Private_Type_Instance): Add check for actual which
15516 must have preelaborable initialization
15517 Use new // insertion for some continuation messages
15518 (Analyze_Formal_Object_Declaration): Change usage of Expression to
15519 Default_Expression. Add type retrieval when the declaration has an
15520 access definition. Update premature usage of incomplete type check.
15521 (Check_Access_Definition): New subsidiary routine. Check whether the
15522 current compilation version is Ada 05 and the supplied node has an
15524 (Instantiate object): Alphabetize local variables. Handle the creation
15525 of new renaming declarations with respect to the kind of definition
15526 used - either an access definition or a subtype mark. Guard against
15527 unnecessary error message in the context of anonymous access types after
15528 they have been resolved. Add check for required null exclusion in a
15529 formal object declaration.
15530 (Switch_View): A private subtype of a non-private type needs to be
15531 switched (the base type can have been switched without its private
15532 dependents because of the last branch of Check_Private_View.
15533 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
15535 (Instantiate_Type): Emit an error message whenever a class-wide type of
15536 a tagged incomplete type is used as a generic actual.
15537 (Find_Actual_Type): Extend routine to handle a component type in a child
15538 unit that is imported from a formal package in a parent.
15539 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
15540 agree on constrainedness, rather than checking against ultimate ancestor
15541 (Instantiate_Subprogram_Body): Create a cross-reference link to the
15542 generic body, for navigation purposes.
15544 2006-10-31 Robert Dewar <dewar@adacore.com>
15545 Thomas Quinot <quinot@adacore.com>
15547 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
15549 (New_Stream_Subprogram): When processing an attribute definition clause
15550 for a stream-oriented subprogram, record an entity node occurring at
15551 the point of clause to use for checking the visibility of the clause,
15552 as defined by 8.3(23) as amended by AI-195.
15553 (New_Stream_Subprogram): New procedure, factoring behaviour from both
15554 New_Stream_Function and New_Stream_Procedure.
15555 (New_Stream_Function, New_Stream_Procedure): Removed.
15556 (Analyze_Attribute_Definition_Clause, case Address): Check new
15557 Alignment_Check check
15559 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15560 Javier Miranda <miranda@adacore.com>
15561 Robert Dewar <dewar@adacore.com>
15563 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
15564 generate the same errors compiling under -gnatc.
15565 (Try_Object_Operation): If no candidate interpretation succeeds, but
15566 there is at least one primitive operation with the right name, report
15567 error in call rather than on a malformed selected component.
15568 (Analyze_Selected_Component): If the prefix is an incomplete type from
15569 a limited view, and the full view is available, use the full view to
15570 determine whether this is a prefixed call to a primitive operation.
15571 (Operator_Check): Verify that a candidate interpretation is a binary
15572 operation before checking the type of its second formal.
15573 (Analyze_Call): Add additional warnings for function call contexts not
15575 (Analyze_Allocator): Move the check for "initialization not allowed for
15576 limited types" after analyzing the expression. This is necessary,
15577 because OK_For_Limited_Init looks at the structure of the expression.
15578 Before analysis, we don't necessarily know what sort of expression it
15579 is. For example, we don't know whether F(X) is a function call or an
15580 indexed component; the former is legal in Ada 2005; the latter is not.
15581 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
15582 were missing. We also didn't handle qualified expressions. Now also
15583 allow function calls. Use new common routine OK_For_Limited_Init.
15584 (Analyze_Type_Conversion): Do not perform some legality checks in an
15585 instance, because the error message will be redundant or spurious.
15586 (Analyze_Overloaded_Selected_Component): Do not do style check when
15587 setting an entity, since we do not know it is the right entity yet.
15588 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
15589 (Analyze_Overloaded_Selected_Component): Same change
15590 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
15591 since regular incomplete subtypes are transformed into corresponding
15592 subtypes of their full views.
15593 (Complete_Object_Operation): Treat name of transformed subprogram call
15594 as coming from source, for browsing purposes.
15595 (Try_Primitive_Operation): If formal is an access parameter, compare
15596 with base type of object to determine whether it is a primitive
15598 (Operator_Check): If no interpretation of the operator matches, check
15599 whether a use clause on any candidate might make the operation legal.
15600 (Try_Class_Wide_Operation): Check whether the first parameter is an
15601 access type whose designated type is class-wide.
15603 2006-10-31 Robert Dewar <dewar@adacore.com>
15604 Ed Schonberg <schonberg@adacore.com>
15605 Gary Dismukes <dismukes@adacore.com>
15607 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
15608 warn on infinite loops.
15609 Add \\ to some continuation messages
15610 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
15611 (Process_Bounds): If the bounds are integer literals that result from
15612 constant-folding, and they carry a user-defined type, preserve that type
15613 rather than treating this as an integer range.
15614 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
15615 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
15616 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
15617 left hand side of assignment.
15618 (Analyze_Assignment): Add suport to manage assigments to the attribute
15619 priority of a protected object.
15620 (Check_Possible_Current_Value_Condition): Allow fully qualified names
15621 not just identifiers.
15622 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
15623 or AND THEN for possible tracking.
15624 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
15625 case of while loops so we can track values in the loop body.
15627 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15628 Hristian Kirtchev <kirtchev@adacore.com>
15629 Bob Duff <duff@adacore.com>
15631 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
15632 procedure cannot be a protected operation (it is a basic_declaration,
15633 not a subprogram_declaration).
15634 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
15635 Subp. Add logic for entry processing.
15636 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
15637 Determine whether an entry or subprogram of a protected or task type
15638 override an inherited primitive of an implemented interface.
15639 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
15640 Update the actual used in calls to Check_Overriding_Indicator.
15641 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
15642 generate the proper reference to the parent unit, for cross-reference.
15643 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
15645 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15646 (Add_Extra_Formal): Revise procedure to allow passing in associated
15647 entity, scope, and name suffix, and handle setting of the new
15648 Extra_Formals field.
15649 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
15650 pass new parameters. Add support for adding the new extra access formal
15651 for functions whose calls are treated as build-in-place.
15652 (Analyze_A_Return_Statement): Correct casing in error message.
15653 Move Pop_Scope to after Analyze_Function_Return, because an extended
15654 return statement really is a full-fledged scope. Otherwise, visibility
15655 doesn't work right. Correct use of "\" for continuation messages.
15656 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
15657 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
15658 the node doesn't get properly marked as analyzed.
15659 (Analyze_Subprogram_Body): If subprogram is a function that returns
15660 an anonymous access type that denotes a task, build a Master Entity
15662 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
15663 proper usage of null exclusion in a result definition.
15664 (Process_Formals): Code cleanup and new error message.
15665 (Process_Formals): Detect incorrect application of null exclusion to
15667 (Conforming_Types): Handle conformance between [sub]types and itypes
15668 generated for entities that have null exclusions applied to them.
15669 (Maybe_Primitive_Operation): Add an additional type retrieval when the
15670 base type is an access subtype. This case arrises with null exclusions.
15671 (New_Overloaded_Entity): Do not remove the overriden entity from the
15672 homonym chain if it corresponds with an abstract interface primitive.
15673 (Process_Formals): Replace membership test agains Incomplete_Kind with a
15674 call to the synthesized predicate Is_Incomplete_Type.
15675 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
15677 (Analyze_Subprogram_Declaration): Check that abstract interface
15678 primitives are abstract or null.
15679 (Analyze_Subprogram_Specification): Remove previous check for abstract
15680 interfaces because it was not complete.
15681 (Has_Interface_Formals): Removed.
15683 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15684 Javier Miranda <miranda@adacore.com>
15686 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
15687 of Analyze_Package_Body, to create Itype references for anonymous
15688 access types created in the package declaration, whose designated types
15689 may have only a limited view.
15690 (Analyze_Package_Specification): For the private part of a nested
15691 package, install private_with_clauses of enclosing compilation unit if
15692 we are in its visible part.
15693 (Declare_Inherited_Private_Subprograms): Complete barrier
15694 to ensure that the primitive operation has an alias to some parent
15695 primitive. This is now required because, after the changes done for the
15696 implementation of abstract interfaces, the contents of the list of
15697 primitives has entities whose alias attribute references entities of
15698 such list of primitives.
15699 (Analyze_Package_Specification): Simplify code that handles parent units
15700 of instances and formal packages.
15701 (Uninstall_Declarations): Check the convention consistency among
15702 primitive overriding operations of a tagged record type.
15704 2006-10-31 Robert Dewar <dewar@adacore.com>
15705 Hristian Kirtchev <kirtchev@adacore.com>
15706 Javier Miranda <miranda@adacore.com>
15707 Ed Schonberg <schonberg@adacore.com>
15709 * sem_ch8.adb: Minor error msg rewording
15710 (Undefined): When checking for misspellings, invert arguments (to get
15711 expected and found set right)
15712 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
15713 (Analyze_Generic_Renaming): Same fix
15714 (Use_One_Package): Do not take into account the internal entities of
15715 abstract interfaces during the analysis of entities that are marked
15716 as potentially use-visible.
15717 (Find_Type): Handle the case of an attribute reference for
15718 implementation defined attribute Stub_Type (simply let the analysis of
15719 the attribute reference rewrite it).
15720 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
15721 type that appears in a Use_Type clause.
15722 (Analyze_Object_Renaming): Add support for renaming of the Priority
15724 (Find_Type): In Ada 2005, a task type can be used within its own body,
15725 when it appears in an access definition.
15726 (Analyze_Object_Renaming): Remove warning on null_exclusion.
15727 (Analyze_Object_Renaming): Introduce checks for required null exclusion
15728 in a formal object declaration or in a subtype declaration.
15729 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
15730 (Check_Null_Exclusion): New local routine to
15731 Analyze_Subprogram_Renaming. Check whether the formals and return
15732 profile of a renamed subprogram have required null exclusions when
15733 their counterparts of the renaming already impose them.
15734 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
15735 Determine whether an entity is inside a generic scope.
15736 (In_Open_Scope): First pass of documentation update.
15737 (Find_Expanded_Name): Add support for shadow entities associated with
15738 limited withed packages. This is required to handle nested packages.
15739 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
15740 that makes a renaming of a limited withed package illegal.
15742 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15743 Ed Schonberg <schonberg@adacore.com>
15745 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
15746 Check_Overriding_Indicator.
15747 (Analyze_Task_Definition): Ditto.
15748 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
15749 (Check_Overriding_Indicator): To find overridden interface operation,
15750 examine only homonyms that have an explicit subprogram declaration, not
15751 inherited operations created by an unrelated type derivation.
15752 (Check_Overriding_Indicator): When checking for the presence of "null"
15753 in a procedure, ensure that the queried node is a procedure
15755 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
15756 type when the formal is an access to variable.
15757 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
15758 (Analyze_Task_Type): Same addition
15759 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
15760 provide navigation capabilities for entries.
15762 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15763 Ed Schonberg <schonberg@adacore.com>
15764 Javier Miranda <miranda@adacore.com>
15765 Gary Dismukes <dismukes@adacore.com>
15767 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
15768 inherited from an interface ancestor by another interface in the
15769 context of an instance as 'late'.
15770 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
15771 of a call to a function that dispatches on access result.
15772 (Check_Dispatching_Operation): In case of late overriding of a primitive
15773 that covers abstract interface subprograms we register it in all the
15774 secondary dispatch tables associated with abstract interfaces.
15775 (Check_Dispatching_Call): Add check that a dispatching call is not made
15776 to a function with a controlling result of a limited type. This is a
15777 current implementation restriction.
15778 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
15779 (Check_Dispatching_Operation): Do no emit a warning if the controlling
15780 argument is an interface type that is a generic formal.
15781 (Is_Interface_Subprogram): Removed.
15782 (Check_Dispatching_Operation): If the subprogram is not a dispatching
15783 operation, check the formals to handle the case in which it is
15784 associated with an abstract interface type.
15786 2006-10-31 Robert Dewar <dewar@adacore.com>
15787 Ed Schonberg <schonberg@adacore.com>
15789 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
15790 Add new calls to this procedure during traversal
15791 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
15792 another unit if expansion is disabled.
15794 2006-10-31 Robert Dewar <dewar@adacore.com>
15796 * sem_eval.adb (Compile_Time_Compare): Make use of information from
15797 Current_Value in the conditional case, to evaluate additional
15798 comparisons at compile time.
15800 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15801 Hristian Kirtchev <kirtchev@adacore.com>
15802 Javier Miranda <miranda@adacore.com>
15804 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
15805 subprogram type to provide better diagnostics in case of ambiguity.
15806 (Covers): Handle coverage of formal and actual anonymous access types in
15807 the context of generic instantiation.
15808 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
15809 abstract interface types; this is required to handle concurrent types
15810 with discriminants and abstract interface types.
15811 (Covers): Include type coverage of both regular incomplete subtypes and
15812 incomplete subtypes of incomplete type visibles through a limited with
15815 2006-10-31 Robert Dewar <dewar@adacore.com>
15816 Hristian Kirtchev <kirtchev@adacore.com>
15817 Ed Schonberg <schonberg@adacore.com>
15819 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
15820 messages for entities in packages which are not used.
15821 (Collect_Synchronized_Interfaces): New procedure.
15822 (Overrides_Synchronized_Primitive): New function.
15823 (Denotes_Discriminant): Extend predicate to apply to task types.
15824 Add missing continuation marks in error msgs
15825 (Unqualify): New function for removing zero or more levels of
15826 qualification from an expression. There are numerous places where this
15827 ought to be used, but we currently only deal properly with zero or one
15829 (In_Instance); The analysis of the actuals in the instantiation of a
15830 child unit is not within an instantiation, even though the parent
15831 instance is on the scope stack.
15832 (Safe_To_Capture_Value): Exclude the case of variables that are
15834 (Check_Obsolescent): Removed
15835 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
15836 is an aliased view, even when rewritten as a reference to the target
15837 object in an assignment.
15838 (Get_Subprogram_Entity): New function
15839 (Known_To_Be_Assigned): New function
15840 (Type_Access_Level): Compute properly the access level of a return
15841 subtype that is an anonymous access type.
15842 (Explain_Limited_Type): Correct use of "\" for continuation messages.
15843 (Is_Transfer): The new extended_return_statement causes a transfer of
15845 (Has_Preelaborable_Initialization): New function
15846 (Has_Null_Exclusion): New function. Given a node N, determine whether it
15847 has a null exclusion depending on its Nkind.
15848 Change Is_Lvalue to May_Be_Lvalue
15849 (May_Be_Lvalue): Extensive additional code to deal with subprogram
15850 arguments (IN parameters are not Lvalues, IN OUT parameters are).
15851 (Safe_To_Capture_Value): Extend functionality so it can be used for
15852 the current value condition case.
15853 (Has_Compatible_Alignment): New function
15854 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
15855 objects to handle the Ada 2005 case, where aliasedness no longer implies
15856 that the object is constrained. In particular, for dereferenced names,
15857 the designated object must be assumed to be unconstrained.
15858 (Kill_Current_Values): Properly deal with the case where we encounter
15859 a loop in the scope chain.
15860 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
15862 (Compile_Time_Constraint_Error): Improve error message in error case
15864 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
15865 associated with entities of abstract interface primitives.
15866 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
15868 2006-10-31 Robert Dewar <dewar@adacore.com>
15870 * s-osinte-tru64.adb:
15871 Mark Asm statements Volatile to prevent warnings (seems a
15872 reasonable change anyway)
15875 * s-mastop-irix.adb: Add Volatile to Asm statements
15876 Suppresses warning, and seems appropriate in any case
15878 * s-osinte-vms.adb: Add Volatile to Asm statement
15880 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
15882 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
15884 Add call to Check_Code_Statement
15886 2006-10-31 Robert Dewar <dewar@adacore.com>
15887 Ed Schonberg <schonberg@adacore.com>
15888 Bob Duff <duff@adacore.com>
15890 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
15891 Synchronized_Present): Add Formal_Derived_Type_Definition and
15892 Private_Extension_Declaration to the list of assertions.
15893 (Is_Entry_Barrier_Function): New flag
15894 (Has_Self_Reference): New flag on aggregates, to indicate that they
15895 contain a reference to the enclosing type, inserted through a default
15897 (Next_Rep_Item): Move from Node4 to Node5.
15898 (Entity): Add this field for N_Attribute_Definition_Clause.
15899 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
15900 (N_Return_Object_Declaration): Remove this node kind. We now use
15901 N_Object_Declaration instead.
15902 (Actual_Designated_Subtype): Move to a different place to make room in
15903 N_Extended_Return_Statement.
15904 (Procedure_To_Call): Move to a different place to make room in
15905 N_Extended_Return_Statement.
15906 (Return_Type): Removed this field to make room in return statements
15908 (Return_Statement_Entity): New field in return statements, in part to
15909 replace Return_Type, and in part to support the fact that return
15910 statements are now pushed on the scope stack during semantic analysis.
15911 (Return_Object_Declarations): New field to support extended return
15913 (N_Extended_Return_Statement): New node for extended_return_statement
15915 (N_Return_Object_Declaration): New node for part of
15916 extended_return_statement nonterminal. Needed because all the necessary
15917 fields won't fit in N_Extended_Return_Statement.
15918 Generic_associations now carry the Box_Present flag, to indicate a
15919 default for an actual in a partially parametrized formal package.
15921 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
15922 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
15923 and for the new predefined dispatching policies: EDF_Across_Priorities,
15924 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
15925 Introduce new name Stub_Type for implementation defined attribute.
15926 Add pragma Preelaborable_Initialization
15927 Add entry for Priority attribute.
15928 Add Pragma_Wide_Character_Encoding
15929 (Get_Convention_Name): Given a convention id, this function returns the
15930 corresponding name id from the names table.
15932 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15933 Robert Dewar <dewar@adacore.com>
15934 Bob Duff <duff@adacore.com>
15936 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
15937 print null exclusion twice in the case of an access definition,
15938 Implement new -gnatL switch
15939 Remove N_Return_Object_Declaration. We now use
15940 N_Object_Declaration instead. Implement the case for
15941 N_Extended_Return_Statement. Alphabetize the cases.
15942 Add cases for new nodes N_Extended_Return_Statement and
15943 N_Return_Object_Declaration. The code is not yet written.
15944 Update the output for N_Formal_Object_Declaration
15945 and N_Object_Renaming_Declaration.
15946 (Write_Itype): Account for the case of a modular integer subtype whose
15947 base type is private.
15949 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15951 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
15952 Remove elaboration code, now done in the binder.
15954 * s-rident.ads: Make this unit Preelaborate.
15955 (No_Restrictions): New constant used to clean up code and follow
15956 preelaborate constraints.
15959 Add System.Restrictions dependence, referenced directly from the
15960 binder generated file.
15962 2006-10-31 Gary Dismukes <dismukes@adacore.com>
15964 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
15965 True when AAMP extended floating-point is in use (48-bit). Change type
15966 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
15967 the two byte array types on AFloat. Change type of IV_Ilf overlay
15968 variable from Byte8 to ByteLF. Add appropriate initializations of
15969 floating-point overlays for AAMP cases.
15971 2006-10-31 Javier Miranda <miranda@adacore.com>
15973 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
15974 (Get_Ceiling): New subprogram that returns
15975 the ceiling priority of the protected object.
15976 (Set_Ceiling): New subprogram that sets the new ceiling priority of
15977 the protected object.
15979 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
15981 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
15983 2006-10-31 Jose Ruiz <ruiz@adacore.com>
15985 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
15986 requeuing to the same protected object to give higher priority tasks
15987 the opportunity to execute.
15989 2006-10-31 Robert Dewar <dewar@adacore.com>
15991 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
15992 add more precise check for the character sequence that follows '[' to
15993 avoid possible confusion in case if '[' is the last character of a
15995 (Scan_Wide): Always allow brackets encoding
15997 2006-10-31 Olivier Hainque <hainque@adacore.com>
15999 * s-stchop.ads: make this unit preelaborate. This is desirable in
16000 general and made mandatory by the use of this unit by s-taprop which
16001 is itself preelaborate.
16003 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
16004 Td_Events component.
16006 2006-10-31 Vincent Celier <celier@adacore.com>
16008 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
16011 2006-10-31 Vincent Celier <celier@adacore.com>
16013 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
16015 2006-10-31 Vincent Celier <celier@adacore.com>
16017 * makegpr.adb (Check_Compilation_Needed): Take into account path names
16019 (Check_Compilation_Needed): When checking a C or C++ source, do not
16020 resolve symbolic links.
16021 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
16022 When not in verbose mode and Ellipse is True, display "..." for the
16023 first argument with Display set to False.
16024 (Build_Global_Archive): Always set Display True for the first object
16025 file. Call Display_Command with Ellipse set to True.
16027 2006-10-31 Matt Heaney <heaney@adacore.com>
16029 * a-crbtgo.ads: Commented each subprogram
16031 * a-crbtgo.adb: Added reference to book from which algorithms were
16034 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
16035 indicate which child.
16036 (Generic_Conditional_Insert): changed parameter name from "Success" to
16038 (Generic_Unconditional_Insert_With_Hint): improved algorithm
16040 * a-coorse.adb (Replace_Element): changed parameter name in call to
16041 conditional insert operation.
16043 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
16045 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
16048 * a-ciorse.adb (Replace_Element): changed parameter name in call to
16049 conditional insert operation.
16051 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
16054 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
16055 instead of mode inout.
16057 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
16059 (Generic_Read): preserve existing buckets array if possible
16060 (Generic_Write): don't send buckets array length anymore
16062 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
16063 instead of mode inout.
16065 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
16066 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16068 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
16069 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16070 (Replace_Element): local operation is now an instantiation
16072 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
16073 check current length.
16074 (Generic_Replace_Element): new operation
16076 2006-10-31 Doug Rupp <rupp@adacore.com>
16078 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
16079 Call TBK$SYMBOLIZE without omitting parameters.
16081 2006-10-31 Vincent Celier <celier@adacore.com>
16083 * symbols-processing-vms-ia64.adb,
16084 symbols-processing-vms-alpha.adb (Process): Do not include symbols
16085 that come from generic instantiations in bodies.
16087 2006-10-31 Pat Rogers <rogers@adacore.com>
16089 * a-rttiev.ads, a-rttiev.adb:
16090 This is a significant redesign primarily for the sake of automatic
16091 timer task termination but also to fix a design flaw.
16092 Therefore we are now using an RTS lock, instead of a protected
16093 object, to provide mutual exclusion to the queue of pending events
16094 and the type Timing_Event is no longer a protected type.
16096 2006-10-31 Robert Dewar <dewar@adacore.com>
16097 Cyrille Comar <comar@adacore.com>
16098 Ben Brosgol <brosgol@adacore.com>
16100 * debug.adb: Update flags documentation
16102 * gnat_ugn.texi: Add documentation for new -gnatwq switch
16103 Clean up documentation for several other warning switches
16104 Clarify how task stack size can be specified with various
16105 versions of Windows.
16106 Add note that -gnatVo includes ranges including loops
16107 Add documentation for -gnatL switch
16108 Add note on elaboration warning for initializing variables
16109 Add documentation for new -gnatwt warning switch
16110 Document new form of pragma Warnings (On|Off, string)
16111 Add comment on use of pragma Warnings to control warnings
16112 Add documentation for -gnatjnn switch
16113 Modify section on interfacing with C for VMS 64-bit.
16114 Add doc for -gnatVe/E
16115 Add documentation of new warning flags -gnatww/-gnatwW
16116 Add warnings about address clause overlays to list of warnings
16117 (Exception Handling Control): Document that the option --RTS must be
16118 used consistently for gcc and gnatbind.
16119 Clarify that inlining is not always possible
16120 Update documentation on pragma Unchecked_Union.
16123 Add documentation for new extended version of pragma Obsolescent
16124 Add documentation for implementation defined attribute 'Stub_Type.
16125 Add note on use of Volatile in asm statements
16126 Add documentation on use of pragma Unreferenced in context clause
16127 Document new form of pragma Warnings (On|Off, pattern)
16128 Document pragma Wide_Character_Encoding
16129 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
16130 enforced if code generation is active.
16131 Add section on pragma Suppress to document GNAT specific check
16133 Clarify difference between No_Dispatching_Calls & No_Dispatch.
16134 Add documentation for pragma Restrictions (No_Elaboration_Code)
16137 Add comments on layout of subprogram local variables in the
16138 presence of nested subprograms.
16140 * ug_words: Resync.
16142 * elists.ads: Minor reformatting
16143 Node returns Node_Or_Entity_Id (doc change only)
16145 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
16147 * g-arrspl.ads (Create): Update comments.
16149 * sem.ads: Add details on the handling of the scope stack.
16151 * usage.adb: Update documentation.
16153 * validsw.ads, validsw.adb:
16154 Add definition of Validity_Check_Components and implement -gnatVe/E
16156 * vms_data.ads: Add missing VMS qualifiers.
16158 * s-addope.ads: Add documentation on overflow and divide by zero
16160 2006-10-31 Robert Dewar <dewar@adacore.com>
16161 Thomas Quinot <quinot@adacore.com>
16162 Arnaud Charlet <charlet@adacore.com>
16164 * fmap.adb: Put routines in alpha order
16166 * g-boumai.ads: Remove redundant 'in' keywords
16168 * g-cgi.adb: Minor reformatting
16170 * g-cgi.ads: Remove redundant 'in' keywords
16172 * get_targ.adb: Put routines in alpha order
16174 * prj-attr.ads: Minor reformatting
16176 * s-atacco.ads: Minor reformatting
16178 * scn.adb: Put routines in alpha order
16180 * sinput-l.adb: Minor comment fix
16182 * sinput-p.adb: Minor comment fix
16184 * s-maccod.ads: Minor reformatting
16186 * s-memory.adb: Minor reformatting
16188 * s-htable.adb: Fix typo in comment.
16190 * s-secsta.adb: Minor comment update.
16192 * s-soflin.adb: Minor reformatting
16195 Add comment about odd qualification in Storage_Offset declaration
16198 Remove unnecessary 'in' keywords for formal parameters.
16200 * treeprs.adt: Minor reformatting
16202 * urealp.adb: Put routines in alpha order
16204 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
16207 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16209 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
16211 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
16212 workaround as on other platforms.
16214 * g-eacodu-vms.adb: Remove redundant 'in' keywords
16215 * g-expect-vms.adb: Remove redundant 'in' keywords
16217 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
16218 clear error message if the list-of-files file cannot be opened.
16220 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
16221 equality operator is always visible.
16223 * lang.opt: Woverlength-strings: New option.
16226 Update copyright, since nmake.ads and nmake.adb have changed.
16228 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
16229 (Binder_Output_Time_Stamps_Set): removed.
16230 (Old_Binder_Output_Time_Stamp): idem.
16231 (New_Binder_Output_Time_Stamp): idem.
16232 (Recording_Time_From_Last_Bind): idem.
16233 (Recording_Time_From_Last_Bind): Make constant.
16235 * output.ads, output.adb (Write_Str): Allow LF characters
16236 (Write_Spaces): New procedure
16238 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
16240 * inline.adb: Minor reformatting
16242 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16244 * s-mastop-vms.adb: Remove redundant 'in' keywords
16246 * s-osprim-vms.adb: Remove redundant 'in' keywords
16248 * s-trafor-default.adb: Remove redundant 'in' keywords
16250 * 9drpc.adb: Remove redundant 'in' keywords
16252 * s-osinte-mingw.ads: Minor reformatting
16254 * s-inmaop-posix.adb: Minor reformatting
16256 * a-direio.ads: Remove quotes from Compile_Time_Warning message
16258 * a-exexda.adb: Minor code reorganization
16260 * a-filico.adb: Minor reformatting
16262 * a-finali.adb: Minor reformatting
16264 * a-nudira.ads: Remove quote from Compile_Time_Warning message
16266 * a-numeri.ads: Minor reformatting
16268 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
16270 * exp_pakd.ads: Fix obsolete comment
16272 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
16273 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
16274 Probably not a bug, but certainly neater and more efficient.
16276 * a-tienio.adb: Minor reformatting
16278 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
16279 Avoid assuming low bound of string is 1.
16281 * gnatbind.adb: Change Bindusg to package and rename procedure as
16282 Display, which now ensures that it only outputs usage information once.
16283 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
16285 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
16288 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
16290 (Match): Add pragma Assert to ensure that Matches'First is zero
16292 * g-regpat.ads (Match): Document that Matches lower bound must be zero
16294 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
16295 documented preconditions (also kills warnings about bad indexes).
16297 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
16299 (Build_Import_Library): Ditto;
16301 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
16303 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
16305 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
16306 lower bound of choice table is 1.
16308 * sem_case.ads (Analyze_Choices): Document that lower bound of
16311 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
16314 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
16315 and add appropriate Assert pragma to suppress warnings.
16317 * atree.h, atree.ads, atree.adb
16318 Change Elist24 to Elist25
16319 Add definitions of Field28 and Node28
16320 (Traverse_Field): Use new syntactic parent table in sinfo.
16322 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16324 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16326 * exp_tss.adb: Put routines in alpha order
16328 * fe.h: Remove redundant declarations.
16330 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
16332 * utils.c (builtin_function): Rename to gnat_builtin_function.
16333 Move common code to add_builtin_function.
16334 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
16335 gnat_builtin_function.
16336 * gigi.h (builtin_function): Rename to gnat_builtin_function.
16337 Change the signature.
16339 2006-10-16 Brooks Moses <bmoses@stanford.edu>
16341 * Makefile.in: Add TEXI2PDF definition.
16342 * Make-lang.in: Add "ada.pdf" target.
16344 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
16346 * decl.c, utils.c: Fix comment typos.
16347 * utils.c: Fix a typo.
16349 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
16351 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
16352 on "pure" Ada subprograms if SJLJ exceptions are used.
16353 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
16354 on the declaration node of JMPBUF_SAVE.
16355 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
16356 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
16357 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
16359 2006-08-20 Laurent Guerby <laurent@guerby.net>
16362 g-socket.adb (Bind_Socket): Call Set_Address.
16364 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
16367 * decl.c (same_discriminant_p): New static function.
16368 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
16369 subtype and we have discriminants, fix up the COMPONENT_REFs
16370 for the discriminants to make them reference the corresponding
16371 fields of the parent subtype after it has been built.
16373 2006-09-15 Roger Sayle <roger@eyesopen.com>
16376 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
16377 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
16379 2006-09-13 Olivier Hainque <hainque@adacore.com>
16382 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
16383 of a SAVE_EXPR, just make the operand addressable/not-readonly and
16384 let the common gimplifier code make and propagate a temporary copy.
16385 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
16386 out/in-out actuals and defer setting the addressable/readonly bits
16389 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
16392 * decl.c (components_to_record): Defer emitting debug info for the
16393 record type associated with the variant until after we are sure to
16396 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
16399 * gigi.h (gnat_internal_attribute_table): Declare.
16400 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
16401 * utils.c (gnat_internal_attribute_table): New global variable.
16402 (builtin_function): Always call decl_attributes on the builtin.
16403 (handle_const_attribute): New static function.
16404 (handle_nothrow_attribute): Likewise.
16406 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
16408 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
16410 2006-06-23 Olivier Hainque <hainque@adacore.com>
16412 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
16413 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
16415 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
16416 Eric Botcazou <ebotcazou@adacore.com>
16419 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
16420 check-gnat into check-acats.
16422 2006-06-17 Karl Berry <karl@gnu.org>
16424 * gnat-style.texi (@dircategory): Use "Software development"
16425 instead of "Programming", following the Free Software Directory.
16427 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16430 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
16432 2006-06-06 Laurent Guerby <laurent@guerby.net>
16435 mlib-utl.adb: Use Program_Name.
16437 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
16439 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
16440 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
16441 trans.c, utils.c: Fix comment typos. Follow spelling
16443 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
16446 2006-05-19 Nicolas Setton <setton@adacore.com>
16448 * misc.c (gnat_dwarf_name): New function.
16449 (LANG_HOOKS_DWARF_NAME): Define to it.
16451 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
16453 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
16454 (ada/misc.o): Likewise.
16455 (ada/utils.o): Likewise.
16457 2006-04-08 Aurelien Jarno <aurel32@debian.org>
16459 * Makefile.in: Add Ada support for GNU/kFreeBSD.
16460 * s-osinte-kfreebsd-gnu.ads: New file.
16462 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
16464 * Make-lang.in: Rename docdir to gcc_docdir.
16466 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
16468 * gigi.h (get_ada_base_type): Delete.
16469 * utils2.c (get_ada_base_type): Likewise.
16470 * trans.c (convert_with_check): Operate in the real base type.
16472 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16474 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
16476 2006-03-02 Richard Sandiford <richard@codesourcery.com>
16478 * utils.c (create_var_decl): Use have_global_bss_p when deciding
16479 whether to make the decl common.
16481 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
16483 * Make-lang.in (Ada): Remove.
16484 (.PHONY): Remove Ada
16486 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16488 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
16489 aggregate, check the interpretations of the other operand to find one
16490 that may be a boolean array.
16492 (Analyze_Selected_Component): Fix flow-of-control typo in case where
16493 the prefix is a private extension.
16495 2006-02-17 Eric Botcazou <botcazou@adacore.com>
16498 * utils2.c (find_common_type): If both input types are BLKmode and
16499 have the same constant size, keep using the first one.
16501 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
16503 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
16505 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
16507 2006-02-17 Jose Ruiz <ruiz@adacore.com>
16509 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16510 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
16511 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
16512 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
16513 Abort_Defer/Undefer pairs to avoid the possibility of a task being
16514 aborted while owning a lock.
16516 2006-02-17 Javier Miranda <miranda@adacore.com>
16517 Robert Dewar <dewar@adacore.com>
16519 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
16520 through an access to class-wide interface we force the displacement of
16521 the pointer to the allocated object to reference the corresponding
16522 secondary dispatch table.
16523 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
16524 if Long_Shifts are supported on the target, even if 64 bit divides
16525 are not supported (configurable run time mode).
16526 (Expand_N_Type_Conversion): Do validity check if validity checks on
16527 operands are enabled.
16528 (Expand_N_Qualified_Expression): Do validity check if validity checks
16529 on operands are enabled.
16531 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16533 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
16534 must be materialized when the renamed expression is an explicit
16537 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16539 * freeze.adb (Statically_Discriminated_Components): Return false if
16540 the bounds of the type of the discriminant are not static expressions.
16542 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
16543 the bounds of the discriminant type are not static.
16545 2006-02-17 Robert Dewar <dewar@adacore.com>
16547 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
16548 then we close To if it is valid.
16550 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
16552 * init.c (facility_resignal_table): new array
16553 (__gnat_default_resignal_p): enhance default predicate to resignal if
16554 VMS condition has one of the predefined facility codes.
16556 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
16558 * Makefile.in: Use VMS64 specialized versions of several units in
16559 Interfaces.C hierarchy to be compatible with HP C default size choices.
16560 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
16562 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16564 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
16565 instantiation, the corresponding entity is the related_instance of the
16566 wrapper package created for the instance.
16568 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16570 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
16571 the current instance is nested within another instance in a child unit.
16573 2006-02-17 Javier Miranda <miranda@adacore.com>
16574 Ed Schonberg <schonberg@adacore.com>
16576 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
16577 type we cannot inherit the primitive operations; we inherit the
16578 Corresponding_Record_Type (which has the list of primitive operations).
16579 (Check_Anonymous_Access_Types): When creating anonymous access types for
16580 access components, use Rewrite in order to preserve the tree structure,
16582 (Analyze_Object_Declaration): For limited types with access
16583 discriminants with defaults initialized by an aggregate, obtain
16584 subtype from aggregate as for other mutable types.
16585 (Derived_Type_Declaration): If the derived type is a limited interface,
16586 set the corresponding flag (Is_Limited_Record is not sufficient).
16588 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16590 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
16591 to inline a function that returns an unconstrained type, the return
16592 expression must be the first variable declared in the body of the
16595 2006-02-17 Javier Miranda <miranda@adacore.com>
16597 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
16598 abstract interface type, the static analysis is not enough to know if
16599 the interface is implemented or not by the source tagged type. Hence
16600 we must pass the work to the expander to generate the required code to
16601 evaluate the conversion at run-time.
16602 (Resolve_Equality_Op): Do not apply previous
16603 transformation if expansion is disasbled, to prevent anomalies when
16604 locating global references in a generic unit.
16606 2006-02-17 Vincent Celier <celier@adacore.com>
16608 * snames.ads, snames.adb: New standard names for new project attributes:
16609 archive_builder, archive_indexer, compiler_pic_option,
16610 config_body_file_name, config_body_file_name_pattern,
16611 config_file_switches, config_file_unique, config_spec_file_name,
16612 config_spec_file_name_pattern, default_builder_switches,
16613 default_global_compiler_switches, default_language,
16614 dependency_file_kind, global_compiler_switches, include_path,
16615 include_path_file, language_kind, linker_executable_option,
16616 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
16617 roots, runtime_project.
16619 2006-02-17 Matthew Heaney <heaney@adacore.com>
16621 * a-convec.ads, a-convec.adb:
16622 (operator "&"): handle potential overflow for large index types
16623 (Insert): removed Contraint_Error when using large index types
16624 (Insert_Space): removed Constraint_Error for large index types
16625 (Length): moved constraint check from Length to Insert
16627 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
16628 as not null access.
16629 Explicit raise statements now include an exception message.
16630 (operator "&"): handle potential overflow for large index types
16631 (Insert): removed Contraint_Error when using large index types
16632 (Insert_Space): removed Constraint_Error for large index types
16633 (Length): moved constraint check from Length to Insert
16635 2006-02-17 Robert Dewar <dewar@adacore.com>
16637 * s-wchcnv.adb: Document handling of [ on output (we do not change
16638 this to ["5B"] and the new comments say why not.
16641 Add note for -gnatVo that this now includes the cases of type
16642 conversions and qualified expressions.
16643 Add comments on handling of brackets encoding for Text_IO
16645 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
16646 Thomas Quinot <quinot@adacore.com>
16647 Robert Dewar <dewar@adacore.com>
16648 Javier Miranda <miranda@adacore.com>
16650 * expander.adb: Fix typo in comment
16652 * exp_pakd.adb: Fix typo
16653 Minor comment reformatting.
16655 * g-dyntab.adb: Minor reformatting
16657 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
16658 aliased subprograms to look for the abstract interface subprogram.
16660 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
16662 * env.c (__gnat_setenv): Use size_t.
16663 (__gnat_unsetenv): Likewise.
16664 (__gnat_clearenv): Likewise.
16666 2006-02-16 Arnaud Charlet <charlet@adacore.com>
16668 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
16670 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16672 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
16673 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
16674 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
16675 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
16676 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
16677 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
16678 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
16679 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
16680 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
16683 2006-02-13 Jose Ruiz <ruiz@adacore.com>
16685 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
16686 protection against race conditions is not needed.
16687 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
16689 (Set_Specific_Handler): Add mutual exclusive access to the specific
16691 (Specific_Handler): Add mutual exclusive access for retrieving the
16694 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
16697 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
16698 Fall_Back_Handler and Specific_Handler.
16700 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
16701 termination handlers.
16702 Set two different owerflow depending on the maximal stack size.
16704 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
16705 protection against race conditions is not needed when executing the
16706 task termination handler.
16708 2006-02-13 Robert Dewar <dewar@adacore.com>
16710 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
16711 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
16712 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
16713 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
16714 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
16715 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
16716 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
16717 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
16718 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
16719 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
16720 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
16721 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
16722 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
16723 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
16724 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
16725 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
16726 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
16727 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
16728 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
16729 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
16730 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
16731 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
16732 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
16733 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
16734 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
16735 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
16736 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
16737 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
16738 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
16739 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
16740 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
16741 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
16742 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
16743 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
16746 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
16748 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
16749 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
16750 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
16751 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
16752 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
16753 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
16754 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
16755 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
16756 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
16758 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16760 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
16761 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
16762 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
16763 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
16764 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
16765 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
16766 replaced by anonymous access type.
16767 (pthread_sigmask): Now take an access sigset_t
16769 * s-osinte-hpux.ads: Ditto.
16770 (pthread_mutex_t, pthread_cond_t): Update definitions to support
16771 properly 32 and 64 bit ABIs.
16773 2006-02-13 Pascal Obry <obry@adacore.com>
16775 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
16776 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
16777 s-taprop-linux.adb, s-taprop-solaris.adb,
16778 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
16779 adjustement is already done when calling this routine.
16781 2006-02-13 Pascal Obry <obry@adacore.com>
16783 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
16784 table to take advantage of the 16 priority levels available on Windows
16785 2000 and XP. On NT4 there are only 7 priority levels, this is properly
16786 supported by this new mapping.
16788 2006-02-13 Nicolas Setton <setton@adacore.com>
16790 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
16791 (get_encoding): New subprogram. Extracts the encodings from an encoded
16794 2006-02-13 Pascal Obry <obry@adacore.com>
16795 Nicolas Roche <roche@adacore.com>
16796 Arnaud Charlet <charlet@adacore.com>
16798 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
16800 (__gnat_try_lock): Add unicode support by using a specific section on
16802 (__gnat_get_current_dir): Idem.
16803 (__gnat_open_read): Idem.
16804 (__gnat_open_rw): Idem.
16805 (__gnat_open_create): Idem.
16806 (__gnat_create_output_file): Idem.
16807 (__gnat_open_append): Idem.
16808 (__gnat_open_new): Idem.
16809 (__gnat_file_time_name): Idem.
16810 (__gnat_set_file_time_name): Idem.
16811 (__gnat_stat): Idem.
16812 (win32_no_block_spawn): Idem.
16813 (__gnat_locate_exec_on_path): Idem.
16814 (__gnat_opendir): New routine.
16815 (__gnat_closedir): Idem.
16816 (__gnat_readdir): Add new parameter length (pointer to int). Update
16817 implementation to use it and add specific Win32 code for Unicode
16819 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
16820 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
16821 (convert_addresses): Do not define this dummy routine on VMS.
16823 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
16824 runtime Unicode support will be activated.
16825 (S2WS): String to Wide-String conversion. This version just copy a
16826 string in non Unicode version.
16827 (WS2S): Wide-String to String conversion. This version just copy a
16828 string in non Unicode version.
16830 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
16831 (Open): Now import __gnat_opendir from adaint.c.
16832 (Read): Change the implementation to support unicode characters. It is
16833 not possible to use strlen() on Windows as this version supports only
16834 standard ASCII characters. So the length of the directory entry is now
16835 returned from the imported __gnat_readdir routine.
16836 Update copyright notice.
16838 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
16839 (opendir): Moved to adaint.c.
16841 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
16842 (Get_Directory): Fix wrong indexing.
16843 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
16844 __gnat_getenv from env.c
16845 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
16848 * env.h, env.c: New file.
16850 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
16851 adaint.c by __gnat_getenv from env.c
16853 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
16854 adaint.c by __gnat_getenv from env.c
16856 * Make-lang.in: Add env.o in the list of C object needed by gnat1
16858 Update dependencies.
16860 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16861 Olivier Hainque <hainque@adacore.com>
16862 Eric Botcazou <ebotcazou@adacore.com>
16864 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
16866 * gigi.h (value_factor_p): Add prototype and description, now public.
16868 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
16869 promotion for field with rep clause if the associated size was proven
16871 Expand comments describing attempts to use a packable type.
16872 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
16873 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
16874 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
16875 necessary since these are not different types and pointers may
16876 actually designate any subtype in this hierarchy.
16877 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
16878 discriminants but put them into record only if not Unchecked_Union;
16879 pass flag to components_to_record showing Unchecked_Union.
16880 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
16881 components before variants; don't set TYPE_UNCHECKED_UNION_P.
16882 (components_to_record): New argument UNCHECKED_UNION.
16883 Remove special case code for Unchecked_Union and instead use main code
16884 with small changes.
16887 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
16888 variable with the expression being built, only its inner field.
16890 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
16891 emit_sequence_entry_statements.
16892 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
16893 (establish_gnat_vms_condition_handler): Move before
16894 Subprogram_Body_to_gnu.
16895 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
16896 for a subprogram if it has a foreign convention or is exported.
16897 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
16898 substituted for a CONST_DECL.
16899 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
16900 Etype to assoc_to_constructor.
16901 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
16902 discriminants of Unchecked_Union.
16903 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
16904 don't need cluttering preprocessor directives.
16905 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
16906 condition handler as current in the compiled function.
16907 (body_with_handlers_p): New function. Tell whether a given sequence of
16908 statements node is attached to a package or subprogram body and involves
16909 exception handlers possibly nested within inner block statements.
16910 (emit_sequence_entry_statements): New function, to emit special
16911 statements on entry of sequences when necessary. Establish GNAT
16912 condition handler in the proper cases for VMS.
16913 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
16914 emit_sequence_entry_statements.
16916 * utils2.c (find_common_type): If both input types are BLKmode and
16917 have a constant size, use the smaller one.
16918 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
16921 * utils.c (value_factor_p): Make public, to allow uses from other gigi
16923 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
16924 (convert, case UNION_TYPE): Remove special treatment for unchecked
16928 (update_pointer_to): Update variants of pointer types to unconstrained
16929 arrays by attaching the list of fields of the main variant.
16931 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16932 Robert Dewar <dewar@adacore.com>
16934 * a-exexpr.adb, a-exexpr-gcc.adb
16935 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
16936 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
16937 Remove code unused for exception propagation for the compiler itself
16938 from a-except.adb and update to still share separate packages.
16940 * a-except.ads, a-except.adb: Ditto.
16941 Add comments that this version is now used only by the compiler and
16942 other basic tools. The full version that includes the Ada 2005 stuff
16943 is in separate files a-except-2005.ads/adb. The reason is that we do
16944 not want to cause bootstrap problems with compilers not recognizing
16946 Add exception reason code PE_Implicit_Return
16947 Add new exception reason code (Null Exception_Id)
16949 * a-except-2005.adb, a-except-2005.ads: New files.
16951 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
16953 * s-wchcon.adb: New file.
16955 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
16956 (traceback.o deps): Likewise.
16957 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
16958 Activate build of GMEM instrumentation library on VMS targets.
16959 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
16960 Use a-except-2005.ads/adb for all run-time library builds unless
16961 specified otherwise.
16962 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
16963 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
16964 Use s-parame.adb on all native platforms.
16965 Use s-parame-vxworks.adb on all vxworks platforms.
16966 Add env.c env.h in LIBGNAT_SRCS
16967 Add env.o in LIBGNAT_OBJS
16968 (GNATMAKE_OBJS): Remove ctrl_c.o object.
16969 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
16970 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
16971 supports VxWorks 6 RTPs.
16972 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
16973 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
16975 * types.h, types.ads (Terminate_Program): New exception
16976 Add comment on modifying multiple versions of a-except.adb when the
16977 table of exception reasons is modified.
16978 Add exception reason code PE_Implicit_Return
16979 Add new exception reason code (Null Exception_Id)
16981 * clean.adb (Initialize): Get the target parameters before checking
16982 if target is OpenVMS. Move the OpenVMS specific code here from package
16983 body elaboration code.
16985 2006-02-13 Thomas Quinot <quinot@adacore.com>
16986 Vincent Celier <celier@adacore.com>
16987 Robert Dewar <dewar@adacore.com>
16989 * ali-util.adb (Get_File_Checksum): Update to account for change in
16990 profile of Initialize_Scanner.
16992 * gprep.adb (Gnatprep): Update to account for change in profile of
16993 Initialize_Scanner.
16994 (Process_One_File): Same.
16996 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
16997 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
16998 that behaviour using the new Unit information recorded in the source
16999 files table, rather than going through all units every time.
17000 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
17001 (Get_Source_Unit): Same.
17003 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
17004 change in profile of Initialize_Scanner.
17005 (Prepare_To_Preprocess): Same.
17007 * lib.ads: Fix typo in comment (templace -> template).
17009 * prj-part.adb (Parse_Single_Project): Update to account for change in
17010 profile of Initialize_Scanner.
17012 * scn.adb (Initialize_Scanner): Account for change in profile of
17013 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
17014 Also record the association of the given Source_File_Index to the
17015 corresponding Unit_Number_Type.
17017 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
17019 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
17020 Remove Unit formal for generic scanner: this formal
17021 is only relevant to Scn (the scanner instance used to parse Ada source
17022 files), not to other instances. Update comment accordingly.
17023 (Scan): Use new function Snames.Is_Keyword_Name.
17025 * sinfo-cn.adb: Fix typo in comment.
17027 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
17030 * sinput.ads (Source_File_Record): New component Unit, used to capture
17031 the unit identifier (if any) associated to a source file.
17033 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
17034 Unit in Source_File_Record.
17036 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
17037 in profile of Initialize_Scanner.
17039 * scans.adb (Initialize_Ada_Keywords): New procedure
17041 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
17042 Ada keywords in the Namet table, without the need to call
17043 Initialize_Scanner.
17045 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
17046 (Is_Keyword_Name): New function
17048 * snames.ads: Add subtype Configuration_Pragma_Names
17049 Add pragma Ada_2005 (synonym for Ada_05)
17050 (Is_Keyword_Name): New function
17052 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
17054 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17056 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
17059 * a-stwima.adb (To_Set): Add extra check when N = 0.
17061 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
17063 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17065 * s-parame-mingw.adb, s-parame-linux.adb,
17066 s-parame-solaris.adb: Removed, replaced by s-parame.adb
17068 * s-parame-vxworks.ads: Fix typo.
17070 * s-parame-vxworks.adb: New file.
17072 * s-parame.adb: Version now used by all native platforms.
17073 (Default_Stack_Size): Use 2 megs for default stack size and use
17074 __gl_default_stack_size when available.
17075 (Minimum_Stack_Size): Use 12K.
17077 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
17078 (Create_Task): Refine implementation taking advantage of the XP stack
17079 size support. On XP, we now create the thread using the flag
17080 STACK_SIZE_PARAM_IS_A_RESERVATION.
17082 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
17084 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
17085 XP and 0 on older Windows versions.
17087 * interfac-vms.ads: Removed, no longer used.
17089 2006-02-13 Matthew Heaney <heaney@adacore.com>
17091 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
17092 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
17093 a-cohase.adb: All explicit raise statements now include an exception
17096 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
17097 (Update_Element_Preserving_Key): renamed op to just Update_Element.
17098 Explicit raise statements now include an exception message
17100 * a-cihase.ads, a-cohase.ads: Removed comment.
17102 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
17103 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
17104 a-szbzha.adb, a-szfzha.ads: New files.
17106 2006-02-13 Matthew Heaney <heaney@adacore.com>
17108 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
17111 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
17113 * lang.opt: Wvariadic-macros: New option.
17114 Wold-style-definition: Likewise.
17115 Wmissing-format-attribute: Likewise.
17117 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
17118 -Wold-style-definition and -Wmissing-format-attribute.
17120 2006-02-13 Robert Dewar <dewar@adacore.com>
17122 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
17124 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
17126 2006-02-13 Nicolas Roche <roche@adacore.com>
17128 * a-envvar.adb, a-envvar.ads: New files.
17130 2006-02-13 Douglas Rupp <rupp@adacore.com>
17132 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
17134 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
17136 2006-02-13 Pat Rogers <rogers@adacore.com>
17138 * a-rttiev.adb, a-rttiev.ads: New files.
17140 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17142 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
17143 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
17145 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
17147 2006-02-13 Robert Dewar <dewar@adacore.com>
17149 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
17150 sem_case.adb: Minor code reorganization (not Present should be No)
17152 2006-02-13 Geert Bosch <bosch@adacore.com>
17153 Gary Dismukes <dismukes@adacore.com>
17155 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
17156 0, since the lower bound of the actual string may be greater than one.
17159 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
17160 layout is requested.
17162 2006-02-13 Vincent Celier <celier@adacore.com>
17164 * back_end.adb (Scan_Compiler_Arguments): Check if
17165 Search_Directory_Present is True and, if it is, add the argument in
17166 the source search directory path.
17168 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
17169 Search_Directory_Present to True.
17171 2006-02-13 Joel Brobecker <brobecke@adacore.com>
17173 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
17174 volatile, to tell the compiler to preserve this variable at any level
17176 (Gen_Versions_Ada): Temporarily work around codegen bug.
17178 2006-02-13 Vincent Celier <celier@adacore.com>
17180 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
17181 gcc to link with option -shared-libgcc.
17182 (Gnatlink): Remove duplicate switches -shared-libgcc
17184 2006-02-13 Robert Dewar <dewar@adacore.com>
17186 * gnatvsn.ads (Current_Year): New constant, used to easily update
17187 copyright on all GNAT tools.
17189 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
17192 2006-02-13 Robert Dewar <dewar@adacore.com>
17194 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
17195 after hyphen (small aesthetic change useful for a range of numbers
17197 Suppress range checks for a couple of assignments which otherwise
17198 cause validity checks with validity checking turned on.
17200 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
17201 Improvement in error message for object.
17202 (Rep_Item_Too_Late): Remove '!' in warning message.
17204 2006-02-13 Robert Dewar <dewar@adacore.com>
17205 Eric Botcazou <ebotcazou@adacore.com>
17207 * err_vars.ads: Suppress range checks for a couple of assignments
17208 which otherwise cause validity checks with validity checking turned on.
17211 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
17212 Make message unconditional if it is a warning.
17213 (Error_Msg_NEL): Always output warning messages.
17214 Suppress range checks for a couple of assignments which otherwise
17215 cause validity checks with validity checking turned on.
17217 * errout.ads (Message Insertion Characters): Document that '!' is
17218 implied by '?' in error messages.
17220 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
17221 (Gnat1drv): Use a goto to end of main subprogram instead of
17222 Exit_Program (E_Success) so that finalization can occur normally.
17224 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
17226 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
17229 2006-02-13 Vincent Celier <celier@adacore.com>
17231 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
17232 Unchecked_Conversion functions.
17233 (Modification_Time): Use direct conversion of OS_Time to Calendar time
17234 when OpenVMS returns False.
17236 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
17237 a-dirval.adb (OpenVMS): New Boolean function
17239 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17240 Thomas Quinot <quinot@adacore.com>
17242 * checks.adb (Build_Discriminant_Checks): If the expression being
17243 checks is an aggregate retrieve the values of its discriminants to
17244 generate the check, rather than creating a temporary and a reference
17246 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
17247 (Install_Null_Excluding_Check): Ditto
17248 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
17249 not for the renamed object, so that the actual itype is attached in the
17252 2006-02-13 Robert Dewar <dewar@adacore.com>
17253 Vincent Celier <celier@adacore.com>
17255 * debug.adb: Eliminate numeric switches for binder/gnatmake
17257 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
17258 switches for the compiler.
17259 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
17260 (Scan_Make_Switches): When failing with an illegal switch, output an
17261 error message with the full switch.
17262 Eliminate numeric switches for binder/gnatmake
17264 * switch.ads, switch.adb (Bad_Switch): New procedure
17266 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
17267 Remove 0-9 as debug flag character possibilities
17268 -d is now controlling the primary stack size when its value is a
17269 positive. Also add checks against invalid values, and support for kb,
17270 mb. Ditto for -D switch.
17272 2006-02-13 Robert Dewar <dewar@adacore.com>
17273 Serguei Rybin <rybin@adacore.com>
17275 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
17276 save/restore routines.
17277 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17278 were not always properly handled previously.
17279 Since we are changing the tree format anyway, also get rid of the
17280 junk obsolete Immediate_Errors flag.
17281 (Tree_Read): Change the way of reading Tree_Version_String - now we
17282 read the version string from the tree even if its length is not the
17283 same as the length of the version string computed from Gnatvsn.
17284 (Search_Directory_Present): New Boolean flag for the compiler.
17285 Define Tree_Version_String as a dynamic string.
17286 (Default_Stack_Size): new variable, used to handle switch -d.
17289 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
17290 only for main unit.
17291 Add pragma Ada_2005 (synonym for Ada_05)
17292 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17293 were not always properly handled previously.
17295 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
17296 explicit Ada_95 to Ada_2005.
17298 2006-02-13 Javier Miranda <miranda@adacore.com>
17299 Robert Dewar <dewar@adacore.com>
17300 Ed Schonberg <schonberg@adacore.com>
17302 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
17303 against errors in the source program: a private types for which the
17304 corresponding full type declaration is missing and pragma CPP_Virtual
17306 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
17307 (Is_Known_Null): New flag
17308 (Has_Pragma_Pure): New flag
17309 (No_Return): Present in all entities, set only for procedures
17310 (Is_Limited_Type): A type whose ancestor is an interface is limited if
17311 explicitly declared limited.
17312 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
17313 entities. Only used for component marked Is_Tag. If present it stores
17314 the Offset_To_Top function used to provide this value in tagged types
17315 whose ancestor has discriminants.
17317 * exp_ch2.adb: Update status of new Is_Known_Null flag
17319 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
17321 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
17322 the categorization sense if Is_Pure was set by pragma Pure_Function.
17324 2006-02-13 Quentin Ochem <ochem@adacore.com>
17325 Olivier Hainque <hainque@adacore.com>
17327 * bindusg.adb: Updated documentation for -d and -D switches.
17329 * raise.h (__gnat_set_globals): added new parameter for
17330 Default_Stack_Size.
17332 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
17333 (__gnat_handle_vms_condition): Adjust context before raise.
17334 (__gnat_install_handler): Restore the global vector setup for GCC
17335 versions before 3.4, as the frame based circtuitry is not available
17337 (__gnat_set_globals): added a parameter default_stack_size
17338 (__gl_default_stack_size): new variable.
17340 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17342 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
17343 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
17344 does not exist in the Ada RM.
17345 (Compatible_Int_Bounds): Determine whether two integer range bounds
17346 are of equal length and have the same start and end values.
17347 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
17348 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
17349 aggregate when it is part of an object declaration.
17350 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
17351 constrains discriminants of its parent, add explicitly the discriminant
17352 constraints of the ancestor by retrieving them from the
17353 stored_constraint of the parent.
17355 2006-02-13 Robert Dewar <dewar@adacore.com>
17357 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
17358 attribute Mechanism_Code is applied to renamed subprogram, modify
17359 prefix to point to base subprogram.
17360 Max/Min attributes now violate Restriction No_Implicit_Conditionals
17362 * sinfo.ads: Document that Mechanism_Code cannot be applied to
17363 renamed subprograms so that the front-end must replace the prefix
17366 2006-02-13 Javier Miranda <miranda@adacore.com>
17367 Gary Dismukes <dismukes@adacore.com>
17369 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
17370 availability of RE_Interface_Tag.
17371 (Build_Initialization_Call): Fix wrong access to the discriminant value.
17372 (Freeze_Record_Type): Do not generate the tables associated with
17373 timed and conditional dispatching calls through synchronized
17374 interfaces if compiling under No_Dispatching_Calls restriction.
17375 When compiling for Ada 2005, for a nonabstract
17376 type with a null extension, call Make_Controlling_Function_Wrappers
17377 and insert the wrapper function declarations and bodies (the latter
17378 being appended as freeze actions).
17379 (Predefined_Primitive_Bodies): Do not generate the bodies of the
17380 predefined primitives associated with timed and conditional
17381 dispatching calls through synchronized interfaces if we are
17382 compiling under No_Dispatching_Calls.
17383 (Build_Init_Procedure): Use RTE_Available to check if a run-time
17384 service is available before generating a call.
17385 (Make_Controlling_Function_Wrappers): New procedure.
17386 (Expand_N_Full_Type_Declaration): Create a class-wide master for
17387 access-to-limited-interfaces because they can be used to reference
17388 tasks that implement such limited interface.
17389 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
17390 procedure spec and body of the Offset_To_Top function that is generated
17391 when the parent of a type with discriminants has secondary dispatch
17393 (Init_Secondary_Tags): Handle the case in which the parent of the type
17394 containing secondary dispatch tables has discriminants to generate the
17395 correct arguments to call Set_Offset_To_Top.
17396 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
17398 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
17399 Add Wide_[Wide_]Expanded_Name.
17400 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
17401 the same functionality of Get_Prim_Op_Address but applied to predefined
17402 primitive operations because the pointers to the predefined primitives
17403 are now saved in a separate table.
17404 (Parent_Size): Modified to get access to the separate table of primitive
17405 operations or the parent type.
17406 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
17407 functionality of Set_Prim_Op_Address but applied to predefined primitive
17409 (Set_Signature): New subprogram used to store the signature of a DT.
17410 (Displace): If the Offset_To_Top value is not static then call the
17411 function generated by the expander to get such value; otherwise use
17412 the value stored in the table of interfaces.
17413 (Offset_To_Top): The type of the actual has been changed to Address to
17414 give the correct support to tagged types with discriminants. In this
17415 case this value is stored just immediately after the tag field.
17416 (Set_Offset_To_Top): Two new formals have been added to indicate if the
17417 offset_to_top value is static and hence pass this value to the run-time
17418 to store it in the table of interfaces, or else if this value is dynamic
17419 and then pass to the run-time the address of a function that is
17420 generated by the expander to provide this value for each object of the
17423 * rtsfind.ads (Default_Prin_Op_Count): Removed.
17424 (Default_Prim_Op_Count): New entity
17425 (Get_Predefined_Prim_Op_Address): New entity
17426 (Set_Predefined_Prim_Op_Address): New entity
17427 (RE_Set_Signature): New entity
17429 2006-02-13 Thomas Quinot <quinot@adacore.com>
17430 Ed Schonberg <schonberg@adacore.com>
17432 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
17433 Make_Adjust_Call done for a newly-allocated object.
17435 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
17436 in a subprogram are wrapped in a cleanup block, indicate that the
17437 subprogram contains an inner block with an exception handler.
17438 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
17439 Adjust call is for a newly-allocated object. In that case we must not
17440 assume that the finalization list chain pointers are correct (since they
17441 come from a bit-for-bit copy of the original object's pointers) so if
17442 the attach level would otherwise be zero (no change), we set it to 4
17443 instead to cause the pointers to be reset to null.
17445 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
17446 reset chain pointers to null.
17448 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17450 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
17451 string, and the context requires a loop for the assignment (e.g.
17452 because the left-hand side is packed), generate a unique name for the
17453 temporary that holds the string, to prevent spurious name clashes.
17455 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17456 Javier Miranda <miranda@adacore.com>
17457 Robert Dewar <dewar@adacore.com>
17458 Gary Dismukes <dismukes@adacore.com>
17460 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
17461 return unconstrained arrays.
17463 (Expand_Call): An indirect call through an access parameter of a
17464 protected operation is not a protected call.
17465 Add circuit to raise CE in Ada 2005 mode following call
17466 to Raise_Exception.
17467 (Register_DT_Entry): Do nothing if
17468 the run-time does not give support to abstract interfaces.
17469 (Freeze_Subprogram): In case of dispatching operations, do not generate
17470 code to register the operation in the dispatch table if the source
17471 is compiled with No_Dispatching_Calls.
17472 (Register_Predefined_DT_Entry): Generate code that calls the new
17473 run-time subprogram Set_Predefined_Prim_Op_Address instead of
17474 Set_Prim_Op_Address.
17476 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
17477 on array assignments if the right-hand side is a function call that has
17478 been inlined. Check is performed on the assignment in the block.
17479 (Process_Bounds): If bounds and range are overloaded, apply preference
17480 rule for root operations to disambiguate, and diagnose true ambiguity.
17481 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
17482 a tag-indeterminate right-hand side even when Expander_Active is True.
17483 Needed to ensure that dispatching calls to T'Input are allowed and
17484 get the tag of the target class-wide object.
17486 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
17487 an inherited primitive operation that already overrides several
17488 abstract interface primitives. For transitivity, the new entity must
17489 also override all the abstract interface primitives covered by the
17490 inherited overriden primitive.
17491 Emit warning if new entity differs from homograph in same scope only in
17492 that one has an access parameter and the other one has a parameter of
17493 a general access type with the same designated type, at the same
17494 position in the signature.
17495 (Make_Inequality_Operator): Use source locations of parameters and
17496 subtype marks from corresponding equality operator when creating the
17497 tree structure for the implicit declaration of "/=". This does not
17498 change anything in behaviour except that the decoration of the
17499 components of the subtree created for "/=" allows ASIS to get the
17500 string images of the corresponding identifiers.
17501 (Analyze_Return_Statement): Remove '!' in warning message.
17502 (Check_Statement_Sequence): Likewise.
17503 (Analyze_Subprogram_Body): For an access parameter whose designated type
17504 is an incomplete type imported through a limited_with clause, use the
17505 type of the corresponding formal in the body.
17506 (Check_Returns): Implicit return in No_Return procedure now raises
17507 Program_Error with a compile time warning, instead of beging illegal.
17508 (Has_Single_Return): Function returning unconstrained type cannot be
17509 inlined if expression in unique return statement is not an identifier.
17510 (Build_Body_To_Inline): It is possible to inline a function call that
17511 returns an unconstrained type if all return statements in the function
17512 return the same local variable. Subsidiary procedure Has_Single_Return
17513 verifies that the body conforms to this restriction.
17515 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
17516 same type, and one of them is of an anonymous access type, convert
17517 the other operand to it, so that this is a valid binary operation for
17519 (Resolve_Type_Conversion): Handle subtypes of protected types and
17520 task types when accessing to the corresponding record type.
17521 (Resolve_Allocator): Add '\' in 2-line warning message.
17522 Remove '!' in warning message.
17523 (Resolve_Call): Add '\' in 2-line warning message.
17524 (Valid_Conversion): Likewise.
17525 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
17526 resulting type may be an access type with an implicit dereference.
17527 Obtain the proper component from the designated type.
17528 (Make_Call_Into_Operator): Handle properly a call to predefined equality
17529 given by an expanded name with prefix Standard, when the operands are
17530 of an anonymous access type.
17531 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
17532 Explicit_Dereference and Resolve_Selected_Component, to verify that the
17533 prefix of the expression is not of an incomplete type. Allows full
17534 diagnoses of all semantic errors.
17535 (Resolve_Actuals): If the actual is an allocator whose directly
17536 designated type is a class-wide interface we build an anonymous
17537 access type to use it as the type of the allocator. Later, when
17538 the subprogram call is expanded, if the interface has a secondary
17539 dispatch table the expander will add a type conversion to force
17540 the displacement of the pointer.
17541 (Resolve_Call): If a function that returns an unconstrained type is
17542 marked Inlined_Always and inlined, the call will be inlined and does
17543 not require the creation of a transient scope.
17544 (Check_Direct_Boolean_Op): Removed
17545 (Resolve_Comparison_Op): Remove call to above
17546 (Resolve_Equality_Op): Remove call to above
17547 (Resolve_Logical_Op): Inline above, since this is only call.
17548 (Valid_Conversion): Handle properly conversions between arrays of
17549 convertible anonymous access types.
17552 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
17553 the literal in an unchecked conversion, because GCC 4.x needs a static
17554 value for a string bound.
17556 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17557 Hristian Kirtchev <kirtchev@adacore.com>
17559 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
17560 components of the corresponding record, take into account component
17561 definitions that are access definitions.
17562 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
17563 procedure is not considered a dispatching call and will be expanded
17566 2006-02-13 Javier Miranda <miranda@adacore.com>
17568 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
17569 controlling argument of the dispatching call is an abstract interface
17570 class-wide type then we use it directly.
17571 Check No_Dispatching_Calls restriction.
17572 (Default_Prim_Op_Position): Remove the code that looks for the last
17573 entity in the list of aliased subprograms. This code was wrong in
17575 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
17576 when the source is compiled with the No_Dispatching_Calls restriction.
17577 (Init_Predefined_Interface_Primitives): No need to inherit primitives
17578 if we are compiling with restriction No_Dispatching_Calls.
17579 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
17580 subprograms if we are compiling under No_Dispatching_Calls restriction.
17581 (Make_DT): Generate a dispatch table with a single dummy entry if
17582 we are compiling with the No_Dispatching_Calls restriction. In
17583 addition, in this case we don't generate code that calls to the
17584 following run-time subprograms: Set_Type_Kind, Inherit_DT.
17585 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
17586 of this subprogram if compiling with the No_Dispatching_Calls
17588 (Expand_Type_Conversion): Instead of using the actual parameter,
17589 the argument passed as parameter to the conversion function was
17590 erroneously referenced by the expander.
17591 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
17592 Set_Predefined_Primitive_Op_Address and Set_Signature.
17593 (Expand_Dispatching_Call): Generate call to
17594 Get_Predefined_Prim_Op_Address for predefined primitives.
17595 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
17596 predefined primitives.
17597 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
17598 primitives we reserve one dummy entry to ensure that the tag does not
17599 point to some memory that is associated with some other object. In
17600 addition, remove all the old code that generated the assignments
17601 associated with the signature of the dispatch table and replace them
17602 by a call to the new subprogram Set_Signature.
17603 (Set_All_DT_Position): Change the algorithm because now we have a
17604 separate dispatch table associated with predefined primitive operations.
17605 (Expand_Interface_Conversion): In case of non-static offset_to_top
17606 add explicit dereference to get access to the object after the call
17607 to displace the pointer to the object.
17608 (Expand_Interface_Thunk): Modify the generation of the actual used
17609 in the calls to the run-time function Offset_To_Top to fulfil its
17611 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
17613 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17615 * exp_dist.adb (Copy_Specification): For access parameters, copy
17616 Null_Exclusion flag, which will have been set for stream subprograms
17619 2006-02-13 Pascal Obry <obry@adacore.com>
17621 * expect.c (__gnat_expect_portable_execvp): New implementation. The
17622 previous implementation was using the C runtime spawnve routine but
17623 the corresponding wait was using directly the Win32 API. This was
17624 causing some times a lock when waiting for an event using
17625 WaitForSingleObject in __gnat_waitpid. This new implementation uses
17626 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
17627 API fixes this problem.
17629 2006-02-13 Robert Dewar <dewar@adacore.com>
17631 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
17634 2006-02-13 Thomas Quinot <quinot@adacore.com>
17636 * exp_pakd.ads: Fix typos in comments.
17638 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
17639 array reference that is an explicit dereference, mark the converted
17640 (packed) array reference as analyzed to prevent a forthcoming
17641 reanalysis from resetting its type to the original (non-packed) array
17644 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17645 Javier Miranda <miranda@adacore.com>
17646 Eric Botcazou <ebotcazou@adacore.com>
17648 * exp_util.ads, exp_util.adb (Find_Prim_Op,
17649 Is_Predefined_Primitive_Operation): When
17650 searching for the predefined equality operator, verify that operands
17651 have the same type.
17652 (Is_Predefined_Dispatching_Operation): Remove the code that looks
17653 for the last entity in the list of aliased subprograms. This code
17654 was wrong in case of renamings.
17655 (Set_Renamed_Subprogram): New procedure
17656 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
17657 Exp_Type constant computed when entering this subprogram.
17658 (Known_Null): New function
17659 (OK_To_Do_Constant_Replacement): New function
17660 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
17661 (Side_Effect_Free): An attribute reference 'Input is not free of
17662 side effect, unlike other attributes that are functions. (from code
17664 (Remove_Side_Effects): Expressions that involve packed arrays or records
17665 are copied at the point of reference, and therefore must be marked as
17666 renamings of objects.
17667 (Is_Predefined_Dispatching_Operation): Return false if the operation is
17668 not a dispatching operation.
17671 (Remove_Side_Effects): Lift enclosing type conversion nodes for
17672 elementary types in all cases.
17674 2006-02-13 Javier Miranda <miranda@adacore.com>
17676 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
17677 task types when accessing to the corresponding record type.
17678 Remove '!' in warning message.
17680 2006-02-13 Olivier Hainque <hainque@adacore.com>
17682 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
17683 to avoid useless and space inefficient overalignments on targets where
17684 Max_Alignment is larger than 16.
17686 2006-02-13 Pascal Obry <obry@adacore.com>
17688 * g-catiio.adb (Sec_Number): New type used to compute the number of
17689 seconds since 1-1-1970.
17690 (Image) [Natural]: The parameter was an Integer, as we can't deal with
17691 negative numbers (years, months...) it is better to have a Natural here.
17693 (Image) [Number]: Change parameter from Long_Integer to Number.
17694 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
17695 overflow for dates past year 2038.
17697 2006-02-13 Matthew Heaney <heaney@adacore.com>
17699 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
17702 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17704 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
17706 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
17707 finalization can occur normally.
17709 2006-02-13 Vincent Celier <celier@adacore.com>
17711 * gnatcmd.adb (Rules_Switches): New table
17712 (Add_To_Rules_Switches): New procedure
17713 (GNATCmd): For command CHECK, put all options following "-rules" in the
17714 Rules_Switches table. Append these -rules switches after the -cargs
17717 2006-02-13 Robert Dewar <dewar@adacore.com>
17719 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
17720 These two cases were generating incorrect output, and if this unit
17721 was built with checks on, generated a discriminant mismatch constraint
17724 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17725 Robert Dewar <dewar@adacore.com>
17727 * lib-xref.adb (Get_Type_Reference): For a private type whose full
17728 view is an array type, indicate the component type as well, for
17729 navigation purposes.
17730 (Generate_Reference): Don't consider array ref on LHS to be a case
17731 of violating pragma Unreferenced.
17732 Do not give Ada 2005 warning except on real reference.
17734 2006-02-13 Vincent Celier <celier@adacore.com>
17736 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
17737 main source, add switch -mdebug-main=_ada_ so that the executable can
17738 be debugged by the standard VMS debugger.
17739 (Gnatmake): Set No_Main_Subprogram to True when there is no main
17740 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
17741 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
17742 of the last source, as the binding and linking phases are never
17744 Set all executable obsolete when rebuilding a library.
17746 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
17749 2006-02-13 Javier Miranda <miranda@adacore.com>
17752 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
17753 code to improve the error message reported when the program has
17754 declarations of abstract interface types and it is not compiled with
17755 the -gnat05 switch.
17756 (P_Access_Definition): Reorganize the code to improve the error
17757 message reported when the new Ada 2005 syntax for anonymous
17758 access types is used and the program is not compiled with the
17761 2006-02-13 Robert Dewar <dewar@adacore.com>
17763 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
17764 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
17767 2006-02-13 Javier Miranda <miranda@adacore.com>
17769 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
17770 against source containing syntax errors.
17772 2006-02-13 Vincent Celier <celier@adacore.com>
17774 * prj.adb (Reset): Initialize the first element of table Namings with
17775 the standard naming data.
17777 2006-02-13 Vincent Celier <celier@adacore.com>
17779 * prj.ads (Error_Warning): New enumeration type
17781 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
17782 unknown, use the location of the project to report the error.
17783 (When_No_Sources): New global variable
17784 (Report_No_Ada_Sources): New procedure
17785 (Check): New parameter When_No_Sources. Set value of global variable
17787 (Find_Sources): Call Report_No_Ada_Sources when appropriate
17788 (Get_Sources_From_File): Ditto
17789 (Warn_If_Not_Sources): Better warning messages indicating the unit name
17792 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
17793 Call Prj.Proc.Process with parameter When_No_Sources.
17795 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
17796 Call Recursive_Check with parameter When_No_Sources.
17797 (Recursive_Check): New parameter When_No_Sources. Call itself and
17798 Prj.Nmsc.Check with parameter When_No_Sources.
17799 (Process): New parameter When_No_Sources. Call Check with parameter
17801 (Copy_Package_Declarations): New procedure to copy renamed parameters
17802 and setting the location of the declared attributes to the location
17803 of the renamed package.
17804 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
17807 2006-02-13 Vincent Celier <celier@adacore.com>
17809 * prj-makr.adb (Make): Preserve the comments from the original project
17811 When removing nodes (attributes Source_Dirs, Source_Files,
17812 Source_List_File and package Naming), save the comments and attach the
17813 saved comments to the newly created nodes.
17814 Do not add a with clause for the naming package if one already exists.
17816 2006-02-13 Javier Miranda <miranda@adacore.com>
17817 Gary Dismukes <dismukes@adacore.com>
17818 Robert Dewar <dewar@adacore.com>
17820 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
17822 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
17823 aliased entities to look for the overriden abstract interface
17825 (Is_Interface_Subprogram): Complete documentation.
17826 (Check_Dispatching_Operation): Do not generate code to register the
17827 operation in the dispatch table if the source is compiled with
17828 restriction No_Dispatching_Calls.
17829 (Override_Dispatching_Operation): Check for illegal attempt to override
17830 No_Return procedure with procedure that is not No_Return
17831 (Check_Dispatching_Call): Suppress the check for an abstract operation
17832 when the original node of an actual is a tag-indeterminate attribute
17833 call, since the attribute, which must be 'Input, can never be abstract.
17834 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
17835 call to the Input attribute (even when rewritten).
17836 (Propagate_Tag): Augment comment to indicate the possibility of a call
17837 to an Input attribute.
17839 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
17840 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
17842 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
17843 No_Wide_Characters is no longer partition-wide
17844 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
17847 2006-02-13 Douglas Rupp <rupp@adacore.com>
17849 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
17851 2006-02-13 Javier Miranda <miranda@adacore.com>
17853 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
17854 handles default-initialized components to keep separate the management
17855 of this feature but also avoid the unrequired resolution and
17856 expansion of components that do not have partially initialized
17858 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
17859 (Check_Bounds): Likewise.
17860 (Check_Length): Likewise.
17862 2006-02-13 Javier Miranda <miranda@adacore.com>
17863 Ed Schonberg <schonberg@adacore.com>
17865 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
17866 abstract interface type call analyze_and_resolve to expand the type
17867 conversion into the corresponding displacement of the
17868 reference to the base of the object.
17869 (Eval_Attribute, case Width): For systems where IEEE extended precision
17870 is supported, the maximum exponent occupies 4 decimal digits.
17871 (Accessibility_Message): Add '\' in 2-line warning message.
17872 (Resolve_Attribute): Likewise.
17873 (case Attribute_Access): Significantly revise checks
17874 for illegal access-to-subprogram Access attributes to properly enforce
17875 the rules of 3.10.2(32/2).
17876 Diagnose use of current instance with an illegal attribute.
17878 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
17880 (Enclosing_Generic_Unit): New function to return a node's innermost
17881 enclosing generic declaration node.
17882 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
17883 (Type_Access_Level): The accessibility level of anonymous acccess types
17884 associated with discriminants is that of the current instance of the
17885 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
17886 (Compile_Time_Constraint_Error): Handle case of conditional expression.
17887 (Kill_Current_Values_For_Entity): New function
17888 (Enter_Name): Change formal type to Entity_Id
17890 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17891 Ed Schonberg <schonberg@adacore.com>
17892 Gary Dismukes <dismukes@adacore.com>
17894 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
17895 Analyze_Compilation_Unit.
17896 Detect and warn on redundant with clauses detected in a package spec
17897 and/or body when -gnatwr is used.
17898 (Analyze_Context): Analyze config pragmas before other items
17899 (Install_Context_Items): Don't analyze config pragmas here
17900 (Install_Limited_Withed_Unit): Set limited entity of package in
17901 with_clause so that cross-reference information or warning messages on
17902 unused packages can be properly generated
17903 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
17904 has Error_Posted set. Prevent infinite loops in illegal programs.
17905 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
17906 to the point of the error test requiring the current unit to be private.
17907 This ensures that private with clauses are not exempted from the basic
17908 checking for being a descendant of the same library unit parent as a
17909 withed private descendant unit.
17910 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
17911 handle private with clauses properly, as well as to account for cases
17912 where the withed unit is a public descendant of a private ancestor
17913 (in which case the current unit must be a descendant of the private
17914 ancestor's parent). The spec comments were updated accordingly. Also,
17915 the old error message in this subprogram was replaced with error
17916 messages that mirror the errors tested and reported by
17917 Check_Private_Child_Unit.
17918 Parameter and variable names improved for readability.
17919 (Install_Limited_Context_Clauses): Remove test for a withed unit being
17920 private as the precondition for calling
17921 Check_Private_Limited_Withed_Unit since that subprogram has been
17922 revised to test public units as well as private units.
17924 2006-02-13 Thomas Quinot <quinot@adacore.com>
17925 Robert Dewar <dewar@adacore.com>
17926 Ed Schonberg <schonberg@adacore.com>
17927 Javier Miranda <miranda@adacore.com>
17929 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
17930 that Scope_Stack.First = 1.
17931 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17932 were not always properly handled previously.
17933 (Formal_Entity): Complete rewrite, to handle properly some complex case
17934 with multiple levels of parametrization by formal packages.
17935 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
17936 to the corresponding derived type declaration for proper semantics.
17938 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
17939 (Check_Component): Enforce restriction on components of
17940 unchecked_unions: a component in a variant cannot contain tasks or
17942 (Unchecked_Union): Allow nested variants and multiple discriminants, to
17944 Add pragma Ada_2005 (synonym for Ada_05)
17945 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17946 were not always properly handled previously.
17947 Document that pragma Propagate_Exceptions has no effect
17948 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
17949 (Set_Convention_From_Pragma): Check that if a convention is
17950 specified for a dispatching operation, then it must be
17951 consistent with the existing convention for the operation.
17952 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
17953 longer required to specify an vtable-ptr component in the record. For
17954 compatibility reasons we leave the support for the previous definition.
17955 (Analyze_Pragma, case No_Return): Allow multiple arguments
17957 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
17958 non-overrideen inherited operation with a controlling result as
17959 illegal only its implicit declaration comes from the derived type
17960 declaration of its result's type.
17961 (Check_Possible_Deferred_Completion): Relocate the object definition
17962 node of the subtype indication of a deferred constant completion rather
17963 than directly analyzing it. The analysis of the generated subtype will
17964 correctly decorate the GNAT tree.
17965 (Record_Type_Declaration): Check whether this is a declaration for a
17966 limited derived record before analyzing components.
17967 (Analyze_Component_Declaration): Diagnose record types not explicitly
17968 declared limited when a component has a limited type.
17969 (Build_Derived_Record_Type): Code reorganization to check if some of
17970 the inherited subprograms of a tagged type cover interface primitives.
17971 This check was missing in case of a full-type associated with a private
17973 (Constant_Redeclaration): Check that the subtypes of the partial and the
17974 full view of a constrained deferred constant statically match.
17975 (Mentions_T): A reference to the current type in an anonymous access
17976 component declaration must be an entity name.
17977 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
17978 class_wide type to refer to full type, not to the incomplete one.
17979 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
17980 available. Required to give support to the certified run-time.
17981 (Analyze_Component_Declaration): In case of anonymous access components
17982 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
17983 (Process_Discriminants): For an access discriminant, use the
17984 discriminant specification as the associated_node_for_itype, to
17985 simplify accessibility checks.
17987 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17988 Javier Miranda <miranda@adacore.com>
17990 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
17991 abstract interpretations on an operator, remove interpretations that
17992 yield Address or a type derived from it, if one of the operands is an
17994 (Try_Object_Operation.Try_Primitive_Operation,
17995 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
17996 location when creating the new reference to a primitive or class-wide
17997 operation as a part of rewriting a subprogram call.
17998 (Try_Primitive_Operations): If context requires a function, collect all
17999 interpretations after the first match, because there may be primitive
18000 operations of the same type with the same profile and different return
18001 types. From code reading.
18002 (Try_Primitive_Operation): Use the node kind to choose the proper
18003 operation when a function and a procedure have the same parameter
18005 (Complete_Object_Operation): If formal is an access parameter and prefix
18006 is an object, rewrite as an Access reference, to match signature of
18007 primitive operation.
18008 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
18009 by an expanded name with prefix Standard, when the operands are of an
18010 anonymous access type.
18011 (Remove_Abstract_Operations): If the operation is abstract because it is
18012 inherited by a user-defined type derived from Address, remove it as
18013 well from the set of candidate interpretations of an overloaded node.
18014 (Analyze_Membership_Op): Membership test not applicable to cpp-class
18017 2006-02-13 Bob Duff <duff@adacore.com>
18019 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
18020 redundant use clauses.
18021 In particular, if the scope of two use clauses overlaps, but one is not
18022 entirely included in the other, we should not warn. This can happen
18023 with nested packages.
18024 (Analyze_Subprogram_Renaming): Protect the compiler against previously
18025 reported errors. The bug was reported when the compiler was built
18026 with assertions enabled.
18027 (Find_Type): If the node is a 'Class reference and the prefix is a
18028 synchronized type without a corresponding record, return the type
18031 2006-02-13 Javier Miranda <miranda@adacore.com>
18033 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
18034 if this is the full-declaration associated with a private declaration
18035 that implement interfaces, then the private type declaration must be
18037 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
18038 as aliased. The use of the 'access attribute is not available for such
18039 object (for this purpose the object should be explicitly marked as
18040 aliased, but being an anonymous type this is not possible).
18042 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18043 Robert Dewar <dewar@adacore.com>
18045 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
18046 compilation unit is an elaboration scope.
18047 (Add_Task_Proc): Add '\' in 2-line warning message.
18048 (Activate_All_Desirable): Deal with case of unit with'ed by parent
18050 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18051 Javier Miranda <miranda@adacore.com>
18053 * sem_type.adb (Write_Overloads): Improve display of candidate
18055 (Add_One_Interp): Do not add to the list of interpretations aliased
18056 entities corresponding with an abstract interface type that is an
18057 immediate ancestor of a tagged type; otherwise we have a dummy
18058 conflict between this entity and the aliased entity.
18059 (Disambiguate): The predefined equality on universal_access is not
18060 usable if there is a user-defined equality with the proper signature,
18061 declared in the same declarative part as the designated type.
18062 (Find_Unique_Type): The universal_access equality operator defined under
18063 AI-230 does not cover pool specific access types.
18064 (Covers): If one of the types is a generic actual subtype, check whether
18065 it matches the partial view of the other type.
18067 2006-02-13 Thomas Quinot <quinot@adacore.com>
18069 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
18070 line. This is necessary to allow In_Extended_Main_Unit to provide
18071 correct results for itypes while writing out expanded source.
18072 (Close_File): No need to update the source_index_table here since it's
18073 now done for each line.
18075 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18076 Robert Dewar <dewar@adacore.com>
18078 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
18079 preserve the source unit where the itype is declared, and prevent a
18081 (Note_Implicit_Run_Time_Call): New procedure
18082 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
18085 * sprint.ads: Document use of $ for implicit run time routine call
18087 2006-02-13 Quentin Ochem <ochem@adacore.com>
18089 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
18092 2006-02-13 Bob Duff <duff@adacore.com>
18094 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
18095 Scan_Unsigned, so we do not scan leading blanks and sign twice.
18096 Integer'Value("- 5") and Integer'Value("-+5") now correctly
18097 raise Constraint_Error.
18099 * s-vallli.adb (Scan_Long_Long_Integer): Call
18100 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
18101 do not scan leading blanks and sign twice.
18102 Integer'Value("- 5") and Integer'Value("-+5") now correctly
18103 raise Constraint_Error.
18105 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
18106 Scan_Long_Long_Unsigned): Split out most of the processing from
18107 Scan_Long_Long_Unsigned out into
18108 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
18109 This prevents scanning leading blanks and sign twice.
18110 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
18113 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
18114 out most of the processing from Scan_Unsigned out into
18115 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
18116 This prevents scanning leading blanks and sign twice.
18118 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
18119 use with Modular'Value attribute.
18120 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
18123 2006-02-13 Robert Dewar <dewar@adacore.com>
18125 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
18127 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18129 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
18130 (PPC VxWorks): Likewise.
18131 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
18132 (forced_callee): Make non-inlinable and non-pure.
18133 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
18135 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18136 Ben Brosgol <brosgol@adacore.com>
18137 Robert Dewar <dewar@adacore.com>
18139 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
18141 Document that gnatbind -M option is for cross environments only.
18142 Added description of using gnatmem to trace gnat rtl allocs and deallocs
18143 Add note on use of $ to label implicit run time calls
18144 Add documentation for -gnatyI (check mode IN)
18145 Updated chapter on compatibility with HP Ada
18146 VMS-oriented edits.
18147 Ran spell and corrected errors
18148 Add documentation for gnatbind -d and rework documentation of -D
18150 Add subprogram/data elimination section.
18151 Minor editing of annex A.
18152 Add section for gnatcheck.
18153 Add documentation for restriction No_Dispatching_Calls
18154 Add documentation for pragma Ada_2005
18155 Remove mention of obsolete pragma Propagate_Exceptions
18156 Document that pragma Unreferenced can appear after DO in ACCEPT
18157 Clarify Pure_Function for library level units
18158 Mention Max/Min in connection with No_Implicit_Conditionals
18159 No_Wide_Characters restriction is no longer partition-wide
18160 Add a nice example for Universal_Literal_String attribute
18161 Document that pragma No_Return can take multiple arguments
18163 * ug_words: Added entry for gnatcheck
18165 * g-ctrl_c.ads (Install_Handler): Enhance comments
18167 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
18169 * g-trasym.ads: Add documentation on how to do off line symbolic
18170 traceback computation.
18172 * s-fatgen.adb: Add comments for Unaligned_Valid
18174 * stand.ads: Fix typo in comment
18176 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18178 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
18180 2006-02-06 Roger Sayle <roger@eyesopen.com>
18182 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
18184 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18187 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
18188 implementation that calls __main.
18190 2006-01-25 Peter O'Gorman <peter@pogma.com>
18193 * Makefile.in (GCC_LINK): Remove quotes.
18194 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
18197 (powerpc-darwin): Pass -shared-libgcc when building shared library.
18199 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18202 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
18204 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18206 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
18208 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18210 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
18213 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18215 * Make-lang.in: Update dependencies
18217 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18219 * Make-lang.in: Add rule for ada/exp_sel.o
18221 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18223 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
18225 2005-12-09 Arnaud Charlet <charlet@adacore.com>
18227 * gnatvsn.ads (Library_Version): Bump to version 4.2
18228 (ASIS_Version_Number): Bumped.
18230 2005-12-09 Doug Rupp <rupp@adacore.com>
18232 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
18233 Ada bind file prefix on VMS from b$ to b__.
18234 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
18237 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
18238 Targparm.OpenVMS_On_Target.
18239 (Object_Suffix): Initialize with target object suffix.
18240 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
18242 * butil.adb: Change some Hostparm.OpenVMS checks to
18243 Targparm.OpenVMS_On_Target.
18245 * clean.adb: Change some Hostparm.OpenVMS checks to
18246 Targparm.OpenVMS_On_Target.
18247 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
18248 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
18249 Ada bind file prefix on VMS from b$ to b__.
18251 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
18252 --GCC so that Get_Target_Parameters can find system.ads.
18253 (Gnatlink): Call Get_Target_Parameters in mainline.
18254 Initialize standard packages for Targparm.
18255 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18256 (Process_Args): Also Check for object files with target object
18258 (Make_Binder_File_Names): Create with target object extension.
18259 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
18262 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
18263 Targparm.OpenVMS_On_Target.
18264 ({declaration},Build_Library,Check_Library): Change Ada bind file
18265 prefix on VMS from b$ to b__.
18267 * osint-b.adb: Change some Hostparm.OpenVMS checks to
18268 Targparm.OpenVMS_On_Target.
18269 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
18272 * targext.c: New file.
18274 * Makefile.in: add support for vxworks653 builds
18275 (../../vxaddr2line): gnatlink with targext.o.
18276 (TOOLS_LIBS): Move targext.o to precede libgnat.
18277 (init.o, initialize.o): Minor clean up in dependencies.
18278 (GNATLINK_OBJS): Add targparm.o, snames.o
18279 Add rules fo building targext.o and linking it explicitly with all
18281 Also add targext.o to gnatlib.
18283 * Make-lang.in: Add rules for building targext.o and linking it in
18284 with gnat1 and gnatbind.
18285 Add entry for exp_sel.o.
18287 * osint.adb Change some Hostparm.OpenVMS checks to
18288 Targparm.OpenVMS_On_Target.
18289 (Object_File_Name): Use target object suffix.
18291 * osint.ads (Object_Suffix): Remove, no longer used.
18292 (Target_Object_Suffix): Initialize with target object suffix.
18294 * rident.ads: Add special exception to license.
18296 * targparm.adb (Get_Target_Parameters): Set the value of
18297 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
18299 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
18301 * targparm.ads: Add special exception to license.
18303 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
18305 (Copy_File): Make sure from file is closed if error on to file
18306 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
18308 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
18309 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
18311 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
18312 target object suffix.
18314 2005-12-09 Jose Ruiz <ruiz@adacore.com>
18315 Quentin Ochem <ochem@adacore.com>
18316 Florian Villoing <villoing@adacore.com>
18318 * a-taster.ads, a-taster.adb: New files.
18320 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
18321 link to the version that does nothing. This way the task termination
18322 routine is not executed twice for the environment task when finishing
18323 because of an unhandled exception.
18325 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
18326 handler because of an unhandled exception.
18328 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
18329 System.Tasking.Utilities instead of that in System.Tasking.Stages.
18331 * s-finimp.adb (initialization code): Modify the soft link for the
18332 finalization of the global list instead of Adafinal.
18334 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
18335 non-tasking version of the soft link for task termination. We do
18336 nothing since if we are using the non-tasking version it
18337 means that the task termination functionality is not used.
18338 (Null_Finalize_Global_List): Add this null version for the procedure
18339 in charge of finalizing the global list for controlled objects.
18340 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
18341 instead for handling run-time termination in a more flexible way.
18342 (Adafinal_NT): This new procedure will take care of finalizing the
18343 global list for controlled objects if needed, but no tasking
18346 * s-tarest.adb (Task_Lock): Do not try to lock again the
18347 Global_Task_Lock if we already own it. Otherwise, we get blocked in
18348 some run-time operations.
18349 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
18350 until all nested locks have been released.
18351 (Task_Wrapper): Call the fall-back task termination handler. It
18352 applies to all tasks but the environment task.
18353 (Finalize_Global_Tasks): Add the call for the task termination
18354 procedure for the environment task.
18355 (Task_Wrapper): suppress warnings around declaration of
18356 Secondary_Stack_Address.
18358 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
18359 moved to the Common_ATCB record.
18360 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
18361 Common_ATCB record.
18362 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
18363 Common_ATCB record.
18365 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
18366 Fall_Back_Handler, and Specific_Handler.
18368 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
18369 defined in Ada.Task_Termination, to avoid circular dependencies.
18370 (Termination_Handler): Redefine this type here, alredy defined in
18371 Ada.Task_Termination, for avoiding circular dependencies.
18372 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
18373 for storing task termination handlers. In addition,
18374 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
18375 Common_ATCB because it is used by both the regular and the restricted
18377 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
18378 Common_ATCB because it is used by both the regular and the restricted
18380 (Common_ATCB): Added a dynamic task analyzer field.
18382 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
18383 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
18384 (Task_Wrapper): Call the task termination handler. It applies to all
18385 tasks but the environment task.
18386 (Finalize_Global_Tasks): Call the task termination procedure for the
18387 environment task. The call to Finalize_Global_List is now performed
18388 using the soft links mechanism.
18389 (Task_Wrapper): added dynamic stack analysis.
18391 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
18392 potentially blocking operations has been moved from
18393 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
18394 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
18395 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
18396 this run-time check.
18398 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
18399 of task termination procedure.
18400 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
18401 link for the task termination procedure.
18403 * bindusg.adb: (Bindusg): Added documentation for -u option.
18405 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
18406 (Get_Main_C): Add handling of dynamic stack analysis.
18407 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
18409 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
18410 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
18411 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
18413 * opt.ads: Added flags used by dynamic stack measurement.
18414 (Max_Line_Length): Remove (not used anymore)
18416 * s-io.ads, s-io.adb (Standard_Error): new subprogram
18417 (Standart_Output): new subprogram
18418 (Set_Output): new subprogram
18419 (Put): now uses the value of Current_Out to know if the output has to be
18420 send to stderr or stdout.
18422 * s-stausa.ads: Complete implementation.
18424 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
18426 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
18427 list of Ada 05 files.
18428 (GNAT Library Units): Add AltiVec files.
18430 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
18431 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
18432 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
18434 2005-12-09 Nicolas Setton <setton@adacore.com>
18436 * adaint.c (__gnat_locate_regular_file): Return immediately if
18437 file_name is empty.
18439 2005-12-09 Javier Miranda <miranda@adacore.com>
18440 Hristian Kirtchev <kirtchev@adacore.com>
18442 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
18443 to the specification because the frontend generates code that uses this
18445 (Set_Interface_Table): Add missing assertion.
18446 Update documentation describing the run-time structure.
18447 (Displace): New subprogram that displaces the pointer to the object
18448 to reference one of its secondary dispatch tables.
18449 (IW_Membership): Modified to use the new table of interfaces.
18450 (Inherit_TSD): Modified to use the new table of interfaces.
18451 (Register_Interface_Tag): Use the additional formal to fill the
18452 contents of the new table of interfaces.
18453 (Set_Interface_Table): New subprogram that stores in the TSD the
18454 pointer to the table of interfaces.
18455 (Set_Offset_To_Top): Use the additional formal to save copy of
18456 the offset value in the table of interfaces.
18457 Update structure of GNAT Primary and Secondary dispatch table diagram.
18458 Add comment section on GNAT dispatch table prologue.
18459 (Offset_To_Signature): Update the constant value of the Signature field.
18460 (Dispatch_Table): Update comment on hidden fields in the prologue.
18461 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
18462 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
18463 the type of formal parameter T to Tag, introduce additional assertions.
18464 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
18466 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
18468 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
18469 in all the calls to Expand_Interface_Thunk. Instead of referencing the
18470 record component containing the tag of the secondary dispatch table we
18471 have to use the Offset_To_Top run-time function to get this information;
18472 otherwise if the pointer to the base of the object has been displace
18473 we get a wrong value if we use the 'position attribute.
18475 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
18476 all the calls to Expand_Interface_Thunk.
18477 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
18478 interfaces; hence the call to Set_Interface_Table was clearly wrong.
18479 (Collect_All_Interfaces): Modify the internal subprogram Collect to
18480 ensure that the interfaces implemented by the ancestors are placed
18481 at the header of the generated list.
18482 (Expand_Interface_Conversion): Handle the case in which the displacement
18483 associated with the interface conversion is not statically known. In
18484 this case we generate a call to the new run-time subprogram Displace.
18485 (Make_DT): Generate and fill the new table of interfaces.
18486 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
18487 Get_Tagged_Kind and Set_Tagged_Kind.
18488 (Tagged_Kind): New function that determines the tagged kind of a type
18489 with respect to limitedness and concurrency and returns a reference to
18491 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
18492 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
18493 primary dispatch table for a type.
18494 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
18495 secondary dispatch table respectively of a tagged type.
18497 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
18498 (Expand_Interface_Conversion): New subprogram to indicate if the
18499 displacement of the type conversion is statically known.
18500 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
18502 * rtsfind.ads (RE_Offset_To_Top): New entity
18503 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
18504 accessible to users.
18505 (Re_Displace): New entity
18506 (RE_Interface_Data): New entity
18507 (RE_Set_Interface_Data): New_Entity
18508 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
18509 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
18510 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
18511 RE_TK_Tagged, RE_TK_Task.
18513 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
18514 Init_Secondary_Tags_Internal to allow its use with interface types and
18515 also to generate the code for the new additional actual required
18516 by Set_Offset_To_Top.
18517 (Build_Init_Statements): In case of components associated with abstract
18518 interface types there is no need to generate a call to its IP.
18519 (Freeze_Record_Type): Generate Select Specific Data tables only for
18521 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
18522 the bodies and specifications of the predefined primitive operations
18523 dealing with dispatching selects and abort, 'Callable, 'Terminated only
18524 for concurrent types.
18526 * exp_sel.ads, exp_sel.adb: New files.
18528 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
18529 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
18530 properly protected objects and attach handler in the case of the
18531 restricted profile.
18532 Move embeded package Select_Expansion_Utilities into a separate external
18534 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
18535 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
18536 (Build_K, Build_S_Assignment): New subprograms, part of the select
18537 expansion utilities.
18538 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
18539 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
18540 where the trigger is a dispatching procedure of a limited tagged type.
18542 2005-12-09 Olivier Hainque <hainque@adacore.com>
18544 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
18545 pointer initialization values. Make a SAVE_EXPR instead. Add comments
18546 about the use and expansion of SAVE_EXPRs in the various possible
18547 renaming handling cases.
18548 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
18549 abusing DECL_FCONTEXT.
18551 2005-12-09 Matthew Heaney <heaney@adacore.com>
18553 * a-convec.adb (Merge): Added assertions to check whether vector params
18556 * a-coinve.adb (Merge): Added assertions to check whether vector params
18559 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
18561 (Cursor'Read): raises PE
18563 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
18564 to its default value.
18566 * a-cihama.adb: Manually check whether cursor's key and elem are
18569 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
18570 (Merge): Assert that target and source lists are in order
18571 (Swap): Declare non-const temporaries, to pass to Splice
18573 * a-cdlili.ads: (Splice): Changed param name and param mode
18575 * a-cdlili.adb: (Splice): Changed param name and param mode
18576 (Merge): Assert that target and source lists are in order
18577 (Swap): Declare non-const temporaries, to pass to Splice
18579 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
18580 (Write): declare Stream param as not null
18582 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
18583 an exception message.
18585 2005-12-09 Thomas Quinot <quinot@adacore.com>
18586 Robert Dewar <dewar@adacore.com>
18588 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
18589 which is the absolute maximum length we can support.
18591 * frontend.adb: For the processing of configuration pragma files,
18592 remove references to Opt.Max_Line_Length, which is not checked anymore.
18594 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
18597 * scn.adb, scng.adb:
18598 Always check line length against the absolute supported maximum,
18599 Hostparm.Max_Line_Length.
18601 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
18602 value for the maximum line length is Max_Line_Length (not
18603 Column_Number'Last).
18604 Minor error msg update
18605 (Set_Style_Check_Options): New interface returning error msg
18606 Minor code reorganization (processing for 'M' was out of alpha order)
18608 * switch-c.adb: New interface for Set_Style_Check_Options
18610 * stylesw.ads (Set_Style_Check_Options): New interface returning error
18613 2005-12-09 Javier Miranda <miranda@adacore.com>
18615 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
18616 with IP subprogram were only supported if there were limited types.
18618 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
18619 records with IP subprogram were only supported if there were limited
18622 2005-12-09 Olivier Hainque <hainque@adacore.com>
18623 Eric Botcazou <ebotcazou@adacore.com>
18625 * trans.c (tree_transform, emit_check): Adjust calls to
18626 build_call_raise, passing the now expected GNAT_NODE argument.
18628 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
18629 source line information than what the current global locus indicates
18632 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
18633 field has overflowed.
18634 (build_call_raise): Add a GNAT_NODE argument to convey better source
18635 line information than what the current global locus indicates when
18637 (build_component_ref): Adjust call to build_call_raise.
18639 2005-12-09 Pascal Obry <obry@adacore.com>
18641 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
18642 the iterator is quitting iteration on parent directory.
18644 2005-12-09 Javier Miranda <miranda@adacore.com>
18646 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
18647 and the assignment to a class-wide object, before the assignment we
18648 generate a run-time check to ensure that the tag of the Target is
18649 covered by the tag of the source.
18651 2005-12-09 Robert Dewar <dewar@adacore.com>
18653 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
18654 parameter in call to Image_Wide_Character.
18656 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
18657 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
18658 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
18659 annoying FFFE/FFFF inconsistency.
18661 2005-12-09 Robert Dewar <dewar@adacore.com>
18662 Javier Miranda <miranda@adacore.com>
18663 Ed Schonberg <schonberg@adacore.com>
18665 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
18666 of type conversion.
18667 (Find_Interface): New subprogram that given a tagged type and one of its
18668 component associated with the secondary table of an abstract interface
18669 type, return the entity associated with such abstract interface type.
18670 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
18671 base type to create anonymous subtype, because entity may be a locally
18672 declared subtype or generic actual.
18673 (Find_Interface): New subprogram that given a tagged type and one of its
18674 component associated with the secondary table of an abstract interface
18675 type, return the entity associated with such abstract interface type.
18677 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
18678 conversion cannot be handled at compile time. In this case we pass this
18679 information to the expander to generate the appropriate code.
18681 2005-12-09 Robert Dewar <dewar@adacore.com>
18682 Ed Schonberg <schonberg@adacore.com>
18683 Gary Dismukes <dismukes@adacore.com>
18684 Javier Miranda <miranda@adacore.com>
18685 Hristian Kirtchev <kirtchev@adacore.com>
18687 * einfo.adb (Itype_Printed): New flag
18688 (Is_Limited_Type): Derived types do not inherit limitedness from
18689 interface progenitors.
18690 (Is_Return_By_Reference_Type): Predicate does not apply to limited
18693 * einfo.ads (Itype_Printed): New flag
18694 Move Is_Wrapper_Package to proper section
18695 Add missing Inline for Is_Volatile
18697 * output.ads, output.adb (Write_Erase_Char): New procedure
18698 (Save/Restore_Output_Buffer): New procedures
18699 (Save/Restore_Output_Buffer): New procedures
18701 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
18702 Add missing support for anonymous access type
18703 (Write_Id): Insert calls to Write_Itype
18704 (Write_Itype): New procedure to output itypes
18706 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
18707 use of "limited" in declaration.
18709 * sinfo.ads, sinfo.adb:
18710 Formal derived types can carry an explicit "limited" indication.
18712 * sem_ch3.adb: Add with and use of Targparm.
18713 (Create_Component): If Frontend_Layout_On_Target is True and the
18714 copied component does not have a known static Esize, then reset
18715 the size and positional fields of the new component.
18716 (Analyze_Component_Declaration): A limited component is
18717 legal within a protected type that implements an interface.
18718 (Collect_Interfaces): Do not add to the list the interfaces that
18719 are implemented by the ancestors.
18720 (Derived_Type_Declaration): If the parent of the full-view is an
18721 interface perform a transformation of the tree to ensure that it has
18722 the same parent than the partial-view. This simplifies the job of the
18723 expander in order to generate the correct object layout, and it is
18724 needed because the list of interfaces of the full-view can be given in
18726 (Process_Full_View): The parent of the full-view does not need to be
18727 a descendant of the parent of the partial view if both parents are
18729 (Analyze_Private_Extension_Declaration): If declaration has an explicit
18730 "limited" the parent must be a limited type.
18731 (Build_Derived_Record_Type): A derived type that is explicitly limited
18732 must have limited ancestor and progenitors.
18733 (Build_Derived_Type): Ditto.
18734 (Process_Full_View): Verify that explicit uses of "limited" in partial
18735 and full declarations are consistent.
18736 (Find_Ancestor_Interface): Remove function.
18737 (Collect_Implemented_Interfaces): New procedure used to gather all
18738 implemented interfaces by a type.
18739 (Contain_Interface): New function used to check whether an interface is
18741 (Find_Hidden_Interface): New function used to determine whether two
18742 lists of interfaces constitute a set equality. If not, the first
18743 differing interface is returned.
18744 (Process_Full_View): Improve the check for the "no hidden interface"
18745 rule as defined by AI-396.
18747 2005-12-09 Robert Dewar <dewar@adacore.com>
18749 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
18750 types, not on record subtypes.
18751 (Freeze_Entity): Code cleanup. Add barrier to the loop
18752 that generates the references for primitive operations. This allows to
18753 remove an unnecessary exception handler.
18754 Code reformatting and comment clean ups.
18756 2005-12-09 Vincent Celier <celier@adacore.com>
18758 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
18759 If GNAT CHECK is called with a project file, but with no
18760 source on the command line, call gnatcheck with all the compilable
18761 sources of the project.
18762 Take into account the new command Check, for gnatcheck. Treat as for
18763 other ASIS tools: take into account project, specific package Check and
18765 For ASIS tools, add the switches in package Compiler for
18766 the invocation of the compiler.
18768 * prj-attr.adb: Add package Check and its attributes
18770 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
18772 * vms_conv.adb (Initialize): Change Params of command Check to
18774 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18775 Add data for new command Check
18777 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
18779 Add qualifiers for Check command options
18780 (Command_Type): New command Check
18782 2005-12-09 Thomas Quinot <quinot@adacore.com>
18784 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
18785 command line switch overruns the output buffer.
18787 2005-12-09 Robert Dewar <dewar@adacore.com>
18789 * sem_prag.adb: Processing for new pragma Complete_Representation
18790 (Analyze_Pragma, case Debug): Implement two argument form.
18792 * par-prag.adb: Entry for new pragma Complete_Representation
18793 (Prag, case Debug): Recognize two argument form of pragma Debug
18794 New interface for Set_Style_Check_Options.
18796 * sem_ch13.adb: Implement new pragma Complete_Representation.
18798 * snames.adb, snames.ads, snames.h: Entry for new pragma
18799 Complete_Representation.
18801 2005-12-09 Gary Dismukes <dismukes@adacore.com>
18803 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
18804 available user-specified stream attributes on limited parameters to
18805 also test the type directly rather than only its underlying type (for
18806 Ada 95) and, in the case of Ada 2005, to check that the user-specified
18807 attributes are visible at the point of the subprogram declaration.
18808 For Ada 2005, the error message is modified to indicate that the
18809 type's stream attributes must be visible (again, only for -gnat05).
18811 2005-12-09 Ed Schonberg <schonberg@adacore.com>
18813 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
18814 anonymous access types.
18816 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
18817 matching of anonymous access types and anonymous access to subprogram
18818 types. 'R'M 4.9.1 (2/2).
18820 2005-12-09 Ed Schonberg <schonberg@adacore.com>
18822 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
18823 rule prematurely when operands are universal, remaining ambiguities
18824 will be removed during resolution.
18827 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
18828 that are Ada 2005 functions.
18829 (Has_Abstract_Interpretation): Subsidiary to
18830 Remove_Conversions, to remove ambiguities caused by abstract operations
18831 on numeric types when operands are universal.
18833 2005-12-09 Robert Dewar <dewar@adacore.com>
18835 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
18836 for case where spec is categorized.
18838 2005-12-09 Javier Miranda <miranda@adacore.com>
18840 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
18841 types use the corresponding record type. This was not needed before
18842 the implementation of Ada 2005 synchronized types because
18843 concurrent types were never tagged types in Ada 95.
18845 2005-12-09 Ed Schonberg <schonberg@adacore.com>
18847 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
18848 first subtype of the type of the expression to verify that it is a
18851 2005-12-09 Robert Dewar <dewar@adacore.com>
18853 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
18856 2005-12-09 Quentin Ochem <ochem@adacore.com>
18857 Robert Dewar <dewar@adacore.com>
18858 Ed Falis <falis@adacore.com>
18859 Florian Villoing <villoing@adacore.com>
18860 Thomas Quinot <quinot@adacore.com>
18861 Arnaud Charlet <charlet@adacore.com>
18863 * gnat_ugn.texi: Created section "Stack Related Tools"
18864 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
18865 "Stack Related Tools"
18866 Added subsection "Static Stack Usage Analysis"
18867 Added subsection "Dynamic Stack Usage Analysis"
18868 Include documentation of itypes in sprint listing (-gnatG)
18869 Documented gnatbind -D switch (default sec stack size for fixed sec
18871 Added Interrupt_State and Persistent_BSS to list of configuration
18873 Add missing doc for maximum value of nnn in -gnatyMnnn
18875 * gnat_rm.texi: Document the AltiVec binding.
18876 Add documentation for pragma Complete_Representation
18877 Shortened an overly long line (> 79 chars)
18878 Clarify documentation of unchecked conversion in implementation
18880 Document two argument form of pragma Debug
18882 * types.ads (Column_Number): Update documentation.
18884 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
18885 library level Finalize_Storage_Only objects (these are not attached to
18886 any finalization list).
18888 * system-mingw.ads: (Underlying_Priorities): Update comment.
18890 2005-12-09 Robert Dewar <dewar@adacore.com>
18892 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
18893 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
18894 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
18895 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
18896 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
18897 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
18898 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
18899 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
18902 2005-12-09 Robert Dewar <dewar@adacore.com>
18904 * s-vaflop-vms-alpha.adb: (Ne_F): New function
18905 (Ne_G): New function
18907 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
18908 for tag assignment.
18909 (Rewrite_Comparison): Handle case where operation is not a comparison
18910 and ignore, and also handle type conversion case.
18912 2005-12-09 Thomas Quinot <quinot@adacore.com>
18914 * exp_aggr.ads: Fix typo in comment.
18915 ???-mark Convert_Aggr_In_Assignment as needing documentation.
18917 2005-12-09 Gary Dismukes <dismukes@adacore.com>
18919 * layout.adb: Replace various uses of byte by storage unit throughout.
18920 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
18921 static size, convert to storage units before returning, to conform to
18924 2005-12-09 Matthew Gingell <gingell@adacore.com>
18926 * g-exctra.ads: Fix typo in comment.
18928 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18930 * utils.c: Minor reformatting.
18932 2005-12-09 Robert Dewar <dewar@adacore.com>
18935 Further comment fixes to make the status of the default file clear
18937 * s-bitops.adb: Clarify comment for Bits_Array
18939 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
18941 * Make-lang.in (ada.install-normal): Remove.
18943 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
18945 * Make-lang.in: Remove all dependencies on s-gtype.
18947 2005-12-05 Richard Guenther <rguenther@suse.de>
18949 * utils.c (convert): Use fold_convert where appropriate.
18951 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
18953 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
18956 2005-12-02 Richard Guenther <rguenther@suse.de>
18958 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
18960 2005-12-01 Roger Sayle <roger@eyesopen.com>
18962 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
18965 2005-11-23 Laurent Guerby <laurent@guerby.net>
18967 * mlib-prj.adb (Build_Library): Initialize Delete.
18969 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
18971 * socket.c: Add extern int h_errno for rtems since networking header
18972 files are not available at this point in a tool bootstrap. Newlib
18973 only has basic C library header files.
18975 2005-11-19 Richard Guenther <rguenther@suse.de>
18976 Roger Sayle <roger@eyesopen.com>
18979 * misc.c (internal_error_function): Don't use vsprintf to format
18980 the error message text, instead use pp_format_text and the new
18981 pretty printer APIs. This allows handling of %qs, %w, etc.
18983 2005-11-18 Laurent Guerby <laurent@guerby.net>
18986 * Makefile.in: Use s-auxdec-empty for RTEMS.
18988 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18991 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
18992 a temporary if taking the address of something that is neither
18993 reference, declaration, or constant, since the gimplifier
18994 can't handle that case.
18996 2005-11-17 Laurent Guerby <laurent@guerby.net>
18999 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
19001 2005-11-16 Richard Guenther <rguenther@suse.de>
19003 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
19005 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
19008 * raise-gcc.c: Add missing stdarg.h include.
19010 2005-11-16 Richard Guenther <rguenther@suse.de>
19012 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
19013 (ada/misc.o): Likewise.
19015 2005-11-14 Thomas Quinot <quinot@adacore.com>
19017 * g-soccon.ads: Minor reformatting. Update comments.
19019 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
19020 gain visibility on the declaration of struct timeval.
19022 * g-soccon-freebsd.ads,
19023 g-soccon-darwin.ads,
19024 g-soccon-tru64.ads,
19028 g-soccon-solaris.ads,
19030 g-soccon-mingw.ads,
19031 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
19033 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
19034 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
19035 g-soccon-linux-x86.ads: New files.
19037 * g-socthi-mingw.adb:
19038 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
19040 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
19041 (time_t, suseconds_t): New types constructed to match the tv_sec
19042 and tv_usec fields of C struct timeval.
19043 (Timeval): Construct structure in terms of the new types.
19044 (Host_Errno): New function (imported from socket.c), returns last hosts
19047 * g-socthi-vxworks.adb: Add error handling circuitry.
19049 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
19050 components of struct timeval.
19051 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
19052 (Check_Selector): In error conditions, clear internal socket sets to
19053 avoid a memory leak.
19054 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
19055 Send_Timeout, Receive_Timeout.
19057 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
19058 the tv_sec and tv_usec fields of C struct timeval.
19059 (Timeval): Construct structure in terms of the new types.
19060 (Host_Errno): New function (imported from socket.c), returns last hosts
19063 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
19064 hosts database last error code.
19066 * gen-soccon.c: Complete value expansion should not be performed on
19067 TARGET, as it has the form of a math expression, and some components
19068 may be platform-defined macros.
19069 For VxWorks, generate the OK and ERROR values.
19070 New constants giving the sizes of the components of C struct timeval.
19072 2005-11-14 Robert Dewar <dewar@adacore.com>
19073 Ed Schonberg <schonberg@adacore.com>
19076 * types.ads: Include All_Checks in Suppress_Array
19078 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
19079 not(a=b), since we no longer do this rewriting, and hence it is not
19081 (Elaboration_Checks_Suppressed): Add special casing to
19082 deal with different cases of static and dynamic elaboration checks (all
19083 checks does not count in the first case, but does in the second).
19084 (Expr_Known_Valid): Do not assume that the result of any arbitrary
19085 function call is valid, since this is not the case.
19086 (Ensure_Valid): Do not apply validity check to a real literal
19087 in a universal or fixed context
19089 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
19090 elementary types using the operator in standard. It is cleaner not to
19091 modify the programmers intent, especially in the case of floating-point.
19092 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
19093 it did not matter because we always rewrote a/=b to not(a=b).
19094 (Expand_Allocator_Expression): For an allocator expression whose nominal
19095 subtype is an unconstrained packed type, convert the expression to its
19096 actual constrained subtype.
19097 Implement warning for <= or >= where < or > not possible
19098 Fix to Vax_Float tests (too early in many routines, causing premature
19099 Vax_Float expansions.
19101 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
19102 to be used with packages and generic packages as well as with
19104 (Suppress): Set All_Checks, but not Elaboration_Check, for case
19105 of pragma Suppress (All_Checks)
19106 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
19107 a string literal for precise control over warnings.
19108 Avoid raise of pragma in case of unrecognized pragma and just return
19111 * sem_prag.ads: Minor reformatting
19113 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
19114 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19115 Switch. Do not handle any exception.
19116 Include -gnatwx as part of -gnatg (warn on redundant parens)
19117 Allow optional = after -gnatm
19118 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
19119 longer sets Elaboration_Checks.
19120 Code to set warning mode moved to Sem_Warn
19121 so that it can be shared by pragma processing.
19123 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
19126 * s-taprop-solaris.adb:
19127 Change some <= to =, to avoid new warning
19129 * a-exexda.adb, prj-proc.adb:
19130 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
19131 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
19133 2005-11-14 Robert Dewar <dewar@adacore.com>
19135 * exp_vfpt.adb: Handle /= case
19136 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
19137 so that we do not get duplicate scaling for fixed point conversions.
19139 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
19141 2005-11-14 Matthew Gingell <gingell@adacore.com>
19143 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
19144 Increase default priority on Lynx from 15 to 17, and meet the Ada
19145 requirement that Default_Priority be ((Priority'First +
19146 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
19148 2005-11-14 Vincent Celier <celier@adacore.com>
19150 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19151 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
19152 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
19153 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
19154 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
19155 mlib-tgt-lynxos.adb (DLL_Prefix): New function
19157 2005-11-14 Doug Rupp <rupp@adacore.com>
19159 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
19162 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19164 * s-traces-default.adb, s-trafor-default.ads,
19165 s-tratas-default.adb: Fix compilation errors.
19167 2005-11-14 Jose Ruiz <ruiz@adacore.com>
19169 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
19170 raising the exception so the memory used is freed.
19172 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19174 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
19175 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
19176 (convert_address): Update comments and list of platforms using this.
19178 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
19181 2005-11-14 Pascal Obry <obry@adacore.com>
19182 Vincent Celier <celier@adacore.com>
19184 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
19187 * memroot.adb: Remove redundant with/use clause on
19188 System.Storage_Elements.
19190 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19192 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
19193 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
19194 related code to a-exexpr.adb
19195 (Save_Occurrence_And_Private): Move GCC EH related code to
19197 (Raise_Current_Excep): Add new variable Id with pragma
19198 volatile, to ensure that the variable lives on stack.
19200 * a-exexpr-gcc.adb, raise-gcc.c: New file.
19202 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
19204 Move GCC EH related code to a-exexpr-gcc.adb
19206 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
19208 Split the Linux version of g-soccon into separate variants for 32 and 64
19210 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
19211 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
19212 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
19213 of host variable $(RANLIB_FLAGS).
19214 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
19215 Code clean up: remove unused/obsolete targets.
19216 (EH_MECHANISM): New variable introduced to differenciate between the
19217 two EH mechanisms statically.
19218 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
19219 (LIBGNAT_OBJS): Add raise-gcc.o
19220 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
19221 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19222 supports VxWorks 6 RTPs.
19223 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
19224 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19226 * raise.c: Move all GCC EH-related routines to raise-gcc.c
19228 2005-11-14 Jose Ruiz <ruiz@adacore.com>
19230 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
19231 deferral level, when abort is not allowed, to a later stage (the
19233 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
19234 it will not get changed by the generated code. It was previously done
19237 2005-11-14 Thomas Quinot <quinot@adacore.com>
19238 Olivier Hainque <hainque@adacore.com>
19239 Eric Botcazou <ebotcazou@adacore.com>
19242 Factor common code to build a storage type for an unconstrained object
19243 from a fat or thin pointer type and a constrained object type.
19244 (annotate_value): Handle BIT_AND_EXPR.
19245 (annotate_rep): Don't restrict the back annotation of inherited
19246 components to the type_annotate_only case.
19247 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
19248 we are not defining the type.
19249 <E_Record_Type>: Likewise.
19250 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
19251 to get advantage of the new maybe_stabilize_reference interface, to
19252 ensure that what we reference is indeed stabilized instead of relying
19253 on assumptions on what the stabilizer does.
19254 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
19255 type imported through a limited_with clause, use its non-limited view.
19256 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
19258 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
19259 of #if sections + explicit comparisons of convention identifiers.
19260 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
19261 before early-returning for certain types when code generation is
19263 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
19264 nullification of gnu_expr we do for objects with address clause and
19265 that we are not defining.
19266 (elaborate_expression_1): Do not create constants when creating
19267 variables needed by the debug info: the dwarf2 writer considers that
19268 CONST_DECLs is used only to represent enumeration constants, and emits
19270 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
19271 object with an address clause into an indirect reference, drop the
19272 initializing expression.
19274 (STACK_CHECK_BUILTIN): Delete.
19275 (STACK_CHECK_PROBE_INTERVAL): Likewise.
19276 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
19277 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
19278 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
19279 corresponding to the renamed object as ignored for debugging purposes.
19281 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
19282 related): For a prefix that is a dereference of a fat or thin pointer,
19283 if there is an actual subtype provided by the front-end, use that
19284 subtype to build an actual type with bounds template.
19285 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
19286 is provided by the front-end, use that subtype to compute the size of
19287 the deallocated object.
19288 (gnat_to_gnu): When adding a statement into an elaboration procedure,
19289 check for a potential violation of a No_Elaboration_Code restriction.
19290 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19291 with extra arguments to control whether to recurse through non-values
19292 and to let the caller know if the stabilization has succeeded.
19293 (gnat_stabilize_reference): Now a simple wrapper around
19294 maybe_stabilize, for common uses without restriction on lvalues and
19295 without need to check for the success indication.
19296 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
19297 pass false instead of 0 as the FORCE argument which is a bool.
19298 (Identifier_to_gnu): Remove checks ensuring that an renamed object
19299 attached to a renaming pointer has been properly stabilized, as no such
19300 object is attached otherwise.
19301 (call_to_gnu): Invoke create_var_decl to create the temporary when the
19302 function uses the "target pointer" return mechanism.
19303 Reinstate conversion of the actual to the type of the formal
19304 parameter before any other specific treatment based on the passing
19305 mechanism. This turns out to be necessary in order for PLACEHOLDER
19306 substitution to work properly when the latter type is unconstrained.
19308 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
19310 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19311 with extra arguments to control whether to recurse through non-values
19312 and to let the caller know if the stabilization has succeeded.
19314 * utils2.c (gnat_build_constructor): Only sort the fields for possible
19315 static output of record constructor if all the components are constant.
19316 (gnat_build_constructor): For a record type, sort the list of field
19317 initializers in increasing bit position order.
19318 Factor common code to build a storage type for an unconstrained object
19319 from a fat or thin pointer type and a constrained object type.
19320 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
19321 types variants, and process special cases of VIEW_CONVERT expressions
19322 as their NOP_EXPR counterpart to ensure we get to the
19323 CORRESPONDING_VARs associated with CONST_DECls.
19324 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
19325 on the right-hand side.
19327 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
19329 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
19330 are converting back to its original type.
19331 (convert) <JM input>: Fallthrough regular conversion code instead of
19332 extracting the object if converting to a type variant.
19333 (create_var_decl): When a variable has an initializer requiring code
19334 generation and we are at the top level, check for a potential violation
19335 of a No_Elaboration_Code restriction.
19336 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
19337 SIZE and SIZE_UNIT which we need for later back-annotations.
19338 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
19339 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
19340 is an unchecked union.
19341 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
19342 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
19343 main variant, just replace the VIEW_CONVERT_EXPR.
19344 <UNION_TYPE>: Revert 2005-03-02 change.
19346 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
19348 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
19350 2005-11-14 Matthew Heaney <heaney@adacore.com>
19352 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
19353 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
19354 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
19355 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
19356 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
19357 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
19358 Compiles against the spec for ordered maps described in sections
19359 A.18.6 of the most recent (August 2005) AI-302 draft.
19361 2005-11-14 Olivier Hainque <hainque@adacore.com>
19363 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
19364 to ensure bias adjustments take place when need be and to prevent
19365 occurrences of intermediate overflows.
19367 2005-11-14 Matthew Gingell <gingell@adacore.com>
19368 Olivier Hainque <hainque@adacore.com>
19370 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
19373 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
19374 tracebacks on ia64 HP-UX and provide explanatory comment.
19375 Enable backtraces on ia64 GNU/Linux.
19376 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
19377 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
19379 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
19380 Javier Miranda <miranda@adacore.com>
19382 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
19383 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
19384 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
19385 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
19387 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
19388 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
19391 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
19392 subprogram that generates the external name associated with a
19393 secondary dispatch table.
19394 (Get_Secondary_DT_External_Name): New subprogram that generates the
19395 external name associated with a secondary dispatch table.
19397 2005-11-14 Emmanuel Briot <briot@adacore.com>
19399 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
19400 line in the ALI file to include both an instantiation reference, and a
19403 2005-11-14 Vincent Celier <celier@adacore.com>
19405 * clean.adb (Check_Project): Look for Ada code in extending project,
19406 even if Ada is not specified as a language.
19407 Use new function DLL_Prefix for DLL_Name
19408 (Clean_Interface_Copy_Directory): New procedure
19409 (Clean_Library_Directory): New procedure
19410 (Clean_Directory): Remove procedure, no longer used
19411 (Clean_Project): Do not delete any file in an externally built project
19413 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
19414 directory of an extending project, even when there are no Ada source
19416 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
19417 (Set_Ada_Paths.Add.Recursive_Add): Ditto
19419 * mlib-prj.adb (Check_Library): For all library projects, get the
19420 library file timestamp.
19421 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
19422 (Build_Library): Use new function DLL_Prefix for the DLL_Name
19423 (Clean): Remove procedure, no longer used
19424 (Ultimate_Extension_Of): New function
19425 (Build_Library): When cleaning the library directory, only remove an
19426 existing library file and any ALI file of a source of the project.
19427 When cleaning the interface copy directory, remove any source that
19428 could be a source of the project.
19430 * prj.ads, prj.adb (Project_Empty): Add values of new components
19431 Library_TS and All_Imported_Projects.
19432 (Project_Empty): Add values for new components of Project_Data:
19433 Library_ALI_Dir and Display_Library_ALI_Dir
19435 * prj-attr.adb: New project level attribute name Library_ALI_Dir
19437 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
19438 attribute Library_ALI_Dir.
19439 (Check_Library_Attributes): The library directory cannot be the same as
19440 any source directory of the project tree.
19441 (Check_Stand_Alone_Library): The interface copy directory cannot be
19442 the same as any source directory of the project tree.
19444 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
19445 all temporary files.
19447 2005-11-14 Robert Dewar <dewar@adacore.com>
19448 Ed Schonberg <schonberg@adacore.com>
19450 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19451 (Check_Elab_Call): A call within a protected body is never an
19452 elaboration call, and does not require checking.
19453 (Same_Elaboration_Scope): Take into account protected types for both
19455 (Activate_Elaborate_All_Desirable): New procedure
19457 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
19460 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
19461 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
19463 * lib-writ.ads, lib-writ.adb:
19464 Implement new AD/ED for Elaborate_All/Elaborate desirable
19465 Use new Elaborate_All_Desirable flag in N_With_Clause node
19467 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
19468 N_Free_Statement nodes.
19469 Define new class N_Subprogram_Instantiation
19470 Add Elaborate_Desirable flag to N_With_Clause node
19471 Add N_Delay_Statement (covering two kinds of delay)
19473 * debug.adb: Introduce d.f flag for compiler
19474 Add -da switch for binder
19476 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19477 Cyrille Comar <comar@adacore.com>
19479 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
19480 for task component, in the case of a limited aggregate. The enclosed
19481 object declaration will create it earlier. Otherwise, in the case of a
19482 nested aggregate, the object may appear in the wrong scope.
19483 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
19484 (Gen_Assign): If the component being assigned is an array type and the
19485 expression is itself an aggregate, wrap the assignment in a block to
19486 force finalization actions on the temporary created for each row of the
19488 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
19489 structures are initialized after all discriminants are set so that
19490 they can be accessed even when their offset is dynamic.
19492 2005-11-14 Robert Dewar <dewar@adacore.com>
19493 Hristian Kirtchev <kirtchev@adacore.com>
19495 * sem_attr.adb: Implement Machine_Rounding attribute
19496 (Analyze_Access_Attribute): The access attribute may appear within an
19497 aggregate that has been expanded into a loop.
19498 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
19499 'Terminated whenever the prefix is of a task interface class-wide type.
19500 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
19501 the prefix is of a task interface class-wide type.
19503 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
19506 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
19507 Remove pragma Inline for [Unaligned_]Valid.
19508 Add comments that Valid routines do not work for Vax_Float
19510 * exp_attr.adb: Implement Machine_Rounding attribute
19512 * snames.h: Add entry for Machine_Rounding attribute
19514 2005-11-14 Javier Miranda <miranda@adacore.com>
19515 Robert Dewar <dewar@adacore.com>
19516 Hristian Kirtchev <kirtchev@adacore.com>
19518 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
19519 and related): For a prefix that is an explicit dereference of an
19520 access to unconstrained packed array type, annotate the dereference
19521 with an actual subtype so GIGI can make a correct size computation.
19522 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
19523 'Unrestricted_Access, if the designated type is an interface we
19524 add a type conversion to force the displacement of the pointer
19525 to the secondary dispatch table.
19526 Use Universal_Real instead of Long_Long_Float when we need a high
19527 precision float type for the generated code (prevents gratuitous
19528 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
19529 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
19530 'Terminated for task interface class-wide objects. Generate a call to
19531 the predefined dispatching routine used to retrieve the _task_id from
19532 a task corresponding record.
19533 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
19535 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19536 (Check_Dispatching_Operation): Protect the frontend againts
19537 previously detected errors.
19539 * Makefile.rtl: Add new instantiations of system.fat_gen
19541 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
19542 Change name of instantiated package for better consistency
19543 with newly added system.fat_gen instantiations.
19545 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
19546 s-fvagfl.ads: New files.
19548 2005-11-14 Cyrille Comar <comar@adacore.com>
19549 Thomas Quinot <quinot@adacore.com>
19551 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
19552 assignment of a value of a tagged type that has been rewritten to a
19553 block statement, it is known by construction that no checks are
19554 necessary for the statements within the block: analyze it with checks
19556 (Expand_N_If_Statement): When killing a dead then-branch in an
19557 if-statement that has elsif_parts, recompute the Current_Value node
19558 for any entity whose value is known from the condition of the first
19560 (Expand_N_Return_Statement): When returning a mutable record, convert
19561 the return value into its actual subtype in order to help the backend
19562 to return the actual size instead of the maximum. This is another
19563 aftermath of not returning mutable records on the sec-stack anymore.
19565 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
19566 handling of error msg for suspicious reverse range iteration.
19567 (Check_Possible_Current_Value_Condition): Move declaration from body to
19568 spec, to allow this subprogram to be called from exp_ch5.
19570 2005-11-14 Thomas Quinot <quinot@adacore.com>
19572 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
19573 generate a set of nested array aggregates instead of a single flat
19574 aggregate for multi-dimensional arrays.
19576 2005-11-14 Pascal Obry <obry@adacore.com>
19578 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
19579 by spawnve is a process handle, no need to convert. Add a parameter
19580 close to control wether the process handle must be closed.
19581 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
19582 a process handle, not need to convert.
19583 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
19585 * g-expect.adb: (Kill): Document the new close parameter.
19586 (Close): Do not release the process handle in the kill there as
19587 waitpid() is using it.
19588 (Send_Signal): Release the process handle.
19590 2005-11-14 Robert Dewar <dewar@adacore.com>
19592 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
19593 need a high precision float type for the generated code (prevents
19594 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19597 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
19598 need a high precision float type for the generated code (prevents
19599 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19601 (Expand_Width_Attribute): In configurable run-time, the attribute is not
19602 allowed on non-static enumeration subtypes. Force a load error to emit
19603 the correct diagnostic.
19605 2005-11-14 Thomas Quinot <quinot@adacore.com>
19606 Robert Dewar <dewar@adacore.com>
19607 Ed Schonberg <schonberg@adacore.com>
19609 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
19610 subtype to compute the size of the designated object at run-time,
19611 create such a subtype and store it in the Actual_Designated_Subtype
19612 attribute of the N_Free_Statement.
19613 Generate itype for classwide designated object in both cases of
19614 user-specified storage pool: specific and class-wide, not only in the
19616 Raise CE when trying to set a not null access type object to null.
19617 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
19618 an explicit loop, because freeze nodes make its position variable.
19620 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
19623 2005-11-14 Javier Miranda <miranda@adacore.com>
19625 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
19626 Build_Stream_Procedure): Add the null-excluding attribute to the first
19628 This has no semantic meaning under Ada95 mode but it is a
19629 requirement under Ada05 mode.
19631 * par-ch3.adb (P_Access_Definition): Addition of warning message if
19632 the null exclusion is used under Ada95 mode
19633 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
19634 (P_Access_Definition): Remove assertion that forbids the use of
19635 the null-exclusion feature in Ada95.
19637 2005-11-14 Robert Dewar <dewar@adacore.com>
19639 * impunit.adb: Exclude container helper units not intended for use by
19642 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19644 * freeze.adb (Freeze_Entity): For an access formal that is an access
19645 to subprogram, freeze the anonymous subprogram type at the same time,
19646 to prevent later freezing in the wrong scope, such as the enclosing
19648 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
19649 subprogram whenever available.
19651 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19654 * gnatvsn.ads (Library_Version): Bump to 4.1
19656 2005-11-14 Robert Dewar <dewar@adacore.com>
19658 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
19659 Storage_Offset to avoid wrap around causing invalid results.
19661 2005-11-14 Pascal Obry <obry@adacore.com>
19663 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
19665 (Scan_Bind_Arg): Fail with an error message if -M option is used
19666 on a native compiler.
19668 2005-11-14 Robert Dewar <dewar@adacore.com>
19669 Vincent Celier <celier@adacore.com>
19671 * gprep.adb: Implement -C switch to scan comments
19673 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
19675 * scans.ads: Comment updates (including new use of Tok_Comment in
19678 * opt.ads: Add documentation for flags that are used by gprmake,
19679 currently and in the next version of gprmake.
19680 (Verbosity_Level): New variable
19681 Add Replace_In_Comments switch
19683 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
19685 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
19687 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19689 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
19690 message, friendlier.
19692 2005-11-14 Robert Dewar <dewar@adacore.com>
19694 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
19696 2005-11-14 Doug Rupp <rupp@adacore.com>
19698 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
19700 2005-11-14 Robert Dewar <dewar@adacore.com>
19702 * interfac.ads: Change declarations of IEEE float types so that we no
19703 longer need a separate version of this package for VMS.
19705 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19707 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
19708 internal entity created for the declaration of a child subprogram body
19709 with no spec as coming from source, to generate proper cross-reference
19712 2005-11-14 Vincent Celier <celier@adacore.com>
19714 * make.adb (Compile_Sources): Change verbose message to minimum
19715 verbosity level High for "is in an Ada library", "is a read-only
19716 library" and "is an internal library",
19717 (Create_Binder_Mapping_File): Path name of ALI file for library project
19718 must include the library directory, not the object directory.
19719 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
19720 for new switches -vl, -vm and -vh.
19721 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
19722 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
19723 (Compile_Sources): Do not attempt to compile if an ALI file is missing
19724 in a project that is externally built.
19725 (Compute_All_Imported_Projects): New procedure
19726 (Gnatmake): Check if importing libraries should be regenerated because
19727 at least an imported library is more recent.
19728 (Initialize): For each project compute the list of the projects it
19729 imports directly or indirectly.
19730 (Add_Library_Search_Dir): New procedure, used in place of
19731 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19732 put in the search paths.
19733 (Add_Source_Search_Dir): New procedure, used in place of
19734 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19735 put in the search paths.
19736 (Mark_Directory): Resolve the absolute path the directory before marking
19739 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
19740 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19741 Switch. Do not handle any exception.
19742 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
19743 so that the switch is recognized as valid.
19744 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
19746 2005-11-14 GNAT Script <nobody@adacore.com>
19748 * Make-lang.in: Makefile automatically updated
19750 2005-11-14 Pascal Obry <obry@adacore.com>
19752 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
19754 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
19755 In both cases the last argument was dropped.
19757 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
19759 * namet.h: (Column_Numbe): New type.
19760 (Get_Column_Number): Define to sinput__get_column_number.
19761 (Instantiation): Define to sinput__instantiation.
19762 (Get_Column_Number): Declare.
19763 (Instantiation): Likewise.
19765 2005-11-14 Robert Dewar <dewar@adacore.com>
19767 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
19768 syntax, which could cause compiler hangs.
19770 2005-11-14 Vincent Celier <celier@adacore.com>
19772 * prj-ext.adb: Take into account new environment variable
19773 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
19775 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
19776 normalize its path name, making it absolute and resolving symbolic
19777 links, and replace the original if resolved path is different.
19779 2005-11-14 Vincent Celier <celier@adacore.com>
19781 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
19782 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
19784 2005-11-14 Emmanuel Briot <briot@adacore.com>
19786 * prj-pp.adb (Print): Do not output the with statement if the
19787 associated name is empty, which happens for virtual extending projects.
19788 (Print): Preserve the "extends all" attribute when printing the project.
19790 * prj-tree.ads (String_Value_Of): Add comment about returned value for
19791 a virtual extending project.
19793 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19795 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
19796 rhs of an assignment even if the type is unconstrained, when the
19797 context is non-expanding.
19798 In an inlined body, if the context type is private,
19799 resolve with its full view, which must be a composite type.
19801 2005-11-14 Robert Dewar <dewar@adacore.com>
19802 Ed Schonberg <schonberg@adacore.com>
19804 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19805 Do not give obsolescent warning on with of subprogram (since we
19807 (Analyze_With_Clause): Add test for obsolescent package
19808 (Install_Context_Clauses): If the unit is the body of a child unit, do
19809 not install twice the private declarations of the parents, to prevent
19810 circular lists of Use_Clauses in a parent.
19811 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
19812 compiling body of child unit.
19813 Use new class N_Subprogram_Instantiation
19814 (Expand_With_Clause): If this is a private with_clause for a child unit,
19815 appearing in the context of a package declaration, then the implicit
19816 with_clauses generated for parent units are private as well.
19817 (License_Check): Do not generate message if with'ed unit is internal
19819 2005-11-14 Gary Dismukes <dismukes@adacore.com>
19820 Ed Schonberg <schonberg@adacore.com>
19821 Thomas Quinot <quinot@adacore.com>
19823 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
19824 names are internal, because they will not have a corresponding partner
19825 in the actual package.
19826 (Analyze_Formal_Package): Move the setting of the formal package spec's
19827 Generic_Parent field so that it occurs prior to analyzing the package,
19828 to allow proper operation of Install_Parent_Private_Declarations.
19829 (Analyze_Package_Instantiation): Set the instantiated package entity's
19830 Package_Instantiation field.
19831 (Get_Package_Instantiation_Node): Move declaration to package spec.
19832 Retrieve the N_Package_Instantiation node when the Package_Instantiation
19834 (Check_Generic_Child_Unit): Within an inlined call, the only possible
19835 instantiation is Unchecked_Conversion, for which no parents are needed.
19836 (Inline_Instance_Body): Deinstall and record the use_clauses for all
19837 parent scopes of a scope being removed prior to inlining an instance
19839 (Analyze_Package_Instantiation): Do not perform front-end inlining when
19840 the current context is itself an instance within a non-instance child
19841 unit, to prevent scope stack errors.
19842 (Save_References): If the node is an aggregate that is an actual in a
19843 call, rewrite as a qualified expression to preserve some type
19844 information, to resolve possible ambiguities in the instance.
19845 (Instance_Parent_Unit): New global variable to record the ultimate
19846 parent unit associated with a generic child unit instance (associated
19847 with the existing Parent_Unit_Visible flag).
19848 (type Instance_Env): New component Instance_Parent_Unit for stacking
19849 parents recorded in the global Instance_Parent_Unit.
19850 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
19852 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
19853 it's not a top-level unit, and only do this if Instance_Parent_Unit is
19854 not already set. Replace test of Is_Child_Unit with test of parent's
19855 scope against package Standard. Add comments and a ??? comment.
19856 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
19857 on a child instance parent to test that the parent equals
19858 Instance_Parent rather than simply checking that the unit is not a
19860 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
19861 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
19862 a formal interface are ancestors of the corresponding actual.
19863 (Validate_Formal_Interface_Type): Additional legality checks.
19864 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
19865 interface types with ancestors.
19866 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
19867 to diagnose attempts to use generic within its own declaration.
19869 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19870 Javier Miranda <miranda@adacore.com>
19872 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
19874 (Build_Private_Derived_Type): The entity of the created full view of the
19875 derived type does not come from source. If after installing the private
19876 declarations of the parent scope the parent is still private, use its
19877 full view to construct the full declaration of the derived type.
19878 (Build_Derived_Record_Type): Relax the condition that controls the
19879 execution of the check that verifies that the partial view and
19880 the full view agree in the set of implemented interfaces. In
19881 addition, this test now only takes into account the progenitors.
19882 (Derive_Interface_Subprograms): No need to derive subprograms
19883 of ancestors that are interfaces.
19884 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
19886 Change name Is_Package to Is_Package_Or_Generic_Package
19887 (Complete_Subprograms_Derivation): Handle the case in which the full
19888 view is a transitive derivation of the ancestor of the partial view.
19889 (Process_Full_View): Rename local subprogram Find_Interface_In_
19890 Descendant to Find_Ancestor_Interface to leave the code more clear.
19891 Remove wrong code that avoids the generation of an error message
19892 when the immediate ancestor of the partial view is an interface.
19893 In addition some minor reorganization of the code has been done to
19894 leave it more clear.
19895 (Analyze_Type_Declaration): If type has previous incomplete tagged
19896 partial view, inherit properly its primitive operations.
19897 (Collect_Interfaces): Make public, for analysis of formal
19899 (Analyze_Interface_Declaration): New procedure for use for regular and
19900 formal interface declarations.
19901 (Build_Derived_Record_Type): Add support for private types to the code
19902 that checks if a tagged type implements abstract interfaces.
19903 (Check_Aliased_Component_Type): The test applies in the spec of an
19905 (Access_Type_Declaration): Clean up declaration of malformed type
19906 declared as an access to its own classwide type, to prevent cascaded
19908 (Collect_Interfaces): For private extensions and for derived task types
19909 and derived protected types, the parent may be an interface that must
19910 be included in the interface list.
19911 (Access_Definition): If the designated type is an interface that may
19912 contain tasks, create Master_Id for it before analyzing the expression
19913 of the declaration, which may be an allocator.
19914 (Record_Type_Declaration): Set properly the interface kind, for use
19915 in allocators, the creation of master id's for task interfaces, etc.
19917 2005-11-14 Javier Miranda <miranda@adacore.com>
19918 Ed Schonberg <schonberg@adacore.com>
19920 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
19921 omitted in case of stream attribute subprograms.
19922 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
19923 appear immediately after a subprogram body, when there is no previous
19924 subprogram declaration.
19925 Change name Is_Package to Is_Package_Or_Generic_Package
19926 (Process_Formals): A non null qualifier on a non null named access
19927 type is not an error, and is a warning only if Redundant_Constructs
19930 2005-11-14 Gary Dismukes <dismukes@adacore.com>
19931 Ed Schonberg <schonberg@adacore.com>
19933 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
19934 nested within Analyze_Package_Specification to install the private
19935 declarations and use clauses within each of the parent units of a
19936 package instance of a generic child package.
19937 (Analyze_Package_Specification): When entering a private part of a
19938 package associated with a generic instance or formal package, the
19939 private declarations of the parent must be installed (by calling new
19940 procedure Install_Parent_Private_Declarations).
19941 Change name Is_Package to Is_Package_Or_Generic_Package
19942 (Preserve_Full_Attributes): For a synchronized type, the corresponding
19943 record is absent in a generic context, which does not indicate a
19946 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19948 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
19949 not try to rewrite a renamed stream attribute, because the operations
19950 on the type may not have been generated.
19951 Handle properly a renaming_as_body generated for a stream operation
19952 whose default is abstract because the object type itself is abstract.
19953 (Find_Type): If the type is incomplete and appears as the prefix of a
19954 'Class reference, it is tagged, and its list of primitive operations
19955 must be initialized properly.
19956 (Chain_Use_Clauses): When chaining the use clauses that appear in the
19957 private declaration of a parent unit, prior to compiling the private
19958 part of a child unit, find on the scope stack the proper parent entity
19959 on which to link the use clause.
19960 (Note_Redundant_Use): Emit a warning when a redundant use clause is
19962 (Analyze_Object_Renaming): An attribute reference is not a legal object
19963 if it is not a function call.
19965 2005-11-14 Robert Dewar <dewar@adacore.com>
19966 Ed Schonberg <schonberg@adacore.com>
19968 * sem_eval.adb: Implement d.f flag
19969 (Subtype_Statically_Match): A generic actual type has unknown
19970 discriminants when the corresponding actual has a similar partial view.
19971 If the routine is called to validate the signature of an inherited
19972 operation in a child instance, the generic actual matches the full view,
19974 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
19975 Ed Schonberg <schonberg@adacore.com>
19976 Robert Dewar <dewar@adacore.com>
19977 Thomas Quinot <quinot@adacore.com>
19979 * sem_res.adb (Resolve_Call): Provide a better error message whenever
19980 a procedure call is used as a select statement trigger and is not an
19981 entry renaming or a primitive of a limited interface.
19982 (Valid_Conversion): If the operand has a single interpretation do not
19983 remove address operations.
19984 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
19985 statement to inhibit warning.
19986 (Resolve_Unary_Op): Do not produce a warning when
19987 processing an expression of the form -(A mod B)
19988 Use Universal_Real instead of Long_Long_Float when we need a high
19989 precision float type for the generated code (prevents gratuitous
19990 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
19991 (Resolve_Concatenation_Arg): Improve error message when argument is an
19992 ambiguous call to a function that returns an array.
19993 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
19994 there is an implicit operator in the given scope if we are within an
19995 instance: legality check has been performed on the generic.
19996 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
19997 after resolving operand, to avoid false warnings on overloaded calls.
19999 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20000 Javier Miranda <miranda@adacore.com>
20003 * sem_type.adb (Covers): In an inlined body, a composite type matches
20004 a private type whose full view is a composite type.
20005 (Interface_Present_In_Ancestor): Protect the frontend against
20006 previously detected errors to ensure that its compilation
20007 with assertions enabled gives the same output that its
20008 compilation without assertions.
20009 (Interface_Present_In_Ancestor): Add support for private types.
20010 Change name In_Actual to In_Generic_Actual (clean up)
20011 (Disambiguate): New predicate In_Actual, to recognize expressions that
20012 appear in the renaming declaration generated for generic actuals, and
20013 which must be resolved in the outer context.
20015 2005-11-14 Robert Dewar <dewar@adacore.com>
20016 Thomas Quinot <quinot@adacore.com>
20017 Hristian Kirtchev <kirtchev@adacore.com>
20018 Ed Schonberg <schonberg@adacore.com>
20020 * sem_util.ads, sem_util.adb: Change name Is_Package to
20021 Is_Package_Or_Generic_Package.
20022 (Check_Obsolescent): New procedure.
20023 (Set_Is_Public): Remove obsolete junk test.
20024 (Set_Public_Status): Do not set Is_Public on an object whose declaration
20025 occurs within a handled_sequence_of_statemets.
20026 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
20027 for a parameterless procedure.
20028 (Enter_Name): Recognize renaming declarations created for private
20029 component of a protected type within protected operations, so that
20030 the source name of the component can be used in the debugger.
20032 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20033 Robert Dewar <dewar@adacore.com>
20035 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
20036 of a generic subprogram are not visible outside the body.
20037 (Set_Warning_Switch): New procedure (code to set warning mode moved
20038 here from Switch.C so that it can be shared by pragma processing.
20039 (Check_References): Special case warning for non-modified non-imported
20041 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
20042 form with a string literal argument
20044 2005-11-14 Javier Miranda <miranda@adacore.com>
20046 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
20048 (Write): Addition of "not null" to the anonymous access.
20049 (Read): Addition of "not null" to the anonymous access.
20050 (Write): Addition of "not null" to the anonymous access.
20052 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
20053 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
20054 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
20055 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
20056 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
20057 "not null" to the anonymous access.
20059 2005-11-14 Robert Dewar <dewar@adacore.com>
20061 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
20064 2005-11-14 Vincent Celier <celier@adacore.com>
20066 * switch.adb (Bad_Switch): New procedure
20067 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
20068 message when in error.
20070 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
20071 Too_Many_Output_Files): Remove declarations, no longer used.
20072 (Scan_Nat): New parameter Switch
20074 (Bad_Switch): New procedure
20076 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
20077 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
20078 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
20079 to Osint.Fail. Do not handle any exception.
20081 2005-11-14 Vincent Celier <celier@adacore.com>
20083 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
20084 designates a non existent directory.
20086 2005-11-14 Robert Dewar <dewar@adacore.com>
20088 * xgnatugn.adb: Replace invalid membership test by 'Valid
20090 2005-11-14 Vincent Celier <celier@adacore.com>
20092 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
20093 there is no object directory.
20095 2005-11-14 Robert Dewar <dewar@adacore.com>
20097 * usage.adb: Minor adjustment to output format, use nn instead of nnn
20098 (so that -gnateInnn does not run into next column)
20100 2005-11-14 Ed Falis <falis@adacore.com>
20102 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
20105 2005-11-14 Cyrille Comar <comar@adacore.com>
20107 * s-chepoo.ads: Add comments on Dereference.
20108 Remove unnecessary inherited abstract primitives.
20111 2005-11-14 Robert Dewar <dewar@adacore.com>
20113 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
20114 node parameter, not needed, since it is available as Declaration_Node.
20116 2005-11-14 Geert Bosch <bosch@adacore.com>
20118 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
20119 grammatically correct.
20121 2005-11-14 Vincent Celier <celier@adacore.com>
20123 * s-fileio.ads: Correct spelling error in comment
20125 2005-11-14 Cyrille Comar <comar@adacore.com>
20126 Robert Dewar <dewar@adacore.com>
20127 Vincent Celier <celier@adacore.com>
20128 Ben Brosgol <brosgol@adacore.com>
20129 Jose Ruiz <ruiz@adacore.com>
20130 Pascal Obry <obry@adacore.com>
20133 Document that -fstack-check is needed for strict compliance with the
20134 Ada 95 Reference Manual.
20135 Correct reference to VAX systems to meet HP guidelines
20136 Add documentation for new gnatmake switches -vl, -vm and -vh
20137 Replace DEC Ada by HP Ada
20138 Replace DIGITAL by HP
20139 Remove empty section on tools in compatibility section
20140 Clarify the Windows convention semantics.
20141 Document the Win32 calling convention.
20142 The Stdcall, Win32 and DLL convention are synonyms.
20143 Add a note in -gnatR description about zero size record components
20144 Note on new >= and <= warnings for -gnatwc
20145 Document that equal sign after -gnatm is optional.
20146 Note that strip is working fine on DLL built with a Library
20147 Project. The restriction apply only to DLL built with gnatdll.
20148 Update section about the way to debug a DLL.
20149 Update information about the DLL convention.
20150 Document -C switch for gnatprep
20151 Document new attribute Library_ALI_Dir
20152 Update elaboration doc to include implicit Elaborate pragmas now
20153 generated for subprogram instantiations.
20154 Document limitation on executable names that include spaces for --GCC,
20155 --GNATBIND, and --GNATLINK switches.
20156 Document that -w causes -gnatws to be added at start of gcc switches
20158 * gnat_rm.texi: Document that -mieee is needed for generating infinite
20159 and NaN values in case of overflow on machines that are not fully
20160 compliant with the IEEE floating-point standard.
20161 Create a section describing the set of compiler options needed for
20162 strict compliance with the Ada 95 Reference Manual.
20163 Add documentation for pragma Obsolescent applied to a package
20164 Clarify potential issues of mixed language programs related to the
20165 I/O buffering enabling in the elaboration of the GNAT runtime.
20166 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
20167 This documentation only patch adds extra documentsion for pragma
20168 Restrictions (No_Elaboration_Code), explaining why it is not possible
20169 to document this restriction in terms of allowed source constructs.
20170 Document string literal form of pragma Warnings
20171 Document new attribute Library_ALI_Dir
20172 Add documentation on stable attributes in project files that was missing
20174 * gnat-style.texi: Indicate that paragraphs within a single comment
20175 should be separated by empty comment lines
20177 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
20180 * bindusg.adb: Minor cleanup, put -m before -M for consistency
20182 2005-11-14 Robert Dewar <dewar@adacore.com>
20184 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
20185 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
20186 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
20187 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
20188 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
20189 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
20190 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
20191 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
20192 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
20193 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
20194 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
20195 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
20196 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
20197 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
20198 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
20199 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
20200 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
20201 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
20202 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
20203 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
20204 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20205 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
20206 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
20207 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
20208 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
20209 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
20210 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
20211 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
20212 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
20213 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
20214 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
20215 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
20216 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
20217 system-interix.ads, system-solaris-sparc.ads,
20218 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
20219 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
20220 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
20221 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
20222 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
20223 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
20224 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
20225 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20226 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20227 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
20228 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
20229 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
20230 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
20231 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
20232 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
20233 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20234 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
20235 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
20236 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
20237 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
20238 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
20239 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
20240 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
20241 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
20242 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
20243 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20244 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20245 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
20246 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
20247 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
20248 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
20249 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
20250 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20251 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
20252 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
20253 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
20254 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
20255 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
20256 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
20257 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
20258 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
20259 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
20260 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
20261 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
20262 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
20263 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
20264 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
20265 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
20266 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
20267 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
20268 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
20269 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
20270 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
20271 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
20272 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
20273 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
20274 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
20275 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
20276 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
20277 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
20278 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
20279 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
20280 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20281 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
20282 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
20283 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
20284 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
20285 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
20286 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
20287 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
20288 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
20289 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
20290 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
20291 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
20292 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
20293 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
20294 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
20295 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
20296 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
20297 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
20298 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
20299 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
20300 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
20301 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
20302 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
20303 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
20304 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
20305 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
20306 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
20307 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
20308 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
20309 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
20310 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
20311 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
20312 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
20313 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
20314 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
20315 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
20316 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
20317 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
20318 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
20319 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
20320 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
20321 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
20322 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
20323 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
20324 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
20325 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
20326 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
20327 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
20328 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
20329 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
20330 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
20331 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
20332 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
20333 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
20334 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
20335 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
20336 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
20337 a-numaux-darwin.ads, a-numaux-darwin.adb,
20338 a-swuwha.ads, a-stunha.ads: Minor reformatting
20340 2005-11-14 Robert Dewar <dewar@adacore.com>
20343 * osint-m.adb: Add pragma Elaborate_All for Osint
20345 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
20348 * trans.c (call_to_gnu): Restore statement lost in translation.
20350 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
20352 * init.c: Use the Linux-specific section for the IA-64/Linux target.
20353 (__gnat_adjust_context_for_raise): Add conditional code so that the
20354 IA-64 is also supported.
20356 2005-11-03 James E Wilson <wilson@specifix.com>
20359 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
20360 TREE_OVERFLOW check.
20362 2005-09-21 Olivier Hainque <hainque@adacore.com>
20365 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
20366 as we create them to store a size in bits.
20368 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
20376 * utils2.c (build_return_expr): New helper function.
20377 * gigi.h (build_return_expr): Declare it.
20378 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
20379 of manually building the RETURN_EXPR tree.
20380 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
20381 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
20382 build_binary_op for the "target pointer" case. Use build_return_expr
20383 instead of manually building the RETURN_EXPR tree.
20385 2005-09-16 Laurent Guerby <laurent@guerby.net>
20388 * s-tpinop.ads: Make this unit Preelaborate.
20390 2005-09-16 Andreas Jaeger <aj@suse.de>
20392 * socket.c: Add string.h for memcpy.
20394 2005-09-05 Arnaud Charlet <charlet@adacore.com>
20396 * dec-io.ads, dec-io.adb: Removed, no longer used.
20398 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20400 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
20402 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20403 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
20404 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
20405 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
20406 dependent units are Preelaborate.
20407 (Initialize): Call Interrupt_Managemeent.Initialize and
20408 OS_Primitives.Initialize to ensure proper initialization of this unit.
20409 Remove use of System.Soft_Links
20410 Make this unit Preelaborate.
20412 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20413 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
20414 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
20415 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
20416 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
20417 s-tratas.ads, s-tasinf.ads: Minor reformatting.
20418 Add pragma Preelaborate, since these packages are suitable for this
20422 * s-traent-vms.ads, s-intman-dummy.adb,
20423 s-taprop-dummy.adb: Make this unit Preelaborate.
20425 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
20426 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
20427 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
20428 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
20429 s-intman-solaris.adb, s-intman-irix-athread.adb,
20430 s-intman-irix.adb: Mark this unit Preelaborate.
20431 (Initialize): New procedure.
20434 * s-taspri-linux.ads: Removed.
20436 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
20437 as done by other implementations (e.g. posix).
20439 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
20440 responsible for deferring abort.
20441 Mark this unit Preelaborate.
20443 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
20444 proper initialization of the tasking run-time.
20446 * s-tasdeb.ads: Mark this unit Preelaborate.
20447 (Known_Tasks): Add explicit default value to avoid elaboration code.
20449 * s-inmaop-vms.adb (Elaboration code): Add call to
20450 Interrupt_Management.Initialize since the elaboration code depends on
20451 proper initialization of this package.
20453 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
20454 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
20455 s-osprim-posix.adb: Make this unit Preelaborate.
20457 * a-calend.adb: Add call to OS_Primitives.Initialize
20459 * a-elchha.adb: Update use of Except.Id.Full_Name.
20460 Minor reformatting.
20461 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
20463 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
20464 Move with clauses outside Warnings Off now that dependent units are
20466 Use raise xxx with "..."; Ada 2005 form.
20468 * a-taside.ads, a-taside.adb:
20469 Remove some dependencies, to make it easier to make this unit truly
20471 Rewrite some code to be conformant with Preelaborate rules.
20473 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
20474 marked Preelaborate in the future.
20476 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
20477 these units Preelaborate.
20479 * s-exctab.adb: Update use of Except.Id.Full_Name.
20481 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
20482 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
20483 Set_Exc_Stack_Addr): Removed, no longer used.
20484 Remove reference to *Machine_State_Addr*, no longer needed.
20486 * s-stalib.ads: Mark this unit as Preelaborate[_05].
20487 (Exception_Data): Full_Name is now a System.Address so that this unit
20488 can be made Preelaborate.
20489 Clean up/simplify code thanks to Full_Name being a System.Address.
20490 Remove obsolete pragma Suppress (All_Checks), no longer needed.
20492 * s-taskin.ads, s-taskin.adb:
20493 Move with clauses outside Warnings Off now that dependent units are
20495 Make this unit Preelaborate.
20496 (Initialize): New proceduure, replace elaboration code and makes the
20497 set up of the tasking run-time cleaner.
20498 (Detect_Blocking): Now a function instead of a deferred boolean, to
20499 obey Preelaborate rules.
20501 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
20502 soft links, no longer used.
20504 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
20505 packages are suitable for this categorization.
20507 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
20508 since we compile run-time sources in Ada 2005 mode.
20509 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
20510 avoid having s-taprop*.adb depend on s-soflin and to avoid code
20512 Remove reference to *Machine_State_Addr*, no longer needed.
20514 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20516 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
20517 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20518 Remove reference to System.Exceptions.
20520 * s-mastop-x86.adb: Removed, no longer used.
20522 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
20524 * a-excach.adb: Minor reformatting.
20526 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
20527 instead fix new warnings that were hidden by this change.
20528 (AAA, ZZZ): Removed, replaced by...
20529 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
20530 are used instead of constants, to help make Ada.Exception truly
20532 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
20533 Raise_Storage_Error): File is now a System.Address, to simplify code.
20534 (Elab code): Removed, no longer used.
20535 (Null_Occurrence): Remove Warnings Off and make this construct
20537 Remove code related to front-end zero cost exception handling, since
20538 it is no longer used.
20539 Remove -gnatL/-gnatZ switches.
20541 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
20542 Update use of Except.Msg.
20544 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
20545 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
20546 to front-end zero cost exception handling, since it is no longer used.
20547 Remove -gnatL/-gnatZ switches.
20549 * lib-writ.ads: Minor reformatting
20552 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
20554 * Make-lang.in: Remove references to s-except.ads
20556 * s-except.ads: Removed, no longer used.
20558 * s-mastop.ads, s-mastop.adb:
20559 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20560 Remove reference to System.Exceptions.
20562 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
20563 switch-b.adb: Remove code related to front-end zero cost exception
20564 handling, since it is no longer used.
20565 Remove -gnatL/-gnatZ switches.
20567 2005-09-01 Robert Dewar <dewar@adacore.com>
20568 Gary Dismukes <dismukes@adacore.com>
20569 Javier Miranda <miranda@adacore.com>
20571 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
20572 type by valid test and generate warning.
20573 (Tagged_Membership): Generate call to the run-time
20574 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
20575 Change formal name Subtype_Mark to Result_Definition in several calls to
20576 Make_Function_Specification.
20577 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
20578 check for proper accessibility of the operand of a class-wide allocator.
20579 The check can be left out if checks are suppressed or if the expression
20580 has a specific tagged type whose level is known to be safe.
20582 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
20583 generates the run-time check associated with null-excluding entities.
20584 (Expand_N_Return_Statement): Add tests to determine if the accessibility
20585 check on the level of the return expression of a class-wide function
20586 can be elided. The check usually isn't needed if the expression has a
20587 specific type (unless it's a conversion or a formal parameter). Also
20588 add a test for whether accessibility checks are suppressed. Augment
20589 the comments to describe the conditions for performing the check.
20591 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
20592 Javier Miranda <miranda@adacore.com>
20593 Gary Dismukes <dismukes@adacore.com>
20594 Ed Schonberg <schonberg@adacore.com>
20596 * a-tags.adb (IW_Membership): Give support to
20597 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
20598 subprogram has been extended to look for the tag in the ancestors tag
20600 Update the structure of the GNAT Dispatch Table to reflect the
20601 additional two tables used in dispatching selects.
20602 Introduce appropriate array types and record components in
20603 Type_Specific_Data to reflect the two tables.
20604 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
20605 the TSD of a tag, indexed by position.
20606 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
20607 operation kind in the TSD of a tag, indexed by position.
20609 * a-tags.ads: Introduce an enumeration type to capture different
20610 primitive operation kinds. Define a constant reflecting the number of
20611 predefined primitive operations.
20612 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
20613 of an entry wrapper.
20614 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
20615 callable entity of a primitive operation.
20617 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
20618 primitive operations used in dispatching selects for limited
20619 interfaces, limited tagged, task and protected types what implement a
20621 (Freeze_Type): Generate the bodies of the primitive operations used in
20622 dispatching selects for limited tagged, task and protected types that
20623 implement a limited interface. Generate statements to populate the two
20624 auxiliary tables used for dispatching in select statements.
20625 (Freeze_Record_Type): Add call to initialize the dispatch table entries
20626 associated with predefined interface primitive operations.
20627 (Build_Dcheck_Function): Change Set_Subtype_Mark to
20628 Set_Result_Definition.
20629 (Build_Variant_Record_Equality): Change Subtype_Mark to
20631 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
20632 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
20633 (Build_Assignment): Simplify the code that adds the run-time-check.
20634 (Expand_N_Object_Declaration): Code cleanup.
20636 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
20637 entries when there is a protected type that implements a limited
20640 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
20641 common routines used in expansion of dispatching selects.
20642 (Add_Private_Declarations): Select the appropriate protection type when
20643 there is a protected type that implements a limited interface.
20644 (Build_Parameter_Block): Generate a wrapped parameter block.
20645 (Build_Protected_Subprogram_Body): Select the appropriate type for
20646 locking entries when there is a protected type that implements a
20648 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
20649 classified as entry wrappers.
20650 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
20651 asynchronous selects.
20652 (Expand_N_Conditional_Entry_Call): Add support for expansion of
20653 dispatching conditional selects.
20654 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
20655 protection when there is a protected type that implements limited
20657 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
20659 (Extract_Dispatching_Call): Extract the entity of the name of a
20660 dispatching call, the object parameter, actual parameters and
20661 corresponding formals.
20662 (Make_Initialize_Protection): Correct logic of protection initialization
20663 when there is a protected type that implements a limited interface.
20664 (Parameter_Block_Pack): Populate a wrapped parameter block with the
20665 values of actual parameters.
20666 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
20667 block and assign them to the original actual parameters.
20669 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
20670 (Build_Protected_Sub_Specification): Change the type and name of the
20671 last formal to account for the increased variety of protection modes.
20673 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
20674 entities. Used to save the value of the Is_Hidden attribute when the
20675 limited-view is installed.
20676 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
20677 the attribute of procedures classified as entry wrappers.
20678 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
20679 entity of a primitive wrapper.
20680 (Write_Entity_Flags): Output the name and value of the
20681 Is_Primitive_Wrapper attribute.
20682 (Write_Field27_Name): Output the name and entity of the field Wrapped_
20684 (Underlying_Type): If we have an incomplete entity that comes from
20685 the limited view then we return the Underlying_Type of its non-limited
20686 view if it is already available.
20687 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
20688 including operators.
20689 (Write_Field26_Name): Add entry for Overridden_Operation
20690 (Overridden_Operation): New attribute of functions and procedures.
20692 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
20693 predefined position in the dispatch table for the primitive operations
20694 used in dispatching selects.
20695 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
20696 predefined primitive operations and replace it with
20697 Default_Prim_Op_Count.
20698 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
20699 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
20700 the names of the generated primitive operations used in dispatching
20702 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
20703 case of abstract interface types. They will be inherit by the objects
20704 implementing the interface.
20705 (Make_DT): There is no need to inherit the dispatch table of the
20706 ancestor interface for the elaboration of abstract interface types.
20707 The dispatch table will be inherited by the object implementing the
20709 (Copy_Secondary_DTs): Add documentation.
20710 (Validate_Position): Improve this static check in case of
20711 aliased subprograms because aliased subprograms must have
20713 (Init_Predefined_Interface_Primitives): New subprogram that initializes
20714 the entries associated with predefined primitives of all the secondary
20716 (Build_Anonymous_Access_Type): Removed.
20717 (Expand_Interface_Actuals): With the previous cleanup there is no need
20718 to build an anonymous access type. This allows further cleanup in the
20719 code generated by the expander.
20720 (Expand_Interface_Conversion): If the actual is an access type then
20721 build an internal function to handle the displacement. If the actual
20722 is null this function returns null because no displacement is
20723 required; otherwise performs a type conversion that will be
20724 expanded in the code that returns the value of the displaced actual.
20725 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
20726 conversions that have no effect in the generated code because no
20727 displacement is required. Code cleanup; use local variables to
20728 avoid repeated calls to the subprogram directly_designated_type().
20730 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
20731 Classify the primitive operations used in dispatching selects as
20733 (Implements_Limited_Interface): Determine whether some type either
20734 directly implements a limited interface or extends a type that
20735 implements a limited interface.
20736 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
20737 (Expand_Subtype_From_Expr): Do not build actual subtype if the
20738 expression is limited.
20739 (Find_Interface_Tag): Add code to handle class-wide types and
20740 entities from the limited-view.
20742 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
20743 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
20744 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
20745 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
20748 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
20749 of procedure name or prefix that appears as a trigger in a triggering
20752 * uintp.ads: Introduce constants Uint_11 and Uint_13.
20754 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20756 * s-tataat.adb, a-tasatt.adb:
20757 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
20759 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
20760 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
20761 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
20764 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20765 Jose Ruiz <ruiz@adacore.com>
20767 * s-taprop-vxworks.adb:
20768 Move with clauses outside Warnings Off now that dependent units are
20770 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
20771 initialization of this unit.
20772 (Specific): Add new procedures Initialize and Delete so that this
20773 package can be used for VxWorks 5.x and 6.x
20774 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
20775 differences between VxWorks 5.x and 6.x
20776 Minor reformatting.
20777 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
20779 Use only Preelaborate-compatible constructs.
20781 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
20782 Primitives.Operations.
20783 (Delete, Initialize): New procedures.
20785 * s-osinte-vxworks.adb: Body used to handle differences between
20786 VxWorks 5.x and 6.x
20787 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
20789 * s-osinte-vxworks.ads: Minor reformatting.
20790 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
20791 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
20793 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
20794 between Vxworks 5 and 6.
20795 (taskLock, taskUnlock): Removeed, no longer used.
20797 * adaint.c: The wait.h header is not located in the sys directory on
20798 VxWorks when using RTPs.
20799 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
20801 (__gnat_dup): dup is available on Vxworks when using RTPs.
20802 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
20804 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
20806 * expect.c: The wait.h header is not located in the sys directory on
20807 VxWorks when using RTPs.
20809 2005-09-01 Thomas Quinot <quinot@adacore.com>
20811 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
20813 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
20815 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
20816 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
20817 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
20818 g-soccon-freebsd.ads: Add new constants:
20820 SO_RCVTIMEO/SO_SNDTIMEO
20824 Move all target-specific file inclusions and macro definitions to
20825 gsocket.h, in order to ensure that any C code in socket.c will see a
20826 set of constants that is consistent with the contents of g-soccon.ads.
20828 * gsocket.h: Code imported from gen-soccon.c:
20829 Move all target-specific file inclusions and macro definitions to
20830 gsocket.h, in order to ensure that any C code in socket.c will see a set
20831 of constants that is consistent with the contents of g-soccon.ads.
20832 This change also makes gen-soccon self-contained (removing dependencies
20833 upon GCC internal headers).
20835 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
20837 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
20839 * socket.c: Minor reformatting.
20841 2005-09-01 Ed Schonberg <schonberg@adacore.com>
20842 Thomas Quinot <quinot@adacore.com>
20844 * fname-sf.adb, mlib-tgt.ads,
20845 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
20846 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
20847 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
20848 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
20849 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
20850 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
20851 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
20852 makegpr.adb: Remove redundant use_clauses.
20854 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20856 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
20857 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
20858 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
20859 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
20860 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
20861 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
20862 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
20863 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
20864 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20865 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
20866 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
20867 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
20868 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
20869 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
20870 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
20871 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
20872 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20873 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
20874 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
20875 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
20876 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
20877 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
20878 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
20879 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
20880 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
20881 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
20882 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
20883 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
20884 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
20885 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
20886 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
20887 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
20888 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
20889 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
20890 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
20891 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
20892 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
20893 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
20894 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
20895 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
20896 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
20897 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
20898 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
20899 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
20900 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
20901 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
20902 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
20903 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
20904 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
20905 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
20906 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
20907 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
20908 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
20909 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
20910 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
20911 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
20912 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
20913 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
20914 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
20915 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
20916 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
20917 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
20918 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
20919 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
20920 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
20921 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
20922 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
20923 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
20924 and always use the no parameter form for consistency.
20926 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
20928 2005-09-01 Robert Dewar <dewar@adacore.com>
20930 * binde.adb: Minor reformatting
20931 (Find_Elab_Order): Output warning if -p used with static elab order
20933 2005-09-01 Robert Dewar <dewar@adacore.com>
20935 * checks.adb (Check_Needed): New procedure, deals with removing checks
20936 based on analysis of short-circuited forms. Also generates warnings for
20937 improper use of non-short-circuited forms.
20940 2005-09-01 Robert Dewar <dewar@adacore.com>
20942 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
20945 2005-09-01 Robert Dewar <dewar@adacore.com>
20947 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
20949 Implement new insertion char < (conditional warning)
20950 * errutil.adb, erroutc.adb: Implement new insertion char <
20951 (conditional warning).
20952 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
20953 (Error_Msg_Warn): New variable for < insertion char.
20954 * prj-nmsc.adb: Implement new errout insertion char < (conditional
20956 (Check_For_Source): Change value of Source_Id only after the current
20957 source has been dealt with.
20959 2005-09-01 Robert Dewar <dewar@adacore.com>
20960 Doug Rupp <rupp@adacore.com>
20962 * exp_attr.adb: Handle vax fpt for 'Valid attribute
20963 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
20964 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
20965 (Valid_D, Valid_F, Valid_G): New functions
20967 2005-09-01 Ed Schonberg <schonberg@adacore.com>
20968 Hristian Kirtchev <kirtchev@adacore.com>
20969 Javier Miranda <miranda@adacore.com>
20971 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
20972 from object notation, the original node is unanalyzed and carries no
20973 semantic information, so that accessiblity checks must be performed on
20974 the type of the actual itself.
20975 (Expand_N_Subprogram_Declaration): Change last actual parameter for
20976 compatibility with Build_Protected_Sub_Specification.
20977 (Check_Overriding_Inherited_Interfaces): Add suport to handle
20978 overloaded primitives.
20979 (Register_Interface_DT_Entry): Use the new name of the formal
20980 the the calls to Expand_Interface_Thunk
20982 * exp_dbug.ads: Augment comments on encoding of protected types to
20983 include the generation of dispatching subprograms when the type
20984 implements at least one interface.
20986 * lib.ads: Extend information in Load_Stack to include whether a given
20987 load comes from a Limited_With_Clause.
20989 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
20990 whether a potential circularity is harmless, because it includes units
20991 loaded through a limited_with clause. Extends previous treatment which
20992 did not handle properly arbitrary combinations of limited and
20993 non-limited clauses.
20995 2005-09-01 Nicolas Setton <setton@adacore.com>
20997 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
20998 to be encoded as typ___XBLU_lowerbound__upperbound instead of
20999 typ___XB_lowerbound__upperbound.
21001 2005-09-01 Thomas Quinot <quinot@adacore.com>
21003 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
21004 dummy access formal for RACW/RAS TypeCode TSS.
21005 (Build_TypeCode_Call): Do not generate dummy null access actual for
21006 calls to the TypeCode TSS.
21008 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21010 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
21011 fully qualified name, to distinguish instances with the same local name.
21013 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
21016 2005-09-01 Robert Dewar <dewar@adacore.com>
21018 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
21021 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
21023 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
21024 (Free): New deallocation procedure for filter elements
21025 (Close): Deallocate any existing filter for the concerned connection
21027 2005-09-01 Laurent Pautet <pautet@adacore.com>
21029 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
21030 position set is provided, we compute one in order to reduce the maximum
21031 length of the keys. This computation first selects a character
21032 position between 1 and the minimum length of the keys in order to
21033 avoid reducing one of the keys to an empty string.
21034 (Initialize, Compute): When the ratio V to K is too low, the algorithm
21035 does not converge. The initialization procedure now comes with a
21036 maximum number of iterations such that when exceeded, an exception is
21037 raised in Compute. The user can initialize this ratio to another value
21039 Reformating and updated headers.
21041 2005-09-01 Javier Miranda <miranda@adacore.com>
21043 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
21044 that given an entity T creates and returns an Itype that duplicates the
21045 contents of T. The returned Itype has the null-exclusion
21046 attribute set to True, and its Etype attribute references T
21047 to keep the association between the two entities.
21048 Update copyright notice
21050 * sem_aggr.adb (Check_Can_Never_Be_Null,
21051 Aggregate_Constraint_Checks, Resolve_Aggregate,
21052 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
21054 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
21056 2005-09-01 Gary Dismukes <dismukes@adacore.com>
21057 Robert Dewar <dewar@adacore.com>
21058 Hristian Kirtchev <kirtchev@adacore.com>
21060 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
21063 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
21065 Call Set_Result_Definition instead of Set_Subtype_Mark.
21066 (P_Subprogram_Specification): Add parsing of anonymous access result
21067 plus null exclusions. Call Set_Result_Definition instead of
21070 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21071 (P_Access_Type_Definition): Add parsing for an anonymous access result
21072 subtype, plus parsing for null exclusions. Call Set_Result_Definition
21073 instead of Set_Subtype_Mark.
21075 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21076 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
21077 (Result_Definition): New function for N_Function_Specifications.
21078 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
21079 N_Function_Specification.
21080 (Set_Null_Exclusion_Present): Allow this flag for
21081 N_Function_Specification.
21082 (Set_Result_Definition): New procedure for N_Function_Specifications.
21083 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
21084 and N_Function_Specification.
21086 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
21087 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
21088 Add support for LIMITED NEW for Ada 2005 AI-419
21089 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
21090 syntax for anonymous access results.
21091 Replace Subtype_Mark field by Result_Definition in
21092 N_Function_Specification and N_Access_Definition specs.
21093 Add Null_Exclusion_Present to spec of N_Function_Specification.
21094 (Result_Definition): New function for N_Function_Specification and
21095 N_Access_Function_Definition.
21096 (Set_Result_Definition): New procedure for N_Function_Specification and
21097 N_Access_Function_Definition.
21099 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
21100 Result_Definition for cases of N_Access_Function_Definition and
21101 N_Function_Specification.
21102 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
21104 2005-09-01 Vincent Celier <celier@adacore.com>
21106 * lib-writ.adb: Update Copyright notice
21107 (Write_With_Lines): On platforms where file names are case-insensitive,
21108 record the file names in lower case.
21109 (Write_ALI): For D lines, on platforms where file names are
21110 case-insensitive, record the file names in lower case.
21112 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21113 Emmanuel Briot <briot@adacore.com>
21115 * lib-xref.adb (Output_Overridden_Op): Display information on
21116 overridden operation.
21118 * lib-xref.ads: Add documentation on overridden operations.
21120 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
21123 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
21124 overriding entity information.
21126 2005-09-01 Vincent Celier <celier@adacore.com>
21128 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
21129 including those that are inherited.
21131 2005-09-01 Robert Dewar <dewar@adacore.com>
21133 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
21135 * par-prag.adb: Implement new pragma Debug_Policy
21137 * sem_prag.adb Implement new pragma Debug_Policy
21138 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
21139 Component_Size attribute specification. Give warning for ignored pragma
21142 * snames.h, snames.ads, snames.adb: Introduce entries in
21143 Preset_Names for Name_Disp_Asynchronous_Select,
21144 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
21145 Name_Disp_Timed_Select.
21146 New pragma Debug_Policy
21148 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
21150 Switch -gnata also sets Debug_Pragmas_Enabled
21152 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
21153 handle an explicit -gnata when compiling predefined files.
21155 2005-09-01 Vincent Celier <celier@adacore.com>
21157 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
21158 directories of projects that have no Ada sources.
21160 2005-09-01 Robert Dewar <dewar@adacore.com>
21162 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
21163 (makes a difference for wide characters)
21165 * widechar.adb, widechar.ads:
21166 Add Wide_Char_Byte_Count feature to count chars vs bytes
21168 2005-09-01 Thomas Quinot <quinot@adacore.com>
21169 Ed Schonberg <schonberg@adacore.com>
21170 Robert Dewar <dewar@adacore.com>
21172 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
21173 'Address attribute reference with an overloaded prefix, use the
21174 location of the prefix (not the location of the attribute reference) as
21175 the error location.
21176 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
21177 a function renaming thereof, is a valid prefix for 'Size (where it is
21178 intepreted as a function call).
21179 (Statically_Denotes_Entity): New predicate to determine whether the
21180 prefix of an array attribute can be considered static.
21183 (Eval_Attr): Fix failure to evaluate Component_Size for
21184 unconstrained arrays (resulted in wrong value in packed case, since
21185 back end cannot handle this case)
21187 2005-09-01 Robert Dewar <dewar@adacore.com>
21189 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
21190 error msgs for most common cases.
21191 Use new errout insertion char < (conditional warning)
21193 2005-09-01 Javier Miranda <miranda@adacore.com>
21194 Ed Schonberg <schonberg@adacore.com>
21196 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
21197 become local to the whole package.
21198 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
21199 the package was already analyzed the new algorithm "replaces" the
21200 real entities by the shadow ones. This is required to ensure that
21201 the order of these entities in the homonym chains does not change;
21202 otherwise we can have undefined references at linking time because
21203 in case of conflicts the external name of the entities will have
21204 a suffix that depends on the order of the entities in the chain.
21205 (Remove_Limited_With_Clause): Complementary code that completes the
21206 new algorithm and replaces the shadow entities by the real ones.
21207 (Install_Limited_Withed_Unit): When unchaining entities before the
21208 installation of the shadow entities, only regular entities of the
21209 public part must be taken into account. This is required to
21210 keep this routine in synch with the work done by Remove_Limited_
21212 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
21213 even if unit is analyzed, because the analysis of the unit is
21214 idempotent in any case, and the limited view of the unit may have to
21215 be installed for proper visibility.
21216 (Expand_Limited_With_Clause): Even if the unit in the implicit
21217 with_clause has been analyzed already, a limited view of the package
21218 must be built for the current context, if it does not exist yet.
21220 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21221 Javier Miranda <miranda@adacore.com>
21222 Gary Dismukes <dismukes@adacore.com>
21224 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
21225 defining entity for the instance body, make a new defining identifier
21226 rather than copying the entity of the spec, to prevent accidental
21227 sharing of the entity list.
21228 (Check_Private_View): When exchanging views of private types, build the
21229 list of exchanged views as a stack, to ensure that on exit the exchanges
21230 are undone in the proper order.
21231 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
21232 Restore the compilation environment in case of instantiation_error.
21233 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
21234 for an anonymous access result.
21235 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
21236 (Formal_Entity): Handle properly the case of a formal package that
21237 denotes a generic package renaming.
21239 2005-09-01 Thomas Quinot <quinot@adacore.com>
21241 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
21242 clause if the array aggregate is surrounded by parentheses.
21244 2005-09-01 Cyrille Comar <comar@adacore.com>
21245 Gary Dismukes <dismukes@adacore.com>
21246 Ed Schonberg <schonberg@adacore.com>
21247 Javier Miranda <miranda@adacore.com>
21249 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
21251 to check if a type is Constrained in cases related to code generation
21252 (rather than semantic checking) since otherwise we do not generate
21253 similar code for mutable private types depending if their
21254 discriminants are visible or not.
21255 (Check_Abstract_Overriding): Do not complain about failure to override
21256 the primitive operations used in dispatching selects since they will
21257 always be overriden at the freeze point of the type.
21258 (Access_Definition): Separate out handling for resetting the scope
21259 of an anonymous access function result type. Retrieve the scope
21260 of the associated function rather than using Current_Scope, which
21261 does not have a consistent value (depends on whether we're in the
21262 middle of analyzing formal parameters). Add ??? comment about
21263 finding a cleaner way to handle the special cases of scope setting.
21264 (Process_Incomplete_Dependents): A protected operation is never a
21265 dispatching operation (only its wrapper may be).
21266 (Build_Derived_Record_Type): In case of tagged private types that
21267 implement interfaces add derivation of predefined primitive
21269 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
21270 by two parameters that are used in case of derivation from abstract
21271 interface types: No_Predefined_Prims is used to avoid the derivation
21272 of predefined primitives from the interface, and Predefined
21273 Prims_Only is used to complete the derivation predefined primitives
21274 in case of private tagged types implementing interfaces.
21275 Fix typo in comments
21276 (Find_Interface_In_Descendant): Protect the frontend against
21277 wrong code with large circularity chains.
21278 (Is_Private_Overriding): Add support for entities overriding interface
21279 subprograms. The test failed because Entities associated with overriden
21280 interface subprograms are always marked as hidden (and used to build
21281 the secondary dispatch table); in this case the overriden entity is
21282 available through the field abstract_interface_alias (cf. override_
21283 dispatching_operation)
21284 (Access_Definition): Set the scope of the type to Current_Scope for the
21285 case of a function with an anonymous access result type.
21286 (Access_Subprogram_Declaration): Handle creation of the type entity for
21287 an access-to-function type with an anonymous access result.
21288 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
21289 in handling for N_Access_Function_Definition.
21290 (Analyze_Subtype_Declaration): Modify the text of error message.
21291 (Derived_Type_Declaration): Modify the text of error message.
21292 (Process_Subtype): Modify the text of error message plus cleanup
21293 of one redundant error message.
21294 (Analyze_Component_Declaration): Code cleanup.
21295 (Analyze_Object_Declaration): Code cleanup.
21296 (Analyze_Subtype_Declaration): Propagate the null-exclusion
21297 attribute in case of access types. Code cleanup.
21298 (Array_Type_Declaration): Code cleanup.
21299 (Process_Discriminants): Create the new null-excluding itype
21300 if required. Code cleanup.
21301 (Process_Subtype): Create the new null-excluding itype if
21302 required. Code cleanup.
21303 (Build_Derived_Record_Type): Code cleanup to avoid calling
21304 twice the subprogram derive_subprograms in case of private
21305 types that implement interfaces. In this particular case the
21306 subprogram Complete_Subprograms_Derivation already does the
21307 job associated with the second call.
21309 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
21310 conversion to the full view when generating an operation for a
21311 discriminant whose type may currently be private.
21313 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21314 Javier Miranda <miranda@adacore.com>
21316 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
21317 V (Obj.F), the rewriting does not involve the indexed component, but
21318 only the selected component itself.
21319 Do not apply the transformation if the analyzed node is an actual of a
21320 call to another subprogram.
21321 (Complete_Object_Operation): Retain the entity of the
21322 dispatching operation in the selector of the rewritten node. The
21323 entity will be used in the expansion of dispatching selects.
21324 (Analyze_One_Call): Improve location of the error message associated
21326 (Analyze_Selected_Component): No need to resolve prefix when it is a
21327 function call, resolution is done when parent node is resolved, as
21329 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
21330 when attempting to resolve a call transformed from its object notation.
21331 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
21332 of the argument list for each interpretation of the operation.
21333 (Try_Object_Operation): The designated type of an access parameter may
21334 be an incomplete type obtained through a limited_with clause, in which
21335 case the primitive operations of the type are retrieved from its full
21337 (Analyze_Call): If this is an indirect call, and the return type of the
21338 access_to_subprogram is incomplete, use its full view if available.
21340 2005-09-01 Javier Miranda <miranda@adacore.com>
21341 Gary Dismukes <dismukes@adacore.com>
21343 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
21344 access types the null-exclusion and access-to-constant attributes must
21346 (Analyze_Return_Statement): When the result type is an anonymous access
21347 type, apply a conversion of the return expression to the access type
21348 to ensure that appropriate accessibility checks are performed.
21349 (Analyze_Return_Type): For the case of an anonymous access result type,
21350 generate the Itype and set Is_Local_Anonymous_Access on the type.
21351 Add ??? placeholder for check to disallow returning a limited object
21352 in Ada 2005 unless it's an aggregate or a result of a function call.
21353 Change calls from Subtype_Mark to Result_Definition.
21354 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
21355 Result_Definition in call to Make_Function_Specification.
21356 (Build_Body_To_Inline): Change Set_Subtype_Mark to
21357 Set_Result_Definition.
21358 (Make_Inequality_Operator): Change formal Subtype_Mark to
21359 Result_Definition in call to Make_Function_Specification.
21360 (Process_Formals): Create the new null-excluding itype if required.
21361 (New_Overloaded_Entity): For an entity overriding an interface primitive
21362 check if the entity also covers other abstract subprograms in the same
21363 scope. This is required to handle the general case, that is, overriding
21364 other interface primitives and overriding abstract subprograms inherited
21365 from some abstract ancestor type.
21366 (New_Overloaded_Entity): For an overriding entity that comes from
21367 source, note the operation that it overrides.
21368 (Check_Conformance, Type_Conformant): Addition of one new formal
21369 to skip controlling formals in the analysis. This is used to
21370 handle overloading of abstract interfaces.
21371 (Base_Types_Match): Add missing case for types imported from
21372 limited-with clauses
21373 (New_Overloaded_Entity): Add barrier to protect the use of
21374 the "alias" attribute.
21376 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21378 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
21379 verify that the procedure and the entry are mode conformant.
21380 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
21381 as a different operator, which is often a cut-and-paste error.
21383 2005-09-01 Javier Miranda <miranda@adacore.com>
21384 Ed Schonberg <schonberg@adacore.com>
21386 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
21387 used in controlling parameters exclude null because it is necessary to
21388 read the tag to dispatch, and null has no tag.
21389 (Override_Dispatching_Operation): If the previous operation is inherited
21390 from an interface, it becomes hidden and does not participate in later
21393 2005-09-01 Javier Miranda <miranda@adacore.com>
21394 Ed Schonberg <schonberg@adacore.com>
21395 Gary Dismukes <dismukes@adacore.com>
21397 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
21398 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
21399 the expander will generate the corresponding run-time check to evaluate
21401 (Resolve_Call): Check for legal type of procedure name or prefix that
21402 appears as a trigger in a triggering alternative.
21403 (Valid_Conversion): If expression is ambiguous and the context involves
21404 an extension of System, remove System.Address interpretations.
21405 (Resolve_Qualified_Expression): Reject the case of a specific-type
21406 qualification applied to a class-wide argument. Enhance comment
21407 to explain checking of Original_Node.
21408 (Resolve_Type_Conversion): The location of the error message was not
21409 general enough to handle the general case and hence it has been removed.
21410 In addition, this patch improves the text of the message.
21411 (Resolve_Type_Conversion): Add missing support for access to interface
21413 (Resolve_Type_Conversion): If the target is a class-wide interface type,
21414 do not expand if the expression is the actual in a call, because proper
21415 expansion will take place when the call itself is expanded.
21416 (Resolve_Allocator): If the context is an unchecked conversion, the
21417 allocator inherits its storage pool, if any, from the target type of
21420 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21421 Javier Miranda <miranda@adacore.com>
21423 * sem_type.adb (Add_One_Interp): If a candidate operation is an
21424 inherited interface operation that has an implementation, use the
21425 implementation to avoid spurious ambiguities.
21426 (Interface_Present_In_Ancestor): In case of concurrent types we can't
21427 use the Corresponding_Record_Typ attribute to look for the interface
21428 because it is set by the expander (and hence it is not always
21429 available). For this reason we traverse the list of interfaces
21430 (available in the parent of the concurrent type).
21431 (Interface_Present_In_Ancestor): Handle entities from the limited view
21433 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21435 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
21436 from the list of required components.
21437 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
21438 primitive procedure of a limited interface with a controlling first
21440 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
21442 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
21443 capture if it is generated in the second operand of a short-circuit
21445 Do not capture values for variables with address clauses.
21446 (Is_Object_Reference): Treat a function call as an object reference only
21447 if its type is not Standard_Void_Type.
21449 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21451 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
21452 to a variable that is statically known to be constant.
21454 2005-09-01 Geert Bosch <bosch@adacore.com>
21455 Robert Dewar <dewar@adacore.com>
21457 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
21458 (VAXGF_Safe_First): Idem.
21460 2005-09-01 Robert Dewar <dewar@adacore.com>
21461 Arnaud Charlet <charlet@adacore.com>
21463 * g-dirope.ads: Minor reformatting
21464 Document that bounds of result of Base_Name match the input index
21466 Add documentation on environment variable syntax for Expand_Path
21468 * gnat_ugn.texi: Update documentation to include mention of -m switches
21469 Document new treatment of wide characters in max line length
21471 Remove -gnatL/-gnatZ switches, no longer used.
21472 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
21475 * gnat_rm.texi: Add doc for two argument form of pragma
21476 Float_Representation.
21477 Add documentation for pragma No_Strict_Aliasing
21478 Add note that explicit component clause overrides pragma Pack.
21479 Add documentation of pragma Debug_Policy
21481 2005-09-01 Matthew Heaney <heaney@adacore.com>
21483 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
21484 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
21485 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
21486 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
21487 draft (Draft 13, August 2005) of Ada Amendment 1.
21489 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21491 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
21492 Note that the platform-specific version of g-soccon.ads for VMS is now
21493 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
21494 really is a package spec).
21495 Replace s-taspri-linux.ads by s-taspri-posix.ads
21496 Remove references to s-mastop-x86.adb
21498 * system-vxworks-xscale.ads: Removed, no longer used.
21499 * s-vxwork-xscale.ads: Removed, no longer used.
21501 2005-09-01 Robert Dewar <dewar@adacore.com>
21503 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
21504 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
21505 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
21506 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
21507 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
21508 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
21509 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
21510 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
21511 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
21512 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
21513 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
21514 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
21515 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
21516 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
21517 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
21518 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
21519 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
21520 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
21521 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
21522 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
21523 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
21525 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21529 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
21531 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21532 Doug Rupp <rupp@adacore.com>
21534 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
21536 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
21537 this code in the GNAT run-time.
21539 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
21542 * init.c (__gnat_error_handler [many]): Mark "msg" as const
21543 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
21545 (__gnat_inside_elab_final_code): Moved here from
21546 Standard_Library and only defined for the compiler.
21547 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
21548 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
21549 using RTPs because directly vectored Interrupt routines are not
21550 supported on this configuration.
21551 (getpid): Do not redefine this function on VxWorks when using RTPs
21552 because this primitive is well supported by the RTP libraries.
21553 (copy_msg): Correct the code that checks for buffer overflow.
21554 Discovered during code reading.
21556 2005-08-29 Olivier Hainque <hainque@adacore.com>
21558 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
21559 a library level mutable variable with an initializer, tell
21560 build_allocator to ignore the initializer's size. It may not be large
21561 enough for all the values that might be assigned to the variable later
21564 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21565 Eric Botcazou <ebotcazou@adacore.com>
21567 * trans.c: Protect < in error msg with quote
21568 Replace GCC_ZCX by Back_End_Exceptions.
21569 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
21570 has been sufficiently aligned in the record.
21572 2005-08-15 James E. Wilson <wilson@specifix.com>
21574 * system-linux-alpha.ads: Change ia64 to alpha.
21576 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
21578 * decl.c, utils.c: Fix comment typos.
21580 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
21582 * decl.c, init.c, initialize.c: Fix comment typos.
21584 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
21586 Make CONSTRUCTOR use VEC to store initializers.
21587 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
21589 * trans.c (extract_values): Likewise.
21590 * utils.c (convert, remove_conversions): Likewise.
21591 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
21592 gnat_build_constructor): Likewise.
21594 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
21596 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
21598 (compare_field_bitpos): Likewise.
21600 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
21602 * utils.c (create_var_decl): Only set DECL_COMMON on
21603 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
21604 VAR_OR_FUNCTION_DECL_P.
21606 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
21608 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
21611 2005-07-07 Pascal Obry <obry@adacore.com>
21613 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
21614 returned type on Windows.
21616 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
21619 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
21620 exception in this case.
21621 Simplify the code as "Image (Image'Range)" = "Image".
21623 2005-07-07 Vincent Celier <celier@adacore.com>
21625 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
21626 the destructor/constructor attributes for <lib>final/<lib>init.
21628 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
21630 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
21632 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
21633 type if the parameter is not passed by copy but reference by default.
21635 2005-07-07 Javier Miranda <miranda@adacore.com>
21637 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
21638 Reimplementation of the support for abstract interface types in order
21639 to leave the code more clear and easy to maintain.
21641 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
21642 abstract interface types in order to leave the code clearer and easier
21645 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
21646 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
21647 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
21648 appropriate entry of the secondary dispatch table.
21649 (Make_DT): Add code to inherit the secondary dispatch tables of
21652 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
21653 implementing both functionalities by means of a common routine, each
21654 routine has its own code.
21656 2005-07-07 Javier Miranda <miranda@adacore.com>
21658 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
21660 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
21663 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21666 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
21667 use of tag incomplete types.
21669 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
21670 give support to tagged incomplete types.
21672 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
21673 expression is a discriminant reference and its type is private, as can
21674 happen within a stream operation for a mutable record, use the full
21675 view of the type to resolve the case alternatives.
21676 (Analyze_Assignment): Check wrong dereference of incomplete types.
21678 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
21681 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
21684 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
21685 N_Incomplete_Type_Declaration nodes.
21687 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
21688 Tag_Present to give support to tagged incomplete types:
21690 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21693 2005-07-07 Olivier Hainque <hainque@adacore.com>
21696 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
21697 definitions for the Unwind wrappers in the compiler case.
21699 2005-07-07 Ed Schonberg <schonberg@adacore.com>
21700 Javier Miranda <miranda@adacore.com>
21702 * par-load.adb (Load): If a child unit is loaded through a limited_with
21703 clause, each parent must be loaded as a limited unit as well.
21705 * sem_ch10.adb (Previous_Withed_Unit): Better name for
21706 Check_Withed_Unit. Return true if there is a previous with_clause for
21707 this unit, whether limited or not.
21708 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
21710 (Is_Visible_Through_Renamings): New local subprogram of install_limited
21711 _withed_unit that checks if some package installed through normal with
21712 clauses has a renaming declaration of package whose limited-view is
21713 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
21714 of the current Draft document for Ada 2005.
21715 (Analyze_Context): Complete the list of compilation units that
21716 are allowed to contain limited-with clauses. It also contains
21717 checks that were previously done by Install_Limited_Context_Clauses.
21718 This makes the code more clear and easy to maintain.
21719 (Expand_Limited_With_Clause) It is now a local subprogram of
21720 Install_Limited_Context_Clauses, and contains the code that adds
21721 the implicit limited-with clauses for parents of child units.
21722 This functionality was prevously done by Analyze_Context.
21724 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
21727 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
21728 been erroneously named in a limited-with clause of its own context.
21729 In this case the error has been previously notified by Analyze_Context.
21731 2005-07-07 Ed Schonberg <schonberg@adacore.com>
21733 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
21734 generic package that contains local declarations with the same name.
21735 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
21737 2005-07-07 Bernard Banner <banner@adacore.com>
21739 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
21740 ia64 platform only on platforms that you the GCC unwind library
21741 rather than the system unwind library.
21743 2005-07-07 Thomas Quinot <quinot@adacore.com>
21745 * expect.c: Minor reformatting
21747 2005-07-07 Sergey Rybin <rybin@adacore.com>
21749 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
21752 * gnat_ugn.texi: Add description for new gnatpp option
21755 2005-07-04 Thomas Quinot <quinot@adacore.com>
21757 * g-expect-vms.adb, g-expect.ads, g-expect.adb
21758 (Get_Command_Output): New subprogram to launch a process and get its
21759 standard output as a string.
21761 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
21762 Olivier Hainque <hainque@adacore.com>
21764 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
21765 fetch a code-range descriptor associated with the machine state. On
21766 failure set the machine state's PC to 0; on success, pass the
21767 descriptor to exc_virtual_unwind.
21769 * init.c (Tru64 section): New function __gnat_set_code_loc.
21771 2005-07-04 Vincent Celier <celier@adacore.com>
21773 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21774 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21775 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
21776 Remove all auto-initialization code, as this is now done through the
21777 constructor mechanism.
21779 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
21780 __gnat_sals_init_using_constructors): New functions.
21782 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
21783 Linker_Constructor and Linker_Destructor when switch -a is used.
21785 * bindusg.adb: Add line for new switch -a
21787 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
21788 (Gnatbind): When switch -a is used, check if it is allowed
21790 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
21792 2005-07-04 Joel Brobecker <brobecker@adacore.com>
21794 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
21795 This prevents us from hitting a limitation during the debug info
21796 generation when using stabs.
21797 (Prims_Ptr): Likewise.
21799 2005-07-04 Gary Dismukes <dismukes@adacore.com>
21800 Ed Schonberg <schonberg@adacore.com>
21801 Javier Miranda <miranda@adacore.com>
21803 * checks.adb (Null_Exclusion_Static_Checks): In the case of
21804 N_Object_Declaration, only perform the checks if the Object_Definition
21805 is not an Access_Definition.
21807 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
21808 where the parent of an the access definition is an N_Object_Declaration
21809 when determining the Associated_Node_For_Itype and scope of an
21810 anonymous access-to-subprogram type.
21812 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
21813 Corresponding_Spec on the body created for a null procedure. Add ???
21814 comment. Remove New_Copy_Tree call on body argument to
21815 Set_Body_To_Inline.
21817 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
21818 discriminants, use the type of the actual as well, because the
21819 discriminants may be read by the called subprogram.
21821 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
21822 access type we do not need to handle non-limited views.
21823 (Build_Derived_Record_Type): Additional check to check that in case of
21824 private types, interfaces are only allowed in private extensions.
21826 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
21828 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
21829 <Pragma_Linker_Destructor>: Likewise.
21831 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
21832 Pragma_Linker_Destructor.
21834 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
21835 ATTR_LINK_DESTRUCTOR.
21836 (static_ctors, static_dtors): New variables.
21838 * misc.c (gnat_expand_body): Output current function as constructor
21839 and destructor if requested.
21841 * par-prag.adb: Add processing for pragma Linker_Constructor and
21844 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
21845 extracted from Check_Interrupt_Or_Attach_Handler.
21846 (Check_Interrupt_Or_Attach_Handler): Invoke it.
21847 Implement pragma Linker_Constructor and Linker_Destructor with the
21848 help of Find_Unique_Parameterless_Procedure.
21849 Replace Name_Alias with Name_Target for pragma Linker_Alias.
21851 * snames.h, snames.ads, snames.adb:
21852 Add Name_Linker_Constructor and Name_Linker_Destructor.
21853 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
21854 * snames.adb: Remove Name_Alias.
21856 * trans.c: Include cgraph.h.
21857 (build_global_cdtor): New function.
21858 (Compilation_Unit_to_gnu): Build global constructor and destructor if
21860 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
21862 (addressable_p) <COMPONENT_REF>: Unconditionally test
21863 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
21865 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
21866 variable if it is external.
21868 (static_ctors, static_dtors): New global variables.
21869 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
21870 <ATTR_LINK_DESTRUCTOR>: Likewise.
21871 (end_subprog_body): Chain function as constructor and destructor
21874 * exp_util.adb (Force_Evaluation): Unconditionally invoke
21875 Remove_Side_Effects with Variable_Ref set to true.
21876 (Remove_Side_Effects): Handle scalar types first. Use a renaming
21877 for non-scalar types even if Variable_Ref is true and for class-wide
21880 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21882 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
21883 to prevent spurious warnings.
21885 2005-07-04 Thomas Quinot <quinot@adacore.com>
21887 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
21888 Itypes. Itypes are really unexpected there.
21889 (Build_TypeCode_Function): Generalise special processing for Itypes to
21890 handle the case of numeric implicit base types as well as enumerated
21893 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21895 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
21896 controlled, indicate the expected type of the dereference that is
21897 created for the call to Deep_Finalize, to prevent spurious errors when
21898 the designated type is private and completed with a derivation from
21899 another private type.
21901 2005-07-04 Vincent Celier <celier@adacore.com>
21903 * make.adb (Change_To_Object_Directory): When unable to change the
21904 current dir to the object directory, output the full path of the
21907 2005-07-04 Matthew Gingell <gingell@adacore.com>
21909 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
21911 * indepsw-linux.adb: Replace by...
21913 * indepsw-gnu.adb: ...this new file
21915 2005-07-04 Vincent Celier <celier@adacore.com>
21917 * mlib-prj.adb (Auto_Initialize): New constant String
21918 (SALs_Use_Constructors): New Boolean function
21919 (Build_Library): Call gnatbind with Auto_Initialize switch when
21920 SALs_Use_Constructors returns True.
21922 * mlib-tgt.ads: Minor reformatting
21924 * mlib-utl.ads: Minor reformatting
21926 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
21928 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21930 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
21931 single protected declarations can have an interface list.
21932 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
21933 with seriously malformed entry declarations, and lead to compilation
21934 abandoned messages.
21936 2005-07-04 Javier Miranda <miranda@adacore.com>
21938 * par-load.adb: Load the context items in two rounds.
21940 2005-07-04 Robert Dewar <dewar@adacore.com>
21942 * scng.adb: Do not consider Mod used as an attribute to be a keyword
21944 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21945 Javier Miranda <miranda@adacore.com>
21947 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
21948 type extension needs a limited view.
21949 Remove previous restriction on private types available through the
21950 limited-view (only tagged private types were previously allowed).
21951 (Install_Withed_Unit): In the code that implements the
21952 legality rule given in AI-377, exclude a child unit with the name
21953 Standard, because it is a homonym of the Standard environment package.
21955 2005-07-04 Thomas Quinot <quinot@adacore.com>
21957 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
21958 overloaded function call, carry interpretations from the original tree
21961 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21963 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
21964 types check whether some designated type is a limited view, and use
21965 the non-limited view if available.
21967 2005-07-04 Gary Dismukes <dismukes@adacore.com>
21969 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
21970 constraint of full view of a private view T1 if present, when T2 is a
21971 discriminated full view.
21973 2005-07-04 Thomas Quinot <quinot@adacore.com>
21975 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
21976 actual that is a view conversion of a bit packed array reference.
21978 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21980 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
21981 present before checking whether an interface type covers a synchronized
21984 2005-07-04 Ed Schonberg <schonberg@adacore.com>
21986 * sem_util.adb (Is_Object_Reference): An indexed or selected component
21987 whose prefix is an implicit dereference is an object reference. Removes
21988 spurious errors when compiling with -gnatc.
21990 2005-07-04 Robert Dewar <dewar@adacore.com>
21993 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
21995 2005-07-04 Matthew Gingell <gingell@adacore.com>
21997 * tracebak.c: Enable tracebacks on ia64 platforms
21999 2005-07-04 Vincent Celier <celier@adacore.com>
22001 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
22002 the GNAT BIND command, as gnatbind accepts multiples ALI files with
22003 the -L or -n switches.
22005 2005-07-04 Vincent Celier <celier@adacore.com>
22007 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
22008 correctly computed and the main project data is not modified while
22010 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
22011 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
22012 c++linker as this does not work on some platforms.
22014 2005-07-04 Matthew Heaney <heaney@adacore.com>
22016 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
22018 * a-coinve.adb: Perform constraint checks explicitly.
22020 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22021 Thomas Quinot <quinot@adacore.com>
22023 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
22024 new target gen-soccon.
22026 2005-07-04 Robert Dewar <dewar@adacore.com>
22028 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
22030 2005-07-04 Thomas Quinot <quinot@adacore.com>
22032 * g-socket.ads (Check_Selector): Minor rewording of comment.
22034 2005-07-04 Vincent Celier <celier@adacore.com>
22036 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
22038 2005-07-04 Thomas Quinot <quinot@adacore.com>
22040 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
22042 2005-07-04 Sergey Rybin <rybin@adacore.com>
22044 * gnat_ugn.texi: Add description of --eol gnatpp option
22046 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22047 Thomas Quinot <quinot@adacore.com>
22049 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
22050 if the user wants all calls of a subprogram to be flagged,
22051 independently of whether they are made from within the same unit or
22053 Mention restriction for pragma Linker_Alias on some platforms.
22054 Document pragma Linker_Constructor and Linker_Destructor.
22055 Rewrite documentation of Weak_External, Linker_Section and
22056 Linker_Alias pragmas.
22058 2005-07-04 Arnaud Charlet <charlet@adacore.com>
22060 * s-stausa.ads, s-stausa.adb: New files.
22062 2005-06-30 Kelley Cook
22064 * all files: Update FSF address in copyright headers.
22065 * gen-soccon.co (main): Output new FSF address in generated files.
22067 2005-06-28 Paul Brook <paul@codesourcery.com>
22069 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
22071 2005-06-14 Olivier Hainque <hainque@adacore.com>
22072 Eric Botcazou <ebotcazou@adacore.com>
22074 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
22075 exc_unwind, now that we are generating proper .debug_frame output for
22078 * tracebak.c: Remove the mips-irix section, as we are now using the
22079 s-mastop based unwinder again.
22080 Under SPARC/Solaris, take into account the stack bias to compute the
22081 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
22084 2005-06-14 Doug Rupp <rupp@adacore.com>
22086 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
22088 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
22090 2005-06-14 Pascal Obry <obry@adacore.com>
22092 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
22093 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
22094 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
22097 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
22098 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
22099 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
22100 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22101 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
22102 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
22103 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
22104 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
22105 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
22106 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
22107 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
22108 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
22109 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
22110 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
22111 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
22112 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
22113 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
22114 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
22115 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
22116 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
22117 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
22118 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
22119 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
22120 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
22121 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
22122 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
22123 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
22124 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
22125 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
22126 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
22127 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
22128 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
22129 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
22130 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
22131 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
22132 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
22133 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
22134 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
22135 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
22136 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
22137 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
22138 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
22139 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
22140 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
22141 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
22142 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
22143 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
22144 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
22145 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
22146 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
22147 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22148 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
22149 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
22150 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
22151 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
22152 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22153 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
22154 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
22155 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
22156 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
22157 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
22158 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
22159 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
22160 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
22161 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
22162 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
22163 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
22164 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
22165 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
22166 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22167 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
22168 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
22169 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
22170 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
22171 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
22172 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
22173 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
22174 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
22175 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
22176 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
22177 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
22178 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
22179 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
22180 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
22181 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
22182 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
22183 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
22184 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
22185 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
22186 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
22187 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
22188 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
22189 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
22190 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
22191 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
22192 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
22193 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
22194 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
22195 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
22196 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
22197 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
22198 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
22199 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
22200 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
22201 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
22202 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
22203 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
22204 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
22205 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
22206 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
22207 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
22208 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
22209 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
22210 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
22211 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
22212 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
22213 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
22214 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
22215 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
22216 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
22217 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
22218 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
22219 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
22220 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
22221 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
22222 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
22223 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
22224 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
22225 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
22226 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
22227 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
22228 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
22229 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
22231 2005-06-14 Jose Ruiz <ruiz@adacore.com>
22232 Arnaud Charlet <charlet@adacore.com>
22234 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
22235 longer protected objects. They have been replaced by lower-level
22236 suspension objects made up by a mutex and a condition variable (or
22237 their equivalent given a particular OS) plus some internal data to
22238 reflect the state of the suspension object.
22239 (Initialize, Finalize): Add this initialization procedure for
22240 Suspension_Object, which is a controlled type.
22241 (Finalize): Add the finalization procedure for Suspension_Object,
22242 which is a controlled type.
22244 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
22245 Ada.Synchronous_Task_Control because there is no longer a need for a
22246 VxWorks specific version of this package. Target dependencies
22247 has been moved to System.Task_Primitives.Operations.
22249 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
22251 (InitializeCriticalSection, EnterCriticalSection,
22252 LeaveCriticalSection, DeleteCriticalSection): Replace the type
22253 pCriticalSection by an anonymous access type so that we avoid problems
22254 of accessibility to local objects.
22256 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
22257 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22258 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
22259 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
22260 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
22261 set the environment task mask here.
22262 (Current_State): Add this function that returns the state of the
22264 (Set_False): Add this procedure that sets the state of the suspension
22266 (Set_True): Add this procedure that sets the state of the suspension
22267 object to True, releasing the task that was suspended, if any.
22268 (Suspend_Until_True): Add this procedure that blocks the calling task
22269 until the state of the object is True. Program_Error is raised if
22270 another task is already waiting on that suspension object.
22271 (Initialize): Add this procedure for initializing the suspension
22272 object. It initializes the mutex and the condition variable which are
22273 used for synchronization and queuing, and it sets the internal state
22275 (Finalize): Add this procedure for finalizing the suspension object,
22276 destroying the mutex and the condition variable.
22278 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22279 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
22280 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
22281 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
22282 which provides a low-level abstraction (using operating system
22283 primitives) for Ada.Synchronous_Task_Control.
22284 This object is made up by a mutex (for ensuring mutual exclusion), a
22285 condition variable (for queuing threads until the condition is
22286 signaled), a Boolean (State) indicating whether the object is open,
22287 and a Boolean (Waiting) reflecting whether there is a task already
22288 suspended on this object.
22290 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
22291 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
22292 s-intman-vms.ads, s-intman-mingw.adb,
22293 (Initialize_Interrupts): Removed, no longer used.
22295 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
22296 (Setup_Interrupt_Mask): New procedure.
22298 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
22300 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
22302 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
22303 this is no longer done in the body of s-taprop
22304 (Server_Task): Explicitely test for Pending_Action in case
22305 System.Parameters.No_Abort is True.
22307 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
22308 is no longer done in the body of s-taprop
22310 2005-06-14 Robert Dewar <dewar@adacore.com>
22312 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22313 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22314 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22315 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22316 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22317 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
22318 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
22319 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22320 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
22321 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
22322 system-linux-hppa.ads, system-vms_64.ads,
22323 system-vxworks-alpha.ads: Minor comment update for
22324 AI-362 (unit is Pure).
22326 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
22327 Add pragma Pure_05 for AI-362
22328 Make remaining conversion functions obsolescent in Ada 95
22330 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22331 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
22332 Add entries for a-wichun and a-zchuni
22333 Add a-widcha a-zchara for AI-395
22334 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
22336 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22337 Add entries for a-wichun.o and a-zchuni.o
22338 Entries for a-widcha.o and a-zchara.o
22339 Add entry for a-chacon.o
22341 * a-ztenau.adb: Add with of Ada.Characters.Conversions
22343 * a-chacon.ads, a-chacon.adb: New files.
22345 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
22346 categorization violations.
22348 * a-strmap.ads: Add pragma Pure_05 for AI-362
22349 * a-strmap.ads: Add note on implicit categorization for AI-362
22351 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
22353 * par-prag.adb: Dummy entry for pragma Persistent_BSS
22354 Set Ada_Version_Explicit, for implementation of AI-362
22355 Add processing for pragma Pure_05 and Preelaborate_05
22356 Add entry for Assertion_Policy pragma
22358 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
22359 when needed for proper processing of categorization stuff
22362 For several cases, make errors in preealborate units warnings,
22363 instead of errors, if GNAT_Mode is set. For AI-362.
22365 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
22366 preelaborate unit is now warning if in GNAT mode
22368 * s-stoele.ads: Document AI-362 for pragma preelaborate
22370 2005-06-14 Doug Rupp <rupp@adacore.com>
22372 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
22373 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
22374 Default_Exception_Msg_Max_Length: new parameter.
22376 * a-except.ads: (Exception_Msg_Max_Length): Set to
22377 System.Parameters.Default_Exception_Msg_Max_Length
22378 Add pragma Preelaborate_05 for AI-362
22379 Add warnings off to allow categorization violations for AI-362
22381 2005-06-14 Vincent Celier <celier@adacore.com>
22383 * gnatsym.adb: Adapt to modification of package Symbols: procedure
22384 Process is now in package Processing.
22386 * symbols.ads, symbols.adb:
22387 (Processing): New package, containing procedure Process
22389 * symbols-vms-alpha.adb:
22390 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
22392 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
22393 symbols-processing-vms-ia64.adb: New files.
22395 2005-06-14 Pascal Obry <obry@adacore.com>
22397 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
22398 implementation. This new version generates the proper DllMain routine
22399 to initialize the SAL. The DllMain is generated in Ada and compiled
22400 before being added as option to the library build command.
22402 2005-06-14 Doug Rupp <rupp@adacore.com>
22403 Pascal Obry <obry@adacore.com>
22405 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
22406 call to decc$translate_vms.
22407 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
22408 need to remove those quotes before catenating the filename.
22409 (__gnat_locate_exec_on_path): improvements to the Win32 section:
22410 * avoid allocating the memory twice for better efficiency;
22411 * allocate 32K buffer for environment expansion as suggested by MSDN;
22412 * prepend ".;" to the path so that current directory is searched too.
22414 2005-06-14 Robert Dewar <dewar@adacore.com>
22416 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
22417 instead of raising CE (AI-241)
22418 Add warnings off to allow categorization violations for AI-362
22420 2005-06-14 Robert Dewar <dewar@adacore.com>
22422 * ali-util.adb, gnatbind.adb: Remove references to
22423 Force_RM_Elaboration_Order.
22425 * switch-b.adb: Remove recognition of -f switch
22427 2005-06-14 Pascal Obry <obry@adacore.com>
22429 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
22430 implementation which is slightly more efficient.
22432 2005-06-14 Gary Dismukes <dismukes@adacore.com>
22433 Javier Miranda <miranda@adacore.com>
22434 Ed Schonberg <schonberg@adacore.com>
22435 Hristian Kirtchev <kirtchev@adacore.com>
22437 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
22438 allocator's designated type is a class-wide type, and compiling for
22439 Ada 2005, emit a run-time check that the accessibility level of the
22440 type given in the allocator's expression is not deeper than the level
22441 of the allocator's access type.
22443 (Tagged_Membership): Modified to gives support to abstract interface
22446 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
22448 (Descendant_Tag): New predefined function
22449 (Is_Descendant_At_Same_Level): New predefined function
22450 (Get_Access_Level): New private function
22451 (Set_Access_Level): New private procedure
22452 (IW_Membership): New function. Given the tag of an object and the tag
22453 associated with an interface, evaluate if the object implements the
22455 (Register_Interface_Tag): New procedure used to initialize the table of
22456 interfaces used by the IW_Membership function.
22457 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
22458 of the dispatch table.
22459 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
22460 table of interfaces of the parent.
22461 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
22462 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
22463 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
22464 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
22465 Ada 2005 semantics for the new predefined function.
22467 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
22468 call to Descendant_Tag rather than Internal_Tag.
22469 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
22470 the accessibility level of the attribute's Item parameter is not deeper
22471 than the level of the attribute's prefix type. Tag_Error is raised if
22472 the check fails. The check is only emitted for Ada_05.
22473 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
22474 requested stream attribute, use it.
22475 (Expand_N_Attribute_Reference): If the designated type is an interface
22476 then rewrite the referenced object as a conversion to force the
22477 displacement of the pointer to the secondary dispatch table.
22478 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
22479 is a dereference of an object with a constrained partial view.
22481 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
22482 type is a class-wide type, emit a run-time check that the accessibility
22483 level of the returned object is not deeper than the level of the
22484 function's master (only when compiling for Ada 2005).
22486 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
22487 Action_Nb_Arg): Add entries for new Get_Access_Level and
22488 Set_Access_Level routines in these tables.
22489 (Make_DT): Generate a call to set the accessibility level of the
22490 tagged type in its TSD.
22491 (Make_DT): Code cleanup. The functionality of generating all the
22492 secondary dispatch tables has been moved to freeze_record_type.
22493 (Make_Abstract_Interface_DT): Minor code cleanup.
22494 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
22495 this subprogram implements a new algorithm that provides the
22496 same functionality and it is more clear in case of primitives
22497 associated with abstract interfaces.
22498 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
22499 clean up, the functionality of this subprogram is now provided
22500 by Set_All_DT_Position.
22501 (Write_DT): New subprogram: a debugging procedure designed to be called
22502 within gdb to display the dispatch tables associated with a tagged
22504 (Collect_All_Interfaces): New subprogram that collects the whole list
22505 of interfaces that are directly or indirectly implemented by a tagged
22507 (Default_Prim_Op_Position): New subprogram that returns the fixed
22508 position in the dispatch table of the default primitive operations.
22509 (Expand_Interface_Actuals): New subprogram to generate code that
22510 displaces all the actuals corresponding to class-wide interfaces to
22511 reference the interface tag of the actual object.
22512 (Expand_Interface_Conversion): New subprogram. Reference the base of
22513 the object to give access to the interface tag associated with the
22514 secondary dispatch table.
22515 (Expand_Interface_Thunk): New subprogram that generates the code of the
22516 thunk. This is required for compatibility with the C+ ABI.
22517 (Make_Abstract_Interface_DT): New subprogram that generate the
22518 declarations for the secondary dispatch tables associated with an
22519 abstract interface.
22520 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
22521 attribute for each primitive operation covering interface subprograms
22522 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
22523 These subprograms were upgraded to give support to abstract interfaces
22525 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
22526 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
22527 RE_Set_Access_Level.
22528 (RE_Unit_Table): Add entries for new Ada.Tags operations.
22529 Add support to call the followig new run-time subprograms:
22530 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
22532 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
22533 match its full declaration when both have an access definition with
22534 statically matching designated subtypes.
22535 (Analyze_Component_Declaration): Delete commented out code that was
22536 incorrectly setting the scope of an anonymous access component's type.
22537 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
22538 an access discriminant when the containing type is nonlimited.
22539 (Make_Incomplete_Type_Declaration): Create an incomplete type
22540 declaration for a record type that includes self-referential access
22542 (Check_Anonymous_Access_Types): Before full analysis of a record type
22543 declaration, create anonymous access types for each self-referential
22545 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
22546 an access component in this context is a Local_Anonymous_Access, for
22547 proper accessibility checks.
22548 (Access_Definition): Set properly the scope of the anonymous access type
22549 created for a stand-alone access object.
22550 (Find_Type_Of_Object): An object declaration may be given with an access
22552 (Complete_Subprograms_Derivation): New subprogram used to complete
22553 type derivation of private tagged types implementing interfaces.
22554 In this case some interface primitives may have been overriden
22555 with the partial-view and, instead of re-calculating them, they
22556 are included in the list of primitive operations of the full-view.
22557 (Build_Derived_Record_Type): Modified to give support to private
22558 types implemening interfaces.
22559 (Access_Definition): Reject ALL on anonymous access types.
22560 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
22561 type derivation to occur at a deeper accessibility level than the
22563 For the case of derivation within a generic body however, disallow the
22564 derivation if the derived type has an ancestor that is a formal type
22565 declared in the formal part of an enclosing generic.
22566 (Analyze_Object_Declaration): For protected objects, remove the check
22567 that they cannot contain interrupt handlers if not declared at library
22569 (Add_Interface_Tag_Components): New subprogram to add the tag components
22570 corresponding to all the abstract interface types implemented by a
22571 record type or a derived record type.
22572 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22573 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22574 Process_Full_View, Record_Type_Declaration): Modified to give
22575 support to abstract interface types
22576 (Collect_Interfaces): New subprogram that collects the list of
22577 interfaces that are not already implemented by the ancestors
22578 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
22579 when partial view has no discriminants and full view has defaults.
22580 (Constrain_Access): Reject a constraint on a general access type
22581 if the discriminants of the designated type have defaults.
22582 (Access_Subprogram_Declaration): Associate the Itype node with the inner
22583 full-type declaration or subprogram spec. This is required to handle
22584 nested anonymous declarations.
22585 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22586 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22587 Process_Full_View, Record_Type_Declaration): Modified to give
22588 support to abstract interface types
22589 (Derive_Subprograms): Addition of a new formal to indicate if
22590 we are in the case of an abstact-interface derivation
22591 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
22592 to the specification because it is requied to analyze all the
22593 identifiers found in a list of interfaces
22595 * debug.adb: Complete documentation of flag "-gnatdZ"
22597 * exp_ch3.adb: Implement config version of persistent_bss pragma
22598 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
22599 testing for TSS presence to properly enforce visibility rules.
22600 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
22601 Make_Abstract_Interfaces_DT to generate the secondary tables
22602 associated with abstract interfaces.
22603 (Build_Init_Procedure): Modified to initialize all the tags
22605 (Component_Needs_Simple_Initialization): Similar to other tags,
22606 interface tags do not need initialization.
22607 (Freeze_Record_Type): Modified to give support to abstract interface
22609 (Expand_N_Object_Declaration): Do not generate an initialization for
22610 a scalar temporary marked as internal.
22612 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
22613 in-out parameter that is a component in an initialization procedure,
22614 whose constraint might depend on discriminants, and that may be
22615 misaligned because of packing or representation clauses.
22616 (Is_Legal_Copy): New predicate to determine whether a possibly
22617 misaligned in-out actual can actually be passed by copy/return. This
22618 is an error in case the type is by_reference, and a warning if this is
22619 the consequence of a DEC import pragma on the subprogram.
22620 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
22622 (Expand_Inlined_Call): Mark temporary generated for the return value as
22623 internal, so that no useless scalar normalization is generated for it.
22624 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
22625 null procedure can always be inlined.
22626 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
22627 procedure, generate an explicit empty body for it.
22629 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
22630 Given a type implementing an interface, returns the corresponding
22631 access_disp_table value.
22632 (Find_Interface_Tag): New subprogram. Given a type implementing an
22633 interface, returns the record component containing the tag of the
22635 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
22636 previous ones that return the corresponding tag and access_disp_table
22638 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
22639 is a predefined primitive operation.
22640 (Expand_Subtype_From_Expr): If the expression is a selected component
22641 within an initialization procedure, compute its actual subtype, because
22642 the component may depend on the discriminants of the enclosing record.
22644 * i-cpp.ads, i-cpp.adb:
22645 This package has been left available for compatibility with previous
22646 versions of the frontend. As part of the new layout this is now a
22647 dummy package that uses declarations available at a-tags.ads
22649 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
22650 "constant access" and "aliased [constant] access" when not compiling
22652 Suppress Ada 2005 keyword warning if -gnatwY used
22653 (P_Identifier_Declarations): Add support for object declarations with
22654 access definitions.
22655 (Private_Extension_Declaration): Complete the documentation
22656 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
22657 attribute in case of private extension declaration
22658 (P_Type_Declaration): Mark as "abstract" the type declarations
22659 corresponding with protected, synchronized and task interfaces
22660 (P_Declarative_Items): "not" and "overriding" are overriding indicators
22661 for a subprogram or instance declaration.
22663 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
22664 instantiation that is a dispatching operation has controlling access
22665 parameters that are null excluding.
22666 Save and restore Ada_Version_Explicit, for implementation of AI-362
22667 (Validate_Derived_Type_Instance): Add check for abstract interface
22669 (Analyze_Formal_Package): Establish Instantiation source for the copy of
22670 the generic that is created to represent the formal package.
22671 (Analyze_Package_Instantiation): Instantiate body immediately if the
22672 package is a predefined unit that contains inlined subprograms, and
22673 we are compiling for a Configurable_Run_Time.
22674 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
22675 If the program has a null default, generate an empty body for it.
22677 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
22678 error message condition, null procedures are correctly detected now.
22679 (New_Overloaded_Entity): Bypass trivial overriding indicator check
22680 for subprograms in the context of protected types. Instead, the
22681 indicator is examined in Sem_Ch9 while analysing the subprogram
22683 (Check_Overriding_Indicator): Check consistency of overriding indicator
22684 on subprogram stubs as well.
22685 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
22687 (Analize_Subprogram_Specification): When analyzing a subprogram in which
22688 the type of the first formal is a concurrent type, replace this type
22689 by the corresponding record type.
22690 (Analyze_Subprogram_Body): Undo the previous work.
22691 (Analyze_Procedure_Call): If the call has the form Object.Op, the
22692 analysis of the prefix ends up analyzing the call itself, after which
22694 (Has_Interface_Formals): New subprogram subsidiary to analyze
22695 subprogram_specification that returns true if some non
22696 class-wide interface subprogram is found
22697 (New_Overloaded_Entity): Modified to give support to abstract
22699 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
22700 access to subprograms must be recursive.
22701 (Is_Unchecked_Conversion): Improve the test that recognizes
22702 instantiations of Unchecked_Conversion, and allows them in bodies that
22703 are to be inlined by the front-end. When the body comes from an
22704 instantiation, a reference to Unchecked_Conversion will be an
22705 Expanded_Name, even though the body has not been analyzed yet.
22706 Replace Is_Overriding and Not_Overriding in subprogram_indication with
22707 Must_Override and Must_Not_Override, to better express intent of AI.
22708 (Analyze_Subprogram_Body): If an overriding indicator is given, check
22709 that it is consistent with the overrinding status of the subprogram
22711 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
22713 If the subprogram is a null procedure, indicate that it does not need
22716 * sem_disp.adb (Check_Controlling_Type): Give support to entities
22717 available through limited-with clauses.
22718 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
22719 allowed as the last primitive of a tagged type if it has no previous
22721 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
22722 to give support to abstract interface types
22724 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
22725 in the case where the target type is an anonymous access type of an
22726 object or component (that is, when Is_Local_Anonymous_Access is true).
22727 Prevent the special checks for conversions of access discriminants in
22728 the case where the discriminant belongs to a nonlimited type, since
22729 such discriminants have their accessibility level defined in the same
22730 way as a normal component of an anonymous access type.
22731 (Resolve_Allocator): When an allocator's designated type is a class-wide
22732 type, check that the accessibility level of type given in the
22733 allocator's expression or subtype indication is not statically deeper
22734 than the level of the allocator's access type.
22735 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
22736 name in a discriminant constraint of a record component.
22737 (Resolve_Explicit_Dereference): Do not check whether the type is
22738 incomplete when the dereference is a use of an access discriminant in
22739 an initialization procedure.
22740 (Resolve_Type_Conversion): Handle conversions to abstract interface
22742 (Valid_Tagged_Conversion): The conversion of a tagged type to an
22743 abstract interface type is always valid.
22744 (Valid_Conversion): Modified to give support to abstract interface types
22745 (Resolve_Actuals): Enable full error reporting on view conversions
22746 between unrelated by_reference array types.
22747 The rule for view conversions of arrays with aliased components is
22748 weakened in Ada 2005.
22749 Call to obsolescent subprogram is now considered to be a violation of
22750 pragma Restrictions (No_Obsolescent_Features).
22751 (Check_Direct_Boolean_Operator): If the boolean operation has been
22752 constant-folded, there is nothing to check.
22753 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
22754 check on possible violation of restriction No_Direct_Boolean_Operators
22755 until after expansion of operands, to prevent spurious errors when
22756 operation is constant-folded.
22758 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
22759 Has_Compatible_Type): Modified to give support to abstract interface
22761 (Interface_Present_In_Ancestor): New function to theck if some ancestor
22762 of a given type implements a given interface
22764 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
22765 prefix is a parameterless function that returns an access_to_procedure.
22766 (Transform_Object_Operation): Handle properly function calls of the
22767 form Obj.Op (X), which prior to analysis appear as indexed components.
22768 (Analyze_One_Call): Complete the error notification to help new Ada
22770 (Analyze_Allocator): For an allocator without an initial value, where
22771 the designated type has a constrained partial view, a discriminant
22772 constraint is illegal.
22774 2005-06-14 Robert Dewar <dewar@adacore.com>
22776 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
22777 do with treatment of Set_Col when positioned at end of line character.
22779 2005-06-14 Robert Dewar <dewar@adacore.com>
22781 * atree.adb: (Elist*): Protect against uninitialized field
22783 2005-06-14 Ed Schonberg <schonberg@adacore.com>
22785 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
22786 for an attribute reference that returns an access type.
22787 (Apply_Discriminant_Check): No need for check if (designated) type has
22788 constrained partial view.
22790 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
22791 both bound checks, rather than a conjunction.
22792 (Insert_Valid_Check): If the expression is an actual that is an indexed
22793 component of a bit-packed array, force expansion of the packed element
22794 reference, because it is specifically inhibited elsewhere.
22796 2005-06-14 Vincent Celier <celier@adacore.com>
22798 * clean.adb (Clean_Project): Correctly delete executable specified as
22799 absolute path names.
22801 * make.adb (Gnatmake): Allow relative executable path names with
22802 directory information even when project files are used.
22803 (Change_To_Object_Directory): Fail gracefully when unable to change
22804 current working directory to object directory of a project.
22805 (Gnatmake): Remove exception handler that could no longer be exercized
22806 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
22807 may be deallocated by Normalize_Arguments.
22808 (Collect_Arguments): Eliminate empty arguments
22810 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
22811 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
22812 (Check_Project): Return False when Project is No_Project. Return True
22813 when All_Projects is True.
22814 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
22815 All_Projects to True.
22818 2005-06-14 Ed Schonberg <schonberg@adacore.com>
22819 Javier Miranda <miranda@adacore.com>
22820 Thomas Quinot <quinot@adacore.com>
22821 Robert Dewar <dewar@adacore.com>
22822 Hristian Kirtchev <kirtchev@adacore.com>
22823 Gary Dismukes <dismukes@adacore.com>
22825 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
22826 anonymous access types, to indicate that the accessibility level of
22827 the type is determined by that of the enclosing declaration.
22828 (Has_Persistent_BSS): New flag
22829 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
22830 of this attribute with functions.
22831 (Is_Primitive_Wrapper): Remove the barrier.
22832 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
22833 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
22835 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
22836 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
22838 (Is_Pure_Unit_Access_Type): New flag
22839 (Abstract_Interfaces): Complete the assertion to cover all usages.
22840 (Set_Is_Interface): Complete the assertion to cover all usages.
22841 (Is_Primitive_Wrapper): New attribute.
22842 (Is_Obsolescent): Now applies to all entities (though it is only set
22843 for subprograms currently)
22844 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
22845 which solves various problems concerning access subtypes.
22846 (Has_Persistent_BSS): New flag
22847 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
22848 Remove these subprograms because this attribute is currently
22851 Has_Specified_Stream_Input (Flag190)
22852 Has_Specified_Stream_Output (Flag191)
22853 Has_Specified_Stream_Read (Flag192)
22854 Has_Specified_Stream_Write (Flag193)
22855 Present in all type and subtype entities. Set for a given view if the
22856 corresponding stream-oriented attribute has been defined by an
22857 attribute definition clause. When such a clause occurs, a TSS is set
22858 on the underlying full view; the flags are used to track visibility of
22859 the attribute definition clause for partial or incomplete views.
22860 (Is_Pure_Unit_Access_Type): New flag
22861 Clarify use of Is_Internal.
22862 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
22863 internally generated to wrap the invocation of tasks and protected
22864 types that implement interfaces.
22865 (Implementation_Base_Type): Documentation correction
22866 (Is_Obsolescent): Now applies to all entities (though it is only set
22867 for subprograms currently)
22868 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
22869 which solves various problems concerning access subtypes.
22871 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
22872 for examined parameters. Identify unequal parameter list lengths as
22873 non-conformant parameters.
22874 (Overriding_Possible): Do not check for "All" qualifier in declaration
22875 of controlling access parameter, following prescription of AI-404.
22876 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
22877 that build the procedure body that wraps an entry invocation
22878 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
22879 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
22880 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
22881 give support to abstract interface types
22883 * freeze.adb (Freeze_Entity): Issue error message if
22884 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
22885 type has no storage pool (Ada 2005) AI-366.
22886 Also modified to give support to abstract interface types
22887 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
22888 Inline_Always pragma.
22890 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
22891 now begin an entry declaration.
22892 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
22893 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
22894 a subprogram declaration preceded by an overriding indicator.
22895 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
22896 declarations or subprogram declarations preceded by reserved words
22897 "not" or "overriding".
22898 (P_Entry_Declaration): Update comment. Parse and check overriding
22899 indicator, set semantic flags of entry declarations.
22900 (P_Task): New error message in case of private applied
22901 to a task type declaration.
22902 (P_Protected): New error message in case of private applied
22903 to a task type declaration.
22905 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
22906 in which the full view of a type implementing an interface is a
22908 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
22909 Declare_Inherited_Private_Subprograms): If an explicit operation
22910 overrides an operation that is inherited in the private part, mark the
22911 explicit one as overriding, to enable overriding indicator checks.
22912 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
22913 full view to partial view, to simplify handling in back-end.
22915 * sprint.adb: Print interface lists where needed: derived types,
22916 protected types, task types.
22917 output "is null" for null procedures. Part of implementation of
22919 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
22920 relaxation of rules for access types in pure, shared passive partitions.
22922 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
22923 first read discriminants into temporary objects, performing checks on
22924 the read values, then possibly performing discriminant checks on the
22925 actual (if it is constrained), and only finally reading the components
22926 into a constrained temporary object.
22927 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
22928 case of reading discriminants of a mutable record type to recognize
22929 the new form of the code generated by
22930 Build_Mutable_Record_Read_Procedure.
22932 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
22933 of a simple call to Make_TSS_Name.
22934 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
22935 buffer, in order for Is_TSS to work correctly on local TSS names.
22937 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
22938 Is_Local_Anonymous_Access to check legaliy of attributes in the
22939 context of access components and stand-alone access objects.
22940 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
22941 treated as available for a limited private type if there is an
22942 attribute_definition_clause that applies to its full view, but not in
22943 other cases where the attribute is available for the full view
22944 (specifically, the sole fact that the full view is non-limited does not
22945 make the attribute available for the partial view).
22946 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
22947 non-overloaded intrinsic subprogram.
22948 (Check_Stream_Attribute): Reject an attribute reference for an
22949 unavailable stream attribute even if the prefix is not a limited type
22950 (case of a 'Input attribute reference for an abstract, non-classwide
22952 (Stream_Attribute_Available): New function to determine whether a stream
22953 attribute is available at a place.
22954 (Check_Attribute): Use Stream_Attribute_Available instead of just
22955 testing for TSS presence on the implementation base type.
22956 (Analyze_Attribute): Modified to give support to task interfaces.
22957 (Analyze_Access_Attribute): Add error check for use of an Access (or
22958 Unrestricted_Access) attribute with a subprogram marked as
22960 (Analyze_Attribute, case Attribute_Address): Add error check for use of
22961 an Address attribute with a subprogram marked as Inline_Always.
22962 Update Eval_Attribute to handle new value of Width from AI-395
22964 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
22965 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
22966 Factor common code across the stream-oriented attribute circcuits into
22967 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
22968 processing is functionally identical to the previous duplicated one,
22969 except that an expression that denotes an abstract subprogram will now
22970 be rejected, as mandated by AI-195 item 5.
22972 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
22973 Is_Local_Anonymous_Access to apply accessibility checks to access
22974 components and stand-alone access objects.
22975 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
22977 (Is_Potentially_Persistent_Type): New function
22978 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
22979 a heap-object whose type has a constrained partial view, the object is
22980 unconstrained and the component may depend on a discriminant, making its
22983 * sinfo.ads, sinfo.adb
22984 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
22985 (Must_Override): Flag applicable to N_Entry_Declaration.
22986 Indicate that interface_list can appear in single task and single
22987 protected declarations.
22988 Replace Is_Overriding and Not_Overriding with Must_Override and
22989 Must_Not_Override, to better express intent of AI.
22990 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
22991 of an overriding indicator in a subprogram or instance.
22992 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
22993 Add the overriding indicator [[not] overriding] construct to the
22994 following grammar productions:
22996 GENERIC_INSTANTIATION
22997 SUBPROGRAM_SPECIFICATION
22999 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
23000 can start with an overriding indicator.
23002 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
23003 flags accordingly on subrogram specifications or instances.
23006 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
23007 overriding_indicator, if present, is consistent with status of spec.
23008 Improve error message for null-excluding checks on controlling access
23010 (Check_In_Previous_With_Clause): Protect the frontend against
23011 previously reported critical errors in the context clauses.
23012 Save and restore Ada_Version_Explicit, for implementation of AI-362
23013 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
23014 operation verify that controlling formals of the renamed entity that
23015 are access parameters are explicitly non-null.
23016 (Find_Expanded_Name): Improve error message when prefix is an illegal
23017 reference to a private child unit.
23019 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
23020 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
23021 Rewrite to correspond to new wide character names in AI-395
23023 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
23024 default procedures.
23026 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23027 Robert Dewar <dewar@adacore.com>
23029 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
23030 code, not on the bodies of predefined operations, to cut down on
23033 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23035 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
23036 be expanded in place. The size computation does not require a
23037 subtraction, which would raise an exception on a compiler built with
23038 assertions when the upper bound is Integer'first.
23039 (Flatten): For an array of composite components, take into account the
23040 size of the components to determine whether it is safe to expand the
23041 array into a purely positional representation.
23043 2005-06-14 Thomas Quinot <quinot@adacore.com>
23045 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
23046 denoting a formal parameter into account.
23048 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23050 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
23051 the entry_call alternative of a conditional entry call, wrap the
23052 conditional entry call itself.
23054 2005-06-14 Nicolas Setton <setton@adacore.com>
23055 Ed Schonberg <schonberg@adacore.com>
23057 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
23058 the "simple_choice" member in a variant record, in accordance with the
23059 description in the package spec: the information output for a constant
23060 should be "S number", not "SS number".
23061 (Get_Encoded_Name): Return at once if not generating code. Avoids name
23062 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
23064 2005-06-14 Thomas Quinot <quinot@adacore.com>
23066 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
23067 RACW without any primitives, do not generate the if statement for
23068 dispatching by name in the PolyORB/DSA case, as it would be malformed
23069 (it would have an Elsif_Parts list that is not No_List, but with a
23072 2005-06-14 Robert Dewar <dewar@adacore.com>
23074 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
23076 2005-06-14 Jose Ruiz <ruiz@adacore.com>
23078 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
23079 can determine whether pragma Suppress_Exception_Locations is in effect.
23081 * utils2.c (build_call_raise): Do not pass the file name to the
23082 exception handler if pragma Suppress_Exception_Locations is in effect.
23083 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
23085 2005-06-14 Emmanuel Briot <briot@adacore.com>
23087 * g-debpoo.adb (Deallocate, Dereference): Improve output.
23089 2005-06-14 Nicolas Roche <roche@adacore.com>
23091 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
23093 (Next_Level): Fix minor bug in handling of ../dir case
23094 (Read): Add dir separator to Directory name so that "" is understood as
23097 2005-06-14 Pascal Obry <obry@adacore.com>
23099 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
23100 releasing the items.
23102 2005-06-14 Vincent Celier <celier@adacore.com>
23103 Cyrille Comar <comar@adacore.com>
23105 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
23106 with output file descriptor and with output file name.
23107 (Dup, Dup2): Now global procedures as they are used by two subprograms
23108 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
23110 2005-06-14 Thomas Quinot <quinot@adacore.com>
23113 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
23115 (Create_Selector): Bind listening socket used to create the signalling
23116 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
23117 Set listen backlog to 1 to ensure that we detect socket theft by a
23118 failure of our own connect(2) call.
23119 (Check_Selector): Improve documentation of the selector mechanism.
23120 (Broadcast_Inet_Addr): New constant.
23122 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23124 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
23125 type which turns out to be an incomplete and incorrect fix.
23126 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
23127 of the type is declared in a record (for determination of insertion
23129 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
23130 a private type and ensure that the primary entity is used for the type
23131 of the newly created function's V formal by taking the Etype of the
23134 2005-06-14 Javier Miranda <miranda@adacore.com>
23135 Jose Ruiz <ruiz@adacore.com>
23136 Robert Dewar <dewar@adacore.com>
23137 Ed Schonberg <schonberg@adacore.com>
23139 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
23140 that indicates if we are parsing a compilation unit found in a
23141 limited-with clause.
23142 It is use to avoid the circularity check.
23144 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
23145 we are parsing a compilation unit found in a limited-with clause. This
23146 is use to avoid the circularity check.
23148 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
23149 unit as a consequence of parsing a limited-with clause. This is used
23150 to avoid the circularity check.
23152 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
23153 (Analyze_Context): Limited-with clauses are now allowed
23154 in more compilation units.
23155 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
23156 againts previously reported critical errors in context clauses
23157 (Install_Limited_Withed_Unit): Code cleanup plus static detection
23158 of two further errors: renamed subprograms and renamed packages
23159 are not allowed in limited with clauses.
23160 (Install_Siblings): Do not install private_with_clauses on the package
23161 declaration for a non-private child unit.
23162 (Re_Install_Parents): When a parent of the subunit is reinstalled,
23163 reset visibility of child units properly.
23164 (Install_Withed_Unit): When a child unit appears in a with_clause of its
23165 parent, it is immediately visible.
23167 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23168 Emmanuel Briot <briot@adacore.com>
23170 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
23171 declared within an inlined body as referenced, to prevent spurious
23173 (Output_One_Ref): If an entity renames an array component, indicate in
23174 the ALI file that this aliases (renames) the array. Capture as well
23175 function renamings that rename predefined operations.
23176 Add information about generic parent for package and subprogram
23178 (Get_Type_Reference): For a subtype that is the renaming of an actual in
23179 an instantiation, use the first_subtype to ensure that we don't generate
23180 cross-reference information for internal types.
23181 For objects and parameters of a generic private type, retain the '*'
23182 indicator to distinguish such an entity from its type.
23184 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
23185 to store information about instantiated entities.
23187 * ali.adb (Scan_ALI): Add support for parsing the reference to the
23190 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
23191 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
23194 2005-06-10 Doug Rupp <rupp@adacore.com>
23195 Arnaud Charlet <charlet@adacore.com>
23196 Olivier Hainque <hainque@adacore.com>
23197 Jose Ruiz <ruiz@adacore.com>
23199 * Make-lang.in: Add initialize.o when needed.
23200 Remove obsolete references to RT_FLAGS.
23201 Add missing dependencies for sdefault.o
23203 * initialize.c: New file.
23205 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
23206 [VMS] cond_signal_table: Fix problem in declaration.
23207 [VMS] __gnat_error_handler: rewrite.
23208 Move all __gnat_initialize() routines to initialize.c
23209 Specialize the former "hpux" section to "hppa hpux", as this is what the
23210 section really is here for and we now have other hpux ports that need
23211 different contents.
23212 (__gnat_adjust_context_for_raise) i386-linux: First version of this
23213 function for this target. Adjust PC by one in the machine context. This
23214 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
23215 it is more reliable to do that in the signal handler itself.
23216 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
23217 flags, so that the handler is passed the context structure to adjust
23218 prior to the raise.
23219 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
23220 SA_SIGINFO sigaction should look like. Call
23221 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
23222 Machine_State_Operations stuff.
23223 Add conditional code so that the x86_64 is also supported.
23225 2005-06-14 Pascal Obry <obry@adacore.com>
23227 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
23230 2005-06-14 Robert Dewar <dewar@adacore.com>
23232 * opt.ads, opt.adb: New flags for persistent_bss mode
23233 Add Ada_Version_Explicit, for implementation of AI-362
23234 Add Assertions_Enabled_Config and associated handling
23235 Needed since setting can be changed with Assertion_Policy pragma
23236 Add new flag Warn_On_Ada_2005_Compatibility
23238 * switch-c.adb: Recognize -gnatwy/Y
23239 Set Ada_Version_Explicit, for implementation of AI-362
23240 The -gnatg switch now includes -gnatyu
23242 * usage.adb: Add -gnatwy/Y
23243 Remove wrong asterisk on -gnatwX line
23244 Add line for -gnatyu switch
23246 2005-06-14 Vincent Celier <celier@adacore.com>
23248 * osint.adb (Add_Default_Search_Dirs): Put source and object
23249 directories of project files before directories coming from
23250 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
23252 2005-06-14 Robert Dewar <dewar@adacore.com>
23255 * par-ch2.adb (Scan_Pragma_Argument): New procedure
23256 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
23258 2005-06-14 Vincent Celier <celier@adacore.com>
23260 * prep.adb (Preprocess): Ignore error when scanning the first token of
23263 2005-06-14 Vincent Celier <celier@adacore.com>
23265 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
23266 (Check_Stand_Alone_Library): If the specified reference symbol file does
23267 not exist, only issue a warning when the symbol policy is not
23268 Controlled. And, when symbol policy is Compliant, set the symbol
23269 policy to Autonomous.
23271 2005-06-14 Vincent Celier <celier@adacore.com>
23273 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
23274 when the project file in a with clause is not the last one, that is the
23275 project file name is followed by a comma.
23276 * prj-pp.adb: (First_With_In_List): New Boolean global variable
23277 (Print): Issue list of project files separated by commas in with clauses
23278 according to the values returned by Is_Not_Last_In_List.
23279 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
23280 (Set_Is_Not_Last_In_List): New procedure
23282 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
23284 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
23286 2005-06-14 Robert Dewar <dewar@adacore.com>
23288 * scng.adb: Add call to new Check_EOF routine
23289 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
23290 Add some comments regarding wide character handling
23292 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
23294 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
23296 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
23297 characters are now considered graphic characters and hence yield false
23300 * nmake.adt: Modify header so that xnmake does not generate output
23301 files with multiple blank lines.
23303 * treeprs.adt: Remove a blank line so that output from xtreeprs does
23304 not have an extra blank line
23306 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23308 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
23309 expression when the component type is an anonymous access type to
23310 ensure that appropriate accessibility checks are done.
23312 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
23313 expression of an assignment when the target object is of an anonymous
23314 access type. This ensures that required accessibility checks are done.
23315 (One_Bound): Move the check for type Universal_Integer to
23317 (Process_Bounds): Check whether the type of the preanalyzed range is
23318 Universal_Integer, and in that case set Typ to Integer_Type prior
23319 to setting the type of the original range and the calls to One_Bound.
23321 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23323 * sem_case.adb (Expand_Others_Choice): Improve warning.
23325 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23327 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
23328 constraint of full view if present, when other type is discriminated.
23329 (Eval_Relational_Op): Recognize tests of pointer values against Null,
23330 when the pointer is known to be non-null, and emit appropriate warning.
23332 2005-06-14 Robert Dewar <dewar@adacore.com>
23333 Ed Schonberg <schonberg@adacore.com>
23336 * sem_prag.adb: Implement pragma Persistent_BSS
23337 Remove obsolete pragma Persistent_Data, Persistent_Object
23338 Set Ada_Version_Explicit, for implementation of AI-362
23339 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
23340 Add processing for pragma Pure_05 and Preelaborate_05
23341 Add processing for Assertion_Policy pragma
23342 Add pragma identifiers for Assert
23343 (Analyze_Pragma, case Assert): Check number of arguments
23344 (Process_Inline): Additional guard against an illegal program, where the
23345 argument of the pragma is undefined, and warnings on redundant
23346 constructs are enabled.
23347 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
23348 Ada_05 to this pragma, specifying that the pragma is only active in
23350 (Check_Arg_Order): New procedure
23351 Add appropriate calls to this procedure throughout
23352 Also throughout, check entity name before doing any other checks
23354 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
23355 Remove obsolete pragma Persistent_Data, Persistent_Object
23356 Add entries for pragma Pure_05 and Preelaborate_05
23357 Add entries for Assertion_Policy pragma and associated names
23358 Add some names for pragma argument processing
23360 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
23362 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23364 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
23365 appears within a negation (either from source or as a rewriting of
23366 inequality) adjust text of warning accordingly.
23368 2005-06-14 Thomas Quinot <quinot@adacore.com>
23370 * s-strxdr.adb: Follow AI95-00132
23372 2005-06-14 Arnaud Charlet <charlet@adacore.com>
23374 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
23376 2005-06-14 Arnaud Charlet <charlet@adacore.com>
23377 Jose Ruiz <ruiz@adacore.com>
23379 * s-tposen.adb, s-tpobop.adb
23380 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
23382 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
23383 there is no violation of the Max_Entry_Queue_Length restriction (if it
23384 has been set); Program_Error is raised otherwise.
23385 (Requeue_Call): Before requeuing the task on the target entry queue we
23386 check that there is no violation of the Max_Entry_Queue_Length
23387 restriction (if it has been set); Program_Error is raised otherwise.
23389 2005-06-14 Robert Dewar <dewar@adacore.com>
23391 * styleg.adb: Fix several remaining problems in -gnatyu switch
23392 Blank line count not reset at start
23393 Scanning outside source buffer in some cases
23394 Confusing message for blanks at end of file
23395 Non-empty blank lines not recognized
23397 * nmake.adt: Modify header so that xnmake does not generate output
23398 files with multiple blank lines.
23400 * treeprs.adt: Remove a blank line so that output from xtreeprs does
23401 not have an extra blank line
23403 2005-06-14 Sergey Rybin <rybin@adacore.com>
23405 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
23407 2005-06-14 Doug Rupp <rupp@adacore.com>
23408 Vincent Celier <celier@adacore.com>
23410 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
23413 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23414 Remove "Library" command.
23415 Change keyword for style check -gnatyd from NOCRLF to
23417 Remove useless second style check keyword NONE
23418 Remove help documentation for inexistent style check keyword
23420 Add help documentation for style check keywords DOS_LINE_ENDINGS,
23421 UNNECESSARY_BLANK_LINES and XTRA_PARENS
23422 Add UNNECESSARY_BLANK_LINES for -gnatyu
23423 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
23425 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23427 2005-06-14 Vincent Celier <celier@adacore.com>
23429 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
23430 gprmake was invoked with -d.
23431 (Compile_Sources): If -d was used, output the "completed ..." message
23432 for each compilation.
23433 (Scan_Arg): Recognize new switch -d
23434 When -c and at least one main is specified, set
23435 Unique_Compile to True to guarantee that no other sources will be
23438 2005-06-14 Matthew Heaney <heaney@adacore.com>
23440 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
23441 * a-swuwha.ads, a-swuwha.adb: New files
23443 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
23444 * a-szuzha.ads, a-szuzha.adb: New files.
23446 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23447 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
23448 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
23449 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
23450 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
23451 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
23452 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
23453 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
23454 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
23455 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
23458 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
23459 Olivier Hainque <hainque@adacore.com>
23460 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23461 Pascal Obry <obry@adacore.com>
23463 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
23465 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
23466 making a temporary around a procedure call because of non-addressable
23468 (process_freeze_entity): If entity is a private type, capture size
23469 information that may have been computed for the full view.
23470 (tree_transform, case N_Allocator): If have initializing expression,
23471 check type for Has_Constrained_Partial_View and pass that to
23473 (tree_transform, case N_Return_Statement): Pass extra arg to
23476 * decl.c (annotate_value): Remove early return if -gnatR is not
23478 (gnat_to_gnu_field): Don't make a packable type for a component clause
23479 if the position is byte aligned, the field is aliased, and the clause
23480 size isn't a multiple of the packable alignment. It serves no useful
23481 purpose packing-wise and would be rejected later on.
23482 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
23485 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
23486 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
23488 (create_concat_name): Idem.
23490 2005-06-10 Robert Dewar <dewar@adacore.com>
23491 Eric Botcazou <ebotcazou@adacore.com>
23492 Ben Brosgol <brosgol@adacore.com>
23493 Cyrille Comar <comar@adacore.com>
23494 Sergey Rybin <rybin@adacore.com>
23495 Pascal Obry <obry@adacore.com>
23497 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
23498 Document second argument (Ada_05) of pragma Obsolescent
23499 Add note that call to subprogram marked with pragma Obsolescent
23500 is now considered to be a violation of program Restrictions
23501 (No_Obsolescent_Features).
23502 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
23503 that only machine-dependent attributes are supported.
23506 Commented out menu lines and empty section for gnatclean examples
23508 Fix some over long lines
23509 Clarify and enhance documentation of ADA_PROJECT_PATH.
23510 Rework section 2.11.2(3) about linking with a non-GNU compiler.
23511 Mention new switch -fcallgraph-info.
23512 Mention new switch -fstack-usage.
23513 For gnatpp, replace '-notab' with '-N' and add this option to Index
23514 Corrected VMS example.
23515 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
23517 Add documentation for -gnatyu switch (unnecessary blank lines)
23518 Document new switch -U for GNAT PRETTY and GNAT METRIC
23519 Add note about Stdcall being handled as C convention on non Windows OS.
23520 Remove some junk typo in description of gnatbind -S switch
23521 Remove reference to Extensions_Allowed pragma
23522 Document the new order of the directories to be searched (source and
23523 object directories of project files before directories in ADA_*_PATH
23524 environment variables.
23526 * g-trasym.ads: Document that IRIX is supported
23528 2005-06-10 Arnaud Charlet <charlet@adacore.com>
23530 * Makefile.in: Add initialize.o when needed.
23531 Adapt to new VMS package body Symbols and subunits
23532 No specialized version of a-sytaco is needed for VxWorks.
23534 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
23535 * a-zchara.ads, a-widcha.ads: New files.
23537 * system-hpux-ia64.ads: New file.
23539 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
23540 is imported from the VxWorks kernel.
23542 2005-06-14 Robert Dewar <dewar@adacore.com>
23544 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
23545 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
23546 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
23547 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
23548 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
23549 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
23550 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
23551 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
23552 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
23553 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
23554 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
23555 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
23557 2005-06-14 Thomas Quinot <quinot@adacore.com>
23559 * xeinfo.adb: Fix typo in comment
23561 2005-06-14 Javier Miranda <miranda@adacore.com>
23563 * repinfo.ads: Fix typo in comment
23565 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23567 * s-finimp.adb (Parent_Tag): Delete this imported function (function
23568 Parent_Tag is now in the visible part of Ada.Tags).
23569 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
23570 using imported function.
23572 2005-06-14 Bernard Banner <banner@adacore.com>
23574 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
23575 also apply for handling support for VxSim 653.
23577 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
23579 * xsnames.adb: Add automatic generation of snames.h.
23581 2005-06-14 Thomas Quinot <quinot@adacore.com>
23583 * gen-soccon.c: Add IP_MULTICAST_IF constant
23584 Minor reformatting and adjustments to prevent warnings.
23586 2005-06-14 Pascal Obry <obry@adacore.com>
23588 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
23590 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
23592 * trans.c (gnat_gimplify_expr): Call
23593 recompute_tree_invarant_for_addr_expr when we change
23594 the operand of the ADDR_EXPR.
23596 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23598 * misc.c: Don't include errors.h.
23600 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23602 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
23604 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
23606 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
23608 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
23610 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
23613 * Makefile.in: Make TGT_LIB behave correctly.
23615 2005-04-23 DJ Delorie <dj@redhat.com>
23617 * misc.c: Adjust warning() callers.
23619 2005-04-16 Laurent Guerby <laurent@guerby.net>
23622 * a-nudira.adb (Value): Check for valid string.
23623 * a-nuflra.adb (Value): Likewise.
23625 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
23627 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
23629 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
23631 * adaint.c, init.c, tracebak.c: Fix comment typos.
23632 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
23634 2005-04-07 Laurent Guerby <laurent@guerby.net>
23635 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23637 * Makefile.in: Add make ifeq define for hppa linux tasking support.
23638 * system-hpux.ads: Define Signed_Zeros to be True.
23639 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
23641 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
23643 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
23644 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
23647 2005-03-30 Tom Tromey <tromey@redhat.com>
23649 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
23651 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
23653 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
23655 2005-03-29 Robert Dewar <dewar@adacore.com>
23657 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
23658 fixed-point expression has value that is not a multiple of the Small
23661 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
23663 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
23666 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
23668 2005-03-29 Vincent Celier <celier@adacore.com>
23670 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
23671 (Build_Dynamic_Library.Version_String): Return the empty string when
23672 Lib_Version is empty or when the symbol policy is not Autonomous.
23674 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
23675 a symbol is not in the reference symbol file, increase the Major ID
23676 and set the Minor ID to 0.
23677 Use gsmatch=lequal instead of gsmatch=equal
23679 2005-03-29 Doug Rupp <rupp@adacore.com>
23681 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
23682 name and translate.
23684 2005-03-29 Javier Miranda <miranda@adacore.com>
23686 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
23687 (Inherit_DT): The first formal has been redefined as a Tag.
23688 This allows us the removal of the subprogram Get_TSD.
23689 (TSD): Replace the call to Get_TSD by the actual code.
23691 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
23692 (Make_DT): Upgrade the call to Inherit_TSD according to the
23693 new interface: the first formal is now a Tag.
23695 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
23696 redefined as a Tag.
23697 This change allows us to remove the subprogram Get_TSD.
23698 (CPP_Get_TSD): Subprogram removed.
23699 (TSD): Replace the call to CPP_Get_TSD by the actual code.
23701 * rtsfind.ads: Remove support to call the run-time
23704 2005-03-29 Robert Dewar <dewar@adacore.com>
23706 * errutil.adb, errout.adb:
23707 Minor comment updates on Line_Terminator references
23709 * par-ch10.adb: Add ??? comment about line terminator
23711 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
23712 (check dos line terminator).
23713 (Check_Line_Max_Length): New procedure, split off from the existing
23714 Check_Line_Terminator routine. Separating this out allows -gnatyf to
23715 be properly recognized.
23717 * styleg.adb: Add ??? comment for line terminator reference
23719 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
23720 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
23722 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
23723 (check dos line terminator).
23724 (Check_Line_Max_Length): New procedure, split off from the existing
23725 Check_Line_Terminator routine. Separating this out allows -gnatyf to
23726 be properly recognized.
23728 * stylesw.ads, stylesw.adb:
23729 Add handling for new -gnatyd switch (check dos line terminator)
23731 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
23732 Recognize -gnatwb/-gnatwB switches
23733 Include Warn_On_Bad_Fixed_Value for -gnatg
23736 Add line for new -gnatyd switch (check dos line terminator)
23738 * usage.adb: Add lines for -gnatwb/-gnatwB
23740 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
23742 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
23744 * gnat_ugn.texi: Fix overlong lines
23745 Document new -gnatyd switch
23746 Document new -gnatwb/-gnatwB switches
23748 2005-03-29 Ed Schonberg <schonberg@adacore.com>
23750 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
23751 order to retrieve the component list of the type, before examining
23752 individual components.
23754 * sem_type.adb (Covers): Types are compatible if one is the base type
23755 of the other, even though their base types might differ when private
23756 views are involved.
23758 2005-03-29 Thomas Quinot <quinot@adacore.com>
23760 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
23761 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
23762 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
23763 analyzed if expansion is disabled (which could otherwise cause spurious
23764 error messages if expansion has been disabled due to previous
23765 (unrelated) errors).
23767 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
23768 is disabled, the entity denoted by the argument is the access type
23769 itself, not an underlying record type, so there is no need to go back
23770 to the Corresponding_Remote_Type.
23772 2005-03-29 Gary Dismukes <dismukes@adacore.com>
23773 Robert Dewar <dewar@adacore.com>
23775 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
23776 expand a call to an instance of
23777 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
23778 Constructor actual of the instance. A class-wide membership
23779 check is also generated, to ensure that the tag passed to the instance
23780 denotes a type in the class.
23781 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
23782 of Name_Generic_Dispatching_Constructor.
23784 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
23785 05 unit for AI-260-02).
23787 * a-tgdico.ads: New file.
23789 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
23790 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
23792 * snames.ads, snames.adb (Preset_Names): Add entry for
23793 Generic_Dispatching_Constructor.
23796 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
23797 character type cases.
23798 (Analyze_Subprogram_Renaming): Add special handling for
23799 the case of renaming of stream attributes when the renaming denotes a
23800 generic formal subprogram association for an abstract formal subprogram.
23801 Check that the attribute is a primitive stream attribute (and not
23802 a class-wide stream attribute) and then rewrite the attribute name
23803 as the name of the appropriate compiler-generated stream primitive.
23805 2005-03-29 Robert Dewar <dewar@adacore.com>
23807 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
23809 (Is_Possibly_Unaligned_Object): Correct typo that
23810 resulted in inaccurate result for unaligned scalars within records.
23812 2005-03-29 Ed Schonberg <schonberg@adacore.com>
23814 * freeze.adb (Freeze_Record_Type): If the type of the component is an
23815 itype whose parent is controlled and not yet frozen, do not create a
23816 freeze node for the itype if expansion is disabled.
23818 2005-03-29 Vincent Celier <celier@adacore.com>
23820 * make.adb (Gnatmake): Don't fail if the main project file is declared
23821 as having no Ada sources. Do not display message "no sources to
23822 compile" in quiet output.
23824 2005-03-29 Doug Rupp <rupp@adacore.com>
23826 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
23829 2005-03-29 Robert Dewar <dewar@adacore.com>
23831 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
23834 2005-03-29 Robert Dewar <dewar@adacore.com>
23836 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
23837 missing TYPE Improve the error message generated when compiling a
23838 limited interface in Ada83 or Ada95 mode.
23840 2005-03-29 Robert Dewar <dewar@adacore.com>
23842 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
23843 rather than proceed ahead using a junk attribute name.
23845 2005-03-29 Vincent Celier <celier@adacore.com>
23847 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
23849 * prj-part.adb (Parse_Single_Project): Set the location of a project
23850 on its defining identifier, rather than on the reserved word "project".
23852 * prj-proc.adb (Expression): Adapt to the fact that default of external
23853 references may be string expressions, not always literal strings.
23854 (Recursive_Process): Set Display_Name equal to Name
23855 when Location is No_Location, that is when there is no actual file.
23856 Get the Display_Name of the project from the source, when it is not a
23858 (Process): Use the Display_Name in error messages
23860 * prj-strt.adb (External_Reference): Allow default to be string
23861 expressions, not only literal strings.
23863 2005-03-29 Vincent Celier <celier@adacore.com>
23865 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
23866 file and the reference symbol file to be the same file.
23868 2005-03-29 Thomas Quinot <quinot@adacore.com>
23870 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
23871 forbid conversion of a local access-to-subprogram type to a remote one.
23873 * sem_util.adb (Wrong_Type): For a record type that is the expanded
23874 equivalent type for a remote access-to-subprogram type, go back to the
23875 original RAS entity when displaying an error message, so the casing is
23876 the original source casing.
23878 2005-03-29 Robert Dewar <dewar@adacore.com>
23880 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
23883 2005-03-29 Ed Schonberg <schonberg@adacore.com>
23885 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
23886 subtype if code is being pre-analyzed, to prevent un-expanded
23887 references to protected formals, among others.
23888 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
23889 interpretation that can be a call, include the result of the call as a
23890 possible interpretation of the dereference.
23892 * sem_ch5.adb (Process_Bounds): Determine type of range by
23893 pre-analyzing a copy of the original range, and then analyze the range
23894 with the expected type.
23896 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
23897 with an overloaded prefix where not all interpretations yield an
23898 access to subprogram, do not rewrite node as a call.
23899 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
23900 the node as a call once the context identifies the interpretation of
23901 the prefix whose call yields the context type.
23902 (Valid_Conversion): For the case of a conversion between
23903 local access-to-subprogram types, check subtype conformance using
23904 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
23905 detailed error message.
23907 2005-03-29 Ed Schonberg <schonberg@adacore.com>
23909 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
23910 indicator, indicate that the formal can never be null.
23911 (Process_Formals): If a formal has a non_null indicator, insert the
23912 resulting subtype immediately before the enclosing subprogram decl,
23913 and not at the beginning of the corresponding declarative part, to
23914 prevent access before elaboration (Ada2005).
23916 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23919 * utils.c (finish_record_type): Use variable_size when setting sizes.
23921 2005-03-29 Robert Dewar <dewar@adacore.com>
23923 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
23924 guarantee Unix style line terminators for the output files, even when
23925 running on windows.
23927 2005-03-29 Robert Dewar <dewar@adacore.com>
23929 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
23930 buffer if an exception is raised.
23932 2005-03-29 Ed Falis <falis@adacore.com>
23934 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
23937 2005-03-29 Robert Dewar <dewar@adacore.com>
23939 * sem_util.ads: Minor reformatting
23940 * gnat_rm.texi: Minor editing.
23942 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
23944 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
23945 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
23947 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
23949 * adaint.c (__gnat_portable_spawn): Adjust cast.
23951 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
23953 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
23955 2005-03-17 Pascal Obry <obry@adacore.com>
23957 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
23960 * expect.c (__gnat_waitpid): Moved here from adaint.c.
23961 Reimplement under Win32 using Win32 API.
23963 (__gnat_kill) [Win32]: Properly close the process handle before leaving
23966 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
23968 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
23969 (DECL_RENAMED_OBJECT): New accessor macro.
23970 (SET_DECL_RENAMED_OBJECT): New setter macro.
23972 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
23973 object in all cases. Attach the renamed object to the VAR_DECL.
23974 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
23975 field is not prescribed.
23977 * misc.c (gnat_handle_option): Handle -gnatO separately.
23978 (gnat_print_decl) <VAR_DECL>: New case.
23979 Print the DECL_RENAMED_OBJECT node.
23981 * lang.opt: Declare separate -gnatO option.
23983 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
23984 pointer, replace it with the renamed object.
23985 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
23986 pointer type if the source is not a fat pointer type whose underlying
23987 array has the same non-zero alias set as that of the destination array.
23989 2005-03-17 Javier Miranda <miranda@adacore.com>
23991 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
23992 (Get_Inheritance_Depth): Removed.
23993 (Set_Inheritance_Depth): Removed.
23995 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
23996 subprogram Get_Expanded_Name because it is not referenced by the
23999 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
24000 (CPP_Get_Inheritance_Depth): Removed.
24001 (CPP_Set_Inheritance_Depth): Removed.
24003 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
24005 2005-03-17 Robert Dewar <dewar@adacore.com>
24007 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
24008 3, since we now expect GCC 3 to do all the work.
24010 2005-03-17 Javier Miranda <miranda@adacore.com>
24012 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
24013 of one barrier to avoid wrong usage of this attribute.
24015 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
24016 First_Private_Entity.
24018 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
24019 the subprogram against wrong usage.
24020 Adapt the code to traverse the entities in the
24021 scope of a record_type because in addition to its usage regarding
24022 packages, this subprogram is also called by Expand_N_Freeze_Entity
24023 to install the visible declarations of the enclosing scope of a
24024 record_type_with_private to establish the proper visibility before
24025 freezing the entity and related subprograms.
24027 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24029 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
24032 2005-03-17 Thomas Quinot <quinot@adacore.com>
24034 * exp_ch3.adb (Check_Attr): New subprogram.
24035 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
24036 into a new Check_Attr subprogram, in order to provide a more
24037 explanatory error message (including the name of the missing attribute).
24038 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
24039 subprogram determines whether a default implementation exists for a
24040 given stream attribute.
24041 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
24042 Determine whether to generate a default implementation for each stream
24043 attribute separately, as this depends on the specific attribute.
24045 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
24046 limited extension where a stream attribute is missing for a limited
24047 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
24048 generate a bogus reference to the missing attribute to prevent
24049 cascaded errors. Instead, generate a null statement.
24051 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
24052 available for a limited type if it has been specified for an ancestor
24055 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24057 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
24058 entity is an operator.
24060 2005-03-17 Thomas Quinot <quinot@adacore.com>
24062 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24063 spec, to make this predicate available to other units.
24065 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
24068 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
24069 when no distribution runtime library is available.
24071 * sem_res.adb, sem_dist.adb: Disable expansion of remote
24072 access-to-subprogram types when no distribution runtime library is
24074 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
24075 predicate available to other units.
24077 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24078 spec, to make this predicate available to other units.
24080 2005-03-17 Vincent Celier <celier@adacore.com>
24082 * make.adb (Insert_Project_Sources): Make sure the Q is always
24085 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
24086 the default for the tree, not the global default naming.
24088 * prj-proc.adb (Recursive_Process): No need to put the default naming
24089 in the project data, it's already there.
24091 2005-03-17 Doug Rupp <rupp@adacore.com>
24093 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
24095 * 5xcrtl.ads: Renamed to...
24096 * s-crtl-vms64.ads: ...this new file
24098 2005-03-17 Robert Dewar <dewar@adacore.com>
24101 * namet.adb (Copy_One_Character): Set proper wide character encoding
24102 for upper half character if we have upper half encoding.
24104 2005-03-17 Robert Dewar <dewar@adacore.com>
24106 * par.adb (Par): Improved msg for attempt to recompile predefined unit
24108 2005-03-17 Thomas Quinot <quinot@adacore.com>
24110 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
24111 tagged limited type, the TSS is a newly built renaming declaration:
24112 insert it using Set_TSS, not Copy_TSS.
24114 2005-03-17 Javier Miranda <miranda@adacore.com>
24116 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
24117 Try_Object_Operation): Analyze the object that is accessible
24118 through the prefix of the subprogram call before we apply
24119 the transformation of the object-operation notation.
24121 2005-03-17 Jose Ruiz <ruiz@adacore.com>
24123 * s-taprob.adb (Initialize_Protection): Initialize the protected
24124 object's owner to Null_Task.
24125 (Lock): If pragma Detect_Blocking is in effect and the caller of this
24126 procedure is already the protected object's owner then Program_Error
24127 is raised. In addition the protected object's owner is updated.
24128 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
24129 of this procedure is already the protected object's owner then
24130 Program_Error is raised.
24131 In addition the protected object's owner is updated.
24132 (Unlock): Remove the ownership of the protected object.
24134 * s-taprob.ads (Protection): Add the field Owner, used to store the
24135 protected object's owner.
24136 This component is needed for detecting one type of potentially blocking
24137 operations (external calls on a protected subprogram with the same
24138 target object as that of the protected action). Document the rest of
24141 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
24142 Initialize the protected object's owner to Null_Task.
24143 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
24144 caller of this procedure is already the protected object's owner then
24145 Program_Error is raised.
24146 Do not raise Program_Error when this procedure is called from a
24148 (Unlock_Entries): Remove the ownership of the protected object.
24149 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
24150 of this procedure is already the protected object's owner then
24151 Program_Error is raised.
24152 Do not raise Program_Error when this procedure is called from
24153 a protected action.
24155 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
24156 used to store the protected object's owner.
24158 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
24159 effect and this procedure (a potentially blocking operation) is called
24160 from whithin a protected action, Program_Error is raised.
24161 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
24162 and this procedure (a potentially blocking operation) is called from
24163 whithin a protected action, Program_Error is raised.
24165 2005-03-17 Vincent Celier <celier@adacore.com>
24166 Nicolas Setton <setton@adacore.com>
24168 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
24169 switch, not supported by the linker on Darwin. Add '_' before
24170 <library>init, as this character is added unconditionally by the
24172 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
24173 correct one ".dylib". This fixes detection of the archive files when
24174 building library projects.
24176 2005-03-17 Vincent Celier <celier@adacore.com>
24178 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
24179 -gnat83, -gnat95 and -gnat05.
24181 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
24183 * gnat_ugn.texi: Document gnatmem restriction
24185 2005-03-17 Thomas Quinot <quinot@adacore.com>
24187 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
24190 2005-03-17 Robert Dewar <dewar@adacore.com>
24192 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
24193 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
24194 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
24196 * casing.adb: Comment improvements
24198 2005-03-17 Pascal Obry <obry@adacore.com>
24200 * g-expect.adb: Minor reformatting.
24202 2005-03-15 Zack Weinberg <zack@codesourcery.com>
24204 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
24205 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
24208 2005-03-15 Vincent Celier <celier@adacore.com>
24210 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
24211 Add new parameter In_Tree to specify the project tree: needed
24212 by the project manager. Adapt to changes in project manager
24213 using new parameter In_Tree.
24215 2005-03-15 Jakub Jelinek <jakub@redhat.com>
24217 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
24218 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
24219 ada/bldtools to avoid make -jN failures.
24221 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24223 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
24224 to NULL_TREE on entry.
24226 2005-03-15 Robert Dewar <dewar@adacore.com>
24228 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24229 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24230 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24231 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24232 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24233 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
24234 system-interix.ads, system-solaris-sparc.ads,
24235 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24236 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
24237 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24238 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
24239 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
24240 Compiler_System_Version to be False.
24242 * opt.ads: Add new flag Opt.Address_Is_Private
24244 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
24245 Add new parameter Compiler_System_Version to avoid checking for
24246 completeness of parameters when compiler is compiling itself.
24247 Allows old versions of GNAT to be compiled with new compiler.
24249 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24251 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
24252 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
24254 (Stack_Base_Available): New flag.
24255 (Get_Page_Size): New overloaded functions imported from C.
24256 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
24257 PROT_ON, PROT_OFF): New constants.
24258 (mprotect): New function imported from C.
24259 (pthread_teb_t): New record type.
24261 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
24262 (Create_Task): Account for the Yellow Zone and the guard page.
24264 2005-03-15 Vincent Celier <celier@adacore.com>
24266 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24267 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24268 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
24269 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
24270 Library_File_Name_For): Add new parameter In_Tree
24271 to specify the project tree: needed by the project manager.
24272 Adapt to changes in project manager using new parameter In_Tree.
24273 Remove local imports, use functions in System.CRTL.
24275 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
24276 to use the project manager.
24278 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
24279 In_Tree to designate the project tree. Adapt to changes in the project
24280 manager, using In_Tree.
24282 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
24283 Copy_Interface_Sources): Add new parameter In_Tree to specify the
24284 project tree: needed by the project manager.
24285 (Build_Library): Check that Arg'Length >= 6 before checking if it
24286 contains "--RTS=...".
24288 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
24289 Library_File_Name_For): Add new parameter In_Tree to specify the
24290 project tree: needed by the project manager.
24292 * prj.ads, prj.adb: Major modifications to allow several project trees
24293 in memory at the same time.
24294 Change tables to dynamic tables and hash tables to dynamic hash
24295 tables. Move tables and hash tables from Prj.Com (in the visible part)
24296 and Prj.Env (in the private part). Move some constants from the visible
24297 part to the private part. Make other constants deferred.
24298 (Project_Empty): Make it a variable, not a function
24299 (Empty_Project): Add parameter Tree. Returns the data with the default
24300 naming data of the project tree Tree.
24301 (Initialize): After updating Std_Naming_Data, copy its value to the
24302 component Naming of Project Empty.
24303 (Register_Default_Naming_Scheme): Use and update the default naming
24304 component of the project tree, instead of the global variable
24306 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
24307 Tree is not defaulted, return the default naming data of the Tree.
24308 (Initial_Buffer_Size): Constant moved from private part
24309 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
24310 variables initialized in procedure Initialize.
24311 (Add_To_Buffer): Add two in out parameters to replace global variables
24312 Buffer and Buffer_Last.
24313 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
24315 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
24317 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24318 for the project tree.
24319 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
24320 constant at the beginning of the package spec, so that they cane be used
24321 in subprograms before their full declarations.
24322 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
24323 (Empty_Project): Add parameter of type Project_Node_Ref
24324 (Private_Project_Tree_Data): Add component Default_Naming of type
24326 (Buffer, Buffer_Last): remove global variables
24327 (Add_To_Buffer): Add two in out parameters to replace global variables
24328 Buffer and Buffer_Last.
24329 (Current_Packages_To_Check): Remove global variable
24330 (Empty_Name): Move to private part
24331 (No-Symbols): Make it a constant
24332 (Private_Project_Tree_Data): New type for the private part of the
24334 (Project_Tree_Data): New type for the data of a project tree
24335 (Project_Tree_Ref): New type to designate a project tree
24336 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24337 for the project tree.
24339 * prj-attr.ads: Add with Table; needed, as package Prj no longer
24340 imports package Table.
24342 * prj-com.adb: Remove empty, no longer needed body
24344 * prj-com.ads: Move most of the content of this package to package Prj.
24346 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
24347 designate the project node tree and Packages_To_Check to replace
24348 global variable Current_Packages_To_Check.
24349 Add new parameters In_Tree and Packages_To_Check to local subprograms,
24350 when needed. Adapt to changes in project manager with project node tree
24353 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
24354 project tree to most subprograms. Move tables and hash tables to
24355 private part of package Prj.
24356 Adapt to changes in project manager using project tree In_Tree.
24358 * prj-makr.adb (Tree): New constant to designate the project node tree
24359 Adapt to change in project manager using project node tree Tree
24361 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
24362 display the Library_Src_Dir and the Library_Dir.
24363 Add new parameter In_Tree to designate the project node tree to most
24364 subprograms. Adapt to changes in the project manager, using project tree
24366 (Check_Naming_Scheme): Do not alter the casing on platforms where
24367 the casing of file names is not significant.
24368 (Check): Add new parameter In_Tree to designate the
24370 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
24371 designate the project tree.
24372 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
24374 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
24375 to replace those that were in the private part of package Prj.
24376 Add new parameter In__Tree to designate the project node tree to most
24377 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24378 (Post_Parse_Context_Clause): When specifying the project node of a with
24379 clause, indicate that it is a limited with only if there is "limited"
24380 in the with clause, not necessarily when In_Limited is True.
24381 (Parse): Add new parameter In_Tree to designate the project node tree
24383 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
24384 designate the project node tree. Adapt to change in Prj.Tree with
24385 project node tree In_Tree.
24387 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
24388 tree In_Tree in the call to function Empty_Process to give its initial
24389 value to the project data Processed_Data.
24390 Add new parameters In_Tree to designate the project tree and
24391 From_Project_Node_Tree to designate the project node tree to several
24392 subprograms. Adapt to change in project manager with project tree
24393 In_Tree and project node tree From_Project_Node_Tree.
24395 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
24396 to replace those that were in the private part of package Prj.
24397 Add new parameter In_Tree to designate the project node tree to most
24398 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24400 * prj-tree.ads, prj-tree.adb: Add new parameter of type
24401 Project_Node_Tree_Ref to most subprograms.
24402 Use this new parameter to store project nodes in the designated project
24404 (Project_Node_Tree_Ref): New type to designate a project node tree
24405 (Tree_Private_Part): Change table to dynamic table and hash tables to
24406 dynamic hash tables.
24408 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
24409 the project tree to most subprograms. Adapt to changes in project
24410 manager using project tree In_Tree.
24412 * makegpr.adb (Project_Tree): New constant needed to use project
24415 2005-03-15 Olivier Hainque <hainque@adacore.com>
24417 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
24418 for sigactions with SA_SIGINFO set. Call
24419 __gnat_adjust_context_for_raise before raising, to perform the
24420 potentially required adjustments to the machine context for the GCC
24423 * raise.h (__gnat_adjust_context_for_raise): New prototype.
24425 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
24426 Adjust PC by one in the provided machine context.
24427 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
24428 so that the handler is passed the context structure to adjust prior to
24430 (__gnat_error_handler) HPUX: Adjust the signature to match what an
24431 SA_SIGINFO sigaction should look like. Call
24432 __gnat_adjust_context_for_raise before actually raising.
24433 (__gnat_adjust_context_for_raise): Default noop to help PC
24434 adjustments before raise from signal handlers.
24435 (__gnat_error_handler): Indirectly call a predicate function to
24436 determine if a condition should be resignaled or not.
24437 (__gnat_set_resignal_predicate): User interface to modify the predicate.
24438 (__gnat_default_resignal_p): Default GNAT predicate.
24440 2005-03-15 Doug Rupp <rupp@adacore.com>
24442 * adaint.c: Prefix #include of VMS system header files with vms/
24443 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
24444 Do not define a dummy function "convert_addresses" under Darwin,
24447 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
24450 2005-03-15 Nicolas Setton <setton@adacore.com>
24452 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
24455 2005-03-15 Robert Dewar <dewar@adacore.com>
24457 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
24460 * a-retide.ads: Minor comment changes
24462 2005-03-15 Robert Dewar <dewar@adacore.com>
24464 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
24465 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
24466 Realloc_For_Chunk to private part of package.
24467 New subprograms for AI-301
24469 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
24470 Get_Line procedure.
24471 Avoid unnecessary use of Get/Set_Wide_String
24473 2005-03-15 Robert Dewar <dewar@adacore.com>
24476 * a-stunau.ads, a-stunau.adb:
24477 Change interface to allow efficient (and correct) implementation
24478 The previous changes to allow extra space in unbounded strings had
24479 left this interface a bit broken.
24481 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
24483 * g-spipat.ads, g-spipat.adb: New interface for Get_String
24484 Minor reformatting (function specs)
24486 * g-spitbo.adb: New interface for Get_String
24488 * g-spitbo.ads: Minor reformatting
24490 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
24492 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
24494 2005-03-15 Javier Miranda <miranda@adacore.com>
24495 Robert Dewar <dewar@adacore.com>
24496 Thomas Quinot <quinot@adacore.com>
24497 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24499 * atree.ads, atree.adb: Add support for Elist24 field
24501 * atree.h: Fix wrong definition of Field27
24502 Add support for Elist16 field
24503 Add support for Elist24 field
24505 * einfo.ads, einfo.adb (Abstract_Interfaces,
24506 Set_Abstract_Interfaces): New subprograms.
24507 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
24509 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
24510 entities rather than a single node.
24511 (Is_Interface, Set_Is_Interface): New subprogram
24512 (First_Tag_Component): New syntesized attribute
24513 (Next_Tag_Component): New synthesized attribute
24514 (Write_Entity_Flags): Upgraded to write Is_Interface
24515 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
24516 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
24517 (Task_Body_Procedure): New subprogram to read this attribute.
24518 (Set_Task_Body_Procedure): New subprogram to set this attribute.
24519 (Has_Controlled_Component): Now applies to all entities.
24520 This is only a documentation change, since it always worked to apply
24521 this to other than composite types (yielding false), but now this is
24523 Update documentation on Must_Be_Byte_Aligned for new spec
24525 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
24526 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
24527 uses of the Access_Disp_Table attribute to reference the first dispatch
24528 table associated with a tagged type. As
24529 part of the implementation of abstract interface types,
24530 Access_Disp_Table has been redefined to contain a list of dispatch
24531 tables (rather than a single dispatch table).
24532 Similarly, upgrade all the references to Tag_Component by the
24533 new attribute First_Tag_Component.
24534 (Find_Inherited_TSS): Moved to exp_tss.
24535 Clean up test in Expand_N_Object_Declaration for cases
24536 where we need to do a separate assignment of the initial value.
24537 (Expand_N_Object_Declaration): If the expression in the
24538 declaration of a tagged type is an aggregate, no need to generate an
24539 additional tag assignment.
24540 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
24542 Bit packed array ops are only called if operands are known to be
24544 (Component_Equality): When returning an N_Raise_Program_Error statement,
24545 ensure that its Etype is set to Empty to avoid confusing GIGI (which
24546 expects that only expressions have a bona fide type).
24547 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
24548 determine the amount of data to be copied.
24550 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
24551 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
24552 INTERFACE_TYPE_DEFINITION ::=
24553 [limited | task | protected | synchronized] interface
24554 [AND interface_list]
24556 * par-ch3.adb (P_Type_Declaration): Modified to give support to
24558 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
24560 (P_Interface_Type_Definition): New subprogram that parses the new
24561 syntax rule of Ada 2005 interfaces
24562 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
24563 messages by the correct RENAMES (quotes removed).
24565 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
24566 attribute First_Tag_Component.
24568 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
24569 (Interface_List, Set_Interface_List): New subprograms.
24570 (Interface_Present, Set_Interface_Present): New subprograms.
24571 (Limited_Present, Set_Limited_Present): Available also in derived
24572 type definition nodes.
24573 (Protected_Present, Set_Protected_Present): Available also in
24574 record type definition and
24575 derived type definition nodes.
24576 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
24577 (Task_Present, Set_Task_Present): New subprogram.
24578 (Task_Body_Procedure): Removed.
24579 (Set_Task_Body_Procedure): Removed.
24580 These subprogram have been removed because the attribute
24581 Task_Body_Procedure has been moved to the corresponding task type
24582 or task subtype entity to leave a field free to store the list
24583 of interfaces implemented by a task (for AI-345)
24584 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
24585 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
24586 expression flag Do_Range_Check
24587 (Exception_Junk): Change to Flag7 to accomodate above change
24588 (Box_Present, Default_Name, Specification, Set_Box_Present,
24589 Set_Default_Name, Set_Specification): Expand the expression
24590 "X in N_Formal_Subprogram_Declaration" into the corresponding
24591 two comparisons. Required to use the csinfo tool.
24593 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
24594 "with string" given.
24596 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
24599 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
24602 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
24603 attribute Task_Body_Procedure rather than the old semantic field that
24604 was available in the task_type_declaration node.
24606 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
24607 interface type definitions.
24608 (P_Formal_Derived_Type_Definition): Modified to handle the list of
24611 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
24612 task type declaration.
24613 (P_Protected): Modified to handle the list of interfaces in a
24614 protected type declaration.
24616 2005-03-15 Doug Rupp <rupp@adacore.com>
24617 Vincent Celier <celier@adacore.com>
24619 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
24620 (Gen_Output_File_C): Likewise.
24621 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
24623 2005-03-15 Thomas Quinot <quinot@adacore.com>
24625 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
24626 is an N_Raise_Constraint_Error node, create a new copy of it without
24627 going through a call to Duplicate_Subexpr.
24629 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24630 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24631 Nicolas Setton <setton@adacore.com>
24632 Ed Schonberg <schonberg@adacore.com>
24638 * decl.c (gnat_to_gnu_field): Reject aliased components with a
24639 representation clause that prescribes a size not equal to the rounded
24640 size of their types.
24641 (gnat_to_gnu_entity, case E_Component): Always look at
24642 Original_Record_Component if Present and not the entity.
24643 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
24644 of tagged extension types by not making field for components that are
24646 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
24647 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
24648 expression to the type of the object when the object is constant.
24649 Reverse defer_debug_incomplete_list before traversing it, so that trees
24650 are processed in the order at which they were added to the list. This
24651 order is important when using the stabs debug format.
24652 If we are deferring the output of debug information, also defer this
24653 output for a function return type.
24654 When adding fields to a record, prevent emitting debug information
24655 for incomplete records, emit the information only when the record is
24657 (components_to_record): New parameter defer_debug.
24658 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
24659 (gnat_to_gnu_field_decl): New function.
24660 (substitution_list, annotate_rep): Call it.
24661 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
24662 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
24663 No longer update discriminants to not be a COMPONENT_REF.
24664 (copy_alias_set): Strip padding from input type; also handle
24665 unconstrained arrays properly.
24667 * gigi.h (write_record_type_debug_info): New function.
24668 Convert to use ANSI-style prototypes. Remove unused
24669 declarations for emit_stack_check, elab_all_gnat and
24670 set_second_error_entity.
24671 (gnat_to_gnu_field_decl): New decl.
24673 * utils.c (write_record_type_debug_info): New function.
24674 (finish_record_type): Delegate generation of debug information to
24675 write_record_type_debug_info.
24676 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
24677 (update_pointer_to): Fix pasto.
24678 (convert) <UNION_TYPE>: Accept slight type variations when
24679 converting to an unchecked union type.
24681 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
24682 replace the N_Freeze_Entity with a null statement.
24684 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
24685 within a constrained subcomponent of an enclosing record, place the
24686 freeze nodes in the scope stack entry for the enclosing record.
24687 (Undelay_Type): New Subprogram.
24688 (Set_Small_Size): Pass T, the type to modify; all callers changed.
24689 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
24690 within records; allow them to have freeze nodes if their base types
24693 * exp_util.adb (Remove_Side_Effects): Properly test for
24694 Expansion_Delayed and handle case when it's inside an
24695 N_Qualified_Expression.
24697 * sem_ch3.adb (Derived_Type_Declaration): New predicate
24698 Comes_From_Generic, to recognize accurately that the parent type in a
24699 derived type declaration can be traced back to a formal type, because
24700 it is one or is derived from one, or because its completion is derived
24702 (Constrain_Component_Type): If component comes from source and has no
24703 explicit constraint, no need to constrain in in a subtype of the
24705 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
24706 Minor change to propagate Is_Ada_2005 flag
24708 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
24709 Expansion_Delayed is False.
24710 (assoc_to_constructor): Ignore fields that have a
24711 Corresponding_Discriminant.
24712 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
24713 function returns "by target", dereference the target pointer using the
24714 type of the actual return value.
24715 <all>: Be prepared for a null gnu_result.
24716 (processed_inline_subprograms): Check flag_really_no_inline
24717 instead of flag_no_inline.
24718 (set_second_error_entity): Remove unused function.
24719 (gnat_to_gnu, case N_Selected_Component): Call
24720 gnat_to_gnu_field_decl.
24721 (assoc_to_constructor): Likewise.
24723 2005-03-15 Robert Dewar <dewar@adacore.com>
24724 Ed Schonberg <schonberg@adacore.com>
24725 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24727 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
24728 Must_Be_Byte_Aligned for cases where we do not need to use a
24729 System.Pack_nn unit.
24731 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
24733 Needed now that we do some processing for IN parameters as well. This
24734 may well fix some unrelated errors.
24735 (Expand_Call): Handle case of unaligned objects (in particular those
24736 that come from packed arrays).
24737 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
24738 renamed entity is an inherited operation, re-expand the call using the
24739 original operation, which is the one to call.
24740 Detect attempt to inline parameterless recursive subprogram.
24741 (Represented_As_Scalar): Fix to work properly with private types
24742 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
24743 accurate estimate. Yields True in far fewer cases than before,
24744 improving the quality of code that depends on this test.
24746 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
24747 over both visible and private declarations to remove them from tree,
24748 and mark subprograms declared in package as eliminated, to prevent
24749 spurious use in subsequent compilation of generic units in the context.
24751 * exp_util.ads: Minor cleanup in variable names
24753 * sem_eval.ads, sem_eval.adb: Minor reformatting
24754 (Compile_Time_Known_Bounds): New function
24756 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24758 * exp_ch7.adb (Convert_View): Use base types of underlying types when
24759 determining whether an unchecked conversion is needed for the argument
24760 of an initialization call.
24762 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24764 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
24765 that appears in the instantiation rather than the internal subtype
24766 generated in the wrapper package, to avoid anomalies in gigi when the
24767 target is derived from a private type whose full view is an access type.
24769 2005-03-15 Robert Dewar <dewar@adacore.com>
24771 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
24773 Add documentation to replace the use of this flag
24774 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
24777 2005-03-15 Thomas Quinot <quinot@adacore.com>
24779 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
24780 here from exp_attr so it can be shared between exp_attr and exp_dist.
24781 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
24782 all TSS names, not a subset thereof, and the previous name introduced
24783 an unnecessarily confusion that a distinction might exist between
24784 "OK" TSS names and some "not OK" TSS names.
24786 2005-03-15 Doug Rupp <rupp@adacore.com>
24788 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
24791 2005-03-15 Pascal Obry <obry@adacore.com>
24792 Eric Botcazou <ebotcazou@adacore.com>
24796 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
24797 when IN_RTS. This is to work around a bootstrap path problem.
24799 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
24800 table and pass it to __gnat_install_SEH_handler().
24801 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
24803 * lang.opt: Fix specification of -fRTS=.
24805 2005-03-15 Doug Rupp <rupp@adacore.com>
24806 Bernard Banner <banner@adacore.com>
24807 Vincent Celier <celier@adacore.com>
24808 Arnaud Charlet <charlet@adacore.com>
24811 This change works fine when gnatlib is built from the gcc directory,
24812 but does not work when using the libada Makefile, since GCC_FOR_TARGET
24813 is not passed to ada/Makefile.in, so more work is needed by a
24814 Makefile/configure expert.
24816 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
24817 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
24818 Setup gnatlink switch -M for x86_64 linux, as it is already setup
24820 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
24821 Run ranlib on libgccprefix.a
24822 Define PREFIX_OBJS for Darwin, to build libgccprefix.
24823 (ADA_INCLUDE_SRCS): Split Ada packages.
24825 2005-03-15 Robert Dewar <dewar@adacore.com>
24827 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
24829 * impunit.adb: Add GNAT.UTF_32
24831 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
24833 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
24834 now uses GNAT.UTF_32).
24836 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
24837 capabilities for categorizing characters using Unicode categories
24839 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24841 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
24842 instantiation that has been rewritten as a package body, retrieve spec
24843 to generate proper name for implicit_with_clause.
24844 (Install_Parents): Recognize a parent that is an instantiation but has
24845 been rewritten as a package declaration during analysis.
24847 2005-03-15 Javier Miranda <miranda@adacore.com>
24848 Ed Schonberg <schonberg@adacore.com>
24850 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
24851 parameter reported some error we immediately return. This improves the
24852 behaviour of the frontend in case of errors.
24853 (Install_Parent, Remove_Parent): Introduce new flag
24854 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
24855 ancestor of a generic child unit, when the child is being instantiated.
24856 (Inline_Instance_Body): If we are compiling the private
24857 part or the body of a child unit, restore the proper visibility of the
24858 parents after compiling the instance body.
24860 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24861 Javier Miranda <miranda@adacore.com>
24864 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
24865 of a private type, in which case it is underlying_type that denotes
24866 the proper task. Also modified to use the new entity attribute
24867 that is directly available in the task type and task subtype entities
24868 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
24869 arrays when other dimensions than the first are constrained by
24870 discriminants of an enclosing record.
24871 (Insert_Explicit_Dereference): If the prefix is an indexed component or
24872 a combination of indexed and selected components, find ultimate entity
24873 and generate the appropriate reference for it, to suppress spurious
24875 (Note_Possible_Modification): If an entity name has no entity, return.
24876 (Is_Variable): A function call never denotes a variable.
24877 (Requires_Transient_Scope): For record types, recurse only on
24878 components, not on internal subtypes that may have been generated for
24879 constrained components.
24881 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24883 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
24884 Eliminated as candidates for resolution. Both efficient, and avoids
24885 anomalies with operators declared in deleted code.
24886 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
24887 expansion is disabled (as when compiling a generic) to prevent spurious
24888 warnings on prefixes of selected components.
24890 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24892 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
24893 attached to a list before checking whether it appears in the private
24894 declarations of the current package.
24895 (Make_Inequality_Operator): Insert declaration in proper declarative
24896 list rather than just setting the Parent field, so that
24897 Is_Private_Declaration can handle it properly.
24899 2005-03-15 Ed Schonberg <schonberg@adacore.com>
24901 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
24902 a renaming a body, check that the renamed subprogram in not intrinsic.
24903 (Find_Direct_Name): If several use_visible entities hide
24904 each other, and the context is a predefined file compiled through
24905 rtsfind, keep only the entity that comes from a predefined file.
24907 2005-03-15 Geert Bosch <bosch@adacore.com>
24909 * s-fatgen.adb (Valid): Extend special exceptions to account for long
24910 long float padding to also cover AMD64 and IA64.
24912 2005-03-15 Gary Dismukes <dismukes@adacore.com>
24914 * s-imgwch.adb: Add with and use of Interfaces.
24915 (Img_Wide_Character): Change type of Val to Unsigned_16.
24916 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
24918 2005-03-15 Matthew Gingell <gingell@adacore.com>
24920 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
24922 2005-03-15 Robert Dewar <dewar@adacore.com>
24924 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
24926 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
24928 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
24930 2005-03-15 Robert Dewar <dewar@adacore.com>
24932 * s-bitops.adb, s-bitops.ads,
24933 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
24934 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
24935 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
24936 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
24937 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
24938 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
24939 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
24940 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
24943 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24945 * utils2.c (build_binary_op): Fix typo.
24947 2005-03-15 Doug Rupp <rupp@adacore.com>
24949 * s-crtl.ads (popen,pclose): New imports.
24951 2005-03-15 Cyrille Comar <comar@adacore.com>
24953 * comperr.adb (Compiler_Abort): remove references to obsolete
24954 procedures in the bug boxes for various GNAT builds.
24956 2005-03-15 Vincent Celier <celier@adacore.com>
24958 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
24960 2005-03-15 Geert Bosch <bosch@adacore.com>
24961 Arnaud Charlet <charlet@adacore.com>
24962 Robert Dewar <dewar@adacore.com>
24963 Cyrille Comar <comar@adacore.com>
24964 Sergey Rybin <rybin@adacore.com>
24966 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
24967 too specific and long-winded to be appropriate for the GNAT User's
24969 Warn about use of GCC switches not documented in the GNAT User's Guide,
24970 as these may cause generated code to not conform to Ada semantics.
24971 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
24972 Add documentation for -gnat95 and -gnat05 switches
24973 Remove paragraph documenting obsolete way to refer to third party
24975 Add a few references to Ada_05 that were missing.
24976 Update documentation on -gnatZ/-gnatL.
24977 Document limitation when using -m64 under Solaris.
24978 Change the "Name Casing" subsection of the pretty-printer section
24979 according to the changes in the dictionary processing.
24981 * gnat_rm.texi: Document the Ada_05 pragma.
24982 Section on record representation clauses describes the new more
24983 relaxed rules about placement of large packed bit array components.
24984 Add documentation of GNAT.UTF_32
24986 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
24988 * misc.c (gnat_post_options): Turn off structural
24991 2005-03-08 Laurent Guerby <laurent@guerby.net>
24993 * system-linux-sparc.ads: Fix typo in previous commit.
24995 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
24996 Laurent Guerby <laurent@guerby.net>
24999 * system-linux-sparc.ads: New.
25000 * Makefile.in: Add sparc linux entry.
25002 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
25004 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
25005 parameters as unused.
25007 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
25008 Partial merge from libada-gnattools-branch:
25010 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25011 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
25012 into code in gnattools/Makefile.in. Remove direct dependencies on
25013 stamp-tools by tools clauses.
25014 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25015 * config-lang.in: Add gnattools to $lang_dirs.
25017 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
25020 * utils.c (gnat_type_for_mode): Return null instead of ICE because
25021 we asked for an unknown mode.
25023 2005-02-12 Richard Henderson <rth@redhat.com>
25025 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
25026 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
25028 2005-02-10 Andreas Jaeger <aj@suse.de>
25030 * init.c (__gnat_initialize): Mark parameter as unused.
25032 2005-02-09 Doug Rupp <rupp@adacore.com>
25034 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
25035 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
25037 2005-02-09 Doug Rupp <rupp@adacore.com>
25039 * gnatchop.adb (dup, dup2),
25040 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
25042 * gnatlbr.adb (mkdir),
25043 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
25045 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
25047 2005-02-09 Doug Rupp <rupp@adacore.com>
25049 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
25051 2005-02-09 Robert Dewar <dewar@adacore.com>
25052 Thomas Quinot <quinot@adacore.com>
25053 Javier Miranda <miranda@adacore.com>
25054 Pascal Obry <obry@adacore.com>
25055 Ed Schonberg <schonberg@adacore.com>
25056 Doug Rupp <rupp@adacore.com>
25057 Gary Dismukes <dismukes@adacore.com>
25058 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25060 * g-zstspl.ads: New file.
25062 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
25064 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
25066 Add definition of Wide_Wide_Space for AI-285
25068 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
25069 interface (to support Ada 95 and Ada 2005 units).
25070 Add Unbounded_IO files
25071 Add entries for Wide_Wide packages for AI-285
25072 Add list of containers packages to Ada 2005 unit list
25074 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
25075 support new Unbounded_IO package cleanly.
25077 * g-utf_32.ads, g-utf_32.adb: New files.
25079 * Makefile.rtl: Add entry for g-utf_32
25080 Add new files for Unbounded_IO
25081 Adjust make file for new AI-285 wide wide packages
25082 Add AI-302 containers to the run time.
25084 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
25085 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
25086 subprograms for AI-301.
25088 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
25090 * a-stunau.ads: Minor comment correction
25092 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
25094 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
25095 (Check_RPC): Update to match changes in expanded code.
25096 Clean up unused entity.
25098 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
25099 was not taken into account.
25100 This includes proper initialization with Normalize_Scalars.
25101 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
25102 normalize scalars cases (particularly the latter) to do a better job
25103 of finding invalid representations.
25105 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
25107 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
25110 * exp_dist.adb: Add support for wide wide character type
25111 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
25112 private part, generate stub bodies at the end of the private part,
25113 not the visible part.
25114 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
25116 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
25117 generic wrapper to execute final processing after completing the
25118 expansion of the RPC receiver for an RACW.
25120 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
25121 packages and attributes.
25122 (Preset_Names): Addition of the new reserved words of Ada 2005,
25123 that is interface, overriding and synchronized.
25124 (Get_Pragma_Id): Give support to the use of the new reserved word
25125 "interface" as a pragma name.
25126 (Is_Pragma_Name): Give support to the use of the new reserved word
25127 "interface" as a pragma name.
25128 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
25129 attribute implementation.
25131 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
25132 checks to entities that are output parameters of Asm operations.
25133 Handle the Stream_Size attribute.
25134 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
25136 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
25138 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
25139 for second parameter being 0.0.
25140 Add support for wide wide character type.
25141 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
25143 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
25144 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
25145 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
25146 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
25147 for wide wide character cases.
25149 * cstand.adb: Create entities for Wide_Wide_Character and
25152 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
25153 accordance with AI-258.
25154 Add new declarations for 16/32 bit C character types (Part of AI285)
25156 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
25157 (Obsolescent_Warning): New field
25158 (Rep_Clause): New local subprogram used to share code. Returns the rep
25159 clause for which the name is given in parameter.
25160 (Has_Stream_Size_Clause): New routine.
25161 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
25162 (Address_Clause): Implementation is now using Rep_Clause.
25163 (Alignment_Clause): Idem.
25164 (Size_Clause): Idem.
25166 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
25167 entity in non-Ada 2005 mode and generate warning.
25169 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
25170 (Prag): Code cleanup. Remove old gnat pragma "overriding"
25172 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
25173 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
25174 on the named unit if the pragma is not in the current compilation unit,
25175 so that elaboration calls in the current unit can set up an elaboration
25176 dependency on the named unit, as needed.
25177 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
25178 subprogram as well as for subprograms declared within a package.
25179 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
25182 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
25183 to z) to avoid some instances of duplication for Wide_Wide packages.
25185 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
25188 * scn.adb: Char_Literal_Value field is now a Uint
25190 * scng.adb: Significant rewrite to handle new Ada 2005 features
25191 allowing wide and wide wide characters in program text, e.g. for
25192 identifiers, as described in AI-285.
25193 (Set_Reserved): New procedure, makes setting up keywords cleaner.
25194 (Initialize_Scanner): Register the new reserved words of Ada 2005.
25195 (Scan): Give support to the new reserved words.
25197 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
25198 warning notifying that interface, overriding, and synchronized are
25199 new reserved words.
25200 (P_Pragma): Allow the use of the new reserved word "interface" as
25203 * gnatls.adb, gnatbind.adb,
25204 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
25205 identifiers named "interface" to "SAL_Interface".
25207 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
25208 (Structured Exception handling).
25209 (Gen_Main_C): Idem.
25212 (Gen_Main_Ada): Set the default exit code if specified.
25213 (Gen_Main_C): Likewise.
25215 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
25216 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
25218 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
25221 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
25222 has a collision with the new Ada 2005 "interface" reserved word.
25224 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
25225 generate a warning notifying that interface, overriding, and
25226 synchronized are new reserved words.
25228 * scans.ads (Token_Type): Addition of the tokens corresponding to the
25229 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
25230 and Tok_Synchronized.
25232 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
25233 "dispatching" rather than "primitive" operations, since dispatching
25234 calls are now allowed to abstract formal subprograms (which are not
25236 Char_Literal_Value field is now a Uint
25237 (Resolve_Slice): If the prefix is an access to an unconstrained array,
25238 compute the actual subtype of the designated object to impose the proper
25240 (Resolve_Selected_Component): Do not insert an access check if the
25241 prefix is an access type: such a node is expanded into an explicit
25242 dereference, on which the access check is performed anyway. Removes
25243 expensive duplicate checks.
25244 (Resolve_Call): Use new flag Is_Obsolescent and field
25245 Obsolescent_Warning so that pragma Obsolescent works on library
25247 Add support for wide wide character type
25248 (Resolve_Allocator): Replace the error message on wrong null-exclusion
25249 value by a warning message.
25250 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
25251 as fixed-point, and one of the operands is non-static and universal, it
25252 can only be an illegal exponentiation operation, in which case there is
25253 no real value to retrieve.
25255 * exp_strm.adb: Add support for wide wide character type
25256 (Build_Elementary_Input_Call): Compute the size of the stream element by
25257 querying the rep chain to find the Stream_Attribute attribute value.
25258 (Build_Elementary_Write_Call): Ditto.
25260 * sem_aggr.adb: Char_Literal_Value field is now a Uint
25261 Add support for wide wide character type
25262 Replace the error messages on wrong null-exclusion value by warnings
25263 as described in Ada 2005.
25264 (Resolve_Extension_Aggregate): Document the fact that the error
25265 message on class-wide expressions in extensions aggregates.
25267 * sem_case.adb: Add support for wide wide character type
25269 * sem_ch13.adb: Add support for wide wide character type
25270 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
25272 * sem_ch3.adb: Add support for wide wide character type
25273 (Process_Subtype): If constraint is illegal for the type, set Ekind of
25274 now-useless Itype, to prevent cascaded errors on a compiler built
25277 * sem_ch8.adb: Add with and use of Sem_Disp.
25278 (Analyze_Subprogram_Renaming): Replace unclean uses of
25279 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
25280 of Corresponding_Spec to Empty).
25281 (Attribute_Renaming): Replace use of Corresponding_Spec with
25282 Corresponding_ Formal_Spec and simplify condition.
25283 (Use_One_Package): Check that scope of homonym of identifier is defined,
25284 before checking whether it is a wrapper package.
25285 Add support for wide wide character type
25287 * sem_eval.adb: Add support for wide wide character type.
25288 (Eval_Arithmetic_Op): Check for compile time known signed integer
25289 overflow in the non-static case.
25290 (Subtypes_Statically_Match): A formal scalar type and its base type do
25291 not statically match.
25293 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
25294 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
25296 (Unit_Declaration_Node): Ditto.
25297 (Is_Variable_Prefix): For the case of an indexed component whose prefix
25298 has a packed array type, the prefix has been rewritten into a type
25299 conversion. Determine variable-ness from the converted expression.
25300 Handle wide wide character cases.
25302 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
25304 * stringt.ads, stringt.adb: Handle full UTF-32 range.
25305 Remove ["0A"] from comment, since it can look like a line terminator.
25306 Currently we don't permit this, but this is under discussion by the
25307 ARG, and it is easy enough to use a different example.
25309 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
25310 handling UTF-32 encoding for wide wide character.
25311 Implement new brackets coding ["hhhhhhhh"]
25312 Add UTF-8 encodings for full UTF-32 range
25314 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
25316 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
25317 bit range Add full UTF-32 support.
25318 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
25319 notify that constraint error will be raised at run-time
25320 because a null value is assigned to a null-excluding object.
25321 Remove some obsolete declarations and make Char_Code
25324 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
25325 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
25326 Rcheck subprograms.
25328 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
25329 wrong null-exclusion value by a warning message.
25330 (Enable_Range_Check): Do range check if the prefix is an
25331 explicit dereference whose designated object is an unconstrained array.
25332 Current algorithm for removing duplicate checks is over-eager in this
25335 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
25336 null-exclusion value by a warning message
25338 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
25339 completely. Add support for Uint2 field
25341 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
25342 exp_prag.adb: Char_Literal_Value field is now a Uint.
25344 * exp_util.adb (Insert_Actions): Replace
25345 N_Formal_Subprogram_Declaration by
25346 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
25347 Char_Literal_Value field is now a Uint.
25349 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
25350 defined for subprogram renaming declarations. When set, the field
25351 indicates the defining entity of a corresponding formal subprogram
25352 when the renaming corresponds to a formal subprogram association in an
25354 (Set_Corresponding_Formal_Spec): New procedure to return
25355 Corresponding_Formal_Spec field.
25356 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
25357 (which is now a subtype).
25358 Char_Literal_Value field is now a Uint
25360 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
25361 pointer to the base of the dispatch table.
25362 Minor changes to comments.
25363 (Controlling_Type): New function for determining the tagged type
25364 associated with a tagged primitive subprogram.
25365 (Expand_Dispatching_Call): Add support for a controlling actual that is
25366 directly a value of type Ada.Tag rather than a tagged object.
25368 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
25369 describing the new layout.
25370 (Dispatch_Table): The expander computes the actual array size, allocates
25371 the Dispatch_Table record accordingly, and generates code that displaces
25372 the base of the record after the Typeinfo_Ptr component. The access to
25373 these components is done by means of local functions.
25374 (Offset_To_Top): New function.
25375 (Typeinfo_Ptr): New function.
25376 (Get_TSD): Modified to access the new position of the TSD.
25377 (Set_TSD): Modified to save the TSD in its new position.
25379 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
25380 case of formal abstract subprograms. Add check and message for -gnat05.
25383 * sem_ch12.adb: Add with and use for Sem_Disp.
25384 (Analyze_Associations): Minor change from "=" to "in" for use of
25385 N_Formal_Subtype_Declaration (which is now a subtype).
25386 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
25387 N_Formal_Subtype_Declaration (which is now a subtype).
25388 (Analyze_Formal_Subprogram): Add handling for
25389 N_Formal_Abstract_Subprogram, marking the formal as abstract and
25390 dispatching, setting the controlling status of the formal parameters
25391 and result, and issuing an error if there is no controlling type for
25392 the formal subprogram.
25393 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
25394 which is an unclean use of that field, we set the new field
25395 Corresponding_Formal_Spec to make the formal subprogram available to
25396 processing in Analyze_Subprogram_Declaration.
25397 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
25398 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
25399 Constrained, so that it is is does not statically match its anonymous
25402 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
25403 abstract formal subprograms in error check for functions returning
25404 abstract types. Set scope of new designator for
25405 a parameterless subprogram, so that it is available when checking the
25406 body for nested subprograms, before full analysis of said body.
25407 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
25408 subprogram only if inner one comes from source.
25409 (Analyze_Function_Call): If the call is given in object notation, the
25410 analysis of the name rewrites the node and analyzes it with the proper
25411 argument list. After analyzing the name, if the call has been rewritten
25412 and the result type is set, no further analysis is needed.
25413 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
25414 mark in function specification, in a context where the formals are
25415 visible and hide outer homographs.
25417 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
25418 as the tagged type for the cases of abstract formal subprograms and
25419 renamings of those. Clean up spec comments.
25420 (Check_Dispatching_Context): Add error message to indicate "abstract
25421 procedure", covering the case of a call to a formal abstract procedure
25422 that has statically tagged operands.
25423 (Check_Dispatching_Call): Check for the case of an actual given by
25424 a tag-indeterminate function call whose type is an ancestor of the
25425 containing call's associated tagged type. This situation can occur
25426 for inherited primitives with function defaults. In this case we
25427 use the tagged type's tag directly as the controlling argument for
25429 (Expand_Call): Name change on call to Expand_Dispatch_Call.
25431 * sprint.adb (Sprint_Node_Actual): Split
25432 N_Formal_Subprogram_Declaration into two alternatives for the new
25433 cases N_Formal_Abstract_Subprogram_Declaration and
25434 N_Formal_Concrete_Subprogram_Declaration.
25435 Char_Literal_Value field is now a Uint.
25437 * trans.c: Get rid of junk Uint2 reference.
25438 Char_Literal_Value field is now a Uint.
25439 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
25440 (gigi): Correct third arg to gimplify_body.
25442 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
25443 (TYPE_LANG_FLAG_0): Check for record or union.
25445 * treepr.adb: Char_Literal_Value field is now a Uint
25447 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
25450 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
25451 Add full UTF-32 support
25452 Char_Code is now 32 bits
25454 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
25455 wide character UTF_32 line terminators.
25456 Initialize Main_Source_File to avoid error when no main
25459 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
25460 (Main_Source_File) when no main source has been loaded, to avoid
25463 2005-02-09 Robert Dewar <dewar@adacore.com>
25465 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
25466 Fix name of Set routine
25468 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
25471 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
25472 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
25475 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
25476 forms of Get_Line subprograms for AI-301.
25478 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25479 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
25480 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
25481 a-stwima.ads: Minor reformatting.
25483 2005-02-09 Doug Rupp <rupp@adacore.com>
25484 Thomas Quinot <quinot@adacore.com>
25486 * adaint.c, adaint.h
25487 [VMS] (to_ptr32): New function.
25488 (MAYBE_TO_PTR32): New macro.
25489 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
25491 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
25492 [VMS] (#define fork()): Remove since unneccessary.
25493 (__gnat_set_close_on_exec): New routine to support
25494 GNAT.OS_Lib.Set_Close_On_Exec.
25496 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
25497 the parent side as close-on-exec so that they are not inherited by the
25500 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
25501 set or clear the FD_CLOEXEC flag on a file descriptor.
25503 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
25504 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25508 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
25509 on the field if Pragma Component_Alignment (Storage_Unit).
25510 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
25511 side-effects as if it were a constant; also make SAVE_EXPR to protect
25513 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
25515 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
25516 (components_to_record): Test it.
25517 Fix improper usage of REFERENCE_CLASS_P.
25519 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
25522 * utils2.c: Minor reformatting.
25524 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
25525 handle other cases like RECORD_TYPE.
25527 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
25529 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25531 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
25532 component of an array of arrays in an assignment context, and the
25533 aggregate has component associations that require sliding on
25534 assignment, force reanalysis of the aggregate to generate a temporary
25535 before the assignment.
25536 (Must_Slide): Make global to the package, for use in Gen_Assign.
25538 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25540 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
25541 unchecked union with no inferable discriminants, return a
25542 Raise_Program_Error node, rather than inserting it at the point the
25544 (Expand_Record_Equality, Component_Equality): Handle properly the case
25545 where some subcomponent is an unchecked union whose generated equality
25546 code raises program error.
25548 2005-02-09 Doug Rupp <rupp@adacore.com>
25550 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
25551 [VMS] (#define exit hack): Remove.
25553 2005-02-09 Pascal Obry <obry@adacore.com>
25554 Arnaud Charlet <charlet@adacore.com>
25556 * init.c (__gnat_initialize): Add a new parameter eh which contains the
25557 address of the exception registration. The Win32 version of this
25558 routine calls __gnat_install_SEH_handler() to initialize the SEH
25559 (Structured Exception Handling) handler.
25560 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
25561 SEH (Structured Exception Handling) now.
25562 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
25563 (__gnat_initialize for ppc-vxworks): Adjust comments and the
25564 preprocessor condition protecting the call to the extra eh setup
25565 subprogram, which is only available for the ppc target.
25566 (__gnat_clear_exception_count): replaced reference to
25567 variable taskIdCurrent by call to taskIdSelf(), cleaner.
25569 * seh_init.c: New file.
25571 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
25572 (GNATBIND_OBJS): Idem.
25574 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
25575 routine takes a new parameter (a pointer to the exception registration
25576 for the SEH (Structured Exception Handling) support.
25578 * raise.h: (__gnat_install_SEH_handler): New prototype.
25579 Update copyright notice.
25581 * s-tassta.adb (Task_Wrapper): Declare the exception registration
25582 record and initialize it by calling __gnat_install_SEH_handler.
25584 2005-02-09 Vincent Celier <celier@adacore.com>
25586 * make.adb (Gnatmake): Do not fail when the main project has no object
25589 2005-02-09 Doug Rupp <rupp@adacore.com>
25591 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
25592 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
25593 [VMS]: Add translations for g-enblsp.adb.
25595 * s-asthan-vms.adb: Removed.
25596 * s-asthan-vms-alpha.adb: Added.
25598 2005-02-09 Pascal Obry <obry@adacore.com>
25600 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
25601 (LIBGNAT_OBJS): Add seh_init.o.
25603 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25606 * Makefile.in: Link all gnat tools with -static-libgcc, since
25607 -shared-libgcc is now used by default on some systems (e.g. linux with
25609 Remove references to Makefile.prolog/generic, no longer used.
25611 2005-02-09 Vincent Celier <celier@adacore.com>
25613 * prj-makr.adb (Process_Directory): Put file name in canonical case
25614 before matching against the patterns.
25615 If gnatname has been invoked as <prefix>-gnatname
25616 then invoke the compiler as <prefix>-gcc, not just "gcc".
25618 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25620 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
25621 with expansion disabled. The actual subtype is needed among other
25622 places when the selected component appears in the context of a loop
25623 bound, and denotes a packed array.
25624 (Operator_Check): Always use the first subtype in the
25625 error message, to avoid the appearance of internal base types.
25626 (Transform_Object_Operation): Copy each actual in full
25627 to the parameter associations of the constructed call, rather than
25628 using the shallow copy mechanism of New_Copy_List. This ensures that
25629 the chaining of named associations is done properly.
25630 (Complete_Object_Operation): Rewrite node, rather than
25631 replacing it, so that we can trace back to the original selected
25634 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
25635 and calls that use object notation, if the called function is not
25636 declared in a withed unit, place the elaboration constraint on the
25637 unit in the context that makes the function accessible.
25638 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
25639 imposes an elaboration constraint between two packages.
25641 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25643 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
25644 views of a private type after handling its private dependents, to
25645 maintain proper stack discipline between entry and exit from the
25648 2005-02-09 Cyrille Comar <comar@adacore.com>
25650 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
25651 Minor reformatting.
25653 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25655 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
25656 fields for foreign threads.
25658 2005-02-09 Doug Rupp <rupp@adacore.com>
25660 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
25661 recursion warnings when compiled with -gnatdm.
25663 2005-02-09 Robert Dewar <dewar@adacore.com>
25665 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
25666 Slight fix to documentation of -gnaty with no parameters
25668 * xr_tabls.ads: Add ??? comment for missing overall comment
25670 * xsinfo.adb: Make default file name be sinfo.h, since this is what
25671 we now use by default.
25673 * xsnames.adb: Adjust end of file test to look for five space followed
25674 by '#' instead of six spaces. The format of xsnames.adb was modified
25675 in the last update.
25677 * a-numeri.ads: Add reference to AI-388 for greek letter pi
25680 * clean.adb: Minor reformatting.
25682 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
25683 gnatname.adb: Minor reformatting
25684 Add 2005 to copyright output when utility is run
25686 * csets.adb: Eliminate obsolete comment
25688 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
25691 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
25693 2005-02-09 Sergey Rybin <rybin@adacore.com>
25695 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
25696 the difference between compact and incompact layout and add the record
25697 representation clause to the example illustrating different layouts.
25698 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
25699 component clauses").
25701 2005-02-09 Florian Villoing <villoing@adacore.com>
25703 * gnat_ugn.texi: Fix typos.
25704 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
25706 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
25707 in the generated documentation.
25709 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25711 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
25713 Update linker wrapper when linking with non GNU C++.
25715 2005-02-09 Pascal Obry <obry@adacore.com>
25718 Document the procedure to debug the DllMain routine on Windows.
25719 Add note about -funwind-tables and mixed Ada and C/C++ programming in
25721 Document new BIND qualifer /RETURN_CODES=VMS.
25723 2005-02-09 Ben Brosgol <brosgol@adacore.com>
25725 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25726 Edited gnatmetric chapter
25728 2005-02-09 Robert Dewar <dewar@adacore.com>
25731 Changes to document new wide wide character support
25733 Update documentation on Normalize_Scalars and Initialize_Scalars
25735 2005-02-09 Pascal Obry <obry@adacore.com>
25737 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
25739 2005-02-09 Jose Ruiz <ruiz@adacore.com>
25741 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
25742 from the VxWorks kernel) that is needed for getting the active
25743 priority of the different tasks.
25745 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
25746 Use a pragma Elaborate_Body in the spec file instead.
25747 Noticed by code reading.
25749 2005-02-09 Thomas Quinot <quinot@adacore.com>
25751 * exp_util.ads: Minor correction in comment.
25753 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25755 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
25756 since this procedure is now too complex to be worth inlining.
25758 2005-02-09 Richard Henderson <rth@redhat.com>
25760 * utils.c (gnat_define_builtin): Remove.
25761 (gnat_install_builtins): Use build_common_builtin_nodes.
25763 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25765 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
25766 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
25767 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
25768 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
25769 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
25770 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
25771 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
25772 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
25773 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
25774 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25775 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
25776 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
25777 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
25778 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
25779 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
25780 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
25781 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
25782 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
25783 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
25784 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
25785 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
25786 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
25787 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
25788 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
25789 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
25790 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
25791 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
25792 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
25793 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
25794 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
25795 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
25796 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
25797 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
25798 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
25801 2005-01-27 Laurent Guerby <laurent@guerby.net>
25803 * Makefile.in: Fix a-intnam.ads from previous commit,
25804 add 2005 to copyright.
25805 * a-intman-rtems.ads: Renamed to...
25806 * a-intnam-rtems.ads:
25808 2005-01-27 Laurent Guerby <laurent@guerby.net>
25810 * Makefile.in: Rename GNAT RTEMS specific files.
25811 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
25812 5rosinte.ads, 5rparame.adb: Replaced by files below.
25813 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
25814 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
25816 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
25817 Laurent Guerby <laurent@guerby.net>
25820 * 5rosinte.ads: Add No_Key constant.
25821 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
25822 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
25824 2005-01-26 Laurent Guerby <laurent@guerby.net>
25827 * i-cobol.adb (Valid_Numeric): Handle zero length case.
25829 2005-01-20 Richard Henderson <rth@redhat.com>
25831 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
25832 a-intnam-linux.ads and system-linux-alpha.ads.
25833 * a-intnam-linux-alpha.ads: Remove file.
25834 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
25835 * system-linux-alpha.ads: New file.
25837 2005-01-18 Jakub Jelinek <jakub@redhat.com>
25840 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
25841 set to the new string.
25843 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
25845 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
25848 2005-01-18 Richard Henderson <rth@redhat.com>
25850 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
25851 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
25853 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
25855 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
25857 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
25858 (GCC_ZCX_Support): Likewise.
25860 2005-01-11 Bastian Blank <waldi@debian.org>
25862 * system-linux-s390.ads: Define Preallocated_Stacks.
25863 * system-linux-s390x.ads: Likewise.
25865 2005-01-04 Arnaud Charlet <charlet@adacore.com>
25867 * gnat_ugn.texi: Fix texi errors with null variables.
25869 2005-01-03 Thomas Quinot <quinot@adacore.com>
25871 * gen-soccon.c: New utility program to generate g-soccon.ads
25874 * socket.c, gsocket.h: Split inclusion of system header files into a
25875 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
25877 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
25878 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
25879 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
25880 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
25881 should not be edited by hand anymore, but should be regenerated using
25884 2005-01-03 Robert Dewar <dewar@adacore.com>
25885 Ed Schonberg <schonberg@adacore.com>
25886 Vincent Celier <celier@adacore.com>
25888 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
25889 on/off, since this is an obsolescent feature, for which we now generate
25892 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
25893 warning mode is set and obsolescent usage of this attribute occurs.
25894 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
25895 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
25896 predates, and partly motivates, the adoption of the AI.
25897 Implement new Ada 2005 attribute Mod
25899 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
25902 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
25904 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
25905 pragma restrictions.
25906 New entry for Ada 2005 attribute Mod.
25909 Add recognition of new pragma Restrictions No_Dependence
25910 Recognize restriction No_Obsolescent_Features at parse time
25912 * bcheck.adb: Add circuitry for checking for consistency of
25913 No_Dependence restrictions.
25915 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
25918 * restrict.ads, restrict.adb: Add subprograms to deal with
25919 No_Dependence restrictions.
25921 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
25924 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
25925 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
25927 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
25928 dummy parameter to scng instantiation.
25929 Needed for new restriction No_Obsolescent_Features
25931 * scn.adb: (Obsolescent_Check): New procedure
25932 Needed for new restriction No_Obsolescent_Features
25934 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
25935 specified by AI-285, needed for implementation of AI-388 (adding greek
25936 pi to Ada.Numerics).
25937 Add new generic formal to scng, needed for new restriction
25938 No_Obsolescent_Features.
25940 * s-rident.ads: Add new restriction No_Obsolescent_Features.
25942 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
25943 restrictions lines.
25944 (Scan_ALI): When finding an unexpected character on an R line, raise
25945 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
25946 Ignore_Errors is True, default restrictions are set and scanning of the
25947 ALI file continues with the next line. Also, when Bad_R_Line is raised
25948 and Ignore_Errors is True, skip to the end of le line.
25950 * sem_ch10.adb: Check that explicit with's do not violate
25951 No_Dependence restrictions.
25952 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
25953 illegal context clauses containing child units of instance.
25955 * sem_prag.adb: Processing and checking for new No_Dependence
25957 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
25958 analyze and check the External argument.
25960 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
25962 2005-01-03 Robert Dewar <dewar@adacore.com>
25964 * atree.adb: Add a fifth component to entities
25965 This allows us to add 32 flags and four new fields
25967 * atree.ads: Add a fifth component to entities
25968 This allows us to add 32 flags and four new fields
25970 * einfo.ads, einfo.adb: Document new fields and new flags now available
25971 Add routines for printing new fields
25973 * treepr.adb: Call routines to print out additional fields if present
25975 2005-01-03 Arnaud Charlet <charlet@adacore.com>
25977 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
25978 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
25980 * Makefile.in: Add support to build shared Ada libraries on solaris x86
25981 Remove gpr2make, replaced by gprmake.
25982 Remove references to gnatmem and libaddr2line.
25983 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
25984 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
25985 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
25986 a-numaux-darwin.ads and a-numaux-darwin.adb
25987 Enable mlib-tgt-lynxos.adb on lynxos.
25989 * Make-lang.in: Remove rules for gpr2make.
25990 When generating sdefault.adb, do not call Relocate_Path
25991 on S3 for function Target_Name, as it is not a path.
25992 Remove references to gnatmem and libaddr2line.
25994 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
25997 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
25999 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
26000 address is incompatible with its base type alignment constraints when
26001 this can be decided statically.
26003 2005-01-03 Olivier Hainque <hainque@adacore.com>
26005 * decl.c (compatible_signatures_p): New function. The intended purpose
26006 is to check if two function signatures for a call-site and a callee are
26007 compatible enough for the call to be valid. The underlying purpose is
26008 to check if a call to a mapped builtin is using the right interface.
26009 The current code actually does not check antyhing - this a placeholder
26010 for future refinements.
26011 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
26012 builtin calls for convention Intrinsic.
26014 * gigi.h (builtin_decl_for): Declare (new function).
26016 * utils.c (gnat_install_builtins): Install the target specific builtins.
26017 (builtin_decl_for): New function, provide a dummy body for now.
26019 2005-01-03 Geert Bosch <bosch@adacore.com>
26021 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
26022 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
26023 (Pred): Implement in terms of Succ.
26025 * trans.c (convert_with_check): Reimplement conversion of float to
26028 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26029 Vincent Celier <celier@adacore.com>
26031 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
26032 bounds can be negative, and must be declared Int, not Nat.
26034 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
26035 array is checked after using the index in the array.
26037 * makegpr.adb (Add_Switches): Check if there is a package for the
26038 processor. If there is no package, do not look for switches.
26040 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26042 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
26043 generation of predefined stream operations (specs and bodies) should
26044 proceed. Under various restrictions these subprograms must not be
26047 2005-01-03 Thomas Quinot <quinot@adacore.com>
26050 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
26051 amount of PCS-specific code in RACW stubs generation.
26052 (Copy_Specification): Set Etype on copied formal parameter entities, as
26053 this information is needed for PolyORB stubs generation.
26054 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
26055 variable Dynamic_Async.
26056 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
26057 (Build_RPC_Receiver_Specification): Make generic again, as recent
26058 changes have allowed RPC receivers to have the same profile for both
26059 variants of the PCS.
26060 Reorganise RPC receiver generation to reduce differences between the
26061 structure of GARLIC and PolyORB RPC receivers.
26062 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
26064 Simplify elaboration code for RCI packages.
26066 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
26067 generation to reduce differences between the structure of GARLIC and
26068 PolyORB RPC receivers.
26070 * s-stratt.adb: Fix typo in comment.
26072 2005-01-03 Thomas Quinot <quinot@adacore.com>
26074 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
26075 copied from Make_Init_Call).
26077 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
26078 reads and assignments on a temporary variable declared with appropriate
26081 2005-01-03 Robert Dewar <dewar@adacore.com>
26083 * i-c.adb (To_C): Raise CE if string is null and Append_Null
26085 2005-01-03 Robert Dewar <dewar@adacore.com>
26087 * i-cstrin.adb (Update): Do not append a null in form called with a
26088 String. This avoids unintended behavior.
26090 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26093 * init.c: Fix warnings on Free BSD section.
26095 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26098 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
26101 2005-01-03 Vincent Celier <celier@adacore.com>
26103 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
26104 libraries when Unique_Compile is True (-u switch).
26107 2005-01-03 Robert Dewar <dewar@adacore.com>
26109 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
26110 upper case letter or underscore after W, as allowed by spec.
26112 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26114 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
26115 darwin port by using proper type definitions from header files.
26116 Use SIGTERM instead of SIGABRT for SIGADAABORT.
26118 2005-01-03 Robert Dewar <dewar@adacore.com>
26120 * par.adb: Enhance error message handling for configuration file
26123 2005-01-03 Robert Dewar <dewar@adacore.com>
26125 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
26126 removed during the previous update (test properly for case of dividing
26127 largest negative number by -1, which generates overflow).
26129 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26130 Sergey Rybin <rybin@adacore.com>
26132 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
26133 to use as the defining identifier for a formal package.
26134 (Remove_Parent): If the instance takes place within (an instance of)
26135 a sibling, preserve private declarations of common parent.
26137 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26139 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
26140 to determine whether one of the operands is a fixed-point type for
26141 which a user-defined multiplication or division operation might be
26144 * sem_res.adb (Valid_Conversion): The legality rules for conversions
26145 of access types are symmetric in Ada 2005: either designated type can
26148 2005-01-03 Vincent Celier <celier@adacore.com>
26150 * s-fileio.adb (Temp_File_Record): Change length of string component
26151 Name from L_tmpnam + 1 to max_path_len + 1.
26153 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26155 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
26156 Self_Id.Deferral_Level = 0.
26157 (Do_Pending_Action): Move this function to the spec.
26159 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
26160 Do_Pending_Action explicitely when needed, in case we're using
26161 No_Abort restrictions.
26163 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
26164 deferral level since it will not get changed by the generated code.
26165 Keeping a default value of 1 would prevent some operations (e.g.
26166 select or delay) to proceed successfully.
26168 2005-01-03 Ben Brosgol <brosgol@adacore.com>
26169 Robert Dewar <dewar@adacore.com>
26170 Cyrille Comar <comar@adacore.com>
26172 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
26173 porting guide chapter (vms version).
26174 Revised doc title (removed "for native platforms") and subtitle.
26175 Add discussion on warning flag for obsolescent features. First we
26176 note that it applies to obsolete GNAT features, which was previously
26177 omitted. Second we contrast the behavior with that of the new
26178 Ada 2005 AI-368 restriction No_Obsolescent_Features.
26179 Preliminary rewriting of GNAT & libraries chapter in order to take
26180 into account default project locations & new project manager
26183 2005-01-03 Robert Dewar <dewar@adacore.com>
26185 * cstand.adb (Create_Operators): Clean up format and documentation of
26186 unary and binary operator result tables. No change in code, just
26187 reformatting and addition of comments.
26189 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
26190 sem_ch2.adb: Minor reformatting
26192 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
26193 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
26194 comments for Tree_Read and Tree_Write.
26196 2005-01-03 Pascal Obry <obry@adacore.com>
26198 * exp_attr.ads: Minor reformatting.
26200 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
26202 * comperr.adb (Compiler_Abort): Add specialized message for GAP
26205 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26207 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
26208 whether the ancestor type is private, as may be the case with nested
26211 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
26214 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
26216 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
26218 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
26219 * utils2.c (build_unary_op): Likewise.
26221 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26223 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
26225 2004-12-19 Richard Henderson <rth@redhat.com>
26227 * trans.c (gigi): Update gimplify_body call.
26229 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
26231 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
26233 2004-12-07 Ed Falis <falis@adacore.com>
26235 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
26236 current task being suspended.
26238 * init.c (__gnat_clear_exception): added to reset VxWorks exception
26240 (__gnat_map_signal): removed test for current task being suspended.
26242 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26244 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
26245 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
26246 targets (such as AAMP).
26248 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26250 * atree.adb (Visit_Itype): Create a new name for the generated itype,
26251 because the back-end may otherwise treat it as a redefinition of the
26254 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
26256 * back_end.adb (Scan_Back_End_Switches): Accept --param.
26258 * lang-specs.h: Accept --param.
26260 2004-12-07 Vincent Celier <celier@adacore.com>
26262 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
26263 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
26264 Current_Body_Suffix => Ada_Body_Suffix).
26265 Take into account Externally_Built attribute.
26267 * clean.adb (In_Extension_Chain): Always return False when one of the
26268 parameter is No_Project.
26269 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
26270 Ada_Language_Index).
26271 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
26272 Process_Languages for procedure Parse).
26274 * gnatcmd.adb (Carg_Switches): New table.
26275 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
26276 Adapt to name changes in package Prj (Current_Spec_Suffix =>
26277 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
26279 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
26280 Header_Num and function Hash are now declared in package Prj,
26283 * prj.adb (Suffix_Of): New function.
26284 (Set (Suffix)): New procedure.
26285 (Hash): One function moved from Prj.Com
26286 (Is_Present, Language_Processing_Data_Of): New functions
26287 (Set): Two new procedures
26288 (Add_Language_Name, Display_Language_Name): New procedures
26290 * prj.ads: (Suffix_Of): New function
26291 (Set (Suffix)): New procedure
26292 Add several types and tables for multi-language support.
26293 (Header_Num): Type moved from Prj.Com
26294 (Hash): Two functions moved from Prj.Com
26295 (Is_Present, Language_Processing_Data_Of): New functions
26296 (Set): Two new procedures
26297 (Add_Language_Name, Display_Language_Name): New procedures
26298 (Naming): Component name changes:
26299 Current_Spec_Suffix => Ada_Spec_Suffix,
26300 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
26301 Impl_Suffixes, Supp_Suffixes.
26302 (Project_Data): New components: Externally_Built, Supp_Languages,
26303 First_Language_Processing, Supp_Language_Processing, Default_Linker,
26304 Default_Linker_Path.
26306 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
26307 new package Language_Processing with its attributes (Compiler_Driver,
26308 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
26309 Binder_Driver, Default_Linker).
26311 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
26312 (Header_Num): Type moved to package Prj
26314 * prj-env.adb: Adapt to name changes in package Prj
26315 (Current_Spec_Suffix => Ada_Spec_Suffix,
26316 Current_Body_Suffix => Ada_Body_Suffix).
26318 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
26319 default to the project path, except the "-" is one of the directories
26320 in env var ADA_PROJECT_PATH.
26321 (Current_Project_Path): Global variable, replacing Project_Path
26322 that was in the body of Prj.Part.
26323 (Project_Path): New function
26324 (Set_Project_Path): New procedure
26325 Initialize Current_Project_Path during elaboration of the package
26326 Remove dependency on Prj.Com, no longer needed
26328 * prj-ext.ads (Project_Path): New function
26329 (Set_Project_Path): New procedure
26331 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
26332 suffix is defined for language <lang>.
26333 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
26334 accessing directly the components of Naming.
26335 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
26336 Reorganise of this package.
26337 Break procedure Check in several procedures.
26339 * prj-nmsc.ads: Replace all procedures (Ada_Check,
26340 Other_Languages_Check and Language_Independent_Check) with a single
26343 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
26344 Process_Languages, no longer needed.
26346 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
26347 Current_Project_Path.
26348 Remove elaboration code, moved to the body of Prj.Ext
26349 Use new function Prj.Ext.Project_Path instead of old variable
26351 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
26352 When comparing with project paths on the stack, first put the resolved
26353 path in canonical case.
26354 (Parse_Single_Project): Set the path name of the project file in the
26355 tree to the normalized path.
26357 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
26358 parameter Process_Languages, no longer needed.
26359 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
26360 Other_Languages_Check.
26362 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
26363 to store the resolved canonical path of the project file.
26364 Remove dependency to Prj.Com, no longer needed
26366 * prj-util.adb: Adapt to name changes in package Prj
26367 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
26370 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
26371 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
26372 Externally_Built, Include_Option, Language_Processing.
26374 * makegpr.adb: Numerous changes due to changes in packages
26377 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
26378 default to the project path, except whe "-" is one of the directories
26379 in env var ADA_PROJECT_PATH.
26380 (Gnatls): In verbose mode, add the new section "Project Search Path:"
26382 2004-12-07 Robert Dewar <dewar@adacore.com>
26384 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
26386 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
26389 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
26390 flag. No longer needed now that we handle this in gnat1drv.adb.
26392 * repinfo.ads: Minor reformatting
26394 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26395 Olivier Hainque <hainque@adacore.com>
26396 Eric Botcazou <ebotcazou@adacore.com>
26398 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
26399 TYPE_SIZE_UNIT of result type if SIZE is not specified.
26400 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
26401 of a bitfield, which we know is useless and causes trouble because of
26402 alignment implications.
26404 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
26406 (process_attributes): Clear DECL_COMMON again when a section attribute
26408 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
26409 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
26410 (create_field_decl): Special case ADDRESSABLE negative to mean
26411 "no bitfield creation", to be used by make_aligning_type. Don't
26412 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
26413 fields claimed addressable still have to be bitfields. Use
26414 value_factor_p instead of a raw binop construction to check for the
26415 position's alignment.
26417 2004-12-07 Geert Bosch <bosch@adacore.com>
26419 * eval_fat.adb: Revert previous change.
26421 2004-12-07 Thomas Quinot <quinot@adacore.com>
26422 Ed Schonberg <schonberg@adacore.com>
26424 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
26425 with an implicit dereference as its prefix, use
26426 Insert_Explicit_Dereference instead of merely rewriting the prefix into
26427 an explicit dereference. This ensures that a reference to the original
26428 prefix is generated, if appropriate.
26430 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
26431 dereference is rewritten to an explicit one, generate a reference to
26432 the entity denoted by its prefix using the original prefix node, so
26433 the dereference can be properly recorded as a read of the denoted
26434 access value, if appropriate.
26436 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
26437 emitting 'assigned but never read' warning on a variable on the basis
26438 that it has an access type.
26439 (Check_References): Emit unreferenced warning when the scope is a
26442 2004-12-07 Robert Dewar <dewar@adacore.com>
26443 Ed Schonberg <schonberg@adacore.com>
26445 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
26448 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
26449 leaving call unchanged.
26450 This deals with the case where the pragma Import specified
26451 an external name, to be handled by the back end.
26453 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
26454 subprogram which is Imported with convention Intrinsic if an
26455 External_Name argument is specified.
26456 (Process_Import_Or_Interface): Properly diagnose link name argument.
26457 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
26458 with Sem_Ch6.Cannot_Inline.
26459 (Process_Inline): Provide separate warning for inapplicable inline
26461 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
26462 treatment is uniform on different targets.
26464 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26466 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
26467 construct is rewritten, preserve end label to permit source navigation.
26469 2004-12-07 Thomas Quinot <quinot@adacore.com>
26471 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
26472 Specific_Build_Stub_Target): New subprograms.
26473 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
26474 the PCS implementation used, using the above PCS-customized subprograms.
26475 Minor reformatting.
26476 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
26477 for generation of DSA code targeted to the PolyORB PCS.
26478 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
26479 implementation of the partition communication subsystem in ancillary
26481 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
26482 PolyORB_Support.Build_Stub_Type): New subrograms containing the
26483 PCS-specific part of Add_Stub_Type.
26484 (Insert_Partition_Check): Use runtime library function to perform
26487 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
26488 (RE_Same_Partition): New entity, from s-parint.
26490 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
26492 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26494 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
26495 Output the copyright message on a separate line from the version
26498 2004-12-07 Joel Brobecker <brobecker@adacore.com>
26500 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
26501 compile-time warning.
26503 2004-12-07 Robert Dewar <dewar@adacore.com>
26505 * g-regpat.adb: (Match): Change a misuse of or to or else
26507 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26510 (Generate_Reference): Handle properly a reference to an entry formal,
26511 when an accept statement has a pragma Unreferenced for it.
26513 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
26514 and the Has_Pragma_Unreferenced flag for each formal before analyzing
26515 the body, to ensure that warnings are properly emitted for each accept
26516 statement of a given task entry.
26518 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
26520 * Makefile.in: Add support for foreign threads on VMS.
26522 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26524 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
26526 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
26528 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
26530 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
26532 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
26534 2004-12-07 Robert Dewar <dewar@adacore.com>
26536 * nlists.adb (Prepend_Debug): Remove parameters and nest within
26538 (Remove_Next_Debug): Same fix
26540 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
26541 maintain back pointers now, though we did not used to, and comments
26543 (Prepend): Remove pragma Inline.
26544 (Remove_Next): Same cleanup
26546 2004-12-07 Thomas Quinot <quinot@adacore.com>
26548 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
26549 used to record an implicit dereference as a read operation on its
26550 prefix when operating under -gnatc. Necessary to avoid spurious
26551 'variable assigned but never read' warnings in that mode.
26552 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
26553 is a non-overloaded implicit dereference, call the above subprogram to
26554 ensure proper recording of references.
26556 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26558 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
26559 to be resolved later as part of Analyze_Iteration_Scheme's call to
26562 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26564 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
26565 prefix is not a scalar type, place error message on prefix, not on
26568 2004-12-07 Bernard Banner <banner@adacore.com>
26570 * vxaddr2line.adb: Add support for x86 vxworks
26572 2004-12-07 Thomas Quinot <quinot@adacore.com>
26574 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
26575 documentation of the behaviour of these functions when passed an IP
26576 address that has no record in the system hosts database and no reverse
26579 * cstand.adb, a-tags.ads: Fix typos in comment.
26581 2004-12-07 Robert Dewar <dewar@adacore.com>
26583 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
26584 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
26585 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
26586 s-poosiz.ads: Minor reformatting
26588 * make.adb: Minor reformatting
26589 Add some ??? comments asking for more comments
26591 * s-poosiz.adb: Minor reformatting
26592 Add comments on alignment requirement
26594 * sinfo.ads: Remove obsolete comment and fix typo.
26596 2004-12-07 Vincent Celier <celier@adacore.com>
26597 Sergey Rybin <rybin@adacore.com>
26599 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
26600 Files" with the new tool and package names.
26601 Reformatting to suppress most of the warnings for line too long
26602 Document the new section "Project Search Path:" in the output of
26604 Add gnatmetric section
26606 2004-12-07 Vincent Celier <celier@adacore.com>
26608 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
26609 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
26610 and -eit to -ept. Added qualifier
26611 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
26613 2004-11-27 Andreas Schwab <schwab@suse.de>
26615 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
26617 2004-11-25 Arnaud Charlet <charlet@adacore.com>
26619 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
26620 internal implementation unit GNAT.Sockets.Thin,
26621 as their usage for sockets is non-portable (using the read and write
26622 functions from the system runtime library is fine on UNIX but won't
26623 work under Windows).
26625 * mingw32.h: Update copyright notice.
26627 2004-11-25 Arnaud Charlet <charlet@adacore.com>
26629 * ada-tree.h: Minor reformatting of previous change to avoid lines
26630 longer than 79 characters.
26632 2004-11-25 Olivier Hainque <hainque@adacore.com>
26634 * tb-gcc.c: GCC infrastructure based implementation of
26637 2004-11-24 Steven Bosscher <stevenb@suse.de>
26639 * misc.c (gnat_post_options): Don't clear
26640 flag_inline_functions.
26642 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
26645 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
26648 2004-11-21 Andreas Jaeger <aj@suse.de>
26650 * stylesw.adb: Change Style_Check_Subprogram_Order to
26651 Style_Check_Order_Subprograms.
26653 2004-11-18 Arnaud Charlet <charlet@adacore.com>
26655 * adaint.h, adaint.c
26656 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
26658 Add also a cast to kill another warning.
26659 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
26660 parameter with the priority class of the parent process instead of
26661 always using the NORMAL_PRIORITY_CLASS.
26662 (__gnat_dup): New function.
26663 (__gnat_dup2): New function.
26664 (__gnat_is_symbolic_link): Enable the effective body of this
26665 function when __APPLE__ is defined.
26667 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
26670 2004-11-18 Olivier Hainque <hainque@adacore.com>
26672 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
26673 address of which may be used to represent "others" and "all others"
26674 choices in exception tables, instead of the current harcoded
26675 (void *)0 and (void *)1.
26676 (Setup_Exception): Do nothing in the GNAT SJLJ case.
26678 * gigi.h (others_decl, all_others_decl): New decls representing the
26679 new Others_Value and All_Others_Value objects.
26680 (struct attrib): Rename "arg" component as "args", since GCC expects a
26681 list of arguments in there.
26683 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
26684 corresponding objects exported by a-exexpr, instead of hardcoded dummy
26687 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
26688 others_decl and all_others_decl instead of hardcoded dummy addresses
26689 to represent "others" and "all others" choices, which is cleaner and
26690 more flexible with respect to the possible eh pointer encoding policies.
26692 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
26693 (process_attributes): Account for the naming change of the "args"
26694 attribute list entry component.
26696 * decl.c (build_attr_list): Rename into prepend_attributes to allow
26697 cumulating attributes for different entities into a single list.
26698 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
26699 attributes for the current entity and propagate first subtype
26700 attributes to other subtypes.
26701 <E_Procedure>: Attribute arguments are attr->args and not
26702 attr->arg any more.
26703 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
26704 argument provided, as this is what GCC expects. Use NULL_TREE instead
26707 2004-11-18 Robert Dewar <dewar@adacore.com>
26709 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
26710 Minor reformatting througout (including new function specs)
26711 Add ??? comments asking for clarification.
26713 2004-11-18 Thomas Quinot <quinot@adacore.com>
26715 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
26716 incomplete duplicate implementation of this subprogram from butil.
26718 2004-11-18 Thomas Quinot <quinot@adacore.com>
26720 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
26721 procedures factors the common processing for building an RPC receiver
26722 for an RCI package or an RACW type.
26723 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
26724 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
26725 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
26727 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
26729 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
26731 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
26732 distribution subprogram identifiers that are either subprogram numbers
26734 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
26735 string distribution identifiers assigned to a given subprogram.
26736 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
26737 (Add_RAS_Dereference_TSS): Add comments.
26738 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
26739 is not referenced yet because it will be used by the PolyORB DSA
26741 (Insert_Partition_Check): Remove fossile code.
26742 (First_RCI_Subprogram_Id): Document this constant.
26743 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
26745 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
26746 replaced with calls to Get_Library_Unit_Name_String. Previously there
26747 were several instances of the same code in different locations in the
26748 compiler; this checkin completes the replacement of all of these
26749 instances with calls to a common subprogram.
26750 Minor reformatting.
26752 * sem_dist.adb: Remove comment noting that RPC receiver generation
26753 should be disabled for RACWs that implement RASs.
26754 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
26756 * sem_util.ads, sem_util.adb (Has_Stream): New function
26757 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
26758 qualified name of a library unit into the name buffer.
26759 (Note_Possible_Modification): Generate a reference only
26760 if the context comes from source.
26762 * snames.ads (PCS_Names): New subtype corresponding to names of
26763 supported implementations of the Partition Communication Subsystem
26764 (PCS) (i.e. the runtime library support modules for the distributed
26767 2004-11-18 Robert Dewar <dewar@adacore.com>
26768 Ed Schonberg <schonberg@adacore.com>
26770 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
26771 (Has_Rep_Pragma): New function
26772 (Has_Attribute_Definition_Clause): New function
26773 (Record_Rep_Pragma): Moved here from sem_ch13.adb
26774 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
26776 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
26778 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
26779 (Expand_Pragma_Psect_Object): New procedure
26780 These procedures contain the revised and cleaned up processing for
26781 these two pragmas. This processing was formerly in Sem_Prag, but
26782 is more appropriately moved here. The cleanup involves making sure
26783 that the pragmas are properly attached to the tree, and that no
26784 nodes are improperly shared.
26786 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
26787 pragmas to Exp_Prag, which is more appropriate.
26788 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
26789 check for duplicates Remove use of Is_Psected flag, no longer needed.
26790 Use new Make_String_Literal function with string.
26792 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
26793 that are functions return universal values, that have to be converted
26794 to the context type.
26795 Use new Make_String_Literal function with string.
26796 (Get_Stream_Convert_Pragma): New function, replaces the use of
26797 Get_Rep_Pragma, which had to be kludged to work in this case.
26799 * freeze.adb: Use new Has_Rep_Pragma function
26801 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
26802 function with string.
26803 Use new Has_Rep_Pragma function.
26805 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
26808 2004-11-18 Robert Dewar <dewar@adacore.com>
26810 * errout.ads, errout.adb: (First_Sloc): New function
26812 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
26813 check (-gnatyx) instead of being included as a redundant construct
26816 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
26817 Style_Check_Order_Subprograms.
26819 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
26820 stylesw.adb: Add Style_Check_Xtra_Parens
26822 * usage.adb: Add line for -gnatyx (check extra parens)
26824 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
26826 2004-11-18 Ed Schonberg <schonberg@adacore.com>
26827 Robert Dewar <dewar@adacore.com>
26829 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
26830 discriminant of a constrained subtype, analyze the copy of the
26831 corresponding constraint, because in some cases it may be only
26832 partially analyzed.
26833 Removes long-lived ??? comments.
26835 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
26836 handled controlled or secondary-stack expressions within the
26837 iteration_scheme of a loop.
26839 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
26840 bounds that may contain functions calls, to prevent memory leaks when
26841 the bound contains a call to a function that uses the secondary stack.
26842 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
26843 generate temporaries for loop bounds that might contain function calls
26844 that require secondary stack and/or finalization actions.
26846 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
26847 selected component and the selector is overloadable (not just a
26848 function) treat as function call, Analyze_Call will disambiguate if
26850 (Analyze_Selected_Component): Do not generate an actual subtype for the
26851 selected component if expansion is disabled. The actual subtype is only
26852 needed for constraint checks.
26853 (Analyze_Allocator): If restriction No_Streams is set, then do
26854 not permit objects to be declared of a stream type, or of a
26855 composite type containing a stream.
26857 * restrict.ads: Remove the a-stream entry from Unit_Array, since
26858 No_Streams no longer prohibits with'ing this package.
26860 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
26861 discriminants, but the parent base has unknown discriminants, there is
26862 no discriminant constraint to inherit. Such a discrepancy can arise
26863 when the actual for a formal type with unknown discriminants is a
26864 similar private type whose full view has discriminants.
26865 (Analyze_Object_Declaration): If restriction No_Streams is set, then
26866 do not permit objects to be declared of a stream type, or of a
26867 composite type containing a stream.
26869 2004-11-18 Ed Schonberg <schonberg@adacore.com>
26871 * exp_dbug.ads: Update documentation to reflect simpler encoding for
26872 protected operations.
26874 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
26875 generated name, it complicates decoding in gdb and hinders debugging
26876 of protected operations.
26877 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
26878 flag for the protected entry barrier function.
26879 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
26880 flag for the protected entry function.
26882 2004-11-18 Nicolas Setton <setton@adacore.com>
26884 * expect.c: Define __unix__ when __APPLE__ is defined.
26886 * Makefile.in: Inform the value of the variable GMEM_LIB in the
26887 Darwin-specific section.
26889 * lang-specs.h: Change the placement of the %1 marker.
26890 Works around the fact that gcc adds -fPIC by default under Darwin.
26892 2004-11-18 Ed Schonberg <schonberg@adacore.com>
26894 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
26895 type of the object with the packed array type, set the Analyzed flag
26896 on the object if it is an entity or simple indexed component, to avoid
26897 spurious type errors.
26899 2004-11-18 Gary Dismukes <dismukes@adacore.com>
26901 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
26902 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
26903 separate line from the version message.
26905 2004-11-18 Ed Falis <falis@adacore.com>
26907 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
26909 (init_float): Eliminate initialization of floating point status for
26910 AE653. The instructions have no effect for vThreads.
26912 2004-11-18 Vincent Celier <celier@adacore.com>
26914 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
26915 gnatbind is invoked with -shared.
26917 2004-11-18 Jose Ruiz <ruiz@adacore.com>
26919 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
26920 for Detect_Blocking which is redundant with the check done within the
26921 procedure Protected_Single_Entry_Call.
26922 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
26923 Detect_Blocking which is redundant with the check done within the
26924 procedure Protected_Single_Entry_Call.
26926 2004-11-18 Vincent Celier <celier@adacore.com>
26928 * makegpr.adb (Compile): Put the compiling switches (in package
26929 Compiler and on the command line) immediately after "-c", instead of
26930 at the end of the command line invocation of the compiler, when
26931 compiling a non-Ada file.
26932 (Build_Global_Archive): When there is no need to rebuild the archive,
26933 set Global_Archive_Exists, so that the archive is passed to the linker
26936 2004-11-18 Robert Dewar <dewar@adacore.com>
26937 Sergey Rybin <rybin@adacore.com>
26940 Remove extra paren check from list of checks for redundant constructs
26941 Add documentation of new -gnatyx style check (check extra parens)
26942 Remove paragraph about gnatelim debug options.
26944 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
26945 objects rather than forbidding dependencies on the package Ada.Streams.
26947 * sinfo.ads: Add ??? note that we should document pragmas passed to
26950 * g-expect.ads: Fix a few typos in the comments.
26952 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
26954 * misc.c (gnat_handle_option): Use %< and %> for quoting in
26957 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26959 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
26961 2004-11-07 Andreas Schwab <schwab@suse.de>
26963 * Makefile.in (install-gnatlib): Remove spurious hyphen.
26965 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
26968 * Makefile.in (darwin): Set soext to .dylib.
26970 2004-10-26 Vincent Celier <celier@gnat.com>
26971 Thomas Quinot <quinot@act-europe.fr>
26973 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
26974 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
26975 there is no use of GNAT.Sockets.Constants.
26976 Remove remaining pragma Import for C_Write
26977 Remove C_Read and C_Write from internal implementation unit
26978 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
26979 the read and write functions from the system runtime library is fine
26980 on UNIX but won't work under Windows).
26982 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
26983 (Check_Selector): Use C_Recv instead of C_Read.
26984 Selectors are the GNAT.Sockets abstraction to perform a select()
26985 call on a set of descriptors. To allow abortion of an ongoing
26986 select operation, some data is written to a dedicated socket that
26987 is always monitored.
26988 Under Windows, the write and read library functions cannot operate
26989 on sockets, so we need to use send and recv instead, which is portable
26990 across all supported platforms.
26992 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
26993 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
26994 (using the read and write functions from the system runtime library is
26995 fine on UNIX but won't work under Windows).
26997 2004-10-26 Nicolas Setton <setton@act-europe.fr>
26999 * mlib-tgt-darwin.adb: New file.
27001 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27002 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27003 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27004 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
27007 * Makefile.in: Add support for building shared libraries under Darwin.
27008 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
27009 the low level EH init subprogram to be called from __gnat_initialize.
27011 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
27012 indicates which options to pass to the archive indexer.
27014 * mlib-utl.adb: Add support for calling ranlib with additional
27015 options. This is needed for instance under Mac OS X.
27016 (Ranlib_Options): New global variable, used to store the potential
27017 options to pass to ranlib.
27018 (Ar): Use Ranlib_Options when spawning ranlib.
27019 (Initialize): Set the value of ranlib option.
27021 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27023 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
27024 instead of 8K, to reflect the real potential needs for stack-checking
27027 2004-10-26 Pascal Obry <obry@gnat.com>
27029 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
27031 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
27032 Windows only the initial thread stack size can be set so it is good to
27033 start we a low stack size.
27034 The OS will adjust the size as needed.
27036 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27037 Nicolas Setton <setton@act-europe.fr>
27039 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
27040 "__unix__" instead of "unix".
27041 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
27042 sections were just mistakenly ignored. The former is
27043 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
27044 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
27045 of hpux. This prevents an unwanted definition of the symbol
27046 convert_addresses in adaint.o.
27048 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27050 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
27051 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
27053 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27055 * a-filico.ads, a-filico.adb: fix incorrect header.
27057 2004-10-26 Javier Miranda <miranda@gnat.com>
27059 * a-ststio.ads: Fix typo in identifier
27061 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27063 * sem_ch4.adb: Minor reformatting.
27065 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27067 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
27068 enabled, check the result of unary and binary operations when the
27069 expression is the right-hand side of an assignment.
27071 2004-10-26 Vincent Celier <celier@gnat.com>
27073 * clean.adb (Delete): Do not output warnings when in quiet output and
27074 not in verbose mode.
27075 (Force_Deletions): New Boolean flag, defaulted to False
27076 (Delete): Only delete a file if it is writable, and when
27077 Force_Deletions is True.
27078 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
27079 (Usage): Line for new switch -f
27080 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
27083 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
27085 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
27086 JM type only if its size matches that of the wrapper. When a size is
27087 prescribed and the field is not aliased, remove the wrapper of a JM
27088 type only if the size is not greater than that of the packed array.
27089 (gnat_to_gnu_entity): Change the extension of packed array wrappers
27092 2004-10-26 Geert Bosch <bosch@gnat.com>
27094 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
27095 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27096 (Pred): Implement in terms of Succ.
27098 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27100 * exp_aggr.adb (Safe_Component): An aggregate component that is an
27101 unchecked conversion is safe for in-place use if the expression of the
27102 conversion is safe.
27103 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
27104 be expandable in place even if the aggregate does not come from source.
27105 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
27106 designated object of an allocator in place, rather than building it
27107 first on the stack. The previous scheme forces a full copy of the array,
27108 and may be altogether unsusable if the size of the array is too large
27109 for stack allocation.
27111 2004-10-26 Robert Dewar <dewar@gnat.com>
27113 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
27114 compares if the component is atomic.
27116 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
27117 array assignment if the component type is atomic.
27119 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27120 Eric Botcazou <ebotcazou@act-europe.fr>
27122 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
27123 is aliased and is a by_reference type, do not pass by copy.
27124 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
27125 detect whether the call is in the right side of an assignment or
27126 the expression of an object declaration. Recurse on component
27127 association within aggregates.
27128 Call it in the condition that determines whether the temporary is
27129 necessary for correct stack-checking.
27131 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27133 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
27134 RACW_Type, used in the PolyORB version.
27135 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
27136 version and the GARLIC version.
27138 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
27139 Rename RCI_Info to RCI_Locator for better consistency between the
27140 GARLIC and PolyORB versions of the distributed systems annex.
27141 (DSA_Implementation_Name): This enumeration lists the possible
27142 implementations of the Partition Communication Subsystem for the
27143 Distributed Systems Annex (DSA). The three available implementations
27144 are the dummy stub implementation (No_DSA), and two versions based on
27145 two different distribution runtime libraries: GARLIC and PolyORB. Both
27146 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
27148 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
27151 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
27152 between the GARLIC and PolyORB versions of the distributed systems
27154 Remove RE_Unbounded_Reclaim_Pool since it is unused.
27156 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27158 * gnat1drv.adb: Suppress calling the back end when
27159 Frontend_Layout_On_Target is true.
27161 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27163 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
27164 Set_Read_Only): New subprograms.
27165 These new routines allow the user to set or unset the Owner execute
27166 and Owner write permission flags on a file.
27168 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
27169 GNAT.OS_Lib.Set_Executable instead of rolling our own.
27171 2004-10-26 Matthew Gingell <gingell@gnat.com>
27173 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
27175 2004-10-26 Pascal Obry <obry@gnat.com>
27177 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
27178 memory before the faulting page we properly test the process read
27179 access for this address using appropriate Win32 routine.
27180 (HPUX sections): guard with "__hpux__" instead of "hpux".
27182 2004-10-26 Robert Dewar <dewar@gnat.com>
27184 * lib-xref.adb (Generate_Reference): Don't complain about reference to
27185 entry parameter if pragma Unreferenced set, since we do not properly
27186 handle the case of multiple parameters.
27188 2004-10-26 Vincent Celier <celier@gnat.com>
27190 * prj-env.adb: (Contains_ALI_Files): New Boolean function
27191 (Ada_Objects_Path.Add): For a library project, add to the object path
27192 the library directory only if there is no object directory or if the
27193 library directory contains ALI files.
27194 (Set_Ada_Paths.Add.Recursive_Add): Ditto
27196 2004-10-26 Vincent Celier <celier@gnat.com>
27198 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
27199 extension of library projects.
27201 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
27202 path defaults to ".:<prefix>/lib/gnat".
27203 (Parse): For an extending all project, allow direct import of a project
27204 that is virtually extended.
27206 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
27207 the specified name is directly imported, return its ID. Otherwise, if
27208 an extension of this project is imported, return the ID of the
27211 2004-10-26 Robert Dewar <dewar@gnat.com>
27213 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
27214 (Sub3): New procedure, used by Scaled_Divide
27215 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
27216 correct more than one instance of failure to propagate carries
27218 (Double_Divide): Handle overflow case of largest negative number
27219 divided by minus one.
27221 * s-arit64.ads (Double_Divide): Document that overflow can occur in
27222 the case of a quotient value out of range.
27225 2004-10-26 Robert Dewar <dewar@gnat.com>
27227 * s-bitops.adb (Bit_Eq): Remove redundant check.
27229 * s-bitops.ads: Minor comment updates
27230 Change some occurrences of Address to System.Address
27232 * s-carsi8.ads: Fix minor cut-and-paste error in comments
27234 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27236 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
27237 accessibility check to prefix that is a protected operation.
27239 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27241 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
27242 empty, post message on stub.
27244 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27245 Javier Miranda <miranda@gnat.com>
27247 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
27248 current instance appears within a unit that is directly in the context
27250 Used to determine whether the body of the instance should be analyzed
27251 immediately after its spec, to make its subprogram bodies available
27252 for front-end inlining.
27253 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
27254 constraint is not allowed on the component type (AARM 12.5.3(3))
27256 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27258 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
27259 'Storage_Pool): enhance, document & limit detection of non-sharable
27262 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
27264 * s-pooglo.ads: Add more documentation now that this pool is properly
27267 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27269 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
27270 or protected type with discriminants, do not constrain the
27271 corresponding record type if the subtype declaration has no
27272 discriminant constraints. This can be the case in source code, or in
27273 the subtype declaration created to rename an actual type within an
27276 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27278 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
27279 different kind of stub (possibly wrong name for file), do not check
27281 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
27282 includes call to some function that returns an unconstrained type, do
27285 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27287 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
27288 appear in the code for the main unit. Dependencies among units in the
27289 context of the main unit are established when those other units are
27290 compiled. Otherwise spurious elaboration constraints can generate
27291 incorrect elaboration circularities.
27293 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27294 Ed Schonberg <schonberg@gnat.com>
27296 * sem_util.adb (Is_Aliased_View): Defend against the case where this
27297 subprogram is called with a parameter that is not an object name. This
27298 situation arises for some cases of illegal code, which is diagnosed
27299 later, and in this case it is wrong to call Is_Aliased, as that might
27300 cause a compiler crash.
27301 (Explain_Limited_Type): Refine previous fix to include
27302 inherited components of derived types, to provide complete information.
27304 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
27305 is the prival for a protected object.
27306 It is necessary to mark this entity as a variable, in addition to
27307 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
27308 modified to avoid checking the Aliased flag on entities that are not
27309 objects. (Checking that flag for non-objects is erroneous and could
27310 lead to a compiler crash).
27312 2004-10-26 Robert Dewar <dewar@gnat.com>
27314 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
27315 X_Frac = 0.5, then we know that the number X must be positive.
27316 (Succ): Remove the same redundant test, and also fix the primary test
27317 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
27319 (Decompose): Add fuller comments to spec
27321 2004-10-26 Pascal Obry <obry@gnat.com>
27323 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
27324 validity (process must have read access). Set to 0 in all other cases.
27325 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
27326 violation on Win32.
27327 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
27328 segmentation violation.
27330 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
27332 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
27333 whose type is a constructed subtype of an aliased object with an
27334 unconstrained nominal subtype, convert the actual to the constructed
27335 subtype before taking its address.
27337 2004-10-26 Vincent Celier <celier@gnat.com>
27339 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
27340 (Is_Path_Name_Case_Sensitive): New function
27342 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
27343 (Base_Name, Simple_Name, Current_Directory, Compose,
27344 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
27347 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27348 Vasiliy Fofanov <fofanov@act-europe.fr>
27349 Vincent Celier <celier@gnat.com>
27351 * gnat_ugn.texi: Generalize "finding memory problems" section into a
27352 "memory management issues" section and document some of the useful
27353 memory pools provided as part of the GNAT library.
27354 Remove "virtual" from declaration of A::method2 in
27355 the simple example of Ada/C++ mixed system.
27356 Library Projects may be virtually extended: their virtual extensions
27357 are not Library Projects.
27358 Added section on extending project hierarchies.
27360 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27362 * adaint.c (__gnat_get_libraries_from_registry): Cast value
27364 (__gnat_portable_spawn): Remove const.
27366 * mingw32.h (MAXPATHLEN): Check for previous definition.
27368 2004-10-17 Matthias Klose <doko@debian.org>
27370 * gnatvsn.ads: Set gnat library version to 4.0.
27372 2004-10-05 Vincent Celier <celier@gnat.com>
27374 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
27376 2004-10-04 Laurent Guerby <laurent@guerby.net>
27379 * Makefile.in: Define and use RANLIB_FLAGS.
27381 2004-10-04 Pascal Obry <obry@gnat.com>
27383 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
27384 other x86 platforms).
27386 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
27388 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
27389 in general and triggers stack alignment adjustment for thread entry
27390 points on targets where this is necessary.
27392 2004-10-04 Bernard Banner <banner@gnat.com>
27395 * Makefile.in: Add section for powerpc linux
27396 Add variant i-vxwork-x86.ads
27398 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
27400 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
27402 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
27403 table registration calls when need be. Ensures no reference to the crt
27404 ctors symbol are issued in the SJLJ case, which avoids possible
27405 undefined symbol errors in the case of modules to be statically linked
27408 2004-10-04 Javier Miranda <miranda@gnat.com>
27410 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
27411 in-line the code corresponding to subprogram Analyze_Actuals. In
27412 addition, analyze the actuals only in case of subprogram call.
27414 2004-10-04 Ed Falis <falis@gnat.com>
27416 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
27418 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
27420 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
27421 in the documentation.
27423 2004-10-04 Robert Dewar <dewar@gnat.com>
27425 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
27427 (Analyze_Block_Statement): Add circuitry to detect following dead code
27428 (Check_Unreachable_Code): Handle case of block exit
27430 2004-10-04 Robert Dewar <dewar@gnat.com>
27432 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
27433 (XMatchD): Avoid warning for Logic_Error call
27435 2004-10-04 Robert Dewar <dewar@gnat.com>
27437 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
27438 consider expressions buried within a procedure actual to be an actual.
27439 This caused some blowups with uses of packed slices within a procedure
27442 2004-10-04 Robert Dewar <dewar@gnat.com>
27444 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
27445 longer need to be initialized to zero.
27446 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
27447 initialized to zero.
27449 * checks.adb (Expr_Known_Valid): Packed arrays are now always
27450 considered valid, even if the representation is modular. That's correct
27451 now that we no longer initialize packed modular arrays to zero.
27453 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
27454 suffixes. These are now documented as the only cases in which the
27455 debugger ignores outer records.
27456 Previously, the spec allowed arbitrary suffixes for this purpose.
27457 Change name of LJM to JM for packed array pad records
27458 Create separate section on packed array handling, and add a whole new
27459 set of comments to this section describing the situation with packed
27460 modular types and justification requirements depending on endianness.
27462 2004-10-04 Robert Dewar <dewar@gnat.com>
27464 * a-except.adb: Add a comment for last change
27466 * einfo.ads: Minor spelling correction in comment
27468 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
27470 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
27473 * sem_util.ads: Minor comment update
27475 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27477 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
27478 Inline_Always when in Configurable_Run_Time mode.
27480 * sem_prag.adb (Process_Convention): If entity is an inherited
27481 subprogram, apply convention to parent subprogram if in same scope.
27482 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
27483 when in Configurable_Run_Time mode.
27485 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27487 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
27488 class_wide type after component list has been inherited.
27490 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27492 * sem_ch12.adb (Check_Generic_Actuals): New predicate
27493 Denotes_Previous_Actual, to handle properly the case of a private
27494 actual that is also the component type of a subsequent array actual.
27495 The visibility status of the first actual is not affected when the
27496 second is installed.
27497 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
27498 make fully recursive the treatment of formals of packages declared
27500 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
27501 the above on exit from an instantiation.
27502 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
27503 current instantiation which is now complete.
27504 (Analyze_Package_Instantiation): No instantiated body is needed if the
27505 main unit is generic. Efficient, and avoid anomalies when a instance
27506 appears in a package accessed through rtsfind.
27508 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27510 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
27511 do not generate a declaration for a temporary if the call is part of a
27512 library-level instantiation.
27514 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27516 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
27517 searching for a limited component to flag.
27519 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
27520 expansion of Input, to account for the fact that the implicit call
27521 generated by the attribute reference must freeze the user-defined
27522 stream subprogram. This is only relevant to 'Input, because it can
27523 appear in an object declaration, prior to the body of the subprogram.
27525 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
27526 expansion can proceed and further errors uncovered.
27527 (Minor clean up): Fix cases of using | instead of \ for continuation
27530 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27532 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
27534 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
27535 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
27536 Use gcc_assert and gcc_unreachable.
27538 * decl.c (gnat_to_gnu_entity, case object): Check and process a
27539 specified alignment before validating size.
27540 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
27541 stripped-down declaration for the type of the inner field when making
27544 * utils.c (finish_record_type): Do not compute the size in units
27545 incrementally. Instead compute it once for the rep clause case.
27546 Use gcc_assert and gcc_unreachable.
27548 2004-10-04 Vincent Celier <celier@gnat.com>
27550 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
27552 (Is_Valid_Path_Name): Take '/' as a directory separator.
27554 2004-10-04 Vincent Celier <celier@gnat.com>
27556 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
27557 (Extended_Project) only if Extended_Project is defined, to avoid
27559 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
27561 (Parse_Single_Project): Ditto.
27563 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
27564 Add_To_Project_Path for virtual projects.
27566 2004-10-04 Vincent Celier <celier@gnat.com>
27568 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27569 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27570 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27571 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
27572 parameter Options_2.
27574 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
27575 Build_Dynamic_Library with an empty Options_2.
27577 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
27580 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
27581 directory separator, if any.
27582 (Gprmake): Do not allow mains on the command line for library projects.
27583 Do not attempt to link when the project is a library project.
27584 (Library_Opts): New table to store Library_Options.
27585 (Build_Library): If Library_Options is specified, pass these options
27586 when building a shared library.
27588 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
27590 * s-tposen.adb (Service_Entry): The object must be always unlocked at
27591 the end of this procedure now that the unlock operation was inserted
27594 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
27596 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
27597 corresponding to the Preallocated_Stacks flags in System.
27598 (Get_Target_Parameters): Including the processing for
27599 Preallocated_Stacks.
27601 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
27602 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
27603 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
27604 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
27605 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
27606 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27607 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
27608 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
27609 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
27610 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
27611 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
27612 used to signal whether the compiler creates the required stacks and
27613 descriptors for the different tasks (when True) or it is done by the
27614 underlying operating system at run time (when False).
27615 It is initially set to False in all targets.
27617 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
27618 if it is supported by the target.
27619 (Make_Task_Create_Call): Pass the stack address if it has been
27620 previously created. Otherwise pass a Null_Address.
27622 * snames.adb: Add _stack.
27624 * snames.ads: Add Name_uStack. Required to allow the expander to
27625 statically allocated task stacks.
27627 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
27628 Stack_Address argument.
27629 Check that its value is equal to Null_Address because this target does
27630 not support the static stack allocation.
27632 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27634 * usage.adb: Change "pragma inline" to "pragma Inline" in information
27637 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27639 * exp_dist.adb: Split declaration of asynchronous flag out of
27640 Add_RACW_Read_Attribute.
27641 Minor reformatting for better alignment with PolyORB version.
27642 Store the entity for the asynchronous flag of an RACW, rather than the
27643 expression, in the asynchronous flags table. This will allow this flag
27644 to be used in other subprograms beside Add_RACW_Read_Attribute.
27646 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27648 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
27649 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27650 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
27651 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
27652 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
27653 sockets constant MSG_NOSIGNAL (Linux-specific).
27654 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
27655 all Send operations.
27656 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
27657 from trigerring SIGPIPE.
27658 Rename components to avoid clash with Ada 2005 possible reserved
27660 (Check_Selector): When the select system call returns with an error
27661 condition, propagate Socket_Error to the caller.
27663 2004-10-01 Jan Hubicka <jh@suse.cz>
27665 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
27667 2004-09-23 Robert Dewar <dewar@gnat.com>
27670 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
27671 instead do this at freeze time (we won't do it if there is an address
27673 Change "pragma inline" to "pragma Inline" in information and error
27675 Minor reformatting.
27677 * freeze.adb (Check_Address_Clause): Remove previous change, not the
27678 right way of doing things after all.
27679 (Freeze_Entity): For object, set Is_Public for imported entities
27680 unless there is an address clause present.
27682 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
27684 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
27685 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
27686 ensures proper handling of types with rep clauses, which might have
27687 their TYPE_SIZE set already.
27689 2004-09-21 Robert Dewar <dewar@gnat.com>
27691 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
27692 packed array types in both little- and big-endian cases. This change
27693 ensures that we no longer count on the unused bits being initialized
27694 for such types (and in particular ensures that equality testing will
27695 only read the relevant bits).
27696 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27697 These changes mean that we no longer need to initialize small packed
27699 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
27700 optimization to an LJM field as to its parent field.
27702 * ada-tree.h, trans.c, utils.c, utils2.c:
27703 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27705 2004-09-20 Jan Hubicka <jh@suse.cz>
27707 * utils.c (gnat_finalize): Remove.
27708 (end_subprog_body): Directly call cgraph_finalize_function;
27709 do not lower the nested functions.
27711 2004-09-20 Robert Dewar <dewar@gnat.com>
27714 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
27715 if an address clause is present, since that means that the Import
27718 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
27720 * 5tsystem.ads: Removed, no longer used.
27722 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
27723 Zack Weinberg <zack@codesourcery.com>
27725 * ada-tree.def: Use tree_code_class enumeration constants
27726 instead of code letters.
27727 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
27728 Update for new tree-class enumeration constants.
27730 2004-09-17 Vincent Celier <celier@gnat.com>
27732 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
27733 capabilities of the general project manager.
27735 2004-09-09 Vincent Celier <celier@gnat.com>
27737 * a-direct.ads: Add pragma Ada_05
27738 (Directory_Entry_Type): Give default value to component Kind to avoid
27739 not initialized warnings.
27741 * a-direct.adb (Current_Directory): Remove directory separator at the
27743 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
27744 an existing directory.
27745 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
27746 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
27747 Convert the result to File_Size.
27749 * prj.ads: (Project_Error): New exception
27751 * prj-attr.adb: Except in procedure Initialize, Fail comes from
27752 Prj.Com, not from Osint.
27753 (Attrs, Package_Attributes): Tables moved to private part of spec
27754 (Add_Attribute, Add_Unknown_Package): Moved to new child package
27756 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
27757 Prj.Project_Error after call to Fail.
27758 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
27759 Fail. Check that package name is not already in use.
27761 * prj-attr.ads: Comment updates to indicate that all subprograms may be
27762 used by tools, not only by the project manager, and to indicate that
27763 exception Prj.Prj_Error may be raised in case of problem.
27764 (Add_Unknown_Package, Add_Attribute): Moved to new child package
27766 (Attrs, Package_Attributes): Table instantiations moved from the body to
27767 the private part to be accessible from Prj.Attr.PM body.
27769 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
27770 from new package Prj.Attr.PM.
27771 (Parse_Attribute_Declaration): Call Add_Attribute from new package
27774 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
27776 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
27777 instead of Elaboration_Checks).
27779 * a-calend.adb: Minor reformatting
27781 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27783 * gigi.h (maybe_pad_type): New declaration.
27784 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
27786 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
27788 * cuintp.c: Convert to use buildN.
27790 * decl.c (maybe_pad_type): No longer static.
27791 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
27793 Convert to use buildN.
27795 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
27796 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
27797 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
27799 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
27800 (gnat_gimplify_expr, case ADDR_EXPR): New case.
27801 Convert to use buildN.
27803 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
27804 TREE_READONLY for const.
27805 Convert to use buildN.
27807 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
27808 (create_var_decl): Refine when TREE_STATIC is set.
27809 Convert to use buildN.
27811 2004-09-09 Gary Dismukes <dismukes@gnat.com>
27813 * gnat_ugn.texi: Delete text relating to checking of ali and object
27816 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
27819 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
27821 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
27822 pragmas recognized by GNAT.
27824 * gnat_rm.texi: Document pragma Detect_Blocking.
27826 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
27827 raise Program_Error if called from a protected operation.
27829 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
27830 the protected action nesting level.
27831 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
27832 protected action nesting level.
27833 (Unlock): When pragma Detect_Blocking is active decrease the protected
27834 action nesting level.
27836 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
27837 Protected_Action_Nesting.
27839 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
27840 Common_ATCB record. It contains the dynamic level of protected action
27841 nesting for each task. It is needed for checking whether potentially
27842 blocking operations are called from protected operations.
27843 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
27844 Detect_Blocking is active or not in the partition.
27846 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
27847 raise Program_Error if called from a protected operation.
27848 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
27849 Program_Error if called from a protected operation.
27850 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
27851 Program_Error if called from a protected operation.
27853 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
27854 raise Program_Error if called from a protected operation.
27856 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
27857 raise Program_Error if called from a protected operation, and increase
27858 the protected action nesting level.
27859 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
27860 Program_Error if called from a protected operation, and increase the
27861 protected action nesting level.
27862 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
27863 protected action nesting level.
27865 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
27866 raise Program_Error if called from a protected operation, and increase
27867 the protected action nesting level.
27868 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
27869 Program_Error if called from a protected operation, and increase the
27870 protected action nesting level.
27871 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
27872 raise Program_Error if called from a protected operation.
27873 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
27874 active, raise Program_Error if called from a protected operation.
27875 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
27876 protected action nesting level.
27878 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
27879 insertion of the statement raising Program_Error. The run time
27880 contains the required machinery for handling that.
27882 * sem_util.ads: Change comment associated to procedure
27883 Check_Potentially_Blocking_Operation.
27884 This procedure does not insert a call for raising the exception because
27885 that is currently done by the run time.
27887 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
27889 * init.c: Add the global variable __gl_detect_blocking that indicates
27890 whether pragma Detect_Blocking is active (1) or not (0). Needed for
27891 making the pragma available at run time.
27892 (__gnat_set_globals): Pass and update the detect_blocking parameter.
27894 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
27895 pragma Detect_Blocking is active.
27897 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
27899 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
27900 DB is found in the ali file. Any unit compiled with pragma
27901 Detect_Blocking active forces its effect in the whole partition.
27903 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
27904 Detect_Blocking is active and delay is called from a protected
27907 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
27908 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
27909 Detect_Blocking is active (0 otherwise).
27910 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
27911 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
27914 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
27916 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
27917 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
27920 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
27921 (Register_Receiving_Stub): Add Subp_Info formal parameter.
27922 Update API in placeholder implemetation of s-parint to reflect changes
27923 in distribution runtime library.
27925 * sem_ch3.adb (Expand_Derived_Record): Rename to
27926 Expand_Record_Extension.
27928 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
27929 primitive operations of potentially distributed object types that have
27930 non-controlling anonymous access formals.
27932 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
27934 New implementation of expansion for remote access-to-subprogram types,
27935 based on the RACW infrastructure.
27936 This version of sem_dist is compatible with PolyORB/DSA as well as
27939 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
27940 Asynchrronous that applies to a remote access-to-subprogram type, mark
27941 the underlying RACW type as asynchronous.
27943 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
27944 __gnat_using_gnu_linker to 1.
27946 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
27947 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
27948 GNAT.Perfect_Hash_Generators, and remove the empty
27949 GNAT.Perfect_Hash package.
27951 * atree.adb: Minor reformatting
27953 * exp_ch3.adb (Expand_Derived_Record): Rename to
27954 Expand_Record_Extension.
27955 (Build_Record_Init_Proc.Build_Assignment): The default expression in
27956 a component declaration must remain attached at that point in the
27957 tree so New_Copy_Tree copies it if the enclosing record type is derived.
27958 It is therefore necessary to take a copy of the expression when building
27959 the corresponding assignment statement in the init proc.
27960 As a side effect, in the case of a derived record type, we now see the
27961 original expression, without any rewriting that could have occurred
27962 during expansion of the ancestor type's init proc, and we do not need
27963 to go back to Original_Node.
27965 * exp_ch3.ads (Expand_Derived_Record): Rename to
27966 Expand_Record_Extension.
27968 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
27969 Returns the RACW type used to implement a remote access-to-subprogram
27971 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
27972 New subprograms. Used to create a proxy tagged object for a remote
27973 subprogram. The proxy object is used as the designated object
27974 for RAS values on the same partition (unless All_Calls_Remote applies).
27975 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
27976 System.Partition_Interface.Get_Unique_Remote_Pointer.
27977 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
27978 Renamed from Add_RAS_*_Attribute.
27979 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
27981 New implementation of expansion for remote access-to-subprogram types,
27982 based on the RACW infrastructure.
27984 * exp_dist.ads (Copy_Specification): Update comment to note that this
27985 function can copy the specification from either a subprogram
27986 specification or an access-to-subprogram type definition.
27988 2004-09-09 Ed Schonberg <schonberg@gnat.com>
27990 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
27991 in an instance, between an explicit subprogram an one inherited from a
27992 type derived from an actual.
27994 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
27995 add a polling call if the subprogram is to be inlined by the back-end,
27996 to avoid repeated calls with multiple inlinings.
27998 * checks.adb (Apply_Alignment_Check): If the expression in the address
27999 clause is a call whose name is not a static entity (e.g. a dispatching
28000 call), treat as dynamic.
28002 2004-09-09 Robert Dewar <dewar@gnat.com>
28004 * g-trasym.ads: Minor reformatting
28006 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
28007 packed arrays, since unused bits are expected to be zero for a
28010 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
28012 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
28015 2004-09-09 Pascal Obry <obry@gnat.com>
28017 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
28018 enable map file generation. Add the right option to generate the map
28019 file if Map_File is set to True.
28021 * gnatdll.adb (Gen_Map_File): New variable.
28022 (Syntax): Add info about new -m (Map_File) option.
28023 (Parse_Command_Line): Add support for -m option.
28024 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
28025 Minor reformatting.
28027 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
28029 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
28030 new gnatdist implementation.
28031 Define a subpackage isolating the output routines specific to this
28034 2004-09-09 Joel Brobecker <brobecker@gnat.com>
28036 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
28038 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
28040 2004-09-09 Cyrille Comar <comar@act-europe.fr>
28042 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
28045 * opt.ads: Add Ada_Version_Runtime constant used to decide which
28046 version of the language is used to compile the run time.
28048 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
28050 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
28051 of variable length temporaries for function return now that the
28052 back-end and gigi support it.
28054 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28056 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
28058 * trans.c (struct stmt_group): Delete field GLOBAL.
28059 (gnat_init_stmt_group): Do not initialize it.
28060 (call_to_gnu): Use save_expr, not protect_multiple_eval.
28061 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
28062 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
28063 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
28064 (start_stmt_group): Likewise.
28065 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
28067 * utils2.c (ggc.h): Include.
28068 (build_call_raise): Call build_int_cst, not build_int_2.
28070 * utils.c (gnat_init_decl_processing): Fix arg to
28071 build_common_tree_nodes.
28072 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
28073 (gnat_define_builtin): Set built_in_decls.
28074 (init_gigi_decls): Call build_int_cst, not build_int_2.
28076 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
28077 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
28078 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
28079 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
28080 SET_TYPE_MODULE): Use them.
28081 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
28082 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
28083 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
28084 SET_TYPE_ADA_SIZE): Likewise.
28085 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
28086 (DECL_CONST_CORRESPONDING_VAR,
28087 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
28088 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
28089 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
28090 (TYPE_RM_SIZE_NUM): New macro.
28091 (TYPE_RM_SIZE): Modified to use above.
28093 * cuintp.c: (build_cst_from_int): New function.
28094 (UI_To_gnu): Use it.
28096 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
28097 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
28098 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
28099 MIN_EXPR for the size, copy it into new.
28101 2004-09-01 Robert Dewar <dewar@gnat.com>
28103 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
28104 packed indexed component where array is an IN OUT formal. This
28105 generated garbage code previously.
28107 * gnat_ugn.texi: Document -fverbose-asm
28109 * gnat-style.texi: Minor updates (note that boolean constants and
28110 variables are joined with AND/OR rather than short circuit forms).
28112 2004-09-01 Ed Schonberg <schonberg@gnat.com>
28114 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
28115 it is an upward conversion of an untagged type with no representation
28118 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
28120 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
28121 System.Partition_Interface.
28123 * checks.adb (Apply_Access_Checks): Do not generate checks when
28124 expander is not active (but check for unset reference to prefix of
28127 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
28128 pragma Debug as an if statement with a constant condition, for
28129 consistent treatment of entity references contained within the
28130 enclosed procedure call.
28132 2004-09-01 Vincent Celier <celier@gnat.com>
28134 * bindgen.adb: (Set_EA_Last): New procedure
28135 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
28137 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
28138 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
28139 linked without errors.
28140 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
28142 (Gen_Exception_Table_C): Correct same bugs
28144 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
28146 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
28147 on Windows, make sure that the drive letter is in upper case.
28149 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
28150 Windows, when the drive letter is added and Case_Sensitive is True, the
28151 drive letter is forced to upper case.
28153 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
28154 to Options_2 for the call to MLib.Utl.Gcc.
28156 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
28157 directory separator when defining BASE_DIR.
28159 2004-09-01 Pascal Obry <obry@gnat.com>
28161 * gprcmd.adb (Extend): Do not output trailing directory separator. This
28162 is not needed and it confuses Windows GNU/make which does not report
28163 directory terminated by a slash as a directory.
28164 (gprcmd): Idem for "pwd" internal command.
28166 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
28167 target names rewrite to fix regressions with recent version of
28168 GNU/make. Starting with GNU/make 3.80 the pipe character was not
28169 handled properly anymore.
28171 2004-09-01 Andreas Schwab <schwab@suse.de>
28173 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
28174 * raise.c [!IN_RTS]: Undef abort.
28176 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
28178 * utils2.c (build_allocator): Use ssize_int.
28180 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
28182 2004-08-27 Andreas Schwab <schwab@suse.de>
28184 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
28186 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
28187 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28189 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
28191 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
28193 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
28194 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28195 * utils.c (init_gigi_decls): Likewise.
28196 * utils2.c (build_call_raise, build_allocator): Likewise.
28198 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
28200 * utils.c (gnat_init_decl_processing): Adjust
28201 build_common_tree_nodes call.
28203 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
28205 * utils2.c (build_allocator): Use build_int_cst for negative
28208 2004-08-18 Richard Henderson <rth@redhat.com>
28210 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
28212 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
28214 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
28216 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
28217 (gnat_to_gnu): Likewise.
28219 2004-08-16 Pascal Obry <obry@gnat.com>
28221 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
28222 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
28223 option and not mdll anymore. Update comment.
28225 2004-08-16 Pascal Obry <obry@gnat.com>
28227 * bld.adb (Put_Include_Project): Properly handle directory separators
28230 2004-08-16 Ed Schonberg <schonberg@gnat.com>
28232 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
28233 decreasing the number of allocated junk nodes while searching for the
28234 appropriate subprogram.
28236 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
28238 * cuintp.c (UI_To_gnu): Use build_int_cst..
28239 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28240 * utils.c (init_gigi_decls): Likewise.
28241 * utils2.c (build_call_raise): Likewise.
28243 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
28245 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
28246 for a global aliased object with a variable size and an unconstrained
28247 nominal subtype, pretend there is no initializer if the one we have is
28248 incomplete, and avoid referencing an inexistant component in there. The
28249 part we have will be rebuilt anyway and the reference may confuse
28250 further operations.
28252 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
28254 * einfo.ads: Minor reformatting
28256 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
28257 restrictions in the ALI if we only want to warn about violations.
28259 2004-08-13 Vincent Celier <celier@gnat.com>
28261 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
28262 when creating a new Unit_Record in table Units.
28264 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
28265 that are violated, if any.
28267 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
28268 add directory separator if path already ends with a directory separator.
28270 2004-08-13 Ed Schonberg <schonberg@gnat.com>
28272 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
28273 unit, this is an attempt to inline a construct that is not available in
28274 the current restricted mode, so abort rather than trying to continue.
28276 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
28277 discriminants that rename those of the parent, recover names of
28278 original discriminants for the constraint on the full view of the
28280 (Complete_Private_Subtype): Do not create a subtype declaration if the
28281 subtype is an itype.
28283 * gnat_rm.texi: Added section on implementation of discriminated
28284 records with default values for discriminants.
28286 2004-08-13 Ed Schonberg <schonberg@gnat.com>
28289 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
28290 the second operand is overloaded.
28292 2004-08-10 Richard Henderson <rth@redhat.com>
28294 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
28295 add __builtin_alloca.
28297 2004-08-10 Richard Henderson <rth@redhat.com>
28299 * config-lang.in (boot_language): Yes.
28301 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
28303 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
28304 from complaining on potential uninitialized reference.
28305 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
28306 new specification and test explicitly for non-zero return value.
28308 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
28309 returning C.int, to avoid using a derived boolean type.
28311 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
28312 Duplicate_Subexpr_No_Checks in preference to direct use of
28313 Remove_Side_Effects and New_Copy_Tree.
28314 Clear Comes_From_Source on prefix of 'Size attribute reference.
28316 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
28317 g-socthi-vxworks.adb: Change calls to
28318 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
28319 and test explicitly for non-zero return value.
28321 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
28322 (Is_Socket_In_Set): Declare imported function as returning C.int, to
28323 avoid using a derived boolean type.
28325 2004-08-09 Albert Lee <lee@gnat.com>
28327 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
28329 2004-08-09 Pascal Obry <obry@gnat.com>
28331 * gnat_ugn.texi: Document new way to build DLLs on Windows using
28332 GCC's -shared option.
28334 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
28335 Options_2 parameter (options put after object files).
28337 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
28339 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
28340 ignore overflows on low and high bounds of an index to also account for
28341 differences in signedness between sizetype and gnu_index_subtype.
28342 These are as legitimate as the ones caused by a lower TYPE_PRECISION
28345 2004-08-09 Robert Dewar <dewar@gnat.com>
28347 * s-solita.ads, s-solita.adb: Minor reformatting
28349 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
28350 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
28351 obsolescent section
28352 Add note that No_Implicit_Conditionals does not suppress
28353 run time constraint checks.
28355 * vms_conv.ads: Minor reformatting
28357 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
28358 and necessary for following change).
28359 (Mark): Return new format Mark_Id containing sec stack address
28360 (Release): Use sec stack address from Mark_Id avoiding Self call
28362 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
28363 pointer (cleanup and necessary for following change).
28364 Define Mark_Id as record containing address of secondary stack, that way
28365 Release does not need to find the stack again, decreasing the number of
28366 calls to Self and improving efficiency.
28368 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
28370 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
28371 case variable into the individual case branches when possible.
28373 * sem_ch11.adb: Minor reformatting
28375 * prj.ads: Correct spelling of suffixs
28377 * prj-nmsc.adb: Minor reformatting
28378 Correct spelling suffixs throughout (also in identifiers)
28380 * freeze.adb: Minor spelling correction
28382 * exp_ch2.adb: Cleanups to handling of Current_Value
28383 (no functional effect).
28385 * bld.adb: Correct spelling of suffixs
28387 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
28389 2004-08-09 Ed Schonberg <schonberg@gnat.com>
28392 * sem_ch7.adb (Install_Private_Declarations): In the body of the
28393 package or of a child, private entities are both immediately_visible
28396 2004-08-09 Ed Schonberg <schonberg@gnat.com>
28398 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
28399 there are no range checks on the value of the literal.
28401 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
28402 wrapped is the triggering alternative of an asynchronous select, action
28403 statements mustbe inserted before the select itself.
28405 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
28406 case where the prefix is a protected function call.
28407 (Resolve_Attribute, case 'Access): The attribute reference on a
28408 subprogram is legal in a generic body if the subprogram is declared
28411 2004-08-09 Vincent Celier <celier@gnat.com>
28413 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
28414 languages, otherwise building the library may fail with unresolved
28416 (Compile_Sources): Do not build libraries if -c switch is used
28418 * gnatlink.adb (Process_Args): New switches -M and -Mmap
28419 (Write_Usage): If map file creation is supported, output new switches
28421 (Gnatlink): When -M is specified, add the necessary switch(es) to the
28422 gcc call, when supported.
28424 * Makefile.in: Added indepsw.o to the object list for gnatlink
28425 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
28427 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
28428 indepsw.adb, indepsw.ads: New files.
28430 2004-08-09 Bernard Banner <banner@gnat.com>
28432 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
28434 * Makefile.in: add section for vxworks x86
28436 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
28438 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
28439 per-object constrained components where the discriminant is of an
28441 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
28442 the parent initialization procedure for derived Unchecked_Unions.
28443 Instead, derived Unchecked_Unions build their own initialization
28445 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
28446 Check the body of the subprogram for details.
28447 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
28448 functions for derived Unchecked_Union types by introducing a condition.
28449 Allow the creation of TSS equality functions for Unchecked_Unions.
28450 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
28451 Add formal parameter Discr to function signature. Discr is used to
28452 control the generated case statement for Unchecked_Union types.
28453 (Make_Eq_If): Rename formal parameter Node to E in function signature.
28455 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
28457 Check the body of the subprogram for details.
28458 (Expand_Composite_Equality): Augment composite type equality to include
28459 correct handling of Unchecked_Union components.
28460 (Expand_N_In): Add condition to detect illegal membership tests when the
28461 subtype mark is a constrained Unchecked_Union and the expression lacks
28462 inferable discriminants, and build a Raise_Program_Error node.
28463 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
28464 to detect types that contain components of unconstrained Unchecked_Union
28465 subtype. Add condition to detect equality between types that have an
28466 unconstrained Unchecked_Union component, and build a Raise_Program_Error
28467 node. Add condition to detect equality between Unchecked_Union types
28468 that lack inferable discriminants, and build a Raise_Program_Error node.
28469 Otherwise build a TSS equality function call.
28470 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
28471 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
28472 with the operand lacking inferable discriminants, and build a Raise_
28473 Program_Error node.
28474 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
28475 composite equality.
28476 (Has_Inferable_Discriminants): Implement new predicate for objects and
28477 expressions of Unchecked_Union type. Check the body of subprogram for
28479 (Has_Unconstrained_UU_Components): Add function
28480 Component_Is_Unconstrained_UU. It is used to detect whether a single
28481 component is of an unconstrained Unchecked_Union subtype. Add function
28482 Variant_Is_Unconstrained_UU. It is used to detect whether a single
28483 component inside a variant is of an unconstrained Unchecked_Union type.
28485 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
28486 inferred discriminant values. Add condition to generate a case
28487 statement with an inferred discriminant as the switch.
28488 (Make_Component_List_Assign): Introduce a Boolean flag that determines
28489 the behaviour of the subprogram in the presence of an Unchecked_Union.
28490 Add condition to trigger the usage of the inferred discriminant value
28491 as the generated case statement switch.
28492 (Make_Field_Assign): Introduce a Boolean flag that determines the
28493 behaviour of the subprogram in the presence of an Unchecked_Union. Add
28494 condition to trigger the usage of the inferred discriminant value as
28495 the right-hand side of the generated assignment.
28497 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
28498 parameter generation when dealing with Unchecked_Unions.
28500 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
28501 checks for Unchecked_Unions.
28503 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
28505 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
28506 Raise_Program_Error nodes for the execution of Read and Write
28507 attributes of Unchecked_Union types and the execution of Input and
28508 Output attributes of Unchecked_Union types that lack default
28509 discriminant values.
28511 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
28512 Unchecked_Union. Add procedure Check_Component. It is used to inspect
28513 per-object constrained components of Unchecked_Unions for being
28514 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
28515 check individual components withing a variant.
28517 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
28518 comparison of Unchecked_Unions.
28519 (Resolve_Equality_OP): Remove guard that prevents equality between
28522 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
28523 of component subtypes for Unchecked_Union components.
28524 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
28525 since it is the actual subtype.
28527 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
28528 pass of Unchecked_Union subtypes as generic actuals to formal types
28529 that lack known_discriminant_parts or that are derived Unchecked_Union
28530 types, and do nothing. In any other case, produce an error message.
28532 * sem_ch3.adb (Analyze_Component_Declaration): Add function
28533 Contains_POC. It determines whether a constraint uses the discriminant
28534 of an enclosing record type.
28535 Add condition to detect per-object constrained component and set the
28537 (Derived_Type_Declaration): Remove guard that prevents derivation from
28538 Unchecked_Union types.
28539 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
28542 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
28543 references to Unchecked_Union discriminants.
28545 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
28546 formal generation when dealing with Unchecked_Unions.
28547 (Set_Actual_Subtypes): Add condition to prevent generation of actual
28548 subtypes for Unchecked_Unions.
28550 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
28551 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
28552 completions of discriminated partial views by Unchecked_Unions and
28553 produce an error message.
28555 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28557 * trans.c (struct stmt_group): New field, GLOBAL.
28558 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
28559 (struct elab_info): New struct.
28560 (elab_info_list, gnu_elab_proc_stack): New variables.
28561 (Compilation_Unit_to_gnu): New procedure.
28562 (gigi): Call it and also handle elaboration procs we've saved.
28563 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
28564 global field from parent.
28565 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
28566 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
28567 (start_stmt_group): Initialize global field from parent.
28568 (add_decl_expr): Set to global for current statement group.
28569 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
28572 * utils.c (global_bindings_p): True when no current_function_decl; no
28573 longer check current_binding_level.
28575 2004-08-09 Ben Brosgol <brosgol@gnat.com>
28577 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
28580 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
28582 2004-08-06 Andreas Schwab <schwab@suse.de>
28584 * utils.c (gnat_define_builtin): Remove second parameter of
28586 (begin_subprog_body): Likewise.
28588 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
28590 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
28591 optimization, not supported by the tree-ssa back-end.
28593 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
28595 * s-mastop-irix.adb: Update comments.
28597 * a-except.adb (Exception_Information): Raise Constraint_Error if
28598 exception Id is Null_Id.
28599 This is required behavior, which is more reliably and clearly checked
28600 at the top level interface level.
28602 2004-07-26 Javier Miranda <miranda@gnat.com>
28604 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
28605 call if a component has no default_expression and the box is used.
28607 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
28608 default_expression and you use box, it behaves as if you had declared a
28609 stand-alone object.
28610 (Resolve_Record_Aggregate): If a component has no default_expression and
28611 you use box, it behaves as if you had declared a stand-alone object.
28613 * sem_ch10.adb (Install_Siblings): Do not make visible the private
28614 entities of private-with siblings.
28616 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28618 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
28619 for a component of an itype, set the parent pointer for analysis,
28620 there is no list in which to insert it.
28622 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
28623 bona-fide renamings, not for inherited operations.
28625 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
28626 actual for a formal that is an access parameter, create local
28627 finalization list even if the expression is not an aggregate.
28629 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28632 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
28633 Diagnose properly illegal subprogram renamings that are library units.
28635 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28638 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
28639 conversion rewritten as an unchecked conversion, check that original
28640 expression is a variable.
28642 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
28643 unchecked_conversion, create new node rather than rewriting in place,
28644 to preserve original construct.
28646 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28648 * gigi.h (gnat_expand_body): Deleted.
28650 * Make-lang.in: (trans.o): Depends on function.h.
28652 * misc.c: (gnat_expand_body): Moved to here.
28654 * trans.c (gnat_expand_body_1): Deleted.
28655 (gnat_expand_body): Moved from here.
28656 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
28657 (add_stmt): Check for marked visited with global_bindings_p.
28658 (gnat_gimplify_expr, case COMPONENT_REF): New case.
28659 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
28661 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
28662 VIEW_CONVERT_EXPR if not operation type.
28664 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
28667 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
28668 changes: reformatting of negation operators, removing unneeded
28669 inequality comparison with zero, converting equality comparisons with
28670 zero to negations, changing int/0/1 to bool/false/true, replace calls
28671 to gigi_abort with abort, and various other similar changes.
28673 2004-07-26 Vincent Celier <celier@gnat.com>
28675 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
28678 * make.adb (Gnatmake): Fail when a library is not present and there is
28679 no object directory.
28681 * mlib-prj.adb (Check_Library): No need to check if the library needs
28682 to be rebuilt if there is no object directory, hence no object files
28683 to build the library.
28685 * opt.ads (Setup_Projects): New Boolean flag.
28687 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
28689 Create directory when Kind /= "" and in "gnat setup". Report error if
28690 directory cannot be created.
28691 (Ada_Check): Create library interface copy dir if it does not exist
28692 and we are in "gnat setup".
28693 (Find_Sources): No error if in "gnat setup" and no Ada sources were
28695 (Language_Independent_Check): Create object directory, exec directory
28696 and/or library directory if they do not exist and we are in
28699 * vms_conv.ads: (Command_Type): New command Setup.
28701 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
28703 * vms_data.ads: Add qualifiers/switches for new built-in command
28706 2004-07-25 Richard Henderson <rth@redhat.com>
28708 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
28709 DECL_IGNORED_P on RESULT_DECL.
28711 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
28713 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
28714 allocation and potentially overflowing update with
28715 Tailored_Exception_Information. Use the sec-stack free procedural
28716 interface to output Exception_Information instead.
28718 * a-except.adb (To_Stderr): New subprogram for character, and string
28719 version moved from a-exextr to be visible from other separate units.
28720 (Tailored_Exception_Information): Remove the procedural version,
28721 previously used by the default Last_Chance_Handler and not any more.
28722 Adjust various comments.
28724 * a-exexda.adb: Generalize the exception information procedural
28725 interface, to minimize the use of secondary stack and the need for
28726 local buffers when the info is to be output to stderr:
28727 (Address_Image): Removed.
28728 (Append_Info_Character): New subprogram, checking for overflows and
28729 outputing to stderr if buffer to fill is of length 0.
28730 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
28731 (Append_Info_Address, Append_Info_Exception_Name,
28732 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
28733 Append_Info_Basic_Exception_Traceback,
28734 Append_Info_Exception_Information): New subprograms.
28735 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
28736 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
28737 Exception_Info_Maxlength, Exception_Name_Length,
28738 Exception_Message_Length): New subprograms.
28739 (Exception_Information): Use Append_Info_Exception_Information.
28740 (Tailored_Exception_Information): Use
28741 Append_Info_Basic_Exception_Information.
28742 Export services for the default Last_Chance_Handler.
28744 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
28745 other separate units.
28747 2004-07-20 Vincent Celier <celier@gnat.com>
28749 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
28751 2004-07-20 Ed Schonberg <schonberg@gnat.com>
28753 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
28754 emit itype references for the designated types of component types that
28755 are declared outside of the full record declaration, and that may
28756 denote a partial view of that record type.
28758 2004-07-20 Ed Schonberg <schonberg@gnat.com>
28761 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
28762 which is the designated type in an access component declaration, to the
28763 list of incomplete dependents of the parent type, to avoid elaboration
28764 issues with out-of-scope subtypes.
28765 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
28766 full view of the parent.
28768 2004-07-20 Ed Schonberg <schonberg@gnat.com>
28771 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
28772 entities that are hidden, such as references to generic actuals
28773 outside an instance.
28775 2004-07-20 Javier Miranda <miranda@gnat.com>
28777 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
28778 support to the new notation.
28779 (Analyze_Selected_Component): Add call to Try_Object_Operation.
28781 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
28783 * s-taprob.adb: Adding the elaboration code required for initializing
28784 the tasking soft links that are common to the full and the restricted
28787 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
28788 restricted run time has been moved to the package
28789 System.Soft_Links.Tasking.
28791 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
28792 restricted run time has been moved to the package
28793 System.Soft_Links.Tasking.
28795 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
28797 * s-solita.ads, s-solita.adb: New files.
28799 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28801 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
28802 Case_Statement_to_gnu): Split off from gnat_to_gnu.
28803 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
28804 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
28805 Exception_Handler_to_gnu_zcx): Likewise.
28807 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
28809 * gigi.h (builtin_function): Declare.
28811 2004-07-15 Robert Dewar <dewar@gnat.com>
28813 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
28816 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
28817 access values as an example of a warning.
28819 * gnat_rm.texi: Document new attribute Has_Access_Values
28821 * gnat-style.texi: Document that box comments belong on nested
28824 * sem_util.ads (Has_Access_Values): Improved documentation
28826 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
28828 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
28829 (Process_Interface_Name): Call to this new procedure
28830 (Set_Extended_Import_Export_External_Name): Call to this new procedure
28832 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
28834 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
28836 * einfo.ads: Minor comment typo fixed
28838 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
28840 * snames.adb: Add _atcb.
28842 * snames.ads: Add Name_uATCB.
28844 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
28845 (in the expanded code) when using the restricted run time.
28847 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
28848 a in parameter in order to allow ATCBs to be preallocated (in the
28851 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
28852 order to allow ATCBs to be preallocated. In case of error, the ATCB is
28853 deallocated in System.Tasking.Stages.
28855 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
28856 order to allow ATCBs to be preallocated.
28858 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
28859 here. It was previously done in Initialize_ATCB.
28861 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
28863 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
28864 Restricted run time.
28866 * exp_ch3.adb: When using the Restricted run time, pass the
28867 preallocated Ada_Task_Control_Block when creating a task.
28869 2004-07-15 Ed Schonberg <schonberg@gnat.com>
28871 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
28872 function call that is itself an actual in an enclosing call, diagnose
28873 problem here rather than assuming that resolution will catch it.
28875 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
28876 the local copy of a generic unit for a formal package, and the generic
28877 is a child unit, install private part of ancestors before compiling
28878 private part of spec.
28880 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
28881 use scope entities rather than tree structures, to handle properly
28882 parent units that are instances rewritten as bodies for inlining
28885 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
28886 Remove_Parents): Handle properly a parent unit that is an
28887 instantiation, when the unit has been rewritten as a body for inlining
28890 * par.adb (Goto_List): Global variable to collect goto statements in a
28891 given unit, for use in detecting natural loops.
28893 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
28894 use in detecting natural loops.
28896 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
28897 backwards goto's, and rewrite as a infinite loop, to improve locality
28900 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
28901 subcomponent that includes an indexed reference, to prevent the
28902 generation of copies that would miscompile the desired assignment
28904 (Build_Task_Image_Decls): Add a numeric suffix to
28905 generated name for string variable, to avoid spurious conflicts with
28906 the name of the type of a single protected object.
28908 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
28909 loop with an explicit exit statement, to avoid generating an
28910 out-of-range value with 'Succ leading to spurious constraint_errors
28911 when compiling with -gnatVo.
28913 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
28915 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
28916 might not be analyzed yet, even if its Etype is already set (case of an
28917 unchecked conversion built using Unchecked_Convert_To, for example).
28918 If the prefix has already been analyzed, this will be a nop anyway.
28920 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
28921 controller type, or an assignment of a record type with controlled
28922 components, copy only user data, and leave the finalization chain
28923 pointers untouched.
28925 2004-07-15 Vincent Celier <celier@gnat.com>
28927 * make.adb (Collect_Arguments): Improve error message when attempting
28928 to compile a source not part of any project, when -x is not used.
28930 * prj.ads: (Defined_Variable_Kind): New subtype
28932 * prj-attr.adb (Register_New_Package): Two new procedures to register
28933 a package with or without its attributes.
28934 (Register_New_Attribute): Mew procedure to register a new attribute in a
28936 New attribute oriented subprograms: Attribute_Node_Id_Of,
28937 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
28938 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
28940 New package oriented subprograms: Package_Node_Id_Of,
28941 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
28943 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
28945 (Package_Node_Id): Now a private, self initialized type
28946 (Register_New_Package): New procedure to register a package with its
28948 New attribute oriented subprograms: Attribute_Node_Id_Of,
28949 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
28950 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
28952 New package oriented subprograms: Package_Node_Id_Of,
28953 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
28955 * prj-dect.adb (Parse_Attribute_Declaration,
28956 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
28958 * prj-makr.adb (Make): Parse existing project file before creating
28959 other files. Fail if there was an error during parsing.
28961 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
28962 new spec of Prj.Attr.
28964 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
28965 to new spec of Prj.Attr.
28967 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28969 * utils2.c: Fix typo in comment.
28971 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28973 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
28974 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
28976 2004-07-14 Andreas Schwab <schwab@suse.de>
28978 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
28980 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28982 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
28984 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
28987 * misc.c (gnat_types_compatible_p): New function.
28988 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
28989 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
28991 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
28992 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
28993 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
28994 (mark_visited): Don't mark dummy type.
28995 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
28996 parameter, we must remove any LJM building from GNU_NAME.
28997 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
28998 (pos_to_constructor): Use int_const_binop.
28999 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
29002 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
29003 (gnat_pushlevel): Set TREE_USE on BLOCK node.
29004 (gnat_install_builtins): Add __builtin_memset.
29006 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
29008 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
29009 for a renaming, stabilize the initialization expression if we are at a
29010 local level. At the local level, uses of the renaming may be performed
29011 by a direct dereference of the initializing expression, and we don't
29012 want possible variables there to be evaluated for every use.
29014 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
29015 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
29016 them on the way. Account for the fact that we may introduce side
29017 effects in the process.
29019 2004-07-13 Richard Henderson <rth@redhat.com>
29021 * misc.c (default_pass_by_ref): Use pass_by_reference.
29023 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
29025 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
29026 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
29028 2004-07-08 Richard Henderson <rth@redhat.com>
29030 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
29033 2004-07-06 Vincent Celier <celier@gnat.com>
29035 * vms_conv.ads: Minor reformatting.
29036 Alphabetical order for enumerated values of type Command_Type, to have
29037 the command in alphabetical order for the usage.
29039 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
29040 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
29042 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
29044 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
29045 (Add_Archive_Path): Only add the global archive if there is one.
29046 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
29047 or not any object file to put in the global archive, and don't build
29048 a global archive if there is none.
29049 (X_Switches): New table
29050 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
29051 in the X_Switches table, if any.
29052 (Initialize): Make sure the X_Switches table is empty
29053 (Scan_Arg): Record -X switches in table X_Switches
29055 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
29057 * make.adb: Minor comment fix
29059 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
29060 invoked with directory information, add the directory in front of the
29063 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
29064 invoked with directory information, add the directory in front of the
29067 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
29068 when Keep_Temporary_Files is False.
29069 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
29070 directory information, add the directory in front of the path.
29071 When not on VMS, handle new switch -dn before the command to set
29072 Keep_Temporary_Files to True.
29073 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
29076 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
29077 invoked with directory information, add the directory in front of the
29080 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
29082 * snames.ads, snames.adb (Name_Stub): New name for the distributed
29085 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
29086 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
29088 * g-socket.adb (To_Timeval): Fix incorrect conversion of
29089 Selector_Duration to Timeval for the case of 0.0.
29091 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
29092 documentation from Evolve_And_Then.
29094 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
29096 * s-taprop-tru64.adb, s-taprop-os2.adb,
29097 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
29099 2004-07-06 Robert Dewar <dewar@gnat.com>
29101 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
29102 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
29103 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
29104 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
29105 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
29106 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
29107 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
29108 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
29109 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
29110 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
29111 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
29112 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
29113 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
29114 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
29115 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
29116 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
29117 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
29118 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
29119 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
29120 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
29121 vms_data.ads: Minor reformatting,
29122 Fix bad box comment format.
29124 * gnat_rm.texi: Fix minor grammatical error
29126 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
29128 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
29129 more cases of discriminated records to be recognized as not needing a
29131 (Has_Access_Values): New function.
29133 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
29135 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
29136 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
29137 with LRM terminology).
29138 Change terminology in comments primitive type => elementary type.
29140 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29143 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
29144 parameters do not impose any requirements on the presence of a body.
29146 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29149 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
29150 compilation unit and is in an open scope at the point of instantiation,
29151 assume that a body may be present later.
29153 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29155 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
29156 Improve error message when specified size is not supported.
29158 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
29159 is never a primitive operation.
29161 2004-07-05 Andreas Schwab <schwab@suse.de>
29163 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
29164 RECORD_OR_UNION_CHECK.
29165 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
29167 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
29169 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
29170 dependency on xgnatugn, instead build it via a submake.
29171 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
29173 2004-07-04 Richard Henderson <rth@redhat.com>
29175 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
29177 2004-07-01 Richard Henderson <rth@redhat.com>
29179 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
29180 * utils.c (max_size): Likewise.
29182 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29184 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
29185 and rest_of_type_compilation; add arg to create_*_decl.
29186 (annotate_decl_with_node): Deleted.
29187 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
29188 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
29189 (get_current_block_context, gnat_pushdecl): New declarations.
29190 (gnat_init_stmt_group): Likewise.
29191 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
29192 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
29193 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
29194 (gnat_init): Call gnat_init_stmt_group.
29195 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
29196 (gnu_pending_elaboration_list): Deleted.
29197 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
29198 (gigi): Rearrange initialization calls and move some to last above.
29199 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
29200 Delete calls to add_decl_expr; add arg to create_*_decl.
29201 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
29202 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
29203 begin_subprog_body and call it.
29204 Don't push and pop ggc context.
29205 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
29206 (add_stmt): Remove handling of DECL_EXPR from here.
29207 If not in function, mark visited.
29208 (add_decl_expr): Put global at top level.
29209 Check for cases of DECL_INITIAL we have to handle here.
29210 (process_type): Add extra arg to create_type_decl.
29211 (build_unit_elab): Rework to just gimplify.
29212 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
29213 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
29214 (get_pending_elaborations, pending_elaborations_p): Likewise.
29215 (push_pending_elaborations, pop_pending_elaborations): Likewise.
29216 (get_elaboration_location, insert_elaboration_list): Likewise.
29217 (gnat_binding_level): Renamed from ada_binding_level.
29218 (init_gnat_to_gnu): Don't clear pending_elaborations.
29219 (global_bindings_p): Treat as global if no current_binding_level.
29220 (set_current_block_context): New function.
29221 (gnat_pushdecl): Renamed from pushdecl; major rework.
29222 All callers changed.
29223 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
29224 (finish_record_type): Call call pushdecl for stub decl.
29225 (function_nesting_depth): Deleted.
29226 (begin_subprog_body): Delete obsolete code.
29227 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
29229 2004-06-28 Robert Dewar <dewar@gnat.com>
29231 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29232 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
29233 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
29234 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29235 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
29237 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
29238 deal with problem of inefficient slices on machines with strict
29239 alignment, when the slice is a component of a composite.
29241 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
29242 machines, we need the check there as well.
29244 2004-06-28 Ed Schonberg <schonberg@gnat.com>
29246 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
29247 determine safe copying direction for overlapping slice assignments
29248 when component is controlled.
29250 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
29251 formal derived type in the actual for a formal package are visible in
29252 the enclosing instance.
29254 2004-06-28 Ed Schonberg <schonberg@gnat.com>
29257 * sem_util.adb (Trace_Components): Diagnose properly an illegal
29258 circularity involving a private type whose completion includes a
29259 self-referential component.
29260 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
29261 renaming or an instantiation from an implicit derived operation.
29263 2004-06-28 Pascal Obry <obry@gnat.com>
29265 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
29267 (Library_File_Name_For): Idem.
29269 2004-06-28 Matthew Gingell <gingell@gnat.com>
29271 * g-traceb.ads: Add explanatory note on the format of addresses
29272 expected by addr2line.
29274 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
29276 * Makefile.in: Force debugging information on s-tasdeb.adb,
29277 a-except.adb and s-assert.adb needed by the debugger.
29279 2004-06-28 Vincent Celier <celier@gnat.com>
29281 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
29285 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
29287 * prj.adb: Minor reformatting
29288 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
29290 * prj.ads: Comment updates
29292 (Project_Data): Change Flag1 to Need_To_Build_Lib.
29293 Remove Flag2: not used.
29295 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
29298 * gnat_ugn.texi: Put a "null;" declaration in one project file example
29300 * gnat_rm.texi: Document Empty declarations "null;".
29302 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
29303 front of the linker options.
29304 (Link_Foreign): Put the global archives and the libraries in front of
29305 the linker options.
29307 2004-06-28 Javier Miranda <miranda@gnat.com>
29309 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
29310 (RTU_Loaded): Code cleanup
29311 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
29312 withed predefined units.
29314 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
29315 explicitly withed predefined units.
29316 Fix typo in comment
29318 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
29319 explicitly withed predefined units.
29321 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29323 * ada-tree.def (DECL_STMT): Deleted.
29324 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
29325 (DECL_STMT_VAR): Deleted.
29326 * decl.c: add_decl_stmt now add_decl_expr.
29327 * gigi.h: Likewise.
29328 * trans.c: Likewise.
29329 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29330 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
29331 (add_stmt): Only handle padded type here.
29332 (add_stmt_with_node): Allow gnat_node to not be present.
29333 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
29334 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
29335 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
29336 make a SAVE_EXPR for the entire fat pointer.
29337 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
29338 (create_index_type): Make a DECL_EXPR.
29339 (end_subprog_body): Don't call allocate_struct_function here but
29342 2004-06-25 Pascal Obry <obry@gnat.com>
29344 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
29345 Relocatable from Build_Dynamic_Library call.
29347 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
29348 Relocatable are now synonym.
29350 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
29352 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
29353 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
29356 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
29357 Lib_Address and Relocatable.
29358 (Default_DLL_Address): Removed.
29360 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29361 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29362 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
29363 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
29364 (Default_DLL_Address): Removed.
29366 * mlib-tgt-mingw.adb: Ditto.
29367 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
29369 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
29370 the initial thread stack size.
29372 * a-strmap.ads: Move package L to private part as it is not used in
29373 the spec. Found while reading code.
29375 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
29377 * tracebak.c: Introduce support for a GCC infrastructure based
29378 implementation of __gnat_backtrace.
29380 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
29381 any more. Use accessors instead. This eases maintenance and relaxes
29382 some alignment constraints.
29383 (_GNAT_Exception structure): Remove the Ada specific fields
29384 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
29386 (is_handled_by, __gnat_eh_personality): Replace component references to
29387 exception structure by use of the new accessors.
29389 * init.c (__gnat_initialize): Adjust comments to match the just
29390 reverted meaning of the -static link-time option.
29392 * adaint.c (convert_addresses): Arrange not to define a stub for
29393 mips-irix any more, as we now want to rely on a real version from a
29394 recent libaddr2line.
29396 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
29397 the personality routine can use them and not have to rely on a C
29398 counterpart of the record anymore. This simplifies maintenance and
29399 relaxes the constraint of having Standard'Maximum_Alignment match
29401 Update comments, and add a section on the common header alignment issue.
29403 2004-06-25 Geert Bosch <bosch@gnat.com>
29405 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
29406 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
29408 2004-06-25 Robert Dewar <dewar@gnat.com>
29410 * gnat_rm.texi: Fix section on component clauses to indicate that the
29411 restriction on byte boundary placement still applies for bit packed
29413 Add comment on stack usage from Initialize_Scalars
29415 * gnat_ugn.texi: Add documentation for -gnatyLnnn
29417 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
29418 limiting nesting level.
29420 * usage.adb: Add line for -gnatyLnnn switch
29422 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
29423 sem_ch13.adb, exp_aggr.adb: Minor reformatting
29425 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
29426 type as well as on the subtype. This corrects a problem in freeze in
29427 setting alignments of atomic types.
29429 * sem_eval.ads: Minor comment typo fixed
29431 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
29432 level. Minor reformatting.
29434 * fname.adb (Is_Predefined_File_Name): Require a letter after the
29435 minus sign. This means that file names like a--b.adb will not be
29436 considered predefined.
29438 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
29439 record Test new flag and give diagnostic for bad component clause.
29440 (Freeze_Entity): Set alignment of array from component alignment in
29441 cases where this is safe to do.
29443 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
29446 * cstand.adb: (Create_Standard): Set alignment of String to 1
29448 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
29450 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
29451 code in the common constrained array cases.
29453 * a-storio.adb: Change implementation to avoid possible alignment
29454 problems on machines requiring strict alignment (data should be moved
29455 as type Buffer, not type Elmt).
29457 * checks.adb (Apply_Array_Size_Check): Improve these checks by
29458 killing the overflow checks which we really do not need (64-bits is
29461 2004-06-25 Vincent Celier <celier@gnat.com>
29463 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
29464 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
29465 inconditionally for the main project.
29466 (Recursive_Add_Archives.Add_Archive_Path): New procedure
29467 (Link_Executables.Check_Time_Stamps): New procedure
29468 (Link_Executables.Link_Foreign): New procedure
29469 Changes made to reduce nesting level of this package
29470 (Check): New procedure
29471 (Add_Switches): When not in quiet output, check that a switch is not
29472 the concatenation of several valid switches. If it is, issue a warning.
29473 (Build_Global_Archive): If the global archive is rebuilt, linking need
29475 (Compile_Sources): Rebuilding a library archive does not imply
29476 rebuilding the global archive.
29477 (Build_Global_Archive): New procedure
29478 (Build_Library): New name for Build_Archive, now only for library
29480 (Check_Archive_Builder): New procedure
29481 (Create_Global_Archive_Dependency_File): New procedure
29482 (Gprmake): Call Build_Global_Archive before linking
29483 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
29485 (Scan_Arg): Display the Copyright notice when -v is used
29487 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
29490 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
29492 Add new GNAT LIST qualifier /FILES=
29493 Added qualifier /DIRECTORY= to GNAT METRIC
29494 Added qualifier /FILES= to GNAT METRIC
29495 Added qualifier /FILES to GNAT PRETTY
29497 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
29498 to take into account both versions of the switch.
29500 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
29501 always be the last switch to the gcc driver. Disable switch storing so
29502 that switches automatically added by the gcc driver are not put in the
29505 * prj.adb (Project_Empty): Take into account changes in components of
29508 * prj.ads (Languages_Processed): New enumaration value All_Languages.
29510 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
29511 used. Split Boolean component Ada_Sources_Present in two Boolean
29512 components Ada_Sources_Present and Other_Sources_Present.
29515 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
29516 instead of Sources_Present.
29517 (Set_Ada_Paths.Add.Recursive_Add): Ditto
29519 * prj-nmsc.adb: Minor reformatting
29520 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
29521 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
29522 Check_Ada_Naming_Scheme.
29523 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
29526 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
29528 Make sure that all cycles where there is at least one "limited with"
29530 (Parse_Single_Project): New Boolean parameter In_Limited
29532 * prj-proc.adb (Recursive_Check): When Process_Languages is
29533 All_Languages, call first Prj.Nmsc.Ada_Check, then
29534 Prj.Nmsc.Other_Languages_Check.
29536 * prj-proc.adb (Process): Use Ada_Sources_Present or
29537 Other_Sources_Present (instead of Sources_Present) depending on
29540 * lang-specs.h: Keep -g and -m switches in the same order, and as the
29543 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
29544 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
29546 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
29549 * lib.ads (Disable_Switch_Storing): New procedure.
29551 * make.adb: Modifications to reduce nesting level of this package.
29552 (Check_Standard_Library): New procedure
29553 (Gnatmake.Check_Mains): New procedure
29554 (Gnatmake.Create_Binder_Mapping_File): New procedure
29555 (Compile_Sources.Compile): Add switch -gnatez as the last option
29556 (Display): Never display -gnatez
29558 * Makefile.generic:
29559 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
29561 * gnatcmd.adb (Check_Project): New function
29562 (Process_Link): New procedure to reduce nesting depth
29563 (Check_Files): New procedure to reduce the nesting depth.
29564 For GNAT METRIC, include the inherited sources in extending projects.
29565 (GNATCmd): When GNAT LS is invoked with a project file and no files,
29566 add the list of files from the sources of the project file. If this list
29567 is too long, put it in a temp text files and use switch -files=
29568 (Delete_Temp_Config_Files): Delete the temp text file that contains
29569 a list of source for gnatpp or gnatmetric, if one has been created.
29570 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
29571 in the project file is too large, create a temporary text file that
29572 list them and pass it to the tool with "-files=<temp text file>".
29573 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
29575 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
29576 generated file is in not in Ada.
29578 * gnatls.adb: Remove all parameters And_Save that are no longer used.
29579 (Scan_Ls_Arg): Add processing for -files=
29580 (Usage): Add line for -files=
29582 * g-os_lib.adb (On_Windows): New global constant Boolean flag
29583 (Normalize_Pathname): When on Windows and the path starts with a
29584 directory separator, make sure that the resulting path will start with
29587 * clean.adb (Clean_Archive): New procedure
29588 (Clean_Project): When there is non-Ada code, delete the global archive,
29589 the archive dependency files, the object files and their dependency
29590 files, if they exist.
29591 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
29593 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
29595 * sinfo.ads: Fix typo in comment.
29597 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
29598 the TSS for remote access-to-subprogram types, since these TSS are
29599 always present once the type has been analyzed.
29600 (RAS_E_Dereference): Same.
29602 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
29603 reference raises Bad_Attribute, mark the reference as analyzed so the
29604 node (and any children resulting from rewrites that could have occurred
29605 during the analysis that ultimately failed) is not analyzed again.
29607 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
29609 * exp_dist.adb: Minor comment fix.
29611 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
29612 type is an anonymous access type, no unchecked deallocation of the
29613 allocated object can occur. If the object is controlled, attach it with
29614 a count of 1. This allows attachment to the Global_Final_List, if
29615 no other relevant list is available.
29616 (Get_Allocator_Final_List): For an anonymous access type that is
29617 the type of a discriminant or record component, the corresponding
29618 finalisation list is the one of the scope of the type.
29620 2004-06-25 Ed Schonberg <schonberg@gnat.com>
29622 * sem_ch3.adb (Replace_Type): When computing the signature of an
29623 inherited subprogram, use the first subtype if the derived type
29624 declaration has no constraint.
29626 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
29627 before applying previous optimization. Minor code cleanup.
29629 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
29630 placed at the beginning of an unpacked record without explicit
29631 alignment, a slice of it will be aligned and does not need a copy when
29634 2004-06-25 Ed Schonberg <schonberg@gnat.com>
29638 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
29639 reference is written with expressions mimicking parameters.
29641 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
29644 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
29645 STEP 2a. The constraints of a full type declaration of a derived record
29646 type are checked for conformance with those declared in the
29647 corresponding private extension declaration. The message
29648 "not conformant with previous declaration" is emitted if an error is
29651 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
29653 * g-traceb.ads: Document the need for -E binder switch in the spec.
29655 * g-trasym.ads: Document the need for -E binder switch in the spec.
29657 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
29659 * sem_prag.adb: Add handling of pragma Detect_Blocking.
29661 * snames.h, snames.ads, snames.adb: Add entry for pragma
29664 * s-rident.ads: Change reference to pragma Detect_Blocking.
29666 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
29669 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
29670 to indicate whether pragma Detect_Blocking is active.
29672 * par-prag.adb: Add entry for pragma Detect_Blocking.
29674 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
29675 of not handling WITH.
29676 Note that this replaces the previous update which was incorrect.
29678 2004-06-25 Javier Miranda <miranda@gnat.com>
29680 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
29681 use-clauses to have a clean environment.
29683 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
29684 the installation of the use-clauses to stablish a clean environment in
29685 case of compilation of a separate unit; otherwise the call to
29686 use_one_package is protected by the barrier Applicable_Use.
29688 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
29689 the installation of the use-clauses to stablish a clean environment in
29690 case of compilation of a separate unit.
29691 (End_Use_Clauses): Minor comment cleanup.
29693 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
29695 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
29697 2004-06-23 Richard Henderson <rth@redhat.com>
29699 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
29701 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29703 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
29704 now bool instead of int.
29705 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
29706 * trans.c (gnu_switch_label_stack): New function.
29707 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
29708 elaboration of renamed entity returns.
29709 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
29710 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
29711 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
29712 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
29713 DECL_SIZE_UNIT and simplify variable-sized case.
29714 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29715 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
29716 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
29717 (build_unit_elab): Disable for now.
29718 * utils.c (mark_visited): New function.
29719 (pushdecl): Walk tree to call it for global decl.
29720 (update_pointer_to): Update all variants of pointer and ref types.
29721 Add arg to COMPONENT_REF.
29722 (convert): Likewise.
29723 Move check for converting between variants lower down.
29724 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
29725 (build_allocator): Don't force type of MODIFY_EXPR.
29726 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
29727 put_var_into_stack.
29729 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29731 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
29732 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
29733 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
29735 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
29736 all callers changed.
29737 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
29738 the way that EXIT_STMT finds the loop label.
29739 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
29740 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
29741 (add_stmt): Use annotate_with_locus insted of setting directly.
29742 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
29743 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
29744 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
29745 (build_vms_descriptor): Add extra args to ARRAY_REF.
29746 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
29747 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
29749 (build_binary_op): Don't make explicit CONVERT_EXPR.
29750 Add extra rgs to ARRAY_REF.
29752 2004-06-14 Pascal Obry <obry@gnat.com>
29754 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
29755 Windows. Fix minor typo.
29757 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
29758 which is now supported on Windows. With this implementation using the
29759 Library Project feature is no different on Windows than on UNIX.
29761 2004-06-14 Vincent Celier <celier@gnat.com>
29763 * makegpr.adb (Compile_Sources): Nothing to do when there are no
29766 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
29768 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
29769 found, show the project name and the path of the previously parsed
29772 2004-06-14 Ed Schonberg <schonberg@gnat.com>
29774 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
29775 array, avoid copying the actual before the call.
29777 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
29779 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
29780 Instead, allocate memory on worst-case alignment assumptions, and then
29781 return an aligned address within the allocated zone.
29783 2004-06-14 Robert Dewar <dewar@gnat.com>
29785 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
29786 elab entities in predefined units in No_Run_Time_Mode.
29787 (Gen_Adainit_C): Same fix
29788 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
29789 units in No_Run_Time_Mode
29790 (Gen_Elab_Calls_C): Same fix
29792 * symbols-vms-alpha.adb: Minor reformatting
29794 * g-debpoo.ads: Minor reformatting
29796 * lib.adb (In_Same_Extended_Unit): Version working on node id's
29798 * lib.ads (In_Same_Extended_Unit): Version working on node id's
29800 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
29803 * make.adb: Minor reformatting
29805 * par-ch12.adb: Minor reformatting
29807 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
29809 * prj-strt.adb: Minor reformatting
29811 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
29814 * sem_attr.adb: Minor reformatting
29816 * sem_ch7.adb: Minor reformatting
29818 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
29819 for type in the same unit as the object declaration.
29821 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
29822 static string expressions and not just string literals.
29824 (Set_Warning): Reset restriction warning flag for restriction pragma
29825 Implement pragma Profile_Warnings
29826 Implement pragma Profile (Restricted)
29827 Give obolescent messages for old restrictions and pragmas
29829 * snames.h, snames.ads, snames.adb: Add new entry for pragma
29832 * s-rident.ads: Add declarations for restrictions required by profile
29833 Restricted and profile Ravenscar.
29835 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
29837 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
29838 configuration pragmas.
29840 2004-06-11 Vincent Celier <celier@gnat.com>
29842 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
29843 gnatsym, when symbol policy is Restricted.
29845 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
29846 gnatsym, when symbol policy is Restricted.
29848 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
29849 read the symbol file.
29850 (Finalize): Fail in symbol policy Restricted if a symbol in the original
29851 symbol file is not in the object files. Do not create a new symbol file
29852 when symbol policy is Restricted.
29854 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
29857 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
29859 (Usage): Line for new switch -R
29861 * make.adb (Initialize): When the platform is not VMS, add the
29862 directory where gnatmake is invoked in the front of the path, if
29863 gnatmake is invoked with directory information. Change the Scan_Args
29864 while loop to a for loop.
29865 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
29866 if Depth is equal or greater than the proposed depth, there is nothing
29868 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
29871 * prj.ads: Add new symbol policy Restricted.
29873 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
29874 with the new parameters Check_All_Labels and Case_Location.
29876 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
29877 (Library_Symbol_File needs to be defined).
29879 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
29880 and Case_Location If Check_All_Labels is True, check that all values of
29881 the string type are used, and output warning(s) if they are not.
29883 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
29886 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
29888 * gnat_ugn.texi: Update documentation about the library directory in
29891 * makegpr.adb (Display_Command): In verbose mode, also display the
29892 value of the CPATH env var, when the compiler is gcc.
29893 (Initialize): Change the Scan_Args while loop to a for loop
29894 (Compile_Individual_Sources): Change directory to object directory
29895 before compilations.
29897 * symbols.ads: New symbol policy Restricted.
29899 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
29901 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
29902 is now taken care of internally in the Exception_Propagation package
29903 and does not require clients assistance any more.
29905 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
29906 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
29907 functions. Helpers to maintain a predicate required in the handling of
29908 occurrence transfer between tasks.
29909 This is now handled internally and does not require clients assistance
29910 for the setup/propagate separation anymore.
29911 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
29912 allocation strategy, handle the Setup_And_Not_Propagated predicate and
29915 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
29916 raise_after_setup, now that everything is handled internally within the
29917 setup/propagation engine.
29919 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
29921 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
29922 Add additional conditions for the case of an actual being a simple
29923 name or literal. Improve inlining by preventing the generation
29924 of temporaries with a short lifetime (one use).
29926 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
29929 * einfo.ads: Minor comment updates for Has_Completion and
29930 E_Constant list of flags.
29932 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
29933 and constant redeclarations now set the Has_Completion flag of their
29934 defining identifiers.
29936 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
29937 Inspect_Deferred_Constant_Completion.
29938 Used to detect private deferred constants that have not been completed
29939 either by a constant redeclaration or pragma Import. Emits error message
29940 "constant declaration requires initialization expression".
29942 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
29943 completes a deferred constant.
29945 2004-06-11 Geert Bosch <bosch@gnat.com>
29947 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
29949 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
29950 calculating exponent for scaling denormal numbers.
29951 (Leading_Part): Properly raise Constraint_Error for zero or negative
29953 (Remainder): Properly raise Constraint_Error for zero divisor.
29955 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
29957 * sem_util.adb: Minor reformatting.
29959 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
29960 dereference when accessing the entry parameter record.
29961 (Check_Array_Type): Always check for possible implicit dereference.
29962 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
29963 Abort if a pointer is still present (denoting that an implicit
29964 dereference was left in the tree by the front-end).
29966 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
29967 dereference when accessing the entry parameter record.
29968 (Check_Array_Type): Always check for possible implicit dereference.
29969 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
29970 Abort if a pointer is still present (denoting that an implicit
29971 dereference was left in the tree by the front-end).
29973 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
29975 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
29976 message, like the compiler itself does. Easier to parse the output.
29978 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
29980 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
29981 be base names, and not includes directories.
29983 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
29985 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
29986 so that dependencies are properly taken into account by make.
29988 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
29991 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
29992 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
29994 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
29996 * Makefile.in (install-gnatlib): install target-specific run-time files.
29998 * Make-lang.in: Remove obsolete targets.
30000 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30002 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
30003 specification, to catch misuses of program unit names.
30005 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
30006 superfluous conversions in an instance.
30008 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30011 * sem_ch12.adb (Save_References): If operator node has been folded to
30012 enumeration literal, associated_node must be discarded.
30014 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
30016 * s-stchop-vxworks.adb: Add required pragma Convention to
30017 Task_Descriptor because it is updated by a C function.
30019 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
30022 * Makefile.in: Remove target specific SO_OPT on IRIX
30024 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30026 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
30027 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
30028 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
30029 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
30030 (STMT_STMT, USE_STMT): New statement codes.
30031 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
30032 * ada-tree.h: Reflect above changes.
30033 (struct tree_loop_id): Deleted.
30034 (union lang_tree_node, struct lang_decl, struct lang_type):
30035 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
30036 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
30037 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
30038 (IS_ADA_STMT): New macro.
30039 * decl.c (annotate_decl_with_node): New function.
30040 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
30041 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
30042 Call add_stmt_with_node to do needed assignments.
30043 Add call to update setjmp buffer directly, not via EXPR_STMT.
30044 (maybe_variable): Argment GNAT_NODE deleted.
30045 * gigi.h (maybe_variable): Likewise.
30046 (make_transform, add_stmt_with_node, set_block_for_group): New.
30047 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
30048 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
30049 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
30050 (set_lineno, set_lineno_from_sloc): Likewise.
30051 (record_code_position, insert_code_for): Likewise.
30052 (gnat_poplevel): Now returns void.
30053 (end_subprog_body): Now takes argument.
30054 * misc.c (cgraph.h, tree-inline.h): New includes.
30055 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
30056 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
30057 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
30058 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
30059 (gnat_parse_file): Don't set immediate_size_expand.
30060 Call cgraph functions.
30061 (gnat_expand_expr): Remove most cases.
30062 (record_code_position, insert_code_for): Remove from here.
30063 * trans.c (toplev.h, tree-gimple.h): Now included.
30064 (discard_file_names): Deleted.
30065 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
30066 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
30067 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
30068 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
30069 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
30070 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
30071 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
30072 (set_block_for_group, add_stmt_list): Likewise.
30073 (start_stmt_group): Renamed from start_block_stmt.
30074 (end_stmt_group): Likewise, from end_block_stmt.
30075 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
30076 (gigi): Don't set discard_file_names or call set_lineno.
30077 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
30078 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
30079 Numerous changes throughout to reflect new names and complete
30080 function-at-a-time implementation.
30081 (gnat_expand_stmt): Delete or comment out all cases.
30082 (process_inlined_subprograms): Use add_stmt.
30083 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
30084 call set_lineno; also remove unneeded block handling.
30085 (process_type): Remove unneeded block handling.
30086 (build_unit_elab): Remove calls to deleted functions.
30087 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
30088 (tree-dump.h): Likewise.
30089 (struct ada_binding_level): Add field jmpbuf_decl.
30090 (gnat_define_builtin, gnat_install_builtins): New.
30091 (gnat_gimplify_function, gnat_finalize): Likewise.
30092 (gnat_poplevel): No longer return BLOCK, set it instead.
30093 Remove code dealing with nested functions.
30094 (gnat_init_decl_processing): Also set size_type_node.
30095 Call gnat_install_builtins.
30096 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
30097 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
30098 Remove special-case for "main".
30099 (end_subprog_body): Add arg and rework for tree-ssa.
30100 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
30101 Add case for BOOLEAN_TYPE.
30102 * utils2.c (rtl.h): Now include.
30103 (build_call_raise): Test Debug_Flag_NN directly.
30104 (build_call_alloc_dealloc): Don't use local stack allocation for now.
30105 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
30106 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
30108 2004-06-07 Robert Dewar <dewar@gnat.com>
30110 * a-direct.ads, einfo.ads: Minor comment updates
30112 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
30113 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30114 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
30115 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
30116 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
30118 * s-interr-sigaction.adb: Remove unreferenced variable
30119 (Attached_Interrupts). Minor reformatting.
30120 Avoid use of variable I (replace by J).
30122 * par-ch10.adb: Fix text of one error message
30124 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
30125 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
30126 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
30127 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
30128 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
30129 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
30130 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
30131 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
30132 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
30133 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
30134 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
30137 2004-06-07 Doug Rupp <rupp@gnat.com>
30139 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
30141 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
30143 * mlib-tgt-vms-ia64.adb: New file.
30145 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
30146 Add mlib-tgt-vms-ia64.adb
30147 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
30148 Move to alpha specific ifeq section.
30149 Add VMS specific versions of symbols.adb
30150 Renaming of 5q vms files.
30152 * 5qsystem.ads renamed to system-vms_64.ads.
30154 2004-06-07 Vincent Celier <celier@gnat.com>
30156 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
30157 explain that when a time of day corresponding to the non existing hour
30158 on the day switching to DST is specified, Split may return a different
30161 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
30164 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
30165 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
30167 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
30169 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
30170 the linking options.
30171 (Build_Library.Check_Libs): On VMS, if there is a dependency on
30172 g-trasym.ads, set Gtrasymobj_Needed to True.
30174 * prj-attr.adb: Add new package Metrics for gnatmetric
30176 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
30177 canonical case to take into account files with upper case characters on
30179 (Ada_Check): Load the reference symbol file name in the name buffer to
30180 check it, not the symbol file name.
30182 * snames.ads, snames.adb: Add standard name Metrics (name of project
30183 file package for gnatmetric).
30185 * vms_conv.ads: Add Metric to Comment_Type
30187 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
30189 * vms_data.ads: Add qualifiers for GNAT METRIC
30191 * makegpr.adb (Link_Executables): Take into account the switches
30192 specified in package Linker of the main project.
30194 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
30196 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
30197 the index of the last element is Units.Last, not Units.Table'Last
30198 (which is usually not a valid index within the actually allocated
30199 storage for the table).
30201 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
30202 determines whether to generate a call to a checked storage pool
30203 Dereference action.
30204 Generate such a call only for a dereference that either comes from
30205 source, or is the result of rewriting a dereference that comes from
30208 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
30210 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
30212 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
30214 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
30215 file level, elaborate the stride for inner dimensions in alignment
30218 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
30221 2004-06-07 Javier Miranda <miranda@gnat.com>
30223 * exp_ch6.adb: Correct wrong modification in previous patch
30225 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
30227 * g-trasym.ads: Corrected comment to properly reflect level of support
30230 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
30232 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
30233 includes case of a variable referenced on the left hand side of an
30234 assignment, therefore remove redundant code. Variables and prefixes of
30235 indexed or selected components are now marked as referenced on left
30236 hand side. Warnings are now properly emitted when variables or prefixes
30237 are assigned but not read.
30239 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
30240 left hand side referenced variables. Private access types do not
30241 produce the warning "variable ... is assigned but never read".
30242 Add also additional checks to left hand side referenced variables.
30243 Aliased, renamed objects and access types do not produce the warning
30244 "variable ... is assigned but never read" since other entities may read
30245 the memory location.
30247 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
30249 * Makefile.in: In the powerpc/vxworks-specific section, restore
30250 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
30253 2004-06-07 Ed Schonberg <schonberg@gnat.com>
30255 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
30256 predefined operators.
30257 Removes spurious type errors from g-trasym-vms.adb.
30259 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
30260 distinct from the operator appearing in the source, call appropriate
30261 routine to insert conversions when needed, and complete resolution of
30263 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
30264 interpretations for rewritten right operand.
30265 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
30266 the other operand is overloaded and the context is a type conversion.
30268 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30270 * ada-tree.def (BLOCK_STMT): Now has two operands.
30273 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
30275 * gigi.h: (gnat_poplevel): Now returns a tree.
30277 * trans.c (end_block_stmt): Add arg; all callers changed.
30278 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
30279 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
30280 (add_stmt): Set TREE_TYPE.
30281 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
30282 (gnat_expand_stmt, case BREAK_STMT): New case.
30284 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
30286 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
30288 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
30289 procedure Set_Stack_Size that is not needed.
30291 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
30293 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
30294 used for gnatpp input file and for the files upon which it depends
30296 2004-06-07 Ben Brosgol <brosgol@gnat.com>
30298 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
30300 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
30302 * gnatvsn.ads: Bump version numbers appropriately.
30303 Add new build type.
30305 2004-06-07 Pascal Obry <obry@gnat.com>
30307 * gnat_ugn.texi: Improve comments about imported names and link names
30308 on Windows. Add a note about the requirement to use -k gnatdll's option
30309 when working with a DLL which has stripped stdcall symbols (no @nn
30312 2004-05-27 Vincent Celier <celier@gnat.com>
30314 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
30315 COMMENTS_LAYOUT=UNTOUCHED
30317 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
30318 symbols-vms-alpha.adb
30320 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
30322 * sem.ads: Clarify documentation on checks suppression.
30324 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
30326 2004-05-27 Ed Schonberg <schonberg@gnat.com>
30328 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
30329 the case of multiple derivations.
30330 (Is_Object_Reference): For a selected component, verify that the prefix
30331 is itself an object and not a value.
30333 * sem_ch12.adb (Same_Instantiated_Constant): New name for
30334 Same_Instantiated_Entity.
30335 (Same_Instantiated_Variable): Subsidiary to
30336 Check_Formal_Package_Instance, to recognize actuals for in-out generic
30337 formals that are obtained from a previous formal package.
30338 (Instantiate_Subprogram_Body): Emit proper error when
30339 generating code and the proper body of a stub is missing.
30341 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
30342 has a universal interpretation, do the disambiguation here.
30344 * exp_ch4.adb (Expand_N_Type_Conversion,
30345 Expand_N_Unchecked_Type_Conversion): Special handling when target type
30346 is Address, to avoid typing anomalies when Address is a visible integer
30349 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
30350 to determine whether a subprogram should not be marked Pure, even when
30351 declared in a pure package.
30353 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
30355 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
30357 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
30358 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
30359 Update the documentation about the Ravenscar profile, following the
30360 definition found in AI-249.
30362 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
30363 setting the Profile (Ravenscar). This must be done in addition to
30364 setting the required restrictions.
30366 * rtsfind.ads: Add the set of operations defined in package
30369 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
30372 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
30374 lang-specs.h: Always require -c or -S and always redirect to /dev/null
30375 if -gnatc or -gnats is passed.
30377 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
30379 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
30380 a significant reference. Warnings are now properly emitted when a
30381 discriminated type is not referenced.
30383 * lib-xref.adb (Generate_Reference): A deferred constant completion,
30384 record representation clause or record type discriminant does not
30385 produce a reference to its corresponding entity. Warnings are now
30386 properly emitted when deferred constants and record types are not
30389 2004-05-27 Geert Bosch <bosch@gnat.com>
30391 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
30392 Fixes ACATS Annex G tests.
30394 2004-05-27 Robert Dewar <dewar@gnat.com>
30396 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
30399 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
30401 * s-interr.adb (Server_Task): Take into account case of early return
30402 from sigwait under e.g. linux.
30404 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
30406 * gnat_ugn.texi: Add description for the new gnatpp options:
30407 -rnb - replace the original source without creating its backup copy
30408 -c0 - do not format comments
30410 2004-05-24 Geert Bosch <bosch@gnat.com>
30412 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
30413 with 192 bits of precision, sufficient to reduce a double-extended
30414 arguments X with a maximum relative error of T'Machine_Epsilon, for X
30415 in -2.0**32 .. 2.0**32.
30416 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
30417 reduction by the processor, which only uses a 68-bit approximation of
30419 (Tan): Always reduce arguments and compute function either using
30420 the processor's fptan instruction, or by dividing sin and cos as needed.
30422 2004-05-24 Doug Rupp <rupp@gnat.com>
30424 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
30425 gcc error on 32/64 bit VMS.
30427 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
30429 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
30430 since this is what we get for stack overflows although not documented
30432 Document the issues which may require adjustments to our signal
30435 2004-05-24 Ed Schonberg <schonberg@gnat.com>
30437 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
30438 enclosing dynamic scope if the instantiation is within a generic unit.
30440 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
30442 * exp_dbug.ads: Fix typo.
30444 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
30445 Rename it to its proper name: system-linux-ia64.ads
30446 (stamp-gnatlib1): Remove extra target specific run time files when
30447 setting up the rts directory.
30449 2004-05-24 Javier Miranda <miranda@gnat.com>
30451 * einfo.ads, einfo.adb (Limited_Views): Removed.
30452 (Limited_View): New attribute that replaces the previous one. It is
30453 now a bona fide package with the limited-view list through the
30454 first_entity and first_private attributes.
30456 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
30457 limited-private-with clause.
30458 (Install_Limited_Withed_Unit): Install the private declarations of a
30459 limited-private-withed package. Update the installation of the shadow
30460 entities according to the new structure (see Build_Limited_Views)
30461 (Build_Limited_Views): Replace the previous implementation of the
30462 limited view by a package entity that references the first shadow
30463 entity plus the first shadow private entity (required for limited-
30464 private-with clause)
30465 (New_Internal_Shadow_Entity): Code cleanup.
30466 (Remove_Limited_With_Clause): Update the implementation to undo the
30467 new work carried out by Build_Limited_Views.
30468 (Build_Chain): Complete documentation.
30469 Replace Ada0Y by Ada 0Y in comments
30472 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
30473 types the level of accessibility depends on the enclosing type
30476 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
30477 entities. Complete documentation of previous change.
30479 2004-05-24 Robert Dewar <dewar@gnat.com>
30481 * namet.adb: Minor reformatting
30482 Avoid use of name I (replace by J)
30483 Minor code restructuring
30485 * sem_ch6.adb: Minor reformatting
30487 * lib-writ.adb: Do not set restriction as active if this is a
30488 Restriction_Warning case.
30490 * sem_prag.adb: Reset restriction warning flag if real pragma
30491 restriction encountered.
30493 * s-htable.adb: Minor reformatting
30494 Change rotate count to 3 in Hash (improves hash for small strings)
30496 * 5qsystem.ads: Add comments for type Address (no literals allowed).
30498 * gnat_ugn.texi: Add new section of documentation "Code Generation
30499 Control", which describes the use of -m switches.
30501 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
30503 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
30504 through the DECL_INITIAL for renamed variables.
30506 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
30508 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
30510 2004-05-19 Joel Brobecker <brobecker@gnat.com>
30512 * exp_dbug.ads: Correct comments concerning handling of overloading,
30513 since we no longer use $ anymore.
30515 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
30517 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
30518 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
30519 with illegal subunits.
30521 2004-05-19 Ed Schonberg <schonberg@gnat.com>
30523 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
30524 body with front-end inlining enabled, check whether an inline pragma
30525 appears immediately after the body and applies to it.
30527 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
30528 enabled and the pragma appears after the body of the subprogram.
30530 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30532 Part of function-at-a-time conversion
30534 * misc.c (adjust_decl_rtl): Deleted.
30535 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
30538 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
30539 (add_decl_stmt, add_stmt, block_has_vars): New functions.
30540 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
30542 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
30543 when making a decl.
30544 (gnat_to_gnu_entity): Likewise.
30545 Use add_stmt to update setjmp buffer.
30546 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
30548 No longer call adjust_decl_rtl.
30549 (DECL_INIT_BY_ASSIGN_P): New macro.
30550 (DECL_STMT_VAR): Likewise.
30552 * trans.c (gigi): Call start_block_stmt to make the outermost
30554 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
30555 Call start_block_stmt and end_block_stmt temporarily.
30556 Use gnat_expand_stmt instead of expand_expr_stmt.
30557 (add_decl_stmt): New function.
30558 (tree_transform): Call it.
30559 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
30560 (end_block_stmt): Set type and NULL_STMT.
30561 (gnat_expand_stmt): Make recursize call instead of calling
30563 (gnat_expand_stmt, case DECL_STMT): New case.
30564 (set_lineno_from_sloc): Do nothing if global.
30565 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
30566 (start_block_stmt, add_stmt, end_block_stmt): New functions.
30567 (build_block_stmt): Call them.
30568 (gnat_to_code): Don't expand NULL_STMT.
30569 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
30571 (tree_transform): Likewise.
30572 (tree_transform, case N_Null_Statement): Return NULL_STMT.
30573 (gnat_expand_stmt, case NULL_STMT): New case.
30574 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
30577 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
30580 * utils.c (create_var_decl): Do not call expand_decl or
30582 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
30583 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
30585 (struct e_stack): Add chain_next to GTY.
30586 (struct binding_level): Deleted.
30587 (struct ada_binding_level): New struct.
30588 (free_block_chain): New.
30589 (global_binding_level, clear_binding_level): Deleted.
30590 (global_bindings_p): Rework to see if no chain.
30591 (kept_level_p, set_block): Deleted.
30592 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
30593 new data structure and work directly on BLOCK node.
30594 (gnat_poplevel): Similarly.
30595 (get_decls): Look at BLOCK_VARS.
30596 (insert_block): Work directly on BLOCK node.
30597 (block_has_var): New function.
30598 (pushdecl): Rework for new binding structures.
30599 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
30601 (build_subprog_body): Likewise.
30602 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
30604 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
30606 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
30607 (DECL_STMT_VAR): Likewise.
30609 2004-05-17 Robert Dewar <dewar@gnat.com>
30611 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
30614 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
30615 of restriction synonyums by using
30616 Restrict.Process_Restriction_Synonyms.
30618 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
30620 * s-restri.ads (Tasking_Allowed): Correct missing comment
30622 * s-rident.ads: Add entries for restriction synonyms
30624 * ali.adb: Fix some problems with badly formatted ALI files that can
30625 result in infinite loops.
30627 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
30628 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
30629 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30630 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
30631 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
30632 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
30633 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
30634 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
30635 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
30636 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
30637 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
30638 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
30639 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
30640 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30641 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
30642 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
30643 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30644 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30645 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
30646 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
30647 to Task_Id (minor cleanup).
30649 2004-05-17 Vincent Celier <celier@gnat.com>
30651 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
30652 directory separator.
30654 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
30655 project being extended, if Languages is not declared in extending
30658 2004-05-17 Javier Miranda <miranda@gnat.com>
30660 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
30661 limited view of a visible sibling.
30663 2004-05-14 Robert Dewar <dewar@gnat.com>
30665 * gnat_ugn.texi: Minor change to -gnatS documentation
30667 * sprint.adb: Remove some instances of Assert (False) and for this
30668 purpose replace them by output of a ??? string.
30670 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
30673 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
30674 flag processing. This was suppressing required dependencies in
30675 No_Run_Time mode and is not needed since the binder does not generate
30676 references for things in libgnat anyway.
30678 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
30681 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
30683 * gnat_ugn.texi: Document AIX-specific issue with initialization of
30686 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
30687 action for the case of an actual parameter in an init proc call.
30689 2004-05-14 Ed Schonberg <schonberg@gnat.com>
30691 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
30692 subtype, check visible entities in base type.
30694 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
30695 actions if the object is a renaming.
30697 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
30698 Check_Formal_Package_Instance, to determine more precisely when the
30699 formal and the actual denote the same entity.
30701 2004-05-14 Javier Miranda <miranda@gnat.com>
30703 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
30705 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
30706 corresponding to a private_with must be removed from visibility; it
30707 will be made visible later, just before we analyze the private part of
30709 (Check_Private_Child_Unit): Allow private_with clauses in public
30711 (Install_Siblings): Make visible the private entities of private-withed
30713 (Install_Withed_Unit): Do not install the private withed unit if we
30714 are compiling a package declaration and the Private_With_OK flag was
30715 not set by the caller. These declarations will be installed later,
30716 just before we analyze the private part of the package.
30718 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
30719 during the evaluation of the expression that initializes the object,
30720 decorate it with the expected type to avoid cascade errors.
30723 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
30724 subprogram we have to install the private_with clauses after its
30725 specification has been analyzed (as documented in AI-262.TXT).
30727 * sem_ch8.adb (Has_Private_With): New function. Determines if the
30728 current compilation unit has a private with on a given entity.
30729 (Find_Direct_Name): Detect the Beaujolais problem described in
30732 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
30733 provides the functionality of the function Is_Ancestor that was
30734 previously available in sem_ch10. It has been renamed to avoid
30737 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
30739 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30741 * utils.c (build_vms_descriptor): Use SImode pointers.
30743 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
30745 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
30747 2004-05-14 GNAT Script <nobody@gnat.com>
30749 * Make-lang.in: Makefile automatically updated
30751 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
30753 Renaming of target specific files for clarity
30755 * Makefile.in: Rename GNAT target specific files.
30757 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
30758 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
30759 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
30760 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
30761 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
30762 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
30763 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
30764 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
30765 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
30766 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
30767 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
30768 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
30769 51osinte.adb, 51osinte.ads, 51system.ads,
30770 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
30771 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
30772 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
30773 56tpopsp.adb, 57system.ads, 58system.ads,
30774 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
30775 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
30776 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
30777 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
30778 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
30779 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
30780 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
30781 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
30782 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
30783 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
30784 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
30785 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
30786 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
30787 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
30788 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
30789 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
30790 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
30791 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
30792 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
30793 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
30794 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
30795 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
30796 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
30797 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
30798 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
30799 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
30800 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
30801 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
30802 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
30803 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
30804 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
30805 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
30806 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
30807 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
30808 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
30809 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
30810 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
30811 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
30812 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
30813 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
30815 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
30816 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
30817 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
30818 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
30819 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
30820 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
30821 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
30822 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
30823 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
30824 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
30825 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
30826 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
30827 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
30828 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
30829 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
30830 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
30831 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
30832 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
30833 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
30834 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
30835 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
30836 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
30837 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
30838 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
30839 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
30840 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
30841 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
30842 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
30843 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
30844 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
30845 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
30846 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
30847 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
30848 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
30849 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
30850 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
30851 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
30852 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
30853 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
30854 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
30855 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
30856 s-osinte-vms.ads, s-osinte-vxworks.adb,
30857 s-osinte-vxworks.ads, s-osprim-mingw.adb,
30858 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
30859 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
30860 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
30861 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
30862 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
30863 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
30864 s-stchop-vxworks.adb, s-taprop-dummy.adb,
30865 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
30866 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
30867 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
30868 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
30869 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
30870 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
30871 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
30872 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
30873 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
30874 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
30875 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
30876 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
30877 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
30878 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
30879 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
30880 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
30881 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
30882 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
30883 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
30884 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
30885 system-irix-o32.ads, system-linux-x86_64.ads,
30886 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30887 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
30888 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
30889 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
30890 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
30891 system-vxworks-mips.ads, system-vxworks-ppc.ads,
30892 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
30895 2004-05-13 Zack Weinberg <zack@codesourcery.com>
30897 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
30899 2004-05-13 Diego Novillo <dnovillo@redhat.com>
30901 Merge from tree-ssa-20020619-branch.
30903 * config-lang.in (boot_language, build_by_default): Set
30905 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
30906 (max_size): Add static chain op for call_expr.
30908 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
30911 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
30913 2004-05-11 Roger Sayle <roger@eyesopen.com>
30915 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
30918 2004-05-10 Doug Rupp <rupp@gnat.com>
30920 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
30923 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
30925 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
30927 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
30928 Fixes undefined symbols in IA64 gnatlib.
30930 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
30932 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
30933 Short_Address). This will be moved to system.auxdec.
30935 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
30937 * sem_util.adb: Replace test for presence of a node that is always
30938 present with a call to Discard_Node.
30940 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
30941 Analyze on the library unit node after generation of distribution stub
30942 constructs. The call was a no-op because Unit_Node has already been
30943 Analyzed, and the tree fragments for the distribution stubs are
30944 analyzed as they are inserted in Exp_Dist.
30945 Update comment regarding to distribution stubs to reflect that we
30946 do not generate stub in separate files anymore.
30948 * einfo.ads: Clarify the fact that a tagged private type has the
30949 E_Record_Type_With_Private Ekind.
30951 * erroutc.adb: Minor reformatting
30953 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
30954 values if line length is increased using -gnatyM (noticed during code
30957 * eval_fat.adb: Minor reformatting
30958 Put spaces around exponentiation operator
30960 2004-05-10 Ed Schonberg <schonberg@gnat.com>
30963 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
30964 has been rewritten as an explicit dereference, retrieve type of
30965 original node to check for possibly unconstrained record type.
30967 2004-05-10 Ed Schonberg <schonberg@gnat.com>
30969 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
30970 overriding, use the operation of the parent unconditionally.
30972 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
30973 operation when either operand is a literal, to avoid further
30976 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
30977 overridden by a previous explicit declaration, mark the previous entity
30980 * sem_disp.adb (Check_Dispatching_Operation): New predicate
30981 Is_Visibly_Controlled, to determine whether a declaration of a
30982 primitive control operation for a derived type overrides an inherited
30983 one. Add warning if the explicit declaration does not override.
30985 2004-05-10 Vincent Celier <celier@gnat.com>
30987 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
30988 some cases when the sources are no longer present.
30990 * make.adb (Collect_Arguments): Fail if an external source, not part
30991 of any project need to be compiled, when switch -x has not been
30994 * makeusg.adb: Document new switch -x
30996 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
30997 defaulted to False.
30999 * switch-m.adb (Scan_Make_Switches): New switch -x
31001 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
31002 gnatmake switch -x.
31004 * gnat_ugn.texi: Document new gnatmake switch -x
31006 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
31008 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
31010 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
31011 (process_attributes): Likewise.
31013 2004-05-10 Joel Brobecker <brobecker@gnat.com>
31015 * s-inmaop.ads: Fix spelling mistake in one of the comments.
31017 2004-05-10 Robert Dewar <dewar@gnat.com>
31019 * gnat_ugn.texi: Document that for config pragma files, the maximum
31020 line length is always 32767.
31022 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
31023 literals is now allowed.
31025 * gnat-style.texi: Remove statement about splitting long lines before
31026 an operator rather than after, since we do not follow this rule at all.
31027 Clarify rule (really lack of rule) for spaces around exponentiation
31029 * sem_elim.adb: Allow concatenation of string literals as well as a
31030 single string literal for pragma arguments.
31032 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
31034 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
31035 written for append case.
31037 * frontend.adb: Changes to avoid checking max line length in config
31040 * g-os_lib.ads: Minor reformatting
31042 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
31043 wrong in any case. Instead use standard value. Noticed during code
31046 * opt.ads (Max_Line_Length): New field, used to implement removal of
31047 limitation on length of lines when scanning config pragma files.
31049 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
31050 makeutl.ads, makeutl.adb: Minor reformatting
31052 * scn.adb: Do not check line length while scanning config pragma files
31053 Do not check line length while scanning out license information
31055 * scng.adb: Changes to avoid line length checks while parsing config
31058 2004-05-10 GNAT Script <nobody@gnat.com>
31060 * Make-lang.in: Makefile automatically updated
31062 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
31064 * osint.adb (Find_Program_Name): Fix handling of VMS version
31067 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
31069 * g-os_lib.ads (Invalid_Time): New constant
31071 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
31072 return OS_Time instead of time_t to match what is imported by Ada.
31073 Now return -1 if the file doesn't exist, instead of a random value
31075 2004-05-05 Robert Dewar <dewar@gnat.com>
31077 * usage.adb: Add line for -gnatR?s switch
31079 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
31081 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
31082 and for Match (Data_First, Data_last)
31084 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
31085 written when we are dealing with multi-unit files.
31087 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
31089 * Makefile.in: Remove unused targets and variables.
31091 2004-05-05 Vincent Celier <celier@gnat.com>
31093 * switch-m.adb: New gnatmake switch -eI
31095 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
31096 of new gnatmake switch -eInnn.
31098 * makegpr.adb: Take into account new parameters Index and Src_Index in
31101 * clean.adb: Implement support for multi-unit sources, including new
31104 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
31107 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
31108 (Extract_From_Q): New out parameter Index
31109 (Mark, Is_Marked): Subprograms moved to Makeutl
31110 (Switches_Of): New parameter Source_Index
31111 (Add_Switch): New parameter Index
31112 (Check): New parameter Source_Index
31113 (Collect_Arguments): New parameter Source_Index
31114 (Collect_Arguments_And_Compile): New parameter Source_Index
31115 (Compile): New parameter Source_Index
31116 Put subprograms in alphabetical order
31117 Add support for multi-source sources, including in project files.
31119 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
31120 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
31123 * makeusg.adb: New gnatmake switch -eInnn
31125 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
31128 * opt.ads (Main_Index): New variable, defaulted to 0.
31130 * osint.ads, osinte.adb (Add_File): New parameter Index
31131 (Current_Source_Index): New function
31133 * prj.adb: Take into account new components Index and Src_Index
31135 * prj.ads (String_Element): New component Index
31136 (Variable_Value): New component Index
31137 (Array_Element): New component Src_Index
31139 * prj-attr.adb: Indicate that optional index may be specified for
31140 attributes Main, Executable, Spec, Body and some of Switches.
31142 * prj-attr.ads (Attribute_Kind): New values for optional indexes
31143 (Attribute_Record): New component Optional_Index
31145 * prj-com.ads (File_Name_Data): New component Index
31147 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
31149 * prj-env.adb (Put): Output optional index
31151 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
31152 attributes Spec and Body.
31154 * prj-nmsc.adb: Process optional indexes
31156 * prj-pp.adb: Ouput "at" for optional indexes
31158 * prj-proc.adb: Take into account optional indexes
31160 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
31161 Optional_Index. For string literal,
31162 process optional index when Optional_Index is True.
31163 (Parse_Expresion): New Boolean parameter Optional_Index
31165 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
31166 (Set_Source_Index_Of): New procedure
31168 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
31171 * prj-util.ads (Executable_Of): New parameter Index
31172 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
31173 New parameter Src_Index, defaulted to 0.
31175 2004-05-05 Ed Schonberg <schonberg@gnat.com>
31178 * sem_ch3.adb (Access_Definition): If this is an access parameter
31179 whose designated type is imported through a limited_with clause, do
31180 not add the enclosing subprogram to the list of private dependents of
31183 2004-05-05 Ed Schonberg <schonberg@gnat.com>
31186 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
31187 a limited_with clause, and the other is its non-limited view.
31189 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
31191 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
31193 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
31194 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
31195 Stand.Boolean_Literals to produce references to entities
31196 Standard_False and Standard_True from compile-time computed boolean
31199 * stand.ads (Boolean_Literals): New variable, provides the entity
31200 values for False and True, for use by the expander.
31202 2004-05-05 Doug Rupp <rupp@gnat.com>
31204 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
31205 5vinmaop.adb: Unchecked convert Short_Address vice Address
31207 * adaint.c, raise.c: Caste CRTL function return value
31208 to avoid gcc error on 32/64 bit IVMS.
31210 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
31213 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
31215 * 5qsystem.ads (Address): Declare as Long_Integer
31216 (Short_Address): Declare as 32 bit subtype of Address
31217 Declare abstract address operations to avoid gratuitous ambiguities.
31219 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
31221 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
31222 instead of the old Boolean_Entry_Barriers.
31223 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
31225 2004-05-05 GNAT Script <nobody@gnat.com>
31227 * Make-lang.in: Makefile automatically updated
31229 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
31231 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
31233 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
31236 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
31237 alone. Replacing object references by literals is inappropriate in a
31238 so low level context.
31240 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
31242 * a-exexpr.adb: Add comments
31244 2004-05-03 Joel Brobecker <brobecker@gnat.com>
31246 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
31247 declare the Ancestor_Tags array in Type_Specific_Data with a small size
31248 without risking a bounds check error when accessing one of its
31250 (Type_Specific_Data): Define Ancestor_Tags as a small array.
31251 This prevents us from hitting a limitation during the debug info
31252 generation when using stabs.
31254 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
31256 This prevents us from hitting a limitation during the debug info
31257 generation when using stabs.
31259 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
31261 lang-specs.h: Remove -gnatz* from specs.
31263 2004-05-03 Vincent Celier <celier@gnat.com>
31265 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
31267 * Make-lang.in, Makefile.in: Add gprmake
31269 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
31271 * sem_aggr.adb: Fix typo in comment.
31273 2004-05-03 Robert Dewar <dewar@gnat.com>
31275 * make.adb: Minor reformatting
31277 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
31279 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
31280 so that it works when address is not a private type.
31282 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
31283 properly with rewritten unchecked conversions. This prevents
31284 order-of-elaboration issues that can otherwise arise.
31285 (Minimum_Size): Don't check size of access types under VMS
31287 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
31288 interpretations of integer literals as type System.Address.
31290 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
31291 (Is_Descendent_Of): New function
31293 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
31295 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31296 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
31297 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
31299 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
31300 of the old Max_Entry_Queue_Depth.
31302 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31303 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
31304 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
31306 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
31307 New entry for proper handling of Max_Entry_Queue_Depth.
31308 New entry for proper handling of No_Dynamic_Interrupts.
31310 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
31311 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31312 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
31313 the GNAT specific restriction Max_Entry_Queue_Depth.
31314 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
31315 the GNAT specific restriction No_Dynamic_Interrupts.
31317 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
31318 instead of the old Boolean_Entry_Barriers.
31319 Use the new restriction No_Dynamic_Attachment instead of the old
31320 No_Dynamic_Interrupts.
31322 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
31323 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31325 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
31326 of the old Max_Entry_Queue_Depth.
31328 2004-05-03 GNAT Script <nobody@gnat.com>
31330 * Make-lang.in: Makefile automatically updated
31332 2004-04-29 Ed Schonberg <schonberg@gnat.com>
31334 * checks.adb (Enable_Range_Check): If the prefix of an index component
31335 is an access to an unconstrained array, perform check unconditionally.
31337 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31339 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
31342 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
31344 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
31345 alternate stack setting. There was no support for the tasking cases
31346 and the changes eventually caused a number of side-effect failures in
31347 the non-tasking case too.
31349 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
31351 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
31354 2004-04-29 Vincent Celier <celier@gnat.com>
31356 * make.adb (Gnatmake): Increase max size of argument array for
31357 gnatbind for the potential addition of -F.
31358 If there are Stand-Alone Library projects, invoke gnatbind with -F to
31359 be sure that elaboration flags will be checked.
31361 * switch-c.adb: Correct call to Scan_Pos for -gnateI
31363 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
31365 * sem_warn.adb (Check_References): Move '<access-variable> may be
31366 null' warning out of under Warn_On_No_Value_Assigned.
31368 2004-04-29 Ed Falis <falis@gnat.com>
31370 * gnat_ugn.texi: Fixed texi error
31372 2004-04-29 Robert Dewar <dewar@gnat.com>
31374 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
31375 abstract operations if they come from predefined files.
31377 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
31380 * s-addope.adb: Correct obvious error in mod function
31382 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
31384 * Makefile.in: Add target pairs for powerpc darwin*
31387 * a-intnam-darwin.ads, s-osinte-darwin.adb,
31388 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
31390 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
31392 * Makefile.in: Add target macro definitions for s390*-linux*.
31393 * system-linux-s390.ads: New file.
31394 * system-linux-s390x.ads: New file.
31396 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
31398 * gnat_ugn.texi: Correct argument to @setfilename.
31400 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
31402 * a-exexpr.adb (Unwind_Word): New data type.
31403 (Unwind_Exception): Use it as type of Private1 and Private2.
31405 * raise.c (db_action_for): Fix debug printf.
31407 2004-04-27 Ed Schonberg <schonberg@gnat.com>
31409 * a-wtmoio.ads: Formal type must be a modular type, not a signed
31412 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31414 * decl.c (gnat_to_gnu_entity, case object): Call
31415 __builtin_update_setjmp_buf.
31417 * gigi.h (update_setjmp_buf): Deleted.
31418 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
31420 * misc.c: (update_setjmp_buf): Deleted.
31422 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
31423 around block of RTL.
31425 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
31427 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
31429 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
31430 subprogram for which no pragma All_Calls_Remote applies, store the
31431 address of the real subprogram in the underlying record type, so local
31432 dereferences do not go through the PCS.
31434 2004-04-26 Robert Dewar <dewar@gnat.com>
31436 * i-c.ads: Add some type qualifications to avoid ambiguities when
31437 compiling with s-auxdec.ads and a non-private address type.
31439 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
31441 * Makefile.rtl: Fix error in previous check-in:
31442 Add s-addope.o to non tasking object list (rather than tasking object
31445 2004-04-26 Javier Miranda <miranda@gnat.com>
31447 * sem_aggr.adb: Fix typo in comments
31448 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
31449 Required to check the null-exclusion attribute.
31451 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
31452 case of anonymous access types in record and array components. For a
31453 component definition the level is the same of the enclosing composite
31456 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
31457 that are anonymous access types the level of accessibility depends on
31458 the enclosing type declaration. In order to have this information, set
31459 the scope of the anonymous access type to the enclosing record type
31461 (Array_Type_Declaration): In case of components that are anonymous
31462 access types the level of accessibility depends on the enclosing type
31463 declaration. In order to have this information, set the scope of the
31464 anonymous access type to the enclosing array type declaration.
31466 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
31469 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
31470 renaming of anonymous access-to-constant types allowed if and only if
31471 the renamed object is access-to-constant.
31473 * sem_util.adb (Type_Access_Level): In case of anonymous access types
31474 that are component_definition or discriminants of a nonlimited type,
31475 the level is the same as that of the enclosing component type.
31477 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
31479 * sem_elim.adb: Some minor code reorganization from code reading. Fix
31480 misprint in the function name (File_Name_Match).
31482 2004-04-23 Laurent Guerby <laurent@guerby.net>
31484 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
31487 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31489 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
31491 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
31493 * adaint.c (__gnat_try_lock): No longer requires that the parent
31494 directory be writable, the directory itself is enough.
31495 (gnat_is_absolute_path): Change profile, so that the call from
31496 GNAT.OS_Lib can be made more efficient.
31498 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
31499 from GNAT.OS_Lib can be made more efficient.
31501 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
31502 one copy of the file name. Found by code reading.
31504 2004-04-23 Vincent Celier <celier@gnat.com>
31506 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
31507 Correct documentation on gnatmake switches transmitted to the compiler
31509 * ali.ads: Minor comment fix
31511 2004-04-23 Javier Miranda <miranda@gnat.com>
31513 * sem_ch6.adb: (Confirming Types): Code cleanup
31515 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
31516 subprogram types: E_Anonymous_Access_Subprogram_Type and
31517 E_Anonymous_Access_Protected_Subprogram_Type.
31519 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
31521 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31522 whether a pragma All_Calls_Remote applies to the subprogram on which
31524 No functional change is introduced by this revision; the new parameter
31525 will be used to allow calls to local RCI subprograms to be optimized
31526 to not use the PCS in the case where no pragma All_Calls_Remote applies,
31527 as is already done in the PolyORB implementation of the DSA.
31529 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31530 whether a pragma All_Calls_Remote applies to the subprogram on which
31532 No functional change is introduced by this revision; the new parameter
31533 will be used to allow calls to local RCI subprograms to be optimized
31534 to not use the PCS in the case where no pragma All_Calls_Remote applies,
31535 as is already done in the PolyORB implementation of the DSA.
31537 2004-04-23 Robert Dewar <dewar@gnat.com>
31539 * Makefile.rtl: Add entry for s-addope.o in run time library list
31540 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
31541 * s-addope.ads, s-addope.adb: New files.
31543 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
31544 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
31545 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
31546 System.Address to be non-private and signed.
31548 * sem_elim.adb: Minor reformatting (fairly extensive)
31549 Some minor code reorganization from code reading
31550 Add a couple of ??? comments
31552 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31554 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
31555 (tree_transform, case N_If_Statement): Remove non-determinism.
31557 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
31559 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
31561 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
31562 Eliminate' section.
31564 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
31565 no longer used as a parameter name for Eliminate pragma).
31567 2004-04-22 Laurent Guerby <laurent@guerby.net>
31569 PR optimization/14984
31570 PR optimization/14985
31571 * trans.c (gigi): Fix non determinism leading to bootstrap
31572 comparison failures.
31574 2004-04-21 Pascal Obry <obry@gnat.com>
31576 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
31577 passed to spawnvp() to properly handle program pathname with spaces on
31580 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
31582 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
31583 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
31584 unlocked in case of exceptions.
31586 2004-04-21 Joel Brobecker <brobecker@gnat.com>
31588 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
31589 This function does not exist anymore.
31591 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
31593 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
31595 * link.c: Move variables to the __gnat name space.
31597 * Makefile.in: list link.o explicitly when needed.
31599 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
31601 2004-04-21 Javier Miranda <miranda@gnat.com>
31603 * einfo.adb (Original_Access_Type): New subprogram
31604 (Set_Original_Access_Type): New subprogram
31605 (Write_Field21_Name): Write the name of the new field
31607 * einfo.ads (Original_Access_Type): New field present in access to
31609 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
31610 E_Anonymous_Access_Protected_Subprogram_Type.
31612 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
31615 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
31616 to anonymous access to subprogram types.
31618 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
31619 to subprogram types.
31621 * sem_ch3.adb (Access_Definition): Complete decoration of entities
31622 corresponding to anonymous access to subprogram types.
31623 (Analyze_Component_Declaration): Add new actual to the call to
31624 subprogram replace_anonymous_access_to_protected_subprogram.
31625 (Array_Type_Declaration): Add new actual to the call to subprogram
31626 replace_anonymous_access_to_protected_subprogram.
31627 (Process_Discriminants): Add new actual to the call to subprogram
31628 replace_anonymous_access_to_protected_subprogram.
31629 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
31631 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31634 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
31635 access to subprogram types.
31637 * sem_util.adb (Has_Declarations): Addition of package_specification
31640 2004-04-21 Ed Schonberg <schonberg@gnat.com>
31642 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
31643 inlined flags to renamed entity only if in current unit.
31645 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
31647 * s-parint.ads: Add DSA implementation marker.
31649 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
31650 value of System.Partition_Interface.DSA_Implementation to determine
31651 what version of the distributed systems annex is available (no
31652 implementation, GLADE, or PolyORB).
31654 2004-04-21 Joel Brobecker <brobecker@gnat.com>
31656 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
31658 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31660 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
31661 with new type if alias sets differ.
31662 Fixes ACATS c41103b.
31664 2004-04-21 Vincent Celier <celier@gnat.com>
31666 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
31667 Add array Lang_Args for the language specific compiling argument
31670 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
31672 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
31674 * gnat_rm.texi: Update the descripton of the Eliminate pragma
31675 according to the recent changes in the format of the parameters of the
31676 pragma (replacing Homonym_Number with Source_Location).
31678 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
31680 * 5isystem.ads: Removed, unused.
31682 * gnat_rm.texi: Redo 1.13 change.
31684 2004-04-19 Robert Dewar <dewar@gnat.com>
31686 * s-stoele.ads: Clean up definition of Storage_Offset (the new
31687 definition is cleaner, avoids the kludge of explicit Standard operator
31688 references, and also is consistent with a visible System.Address with
31689 no visible operations.
31691 * s-geveop.adb: Add declarations to avoid assumption of visible
31692 operations on type System.Address (since these might not be available
31693 if Address is a non-private type for which the operations
31694 are made abstract).
31696 * sem_eval.adb: Minor reformatting
31698 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
31699 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
31700 reformatting (new function spec format).
31702 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
31703 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
31704 s-caun64.adb: Add declarations to avoid assumption of visible
31705 operations on type System.Address (since these might not be available
31706 if Address is a non-private type for which the operations are made
31709 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
31711 * exp_intr.adb: Minor comment update
31713 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
31715 * 5omastop.adb: Add declarations to avoid assumption of visible
31716 operations on type System.Address (since these might not be available
31717 if Address is a non-private type for which the operations
31718 are made abstract).
31720 2004-04-19 Vincent Celier <celier@gnat.com>
31722 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
31724 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
31727 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
31729 Call Check with Process_Languages.
31730 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
31731 with Process_Languages.
31732 (Recursive_Check): New Boolean parameter Process_Languages. Call
31733 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
31736 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
31738 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
31739 parameter Ada_Main, defaulted to True.
31740 Check for Ada specific characteristics only when Ada_Main is True.
31742 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
31744 * prj.adb: (Project_Empty): Add new Project_Data components.
31746 * prj.ads: New types and tables for non Ada languages.
31747 (Project_Data): New components Languages, Impl_Suffixes,
31748 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
31749 Include_Path, Include_Data_Set.
31751 * prj-env.ads, prj-env.adb: Minor reformatting
31753 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
31754 Put subprograms in alphabetical order
31756 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
31757 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
31760 * mlib-prj.adb: Back out modification in last version, as they are
31762 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
31764 * make.adb: (Mains): Moved to package Makeutl
31765 (Linker_Opts): Moved to package Makeutl
31766 (Is_External_Assignment): Moved to package Makeutl
31767 (Test_If_Relative_Path): Moved to package Makeutl
31768 (Gnatmake): Move sorting of linker options to function
31769 Makeutl.Linker_Options_Switches.
31771 * makeutl.ads, makeutl.adb: New files.
31773 * Makefile.in: Add makeutl.o to the object files for gnatmake
31775 * makeusg.adb: Add line for new switch -eL.
31777 * gnatls.adb (Image): New function.
31778 (Output_Unit): If in verbose mode, output the list of restrictions
31779 specified by pragmas Restrictions.
31781 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
31784 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
31785 needed, to put it in the range 1970 (included) - 2026 (excluded).
31786 (Time_Of): Do not shift Unix_Min_Year (1970).
31787 Shift the date by multiple of 56 years, if needed, to put it in the
31788 range 1970 (included) - 2026 (excluded).
31790 * adaint.h, adaint.c (__gnat_set_executable): New function.
31792 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31794 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
31795 and pop GC context.
31796 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
31797 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
31798 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
31799 (tree_transform, case N_Code_Statement): Likewise.
31800 (gnat_expand_stmt, case LABEL_STMT): Don't look at
31801 LABEL_STMT_FIRST_IN_EH.
31802 (gnat_expand_stmt, case ASM_STMT): New case.
31804 * utils2.c (build_unary_op): Properly set TREE_READONLY of
31805 UNCONSTRAINED_ARRAY_REF.
31807 * utils.c (poplevel): Temporarily push/pop GC context around inline
31808 function expansion.
31810 * decl.c (maybe_variable): Properly set TREE_READONLY of
31811 UNCONSTRAINED_ARRAY_REF.
31812 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
31814 * ada-tree.def: (ASM_STMT): New.
31816 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
31817 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
31818 ASM_STMT_INPUT): New.
31819 (ASM_STMT_CLOBBER): Likewise.
31821 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
31823 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
31824 general rcheck mechanism to raise Program_Error for E.4(18), instead
31825 of a custom raiser in System.Partition_Interface.
31826 Part of general cleanup work before PolyORB integration.
31828 * snames.ads, snames.adb: Add new runtime library entities and names
31831 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
31833 (Build_Subprogram_Id): New subprogram provided by exp_dist
31834 Code reorganisation in preparation for PolyORB integration.
31836 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
31838 (Build_Subprogram_Id): New subprogram provided by exp_dist
31840 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
31841 actual parameter types for call to dereference of an
31842 access-to-subprogram type.
31844 * rtsfind.ads: Add new runtime library entities and names for PolyORB
31847 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
31848 instead, which has the same behaviour here since we never pass it a
31851 * link.c (run_path_option, Solaris case): Use -Wl, as for other
31854 * Makefile.in: adjust object file lists for gnatlink and gnatmake
31855 to account for new dependency upon Interfaces.C.Strings + link.o
31856 For x86 FreeBSD, use 86numaux.
31858 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
31859 from Mlib.Tgt to Mlib.
31861 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
31862 target-independent.
31864 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
31865 target-specific versions of this subprogram, now implemented as a
31866 target-independent function in Mlib.
31868 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
31869 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
31870 (Linker_Library_Path_Option): Remove target-specific versions of this
31871 subprogram, now implemented as a target-independent function in Mlib.
31873 * atree.adb: (Allocate_Initialize_Node): New subprogram.
31874 Factors out node table slots allocation.
31875 (Fix_Parents): New subprogram.
31876 Encapsulate the pattern of fixing up parent pointers for syntactic
31877 children of a rewritten node.
31878 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
31879 (Rewrite): Use New_Copy when creating saved copy of original node.
31880 (Replace): Use Copy_Node to copy nodes.
31882 2004-04-19 Javier Miranda <miranda@gnat.com>
31884 * sprint.adb (Sprint_Node_Actual): Give support to the new
31885 Access_To_Subprogram node available in Access_Definition nodes. In
31886 addition, give support to the AI-231 node fields: null-exclusion,
31887 all-present, constant-present.
31889 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
31891 * sinfo.ads, sinfo.adb:
31892 New field Access_To_Subprogram_Definition in Access_Definition nodes
31894 * sem_ch6.adb (Process_Formals): Move here the code that creates and
31895 decorates internal subtype declaration corresponding to the
31896 null-excluding formal. This code was previously in Set_Actual_Subtypes.
31897 In addition, carry out some code cleanup on this code. In case of
31898 access to protected subprogram call
31899 Replace_Anonymous_Access_To_Protected_Subprogram.
31900 (Set_Actual_Subtypes): Code cleanup.
31902 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
31903 Find_Type in case of anonymous access renamings. Add warning in case of
31904 null-excluding attribute used in anonymous access renaming.
31906 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31909 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
31911 (Access_Definition): In case of anonymous access to subprograms call
31912 the corresponding semantic routine to decorate the node.
31913 (Access_Subprogram_Declaration): Addition of some comments indicating
31914 some code that probably should be added here. Detected by comparison
31915 with the access_definition subprogram.
31916 (Analyze_Component_Declaration): In case of access to protected
31917 subprogram call Replace_Anonymous_Access_To_Protected.
31918 (Array_Type_Declaration): In case of access to protected subprogram call
31919 Replace_Anonymous_Access_To_Protected_Subprogram.
31920 (Process_Discriminants): In case of access to protected subprogram call
31921 Replace_Anonymous_Access_To_Protected_Subprogram.
31923 * par.adb (P_Access_Definition): New formal that indicates if the
31924 null-exclusion part was present.
31925 (P_Access_Type_Definition): New formal that indicates if the caller has
31926 already parsed the null-excluding part.
31928 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
31929 (P_Identifier_Declarations): Code cleanup and give support to renamings
31930 of anonymous access to subprogram types.
31931 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
31932 (P_Array_Type_Definition): Give support to AI-254.
31933 (P_Component_Items): Give support to AI-254.
31934 (P_Access_Definition): New formal that indicates if the header was
31935 already parsed by the caller.
31936 (P_Access_Type_Definition): New formal that indicates if the caller has
31937 already parsed the null-excluding part.
31939 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
31940 call to P_Access_Definition.
31942 2004-04-19 Geert Bosch <bosch@gnat.com>
31944 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
31945 the delicate semantics of floating-point to integer conversion.
31946 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
31948 * eval_fat.adb (Machine_Mantissa): Moved to spec.
31949 (Machine_Radix): New function.
31951 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
31953 (Machine_Radix): New function also for use in conversion checks.
31955 2004-04-19 Ed Schonberg <schonberg@gnat.com>
31957 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
31959 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
31960 to decorate the access-to-protected subprogram and the equivalent type.
31962 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
31963 to anonymous access to subprogram types.
31965 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
31966 constant-folding, for legality checks in contexts that require an RM
31969 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
31970 temporary but stack checking is not enabled, increment serial number
31971 to so that symbol generation is consistent with and without stack
31974 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
31975 independent on whether stack checking is enabled, caller must check
31976 the corresponding flag.
31978 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
31980 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
31981 parent if it has discriminants.
31982 (Build_Derived_Private_Type): Constructed full view does
31983 not come from source.
31984 (Process_Discriminants): Default discriminants on a tagged type are
31985 legal if this is the internal completion of a private untagged
31988 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
31989 no constraint checks, because it corresponds to an existing object.
31991 * sem_prag.adb (Process_Convention): Pragma applies
31992 only to subprograms in the same declarative part, i.e. the same unit,
31993 not the same scope.
31995 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
31996 ignore type mismatch on a numeric conversion if expression comes from
31999 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
32001 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
32002 Homonym_Number parameter, add processing for Source_Location parameter
32004 (Check_Eliminated): Remove the check for homonym numbers, add the check
32005 for source location traces.
32007 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
32008 with Arg_Source_Location corresponding to the changes in the format of
32011 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
32012 Eliminate pragma corresponding to the changes in the format of the
32013 pragma: Homonym_Number is replaced with Source_Location, two ways of
32014 distinguishing homonyms are mutially-exclusive.
32016 2004-04-19 Joel Brobecker <brobecker@gnat.com>
32018 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
32020 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
32021 No_Dollar_In_Label, no longer necessary, as it is always True.
32022 (Strip_Suffixes): Likewise.
32024 2004-04-19 Gary Dismukes <dismukes@gnat.com>
32026 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
32027 modulus for compatibility with size clause on targets with 16-bit
32030 * layout.adb (Discrimify): In the case of private types, set Vtyp to
32031 full type to fix type mismatches on calls to size functions for
32032 discriminant-dependent array components.
32034 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
32036 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
32039 2004-04-19 Pascal Obry <obry@gnat.com>
32041 * mdll-utl.adb (Locate): New version is idempotent.
32043 2004-04-17 Laurent Guerby <laurent@guerby.net>
32045 PR ada/14988 (partial)
32046 * impunit.adb: Fix typo.
32048 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
32050 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
32051 and install-rts-cert targets. Remove all gnatlib and gnattools
32052 targets and all other rts-* targets (moved to libada). Remove (now)
32053 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
32054 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
32056 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32058 * trans.c (tree_transform): Shortcut returning error_mark_node for
32059 statements in annotate_only_mode.
32060 (tree_transform, case N_Label, case N_Return_Statement,
32061 N_Goto_Statement): Make statement tree instead of generating code.
32062 (tree_transform, case N_Assignment_Statement): No longer check
32063 type_annotate_only.
32064 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
32066 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
32068 (gnat_to_gnu): Collect any RTL generated and deal with it.
32069 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
32070 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
32071 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
32073 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
32075 * ada-tree.def (EXPR_STMT): Fix typo in name.
32076 (BLOCK_STMT, IF_STMT): New nodes.
32078 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
32079 LABEL_STMT_FIRST_IN_EH): New macros.
32080 (RETURN_STMT_EXPR): Likewise.
32082 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
32083 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
32085 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
32087 * atree.ads: Correct documentation on extended nodes.
32089 * link.c: Set run_path_option for FreeBSD.
32091 2004-04-08 Vincent Celier <celier@gnat.com>
32093 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
32094 one of the ALI file, do not link with DEC lib.
32096 * par.adb Remove the last two characters ("%s" or "%b") when checking
32097 if a language defined unit may be recompiled.
32099 2004-04-08 Ed Schonberg <schonberg@gnat.com>
32101 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
32102 removal of abstract operation leaves no possible interpretation for
32105 * sem_eval.adb (Eval_Qualified_Expression): Use
32106 Set_Raises_Constraint_Error on node when needed, so that it does not
32107 get optimized away by subsequent optimizations.
32109 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
32110 operands even when they are not wrapped in a type conversion.
32112 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
32114 * sem_prag.adb (Set_Exported): Warn about making static as result of
32115 export only when the export is coming from source. This may be not
32116 be true e.g. on VMS where we expand export pragmas for exception codes
32117 together with imported or exported exceptions, and we don't want the
32118 user to be warned about something he didn't write.
32120 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
32122 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
32123 duplication between normal entities and those declared as renamings.
32124 No functional change.
32126 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
32127 inline functions returning an unconstrained result.
32129 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
32131 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
32132 conform to what other front-ends do.
32134 2004-04-08 Doug Rupp <rupp@gnat.com>
32136 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
32139 2004-04-06 Pascal Obry <obry@gnat.com>
32141 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
32143 * osint.adb (Program_Name): Do not look past a directory separator.
32145 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
32147 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
32149 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
32150 requirement for preserving a copy of the original assignment node.
32152 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
32154 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
32156 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
32159 2004-04-06 Ed Schonberg <schonberg@gnat.com>
32161 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
32162 operator calls in functional notation, and apply
32163 Universal_Interpretation to operands, not to their type.
32165 2004-04-06 Robert Dewar <dewar@gnat.com>
32167 * 5wdirval.adb: Minor reformatting
32169 2004-04-06 Ed Falis <falis@gnat.com>
32171 * gnat_rm.texi: Improve a reference to the GCC manual
32173 2004-04-05 Vincent Celier <celier@gnat.com>
32175 * adaint.h, adaint.c: Add function __gnat_named_file_length
32177 * impunit.adb: Add Ada.Directories to the list
32179 * Makefile.in: Add VMS and Windows versions of
32180 Ada.Directories.Validity package body.
32182 * Makefile.rtl: Add a-direct and a-dirval
32184 * mlib-tgt.ads: Minor comment update.
32186 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
32187 a-direct.ads, a-direct.adb: New files.
32189 2004-04-05 Vincent Celier <celier@gnat.com>
32192 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
32193 just to the compiler.
32195 2004-04-05 Robert Dewar <dewar@gnat.com>
32197 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
32198 returned string is 1.
32200 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
32202 * eval_fat.ads: Minor reformatting
32204 * g-curexc.ads: Document that lower bound of returned string values
32207 * gnatlink.adb: Add ??? comment for previous change
32208 (need to document why this is VMS specific)
32210 * s-stoele.ads: Minor reformatting
32212 * tbuild.ads: Minor reformatting throughout (new function specs)
32214 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
32217 * scng.adb: Minor reformatting
32219 2004-04-05 Geert Bosch <bosch@gnat.com>
32221 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
32222 (Leading_Part): Still perform truncation to machine number if the
32223 specified radix_digits is greater or equal to machine_mantissa.
32225 2004-04-05 Javier Miranda <miranda@gnat.com>
32227 * par-ch3.adb: Complete documentation of previous change
32228 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
32229 (aliased must appear before constant).
32231 * par-ch4.adb: Complete documentation of previous change.
32233 * par-ch6.adb: Complete documentation of previous change.
32235 * sinfo.ads: Fix typo in commment.
32237 2004-04-05 Ed Schonberg <schonberg@gnat.com>
32239 * sem_ch3.adb (Inherit_Components): If derived type is private and has
32240 stored discriminants, use its discriminants to constrain parent type,
32241 as is done for non-private derived record types.
32243 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
32244 Ada 2005 AI-310: an abstract non-dispatching operation is not a
32245 candidate interpretation in an overloaded call.
32247 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
32248 expression is Null and target type is not an access type (e.g. a
32249 non-private address type).
32251 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
32253 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
32254 statement whose right-hand side is an inlined call, save a copy of the
32255 original assignment subtree to preserve enough consistency for
32256 Analyze_Assignment to proceed.
32258 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
32259 complete assignment subtree which is now unnecessary, as the expansion
32260 of inlined call has been improved to preserve a consistent assignment
32261 tree. Note_Possible_Modification must be called only
32262 after checks have been applied, or else unnecessary checks will
32265 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
32266 of explicit dereferences that do not Come_From_Source:
32267 - be selective on cases where we must go back to the dereferenced
32268 pointer (an assignment to an implicit dereference must not be
32269 recorded as modifying the pointer);
32270 - do not rely on Original_Node being present (Analyze_Assignment
32271 calls Note_Possible_Modification on a copied tree).
32273 * sem_warn.adb (Check_References): When an unset reference to a pointer
32274 that is never assigned is encountered, prefer '<pointer> may be null'
32275 warning over '<pointer> is never assigned a value'.
32277 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
32279 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
32282 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
32284 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
32285 libexc. We currently don't reference anything in this library and
32286 linking it in triggers linker warnings we don't want to see.
32288 * init.c: Update comments.
32290 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32292 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
32293 * utils.c (create_field_decl): Likewise.
32294 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
32296 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
32298 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
32299 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
32300 Add info directory entry and category.
32302 2004-04-02 Jan Hubicka <jh@suse.cz>
32304 * utils.c: Include function.h
32305 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
32307 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
32310 * Make-lang.in: Clean up generation of documentation
32312 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
32314 * xgnatug.adb: Removed, replaced by xgnatugn.adb
32316 * xgnatugn.adb: Replaces xgnatug.adb
32318 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
32320 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
32322 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32323 gnat_ug_wnt.texi: Removed.
32325 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
32327 * utils2.c: Update copyright notice.
32329 2004-04-01 Robert Dewar <dewar@gnat.com>
32331 * checks.adb: Minor reformatting throughout
32332 Note that prev checkin added RM reference to alignment warning
32334 2004-04-01 Ed Schonberg <schonberg@gnat.com>
32336 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
32337 non-static when building aggregate for bit-packed array.
32339 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
32340 function call that is itself the actual in a procedure call, build
32343 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
32344 a string literal, create a temporary for it, constant folding only
32345 handles scalars here.
32347 2004-04-01 Vincent Celier <celier@gnat.com>
32349 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
32350 Error_Msg_SP): New empty procedures to instantiate the Scanner.
32351 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
32353 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
32354 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
32355 and get the checksum.
32357 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
32359 Increase the Marking_Label at the end of the Multiple_Main_Loop,
32360 instead of at the beginning.
32362 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
32364 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
32367 * osint.ads (Multi_Unit_Index_Character): New Character global variable
32369 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
32372 * par.adb: Remove test on file name to detect language defined units.
32373 Add test on unit name, after parsing, to detect language defined units
32374 that are not compiled with -gnatg (except System.RPC and its children)
32376 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
32377 following units without style checking.
32379 * switch-c.adb: Change -gnatC to -gnateI
32381 * usage.adb: Document new switch -gnateInnn
32383 * scng.adb (Accumulate_Token_Checksum): New procedure
32384 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
32385 word or literal number.
32386 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
32389 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
32392 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
32393 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
32394 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
32395 5vtpopde.adb: Add missing 'constant' keywords.
32397 2004-04-01 Javier Miranda <miranda@gnat.com>
32399 * par-ch4.adb: (P_Allocator): Code cleanup
32401 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
32404 * sinfo.ads: Complete documentation of previous change
32406 2004-04-01 Pascal Obry <obry@gnat.com>
32408 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
32409 only on VMS. This special handling was done because an old GNU/ld bug
32410 on Windows which has been fixed.
32412 2004-04-01 GNAT Script <nobody@gnat.com>
32414 * Make-lang.in: Makefile automatically updated
32416 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32418 * decl.c (gnat_to_gnu_entity, make_type_from_size):
32419 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
32420 * trans.c (tree_transform, convert_with_check): Likewise.
32421 * utils.c (gnat_signed_or_unsigned_type): Likewise.
32422 (build_vms_descriptor, unchecked_convert): Likewise.
32423 * utils2.c (nonbinary_modular_operation): Likewise.
32425 2004-03-29 Javier Miranda <miranda@gnat.com>
32427 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
32428 (Install_Null_Excluding_Check): Local subprogram that determines whether
32429 an access node requires a runtime access check and if so inserts the
32430 appropriate run-time check.
32431 (Apply_Access_Check): Call Install_Null_Excluding check if required
32432 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
32434 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
32436 * einfo.ads: Fix typo in comment
32438 * exp_ch3.adb (Build_Assignment): Generate conversion to the
32439 null-excluding type to force the corresponding run-time check.
32440 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
32441 type to force the corresponding run-time check.
32443 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
32444 the null-excluding type to force the corresponding run-time check.
32446 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
32447 case of access types unless they have the null-excluding attribute.
32449 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
32452 * exp_util.ads: Fix typo in comment
32454 * par.adb (P_Null_Exclusion): New subprogram
32455 (P_Subtype_Indication): New formal that indicates if the null-excluding
32456 part has been scanned-out and it was present
32458 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
32460 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
32461 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
32462 type to force the corresponding run-time check
32463 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
32465 (Resolve_Array_Aggregate): Carry out some static checks
32466 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
32468 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
32469 attribute must be set only if specified by means of the null-excluding
32470 part. In addition, we must also propagate the access-constant attribute
32472 (Access_Subprogram_Declaration, Access_Type_Declaration,
32473 Analyze_Component_Declaration, Analyze_Object_Declaration,
32474 Array_Type_Declaration, Process_Discriminants,
32475 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
32476 and carry out some static checks.
32477 (Build_Derived_Access_Type): Set the null-excluding attribute
32478 (Derived_Type_Declaration, Process_Subtype): Carry out some static
32481 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
32483 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
32485 * sem_ch6.adb (Process_Formals): Carry out some static checks.
32486 (Set_Actual_Subtypes): Generate null-excluding subtype if the
32487 null-excluding part was present; it is not required to be done here in
32488 case of anonymous access types.
32489 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
32492 * sem_res.adb (Resolve_Actuals): Carry out some static check
32493 (Resolve_Null): Allow null in anonymous access
32495 * sinfo.adb: New subprogram Null_Exclusion_Present
32496 All_Present and Constant_Present available on access_definition nodes
32498 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
32499 object_declaration, derived_type_definition, component_definition,
32500 discriminant_specification, access_to_object_definition,
32501 access_function_definition, allocator, access_procedure_definition,
32502 access_definition, parameter_specification, All_Present and
32503 Constant_Present flags available on access_definition nodes.
32505 2004-03-29 Robert Dewar <dewar@gnat.com>
32507 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
32508 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
32509 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
32510 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
32511 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
32512 sem_prag.adb: Updates to handle multiple units/file
32514 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
32516 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
32517 sem_util.adb: Minor reformatting
32519 * sem_ch12.adb: Add comment for previous change
32521 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
32523 * osint.adb (Executable_Prefix): Set Exec_Name to the current
32524 executable name when not initialized. Otherwise, use its current value.
32526 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
32527 initialize it to another executable name than the current one. This
32528 allows to configure paths for an executable name (gnatmake) different
32529 from the current one (gnatdist).
32531 2004-03-29 Ed Schonberg <schonberg@gnat.com>
32533 * exp_ch6.adb (Expand_Call): A call to a function declared in the
32534 current unit cannot be inlined if it appears in the body of a withed
32535 unit, to avoid order of elaboration problems in gigi.
32537 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
32538 information for protected (wrapper) operation as well, to simplify gdb
32541 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
32542 protected body, indicate that the entity for the generated spec comes
32543 from source, to ensure that references are properly generated for it.
32544 (Build_Body_To_Inline): Do not inline a function that returns a
32547 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
32548 apply convention to homonyms that are declared explicitly.
32550 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
32551 that renames an equality operator and the operands are overloaded,
32552 resolve them with the declared formal types, before rewriting as an
32555 2004-03-29 GNAT Script <nobody@gnat.com>
32557 * Make-lang.in: Makefile automatically updated
32559 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32561 * memtrack.adb: Log realloc calls, which are treated as free followed
32564 2004-03-25 Vincent Celier <celier@gnat.com>
32566 * prj-makr.adb (Process_Directories): Detect when a file contains
32567 several units. Do not include such files in the config pragmas or
32568 in the naming scheme.
32570 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
32571 Resolve links only when not in Trusted_Mode.
32572 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
32573 Do not resolve links for the display names.
32575 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
32576 resolve links when computing the display names.
32578 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
32580 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
32581 attribute reference does not denote a subtype, it can be any
32582 expression that has a classwide type, potentially after an implicit
32583 dereference. In particular, the prefix can be a view conversion for
32584 a classwide type (for which Is_Object_Reference holds), but it can
32585 also be a value conversion for an access-to-classwide type. In the
32586 latter case, there is an implicit dereference, and the original node
32587 for the prefix does not verify Is_Object_Reference.
32589 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
32590 conversion of a discriminant-dependent component of a mutable object
32593 2004-03-25 Ed Schonberg <schonberg@gnat.com>
32595 * freeze.adb (Freeze_Entity): When an inherited subprogram is
32596 inherited, has convention C, and has unconstrained array parameters,
32597 place the corresponding warning on the derived type declaration rather
32598 than the original subprogram.
32600 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
32601 indication on renaming declaration, if formal has a box and actual
32604 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
32605 determine whether to generate an implicit or explicit reference to
32606 the renamed entity.
32608 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
32609 subprogram renaming comes from a defaulted formal subprogram in an
32612 2004-03-25 Gary Dismukes <dismukes@gnat.com>
32614 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
32615 value expressions to ensure that calls within a component definition
32616 will be checked (since those are evaluated during the record type's
32619 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
32621 * s-tpobop.adb: Code clean up:
32622 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
32624 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
32626 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
32628 * Makefile.in: Clean up in the ravenscar run time.
32630 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32632 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
32633 of No_Strict_Aliasing to build_pointer_type_for_mode.
32634 * utils.c (update_pointer_to): Walk pointer and ref chains.
32636 2004-03-22 Cyrille Comar <comar@act-europe.fr>
32638 * ali.ads: Fix Comment about Dynamic_Elab.
32640 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
32641 Has_RACW, Is_Generic, etc.)
32642 (Output_Object, Gnatls): Take into account ALI files not attached to
32645 2004-03-22 Vincent Celier <celier@gnat.com>
32647 * gprep.adb: Change all String_Access to Name_Id
32648 (Is_ASCII_Letter): new function
32649 (Double_File_Name_Buffer): New procedure
32650 (Preprocess_Infile_Name): New procedure
32651 (Process_Files): New procedure
32652 (Gnatprep): Check if output and input are existing directories.
32653 Call Process_Files to do the real job.
32655 2004-03-22 Robert Dewar <dewar@gnat.com>
32657 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
32658 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
32660 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
32662 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
32663 case when the source contains only comments.
32665 2004-03-22 Ed Schonberg <schonberg@gnat.com>
32667 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
32668 declaration for a child subprogram body that acts as a spec, indicate
32669 that the entity in the declaration needs debugging information.
32671 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
32672 full view if the subtype is created for a constrained record component;
32673 gigi has enough information to construct the record, and there is no
32674 place in the tree for the declaration.
32676 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
32677 serial number for the dummy body that is built for analysis, to avoid
32678 inconsistencies in the generation of internal names when compiling
32681 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
32683 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
32686 2004-03-22 GNAT Script <nobody@gnat.com>
32688 * Make-lang.in: Makefile automatically updated
32690 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32692 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32693 * trans.c (tree_transform, emit_index_check): Likewise.
32694 * utils.c (build_template): Likewise.
32695 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
32696 (maybe_unconstrained_array, unchecked_convert): Likewise.
32697 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
32698 (build_unary_op): Likewise.
32699 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32700 (fill_vms_descriptor): Likewise.
32701 (build_call_alloc_dealloc): Likewise.
32703 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
32705 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
32708 * gnat_ug.texi: Add info directory category and entry.
32709 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32710 gnat_ug_wnt.texi: Regenerate.
32712 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
32714 * ada-tree.h: Update copyright notice.
32715 Minor reformatting.
32717 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
32719 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
32720 as regular exception objects and not as mere integers representing the
32721 condition code. The latter approach required some dynamics to mask off
32722 severity bits, which did not fit well into the GCC table based model.
32723 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
32724 exception data objects. We don't it and it would conflict with the other
32725 external symbol we have to generate for such exceptions.
32727 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
32728 the special code for VMS exceptions, since these are now represented
32729 as regular exceptions objects.
32731 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32733 * decl.c (debug_no_type_hash): Remove.
32734 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
32735 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
32737 2004-03-19 Laurent Guerby <laurent@guerby.net>
32739 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
32740 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
32742 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32744 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
32745 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
32746 (TYPE_RM_SIZE_INT): Directly use type.values.
32747 (TREE_LOOP_ID): Clean up check.
32748 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
32749 TYPE_VALUES, not TYPE_FIELDS.
32750 * trans.c (convert_with_check): Delay access of bounds of basetype
32751 until sure is numeric.
32753 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
32755 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
32758 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
32759 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
32760 Specific.Set instead of direct call to e.g pthread_setspecific.
32762 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
32764 * adaint.c: Update comments.
32766 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
32767 GNATLIB_SHARED for FreeBSD.
32769 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
32771 * init.c [VxWorks]: Do not fix the stack size for the environment task.
32772 When needed (stack checking) the stack size is retrieved
32773 from the VxWorks kernel.
32775 * Makefile.in: Flag -nostdinc is required when building the run time
32776 for avoiding looking for files in the base compiler.
32777 Add the VxWorks specific version of the package body for
32778 System.Stack_checking.Operations (5zstchop.adb).
32780 * Make-lang.in: Add the object file for
32781 System.Stack_Checking.Operations.
32783 * Makefile.rtl: Add object file for the package
32784 System.Stack_Checking.Operations.
32786 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
32788 * s-stache.ads, s-stache.adb: Move the operations related to stack
32789 checking from this package to package System.Stack_Checking.Operations.
32790 This way, stack checking operations are only linked in the final
32791 executable when using the -fstack-check flag.
32793 2004-03-18 Doug Rupp <rupp@gnat.com>
32795 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
32798 * 5qsystem.ads, 5xcrtl.ads: New files.
32800 2004-03-18 Vincent Celier <celier@gnat.com>
32802 * prj.adb (Reset): Reset hash table Files_Htable
32804 * prj-env.adb (Source_Paths, Object_Paths): New tables.
32805 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
32806 the procedures Add_To_Path_File.
32807 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
32808 making sure that each directory is present only once and, for object
32809 dirs, when a directory already present is added, the duplicate is
32810 removed and the directory is always put as the last in the table.
32811 Write the path files at the end of these accumulations.
32813 * prj-nmsc.adb (Record_Source): Add source file name in hash table
32814 Files_Htable for all sources.
32816 * prj-proc.adb (Process): Remove restrictions between not directly
32817 related extending projects.
32819 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
32821 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
32822 (Find_Sources): Minor speed optimization.
32824 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
32825 parameter Trusted_Mode.
32827 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
32829 * scn.adb (Determine_License): Take into account a degenerated case
32830 when the source contains only comments.
32832 2004-03-18 Ed Schonberg <schonberg@gnat.com>
32834 * sem_warn.adb (Check_References): For a warning on a selected
32835 component that does not come from source, locate an uninitialized
32836 component of the record type to produce a more precise error message.
32838 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
32840 * 3zsoccon.ads: Fix multicast options.
32842 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
32845 2004-03-15 Robert Dewar <dewar@gnat.com>
32847 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
32848 pragma used for a private type.
32850 * lib-xref.adb (Generate_Reference): Do not generate warning if
32851 reference is in a different unit from the pragma Unreferenced.
32853 * 5vtpopde.adb: Minor reformatting
32854 Fix casing of To_Task_ID
32856 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
32857 flag if we have an unchecked conversion to an access type in the same
32860 2004-03-15 Geert Bosch <bosch@gnat.com>
32862 * a-ngcoty.adb (Modulus): In alternate formula for large real or
32863 imaginary parts, use Double precision throughout.
32865 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
32866 we want to be able to compile run-time with -gnata for testing, but
32867 this may also be instantiated in user code that is compiled with -gnata.
32869 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
32871 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
32872 codes. Having a separate type for this is useful to enforce consistency
32873 throughout the various run-time units.
32874 (Exception_Data): Use Exception_Code for Import_Code.
32876 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
32877 Natural and Integer in various places.
32878 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
32879 with the severity bits masked off.
32880 (Register_VMS_Exception): Handle the additional exception data pointer
32883 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
32884 component, now reflected by an exported accessor.
32885 (is_handled_by): New routine to compute whether the propagated
32886 occurrence matches some handler choice specification. Extracted out of
32887 get_action_description_for, and expanded to take care of the VMS
32889 (get_action_description_for): Use is_handled_by instead of an explicit
32890 complex condition to decide if the current choice at hand catches the
32891 propagated occurrence.
32893 * raise.h (Exception_Code): New type for C.
32895 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
32896 System.Standard_Library.Exception_Code, to allow references from the
32897 pragma import/export expander.
32899 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
32900 New accessors to allow easy access to GNAT exception data
32902 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
32903 redundant Handled_By_Others component, helper for the personality
32904 routine which will now be able to call the appropriate exception data
32907 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
32908 component of Standard_Exception_Type to be the closest possible to
32909 Exception_Code in System.Standard_Library, that we cannot get at this
32910 point. Expand a ??? comment to notify that this type node should
32911 probably be rewritten later on.
32913 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
32914 registration call to include a pointer to the exception object in the
32917 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
32918 instead of int and explicit bitmasks.
32920 2004-03-15 Vincent Celier <celier@gnat.com>
32922 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
32923 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
32925 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
32926 longer needed now that it is in the spec of
32927 System.Tasking.Task_Attributes.
32929 * adaint.h, adaint.c: (__gnat_create_output_file): New function
32931 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
32933 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
32935 * make.adb (Gnatmake): Do not check the executable suffix; it is being
32936 taken care of in Scan_Make_Arg.
32937 (Scan_Make_Arg): Add the executable suffix only if the argument
32938 following -o, in canonical case, does not end with the executable
32939 suffix. When in verbose mode and executable file name does not end
32940 with executable suffix, output the executable name, in canonical case.
32942 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
32943 to avoid warnings when instantiating Ada.Task_Attributes.
32946 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
32947 in the correct order.
32949 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
32950 redirect standard output and error to a file for the invocation of the
32951 compiler, then read the file.
32953 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
32954 directory, instead of the Value.
32955 (Find_Source_Dirs): Remove useless code & comments.
32957 2004-03-15 Ed Schonberg <schonberg@gnat.com>
32959 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
32960 tagged type is inherited, and the parent operation is not frozen yet,
32961 force generation of a freeze node for the inherited operation, so the
32962 corresponding dispatch entry is properly initialized.
32963 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
32964 when looking for user-defined equality operation.
32966 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
32967 boolean when locating primitive equality of tagged component.
32969 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
32970 bit-aligned field and the right-hand side a string literal, introduce
32971 a temporary before expanding assignment into a loop.
32973 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
32974 priority in full, to ensure that any expanded subepxressions of it are
32975 elaborated in the scope of the init_proc.
32977 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
32978 after object declaration, skipping over code that may have been
32979 generated for validity checks.
32981 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
32982 discriminants, ignore the known discriminants of its full view, if
32983 any, to check legality.
32985 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
32986 component if type has unknown discriminants.
32987 (Analyze_Private_Extension_Declaration): Discriminant constraint is
32988 null if type has unknown discriminants.
32990 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
32991 for end label when present.
32993 * s-fileio.adb (Open): When called with a C_Stream, use given name for
32994 temporary file, rather than an empty string.
32996 2004-03-15 Ed Falis <falis@gnat.com>
32998 * s-thread.adb: Removed, no longer used.
33000 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33002 * decl.c (target.h): Now include.
33003 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
33004 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
33005 (validate_size): For POINTER_TYPE, get smallest size permitted on
33008 * fe.h: Sort Einfo decls and add Set_Mechanism.
33010 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
33011 (ada/decl.o): Depends on target.h.
33013 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
33014 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
33016 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
33018 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
33020 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
33021 Insert_Dereference_Action when rewriting an implicit dereference into
33022 an explicit one, this will be taken care of during expansion of the
33023 explicit dereference.
33024 (Expand_N_Slice): Same. Always do the rewriting, even for the case
33025 of non-packed slices, since the dereference action generated by
33026 expansion of the explicit dereference is needed in any case.
33027 (Expand_N_Selected_Component): When rewriting an implicit dereference,
33028 analyze and resolve the rewritten explicit dereference so it is seen
33030 (Insert_Dereference_Action): This procedure is now called only for the
33031 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
33032 dereferences that do not come from source (including explicit
33033 dereferences resulting from rewriting implicit ones), but do not
33034 recursively insert a check for the dereference nodes contained within
33036 (Insert_Dereference_Action): Clarify and correct comment.
33038 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
33041 Move language detection to the top level.
33042 * config-lang.in: Build by default.
33044 2004-03-05 Robert Dewar <dewar@gnat.com>
33046 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
33048 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
33049 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
33050 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
33051 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
33052 unchecked conversion to spec to avoid warnings.
33054 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
33057 * 7stpopsp.adb: Correct casing in To_Task_ID call
33059 * a-strsea.ads, a-strsea.adb: Minor reformatting
33061 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
33063 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
33064 Adjust Max_Msg_Length to be clearly large enough.
33066 * fe.h: Define In_Same_Source_Unit
33068 * osint.adb: Add pragma Warnings Off to suppress warnings
33069 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
33072 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
33074 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
33076 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
33078 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
33080 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
33082 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
33083 node. We now do generate them for gcc back end.
33085 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
33088 * sinput-c.adb: Fix bad name in header.
33089 Add pragma Warnings Off to suppress aliasing warning.
33091 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
33093 * snames.h, snames.ads, snames.adb: Add entry for pragma
33094 No_Strict_Aliasing.
33096 2004-03-05 Vincent Celier <celier@gnat.com>
33098 * prj-com.ads: Add hash table Files_Htable to check when a file name
33099 is already a source of another project.
33101 * prj-nmsc.adb (Record_Source): Before recording a new source, check
33102 if its file name is not already a source of another project. Report an
33105 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
33106 source file name, call gnatpp with all the sources of the main project.
33108 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
33111 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
33112 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
33113 /RUNTIME_SYSTEM=, converted to --RTS=
33114 /NOTABS, converted to -notabs
33116 2004-03-05 Pascal Obry <obry@gnat.com>
33118 * make.adb: Minor reformatting.
33120 2004-03-05 Ed Schonberg <schonberg@gnat.com>
33122 Part of implemention of AI-262.
33123 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
33125 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
33128 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
33129 when component type is a partially constrained class-wide subtype.
33130 (Constrain_Discriminated_Type): If parent type has unknown
33131 discriminants, a constraint is illegal, even if full view has
33133 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
33134 with unknown discriminants whose full view is a discriminated record.
33136 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
33137 flag, to handle properly derivations of tagged types with unknown
33139 (Analyze_Package_Spec, Analyze_Package_Body): Install
33140 Private_With_Clauses before analyzing private part or body.
33142 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
33143 Has_Discriminants can be true for a given type (documentation).
33145 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
33147 * s-restri.ads: Fix license (GPL->GMGPL).
33149 * s-tassta.adb: Minor reformatting.
33151 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33152 by calls to Exit_One_ATC_Level, since additional clean up is performed
33155 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33156 by calls to Exit_One_ATC_Level, since additional clean up is performed
33159 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33161 * trans.c: Reflect GCC changes to fix bootstrap problem.
33162 Add warning for suspicious aliasing unchecked conversion.
33164 2004-03-05 GNAT Script <nobody@gnat.com>
33166 * Make-lang.in: Makefile automatically updated
33168 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
33170 * ali.adb (Read_Instantiation_Instance): Do not modify the
33171 current_file_num when reading information about instantiations, since
33172 this corrupts files in later references.
33174 2004-03-02 Vincent Celier <celier@gnat.com>
33176 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
33177 before checking if it is read-only.
33179 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
33180 of SRC_DIRS and eliminate duplicates.
33182 * gprcmd.adb: Replace command "path" with command "path_sep" to return
33183 the path separator.
33184 (Usage): Document path_sep
33186 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
33187 C++ compiler. No need for a script.
33188 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
33189 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
33192 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
33193 where there are Ada sources.
33194 (Set_Ada_Paths): Only add to the include path the source dirs of project
33196 (Add_To_Path): Add the Display_Values of the directories, not their
33199 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
33202 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
33204 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
33205 Value is canonicalized.
33206 (Language_Independent_Check): Do not copy Value to Display_Value when
33207 canonicalizing Value.
33209 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
33210 path to find limited with cycles.
33211 (Parse_Single_Project): Use canonical cased path to find the end of a
33214 2004-03-02 Ed Schonberg <schonberg@gnat.com>
33216 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
33217 and not a child unit.
33219 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
33220 appear in a with_clause.
33222 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
33223 only happen in type_annotate mode, do not try to elaborate it.
33225 * exp_util.adb (Force_Evaluation): If expression is a selected
33226 component on the left of an assignment, use a renaming rather than a
33227 temporary to remove side effects.
33229 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
33230 inlined instance body, which is analyzed before the end of the
33233 2004-03-02 Robert Dewar <dewar@gnat.com>
33235 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
33236 sem_ch4.adb: Use new feature for substitution of keywords in VMS
33238 * errout.ads, errout.adb: Implement new circuit for substitution of
33241 * sem_case.adb (Analyze_Choices): Place message properly when case is
33242 a subtype reference rather than an explicit range.
33244 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
33246 2004-03-02 Doug Rupp <rupp@gnat.com>
33248 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
33250 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
33252 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
33254 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33256 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
33259 2004-02-25 Robert Dewar <dewar@gnat.com>
33261 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33262 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
33263 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
33264 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
33265 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
33266 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
33267 the defining instance of the type to avoid aliasing problems.
33268 Fix copyright header. Fix bad comments in package header.
33270 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
33272 2004-02-25 Ed Schonberg <schonberg@gnat.com>
33274 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
33275 rewritten as references when aliased through an address clause.
33277 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
33278 whether call can be interpreted as an indirect call to the result of a
33279 parameterless function call returning an access subprogram.
33281 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
33284 * exp_ch7.adb (Make_Clean): Remove generation of calls to
33285 Unlock[_Entries], since this is now done by Service_Entries directly.
33287 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
33289 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
33290 Requeue_Call for better code readability. Change spec and update calls:
33291 PO_Service_Entries now unlock the PO on exit.
33292 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
33293 PO_Service_Entries.
33295 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
33297 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
33299 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
33301 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
33302 protected subprogram call and analyzing the result of such expanding
33303 in case when the called protected subprogram is eliminated.
33305 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
33308 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
33310 * Makefile.in: Clean ups.
33312 2004-02-23 Ed Schonberg <schonberg@gnat.com>
33314 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
33315 protected operations if original subprogram is flagged as eliminated.
33316 (Expand_N_Subprogram_Body): For a protected operation, create
33317 discriminals for next operation before checking whether the operation
33320 * exp_ch9.adb (Expand_N_Protected_Body,
33321 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
33322 for internal protected operations if the original subprogram is
33325 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
33326 declared in a single protected object.
33328 2004-02-23 Vincent Celier <celier@gnat.com>
33330 * prj-attr.adb: Make attribute Builder'Executable an associative array,
33331 case insensitive if file names are case insensitive, instead of a
33332 standard associative array.
33334 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
33335 them as case insensitive on platforms where the file names are case
33338 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
33339 project file has already been parsed that canonical path are compared.
33341 2004-02-23 Robert Dewar <dewar@gnat.com>
33343 * sinput-c.ads: Correct bad unit title in header
33345 * freeze.adb: Minor reformatting
33347 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33349 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
33350 nonaddressable COMPONENT_REF that is removing padding that we are
33351 taking the address of, take the address of the padded record instead
33352 if item is variable size.
33354 2004-02-20 Robert Dewar <dewar@gnat.com>
33356 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
33358 2004-02-20 Ed Schonberg <schonberg@gnat.com>
33360 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
33361 itype references for the constrained designated type of a component
33362 whose base type is already frozen.
33364 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
33366 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
33367 avoid GCC warnings.
33369 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
33371 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
33372 identifier for a phantom package that rewrites the formal package
33373 declaration with a box. The Add semantic decorations for the defining
33374 identifier from the original node (that represents the formal package).
33376 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
33378 * Make-lang.in (ada/stamp-sdefault): Use the top level
33381 2004-02-19 Richard Henderson <rth@redhat.com>
33383 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
33385 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
33387 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
33388 Scan_ALI can be used for multiple ALI files without reinitializing
33391 2004-02-18 Robert Dewar <dewar@gnat.com>
33393 * debug.adb: Minor reformatting.
33395 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33397 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
33398 to zero if there is an address clause.
33400 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
33402 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
33404 2004-02-18 Gary Dismukes <dismukes@gnat.com>
33406 * layout.adb (Layout_Component_List): Revise generation of call to
33407 discriminant-checking function to pass selections of all of the type's
33408 discriminants rather than just the variant-controlling discriminant.
33410 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
33412 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
33413 fail in the current setup and triggers spurious system error messages.
33414 Pretend it occurred and failed instead.
33416 2004-02-18 Vincent Celier <celier@gnat.com>
33418 * bld.adb: Mark FLDFLAGS as saved
33419 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
33420 it is not the root project. Put each directory to be
33421 extended between double quotes to prevent it to be expanded on Windows.
33422 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
33423 the project file. Set them back to their initial values if they have not
33424 been set in the project file.
33426 * gprcmd.adb: (Gprdebug, Debug): New global variables
33427 (Display_Command): New procedure
33428 (Usage): Document new command "linkopts"
33429 Call Display_Command when env var GPRDEBUG has the value "TRUE"
33430 Implement new command "linkopts"
33431 Remove quotes that may be around arguments for "extend"
33432 Always call Normalize_Pathname with arguments formatted for the platform
33434 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
33435 Change @echo to @$(display) in target clean to be able to clean silently
33437 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
33439 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
33442 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
33443 = Extending_All when current project is an extending all project.
33445 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
33446 set to True only for LINK command, after Unix switch -o.
33447 (Process_Arguments): Set Output_File_Expected to True for LINK command
33448 after Unix switch -o. When Output_File_Expected is True, never add an
33449 extension to a file name.
33451 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
33452 option file name, only to the --for-linker= switch.
33453 (Option_File_Name): If option file name do not end with ".opt", append
33456 2004-02-18 GNAT Script <nobody@gnat.com>
33458 * Make-lang.in: Makefile automatically updated
33460 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
33462 * Make-lang.in (stamp-sdefault): Do not depend on
33465 2004-02-12 Zack Weinberg <zack@codesourcery.com>
33467 * config-lang.in: Disable Ada by default until probe logic for
33468 a bootstrap Ada compiler can be moved to the top level configure
33471 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
33473 * decl.c (components_to_record): Don't claim that the internal fields
33474 we make to hold the variant parts are semantically addressable, because
33477 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
33478 adjust the comment describing the modular type form when we can use it.
33479 (Install_PAT): Account for the Esiz renaming.
33481 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
33482 sc_onstack context indication before raising the exception to which
33483 the signal is mapped. Allows better handling of later signals possibly
33484 triggered by the resumed user code if the exception is handled.
33486 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
33488 * 5zinit.adb: Removed, no longer used.
33490 2004-02-12 Robert Dewar <dewar@gnat.com>
33492 * ali.adb: Remove separating space between parameters on R line. Makes
33493 format consistent with format used by the binder for Set_Globals call.
33495 * atree.ads, atree.adb: Minor reformatting (new function header format)
33497 * bindgen.adb: Add Run-Time Globals documentation section containing
33498 detailed documentation of the globals passed from the binder file to
33501 * gnatls.adb: Minor reformatting
33503 * init.c (__gnat_set_globals): Add note pointing to documentation in
33506 * lib-writ.ads, lib-writ.adb: Remove separating space between
33507 parameters on R line.
33508 Makes format consistent with format used by the binder for Set_Globals
33511 * osint.ads: Add 2004 to copyright notice
33514 * snames.ads: Correct capitalization of FIFO_Within_Priorities
33515 Noticed during code reading, documentation issue only
33517 * usage.adb: Remove junk line for obsolete C switch
33518 Noticed during code reading
33520 2004-02-12 Vincent Celier <celier@gnat.com>
33522 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
33523 extend for each directory, so that multiple /** directories are
33524 extended individually.
33525 (Recursive_Process): Set the default for LANGUAGES to ada
33527 * gprcmd.adb: Define new command "ignore", to do nothing.
33528 Implement new comment "path".
33530 * Makefile.generic: Suppress output when SILENT is set
33531 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
33532 used, so that the correct compiler is invoked.
33533 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
33534 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
33536 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
33538 * Makefile.in: Clean ups and remove obsolete targets.
33540 2004-02-12 Ed Schonberg <schonberg@gnat.com>
33542 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
33543 predicate declared in exp_util.
33545 * exp_util.adb: Add comments.
33547 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
33548 visibility before compiling context of the subunit.
33550 * sem_res.adb (Check_Parameterless_Call): If the context expects a
33551 value but the name is a procedure, do not attempt to analyze as a call,
33552 in order to obtain more telling diagnostics.
33554 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
33555 'Access on parameterless function calls.
33556 (Normalize_Actuals): For a parameterless function call with missing
33557 actuals, defer diagnostic until resolution of enclosing call.
33559 * sem_util.adb (Wrong_Type): If the context type is an access to
33560 subprogram and the expression is a procedure name, suggest a missing
33563 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
33564 Nathanael Nerode <neroden@gcc.gnu.org>
33568 Merge with libada-branch:
33569 * config-lang.in: Build libada only when ada is built.
33571 2004-02-09 Ed Schonberg <schonberg@gnat.com>
33573 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
33574 for a tagged type, verify that both formals have the same type.
33576 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
33577 temporary when the formal is an in-parameter and the actual a possibly
33580 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
33581 when expansion is disabled, to ensure proper name capture with
33582 overloaded literals. Condition can be of any boolean type, resolve
33585 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
33586 renaming is for a formal subprogram with a default operator name, and
33587 there is a usable operator that is visible at the point of
33590 2004-02-09 Robert Dewar <dewar@gnat.com>
33592 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
33593 rewrite to ignore errors in ali files, intended to allow tools downward
33594 compatibility with new versions of ali files.
33596 * ali.ads: Add new parameter Ignore_Errors
33598 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
33599 duplicating the error message giving the file with restrictions.
33601 * debug.adb: Add debug flag I for gnatbind
33603 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
33604 operators for the case where the operator is a defining operator.
33606 * exp_ch3.adb: Minor reformatting (new function spec format).
33608 * exp_ch4.adb: Add comment for previous change, and make minor
33609 adjustment to loop to always check for improper loop termination.
33610 Minor reformatting throughout (new function spec format).
33612 * gnatbind.adb: Implement -di debug flag for gnatbind
33614 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
33616 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
33618 * lib-load.adb: Fix bad assertion.
33619 Found by testing and code reading.
33620 Minor reformatting.
33622 * lib-load.ads: Minor reformatting.
33624 * lib-writ.adb: There is only one R line now.
33626 * lib-writ.ads: Add documentation on making downward compatible changes
33627 to ali files so old tools work with new ali files.
33628 There is only one R line now.
33629 Add documentation on format incompatibilities (with special GPS note)
33631 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
33633 * par-load.adb: Minor reformatting
33635 * sem_ch8.adb: Fix to error message from last update
33636 Minor reformatting and restructuring of code from last update
33638 * par-prag.adb, snames.adb, snames.ads, snames.h,
33639 sem_prag.adb: Implement pragma Profile.
33641 * stylesw.adb: Implement -gnatyN switch to turn off all style check
33644 * usage.adb: Add line for -gnatyN switch
33646 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
33648 2004-02-09 Albert Lee <lee@gnat.com>
33650 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
33652 2004-02-09 Ed Schonberg <schonberg@gnat.com>
33654 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
33657 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
33658 is nested in an instance that is not frozen yet, to avoid
33659 order-of-elaboration problems in gigi.
33661 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
33662 body the attribute is legal.
33664 2004-02-09 Robert Dewar <dewar@gnat.com>
33666 * s-rident.ads: Minor comment correction
33668 * targparm.adb: Remove dependence on uintp completely. There was
33669 always a bug in Make in that it called Targparm before initializing
33670 the Uint package. The old code appeared to get away with this, but
33671 the new code did not! This caused an assertion error in gnatmake.
33673 * targparm.ads: Fix bad comment, restriction pragmas with parameters
33674 are indeed fully supported.
33676 2004-02-06 Alan Modra <amodra@bigpond.net.au>
33678 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
33680 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
33682 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
33683 with targetm.calls.promote_prototypes.
33685 2004-02-04 Robert Dewar <dewar@gnat.com>
33687 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
33688 ali.ads, gprcmd.adb: Minor reformatting
33690 * bindgen.adb: Output restrictions string for new style restrictions
33693 * impunit.adb: Add s-rident.ads (System.Rident) and
33694 s-restri (System.Restrictions)
33696 * lib-writ.adb: Fix bug in writing restrictions string (last few
33699 * s-restri.ads, s-restri.adb: Change name Restrictions to
33700 Run_Time_Restrictions to avoid conflict with package name.
33701 Add circuit to read and acquire run time restrictions.
33703 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
33705 * restrict.ads, restrict.adb: Use the new restriction
33706 No_Task_Attributes_Package instead of the old No_Task_Attributes.
33708 * sem_prag.adb: No_Task_Attributes is a synonym of
33709 No_Task_Attributes_Package.
33711 * snames.ads, snames.adb: New entry for proper handling of
33712 No_Task_Attributes.
33714 * s-rident.ads: Adding restriction No_Task_Attributes_Package
33715 (AI-00249) that supersedes the GNAT specific restriction
33716 No_Task_Attributes.
33718 2004-02-04 Ed Schonberg <schonberg@gnat.com>
33721 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
33722 body, an identifier may be wrapped in an unchecked conversion.
33724 2004-02-04 Vincent Celier <celier@gnat.com>
33726 * lib-writ.ads: Comment update for the W lines
33728 * bld.adb: (Expression): An empty string list is static
33730 * fname-uf.adb: Minor comment update
33732 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
33734 * gnatbind.adb: Initialize Cumulative_Restrictions with the
33735 restrictions on the target.
33737 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
33739 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
33742 2004-02-02 Arnaud Charlet <charlet@gnat.com>
33744 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
33746 2004-02-02 Vincent Celier <celier@gnat.com>
33748 * gprcmd.adb (Check_Args): If condition is false, print the invoked
33749 comment before the usage.
33750 Gprcmd: Fail when command is not recognized.
33751 (Usage): Document command "prefix"
33753 * g-md5.adb (Digest): Process last block.
33754 (Update): Do not process last block. Store remaining characters and
33757 * g-md5.ads (Update): Document that several call to update are
33758 equivalent to one call with the concatenated string.
33759 (Context): Add fields to allow new Update behaviour.
33761 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
33762 defaulted to False.
33763 When May_Fail is True and no existing file can be found, return No_File.
33765 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
33768 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
33769 spec file name instead on the W line.
33771 2004-02-02 Robert Dewar <dewar@gnat.com>
33773 * ali.adb: Read and acquire info from new format restrictions lines
33775 * bcheck.adb: Add circuits for checking restrictions with parameters
33777 * bindgen.adb: Output dummy restrictions data
33778 To be changed later
33780 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
33781 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
33782 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
33783 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
33784 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
33786 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
33787 the warning message on access to possibly uninitialized variable S)
33788 Minor changes for new restrictions handling.
33790 * gnatbind.adb: Minor reformatting
33791 Minor changes for new restrictions handling
33792 Move circuit for -r processing here from bcheck (cleaner)
33794 * gnatcmd.adb, gnatlink.adb: Minor reformatting
33796 * lib-writ.adb: Output new format restrictions lines
33798 * lib-writ.ads: Document new R format lines for new restrictions
33801 * s-restri.ads/adb: New files
33803 * Makefile.rtl: Add entry for s-restri.ads/adb
33805 * par-ch3.adb: Fix bad error messages starting with upper case letter
33808 * restrict.adb: Major rewrite throughout for new restrictions handling
33809 Major point is to handle restrictions with parameters
33811 * restrict.ads: Major changes in interface to handle restrictions with
33812 parameters. Also generally simplifies setting of restrictions.
33814 * snames.ads/adb: New entry for proper handling of No_Requeue
33816 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
33817 restriction counting.
33818 Other minor changes for new restrictions handling
33820 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
33821 Restriction_Warnings now allows full parameter notation
33822 Major rewrite of Restrictions for new restrictions handling
33824 2004-02-02 Javier Miranda <miranda@gnat.com>
33826 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
33827 syntax rule for object renaming declarations.
33828 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
33829 component definitions.
33831 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
33833 (Array_Type_Declaration): Give support to access components. In addition
33834 it was also modified to reflect the name of the object in anonymous
33835 array types. The old code did not take into account that it is possible
33836 to have an unconstrained anonymous array with an initial value.
33837 (Check_Or_Process_Discriminants): Allow access discriminant in
33839 (Process_Discriminants): Allow access discriminant in non-limited types
33840 Initialize the new Access_Definition field in N_Object_Renaming_Decl
33841 node. Change Ada0Y to Ada 0Y in comments
33843 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
33844 equality operators.
33845 Change Ada0Y to Ada 0Y in comments
33847 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
33848 renamings Change Ada0Y to Ada 0Y in comments
33850 * sem_type.adb (Find_Unique_Type): Give support to the equality
33851 operators for universal access types
33852 Change Ada0Y to Ada 0Y in comments
33854 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
33856 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
33858 (N_Object_Renaming_Declaration): Addition of Access_Definition field
33859 Change Ada0Y to Ada 0Y in comments
33861 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
33862 component definition and object renaming nodes
33863 Change Ada0Y to Ada 0Y in comments
33865 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
33867 * restrict.adb: Use the new restriction identifier
33868 No_Requeue_Statements instead of the old No_Requeue for defining the
33869 restricted profile.
33871 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
33872 No_Requeue_Statements.
33874 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
33875 that supersedes the GNAT specific restriction No_Requeue. The later is
33876 kept for backward compatibility.
33878 2004-02-02 Ed Schonberg <schonberg@gnat.com>
33880 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
33881 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
33882 pragma and fix incorrect ones.
33884 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
33885 warning if the pragma is redundant.
33887 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
33889 * 5staprop.adb: Add missing 'constant' keywords.
33891 * Makefile.in: use consistent value for SYMLIB on
33892 platforms where libaddr2line is supported.
33894 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33896 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
33899 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
33901 * init.c (__gnat_install_handler): Setup an alternate stack for signal
33902 handlers in the environment thread. This allows proper propagation of
33903 an exception on stack overflows in this thread even when the builtin
33904 ABI stack-checking scheme is used without support for a stack reserve
33907 * utils.c (create_field_decl): Augment the head comment about bitfield
33908 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
33909 here, because the former is not accurate enough at this point.
33910 Let finish_record_type decide instead.
33911 Don't make a bitfield if the field is to be addressable.
33912 Always set a size for the field if the record is packed, to ensure the
33913 checks for bitfield creation are triggered.
33914 (finish_record_type): During last pass over the fields, clear
33915 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
33916 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
33917 from DECL_BIT_FIELD.
33919 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
33921 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
33922 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
33923 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
33925 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33927 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
33929 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
33930 (ZCX_By_Default): Likewise.
33931 (Front_End_ZCX_Support): Likewise.
33933 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
33934 (Initialize_Lock): Mark Level unreferenced.
33935 (Sleep): Mark Reason unreferenced.
33936 (Timed_Sleep): Likewise.
33937 (Wakeup): Likewise.
33938 (Exit_Task): Use Result.
33939 (Check_No_Locks): Mark Self_ID unreferenced.
33941 * 5gtasinf.adb (New_Sproc): Make Attr constant.
33942 (Bound_Thread_Attributes): Make Sproc constant.
33943 (New_Bound_Thread_Attributes): Likewise.
33945 2004-01-26 Ed Schonberg <schonberg@gnat.com>
33947 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
33948 one-dimensional array an slice assignments, when component type is
33951 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
33952 component type is controlled, and control_actions are in effect, use
33953 TSS procedure rather than generating inline code.
33955 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
33956 arrays with controlled components.
33958 2004-01-26 Vincent Celier <celier@gnat.com>
33960 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
33961 command line for the non VMS case.
33963 * gnatlink.adb (Process_Binder_File): When building object file, if
33964 GNU linker is used, put all object paths between quotes, to prevent ld
33965 error when there are unusual characters (such as '!') in the paths.
33967 * Makefile.generic: When there are sources in Ada and the main is in
33968 C/C++, invoke gnatmake with -B, instead of -z.
33970 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
33971 from VMS_Conversion.
33972 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
33973 specification of argument file on the command line.
33975 2004-01-26 Bernard Banner <banner@gnat.com>
33977 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
33979 2004-01-26 Ed Schonberg <schonberg@gnat.com>
33981 * snames.adb: Update copyright notice.
33982 Add info on slice assignment for controlled arrays.
33984 2004-01-23 Robert Dewar <dewar@gnat.com>
33986 * exp_aggr.adb: Minor reformatting
33988 * exp_ch9.adb: Minor code clean up
33990 Fix bad character in comment
33993 * targparm.adb (Get_Target_Parameters): Give clean abort error on
33994 unexpected end of file, along with more detailed message.
33996 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33998 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
34001 * decl.c (copy_alias_set): New function.
34002 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
34004 2004-01-23 Doug Rupp <rupp@gnat.com>
34006 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
34007 lib$${file} in case subsequent character is not a separator.
34009 2004-01-23 Vincent Celier <celier@gnat.com>
34011 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
34012 when the GCC version is at least 3.
34014 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
34015 Remove all "Opt.", to prepare for opt split
34017 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
34018 Extends_All. Set to True when the project parsed is an extending all
34019 project. Fails for importing an extending all project only when the
34020 imported project is an extending all project.
34021 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
34022 depending on the value of Extends_All returned.
34024 * prj-proc.adb (Process): Check that no project shares its object
34025 directory with a project that extends it, directly or indirectly,
34026 including a virtual project.
34027 Check that no project extended by another project shares its object
34028 directory with another also extended project.
34030 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
34031 Kind = N_With_Clause
34033 * prj-tree.ads: Minor reformatting
34034 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
34036 2004-01-23 Ed Schonberg <schonberg@gnat.com>
34038 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
34039 applies to a type with an incomplete view, use full view in Name of
34040 clause, for consistency with uses of Get_Attribute_Definition_Clause.
34042 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
34044 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
34045 SCHED_RR, since other values are not supported by this policy.
34046 (Initialize): Move initialization of mutex attribute to package
34047 elaboration, to prevent early access to this variable.
34049 * Makefile.in: Remove mention of Makefile.adalib, unused.
34051 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
34052 1ssecsta.ads: Removed, unused.
34054 2004-01-21 Javier Miranda <miranda@gnat.com>
34056 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
34057 entity if already built in the current scope.
34059 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
34060 reminder in internal scopes. Required for nested limited aggregates.
34062 2004-01-21 Doug Rupp <rupp@gnat.com>
34064 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
34065 VMS. Replace all occurences of libgnat- and libgnarl- with
34066 libgnat$(hyphen) and libgnarl$(hyphen).
34067 Fixed shared library build problem on VMS.
34069 2004-01-21 Robert Dewar <dewar@gnat.com>
34071 * mlib-prj.adb: Minor reformatting
34073 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
34075 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
34076 'constant' keywords for declaration of pointers that are not modified.
34078 * exp_pakd.adb: Fix English in comment.
34080 2004-01-21 Ed Schonberg <schonberg@gnat.com>
34083 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
34084 copy all attributes of the parent, including the foreign language
34087 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
34090 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
34091 for 'delay until' statement.
34093 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
34095 * Make-lang.in: Replace $(docdir) with doc.
34096 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
34097 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
34098 to use consistent MAKEINFO rule.
34099 (ada.man, ada.srcman): Dummy entry.
34100 (ADA_INFOFILES): Define.
34101 (ada.info, ada.srcinfo): New rules.
34103 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
34105 * utils.c: Update copyright notice, missed in previous change.
34107 2004-01-19 Vincent Celier <celier@gnat.com>
34109 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
34110 args if Bind is True. Set First_ALI, if not already done.
34111 (Build_Library): For Stand Alone Libraries, extract from one ALI file
34112 an eventual --RTS switch, for gnatbind, and all backend switches +
34113 --RTS, for linking.
34115 2004-01-19 Robert Dewar <dewar@gnat.com>
34117 * sem_attr.adb, memtrack.adb: Minor reformatting
34119 2004-01-19 Ed Schonberg <schonberg@gnat.com>
34121 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
34122 that rename enumeration literals. This is properly done in sem_eval.
34124 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
34125 to functions that rename enumeration literals.
34127 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
34128 functions that rename enumeration literals.
34130 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
34132 * Make-lang.in (utils.o): Depend on target.h.
34133 * utils.c: Include target.h.
34134 (process_attributes): Use targetm.have_named_sections instead
34135 of ASM_OUTPUT_SECTION_NAME.
34137 2004-01-16 Andreas Jaeger <aj@suse.de>
34139 * Makefile.in: Add $(DESTDIR).
34141 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
34143 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
34144 also when not defining if a Size clause applies. That information is
34147 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
34149 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
34150 symbolic links for the shared gnat run time when needed.
34152 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
34154 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
34155 for writing, and terminate with an error message if not.
34157 2004-01-15 Ed Schonberg <schonberg@gnat.com>
34159 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
34160 warning on an access to subprogram in an instance, when the target
34161 type is declared in the same generic unit.
34162 (Eval_Attribute): If 'access is known to fail accessibility check,
34163 rewrite as a raise statement.
34165 2004-01-15 GNAT Script <nobody@gnat.com>
34167 * Make-lang.in: Makefile automatically updated
34169 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
34171 * Make-lang.in (ada.srcextra): Dummy entry.
34173 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
34175 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
34177 2004-01-13 Ed Schonberg <schonberg@gnat.com>
34179 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
34180 components that are initialized with aggregates.
34182 2004-01-13 Vincent Celier <celier@gnat.com>
34184 * gnatlink.adb (Process_Binder_File): To find directory of shared
34185 libgcc, if "gcc-lib" is not a subdirectory, look for the last
34186 subdirectory "lib" in the path of the shared libgnat or libgnarl.
34188 * make.adb (Gnatmake): If GCC version is at least 3, link with
34189 -shared-libgcc, when there is at least one shared library project.
34191 * opt.ads (GCC_Version): New integer constant.
34193 * adaint.c (get_gcc_version): New function.
34195 2004-01-13 Robert Dewar <dewar@gnat.com>
34197 * sem_dist.adb, sem_res.adb, sem_util.adb,
34198 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
34199 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
34201 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
34203 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
34204 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
34207 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
34209 * misc.c: Remove trailing spaces.
34210 Update copyright notice missed in previous change.
34213 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
34216 * Makefile.generic: Update copyright.
34217 Add license notice.
34219 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
34220 of prefix/share/make.
34222 * Makefile.prolog: Update copyright.
34223 Add license notice.
34225 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
34227 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
34228 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
34229 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
34232 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
34235 2004-01-12 Javier Miranda <miranda@gnat.com>
34237 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
34238 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
34239 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
34240 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
34241 Component_Definition node.
34243 2004-01-12 Ed Falis <falis@gnat.com>
34245 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
34247 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
34249 * link.c: Change default libgnat kind to STATIC for FreeBSD.
34251 2004-01-12 Bernard Banner <banner@gnat.com>
34253 * Makefile.in: map 86numaux to a-numaux for x86_64
34255 2004-01-12 Ed Schonberg <schonberg@gnat.com>
34257 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
34258 generated to rename a generic actual, go to the actual itself, the
34259 subtype is not a user-visible entity.
34261 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
34262 part is a private subtype, reset the visibility of its full view, if
34263 any, to be consistent.
34266 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
34267 to use a generic package G as a formal package for another generic
34270 2004-01-12 Robert Dewar <dewar@gnat.com>
34272 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
34274 * usage.adb: Remove mention of obsolete -gnatwb switch
34275 Noticed during code reading
34277 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
34279 * 1ssecsta.adb: Minor changes for -gnatwa warnings
34281 2004-01-12 GNAT Script <nobody@gnat.com>
34283 * Make-lang.in: Makefile automatically updated
34285 2004-01-09 Mark Mitchell <mark@codesourcery.com>
34287 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
34289 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34291 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
34293 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
34295 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
34296 Update comment and copyright date.
34297 * stamp-xgnatug: Delete.
34299 2004-01-05 Robert Dewar <dewar@gnat.com>
34301 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
34302 be modified by the binder generated main program if the -D switch is
34305 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
34306 imported functions (since now we expect this to be done for imported
34309 * 5vtaprop.adb: Add several ??? for sections requiring more comments
34310 Minor reformatting throughout
34312 * 5zinit.adb: Minor reformatting
34313 Add 2004 to copyright date
34314 Minor changes to avoid -gnatwa warnings
34315 Correct some instances of using OR instead of OR ELSE (noted while
34316 doing reformatting)
34318 * sprint.adb: Minor updates to avoid -gnatwa warnings
34320 * s-secsta.ads, s-secsta.adb:
34321 (SS_Get_Max): New function to obtain high water mark for ss stack
34322 Default_Secondary_Stack is not a constant since it may be modified by
34323 the binder generated main program if the -D switch is used.
34325 * switch-b.adb: New -Dnnn switch for binder
34328 Make -gnatg imply all warnings currently in -gnatwa
34330 * vms_conv.adb: Minor reformatting
34331 Add 2004 to copyright notice
34332 Add 2004 to printed copyright notice
34334 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
34335 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
34336 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
34337 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
34338 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
34339 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
34340 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
34341 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
34342 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
34343 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
34344 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
34345 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
34346 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
34347 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
34348 checks.adb, clean.adb, cstand.adb, einfo.ads,
34349 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
34350 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
34351 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
34352 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
34353 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
34354 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
34355 Minor reformatting and code clean ups.
34356 Minor changes to prevent -gnatwa warnings
34358 * ali.adb: Minor reformatting and cleanup of code
34359 Acquire new SS indication of secondary stack use from ali files
34361 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
34362 (since now we expect this to be done for imported functions)
34364 * bindgen.adb: Generate call to modify default secondary stack size if
34367 * bindusg.adb: Add line for new -D switch
34369 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
34370 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
34371 Add circuitry for both records and arrays to avoid gigi
34372 processing if the type involved has non-bit-aligned components
34374 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
34375 N_String_Literal node always references an E_String_Literal_Subtype
34376 entity. This may not be true in the future.
34377 (Possible_Bit_Aligned_Component): Move processing of
34378 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
34380 * exp_ch6.adb (Expand_Thread_Body): Pick up
34381 Default_Secondary_Stack_Size as variable so that we get value modified
34382 by possible -Dnnn binder parameter.
34384 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
34385 (Type_May_Have_Bit_Aligned_Components): New function.
34387 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
34388 (Type_May_Have_Bit_Aligned_Components): New function.
34390 * fe.h: (Set_Identifier_Casing): Fix prototype.
34391 Add declaration for Sem_Elim.Eliminate_Error_Msg.
34392 Minor reformatting.
34394 * freeze.adb (Freeze_Entity): Add RM reference to error message about
34395 importing constant atomic/volatile objects.
34396 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
34397 unless explicit Pure_Function pragma given, to avoid insidious bug of
34398 call to non-pure imported function getting eliminated.
34400 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
34401 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
34402 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
34403 Add 2004 to printed copyright notice
34405 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
34408 * Makefile.rtl: Add entry for g-sestin.o
34409 g-sestin.ads: New file.
34411 * mdll.adb: Minor changes to avoid -gnatwa warnings
34413 * mlib-tgt.adb: Minor reformatting
34415 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
34416 New switch Sec_Stack_Used (GNAT, GNATBIND)
34417 Make Default_Secondary_Stack_Size a variable instead of a constant,
34418 so that it can be modified by the new -Dnnn bind switch.
34420 * rtsfind.adb (Load_Fail): Give full error message in configurable
34421 run-time mode if all_errors mode is set. This was not done in the case
34422 of a file not found, which was an oversight.
34423 Note if secondary stack unit is used by compiler.
34425 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
34426 ineffective elaborate all pragmas on non-visible packages (this
34427 happened when a renamed subprogram was called). Now the elaborate all
34428 always goes on the package containing the renaming rather than the one
34429 containing the renamed subprogram.
34431 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
34432 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
34434 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
34435 has an Etype that references an E_String_Literal.
34436 (Eval_String_Literal): Avoid assumption that N_String_Literal node
34437 always references an E_String_Literal_Subtype entity. This may not
34438 be true in the future.
34440 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
34443 * sem_res.adb (Resolve): Specialize msg for function name used in proc
34446 2004-01-05 Ed Falis <falis@gnat.com>
34448 * g-debuti.adb: Replaced direct boolean operator with short-circuit
34451 2004-01-05 Vincent Celier <celier@gnat.com>
34453 * bld.adb: Minor comment updates
34454 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
34457 * make.adb (Gnatmake): Special process for files to compile/check when
34458 -B is specified. Fail when there are only foreign mains in attribute
34459 Main of the project file and -B is not specified. Do not skip bind/link
34460 steps when -B is specified.
34462 * makeusg.adb: Document new switch -B
34464 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
34466 * switch-m.adb: (Scan_Make_Switches): Process -B switch
34468 * vms_data.ads: Add new GNAT PRETTY qualifier
34469 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
34471 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34473 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
34476 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
34477 Set_Identifier_Casing.
34479 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
34480 has size that overflows.
34482 2004-01-05 Gary Dismukes <dismukes@gnat.com>
34484 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
34485 -gnatwa warning on static condition.
34487 2004-01-05 Doug Rupp <rupp@gnat.com>
34489 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
34491 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
34493 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
34494 all attributes, including read-only attribute.
34496 2004-01-05 Pascal Obry <obry@gnat.com>
34498 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
34499 library naming scheme.
34501 * mlib-prj.adb (Build_Library): Generate different names for the static
34502 or dynamic version of the GNAT runtime. This is needed to support the
34503 new shared library naming scheme.
34504 (Process_Binder_File): Add detection of shared library in binder file
34505 based on the new naming scheme.
34507 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
34508 scheme for the shared runtime libraries.
34511 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
34513 (install-gnatlib): Do not create symlinks for shared libraries.
34514 (gnatlib-shared-default): Idem.
34515 (gnatlib-shared-dual-win32): New target. Not used for now as the
34516 auto-import feature does not support arrays/records.
34517 (gnatlib-shared-win32): Do not create copy for the shared libraries.
34518 (gnatlib-shared-vms): Fix shared runtime libraries names.
34520 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
34521 dependent runtime shared library name.
34523 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
34525 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
34528 2004-01-05 Ed Schonberg <schonberg@gnat.com>
34530 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
34531 protected objects when allocator has a subtype indication, not a
34532 qualified expression. Note that qualified expressions may have to be
34533 checked when limited aggregates are implemented.
34535 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
34536 pure, emit warning.
34537 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
34538 subprogram is imported, remove warning.
34540 2004-01-05 Geert Bosch <bosch@gnat.com>
34542 * s-poosiz.adb: Update copyright notice.
34543 (Allocate): Use Task_Lock to protect against concurrent access.
34544 (Deallocate): Likewise.
34546 2004-01-05 Joel Brobecker <brobecker@gnat.com>
34548 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
34551 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
34553 * gnat_ug.texi: Force a CVS commit by updating copyright.
34554 * gnat_ug_vxw.texi: Regenerate.
34555 * gnat_ug_wnt.texi: Regenerate.
34556 * gnat_ug_vms.texi: Regenerate.
34557 * gnat_ug_unx.texi: Regenerate.
34559 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
34561 * trans.c: Remove uses of "register" specifier in
34562 declarations of local variables.
34564 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
34566 * stamp-xgnatug: New stamp file.
34567 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
34568 (ada/doctools/xgnatug): Add $(build_exeext).
34569 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
34570 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
34572 2003-12-17 Ed Falis <falis@gnat.com>
34574 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
34577 * a-exextr.adb: Add context clause for
34578 Ada.Exceptions.Last_Chance_Handler.
34580 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
34582 * cstand.adb (Create_Standard): Change the way how the declaration of
34583 the Duration type is created (making it the same way as it is for all
34584 the other standard types).
34586 2003-12-17 Robert Dewar <dewar@gnat.com>
34588 * s-crtl.ads: Fix header format
34589 Change Pure to Preelaborate
34591 2003-12-17 Ed Schonberg <schonberg@gnat.com>
34593 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
34594 the expression type only if it is declared in the current unit.
34596 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
34597 are universal and already analyzed, as can occur in constrained
34598 subcomponents that depend on discriminants, when one constraint is a
34601 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
34602 type Any_Fixed is legal as the argument of a conversion, if only one
34603 fixed-point type is in context.
34605 2003-12-17 GNAT Script <nobody@gnat.com>
34607 * Make-lang.in: Makefile automatically updated
34609 2003-12-15 Robert Dewar <dewar@gnat.com>
34611 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
34614 2003-12-15 Vincent Celier <celier@gnat.com>
34616 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
34617 (Gnatchop): Do not set failure status when reporting the number of
34620 2003-12-15 Doug Rupp <rupp@gnat.com>
34622 * s-ctrl.ads: New file.
34624 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
34626 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
34627 (GNATBIND_OBJS): Add ada/s-crtl.o.
34629 * Makefile.in [VMS]: Clean up ifeq rules.
34631 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
34632 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
34633 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
34634 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
34635 s-tasdeb.adb: Update copyright.
34636 Import System.CRTL.
34637 Make minor modifications to use System.CRTL declared functions instead
34638 of importing locally.
34640 2003-12-15 GNAT Script <nobody@gnat.com>
34642 * Make-lang.in: Makefile automatically updated
34644 2003-12-11 Ed Falis <falis@gnat.com>
34646 * 5zinit.adb: Clean up.
34648 * 5zintman.adb (Notify_Exception): replaced case statement with a call
34649 to __gnat_map_signal, imported from init.c to support
34650 signal -> exception mappings that depend on the vxWorks version.
34653 Created and exported __gnat_map_signal to support signal -> exception
34654 mapping that is dependent on the VxWorks version.
34655 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
34657 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
34659 * 5wosinte.ads: Link with -mthreads switch.
34661 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
34663 * init.c (__gnat_install_handler [NetBSD]): Set
34664 __gnat_handler_installed, as done on all other platforms.
34665 Remove duplicated code.
34667 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
34669 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
34671 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
34673 * sinfo.ads: Fix inconsistent example code in comment.
34675 2003-12-11 Robert Dewar <dewar@gnat.com>
34677 * a-tiinau.adb: Add a couple of comments
34679 * sem_ch3.adb: Minor reformatting
34682 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
34683 Minor reformatting throughout
34685 2003-12-11 Ed Schonberg <schonberg@gnat.com>
34687 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
34688 bounds of a loop, create a separate block in order to generate proper
34689 cleanup actions to prevent memory leaks.
34691 * sem_res.adb (Resolve_Call): After a call to
34692 Establish_Transient_Scope, the call may be rewritten and relocated, in
34693 which case no further processing is needed.
34695 * sem_util.adb: (Wrong_Type): Refine previous fix.
34696 Fixes ACATS regressions.
34699 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
34702 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
34704 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
34705 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
34708 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
34711 2003-12-08 Robert Dewar <dewar@gnat.com>
34713 * 7sintman.adb: Minor reformatting
34715 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
34716 standard linker options to get standard libraries linked. We now plan
34717 to provide dummy versions of these libraries to match the appropriate
34718 configurable run-time (e.g. if a library is not needed at all, provide
34719 a dummy empty library).
34721 * targparm.ads: Configurable_Run_Time mode no longer affects linker
34722 options (-L parameters and standard libraries). What we plan to do is
34723 to provide dummy libraries where the libraries are not required.
34725 * gnatbind.adb: Minor comment improvement
34727 2003-12-08 Javier Miranda <miranda@gnat.com>
34729 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
34730 aggregate in the parent. Otherwise constants with limited aggregates
34731 are not supported. Add new formal to pass the component type (Ctype).
34732 It is required to call the corresponding IP subprogram in case of
34733 default initialized components.
34734 (Gen_Assign): In case of default-initialized component, generate a
34735 call to the IP subprogram associated with the component.
34736 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
34737 of aggregate with default initialized components.
34738 (Has_Default_Init_Comps): Improve implementation to recursively check
34739 all the present expressions.
34741 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
34742 to indicate that the initialization call corresponds to a
34743 default-initialized component of an aggregate.
34744 In case of default initialized aggregate with tasks this parameter is
34745 used to generate a null string (this is just a workaround that must be
34746 improved later). In case of discriminants, this parameter is used to
34747 generate a selected component node that gives access to the discriminant
34750 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
34751 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
34752 allocated aggregates with default-initialized components.
34754 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
34755 the box notation is used in positional aggregates.
34757 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
34759 * lib.ads: Fix typo in comment
34761 2003-12-08 Vincent Celier <celier@gnat.com>
34763 * prj.adb (Project_Empty): New component Unkept_Comments
34764 (Scan): Remove procedure; moved to Prj.Err.
34766 * prj.ads (Project_Data): New Boolean component Unkept_Comments
34767 (Scan): Remove procedure; moved to Prj.Err.
34769 * prj-dect.adb: Manage comments for the different declarations.
34771 * prj-part.adb (With_Record): New component Node
34772 (Parse): New Boolean parameter Store_Comments, defaulted to False.
34773 Set the scanner to return ends of line and comments as tokens, if
34774 Store_Comments is True.
34775 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
34776 comments are associated with these nodes. Store the node IDs in the
34778 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
34780 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
34781 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
34782 current project. Call Tree.Restore afterwards. Set the various nodes
34783 for comment storage (Next_End, End_Of_Line, Previous_Line,
34786 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
34787 defaulted to False.
34789 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
34790 to False. When Truncated is True, truncate the string, never go to the
34792 (Write_End_Of_Line_Comment): New procedure
34793 (Print): Process comments for nodes N_With_Clause,
34794 N_Package_Declaration, N_String_Type_Declaration,
34795 N_Attribute_Declaration, N_Typed_Variable_Declaration,
34796 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
34797 Process nodes N_Comment.
34799 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
34800 without comments and there are some comments, set the flag
34801 Unkept_Comments to True.
34802 (Scan): If there are comments, set the flag Unkept_Comments to True and
34803 clear the comments.
34804 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
34805 (Next_End_Nodes: New table
34806 (Comment_Zones_Of): New function
34807 (Scan): New procedure; moved from Prj. Accumulate comments in the
34808 Comments table and set end of line comments, comments after, after end
34810 (Add_Comments): New procedure
34811 (Save, Restore, Seset_State): New procedures
34812 (There_Are_Unkept_Comments): New function
34813 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
34814 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
34816 (First_Comment_After, First_Comment_After_End): New functions
34817 (First_Comment_Before, First_Comment_Before_End): New functions
34818 (Next_Comment): New function
34819 (End_Of_Line_Comment, Follows_Empty_Line,
34820 Is_Followed_By_Empty_Line): New functions
34821 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
34822 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
34823 (Set_Next_Comment): New procedure
34824 (Default_Project_Node): Associate comment before if the node can store
34827 * scans.ads (Token_Type): New enumeration value Tok_Comment
34828 (Comment_Id): New global variable
34830 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
34831 defaulted to False.
34832 (Scan): Store position of start of comment. If comments are tokens, set
34833 Comment_Id and set Token to Tok_Comment when scanning a comment.
34834 (Set_Comment_As_Token): New procedure
34836 * sinput-p.adb: Update Copyright notice
34837 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
34838 that no longer exists.
34840 2003-12-08 Javier Miranda <miranda@gnat.com>
34842 * sem_aggr.adb: Add dependence on Exp_Tss package
34843 Correct typo in comment
34844 (Resolve_Aggregate): In case of array aggregates set the estimated
34845 type of the aggregate before calling resolve. This is needed to know
34846 the name of the corresponding IP in case of limited array aggregates.
34847 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
34848 in case of default initialized array components.
34850 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
34851 types. Required to give support to limited aggregates in generic
34854 2003-12-08 Ed Schonberg <schonberg@gnat.com>
34856 * sem_ch3.adb (Check_Initialization): For legality purposes, an
34857 inlined body functions like an instantiation.
34858 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
34859 until bounds are analyzed, to diagnose premature use of type.
34861 * sem_util.adb (Wrong_Type): Improve error message when the type of
34862 the expression is used prematurely.
34864 2003-12-08 GNAT Script <nobody@gnat.com>
34866 * Make-lang.in: Makefile automatically updated
34868 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
34870 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
34871 they are automatically generated by Make-lang.in and cause nothing but
34872 maintenance troubles.
34874 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
34876 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
34877 version of this unit).
34879 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
34881 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
34882 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
34883 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
34884 the body of System.Interrupt_Management common to several targets.
34885 Update copyright notice when appropriate.
34887 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
34890 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
34891 to ensure that the kernel fills in the interrupted context structure
34892 before calling a signal handler, which is necessary to be able to
34893 unwind past it. Update the copyright notice.
34895 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
34897 * a-elchha.ads: New file.
34899 * a-elchha.adb: New default last chance handler. Contents taken from
34900 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
34902 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
34903 is moved to a-elchha.adb to provide a target-independent default last
34906 * Makefile.rtl: Add a-elchha.o
34908 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
34910 2003-12-05 Ed Schonberg <schonberg@gnat.com>
34912 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
34913 declared in an instance, do not inline the call if the instance is not
34914 frozen yet, to prevent order of elaboration problems.
34916 * sem_prag.adb: Add comments for previous fix.
34918 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
34920 * g-table.adb: Use the right variable in Set_Item.
34921 Update copyright notice.
34923 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
34925 * Makefile.in: Remove unused rules.
34927 2003-12-05 Vincent Celier <celier@gnat.com>
34929 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
34930 -nostdlib. Not needed here after all.
34932 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
34935 * adaint.h, adaint.c, g-os_lib.ads:
34936 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
34937 on some platforms (including FreeBSD), it is a 64 bit value.
34938 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
34940 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
34942 * gnatvsn.ads (Library_Version): Now contain only the relevant
34944 (Verbose_Library_Version): New constant.
34946 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
34947 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
34948 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
34950 * gnatlbr.adb: Clean up: replace Library_Version by
34951 Verbose_Library_Version.
34953 * make.adb, lib-writ.adb, exp_attr.adb:
34954 Clean up: replace Library_Version by Verbose_Library_Version.
34956 * 5lintman.adb: Removed.
34959 Update and simplify computation of LIBRARY_VERSION.
34960 Fix computation of GSMATCH_VERSION.
34961 5lintman.adb is no longer used: replaced by 7sintman.adb.
34963 2003-12-03 Robert Dewar <dewar@gnat.com>
34966 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
34967 name. Modified to consider small non-bit-packed arrays as troublesome
34968 and in need of component-by-component assigment expansion.
34970 2003-12-03 Vincent Celier <celier@gnat.com>
34972 * lang-specs.h: Process nostdlib as nostdinc
34974 * back_end.adb: Update Copyright notice
34975 (Scan_Compiler_Arguments): Process -nostdlib directly.
34977 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
34980 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
34981 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
34982 included in HIE_NONE_TARGET_PAIRS.
34984 2003-12-03 Ed Schonberg <schonberg@gnat.com>
34987 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
34988 is legal in an instance, because legality is cheched in the template.
34991 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
34992 appplied to an unchecked conversion of a formal parameter.
34995 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
34998 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
35000 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
35001 routines. The second one is new functionality to deal with backtracing
35002 through signal handlers.
35003 (unwind): Split into the two separate subroutines above.
35004 Update the documentation, and deal properly with sizeof (REG) different
35005 from sizeof (void*).
35007 2003-12-01 Nicolas Setton <setton@act-europe.fr>
35009 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
35010 so that the debugger can reliably access the value of the parameter,
35011 and therefore is able to display the exception name when an exception
35012 breakpoint is reached.
35014 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
35016 * fmap.adb: Fix typo in warning message.
35018 * g-socket.ads, g-socket.adb: Make Free a visible instance of
35019 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
35021 2003-12-01 Vincent Celier <celier@gnat.com>
35023 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
35025 (Build_Library): Get the switches only if Default_Switches is declared
35028 2003-12-01 Ed Schonberg <schonberg@gnat.com>
35030 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
35031 actuals that are indexed components, reanalyze actual to ensure that
35032 packed array references are properly expanded.
35034 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
35035 attempted assignment to a discriminant.
35037 2003-12-01 Robert Dewar <dewar@gnat.com>
35039 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
35042 * switch-c.adb: Minor reformatting of comments
35044 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35046 * Makefile.in: Clean ups.
35048 2003-12-01 GNAT Script <nobody@gnat.com>
35050 * Make-lang.in: Makefile automatically updated
35052 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35054 * 5wsystem.ads: Disable zero cost exception, not ready yet.
35056 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
35058 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
35059 to force serialization.
35061 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
35063 * g-socket.ads, g-socket.adb:
35064 Clarify documentation of function Stream. Introduce a Free procedure
35065 to release the returned Stream once it becomes unused.
35067 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
35069 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
35071 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
35072 since NT 4 cannot handle timeout values that are too large,
35073 e.g. DWORD'Last - 1.
35075 2003-11-26 Ed Schonberg <schonberg@gnat.com>
35078 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
35079 in procedure calls and whose expansion must be deferred.
35081 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
35085 (Build_Derived_Array_Type): Create operator for unconstrained type
35086 if ancestor is unconstrained.
35088 2003-11-26 Vincent Celier <celier@gnat.com>
35090 * make.adb (Project_Object_Directory): New global variable
35091 (Change_To_Object_Directory): New procedure
35092 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
35093 of Change_Dir directly. Do not change working directory to object
35094 directory of main project after each compilation.
35095 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
35097 Change to object directory of main project before binding step.
35098 (Initialize): Initialize Project_Object_Directory to No_Project
35101 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
35102 binding a Stand-Alone Library.
35104 * output.adb: Update Copyright notice
35105 (Write_Char): Output buffer when full
35107 2003-11-26 Robert Dewar <dewar@gnat.com>
35109 * sem_ch13.adb: (Check_Size): Reset size if size is too small
35112 (Check_Size): Fix documentation to include bit-packed array case
35114 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
35116 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
35118 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
35120 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
35123 * utils.c (init_gigi_decls): Change name of built-in setjmp to
35124 __builtin_setjmp, since this is apparently needed by recent
35127 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35129 * adadecode.c: Only include ctype.h if not IN_GCC.
35130 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
35132 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
35135 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
35136 signals and interrupts.
35138 * 5zintman.ads: New File.
35140 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
35141 add exception signals to the set of unmasked signals.
35144 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
35145 between signals and interrupts.
35146 Add to Unblocked_Signal_Mask the set of signals that are in
35150 Adding a check to see whether the Interrupt_ID we want to unmask is in
35151 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
35152 reason is that the index type of the Keep_Unmasked array is not always
35153 Interrupt_ID; it may be a subtype of Interrupt_ID.
35155 2003-11-24 Gary Dismukes <dismukes@gnat.com>
35158 (Remove_Side_Effects): Condition constantness of object created for a
35159 an unchecked type conversion on the constantness of the expression
35160 to ensure the correct value for 'Constrained when passing components
35161 of view-converted class-wide objects.
35163 2003-11-24 Robert Dewar <dewar@gnat.com>
35165 * par-load.adb (Load): Improve handling of misspelled and missing units
35166 Removes several cases of compilation abandoned messages
35168 * lib.adb: (Remove_Unit): New procedure
35170 * lib.ads: (Remove_Unit): New procedure
35172 * lib-load.adb: Minor reformatting
35174 2003-11-24 Vincent Celier <celier@gnat.com>
35177 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
35178 (Marking_Label): Label to mark processed source files. Incremented for
35180 (Gnatmake): Increase Marking_Labet for each executable
35181 (Is_Marked): Compare against marking label
35182 (Mark): Mark with marking label
35184 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
35187 Move the declaration of the TSD for System.Threads to System.Soft_Links.
35190 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
35191 (rts-cert): build a single relocatable object for the run-time lib.
35194 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
35197 Use gnatls rather than gcc to obtain the location of GNAT RTL for
35200 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
35202 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
35203 can not use it as before (that is, as a variable) when dumping it into
35204 the tree file. Add a local variable to store the result of this
35205 function and to be used as the string to be written into the tree.
35207 * scn.adb (Initialize_Scanner): Add comments explaining the recent
35210 * sinput.adb (Source_First, Source_Last): In case of
35211 Internal_Source_File, replace returning attributes of
35212 Internal_Source_Ptr (which is wrong) with returning attributes of
35215 2003-11-24 Ed Schonberg <schonberg@gnat.com>
35218 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
35219 used for implicit concatenation operators.
35223 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
35224 task bodies that are in the scope of a Suppress pragma.
35225 (Check_A Call): Use the flag to prevent spurious elaboration checks.
35227 * sinfo.ads, sinfo.adb:
35228 New flag No_Elaboration_Check on function/procedure calls, to properly
35229 suppress checks on calls in task bodies that are within a local suppress
35233 (Expand_Concatenate_Other): Use the proper integer type for the
35234 expression for the upper bound, to avoid universal_integer computations
35237 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
35239 * .cvsignore: Delete.
35241 2003-11-21 Andreas Schwab <schwab@suse.de>
35243 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
35245 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
35247 * 5wsystem.ads: Enable zero cost exception.
35249 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
35251 * 5ztiitho.adb: Remove an unreferenced variable.
35253 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
35255 * adaint.c: For FreeBSD, use mkstemp.
35257 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
35259 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
35261 2003-11-21 Robert Dewar <dewar@gnat.com>
35263 * bld.adb: Remove useless USE of gnatvsn
35265 * gnatchop.adb: Minor reformatting
35266 Clean up version handling to be more consistent
35268 * gnatxref.adb: Minor reformatting
35270 * gprcmd.adb: Minor reformatting
35271 Fix output of copyright to be more consistent with other tools
35273 2003-11-21 Vincent Celier <celier@gnat.com>
35275 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
35277 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
35279 * atree.adb (Initialize): Add initializations for global variables
35280 used in New_Copy_Tree.
35282 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
35283 Internal_Source_File as the actual).
35284 Put the set of statements creating Any_Character before the set of
35285 statements creating Any_Array to have Any_Character fully initialized
35286 when it is used in creating Any_Array.
35288 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
35289 not call Scan in case if the actual is Internal_Source_File
35290 Add 2003 to copyright note.
35292 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
35293 processing Internal_Source_File.
35295 * types.ads: Add the constant Internal_Source_File representing the
35296 source buffer for artificial source-code-like strings created within
35297 the compiler (the definition of Source_File_Index is changed).
35299 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
35301 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
35302 56system.ads: New file, FreeBSD version.
35304 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
35306 * Make-lang.in (ada.extraclean): Delete.
35308 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
35310 * gnatmem.adb: Clean up verbose output.
35312 * gprcmd.adb: Change copyright to FSF.
35314 2003-11-19 Vincent Celier <celier@gnat.com>
35316 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
35317 and Version (ignored).
35319 * symbols.ads: (Policy): New type
35320 (Initialize): New parameter Reference, Symbol_Policy and
35322 Remove parameter Force.
35323 Minor reformatting.
35325 * snames.ads, snames.adbadb: New standard names
35326 Library_Reference_Symbol_File and Library_Symbol_Policy
35329 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
35333 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
35335 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
35337 * prj.adb: (Project_Empty): New component Symbol_Data
35339 * prj.ads: (Policy, Symbol_Record): New types
35340 (Project_Data): New component Symbol_Data
35343 New attributes Library_Symbol_File, Library_Symbol_Policy and
35344 Library_Reference_Symbol_File.
35347 (Ada_Check): When project is a Stand-Alone library project, process
35348 attribute Library_Symbol_File, Library_Symbol_Policy and
35349 Library_Reference_Symbol_File.
35351 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
35352 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
35353 5sml-tgt.adb (Build_Dynamic_Library): New parameter
35354 Symbol_Data (ignored).
35356 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
35357 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
35358 functions Option_File_Name and Version_String. Set new options of
35359 gnatsym related to symbol file, symbol policy and reference symbol
35363 Extensive modifications to take into account the reference symbol file,
35364 the symbol policy, the library version and to put in the symbol file the
35365 minor and major IDs.
35367 * bld.adb (Process_Declarative_Items): Put second argument of
35368 gprcmd to_absolute between single quotes, to avoid problems with
35371 * bld-io.adb: Update Copyright notice.
35372 (Flush): Remove last character of a line, if it is a back slash, to
35373 avoid make problems.
35376 Implement new scheme with reference symbol file and symbol policy.
35378 * g-os_lib.ads: (Is_Directory): Clarify comment
35380 2003-11-19 Robert Dewar <dewar@gnat.com>
35382 * atree.adb: Move New_Copy_Tree global variables to head of package
35384 * errout.adb: Minor reformatting
35386 2003-11-19 Javier Miranda <miranda@gnat.com>
35388 * sem_ch4.adb: (Diagnose_Call): Improve error message.
35389 Add reference to Ada0Y (AI-50217)
35391 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
35392 sem_util.adb: Add reference to AI-50217
35394 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
35396 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
35398 * sem_aggr.adb: Complete documentation of AI-287 changes
35400 * par-ch4.adb: Document previous changes.
35402 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
35403 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
35406 * exp_aggr.adb: Add references to AI-287 in previous changes
35408 2003-11-19 Ed Schonberg <schonberg@gnat.com>
35411 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
35412 in the rewriting is the result of an inlined call.
35414 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
35415 parameter is a type conversion, use original node to construct the
35416 post-call assignment, because expression may have been rewritten, e.g.
35417 if it is a packed array.
35420 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
35421 body, just as it is in an instance.
35422 Categorization routines
35424 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
35425 Instantiate_Object): Set proper sloc reference for message on missing
35428 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
35430 * Makefile.in: Add FreeBSD libgnat pairs.
35432 * usage.adb: Fix typo in usage message.
35434 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
35436 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
35437 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
35438 pragma Thread_Body.
35439 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
35441 * s-thread.adb: This file is now a dummy implementation of
35444 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
35446 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
35448 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
35450 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35451 instanciation references in the parent type description.
35453 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35455 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
35457 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
35458 TYPE_PRECISION directly from esize.
35460 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
35463 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
35465 * init.c: Initialization routines for FreeBSD
35467 * link.c: Link info for FreeBSD
35469 * sysdep.c: Add the case of FreeBSD
35471 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
35473 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
35474 already called in System.Threads.
35476 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
35477 environment task, as it has been moved to System.Threads.Initialization.
35479 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
35481 * adaint.c (__gnatlib_install_locks): Only reference
35482 __gnat_install_locks on VMS, since other platforms can avoid using
35483 --enable-threads=gnat
35485 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35487 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
35489 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
35490 TYPE_PACKED_ARRAY_TYPE_P.
35491 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
35493 Part of PR ada/12806
35494 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
35495 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
35497 2003-11-17 Vincent Celier <celier@gnat.com>
35499 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
35501 Do not set exit status to Failure when Warning is True.
35502 (Gnatchop): Make errors "no compilation units found" and
35503 "no source files written" warnings only.
35505 * make.adb (Gnatmake): When using a project file, set
35506 Look_In_Primary_Dir to False.
35507 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
35508 and Local_Configuration_Pragmas in the project where they are declared
35509 not an extending project which might have inherited them.
35511 * osint.adb (Locate_File): If Name is already an absolute path, do not
35512 look for a directory.
35514 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
35515 -gnats (Check_Syntax) is used, issue only a warning, not an error.
35517 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
35518 in objects of type Variable_Value.
35520 * prj.ads: (Variable_Value): New component Project
35522 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
35523 is in a project extended by Project.
35525 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
35526 Project of Variable_Values to this new parameter value.
35527 (Expression): Set component Project of Variable_Values.
35528 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
35529 Set the component Project in array elements.
35531 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
35533 * errout.adb: (Initialize): Add initialization for error nodes.
35535 * sem_ch12.adb (Initialize): Add missing initializations for
35536 Exchanged_Views and Hidden_Entities.
35538 2003-11-17 Ed Schonberg <schonberg@gnat.com>
35540 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
35541 already instantiated tree for use in subsequent inlining.
35542 (Analyze_Associations, Instantiate_Formal_Subprogram,
35543 Instantiate_Object): improve error message for mismatch in
35546 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
35547 instantiations of subprograms declared in instances.
35549 2003-11-17 Javier Miranda <miranda@gnat.com>
35551 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
35552 executed only under the Extensions_Allowed flag.
35554 2003-11-17 Robert Dewar <dewar@gnat.com>
35556 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
35558 (Address_Image): Fix bug of returning 0x instead of 0x0
35559 Minor reformatting (function specs).
35561 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
35562 (missed case of 33-63)
35564 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
35566 * s-thread.adb: Add comments for pragma Restriction
35568 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
35569 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
35571 2003-11-17 Ed Falis <falis@gnat.com>
35573 * s-thread.adb: Added No_Tasking restriction for this implementation.
35575 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
35577 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35578 instanciation references in the parent type description.
35580 2003-11-17 GNAT Script <nobody@gnat.com>
35582 * Make-lang.in: Makefile automatically updated
35584 2003-11-16 Jason Merrill <jason@redhat.com>
35586 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
35587 and TAGS files that include them for each front end.
35589 2003-11-14 Andreas Jaeger <aj@suse.de>
35591 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
35592 is the canonical version.
35593 * misc.c (gnat_handle_option): Likewise.
35595 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
35597 * 5nsystem.ads: New file for x86_64-linux-gnu.
35599 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
35601 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
35603 * comperr.adb: Fix logic in previous change.
35605 2003-11-13 Vincent Celier <celier@gnat.com>
35607 * 5bml-tgt.adb (Build_Dynamic_Library): Use
35608 Osint.Include_Dir_Default_Prefix instead of
35609 Sdefault.Include_Dir_Default_Name.
35611 * gnatlbr.adb: Update Copyright notice
35612 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
35613 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
35614 instead of Sdefault.Object_Dir_Default_Name
35617 (Process_Binder_File): Never suppress the option following -Xlinker
35620 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
35621 Sdefault.Object_Dir_Default_Name.
35623 * osint.ads, osint.adb:
35624 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
35625 Minor reformatting.
35627 * vms_conv.ads: Minor reformating
35628 Remove GNAT STANDARD and GNAT PSTA
35631 Allow GNAT MAKE to have several files on the command line.
35632 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
35633 Sdefault.Object_Dir_Default_Name.
35635 Remove data for GNAT STANDARD
35638 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
35639 Remove data for GNAT STANDARD
35640 Remove options and documentation for -gnatwb/-gnatwB: these warning
35641 options no longer exist.
35643 2003-11-13 Ed Falis <falis@gnat.com>
35645 * 5zthrini.adb: (Init_RTS): Made visible
35648 (Register): Removed unnecessary call to taskVarGet that checked whether
35649 an ATSD was already set as a task var for the argument thread.
35652 Updated comment to reflect that this is a VxWorks version
35653 Added context clause for System.Threads.Initialization
35654 Added call to System.Threads.Initialization.Init_RTS
35656 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
35659 (Init_RTS): New procedure, for the initialization of the run-time lib.
35662 Remove dependancy on System.Init, so that this file can be used in the
35663 AE653 sequential run-time lib.
35665 2003-11-13 Robert Dewar <dewar@gnat.com>
35667 * bindgen.adb: Minor reformatting
35669 2003-11-13 Ed Schonberg <schonberg@gnat.com>
35672 (Apply_Discriminant_Check): Do no apply check if target type is derived
35673 from source type with no applicable constraint.
35676 (Ensure_System_Dependency): Do not apply the style checks that may have
35677 been specified for the main unit.
35680 (Find_Selected_Component): Further improvement in error message, with
35684 (Resolve): Handle properly the case of an illegal overloaded protected
35687 2003-11-13 Javier Miranda <miranda@gnat.com>
35690 (Has_Default_Init_Comps): New function to check the presence of
35691 default initialization in an aggregate.
35692 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
35693 extension aggregate of a limited record. In addition, a new formal
35694 was added to do not initialize the record controller (if any) during
35695 this recursive expansion of ancestors.
35696 (Init_Controller): Add support for limited record components.
35697 (Expand_Record_Aggregate): In case of default initialized components
35698 convert the aggregate into a set of assignments.
35700 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
35701 describing the new syntax.
35702 Nothing else needed to be done because this subprogram delegates part of
35703 its work to P_Precord_Or_Array_Component_Association.
35704 (P_Record_Or_Array_Component_Association): Give support to the new
35705 syntax for default initialization of components.
35708 (Resolve_Aggregate): Relax the strictness of the frontend in case of
35709 limited aggregates.
35710 (Resolve_Record_Aggregate): Give support to default initialized
35712 (Get_Value): In case of default initialized components, duplicate
35713 the corresponding default expression (from the record type
35714 declaration). In case of default initialization in the *others*
35715 choice, do not check that all components have the same type.
35716 (Resolve_Extension_Aggregate): Give support to limited extension
35720 (Check_Initialization): Relax the strictness of the front-end in case
35721 of aggregate and extension aggregates. This test is now done in
35722 Get_Value in a per-component manner.
35724 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
35725 expression corresponds to a limited aggregate. This test is now done
35728 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
35731 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
35732 present in an N_Component_Association node
35734 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
35736 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
35737 type-conformant entry only if they are homographs.
35739 2003-11-13 GNAT Script <nobody@gnat.com>
35741 * Make-lang.in: Makefile automatically updated
35743 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35745 * adadecode.c: Use <> form of include for ctype.h.
35746 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
35748 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35750 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
35751 Works around PR middle-end/6552.
35753 2003-11-10 Ed Falis <falis@gnat.com>
35755 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
35757 * 5zinit.adb: (Install_Handler): Moved back to spec
35758 (Install_Signal_Handlers): Deleted
35760 * 5zthrini.adb: Added context clause for System.Storage_Elements
35761 (Register): Only handles creation of taskVar; initialization moved to
35763 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
35764 Added declaration of environment task secondary stack and
35767 * s-thread.adb: Implement bodies for thread body processing
35770 Added comment identifying supported targets for pragma Thread_Body.
35772 2003-11-10 Pascal Obry <obry@gnat.com>
35774 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
35778 (Open): Properly check for string length before copying into the buffer.
35779 Raises Name_Error if buffer is too small. Note that this was a potential
35782 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
35784 * bindgen.adb, comperr.adb: Code clean ups.
35785 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
35787 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
35789 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
35791 2003-11-10 Vincent Celier <celier@gnat.com>
35794 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
35797 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
35799 * prj.adb: (Project_Empty): Add new boolean component Virtual
35801 * prj.ads: (Virtual_Prefix): New constant string
35802 (Project_Data): New boolean component Virtual
35804 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
35805 a library project is extended by a virtual extending project.
35808 Modifications throughout to implement extending-all project, including:
35809 (Virtual_Hash, Processed_Hash): New hash tables
35810 (Create_Virtual_Extending_Project): New procedure
35811 (Look_For_Virtual_Projects_For): New procedure
35814 (Process): After checking the projects, if main project is an
35815 extending-all project, set the object directory of all virtual extending
35816 project to the object directory of the main project.
35817 Adjust error message when a virtual extending project has the same
35818 object directory as an project being extended.
35819 (Recursive_Process): If name starts with the virtual prefix, set Virtual
35820 to True in the project data.
35823 (Default_Project_Node): Add new boolean component Extending_All
35824 (Is_Extending_All): New function
35825 (Set_Is_Extending_All): New procedure
35827 * prj-tree.ads: (Is_Extending_All): New function
35828 (Set_Is_Extending_All): New procedure
35829 (Project_Node_Record): New boolean component Extending_All
35831 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
35834 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
35836 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
35837 "gprcmd prefix" to define it.
35839 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
35841 * einfo.ads: Fix a typo and remove an extraneous word in comments.
35844 (Create_Dummy_Package_Unit): Set the scope of the entity for the
35845 created dummy package to Standard_Standard, not to itself, to
35846 defend other parts of the front-end against encoutering a cycle in
35850 (Analyze_With_Clause): When setting the entities for the successive
35851 N_Expanded_Names that constitute the name of a child unit, do not
35852 attempt to go further than Standard_Standard in the chain of scopes.
35853 This case arises from the placeholder units created by
35854 Create_Dummy_Package_Unit in the case of a with_clause for a
35855 nonexistent child unit.
35857 2003-11-10 Ed Schonberg <schonberg@gnat.com>
35860 (Expand_Thread_Body): Place subprogram on scope stack, so that new
35861 declarations are given the proper scope.
35864 (Check_Expr_Constants): Reject an expression that contains a constant
35865 created during expansion, and that appears after the object to which
35866 the address clause applies.
35868 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
35869 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
35870 that uses 'Range of a function call with controlled components, so
35871 that the function result can be finalized before starting the loop.
35874 (Find_Selected_Component): Improve error message when prefix is
35875 an implicit dereference of an incomplete type.
35877 2003-11-10 Robert Dewar <dewar@gnat.com>
35879 * opt.ads: New Print_Standard flag for -gnatS switch
35881 * sem_ch13.adb: Remove some additional checks for unaligned arrays
35883 * cstand.adb (Create_Standard): Print out package standard if -gnatS
35886 * debug.adb: Update doc for -gnatds to discuss relationship with new
35889 * sinfo.adb: Add new field Entity_Or_Associated_Node
35891 * sinfo.ads: Add new field Entity_Or_Associated_Node
35892 Update documentation for Associated_Node and Entity fields to clarify
35893 relationship and usage.
35896 (Write_Id): Properly process Associated_Node field in generic template
35899 Recognize new -gnatS switch for printing package Standard
35900 This replaces gnatpsta
35903 Add line for new -gnatS switch for printing package Standard
35904 This replaces gnatpsta
35906 2003-11-10 Andreas Jaeger <aj@suse.de>
35908 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
35911 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
35913 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
35916 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
35918 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
35921 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
35923 * sysdep.c: Add handling of cygwin.
35925 2003-11-10 GNAT Script <nobody@gnat.com>
35927 * Make-lang.in: Makefile automatically updated
35929 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
35932 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
35933 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
35934 Replace GNAT_ROOT by GCC_ROOT.
35936 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
35938 2003-11-06 Zack Weinberg <zack@codesourcery.com>
35940 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
35941 and update for changed meaning of GET_MODE_BITSIZE.
35943 2003-11-04 Doug Rupp <rupp@gnat.com>
35945 * sysdep.c: Problem discovered during IA64 VMS port.
35946 [VMS] #include <unixio.h> to get proper prototypes.
35949 Issues discovered/problems fixed during IA64 VMS port.
35950 [VMS] #define _POSIX_EXIT for proper semantics.
35951 [VMS] #include <unixio.h> for proper prototypes.
35952 [VMS] (fork): #define IA64 version.
35953 (__gnat_os_exit): Remove unnecessary VMS specific code.
35955 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35957 Part of PR ada/12806
35958 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
35962 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
35965 * targtyps.c, decl.c, misc.c,
35966 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
35967 routines to work around change in FP sizing semantics in GCC.
35970 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
35972 * gigi.h: (enumerate_modes): New function.
35974 * Make-lang.in: (ada/misc.o): Add real.h.
35976 * misc.c: (enumerate_modes): New function.
35978 2003-11-04 Robert Dewar <dewar@gnat.com>
35980 * 3vtrasym.adb: Minor reformatting
35981 Use terminology encoded/decoded name, rather than C++ specific notion
35982 of mangling (this is the terminology used throughout GNAT).
35984 * einfo.h: Regenerated
35986 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
35989 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
35991 * par-prag.adb: Add dummy entry for Thread_Body pragma
35994 Add entries for System.Threads entities for thread body processing
35997 (Analyze_Pragma, Access attributes): Check these are not applied to a
35998 thread body, since this is not permitted
36000 * sem_prag.adb: Add processing for Thread_Body pragma.
36004 (Resolve_Call): Check for incorrect attempt to call a thread body
36005 procedure with a direct call.
36007 * snames.ads, snames.adb: Add entry for Thread_Body pragma
36008 Add names associated with thread body expansion
36010 * snames.h: Add entry for Thread_Body pragma
36012 * s-thread.adb: Add entries for thread body processing
36013 These are dummy bodies so far
36015 * s-thread.ads: Add documentation on thread body handling.
36016 Add entries for thread body processing.
36018 2003-11-04 Javier Miranda <miranda@gnat.com>
36021 (Build_Limited_Views): Return after posting an error in case of limited
36022 with_clause on subprograms, generics, instances or generic renamings
36023 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
36024 on subprograms, generics, instances or generic renamings
36026 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
36028 * raise.c (setup_to_install): Correct mistake in last revision; two
36029 arguments out of order.
36031 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
36032 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
36033 notice, missed in previous change.
36034 Remove trailing blanks and other style errors introduced in previous
36037 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
36039 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
36040 rid of the wrapper for a LJM type, ensuring we don't do that if the
36041 field is addressable. This avoids potential low level type view
36042 mismatches later on, for instance in a by-reference argument passing
36045 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36047 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
36048 aligned at byte boundary.
36050 2003-11-04 Joel Brobecker <brobecker@gnat.com>
36052 * decl.c (components_to_record): Do not delete the empty variants from
36053 the end of the union type.
36055 2003-11-04 Ed Schonberg <schonberg@gnat.com>
36057 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
36058 operation for a derived type, an explicit declaration may use a local
36059 subtype of Boolean.
36061 2003-11-04 Vincent Celier <celier@gnat.com>
36063 * make.adb (Gnatmake): Allow main sources on the command line with a
36064 library project when it is only for compilation (no binding or
36067 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36069 * Makefile.in: Remove many duplicate variables.
36071 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
36073 * Make-lang.in (dvi): Move targets to $(docobjdir).
36074 (gnat_ug_vms.dvi): Simplify rule and adjust target.
36075 (gnat_ug_wnt.dvi): Likewise.
36076 (gnat_ug_unx.dvi): Likewise.
36077 (gnat_ug_vxw.dvi): Likewise.
36078 (gnat_rm.dvi): Likewise.
36079 (gnat-style.dvi): Likewise.
36081 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
36083 * gigi.h: Missed commit from update for C90.
36085 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
36087 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
36089 2003-10-31 Andreas Schwab <schwab@suse.de>
36091 * raise.c (get_action_description_for): Fix typo in last change.
36093 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
36096 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
36097 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
36099 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
36101 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
36102 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
36103 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
36104 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
36105 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
36107 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
36110 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
36111 numbers when symbol name is too long.
36113 2003-10-30 Ed Falis <falis@gnat.com>
36115 * g-signal.ads, g-signal.adb: New files
36117 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
36119 * Makefile.rtl: Introduce GNAT.Signals
36121 2003-10-30 Robert Dewar <dewar@gnat.com>
36123 * freeze.adb: Minor reformatting
36125 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
36127 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
36128 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
36129 New handling of Id_Check parameter to improve recognition of keywords
36130 used as identifiers.
36131 Update copyright notice to include 2003
36133 2003-10-29 Robert Dewar <dewar@gnat.com>
36135 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
36136 sem_ch10.adb: Minor reformatting
36138 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
36139 (Expand_Assign_Record): Test right hand side for bit unaligned as well
36141 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
36143 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
36144 Support for TBK$SYMBOLIZE-based symbolic traceback.
36146 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
36149 Revert previous change, that did not work well when pragma No_Run_Time
36150 was used in conjunction with a run-time other than ZFP.
36152 2003-10-29 Vincent Celier <celier@gnat.com>
36155 (Gnatmake): When there are no Ada mains in attribute Main, disable the
36156 bind and link steps only is switch -z is not used.
36158 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
36160 * Makefile.generic: Remove duplicated setting of CC.
36162 * Makefile.prolog: Set CC to gcc by default, to override make's
36165 * einfo.h: Regenerated.
36167 2003-10-29 Ed Schonberg <schonberg@gnat.com>
36169 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
36170 current body, after compiling subunit.
36172 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
36173 when in deleted code, because gigi needs properly ordered freeze
36174 actions to annotate types.
36176 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
36177 prevent the premature freezing of record type that contains
36178 subcomponents with a private type that does not yet have a completion.
36180 2003-10-29 Javier Miranda <miranda@gnat.com>
36183 (Analyze_Package_Instantiation): Check that instances can not be used in
36184 limited with_clauses.
36187 (Analyze_Package_Renaming): Check that limited withed packages cannot
36188 be renamed. Improve text on error messages related to limited
36191 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
36193 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
36194 Update copyright notice.
36196 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
36197 (Install_Limited_Context_Clauses): New subprogram that isolates all the
36198 checks required for limited context_clauses and installs the limited
36200 (Install_Limited_Withed_Unit): Complete its documentation.
36201 (Analyze_Context): Check that limited with_clauses are only allowed in
36203 (Install_Context): Call Install_Limited_Context_Clauses after the
36204 parents have been installed.
36205 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
36206 package as 'From_With_Type'; this mark indicates that the limited view
36207 is installed. Used to check bad usages of limited with_clauses.
36208 (Build_Limited_Views): Do not add shadow entities to the scope's list
36209 of entities. Do not add real entities to the Non_Limited_Views chain.
36210 Improve error notification.
36211 (Remove_Context_Clauses): Remove context clauses in two phases:
36212 limited views first and regular views later (to maintain the
36214 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
36215 its visible entities.
36217 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
36219 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
36220 with any type that Is_Fixed_Point_Type.
36222 * sinfo.ads: Fix documentation for Associated_Node attribute.
36224 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
36226 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
36227 both '-gnatc' and '-gnatt' are specified.
36229 * atree.adb (Initialize): Add initialization for Node_Count (set to
36232 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36234 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
36235 do not consider as Pure.
36237 Part of implementation of function-at-a-time:
36239 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
36240 (tree_transform): Add new argument to build_component_ref.
36241 (tree_transform, case N_Assignment_Statement): Make and return an
36243 (tree_transform): If result IS_STMT, set flags and return it.
36244 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36246 * utils2.c (build_simple_component_ref, build_component_ref): Add new
36248 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
36249 (build_allocator): Likewise.
36251 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
36252 Add new arg to build_component_ref.
36253 (maybe_unconstrained_array, unchecked_convert): Likewise.
36255 * ada-tree.def (EXPR_STMT): New code.
36257 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
36259 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
36260 build_component_ref calls.
36262 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
36264 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36265 (build_component_ref): Add new argument, NO_FOLD_P.
36267 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
36269 * Makefile.generic: Add missing substitution on object_deps handling.
36272 * Make-lang.in (check-ada): Enable ACATS test suite.
36274 2003-10-27 Robert Dewar <dewar@gnat.com>
36277 (Freeze_Array_Type): We do not need an initialization routine for types
36278 derived from String or Wide_String. They should be treated the same
36279 as String and Wide_String themselves. This caused problems with the
36280 use of Initialize_Scalars.
36283 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
36284 composites. This allows use of component clauses that are not byte
36288 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
36289 is an attempt to pack an array of atomic objects.
36291 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
36293 2003-10-27 Pascal Obry <obry@gnat.com>
36296 (Basename): Check for drive letters in a pathname only on DOS based OS.
36298 2003-10-27 Vincent Celier <celier@gnat.com>
36301 (Gnatmake): When unable to change dir to the object dir, display the
36302 content of the parent dir of the obj dir, to try to understand why this
36305 2003-10-27 GNAT Script <nobody@gnat.com>
36307 * Make-lang.in: Makefile automatically updated
36309 2003-10-27 Ed Schonberg <schonberg@gnat.com>
36312 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
36313 should not be done in Save/Restore_Scope_Stack, because it is performed
36317 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36318 whether use clauses should be removed/restored.
36321 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36322 whether use clauses should be removed/restored.
36324 2003-10-26 Andreas Jaeger <aj@suse.de>
36326 * Makefile.in: Remove duplicated lines.
36328 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36330 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
36331 minimize the differences with ACT tree.
36333 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
36334 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
36335 Gnatvsn.Gnat_Static_Version_String to reduce differences between
36338 2003-10-24 Pascal Obry <obry@gnat.com>
36341 * adadecode.c (ostrcpy): New function.
36342 (__gnat_decode): Use ostrcpy of strcpy.
36343 (has_prefix): Set first parameter a const.
36344 (has_suffix): Set first parameter a const.
36345 Update copyright notice. Fix source name in header.
36346 Removes a trailing space.
36348 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
36351 Remove the test against being in No_Run_Time_Mode before generating a
36352 call to Register_Tag. It is redundant with the test against the
36353 availability of the function Register_Tag.
36355 2003-10-24 Vincent Celier <celier@gnat.com>
36357 * g-catiio.adb: (Month_Name): Correct spelling of February
36359 * make.adb: (Mains): New package
36360 (Initialize): Call Mains.Delete
36361 (Gnatmake): Check that each main on the command line is a source of a
36362 project file and, if there are several mains, each of them is a source
36363 of the same project file.
36364 (Gnatmake): When a foreign language is specified in attribute Languages,
36365 no main is specified on the command line and attribute Mains is not
36366 empty, only build the Ada main. If there is no Ada main, just compile
36367 the Ada sources and their closure.
36368 (Gnatmake): If a main is specified on the command line with directory
36369 information, check that the source exists and, if it does, that the path
36370 is the actual path of a source of a project.
36373 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
36374 Full_Path is True, return the full path instead of the simple file name.
36375 (Project_Of): New function
36378 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
36379 defaulted to False.
36380 (Project_Of): New function
36382 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36384 * Makefile.generic:
36385 Ensure objects of main project are always checked and rebuilt if needed.
36386 Set CC to gcc by default.
36387 Prepare new handling of link by creating a global archive (not activated
36390 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36391 stringt.h: Update copyright notice. Remove trailing blanks.
36392 Fix source name in header.
36394 2003-10-24 Robert Dewar <dewar@gnat.com>
36396 * sem_ch12.adb: Minor reformatting
36399 Minor reformatting (including new function return style throughout)
36402 Minor reformatting (including new function return style throughout)
36404 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36406 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36407 stringt.h: Update copyright notice. Remove trailing blanks.
36408 Fix source name in header.
36410 2003-10-24 GNAT Script <nobody@gnat.com>
36412 * Make-lang.in: Makefile automatically updated
36414 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
36416 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
36417 stringt.h: Convert to ISO C90 declarations and definitions.
36419 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
36422 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
36423 External_Tag attribute definition clauses.
36425 2003-10-23 Ed Schonberg <schonberg@gnat.com>
36428 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
36429 child unit, generate a fully qualified name to avoid spurious errors
36430 when the context contains renamings of different child units with
36431 the same simple name.
36433 * exp_dbug.ads: Add documentation on name qualification for renamings
36436 2003-10-23 Robert Dewar <dewar@gnat.com>
36438 * g-regpat.ads, g-regpat.adb: Minor reformatting
36440 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
36442 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
36444 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36446 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
36449 * urealp.h: (Machine): Update to proper definition.
36451 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
36453 * init.c, adaint.c: Minor reformatting.
36455 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
36457 * adaint.c (w32_epoch_offset): Define static const at file level.
36458 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
36459 rather than t_create, t_access in call to GetFileTime. Use union
36460 to convert between FILETIME and unsigned long long.
36461 (__gnat_file_time_name): Test for invalid file handle.
36462 (__gnat_set_filetime_name): Support win32 targets using
36463 w32api SetFileTime.
36465 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
36467 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
36469 * ctrl_c.c (__gnat_int_handler): Remove declaration.
36471 * decl.c (creat_concat_name): Const-ify prefix.
36473 * adaint.c: Include ctype.h if __MINGW32__.
36474 (__gnat_readlink): Mark arguments as possibly unused.
36475 (__gnat_symlink): Likewise.
36476 (__gnat_is_symbolic_link): Likewise.
36477 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
36479 (__gnat_file_time_name): Don't declare struct stat statbuf when
36481 (__gnat_is_absolute_path): Add parenthesis around condition of
36482 'if' statement to avoid warning.
36483 (__gnat_plist_init): Specify void as parameter.
36484 (plist_enter): Likewise.
36485 (plist_leave): Likewise.
36486 (remove_handle): Make static. Initialize prev.
36488 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
36491 * Makefile.in: Disable build of gnatpsta.
36492 * cstreams.c (__gnat_full_name): Minor improvements and clean up
36493 of previous change.
36495 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36497 * tracebak.c (MAX): Avoid redefinition warning.
36499 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
36500 Change msg to const char *.
36501 (__gnat_install_handler): Remove ss, unused.
36502 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
36504 * cstreams.c (__gnat_full_name): Declare p only when used.
36505 (__gnat_full_name) [sgi] Return buffer.
36507 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
36509 * mingw32.h: New file.
36510 * gnat_wrapper.adb: New file.
36512 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
36514 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
36515 string match a pre compiled regular expression (the corresponding
36516 version of the function working on a raw regular expression)
36517 Fix typos in various comments
36518 Update copyright notice in spec
36520 2003-10-21 Gary Dismukes <dismukes@gnat.com>
36523 (Component_Needs_Simple_Initialization): Return False when the type is a
36524 packed bit array. Revise spec comments to document this case.
36527 (Expand_Pragma_Import): Set any expression on the imported object to
36528 empty to avoid initializing imported objects (in particular this
36529 covers the case of zero-initialization of bit arrays).
36530 Update copyright notice.
36532 2003-10-21 Ed Schonberg <schonberg@gnat.com>
36535 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
36536 a subunit is missing.
36537 (Instantiate_Subprogram_Body): If body of function is missing, set type
36538 of return expression explicitly in dummy body, to prevent cascaded
36539 errors when a subunit is missing.
36543 (Access_Subprogram_Declaration): Verify that return type is valid.
36547 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
36552 (Corresponding_Discriminant): If the scope of the discriminant is a
36553 private type without discriminant, use its full view.
36556 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
36558 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
36559 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
36560 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
36561 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
36562 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
36563 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
36564 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36565 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
36566 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
36567 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
36568 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
36569 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
36570 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
36571 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
36572 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
36573 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
36574 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
36575 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
36576 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
36577 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
36578 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
36579 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
36580 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
36581 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
36582 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
36583 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
36584 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
36585 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
36586 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
36587 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
36588 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
36589 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
36590 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
36591 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
36592 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
36593 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
36594 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
36595 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
36596 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
36597 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
36598 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
36599 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
36600 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
36601 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
36602 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
36603 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
36604 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
36605 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
36606 vms_conv.ads, vms_conv.adb, vms_data.ads,
36607 vxaddr2line.adb: Files added. Merge with ACT tree.
36609 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
36610 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
36611 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
36612 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
36613 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
36614 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
36615 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
36616 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
36617 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
36618 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
36620 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
36621 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
36622 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
36623 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
36624 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
36625 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
36626 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
36627 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
36628 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
36629 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
36630 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36631 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
36632 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
36633 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36634 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
36635 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
36636 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
36637 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
36638 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
36639 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
36640 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
36641 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36642 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36643 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36644 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
36645 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
36646 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
36647 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36648 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
36649 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36650 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36651 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
36652 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36653 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
36654 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
36655 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
36656 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
36657 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
36658 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
36659 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
36660 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
36661 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
36662 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
36663 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
36664 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
36665 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
36666 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
36667 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
36668 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
36669 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
36670 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
36671 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
36672 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
36673 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
36674 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
36675 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
36676 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
36677 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
36678 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
36679 checks.adb, checks.ads, cio.c, comperr.adb,
36680 comperr.ads, csets.adb, cstand.adb, cstreams.c,
36681 debug_a.adb, debug_a.ads, debug.adb, decl.c,
36682 einfo.adb, einfo.ads, errout.adb, errout.ads,
36683 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
36684 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
36685 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
36686 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36687 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
36688 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
36689 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
36690 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
36691 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
36692 fe.h, fmap.adb, fmap.ads, fname.adb,
36693 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
36694 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
36695 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
36696 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
36697 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
36698 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
36699 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
36700 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
36701 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
36702 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
36703 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
36704 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
36705 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
36706 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
36707 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
36708 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
36709 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
36710 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
36711 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
36712 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
36713 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
36714 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
36715 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
36716 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
36717 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
36718 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
36719 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
36720 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
36721 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
36722 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
36723 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
36724 layout.adb, lib.adb, lib.ads, lib-list.adb,
36725 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
36726 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
36727 link.c, live.adb, make.adb, make.ads,
36728 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
36729 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
36730 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
36731 misc.c, mkdir.c, mlib.adb, mlib.ads,
36732 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
36733 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
36734 namet.adb, namet.ads, namet.h, nlists.ads,
36735 nlists.h, nmake.adt, opt.adb, opt.ads,
36736 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
36737 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
36738 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
36739 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
36740 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
36741 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
36742 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
36743 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
36744 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
36745 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
36746 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
36747 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
36748 prj-util.adb, prj-util.ads, raise.c, raise.h,
36749 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
36750 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
36751 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
36752 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
36753 scans.ads, scn.adb, scn.ads, s-crc32.adb,
36754 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
36755 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36756 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
36757 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
36758 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
36759 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
36760 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
36761 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
36762 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
36763 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
36764 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
36765 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
36766 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
36767 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
36768 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
36769 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
36770 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
36771 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
36772 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
36773 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
36774 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
36775 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
36776 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
36777 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
36778 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
36779 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
36780 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
36781 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
36782 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
36783 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
36784 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
36785 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
36786 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
36787 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
36788 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
36789 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
36790 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
36791 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
36792 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
36793 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
36794 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36795 stringt.adb, stringt.ads, stringt.h, style.ads,
36796 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
36797 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
36798 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
36799 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
36800 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
36801 table.adb, table.ads, targparm.adb, targparm.ads,
36802 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
36803 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
36804 ttypes.ads, types.ads, types.h, uintp.adb,
36805 uintp.ads, uintp.h, uname.adb, urealp.adb,
36806 urealp.ads, urealp.h, usage.adb, utils2.c,
36807 utils.c, validsw.adb, validsw.ads, widechar.adb,
36808 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
36809 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
36810 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
36811 gnatvsn.ads: Merge with ACT tree.
36813 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
36815 2003-10-20 Mark Mitchell <mark@codesourcery.com>
36817 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
36818 (gnat_ug_vmx.info): Likewise.
36819 (gnat_ug_vxw.info): Likewise.
36820 (gnat_ug_wnt.info): Likewise.
36821 (gnat_rm.info): Likewise.
36822 (gnat-style.info): Likewise.
36824 * Make-lang.in (ada.install-info): Remove target.
36825 (info): New target.
36826 (install-info): Likewise.
36827 (gnat_ug_unx.info): Simplify rule.
36828 (gnat_ug_vmx.info): Likewise.
36829 (gnat_ug_vxw.info): Likewise.
36830 (gnat_ug_wnt.info): Likewise.
36831 (gnat_rm.info): Likewise.
36832 (gnat-style.info): Likewise.
36834 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
36836 * Make-lang.in: Replace uses of $(target_alias) with
36837 $(target_noncanonical).
36838 * ada/Makefile.in: Remove unused mention of $(target_alias).
36840 2003-10-06 Mark Mitchell <mark@codesourcery.com>
36842 * Make-lang.in (ada.info): Replace with ...
36844 (ada.dvi): Replace with ...
36847 2003-09-29 Zack Weinberg <zack@codesourcery.com>
36849 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
36850 initialize dconstp5 and dconstmp5.
36852 2003-09-28 Richard Henderson <rth@redhat.com>
36854 * trans.c (tree_transform): Update call to expand_asm_operands.
36856 2003-09-21 Richard Henderson <rth@redhat.com>
36858 * trans.c, utils.c: Revert.
36860 2003-09-21 Richard Henderson <rth@redhat.com>
36862 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
36865 2003-09-04 Michael Matz <matz@suse.de>
36867 * misc.c: Include "target.h".
36868 * Make-lang.in (misc.o): Add dependency on target.h.
36870 2003-09-03 DJ Delorie <dj@redhat.com>
36872 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
36875 2003-08-30 Zack Weinberg <zack@codesourcery.com>
36877 * Makefile.in: Update substitutions to match changes to
36878 configure. Use include directives instead of @-insertions
36879 to read in host and target fragments. Add a rule to
36880 regenerate ada/Makefile.
36882 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
36884 * lang-options.h: Remove.
36885 * lang.opt: Add help text.
36887 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
36889 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
36892 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
36894 * misc.c (gnat_handle_option): Don't handle filenames.
36896 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
36898 * Make-lang.in: Replace PWD with PWD_COMMAND.
36899 * Makefile.adalib: Likewise.
36900 * Makefile.in: Likewise.
36902 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
36904 * misc.c (gnat_argv): Revert last change.
36905 (gnat_handle_option, gnat_init_options): Copy arguments.
36907 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
36909 * misc.c (gnat_argv): Make const.
36911 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
36913 * misc.c (save_argc, save_argv): Keep non-static!
36915 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
36917 * misc.c (save_argc, save_argv): Make static.
36918 (gnat_init_options): New prototype.
36919 (gnat_init_options): Update.
36921 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
36923 * gnat_ug.texi: Remove unlikely characters from @vars.
36924 * gnat_ug_vms.texi: Regenerate.
36926 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
36928 * misc.c (record_code_position): Adjust emit_note call.
36930 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
36932 * misc.c (gnat_handle_option): Don't check for missing arguments.
36934 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
36936 * utils.c (end_subprog_body): Adjust expand_function_end call.
36938 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
36940 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
36943 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
36945 * lang.opt: Declare Ada.
36946 * misc.c (gnat_init_options): Update.
36948 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
36950 * utils.c (begin_subprog_body): Adjust init_function_start call.
36952 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
36954 * Make-lang.in: Update to use options.c and options.h.
36955 * misc.c: Include options.h not aoptions.h.
36956 (gnat_handle_option): Abort on unrecognized switch.
36957 (gnat_init_options): Request Ada switches.
36959 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
36961 * lang.opt: Add -Wall.
36962 * misc.c (gnat_handle_option): Handle it.
36964 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
36966 * misc.c (gnat_handle_option): Fix warnings.
36968 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
36970 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
36972 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
36974 * Make-lang.in: Update to handle command-line options.
36975 * lang.opt: New file.
36976 * misc.c: Include aoptions.h.
36977 (cl_options_count, cl_options): Remove.
36978 (gnat_handle_option): New.
36979 (gnat_decode_option): Remove.
36980 (LANG_HOOKS_DECODE_OPTION): Remove.
36981 (LANG_HOOKS_HANDLE_OPTION): Override.
36983 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
36985 * init.c, misc.c, trans.c, utils.c: Remove dead code.
36987 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
36989 * Makefile.in: Replace "host_canonical" with "host" for autoconf
36992 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
36994 * Make-lang.in: Update.
36995 * misc.c: Include opts.h. Define cl_options_count and cl_options.
36997 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
36999 * misc.c (gnat_init_options): Update.
37001 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37003 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
37004 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
37005 __attribute__ ((__unused__)).
37007 2003-06-05 Jan Hubicka <jh@suse.cz>
37009 * Make-lang.in: Add support for stageprofile and stagefeedback
37011 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37013 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
37014 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
37016 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
37018 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
37019 Remove non-VMS directive.
37020 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
37022 (Examples of gnatls Usage): Remove VMS alternative.
37024 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
37027 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
37028 and turn ZCX_By_Default back to False since the underlying support
37029 is not quite there yet.
37031 2003-06-01 Andreas Jaeger <aj@suse.de>
37033 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
37034 and ROUND_TYPE_SIZE_UNIT.
37036 2003-05-22 Geert Bosch <bosch@gnat.com>
37038 * gnat_rm.texi : Remove reference to Ada Core Technologies.
37040 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
37042 * trans.c (tree_transform): Use location_t and input_location
37044 (build_unit_elab): Likewise.
37045 * utils.c (create_label_decl): Likewise.
37047 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
37049 * trans.c (tree_transform, build_unit_elab,
37050 set_lineno): Rename lineno to input_line.
37051 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
37052 end_subprog_body): Likewise.
37053 * utils2.c (build_call_raise): Likewise.
37055 2003-05-01 Laurent Guerby <guerby@acm.org>
37058 * 5iosinte.ads: Increase pthread_cond_t size to match recent
37059 LinuxThread and NPTL version, merge from ACT.
37061 2003-04-28 Zack Weinberg <zack@codesourcery.com>
37063 * utils.c (convert): No need to clear TREE_CST_RTL.
37065 2003-04-23 Geert Bosch <bosch@gnat.com>
37067 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37068 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37069 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37070 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37071 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37072 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
37073 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
37074 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
37075 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37076 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
37077 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
37078 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
37079 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
37080 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
37081 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
37082 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
37083 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
37084 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
37085 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
37086 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
37087 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
37088 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
37089 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37090 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
37091 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
37092 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
37093 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
37094 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
37095 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
37096 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
37097 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
37098 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
37099 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
37100 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
37101 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
37102 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
37103 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
37104 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
37105 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
37106 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
37107 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
37108 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
37109 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
37110 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
37111 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
37112 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
37113 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
37114 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
37115 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
37116 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
37117 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
37118 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
37119 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
37120 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
37121 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
37122 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
37123 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
37124 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
37125 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
37126 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
37127 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
37128 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
37129 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
37130 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
37131 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
37132 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
37133 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
37134 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
37135 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
37136 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
37137 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
37138 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
37139 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
37140 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
37141 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
37142 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
37143 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
37144 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
37145 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
37146 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
37147 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
37148 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
37149 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
37150 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
37151 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
37152 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
37153 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
37154 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
37155 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
37156 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
37157 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
37158 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
37159 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
37160 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
37161 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
37162 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
37163 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
37164 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
37165 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
37166 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
37167 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
37168 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
37169 ali.adb, ali.ads, alloc.ads, argv.c,
37170 atree.adb, atree.ads, atree.h, aux-io.c,
37171 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
37172 binde.adb, binde.ads, binderr.adb, binderr.ads,
37173 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
37174 butil.adb, butil.ads, cal.c, calendar.ads,
37175 casing.adb, casing.ads, ceinfo.adb, checks.adb,
37176 checks.ads, cio.c, comperr.adb, comperr.ads,
37177 config-lang.in, csets.adb, csets.ads, csinfo.adb,
37178 cstand.adb, cstand.ads, cuintp.c, debug.adb,
37179 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
37180 dec-io.ads, dec.ads, deftarg.c, directio.ads,
37181 einfo.adb, einfo.ads, elists.adb, elists.ads,
37182 elists.h, errno.c, errout.adb, errout.ads,
37183 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
37184 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
37185 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
37186 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
37187 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
37188 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
37189 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
37190 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
37191 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
37192 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
37193 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
37194 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
37195 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
37196 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
37197 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
37198 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
37199 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
37200 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
37201 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
37202 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
37203 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37204 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37205 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37206 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
37207 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
37208 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
37209 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
37210 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
37211 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
37212 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
37213 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
37214 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
37215 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
37216 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
37217 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
37218 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
37219 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
37220 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
37221 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
37222 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
37223 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
37224 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
37225 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
37226 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
37227 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
37228 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
37229 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
37230 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
37231 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
37232 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
37233 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
37234 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
37235 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
37236 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
37237 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
37238 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
37239 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
37240 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
37241 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
37242 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37243 lib.adb, lib.ads, live.adb, live.ads,
37244 machcode.ads, make.adb, make.ads, makeusg.adb,
37245 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
37246 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
37247 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
37248 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
37249 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
37250 mlib.ads, namet.adb, namet.ads, nlists.adb,
37251 nlists.ads, opt.adb, opt.ads, osint-b.adb,
37252 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
37253 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
37254 osint.ads, output.adb, output.ads, par-ch10.adb,
37255 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
37256 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37257 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
37258 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
37259 par-tchk.adb, par-util.adb, par.adb, par.ads,
37260 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
37261 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
37262 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
37263 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
37264 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
37265 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
37266 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
37267 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
37268 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
37269 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
37270 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
37271 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
37272 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
37273 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
37274 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
37275 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
37276 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
37277 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37278 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
37279 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
37280 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
37281 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
37282 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37283 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
37284 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
37285 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
37286 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
37287 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
37288 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
37289 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
37290 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
37291 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
37292 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
37293 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
37294 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
37295 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
37296 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
37297 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
37298 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
37299 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
37300 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
37301 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
37302 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
37303 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
37304 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
37305 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
37306 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
37307 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
37308 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
37309 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
37310 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
37311 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
37312 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
37313 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
37314 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
37315 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
37316 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
37317 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
37318 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
37319 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
37320 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
37321 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
37322 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
37323 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
37324 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
37325 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
37326 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
37327 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
37328 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
37329 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
37330 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
37331 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
37332 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
37333 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
37334 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
37335 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
37336 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
37337 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
37338 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
37339 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
37340 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
37341 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
37342 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
37343 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
37344 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
37345 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
37346 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
37347 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
37348 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
37349 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
37350 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
37351 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
37352 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
37353 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
37354 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
37355 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
37356 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
37357 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
37358 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
37359 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
37360 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
37361 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
37362 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
37363 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
37364 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
37365 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
37366 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
37367 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
37368 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
37369 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
37370 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37371 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37372 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
37373 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
37374 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
37375 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
37376 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
37377 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
37378 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
37379 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
37380 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
37381 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
37382 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
37383 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
37384 snames.ads, sprint.adb, sprint.ads, stand.adb,
37385 stand.ads, stringt.adb, stringt.ads, style.adb,
37386 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
37387 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
37388 switch-m.ads, switch.adb, switch.ads, system.ads,
37389 table.adb, table.ads, targparm.adb, targparm.ads,
37390 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
37391 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
37392 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
37393 ttypef.ads, ttypes.ads, types.adb, types.ads,
37394 uintp.adb, uintp.ads, uname.adb, uname.ads,
37395 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
37396 usage.adb, usage.ads, validsw.adb, validsw.ads,
37397 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
37398 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
37399 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
37400 formatting and other trivial changes from ACT.
37402 2003-04-12 Zack Weinberg <zack@codesourcery.com>
37404 * gigi.h, utils2.c (build_constructor):
37405 Rename gnat_build_constructor. Use build_constructor.
37406 * decl.c (gnat_to_gnu_entity)
37407 * trans.c (tree_transform, pos_to_constructor, extract_values)
37408 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
37409 (unchecked_convert)
37410 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
37411 (fill_vms_descriptor):
37414 2003-04-06 Zack Weinberg <zack@codesourcery.com>
37416 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
37417 * misc.c (gnat_tree_size): New function.
37418 (LANG_HOOKS_TREE_SIZE): Override.
37420 2003-04-03 Jason Merrill <jason@redhat.com>
37422 * misc.c (gnat_adjust_rli): #if 0.
37424 2003-03-31 Geert Bosch <bosch@gnat.com>
37427 * link.c : Fix misspelled "const" keyword
37429 2003-03-23 Mark Mitchell <mark@codesourcery.com>
37432 * utils2.c: Adjust calls to put_var_into_stack.
37434 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
37436 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
37438 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
37440 * misc.c (gnat_init): Update for new prototype.
37442 2003-03-05 Olivier Hainque <hainque@gnat.com>
37445 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
37446 warning, and fix return type for the IN_RTS && !SJLJ case.
37448 2003-03-04 Tom Tromey <tromey@redhat.com>
37450 * Make-lang.in (ada.tags): New target.
37452 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
37455 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
37456 wrapper, which name remains constant whatever underlying GCC
37459 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
37460 the stable interface needed for a-except.
37462 2003-03-02 Andreas Jaeger <aj@suse.de>
37464 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37465 gnat_ug_wnt.texi: Regenerate.
37467 2003-03-02 Laurent Guerby <guerby@acm.org>
37469 * Makefile.in (install-gnatlib): Match previous change there
37472 2003-02-28 Andreas Schwab <schwab@suse.de>
37474 * Make-lang.in (install-gnatlib): Change to ada directory before
37475 running make instead of using ada/Makefile directly.
37477 2003-02-18 Ben Elliston <bje@redhat.com>
37479 Part of PR ada/9406
37480 * gnat_ug.texi (Binder output file): Grammar fix.
37482 2003-02-18 Ben Elliston <bje@redhat.com>
37485 * 5qtaprop.adb (Sleep): Fix typo in comment.
37487 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
37489 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
37490 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37491 gnat_ug_wnt.texi: Regenerate.
37493 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37495 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
37496 be created if necessary.
37497 (ada.install-common): Let $(DESTDIR)$(bindir) be created
37498 if necessary. Remove erroneous and redundant gnatchop
37499 installation commands. Test for gnatdll before attempting
37501 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
37502 and gnatdll from all plausible locations.
37504 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
37506 * utils2.c (build_unary_op): Don't check flag_volatile.
37507 * gnat_ug.texi: Remove -fvolatile from example.
37508 * gnat_ug_vxw.texi: Likewise.
37510 2003-01-29 Laurent Guerby <guerby@acm.org>
37513 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
37514 * Makefile.in: match previous change.
37515 * Make-lang.in: match previous change.
37517 2003-01-29 Joel Sherrill <joel@OARcorp.com>
37519 * 5rosinte.ads: Add SIGXCPU.
37520 * 5rtpopsp.adb: New file.
37521 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
37522 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
37523 specific file 5rtpopsp.adb.
37524 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
37525 is likely needed for all newlib targets.
37526 * init.c: Add RTEMS specific version of __gnat_initialize().
37528 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37530 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
37532 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37534 * init.c (__gnat_error_handler): Make msg const.
37536 * gmem.c (convert_addresses): Move declaration ...
37537 * adaint.h: ... here.
37538 * adaint.c (convert_addresses): Adapt addrs type to match
37541 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
37543 2003-01-24 Andreas Schwab <schwab@suse.de>
37545 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
37546 size_t to avoid warning.
37548 2003-01-21 Zack Weinberg <zack@codesourcery.com>
37550 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
37552 2003-01-09 Geoffrey Keating <geoffk@apple.com>
37554 * gnat_rm.texi: Remove RCS version number.
37556 * ada-tree.h (union lang_tree_node): Add chain_next option.
37558 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37560 * Make-lang.in (ada.install-info, ada.install-common,
37561 ada.uninstall): Prepend $(DESTDIR) to the destination
37562 directory in all (un)installation commands.
37563 * Makefile.in (install-gnatlib, install-rts): Ditto.
37565 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
37567 * gnat_rm.texi, gnat_ug.texi: Use @copying.
37568 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37569 gnat_ug_wnt.texi: Regenerate.
37571 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
37573 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
37575 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
37576 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
37577 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
37578 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
37579 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
37580 $(srcdir)/doc/include/gcc-common.texi.
37582 2002-12-15 Geert Bosch <bosch@gnat.com>
37584 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
37586 2002-12-14 Geert Bosch <bosch@gnat.com>
37589 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
37590 case of a body created for a Renaming_As_Body, on which
37591 conformance checks are not performed.
37593 2002-11-30 Zack Weinberg <zack@codesourcery.com>
37595 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
37596 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
37597 not already included.
37598 * Make-lang.in: Update dependencies.
37600 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
37601 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
37602 solution to buffer overflow bug on GNU/Linux.
37604 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
37608 * bindgen.adb: Remove all references to Public_Version.
37609 * comperr.adb: Remove all references to Public_Version and
37610 GNATPRO_Version; correct bug reporting instructions.
37611 * comperr.ads: Change to match bug box.
37612 * gnatvsn.ads: Remove all references to Public version and
37615 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
37618 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
37622 * config-lang.in: Remove diff_excludes.
37624 2002-11-05 Graham Stott <graham.stott@btinternet.com>
37627 * trans.c (gnu_pending_elaboration_lists): New GC root.
37628 (build_unit_elab): Use..
37630 2002-10-30 Geert Bosch <bosch@gnat.com>
37633 * misc.c : Include optabs.h
37635 * Make-lang.in (misc.o): Add dependency on optabs.h
37637 2002-10-29 Geert Bosch <bosch@gnat.com>
37640 * Make-lang.in (gnatbind): Depend on CONFIG_H
37642 2002-10-29 Geert bosch <bosch@gnat.com>
37645 * misc.c: Unrevert misc.c (1.13)
37647 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
37649 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
37650 maintainership comments.
37652 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
37655 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
37656 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
37657 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
37658 7staprop.adb: Correct statements in comments about
37659 maintainership of GNAT.
37662 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
37663 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
37664 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
37665 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
37666 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
37667 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
37668 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
37669 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
37670 comments about maintainership of GNAT.
37672 PR ada/6919 (forward port of patch for PR ada/5904)
37673 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
37674 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
37675 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
37676 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
37677 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
37678 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
37679 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
37680 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
37681 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
37682 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
37683 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
37684 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
37685 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
37686 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
37687 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
37688 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
37689 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
37690 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
37691 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
37692 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
37693 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
37694 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
37695 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
37696 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
37697 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
37698 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
37699 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
37700 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
37701 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
37702 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
37703 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
37704 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
37705 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
37706 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
37707 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
37708 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
37709 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
37710 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
37711 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
37712 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
37713 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
37714 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
37715 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
37716 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
37717 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
37718 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
37719 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
37720 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
37721 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
37722 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
37723 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
37724 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
37725 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
37726 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
37727 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
37728 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
37729 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
37730 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
37731 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
37732 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
37733 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
37734 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
37735 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
37736 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
37737 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
37738 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
37739 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
37740 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
37741 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
37742 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
37743 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
37744 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
37745 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
37746 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
37747 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
37748 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
37749 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
37750 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
37751 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
37752 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
37753 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
37754 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
37755 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
37756 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
37757 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
37758 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
37759 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
37760 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
37761 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
37762 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
37763 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
37764 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
37765 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
37766 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
37767 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
37768 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
37769 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
37770 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
37771 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
37772 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
37773 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
37774 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
37775 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
37776 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
37777 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
37778 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
37779 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
37780 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
37781 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
37782 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
37783 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
37784 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
37785 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
37786 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
37787 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
37788 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
37789 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
37790 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
37791 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
37792 par-endh.adb par-labl.adb par-load.adb par-prag.adb
37793 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
37794 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
37795 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
37796 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
37797 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
37798 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
37799 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
37800 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
37801 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
37802 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
37803 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
37804 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
37805 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
37806 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
37807 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
37808 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
37809 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
37810 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
37811 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
37812 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
37813 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
37814 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
37815 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
37816 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
37817 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
37818 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
37819 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
37820 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
37821 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
37822 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
37823 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
37824 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
37825 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
37826 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
37827 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
37828 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
37829 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
37830 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
37831 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
37832 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
37833 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
37834 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
37835 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
37836 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
37837 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
37838 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
37839 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
37840 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
37841 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
37842 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
37843 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
37844 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
37845 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
37846 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
37847 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
37848 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
37849 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
37850 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
37851 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
37852 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
37853 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
37854 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
37855 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
37856 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
37857 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
37858 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
37859 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
37860 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
37861 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
37862 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
37863 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
37864 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
37865 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
37866 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
37867 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
37868 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
37869 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
37870 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
37871 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
37872 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
37873 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
37874 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
37875 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
37876 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
37877 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
37878 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
37879 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
37880 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
37881 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
37882 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
37883 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
37884 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
37885 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
37886 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
37887 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
37888 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
37889 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
37890 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
37891 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
37892 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
37893 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
37894 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
37895 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
37896 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
37897 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
37898 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
37899 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
37900 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
37901 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
37902 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
37903 stringt.ads stringt.h style.adb style.ads stylesw.adb
37904 stylesw.ads switch.adb switch.ads sysdep.c system.ads
37905 table.adb table.ads targparm.adb targparm.ads targtyps.c
37906 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
37907 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
37908 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
37909 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
37910 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
37911 usage.ads utils.c utils2.c validsw.adb validsw.ads
37912 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
37913 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
37914 xtreeprs.adb: Correct statements in comments about maintainership
37917 2002-09-23 Zack Weinberg <zack@codesourcery.com>
37919 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
37920 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
37921 * gnatvsn.ads: Gnat_Version_String is now a function.
37922 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
37923 copy the C version_string into a String and return it.
37924 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
37925 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
37926 Remove pragma Ident (Gnat_Version_String). If this was the
37927 sole use of package Gnatvsn, remove the with statement too.
37928 * gnat1drv.adb: Tweak -gnatv output.
37930 2002-09-17 Richard Henderson <rth@redhat.com>
37932 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
37933 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
37934 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
37935 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
37936 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
37937 and real_2expN instead of a loop.
37938 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
37939 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
37941 2002-08-25 Andre Leis <a.leis@gmx.net>
37942 David Billinghurst <David.Billinghurst@riotinto.com>
37944 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
37946 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37948 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
37949 Remove $(CONFIG_H) dependency.
37951 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
37953 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
37955 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
37957 * adadecode.c (ada_demangle): Use xstrdup in lieu of
37959 * misc.c (gnat_decode_option): Likewise.
37961 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
37963 * make.adb (Add_Switch): Make Generic_Position a procedure. The
37964 function approach did not work well because of a side effect (the
37965 function call could reallocate the table which was being indexed
37966 using its result). Fixes ada/4851. [RESURRECTED]
37968 2002-07-01 Roger Sayle <roger@eyesopen.com>
37970 * ada/utils.c (builtin_function): Accept an additional parameter.
37972 2002-06-28 Andreas Jaeger <aj@suse.de>
37975 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
37978 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
37980 * Makefile.in (SHELL): Set to @SHELL@.
37982 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
37984 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
37985 array size calculation.
37987 2002-06-04 Andreas Jaeger <aj@suse.de>
37989 * Make-lang.in (gnatbind): Readd rule that has been lost in last
37992 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
37994 Merge from pch-branch:
37996 * config-lang.in (gtfiles): Add ada-tree.h.
37997 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
37998 (SET_TYPE_MODULUS): New.
37999 (SET_TYPE_INDEX): New.
38000 (SET_TYPE_DIGITS_VALUE): New.
38001 (SET_TYPE_RM_SIZE): New.
38002 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
38003 (SET_TYPE_ADA_SIZE): New.
38004 (SET_TYPE_ACTUAL_BOUNDS): New.
38005 (SET_DECL_CONST_CORRESPONDING_VAR): New.
38006 (SET_DECL_ORIGINAL_FIELD): New.
38007 (TREE_LOOP_ID): Correct typo.
38008 * decl.c: Use new macros.
38009 * utils.c: Include debug.h, use new macros.
38010 * utils2.c: Use new macros.
38012 * ada-tree.h: Update all macros for new tree description.
38013 (struct tree_loop_id): New.
38014 (union lang_tree_node): New.
38015 (struct lang_decl): New.
38016 (struct lang_type): New.
38017 * misc.c (gnat_mark_tree): Delete.
38018 (LANG_HOOKS_MARK_TREE): Delete.
38019 * trans.c (tree_transform): No longer any need to cast
38022 * utils.c (struct language_function): New dummy structure.
38024 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
38025 (misc.o): Likewise.
38026 (utils.o): Likewise; also gtype-ada.h.
38027 * Make-lang.in (gnat1): Add dependency on s-gtype.
38028 (gnatbind): Add dependency on $(CONFIG_H).
38029 * utils.c: Correct last #include.
38030 (stuct e_stack): Remove unnecessary 'static'.
38031 (mark_e_stack): Remove unused prototype.
38033 * scn-nlit.adb: Remove whitespace after version number to
38034 keep lines under 80 chars.
38035 * snames.adb: Likewise.
38036 * treepr.ads: Likewise.
38038 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
38039 (misc.o): Likewise.
38040 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
38041 * config-lang.in (gtfiles): New.
38042 * decl.c: Use gengtype for roots.
38043 * gigi.h: Use gengtype for roots.
38044 * trans.c: Use gengtype for roots.
38045 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
38047 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
38049 * misc.c (gnat_init): Adjust setting of internal_error_function.
38051 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
38053 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
38054 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38055 gnat_ug_wnt.texi: Regenerate.
38057 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
38059 * 5ntaprop.adb (with System.OS_Primitives): Remove.
38061 * cstreams.c (max_path_len): Move from here ...
38062 * adaint.c (__gnat_max_path_len): ... to here.
38063 * adaint.c (__gnat_max_path_len): Declare.
38064 * g-dirope.adb (Max_Path): Adjust.
38065 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
38066 * i-cstrea.ads (max_path_len): Adjust.
38067 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
38068 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
38070 * Makefile.in, Make-lang.in: Documentation is now built in
38071 Make-lang.in. Store Info and generated Texinfo files in the
38073 * gnat_ug.texi: Remove CVS keywords, correct version number.
38074 Set file name correctly.
38076 * gnat_ug_*.texi: Add.
38077 * .cvsignore: Ignore generated Texinfo files.
38079 2002-05-30 Zack Weinberg <zack@codesourcery.com>
38081 * ada.h: Add MI guard macro.
38082 (SUBTYPE): Define constants with an anonymous enum, not static
38084 (IN): Cast constants to appropriate type before use.
38086 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
38088 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
38091 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38093 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
38094 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
38095 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
38096 (ALL_ADA_CFLAGS): Likewise.
38097 (ADA_INCLUDES): Likewise.
38098 Adapt for new working dir.
38099 (GNATBIND): Use Makefile.in version.
38100 (.SUFFIXES): Copy from Makefile.in.
38101 (ada-warn): Define.
38102 (.adb.o, .ads.o): Copy from Makefile.in.
38103 Added $(OUTPUT_OPTION).
38104 (GNAT1_C_OBJS): Moved from Makefile.in.
38105 Prefix with ada subdir.
38106 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
38107 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
38108 Adapt for new working dir.
38109 (EXTRA_GNATBIND_OBJS): Likewise.
38110 (ADA_BACKEND): Moved from Makefile.in.
38111 Renamed to avoid conflict with global BACKEND.
38113 (TARGET_ADA_SRCS): Moved from Makefile.in.
38114 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
38116 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
38117 (ada_extra_files): Moved from Makefile.in.
38118 Prefix with ada subdir.
38119 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
38120 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
38121 (ada/nmake.ads): Likewise.
38122 (update-sources): Moved from Makefile.in.
38123 Prefix with ada subdir.
38124 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
38125 (ADA_TREE_H): Likewise.
38126 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
38127 (ada/memtrack.o): Likewise.
38128 (ada/adadecode.o): Likewise.
38129 Update dependencies.
38130 (ada/adaint.o): New.
38131 (ada/argv.o): Moved from Makefile.in.
38132 Prefix with ada subdir.
38133 Update dependencies.
38134 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
38135 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
38136 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
38137 Prefix with ada subdir.
38138 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
38139 (GNAT DEPENDENCIES): Regenerate.
38140 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
38141 toplevel Makefile.in.
38142 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
38143 (TARGET_ADA_SRCS): Removed.
38144 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
38145 (GNATBIND_OBJS): Likewise.
38146 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
38147 (BACKEND): Removed.
38148 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
38149 (TREE_H): Likewise.
38150 (ada_extra_files): Likewise.
38151 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
38152 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
38153 (update-sources): Likewise.
38154 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
38155 (ADA_TREE_H): Likewise.
38156 (adadecoce.o): Likewise.
38157 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
38158 (GNAT DEPENDENCIES): Likewise.
38160 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38162 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
38163 * Makefile.in: Likewise.
38165 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38167 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
38168 Restore $(CONFIG_H) and prefix.o dependencies.
38169 (ada.stage[1-4]): Depend on stage?-start.
38171 * Makefile.in (b_gnatb.c): Depend on interfac.o.
38173 2002-05-02 Jim Wilson <wilson@redhat.com>
38175 * utils.c (finish_record_type): Change record_size to record_type.
38177 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
38179 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
38180 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
38181 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
38183 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
38185 * misc.c (gnat_parse_file): Update.
38187 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
38189 * misc.c (gnat_init): Don't set lang_attribute_common.
38191 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
38193 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
38195 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
38197 * gnat_ug.texi: New file.
38199 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
38200 instead of gfdl.texi
38202 * xgnatug.adb, ug_words: New files.
38204 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
38205 gnat_rm and gnat-style manuals.
38207 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
38209 * gigi.h (incomplete_type_error): Remove.
38210 * utils.c (incomplete_type_error): Remove.
38212 2002-04-16 Mark Mitchell <mark@codesourcery.com>
38214 * trans.c (tree_transform): Add has_scope argument to
38215 expand_start_stmt_expr.
38217 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
38219 * gigi.h (truthvalue_conversion): Rename.
38220 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
38221 * trans.c (tree_transform): Update.
38222 * utils2.c (truthvalue_conversion): Rename, update.
38223 (build_binary_op, build_unary_op): Update.
38225 2002-04-04 Laurent Guerby <guerby@acm.org>
38227 * make.adb: Implement -margs, remove restriction about file name placement.
38228 * makeusg.adb: Documentation update.
38229 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
38230 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
38232 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
38234 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
38235 (builtin_function): Similarly.
38237 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
38239 * decl.c (gnat_to_gnu_entity): Update.
38240 * gigi.h (mark_addressable): Rename.
38241 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
38242 * trans.c (tree_transform): Update.
38243 * utils.c (create_var_decl): Update.
38244 * util2.c (build_binary_op, build_unary_op,
38245 fill_vms_descriptor): Update.
38246 (mark_addressable): Rename, update.
38248 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
38250 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
38252 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
38253 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
38254 * trans.c (tree_transform, convert_with_check): Update.
38255 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
38258 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
38260 * gigi.h (finish_incomplete_decl): Rename.
38261 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
38262 * utils.c (gnat_init_decl_processing): Don't set hook.
38263 (finish_incomplete_decl): Rename.
38265 2002-03-29 Andreas Schwab <schwab@suse.de>
38267 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
38270 2001-03-28 Robert Dewar <dewar@gnat.com>
38273 (Remove_Checks): New procedure
38276 (Remove_Checks): New procedure
38279 Use new Duplicate_Subexpr functions
38280 (Duplicate_Subexpr_No_Checks): New procedure
38281 (Duplicate_Subexpr_No_Checks_Orig): New procedure
38282 (Duplicate_Subexpr): Restore original form (checks duplicated)
38283 (Duplicate_Subexpr): Call Remove_Checks
38286 (Duplicate_Subexpr_No_Checks): New procedure
38287 (Duplicate_Subexpr_No_Checks_Orig): New procedure
38288 Add 2002 to copyright notice
38290 * sem_util.adb: Use new Duplicate_Subexpr functions
38293 (Eval_Indexed_Component): This is the place to call
38294 Constant_Array_Ref and to replace the value. We simply merge
38295 the code of this function in here, since it is now no longer
38296 used elsewhere. This fixes the problem of the back end not
38297 realizing we were clever enough to see that this was
38299 (Expr_Val): Remove call to Constant_Array_Ref
38300 (Expr_Rep_Val): Remove call to Constant_Array_Ref
38302 (Constant_Array_Ref): Deal with string literals (patch
38303 suggested by Zack Weinberg on the gcc list)
38305 2001-03-28 Ed Schonberg <schonber@gnat.com>
38307 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
38308 Duplicate_Subexpr_Move_Checks.
38310 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
38311 Duplicate_Subexpr_Move_Checks.
38313 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
38314 value of array exists before retrieving it (it may a private
38315 protected component in a function).
38317 2002-03-28 Geert Bosch <bosch@gnat.com>
38319 * prj-pp.adb : New file.
38321 * prj-pp.ads : New file.
38323 2002-03-28 Andreas Jaeger <aj@suse.de>
38325 * Makefile.in (stamp-sdefault): Fix path for Makefile.
38327 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
38329 * misc.c (gnat_expand_expr): Move prototype.
38331 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38333 * misc.c (insert_default_attributes): Remove.
38335 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38337 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
38338 (gnat_init): Don't set hook.
38339 (gnat_expand_expr): Fix prototype.
38341 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38343 * misc.c (ggc_p): Remove.
38345 2002-03-27 Geert Bosch <bosch@gnat.com>
38347 * prj-makr.ads, prj-makr.adb : New files.
38349 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
38351 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
38352 (lang_mark_tree): Make static, rename.
38354 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
38356 * misc.c (maybe_build_cleanup): Remove.
38358 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
38360 * gigi.h (yyparse): Remove.
38362 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
38364 From Ben Brosgol <brosgol@gnat.com>
38365 * gnat_rm.texi: Sync with ACT version.
38367 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
38369 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
38370 (gnat_init): Remove old hook.
38372 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
38374 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
38375 (yyparse): Rename gnat_parse_file.
38377 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
38379 Delete all lines containing "$Revision:".
38380 * xeinfo.adb: Don't look for revision numbers.
38381 * xnmake.adb: Likewise.
38382 * xsinfo.adb: Likewise.
38383 * xsnames.adb: Likewise.
38384 * xtreeprs.adb: Likewise.
38386 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38388 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
38389 gnat_tree_code_name): Delete.
38390 (tree_code_type, tree_code_length, tree_code_name): Define.
38391 (gnat_init): Don't try to copy into the various tree_code
38394 2002-03-11 Richard Henderson <rth@redhat.com>
38396 * Makefile.in (.NOTPARALLEL): Add fake tag.
38398 2002-03-07 Geert Bosch <bosch@gnat.com>
38400 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
38401 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
38402 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
38403 switch-m.adb, switch-m.ads : New files.
38405 2002-03-07 Geert Bosch <bosch@gnat.com>
38407 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
38408 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
38409 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
38410 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
38411 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
38412 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
38413 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
38414 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
38415 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
38416 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
38417 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
38418 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
38419 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
38420 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
38421 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
38422 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
38423 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
38424 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
38425 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38426 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
38427 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
38428 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
38429 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
38430 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
38431 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
38432 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
38433 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
38434 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
38435 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
38436 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
38437 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
38438 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
38439 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
38440 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
38441 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
38442 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
38443 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38444 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
38445 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
38446 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
38447 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
38448 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
38449 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
38450 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
38451 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
38452 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
38453 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
38454 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
38455 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
38456 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
38457 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
38458 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
38459 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
38460 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
38461 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
38462 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
38463 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
38464 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
38465 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
38466 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
38467 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
38468 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
38469 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
38470 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
38471 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
38472 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
38473 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
38474 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
38475 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
38476 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
38477 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
38478 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
38479 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
38480 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
38481 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
38482 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38483 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
38484 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38485 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
38486 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38487 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
38488 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
38489 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
38490 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
38491 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
38492 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
38493 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
38494 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
38495 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
38496 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
38497 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
38498 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
38499 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
38500 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
38501 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
38502 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
38503 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
38505 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
38506 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
38507 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
38508 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
38510 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
38511 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
38513 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
38514 to mdll-fil.ad[bs] and mdll-util.ad[bs]
38516 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
38517 from mdllfile.ad[bs] and mdlltool.ad[bs]
38519 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38521 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
38522 lieu of explicit sizeof/sizeof.
38524 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
38526 * misc.c (copy_lang_decl): Remove.
38528 2002-02-27 Zack Weinberg <zack@codesourcery.com>
38530 * misc.c: Delete traditional-mode-related code copied from the
38531 C front end but not used, or used only to permit the compiler
38534 2002-02-07 Richard Henderson <rth@redhat.com>
38536 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
38537 * adaint.h (__gnat_to_gm_time): Update prototype.
38539 2002-01-30 Richard Henderson <rth@redhat.com>
38541 * trans.c (tree_transform) [N_Loop_Statement]: Use
38542 expand_exit_loop_top_cond.
38544 2001-12-23 Richard Henderson <rth@redhat.com>
38546 * utils.c (end_subprog_body): Push GC context around
38547 rest_of_compilation for nested functions.
38549 2001-12-23 Richard Henderson <rth@redhat.com>
38551 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
38553 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
38555 * gnat-style.texi (Declarations and Types): Remove ancient style
38556 rule which was mandated by code generation issues.
38558 * gnat-style.texi (header): Add @dircategory, @direntry.
38559 (title page): Remove date.
38560 (general) Add @./@: where approriate, and two spaces after the
38561 full stop at the end of a sentence. Use @samp markup when
38562 referring concrete lexical entities (keywords, attribute names
38563 etc.), and @syntax for ARM grammar elements. Use @r for English
38564 text in comments. Use @emph for emphasis. Change "if-statements"
38565 etc. to "if statements" (without @samp). Break long lines. Make
38566 casing of section names consistent.
38567 (Identifiers): Use @samp markup for variable names.
38568 (Comments): Use @samp markup for comment characters. Line-end
38569 comments may follow any Ada code, not just statements. Fix
38570 misspelling of "Integer" as "integer".
38571 (Loop statements): Do not use variable name "I", use "J".
38572 (Subprogram Declarations): Document alignment.
38573 (Subprogram Bodies, Block statements): Document empty line before
38576 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
38578 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38579 function approach did not work well because of a side effect (the
38580 function call could reallocate the table which was being indexed
38581 using its result). Fixes ada/4851.
38583 2001-12-19 Robert Dewar <dewar@gnat.com>
38585 * bindgen.adb: Minor reformatting
38587 * cstand.adb: Minor reformatting
38589 * fmap.adb: Minor reformatting
38590 Change name from Add for Add_To_File_Map (Add is much too generic)
38591 Change Path_Name_Of to Mapped_Path_Name
38592 Change File_Name_Of to Mapped_File_Name
38593 Fix copyright dates in header
38596 Change name from Add for Add_To_File_Map (Add is much too generic)
38597 Change Path_Name_Of to Mapped_Path_Name
38598 Change File_Name_Of to Mapped_File_Name
38599 Fix copyright dates in header
38601 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
38602 Add use clause for Fmap.
38604 * make.adb: Minor reformatting
38606 * osint.adb: Minor reformatting. Change of names in Fmap.
38607 Add use clause for Fmap.
38609 * prj-env.adb: Minor reformatting
38611 * prj-env.ads: Minor reformatting
38613 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
38614 error found (there were odd exceptions to this general rule in
38615 -gnatec/-gnatem processing)
38617 2001-12-19 Olivier Hainque <hainque@gnat.com>
38619 * raise.c (__gnat_eh_personality): Exception handling personality
38620 routine for Ada. Still in rough state, inspired from the C++ version
38621 and still containing a bunch of debugging artifacts.
38622 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
38623 inspired from the C++ library.
38625 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
38626 exception handling integration.
38628 2001-12-19 Arnaud Charlet <charlet@gnat.com>
38630 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
38631 (HIE_SOURCES): Add s-secsta.ad{s,b}.
38632 (HIE_OBJS): Add s-fat*.o
38633 (RAVEN_SOURCES): Remove files that are no longer required. Add
38634 interrupt handling files.
38635 (RAVEN_MOD): Removed, no longer needed.
38637 2001-12-19 Robert Dewar <dewar@gnat.com>
38639 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
38640 Add 2001 to copyright date
38642 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
38643 need to force universal inlining for these cases.
38645 2001-12-19 Arnaud Charlet <charlet@gnat.com>
38647 * s-taprob.adb: Minor clean ups so that this unit can be used in
38650 * exp_ch7.adb: Allow use of secondary stack in HI mode.
38651 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
38653 2001-12-19 Vincent Celier <celier@gnat.com>
38655 * prj-tree.ads (Project_Node_Record): Add comments for components
38656 Pkg_Id and Case_Insensitive.
38658 2001-12-19 Pascal Obry <obry@gnat.com>
38660 * g-socket.adb: Minor reformatting. Found while reading code.
38662 2001-12-19 Robert Dewar <dewar@gnat.com>
38664 * prj-tree.ads: Minor reformatting
38666 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
38668 * config-lang.in (diff_excludes): Remove.
38670 2001-12-17 Ed Schonberg <schonber@gnat.com>
38672 * sem_res.adb (Resolve_Selected_Component): do not generate a
38673 discriminant check if the selected component is a component of
38674 the argument of an initialization procedure.
38676 * trans.c (tree_transform, case of arithmetic operators): If result
38677 type is private, the gnu_type is the base type of the full view,
38678 given that the full view itself may be a subtype.
38680 2001-12-17 Robert Dewar <dewar@gnat.com>
38682 * sem_res.adb: Minor reformatting
38684 * trans.c (tree_transform, case N_Real_Literal): Add missing third
38685 parameter in call to Machine (unknown horrible effects from this
38688 * urealp.h: Add definition of Round_Even for call to Machine
38689 Add third parameter for Machine
38691 2001-12-17 Ed Schonberg <schonber@gnat.com>
38693 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
38694 predefined units in No_Run_Time mode.
38696 2001-12-17 Richard Kenner <kenner@gnat.com>
38698 * misc.c (insn-codes.h): Now include.
38700 2001-12-17 Olivier Hainque <hainque@gnat.com>
38702 * a-except.adb: Preparation work for future integration of the GCC 3
38703 exception handling mechanism
38704 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
38705 to factorize previous code sequences and make them externally callable,
38706 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
38707 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
38708 Use the new notification routines.
38710 2001-12-17 Emmanuel Briot <briot@gnat.com>
38712 * prj-tree.ads (First_Choice_Of): Document the when others case
38714 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38716 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
38717 HI-E mode, in order to support Ravenscar profile properly.
38719 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
38720 mode on 32 bits targets.
38722 2001-12-17 Vincent Celier <celier@gnat.com>
38724 * fmap.adb: Initial version.
38726 * fmap.ads: Initial version.
38728 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
38729 If search is successfully done, add to mapping.
38731 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
38734 (Gnatmake): Add new local variable Mapping_File_Name.
38735 Create mapping file when using project file(s).
38736 Delete mapping file before exiting.
38738 * opt.ads (Mapping_File_Name): New variable
38740 * osint.adb (Find_File): Use path name found in mapping, if any.
38742 * prj-env.adb (Create_Mapping_File): New procedure
38744 * prj-env.ads (Create_Mapping_File): New procedure.
38746 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
38749 * usage.adb: Add entry for new switch -gnatem.
38751 * Makefile.in: Add dependencies for fmap.o.
38753 2001-12-17 Ed Schonberg <schonber@gnat.com>
38755 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
38756 is a package instantiation rewritten as a package body.
38757 (Install_Withed_Unit): Undo previous change, now redundant.
38759 2001-12-17 Gary Dismuke <dismukes@gnat.com>
38762 (Compute_Length): Move conversion to Unsigned to callers.
38763 (Get_Max_Size): Convert Len expression to Unsigned after calls to
38764 Compute_Length and Determine_Range.
38765 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
38766 Compute_Length and Determine_Range.
38767 Above changes fix problem with length computation for supernull arrays
38768 where Max (Len, 0) wasn't getting applied due to the Unsigned
38769 conversion used by Compute_Length.
38771 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38774 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
38775 System.Secondary_Stack.
38776 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
38778 Remove unused entity RE_Exception_Data.
38780 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
38782 * rident.ads (No_Secondary_Stack): New restriction.
38784 2001-12-17 Joel Brobecker <brobecke@gnat.com>
38786 * gnat_rm.texi: Fix minor typos. Found while reading the section
38787 regarding "Bit_Order Clauses" that was sent to a customer.
38788 Very interesting documentation!
38790 2001-12-17 Robert Dewar <dewar@gnat.com>
38792 * sem_case.adb (Choice_Image): Avoid creating improper character
38793 literal names by using the routine Set_Character_Literal_Name. This
38794 fixes bombs in certain error message cases.
38796 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38798 * a-reatim.adb: Minor reformatting.
38800 2001-12-17 Ed Schonberg <schonber@gnat.com>
38802 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
38803 case where the formal is an extension of another formal in the current
38804 unit or in a parent generic unit.
38806 2001-12-17 Arnaud Charlet <charlet@gnat.com>
38808 * s-tposen.adb: Update comments. Minor reformatting.
38809 Minor code clean up.
38811 * s-tarest.adb: Update comments. Minor code reorganization.
38813 2001-12-17 Gary Dismukes <dismukes@gnat.com>
38815 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
38818 2001-12-17 Robert Dewa <dewar@gnat.com>
38820 * exp_attr.adb: Minor reformatting
38822 2001-12-17 Ed Schonberg <schonber@gnat.com>
38824 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
38825 derivations nested within a child unit: verify that the parent
38826 type is declared in an outer scope.
38828 2001-12-17 Robert Dewar <dewar@gnat.com>
38830 * sem_ch12.adb: Minor reformatting
38832 2001-12-17 Ed Schonberg <schonber@gnat.com>
38834 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
38835 warning if current unit is a predefined one, from which bodies may
38838 2001-12-17 Robert Dewar <dewar@gnat.com>
38840 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
38841 Fix header format. Add 2001 to copyright date.
38843 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
38844 which caused CE during compilation if checks were enabled.
38846 2001-12-17 Vincent Celier <celier@gnat.com>
38849 (Switches_Of): New function
38850 (Test_If_Relative_Path): New procedure
38851 (Add_Switches): Use new function Switches_Of
38852 (Collect_Arguments_And_Compile): Use new function Switches_Of.
38853 When using a project file, test if there are any relative
38854 search path. Fail if there are any.
38855 (Gnatmake): Only add switches for the primary directory when not using
38856 a project file. When using a project file, change directory to the
38857 object directory of the main project file. When using a project file,
38858 test if there are any relative search path. Fail if there are any.
38859 When using a project file, fail if specified executable is relative
38860 path with directory information, and prepend executable, if not
38861 specified as an absolute path, with the exec directory. Make sure
38862 that only one -o switch is transmitted to the linker.
38864 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
38867 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
38868 when using a non standard naming scheme.
38869 (Check_Ada_Naming_Scheme): Make sure that error messages
38870 do not raise exceptions.
38871 (Is_Illegal_Append): Return True if there is no dot in the suffix.
38872 (Language_Independent_Check): Check the exec directory.
38874 * prj.adb (Project_Empty): Add new component Exec_Directory
38877 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
38878 (Project_Data): Add component Exec_Directory
38880 * snames.adb: Updated to match snames.ads revision 1.215
38882 * snames.ads: Added Exec_Dir
38884 2001-12-17 Robert Dewar <dewar@gnat.com>
38886 * make.adb: Minor reformatting
38888 * prj-nmsc.adb: Minor reformatting
38890 * snames.adb: Updated to match snames.ads
38892 * snames.ads: Alphebetize entries for project file
38894 2001-12-17 Ed Schonberg <schonber@gnat.com>
38896 * trans.c (process_freeze_entity): Do nothing if the entity is a
38897 subprogram that was already elaborated.
38899 2001-12-17 Richard Kenner <kenner@gnat.com>
38901 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
38902 and Esize if object is referenced via pointer.
38904 2001-12-17 Ed Schonberg <schonber@gnat.com>
38906 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
38907 is discrete before analyzing choices.
38909 2001-12-17 Joel Brobecker <brobecke@gnat.com>
38911 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
38912 containing the name of the Ada Main Program. This string is mainly
38913 intended for the debugger.
38914 (Gen_Output_File_C): Do the equivalent change when generating a C file.
38916 2001-12-17 Robert Dewar <dewar@gnat.com>
38918 * ali.adb: Set new Dummy_Entry field in dependency entry
38920 * ali.ads: Add Dummy_Entry field to source dependency table
38922 * bcheck.adb (Check_Consistency): Ignore dummy D lines
38924 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
38926 * lib-writ.ads: Document dummy D lines for missing files.
38928 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
38930 2001-12-17 Robert Dewar <dewar@gnat.com>
38932 * ali.adb: Type reference does not reset current file.
38934 * ali.adb: Recognize and scan renaming reference
38936 * ali.ads: Add spec for storing renaming references.
38938 * lib-xref.ads: Add documentation for handling of renaming references
38940 * lib-xref.adb: Implement output of renaming reference.
38943 (Determine_Range): Document local variables
38944 (Determine_Range): Make sure Hbound is initialized. It looks as though
38945 there could be a real problem here with an uninitialized reference
38946 to Hbound, but no actual example of failure has been found.
38948 2001-12-17 Laurent Pautet <pautet@gnat.com>
38951 Fix comment of Shutdown_Socket and Close_Socket. These functions
38952 should not fail silently because if they are called twice, this
38953 probably means that there is a race condition in the user program.
38954 Anyway, this behaviour is consistent with the rest of this unit.
38955 When an error occurs, an exception is raised with the error message
38956 as exception message.
38958 2001-12-17 Robert Dewar <dewar@gnat.com>
38960 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
38961 that it happens before modification of Sloc values for -gnatD.
38963 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
38964 so that it happens before modification of Sloc values for -gnatD.
38966 * switch.adb: Minor reformatting
38968 2001-12-15 Richard Henderson <rth@redhat.com>
38970 * sem_ch7.adb: Wrap comment.
38972 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
38974 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
38975 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
38976 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
38977 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
38978 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
38979 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
38980 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
38981 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
38982 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
38983 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
38984 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
38985 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
38986 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
38987 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
38988 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
38989 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
38990 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
38991 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
38992 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
38993 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
38994 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
38995 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
38996 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
38997 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
39000 2001-12-14 Vincent Celier <celier@gnat.com>
39002 * osint.adb(Create_Debug_File): When an object file is specified,
39003 put the .dg file in the same directory as the object file.
39005 2001-12-14 Robert Dewar <dewar@gnat.com>
39007 * osint.adb: Minor reformatting
39009 * lib-xref.adb (Output_Instantiation): New procedure to generate
39010 instantiation references.
39012 * lib-xref.ads: Add documentation of handling of generic references.
39014 * ali.adb (Read_Instantiation_Ref): New procedure to read
39015 instantiation references
39017 * ali.ads: Add spec for storing instantiation references
39019 * bindusg.adb: Minor reformatting
39021 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39023 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39025 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39027 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39031 Add 2001 to copyright date
39032 Add entry for Latin-5 (Cyrillic ISO-8859-5)
39034 2001-12-14 Matt Gingell <gingell@gnat.com>
39036 * adaint.c: mktemp is a macro on Lynx and can not be used as an
39039 2001-12-14 Richard Kenner <kenner@gnat.com>
39041 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
39042 if operand is CONSTRUCTOR.
39044 2001-12-14 Ed Schonberg <schonber@gnat.com>
39046 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
39047 before emiting check on right-hand side, so that exception information
39050 2001-12-14 Richard Kenner <kenner@gnat.com>
39052 * utils.c (create_var_decl): Throw away initializing expression
39053 if just annotating types and non-constant.
39055 2001-12-14 Vincent Celier <celier@gnat.com>
39057 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
39060 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39062 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
39064 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39066 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
39068 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39070 * ChangeLog: Remove piece of diff output.
39072 2001-12-14 Geert Bosch <bosch@gnat.com>
39074 * config-lang.in: Update copyright notice
39076 * layout.adb: Remove commented out code.
39078 * mdllfile.ads: Update copyright notice. Fix header format.
39080 * sem_case.ads: Likewise.
39082 * sem_ch3.adb: Minor reformatting.
39084 2001-12-12 Geert Bosch <bosch@gnat.com>
39086 * freeze.ads: Update copyright date.
39088 * g-comlin.ads: Minor reformatting.
39090 * gnat-style.texi: Fix typo.
39092 2001-12-12 Geert Bosch <bosch@gnat.com>
39094 * einfo.h: Regenerate.
39096 2001-12-12 Ed Schonberg <schonber@gnat.com>
39098 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
39099 on known node types, rather than untyped fields. Further cleanups.
39101 2001-12-12 Robert Dewar <dewar@gnat.com>
39104 (Save_Entity_Descendant): Minor comment update.
39105 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
39106 of an N_Attribute_Reference node. As per note below, this does not
39107 eliminate need for Associated_Node in attribute ref nodes.
39108 (Associated_Node): Documentation explicitly mentions attribute
39109 reference nodes, since this field is used in such nodes.
39111 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
39113 2001-12-12 Robert Dewar <dewar@gnat.com>
39115 * s-stalib.adb: Add more comments on with statements being needed
39117 * par-ch12.adb: Minor reformatting
39119 * prj-dect.ads: Fix copyright header
39121 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
39122 inputs fit in 32 bits, but the result still overflows.
39124 * s-fatgen.ads: Minor comment improvement
39126 2001-12-12 Ed Schonberg <schonber@gnat.com>
39128 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
39129 formal derived type, look for an inherited component from the full
39130 view of the parent, if any.
39132 2001-12-12 Robert Dewar <dewar@gnat.com>
39134 * checks.ads (Apply_Alignment_Check): New procedure.
39136 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
39137 ensure that the alignment of objects with address clauses is
39138 appropriate, and raise PE if not.
39140 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
39141 Exp_Pakd.Known_Aligned_Enough
39143 * mdllfile.ads: Minor reformatting
39145 * mlib-fil.ads: Minor reformatting
39147 2001-12-12 Ed Schonberg <schonber@gnat.com>
39149 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
39150 fix to any component reference if enclosing record has non-standard
39153 2001-12-12 Vincent Celier <celier@gnat.com>
39155 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
39158 2001-12-12 Ed Schonberg <schonber@gnat.com>
39160 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
39163 2001-12-12 Robert Dewar <dewar@gnat.com>
39165 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
39167 2001-12-12 Emmanuel Briot <briot@gnat.com>
39169 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
39170 and it adds dependencies to system.io.
39172 2001-12-12 Pascal Obry <obry@gnat.com>
39174 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
39177 2001-12-11 Ed Schonberg <schonber@gnat.com>
39179 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
39180 that is the parent of other generics, the instance body replaces the
39181 instance node. Retrieve the instance of the spec, which is the one
39182 that is visible in clients and within the body.
39184 2001-12-11 Vincent Celier <celier@gnat.com>
39186 * gnatmain.adb: Initial version.
39188 * gnatmain.ads: Initial version.
39190 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
39192 * snames.adb: Updated to match snames.ads.
39194 * snames.ads: Added Gnatstub.
39196 2001-12-11 Vincent Celier <celier@gnat.com>
39198 * prj-attr.adb (Initialization_Data): Change name from
39199 Initialisation_Data.
39201 2001-12-11 Emmanuel Briot <briot@gnat.com>
39203 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
39204 + and * applied to backslashed expressions like \r.
39206 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
39208 * g-os_lib.ads: String_List type added, Argument_List type is now
39209 subtype of String_List.
39211 2001-12-11 Robert Dewar <dewar@gnat.com>
39213 * g-os_lib.ads: Change copyright to FSF
39214 Add comments for String_List type
39216 2001-12-11 Vincent Celier <celier@gnat.com>
39218 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
39219 string to the buffer).
39221 2001-12-11 Ed Schonberg <schonber@gnat.com>
39223 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
39226 * sem_attr.adb: Simplify previous fix for Address.
39227 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
39228 to avoid anomalies where the bound of the type appears to raise
39231 2001-12-11 Robert Dewar <dewar@gnat.com>
39233 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
39236 2001-12-11 Ed Schonber <schonber@gnat.com>
39238 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
39239 renamed unit before checking for recursive instantiations.
39241 2001-12-11 Emmanuel Briot <briot@gnat.com>
39243 * prj.ads: Add comments for some of the fields.
39245 2001-12-11 Robert Dewar <dewar@gnat.com>
39247 * lib-xref.adb (Output_Refs): Don't output type references outside
39248 the main unit if they are not otherwise referenced.
39250 2001-12-11 Ed Schonberg <schonber@gnat.com>
39252 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
39253 code and diagnose additional illegal uses
39255 * sem_util.adb (Is_Object_Reference): An indexed component is an
39256 object only if the prefix is.
39258 2001-12-11 Vincent Celier <celier@gnat.com>
39260 * g-diopit.adb: Initial version.
39262 * g-diopit.ads: Initial version.
39265 (Expand_Path): Avoid use of Unbounded_String
39266 (Find, Wildcard_Iterator): Moved to child package Iteration
39268 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
39270 2001-12-11 Robert Dewar <dewar@gnat.com>
39272 * sem_attr.adb: Minor reformatting
39274 2001-12-11 Ed Schonberg <schonber@gnat.com>
39276 * sem_ch3.adb: Clarify some ???.
39278 2001-12-11 Robert Dewar <dewar@gnat.com>
39280 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
39281 Exp_Pakd.Known_Aligned_Enough
39283 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
39284 version is moved to Exp_Ch13.
39286 2001-12-11 Robert Dewar <dewar@gnat.com>
39288 * einfo.ads: Minor reformatting
39290 * exp_ch5.adb: Add comment for previous.change
39292 * ali.adb: New interface for extended typeref stuff.
39294 * ali.ads: New interface for typeref stuff.
39296 * checks.adb (Apply_Alignment_Check): New procedure.
39298 * debug.adb: Add -gnatdM for modified ALI output
39300 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
39302 * lib-xref.adb: Extend generation of <..> notation to cover
39303 subtype/object types. Note that this is a complete rewrite,
39304 getting rid of the very nasty quadratic algorithm previously
39305 used for derived type output.
39307 * lib-xref.ads: Extend description of <..> notation to cover
39308 subtype/object types. Uses {..} for these other cases.
39309 Also use (..) for pointer types.
39311 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
39313 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
39314 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
39316 2001-12-11 Vincent Celier <celier@gnat.com>
39319 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
39320 Changed /BIND_ONLY to /ACTIONS=BIND
39321 Changed /LINK_ONLY to /ACTIONS=LINK
39323 2001-12-11 Ed Schonberg <schonber@gnat.com>
39325 * sem_ch8.adb (Find_Selected_Component): improved search for a
39326 candidate package in case of error.
39328 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
39329 chain back on scope stack before reinstalling use clauses.
39331 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
39332 is enabled, do not kill the code for the condition, to preserve
39335 2001-12-11 Robert Dewar <dewar@gnat.com>
39337 * checks.adb (Insert_Valid_Check): Apply validity check to expression
39338 of conversion, not to result of conversion.
39340 2001-12-11 Ed Schonberg <schonber@gnat.com>
39342 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
39343 before freezing parent. If the declarations are mutually recursive,
39344 an access to the current record type may be frozen before the
39345 derivation is complete.
39347 2001-12-05 Vincent Celier <celier@gnat.com>
39349 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
39350 -c /COMPILE_ONLY, -l /LINK_ONLY
39353 (Bind_Only): New Flag
39354 (Link_Only): New flag
39356 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
39359 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
39362 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
39363 (Gnatmake): Set the step flags. Only perform a step if the
39364 corresponding step flag is True.
39365 (Scan_Make_Arg): Reset the bind and link step flags when -u
39366 or -gnatc has been specified.
39368 2001-12-05 Ed Schonberg <schonber@gnat.com>
39370 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
39371 get bounds from right operand.
39373 * sem_eval.adb: Minor reformatting
39375 * exp_util.adb (Make_Literal_Range): use bound of literal rather
39376 than Index'First, its lower bound may be different from 1.
39378 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
39381 2001-12-05 Vincent Celier <celier@gnat.com>
39383 * prj-nmsc.adb Minor reformatting
39385 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
39386 set and libraries are not supported.
39388 2001-12-05 Ed Schonberg <schonber@gnat.com>
39390 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
39391 private view explicitly, so the back-end can treat as a global
39394 2001-12-05 Ed Schonberg <schonber@gnat.com>
39396 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
39397 unit, always replace instance node with new body, for ASIS use.
39399 2001-12-05 Vincent Celier <celier@gnat.com>
39401 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
39402 libraries are not supported and both attributes Library_Name and
39403 Library_Dir are specified.
39405 * prj-proc.adb (Expression): Set location of Result to location of
39408 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
39409 (prj-nmsc is now importing MLib.Tgt)
39411 * prj-proc.adb: Put the change indicated above that was forgotten.
39413 2001-12-05 Robert Dewar <dewar@gnat.com>
39415 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
39417 2001-12-05 Ed Schonberg <schonber@gnat.com>
39419 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
39420 constraint, introduce explicit subtype declaration and derive from it.
39422 * sem_ch3.adb: Minor reformatting
39424 2001-12-05 Robert Dewar <dewar@gnat.com>
39426 * checks.adb (Determine_Range): Increase cache size for checks.
39429 * exp_ch6.adb: Minor reformatting
39430 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
39431 a parameter whose root type is System.Address, since treating such
39432 subprograms as pure in the code generator is almost surely a mistake
39433 that will lead to unexpected results.
39435 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
39436 change handling of conversions.
39438 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
39440 2001-12-05 Ed Schonberg <schonber@gnat.com>
39442 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
39443 aggregate with static wrong size, attach generated Raise node to
39446 2001-12-05 Robert Dewar <dewar@gnat.com>
39448 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
39449 Fixes compilation abandoned bomb in B24009B.
39451 2001-12-05 Ed Schonberg <schonber@gnat.com>
39454 Document use of Associated_Node on Selected_Components.
39455 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
39456 to clarify use of untyped descendant fields.
39458 2001-12-05 Robert Dewar <dewar@gnat.com>
39460 * prj-dect.ads: Add ??? comment
39461 Add 2001 to copyright notice (was not done in after all)
39463 * prj-part.adb: Minor reformatting. Reword one awkward error message.
39465 * prj.ads: Minor reformatting throughout, and add some ??? comments
39467 * snames.ads: Minor reformatting
39469 2001-12-05 Geert Bosch <bosch@gnat.com>
39471 * snames.adb: Autoupdate
39473 2001-12-05 Vincent Celier <celier@gnat.com>
39475 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
39477 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
39479 * prj-env.adb: Minor comment changes (modifying -> extends).
39481 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
39483 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
39486 * prj.adb (Initialize): Change Modifying to Extends.
39488 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
39490 * prj.ads: Minor comment change (Modifying -> extending).
39492 * snames.ads: Change modifying to extends.
39494 2001-12-05 Robert Dewar <dewar@gnat.com>
39496 * sem_warn.adb: Remove stuff for conditionals, we are not going to
39499 * sem_warn.ads: Remove stuff for conditionals, we are not going to
39500 do this after all. Add 2001 to copyright notice
39502 2001-12-04 Geert Bosch <bosch@gnat.com>
39504 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
39506 2001-12-04 Robert Dewar <dewar@gnat.com>
39508 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
39509 location if we already have errors. Stops some cases of cascaded
39512 * errout.adb: Improve comment.
39514 2001-12-04 Robert Dewar <dewar@gnat.com>
39517 (Analyze_Formal_Type_Definition): Defend against Error.
39518 (Analyze_Formal_Subprogram): Defend against Error.
39520 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
39521 remove following semicolon if present. Removes cascaded error.
39523 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
39526 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
39527 exceptions equals 0.
39528 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
39529 Fixes PIWG E tests (which have to be run with -gnatL).
39531 2001-12-04 Robert Dewar <dewar@gnat.com>
39533 * einfo.ads: Minor reformatting
39535 2001-12-04 Ed Schonberg <schonber@gnat.com>
39537 * einfo.ads: Block_Node points to the identifier of the block, not to
39538 the block node itself, to preserve the link when the block is
39539 rewritten, e.g. within an if-statement with a static condition.
39541 * inline.adb (Cleanup_Scopes): recover block statement from block
39542 entity using new meaning of Block_Node.
39544 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
39545 identifier of block node, rather than to node itself.
39547 2001-12-04 Gary Dismukes <dismukes@gnat.com>
39550 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
39551 (Discrimify): Go back to setting the Etypes of the selected component
39552 because the Vname component does not exist at this point and will
39553 fail name resolution. Also set Analyzed.
39554 Remove with and use of Sem_Res.
39556 2001-12-04 Arnaud Charlet <charlet@gnat.com>
39558 * Makefile.in: (HIE_SOURCES): add s-fat*.
39560 2001-12-04 Robert Dewar <dewar@gnat.com>
39563 (Compile_Time_Known_Attribute): New procedure.
39564 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
39565 proper range check.
39567 2001-12-04 Ed Schonberg <schonber@gnat.com>
39569 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
39570 processing discriminants to diagnose illegal default values.
39572 2001-12-04 Ed Schonberg <schonber@gnat.com>
39574 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
39575 access discriminant within a type extension that constrains its
39576 parent discriminants.
39578 2001-12-04 Ed Schonberg <schonber@gnat.com>
39580 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
39581 is malformed, use instance of Any_Id to allow analysis to proceed.
39583 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
39584 type definition is illegal.
39585 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
39588 2001-12-04 Ed Schonberg <schonber@gnat.com>
39590 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
39593 2001-12-04 Robert Dewar <dewar@gnat.com>
39595 * errout.adb: Minor reformatting
39597 2001-12-04 Robert Dewar <dewar@gnat.com>
39599 * exp_util.adb: Minor reformatting from last change
39601 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
39602 which is a rewriting of an expression, traverse the original
39603 expression to remove warnings that may have been posted on it.
39605 2001-12-04 Ed Schonberg <schonber@gnat.com>
39607 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
39608 record that has other packed components.
39610 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
39612 * adaint.c: Minor cleanups.
39614 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
39616 * adaint.c: Do not use utime.h on vxworks.
39618 2001-12-04 Arnaud Charlet <charlet@gnat.com>
39620 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
39621 more confusion than it solves.
39623 2001-12-04 Geert bosch <bosch@gnat.com>
39625 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
39627 2001-12-04 Geert Bosch <bosch@gnat.com>
39629 * Makefile.in (update-sources): New target.
39630 For use by gcc_release script.
39632 2001-12-04 Ed Schonberg <schonber@gnat.com>
39634 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
39635 a configuration pragma, it is now legal wherever a pragma can appear.
39637 2001-12-04 Zack Weinberg <zack@codesourcery.com>
39639 * Makefile.in: Don't set ALL. Delete @cross_defines@,
39640 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
39641 is now @CROSS@ -DIN_GCC; update comment.
39643 2001-12-04 Robert Dewar <dewar@gnat.com>
39645 * einfo.adb (Has_Pragma_Pure_Function): New flag.
39646 Fix problem that stopped ceinfo from working
39648 * einfo.ads (Has_Pragma_Pure_Function): New flag.
39650 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
39652 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
39655 (File_Time_Stamp): New procedure.
39656 (Preserve_Mode): New boolean.
39657 (Write_Unit): Pass time stamp.
39658 Implement -p switch (preserve time stamps).
39660 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
39662 * gnatchop.adb: Do usage info for -p switch
39664 * adaint.h (__gnat_set_file_time_name): New function
39666 * adaint.c (__gnat_set_file_time_name): Implement
39668 * adaint.h: Fix typo
39670 2001-12-03 Robert Dewar <dewar@gnat.com>
39672 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
39673 have Associated_Node.
39675 2001-12-03 Robert Dewar <dewar@gnat.com>
39677 * prj-proc.adb: Minor reformatting
39679 * make.adb: Minor reformatting
39681 2001-12-03 Geert Bosch <bosch@gnat.com>
39683 * make.adb: Minor reformatting.
39685 2001-12-03 Robert Dewar <dewar@gnat.com>
39687 * sem_ch12.adb: Minor reformatting
39689 2001-12-03 Ed Schonberg <schonber@gnat.com>
39691 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
39692 push Standard on the stack before analyzing the instance body,
39693 in order to have a clean visibility environment.
39695 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
39697 2001-12-03 Ed Schonberg <schonber@gnat.com>
39699 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
39700 instantiation of a body that contains an inlined body.
39702 2001-12-03 Ed Schonberg <schonber@gnat.com>
39705 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
39706 to prevent freezing within formal packages.
39707 (Freeze_Subprogram_Body): If body comes from another instance that
39708 appeared before its own body, place freeze node at end of current
39709 declarative part, to prevent a back-end crash.
39710 (Inline_Instance_Body): Handle properly a package instance within
39711 a subprogram instance that is a child unit.
39713 2001-12-01 Graham Stott <grahams@redhat.com>
39715 * Makefile.in (misc.o): Add missing $(srcdir) prefix
39716 and add optabs.h dependency.
39718 * misc.c: Include optabs.h
39719 (gnat_tree_code_type): Make static and const.
39720 (gnat_tree_code_length): Likewise.
39721 (gnat_tree_code_name): Likewise.
39722 (update_setjmp_buf): Obtain operands mode from insn_data.
39724 2001-11-29 Richard Henderson <rth@redhat.com>
39726 * init.c: Remove obsolete dwarf2 frame.h section.
39728 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
39730 * Make-lang.in (ada.generated-manpages): New dummy target.
39732 2001-11-29 Ed Schonberg <schonber@gnat.com>
39734 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
39735 into Command, an array conversion is illegal here. Uncovered by
39738 2001-11-28 Geert Bosch <bosch@gnat.com>
39740 * init.c: Minor whitespace changes.
39742 2001-11-28 Doug Rupp <rupp@gnat.com>
39744 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
39747 2001-11-28 Zack Weinberg <zack@codesourcery.com>
39749 * misc.c (gnat_expand_constant): Move declaration above
39750 definition of lang_hooks.
39751 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
39752 (gnat_init): lang_expand_constant no longer exists.
39754 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
39755 always have vprintf.
39756 (gnat_init): Always call set_internal_error_function.
39758 2001-11-27 Andreas Jaeger <aj@suse.de>
39760 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
39762 2001-11-27 Laurent Guerby <guerby@acm.org>
39764 * Makefile.in: Regenerate Ada dependencies.
39766 2001-11-26 Richard Henderson <rth@redhat.com>
39768 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
39769 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
39770 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
39772 2001-11-25 Laurent Guerby <guerby@acm.org>
39774 * sysdep.c (rts_get_*): Fix style.
39776 2001-11-19 Laurent Guerby <guerby@acm.org>
39778 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
39779 since it is of no apparent use and cause warnings.
39781 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
39783 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
39785 (gnat_init): Don't return NULL.
39786 (finish_parse): Remove.
39788 2001-11-17 Laurent Guerby <guerby@acm.org>
39790 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
39791 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
39792 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
39793 * lang-spec.h: Add missing struct field to silence warnings.
39794 * sysdep.c (rts_get_*): Provide K&R prototype.
39795 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
39796 * traceback.c (Unlock_Task, Lock_Task): Likewise.
39797 * tracebak.c (__gnat_backtrace): Remove unused variable.
39798 * utils.c (end_subprog_body): Move to K&R style.
39800 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39802 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
39804 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
39806 * misc.c (gnat_init): Change prototype. Include the
39807 functionality of the old init_parse and init_decl_processing.
39808 (gnat_init_decl_processing): New prototype.
39809 (init_parse): Remove.
39810 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
39812 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
39814 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
39815 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
39816 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
39817 set_yydebug): Remove.
39819 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
39821 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
39822 (struct lang_hooks): Constify.
39823 (language_string, lang_identify): Remove.
39824 * utils.c (init_decl_processing): Update.
39826 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
39828 * misc.c: Include langhooks-def.h.
39829 * Makefile.in: Update.
39831 2001-10-30 Robert Dewar <dewar@gnat.com>
39834 (Check_Identifier): Rewrite circuit to be compatible with use of letters
39835 in the upper half of ASCII.
39836 (Check_Identifier): Minor reformatting
39838 2001-10-30 Geert Bosch <bosch@gnat.com>
39840 * (Associated_Node, Set_Associated_Node): Do not check for
39843 2001-10-30 Robert Dewar <dewar@gnat.com>
39845 * a-reatim.ads: Minor reformatting
39847 2001-10-30 Robert Dewar <dewar@gnat.com>
39849 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
39850 undocumented declarations.
39852 2001-10-30 Pascal Obry <obry@gnat.com>
39854 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
39855 to the binder and linker.
39858 * mdll.ads: Fix layout. Update copyright notice.
39860 * mdll.adb: Fix layout. Update copyright notice.
39862 2001-10-30 Robert Dewar <dewar@gnat.com>
39864 * usage.adb: Minor fix to output for -gnaty.
39866 2001-10-30 Ed Schonberg <schonber@gnat.com>
39868 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
39869 to accommodate all its possible values.
39871 * a-reatim.adb (Split): Special-case handling of Time_Span_First
39872 and of small absolute values of T.
39874 2001-10-30 Richard Kenner <kenner@gnat.com>
39876 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
39877 set_mem_attributes since not needed and wrong if RESULT if a REG;
39878 fixes ACATS failures.
39880 2001-10-30 Geert Bosch <bosch@gnat.com>
39882 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
39883 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
39885 2001-10-30 Robert Dewar <dewar@gnat.com>
39887 * bindusg.adb: Undocument -f switch.
39889 * gnatcmd.adb: Remove /FULL_ELABORATION.
39891 * opt.ads (Force_RM_Elaboration_Order): Document that this is
39894 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
39896 * gnatbind.adb: Minor update of warning msg.
39898 2001-10-30 Vincent Celier <celier@gnat.com>
39900 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
39901 for project file switches (-P (/PROJECT_FILE=),
39902 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
39905 2001-10-30 Geert Bosch <bosch@gnat.com>
39907 * decl.c: Minor whitespace fixes.
39909 2001-10-30 Richard Kenner <kenner@gnat.com>
39911 * utils2.c (build_allocator): Test for SIZE overflow in array case too
39913 2001-10-30 Geert Bosch <bosch@gnat.com>
39915 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
39916 Found due to GCC 3.0 warning of using uninitialized value.
39919 (Get_Max_Size): Use variant record for tracking value/expression.
39920 Makes logic clearer and prevents warnings for uninitialized variables.
39921 (Layout_Array_Type): Use variant record for tracking value/expression.
39922 Makes logic clearer and prevents warnings for uninitialized variables.
39924 2001-10-30 Robert Dewar <dewar@gnat.com>
39926 * lib.adb: Minor reformatting
39928 * s-taprop.ads: Minor reformatting
39930 2001-10-29 Laurent Guerby <guerby@acm.org>
39933 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
39935 (_gnat_error_handler): Make MSG const.
39937 2001-10-29 Richard Kenner <kenner@gnat.com>
39939 * sysdep.c: Fix localtime_r problem on LynxOS.
39940 Also remove #elif to avoid warnings.
39942 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
39945 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
39947 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
39949 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
39950 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
39951 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
39952 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
39953 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
39954 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
39955 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
39956 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
39957 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
39958 types.ads, urealp.adb: Fix spelling errors.
39960 2001-10-27 Laurent Guerby <guerby@acm.org>
39962 * trans.c (gigi): Fix non determinism leading to bootstrap
39963 comparison failures for debugging information.
39965 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
39967 * gnat_rm.texi: Use @./@: where appropriate.
39969 2001-10-26 Robert Dewar <dewar@gnat.com>
39971 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
39973 2001-10-26 Richard Kenner <kenner@gnat.com>
39975 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
39977 2001-10-26 Richard Kenner <kenner@gnat.com>
39979 * decl.c (validate_size): Modify message for bad size to avoid
39980 implication that compiler is modifying the size.
39982 2001-10-26 Robert Dewar <dewar@gnat.com>
39984 * prj-util.adb: Minor reformatting. Fix bad header format.
39986 2001-10-26 Robert Dewar <dewar@gnat.com>
39988 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
39990 * sinfo.ads: Clarify use of Associated_Node (documentation only).
39992 * sem_ch12.adb: Change Node4 to Associated_Node. Change
39993 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
39994 much more narrowly in places where needed. These are cleanups.
39996 2001-10-26 Joel Brobecker <brobecke@gnat.com>
39998 * 5zosinte.ads (null_pthread): new constant.
40001 (Initialize_TCB): Initialize thread ID to null, to be able to verify
40002 later that this field has been set.
40003 (Finalize_TCB): ditto.
40004 (Suspend_Task): Verify that the thread ID is not null before using it.
40005 (Resume_Task): ditto.
40008 (Resume_All_Tasks): Lock the tasks list before using it.
40009 (Suspend_All_Tasks): ditto.
40011 2001-10-26 Richard Kenner <kenner@gnat.com>
40013 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
40014 Make constant variant of designated type for Is_Access_Constant.
40015 Call update_pointer_to with main variant.
40017 * trans.c (process_freeze_entity, process_type):
40018 Call update_pointer_to on main variant.
40020 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
40021 If main variant, update all other variants.
40023 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
40026 2001-10-26 Robert Dewar <dewar@gnat.com>
40028 * prj-util.adb: Minor reformatting
40030 2001-10-26 Robert Dewar <dewar@gnat.com>
40032 * prj-util.adb: Minor reformatting
40034 2001-10-26 Robert Dewar <dewar@gnat.com>
40036 * prj-attr.adb: Minor reformatting throughout
40038 2001-10-26 Robert Dewar <dewar@gnat.com>
40040 * prj-attr.ads: Minor reformatting
40041 Add ??? comment (this whole spec has almost no comments)
40043 2001-10-26 Vincent Celier <celier@gnat.com>
40045 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
40046 ("//") that precede the drive letter on Interix.
40048 2001-10-26 Geert Bosch <bosch@gnat.com>
40050 * gnat_rm.texi: Add GNAT Reference Manual.
40052 2001-10-25 Robert Dewar <dewar@gnat.com>
40054 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
40055 is Error. Similar change for other renaming cases.
40057 2001-10-25 Robert Dewar <dewar@gnat.com>
40059 * s-atacco.ads: Add pragma Inline_Always for functions.
40060 Fix header format. Add copyright 2001
40062 2001-10-25 Ed Schonberg <schonber@gnat.com>
40064 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
40065 return Error rather than Empty so that analysis can proceed.
40067 2001-10-25 Ed Schonberg <schonber@gnat.com>
40069 * sem_util.adb (Enter_Name): better handling of cascaded error
40070 messages when a unit appears in its own context.
40072 2001-10-25 Ed Schonberg <schonber@gnat.com>
40074 * sem_util.adb (Defining_Entity): in case of error, attach created
40075 entity to specification, so that semantic analysis can proceed.
40077 2001-10-25 Robert Dewar <dewar@gnat.com>
40080 (Defining_Entity): Deal with Error.
40081 (Process_End_Label): Deal with bad end label for.
40083 2001-10-25 Ed Schonberg <schonber@gnat.com>
40085 * sem_elab.adb (Check_A_Call): refine message when call is in an
40086 instance but callee is not declared in the generic unit.
40088 2001-10-25 Ed Schonberg <schonber@gnat.com>
40090 * sem_elab.adb (Check_A_Call): check for renaming before finding the
40091 enclosing unit, which may already be different from the calling unit.
40093 2001-10-25 Geert Bosch <bosch@gnat.com>
40095 * 4gintnam.ads: fix header format.
40097 2001-10-25 Ed Schonberg <schonber@gnat.com>
40099 * sem_res.adb (Resolve_Call): if the call is actually an indexing
40100 operation on the result of a parameterless call, perform elaboration
40101 check after the node has been properly rewritten.
40103 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
40104 inlined within the generic tree, the defining identifier is not a
40107 2001-10-25 Ed Schonberg <schonber@gnat.com>
40109 * sem_res.adb (Resolve): special-case resolution of Null in an
40110 instance or an inlined body to avoid view conflicts.
40112 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
40113 compatibility by retrieving the access type of the generic copy.
40115 2001-10-25 Robert Dewar <dewar@gnat.com>
40118 (Analyze_Number_Declaration): Handle error expression.
40119 (Signed_Integer_Type_Declaration): Handle error bound.
40120 (Analyze_Subtype_Indication): Handle error range.
40122 * sem_util.adb (Get_Index_Bounds): Check for Error.
40124 2001-10-25 Robert Dewar <dewar@gnat.com>
40126 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
40127 in no run time mode.
40129 2001-10-25 Pascal Obry <obry@gnat.com>
40131 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
40132 mode case for ALLOC case.
40134 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
40135 all platforms. Improvement of last change.
40137 2001-10-25 Robert Dewar <dewar@gnat.com>
40139 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
40141 2001-10-25 Geert Bosch <bosch@gnat.com>
40143 * osint.adb (Is_Relative): Remove duplicate.
40145 2001-10-25 Pascal Obry <obry@gnat.com>
40147 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
40148 pathnames in UNIX and DOS style with drive letter.
40149 (Is_Relative): new routine.
40151 * osint.adb: Minor reformatting
40153 * osint.adb (Is_Relative): implementation using
40154 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
40156 2001-10-25 Pascal Obry <obry@gnat.com>
40158 * g-dirope.adb (Basename): correctly compute offset between the
40159 original Path and the translated one.
40161 * g-dirope.adb: (Base_Name): add some comments.
40163 2001-10-25 Robert Dewar <dewar@gnat.com>
40165 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
40166 in HIE mode, avoids compilation abandoned message
40168 * exp_imgv.adb: Correct typo in previous change
40170 * exp_imgv.adb: Correct typo in previous change (not my day!)
40172 2001-10-25 Robert Dewar <dewar@gnat.com>
40174 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
40176 2001-10-25 Pascal Obry <obry@gnat.com>
40178 * g-awk.ads: Move all pragma inlines next to the routine
40179 declarations. This is more uniform with other GNAT spec.
40181 2001-10-22 Geert Bosch <bosch@gnat.com>
40183 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
40185 2001-10-19 Geert Bosch <bosch@gnat.com>
40187 * Makefile.in (tools, gnattools): Remove gnatmem.
40189 2001-10-17 Richard Henderson <rth@redhat.com>
40191 * Makefile.in (misc.o): Depend on langhooks.h.
40192 * misc.c: Include it.
40193 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
40194 (LANG_HOOKS_DECODE_OPTION): New.
40195 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
40197 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
40199 * trans.c (tree_transform): Adjust to recent change in
40200 expand_asm_operands to implement named asm operands.
40202 2001-10-11 Ed Schonberg <schonber@gnat.com>
40204 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
40205 renaming of discriminant for mutable record type.
40207 2001-10-11 Robert Dewar <dewar@gnat.com>
40209 * validsw.adb: Properly save -gnatVn status.
40211 2001-10-11 Robert Dewar <dewar@gnat.com>
40213 * usage.adb: Add lines for V switch.
40215 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
40216 (/VALIDITY_CHECKING).
40218 2001-10-11 Ed Schonberg <schonber@gnat.com>
40220 * sem_type.adb (Add_One_Interp): an operator for a type declared in
40221 an extension of System is known to be visible.
40223 2001-10-11 Ed Schonberg <schonber@gnat.com>
40225 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
40226 properly. Fixes regression on ACATS C34005G.
40228 2001-10-11 Robert Dewar <dewar@gnat.com>
40230 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
40231 loop in generic instance, since this is likely not very useful.
40233 2001-10-11 Robert Dewar <dewar@gnat.com>
40235 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
40236 the error message for high integrity mode.
40238 * rtsfind.adb (RTE): Give message if we try to find an entity that
40239 is not available in high integrity mode.
40242 (OK_To_Use_In_HIE_Mode): New array.
40243 (RTE): May return Empty in high integrity mode.
40245 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
40246 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
40248 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
40249 unit if not inlined always and in no runtime mode. Fixes problem
40250 caused by new Rtsfind changes.
40252 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
40255 * rtsfind.adb (RTE): Make sure we do not try to load unit after
40256 giving message for entity not available in high integrity mode.
40258 2001-10-11 Pascal Obry <obry@gnat.com>
40260 * impunit.adb: Add GNAT.CRC32.
40262 2001-10-11 Ed Schonberg <schonber@gnat.com>
40264 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
40265 properly the case where one universal operand in a non-static
40266 exponentiation of a real literal.
40268 2001-10-11 Ed Schonberg <schonber@gnat.com>
40270 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
40271 clause, return the gobal finalization list, for lack of anthing else.
40273 2001-10-11 Ed Schonberg <schonber@gnat.com>
40275 * exp_ch7.adb (Make_Transient_Block): if statement is within
40276 exception handler, always use new transient scope to place Clean
40279 2001-10-11 Pascal Obry <obry@gnat.com>
40282 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40283 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40284 (GNATLS_RTL_OBJS): add g-crc32.o
40285 (GNATMAKE_RTL_OBJS): add g-crc32.o
40288 (CRC_Match): new function.
40289 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
40290 instead of the previous simple checksum algorithm.
40291 (Time_Stamp_Mismatch): use CRC_Match for comparison.
40292 (Set_Source_Table): idem.
40295 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
40296 instead of simple checksum.
40297 (CRC_Match): new function.
40298 (CRC_Error): new constant.
40300 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
40301 a CRC now and not a simple checksum. A CRC uses lower-case hex
40302 letters, fixes ambiguity in parsing.
40304 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
40305 is what this variable will store.
40307 * bcheck.adb: Change reference to chechsum in comments by CRC.
40308 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
40309 rename All_Checksum_Match to All_CRC_Match. Change due to API
40310 renaming since now GNAT does not use a simple checksum but a
40311 CRC using GNAT.CRC32.
40313 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
40314 now and not anymore a simple checksum.
40316 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
40319 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
40322 (Restore_Scan_State): rename Checksum to CRC.
40323 (Save_Scan_State): idem.
40327 (Checksum): rename to CRC.
40328 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
40330 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
40331 GNAT.CRC32). Update copyright notice.
40333 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
40334 GNAT.CRC32). Update copyright notice.
40337 (Accumulate_Checksum): removed.
40338 (Update): new procedure. Add a wide-character into the CRC.
40341 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
40342 (Load_File): fix initialization of S (change Source_Checksum to
40345 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
40346 Source_CRC in S initialization.
40348 * sinput.adb (Source_Checksum): renamed to Source_CRC.
40350 * sinput.ads (Source_Checksum): renamed to Source_CRC.
40351 Update comments for the CRC.
40353 * types.adb (Hex): Use lowercase for the letter part.
40355 * types.ads (Get_Hex_String): Returns the hexadecimal representation
40356 for a word. This is currently used only for CRC. In previous version,
40357 the checksum was using a representation with all letter being
40358 upper-case. With the new implementation (using CRC) we do not remove
40359 the 32th bit of the CRC, so we can have an upper-case starting letter
40360 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
40361 It is ambigous since the CRC was optional and could be followed by
40362 options like EB, EE. So now this routines uses lower-case letter for
40363 the hexadecimal representation. Strange enough only lower case letters
40364 where checked in Scan_ALI (even if this was not a possible case).
40366 * gnatvsn.ads (Library_Version): changed to 3.15a.
40368 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
40371 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
40374 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
40375 Add 2001 to copyright notice
40376 (Accumulate_Checksum): Modify to use System.CRC32.
40378 * ali-util.ads: Redo changes of previous revision to continue to use
40379 the word Checksum. Add 2001 to copyright notice.
40381 * ali.adb: Undo some of previous changes, not needed.
40382 Keep the change for lower case letters in the checksum.
40384 * ali.ads: Undo previous change not needed.
40386 * bcheck.adb: Undo most of previous change, not needed.
40387 But do use Checksums_Match for checksum comparison.
40389 * gnatls.adb: Undo most of previous change, not needed.
40390 But do use Checksums_Match for comparing checksums.
40392 * lib-load.adb: Undo previous change, not needed.
40394 * lib-writ.adb: Undo previous change, not needed.
40396 * lib-writ.ads: Document that checksums use lower case,
40397 not upper case letters.
40399 * scans.adb: Undo previous change, not needed
40401 * scans.ads: Undo previous change, not needed.
40403 * scn-nlit.adb: Undo previous changes, not needed.
40405 * scn-slit.adb: Undo previous change, not needed. Fix header format.
40408 (Accumulate_Checksum): Use System.CRC32.
40409 (Initialize_Checksum): New procedure.
40410 Remove other changes of previous revision.
40412 * sinput-p.adb: Undo previous change, not needed.
40414 * sinput.adb: Undo previous change, not needed.
40416 * sinput-l.adb: Undo previous change, not needed.
40418 * sinput.ads: Undo previous change, not needed. Keep only comment
40419 on new checksum algorithm
40421 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
40422 Also remove a-tags and a-stream from GNAT sources.
40424 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
40426 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
40428 2001-10-11 Geert Bosch <bosch@gnat.com>
40430 * einfo.h: Regenerate.
40432 * nmake.ads: Regenerate.
40434 * nmake.adb: Regenerate.
40436 * sinfo.h: Regenerate.
40438 * treeprs.adb: Regenerate.
40440 2001-10-10 Geert Bosch <bosch@gnat.com>
40442 * gnat-style.texi: New file describing coding guidelines for Ada.
40444 2001-10-10 Ed Schonberg <schonber@gnat.com>
40446 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
40449 2001-10-10 Geert Bosch <bosch@gnat.com>
40451 * snames.ads: Add new names for project facility.
40453 * snames.adb: Update to reflect snames.ads changes.
40455 * snames.h: Update to reflect snames.ads changes.
40457 2001-10-10 Vincent Celier <celier@gnat.com>
40460 (Add_Switches): reflect the changes for the switches attributes
40461 Default_Switches indexed by the programming language,
40462 Switches indexed by the file name.
40463 (Collect_Arguments_And_Compile): Idem.
40464 Reflect the attribute name changes.
40467 (Initialisation_Data): Change the names of some packages and
40469 (Initialize): process case insensitive associative arrays.
40472 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
40475 (Parse_Attribute_Declaration): For case insensitive associative
40476 arrays, set the index string to lower case.
40479 Reflect the changes of the project attributes.
40482 Replace Check_Naming_Scheme by Ada_Check and
40483 Language_Independent_Check.
40486 Replaced Check_Naming_Scheme by 2 procedures:
40487 Ada_Check and Language_Independent_Check.
40490 (Process_Declarative_Items): For case-insensitive associative
40491 arrays, set the index string to lower case.
40492 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
40493 Prj.Nmsc.Check_Naming_Scheme.
40496 (Case_Insensitive): New function
40497 (Set_Case_Insensitive): New procedure
40500 (Case_Insensitive): New function
40501 (Set_Case_Insensitive): New procedure
40502 (Project_Node_Record): New flag Case_Insensitive.
40505 (Value_Of): new function to get the string value of a single
40506 string variable or attribute.
40509 (Value_Of): new function to get the string value of a single
40510 string variable or attribute.
40513 (Ada_Default_Spec_Suffix): New function
40514 (Ada_Default_Impl_Suffix): New function
40515 Change definitions of several constants to reflect
40516 new components of record types.
40519 (Naming_Data): Change several components to reflect new
40520 elements of naming schemes.
40521 (Project_Data): New flags Sources_Present and
40522 Language_Independent_Checked.
40523 (Ada_Default_Spec_Suffix): New function.
40524 (Ada_Default_Impl_Suffix): New function.
40527 Modification of predefined names for project manager: added
40528 Implementation, Specification_Exceptions, Implementation_Exceptions,
40529 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
40530 Default_Switches, _Languages, Builder, Cross_Reference,
40531 Finder. Removed Body_Part, Specification_Append, Body_Append,
40532 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
40535 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40538 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
40539 not that it is Nil_Variable_Value.
40541 * prj.ads: Add ??? for uncommented declarations
40543 2001-10-10 Ed Schonberg <schonber@gnat.com>
40545 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
40546 constant, do not indicate possible modification, so that gigi can
40547 treat it as a bona fide constant.
40549 2001-10-10 Robert Dewar <dewar@gnat.com>
40551 * sem_prag.adb: Add processing for pragma External.
40553 * snames.ads: Add entry for pragma External.
40555 * par-prag.adb: Add pragma External.
40557 * snames.adb: Updated to match snames.ads.
40559 2001-10-10 Ed Schonberg <schonber@gnat.com>
40561 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
40562 a dynamic task if the allocator appears in an indexed assignment
40563 or selected component assignment.
40565 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
40566 For a dynamic task in an assignment statement, use target of
40567 assignment to generate meaningful name.
40569 2001-10-10 Ed Schonberg <schonber@gnat.com>
40571 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
40574 * einfo.ads: Body_Entity is also defined for generic package.
40575 Documentation change only
40577 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
40578 others_choice for a discriminated component initialization,
40579 convert discriminant references into the corresponding discriminals.
40581 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
40582 only if original type is private and expression has to be wrapped
40586 (Apply_Constraint_Check): Do not perform length check
40587 if expression is an aggregate with only an others_choice.
40588 (Length_N_Cond): two references to the same in_parameter
40589 (typically the discriminal in an init_proc) denote the same value.
40590 Two useful optimization uncovered by bugfixes above.
40592 2001-10-10 Robert Dewar <dewar@gnat.com>
40594 * xeinfo.adb: Change int to char in translation of enumeration types.
40595 This fixes a problem in the C representation of component alignment.
40596 Add 2001 to copyright notice
40598 2001-10-10 Richard Kenner <kenner@gnat.com>
40600 * decl.c: (validate_size): Do check size of object of integral type
40601 if it is a packed array type.
40603 2001-10-10 Richard Kenner <kenner@gnat.com>
40605 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
40606 VAR_DECL for constant if not Is_Public but -O0.
40608 2001-10-10 Richard Kenner <kenner@gnat.com>
40610 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
40612 2001-10-10 Geert Bosch <bosch@gnat.com>
40614 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
40615 use '/' as switch character, allowing for absolute file names.
40617 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
40619 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
40622 2001-10-08 Geert Bosch <bosch@gnat.com>
40624 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
40625 Automatically build utilities when files need to be regenerated.
40627 2001-10-08 Geert Bosch <bosch@gnat.com>
40629 * xsnames.adb: New utility for updating snames.ads and snames.adb
40631 2001-10-08 Zack Weinberg <zack@codesourcery.com>
40633 * Make-lang.in (ADAFLAGS): Add -W -Wall.
40634 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
40635 (gnat1): Also depend on attribs.o.
40636 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
40637 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
40638 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
40639 (ADAFLAGS): Add -W -Wall.
40640 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
40643 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
40644 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
40645 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
40646 Use $(ADAC), not $(CC), as compilation command.
40648 (gnattools): Depend directly on tools to build, don't use
40650 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
40652 * einfo.h, sinfo.h: New files (autogenerated).
40654 2001-10-08 Richard Henderson <rth@redhat.com>
40656 * comperr.adb (Abort_In_Progress): New.
40657 (Compiler_Abort): Use it to prevent recursion.
40659 2001-10-08 Robert Dewar <dewar@gnat.com>
40661 * atree.adb: Set Error_Posted in Error node, helps error recovery.
40663 * par-endh.adb (Output_End_Expected): We should also not test
40664 Error_Posted on the Error node, since now it is always set.
40666 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
40667 to help error recovery. Part of general work on 9407-004.
40669 * par.adb: Add ??? for misuse of error
40672 (Resolve): Defend against Error, fixes 9407-003.
40673 (Resolve_Discrete_Subtype_Indication): Defend against Error.
40675 * sinfo.ads (N_Error): Now has Etype field (which will be set
40676 to Any_Type to help error recovery).
40678 2001-10-08 Richard Kenner <kenner@gnat.com>
40680 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
40681 Consistently set MEM attributes from expression; fixes
40682 bootstrap failure on x86.
40684 2001-10-08 Geert Bosch <bosch@gnat.com>
40686 * 5oosinte.adb: Add 2001 to copyright notice.
40688 2001-10-08 Geert Bosch <bosch@gnat.com>
40690 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
40692 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
40694 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
40696 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
40698 2001-10-05 Geert Bosch <bosch@gnat.com>
40700 * adaint.h: Small formatting fix.
40702 2001-10-04 Geert Bosch <bosch@gnat.com>
40704 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
40705 Arg is int, not FILE *, in dummy version of functions.
40707 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
40708 Arg is int, not FILE *.
40710 2001-10-04 Geert Bosch <bosch@gnat.com>
40712 * 3lsoccon.ads: Added file, missed with initial check ins.
40714 * 4lintnam.ads: Fix header format.
40715 Change Linux to GNU/Linux.
40717 * 5iosinte.adb: Change Linux to GNU/Linux.
40719 * 5iosinte.ads: Change Linux to GNU/Linux.
40721 * 5itaprop.adb: Change Linux to GNU/Linux.
40723 * 5itaspri.ads: Change Linux to GNU/Linux.
40724 Update copyright notice.
40726 * 5lintman.adb: Change Linux to GNU/Linux.
40728 * 5lml-tgt.adb: Change Linux to GNU/Linux.
40730 * 5losinte.ads: Change Linux to GNU/Linux.
40732 * 5lsystem.ads: Change Linux to GNU/Linux.
40734 * 5qosinte.adb: Change Linux to GNU/Linux.
40736 * 5qosinte.ads: Change Linux to GNU/Linux.
40738 * 5qparame.ads: Change Linux to GNU/Linux.
40740 * 5qtaprop.adb: Change Linux to GNU/Linux.
40742 * 5qtaspri.ads: Change Linux to GNU/Linux.
40743 Add 2001 to copyright notice.
40745 * 5vintman.ads: Change Linux to GNU/Linux.
40746 Fix header format. Add 2001 to copyright notice.
40748 * g-soccon.ads: Change Linux to GNU/Linux.
40750 * g-trasym.ads: Change Linux to GNU/Linux.
40751 Add 2001 to copyright notice.
40753 * memtrack.adb: Change Linux to GNU/Linux.
40755 * s-intman.ads: Change Linux to GNU/Linux.
40756 Add 2001 to copyright notice. Fix header format.
40758 * s-stache.adb: Change Linux to GNU/Linux.
40760 * adaint.c: Change Linux to GNU/Linux.
40762 * cio.c: Change Linux to GNU/Linux.
40764 * cstreams.c: Change Linux to GNU/Linux.
40766 * init.c: Change Linux to GNU/Linux.
40768 * gmem.c: Change Linux to GNU/Linux.
40770 * tracebak.c: Change Linux to GNU/Linux.
40773 2001-10-02 Geert Bosch <bosch@gnat.com>
40775 * misc.c (insert_default_attributes): Add dummy version.